Struct aws_sdk_route53resolver::operation::put_resolver_rule_policy::builders::PutResolverRulePolicyInputBuilder
source · #[non_exhaustive]pub struct PutResolverRulePolicyInputBuilder { /* private fields */ }
Expand description
A builder for PutResolverRulePolicyInput
.
Implementations§
source§impl PutResolverRulePolicyInputBuilder
impl PutResolverRulePolicyInputBuilder
sourcepub fn arn(self, input: impl Into<String>) -> Self
pub fn arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the rule that you want to share with another account.
This field is required.sourcepub fn set_arn(self, input: Option<String>) -> Self
pub fn set_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the rule that you want to share with another account.
sourcepub fn get_arn(&self) -> &Option<String>
pub fn get_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) of the rule that you want to share with another account.
sourcepub fn resolver_rule_policy(self, input: impl Into<String>) -> Self
pub fn resolver_rule_policy(self, input: impl Into<String>) -> Self
An Identity and Access Management policy statement that lists the rules that you want to share with another Amazon Web Services account and the operations that you want the account to be able to perform. You can specify the following operations in the Action
section of the statement:
-
route53resolver:GetResolverRule
-
route53resolver:AssociateResolverRule
-
route53resolver:DisassociateResolverRule
-
route53resolver:ListResolverRules
-
route53resolver:ListResolverRuleAssociations
In the Resource
section of the statement, specify the ARN for the rule that you want to share with another account. Specify the same ARN that you specified in Arn
.
sourcepub fn set_resolver_rule_policy(self, input: Option<String>) -> Self
pub fn set_resolver_rule_policy(self, input: Option<String>) -> Self
An Identity and Access Management policy statement that lists the rules that you want to share with another Amazon Web Services account and the operations that you want the account to be able to perform. You can specify the following operations in the Action
section of the statement:
-
route53resolver:GetResolverRule
-
route53resolver:AssociateResolverRule
-
route53resolver:DisassociateResolverRule
-
route53resolver:ListResolverRules
-
route53resolver:ListResolverRuleAssociations
In the Resource
section of the statement, specify the ARN for the rule that you want to share with another account. Specify the same ARN that you specified in Arn
.
sourcepub fn get_resolver_rule_policy(&self) -> &Option<String>
pub fn get_resolver_rule_policy(&self) -> &Option<String>
An Identity and Access Management policy statement that lists the rules that you want to share with another Amazon Web Services account and the operations that you want the account to be able to perform. You can specify the following operations in the Action
section of the statement:
-
route53resolver:GetResolverRule
-
route53resolver:AssociateResolverRule
-
route53resolver:DisassociateResolverRule
-
route53resolver:ListResolverRules
-
route53resolver:ListResolverRuleAssociations
In the Resource
section of the statement, specify the ARN for the rule that you want to share with another account. Specify the same ARN that you specified in Arn
.
sourcepub fn build(self) -> Result<PutResolverRulePolicyInput, BuildError>
pub fn build(self) -> Result<PutResolverRulePolicyInput, BuildError>
Consumes the builder and constructs a PutResolverRulePolicyInput
.
source§impl PutResolverRulePolicyInputBuilder
impl PutResolverRulePolicyInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<PutResolverRulePolicyOutput, SdkError<PutResolverRulePolicyError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<PutResolverRulePolicyOutput, SdkError<PutResolverRulePolicyError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for PutResolverRulePolicyInputBuilder
impl Clone for PutResolverRulePolicyInputBuilder
source§fn clone(&self) -> PutResolverRulePolicyInputBuilder
fn clone(&self) -> PutResolverRulePolicyInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for PutResolverRulePolicyInputBuilder
impl Default for PutResolverRulePolicyInputBuilder
source§fn default() -> PutResolverRulePolicyInputBuilder
fn default() -> PutResolverRulePolicyInputBuilder
source§impl PartialEq for PutResolverRulePolicyInputBuilder
impl PartialEq for PutResolverRulePolicyInputBuilder
source§fn eq(&self, other: &PutResolverRulePolicyInputBuilder) -> bool
fn eq(&self, other: &PutResolverRulePolicyInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PutResolverRulePolicyInputBuilder
Auto Trait Implementations§
impl Freeze for PutResolverRulePolicyInputBuilder
impl RefUnwindSafe for PutResolverRulePolicyInputBuilder
impl Send for PutResolverRulePolicyInputBuilder
impl Sync for PutResolverRulePolicyInputBuilder
impl Unpin for PutResolverRulePolicyInputBuilder
impl UnwindSafe for PutResolverRulePolicyInputBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more