Struct aws_sdk_route53resolver::operation::associate_resolver_rule::builders::AssociateResolverRuleFluentBuilder
source · pub struct AssociateResolverRuleFluentBuilder { /* private fields */ }Expand description
Fluent builder constructing a request to AssociateResolverRule.
Associates a Resolver rule with a VPC. When you associate a rule with a VPC, Resolver forwards all DNS queries for the domain name that is specified in the rule and that originate in the VPC. The queries are forwarded to the IP addresses for the DNS resolvers that are specified in the rule. For more information about rules, see CreateResolverRule.
Implementations§
source§impl AssociateResolverRuleFluentBuilder
impl AssociateResolverRuleFluentBuilder
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<AssociateResolverRule, AwsResponseRetryClassifier>, SdkError<AssociateResolverRuleError>>
pub async fn customize( self ) -> Result<CustomizableOperation<AssociateResolverRule, AwsResponseRetryClassifier>, SdkError<AssociateResolverRuleError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<AssociateResolverRuleOutput, SdkError<AssociateResolverRuleError>>
pub async fn send( self ) -> Result<AssociateResolverRuleOutput, SdkError<AssociateResolverRuleError>>
Sends the request and returns the response.
If an error occurs, an SdkError will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn resolver_rule_id(self, input: impl Into<String>) -> Self
pub fn resolver_rule_id(self, input: impl Into<String>) -> Self
The ID of the Resolver rule that you want to associate with the VPC. To list the existing Resolver rules, use ListResolverRules.
sourcepub fn set_resolver_rule_id(self, input: Option<String>) -> Self
pub fn set_resolver_rule_id(self, input: Option<String>) -> Self
The ID of the Resolver rule that you want to associate with the VPC. To list the existing Resolver rules, use ListResolverRules.
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
A name for the association that you're creating between a Resolver rule and a VPC.
sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
A name for the association that you're creating between a Resolver rule and a VPC.
sourcepub fn vpc_id(self, input: impl Into<String>) -> Self
pub fn vpc_id(self, input: impl Into<String>) -> Self
The ID of the VPC that you want to associate the Resolver rule with.
sourcepub fn set_vpc_id(self, input: Option<String>) -> Self
pub fn set_vpc_id(self, input: Option<String>) -> Self
The ID of the VPC that you want to associate the Resolver rule with.
Trait Implementations§
source§impl Clone for AssociateResolverRuleFluentBuilder
impl Clone for AssociateResolverRuleFluentBuilder
source§fn clone(&self) -> AssociateResolverRuleFluentBuilder
fn clone(&self) -> AssociateResolverRuleFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more