#[non_exhaustive]pub struct CreateResolverRuleInput {
    pub creator_request_id: Option<String>,
    pub name: Option<String>,
    pub rule_type: Option<RuleTypeOption>,
    pub domain_name: Option<String>,
    pub target_ips: Option<Vec<TargetAddress>>,
    pub resolver_endpoint_id: Option<String>,
    pub tags: Option<Vec<Tag>>,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.creator_request_id: Option<String>A unique string that identifies the request and that allows failed requests to be retried without the risk of running the operation twice. CreatorRequestId can be any unique string, for example, a date/time stamp.
name: Option<String>A friendly name that lets you easily find a rule in the Resolver dashboard in the Route 53 console.
rule_type: Option<RuleTypeOption>When you want to forward DNS queries for specified domain name to resolvers on your network, specify FORWARD.
When you have a forwarding rule to forward DNS queries for a domain to your network and you want Resolver to process queries for a subdomain of that domain, specify SYSTEM.
For example, to forward DNS queries for example.com to resolvers on your network, you create a rule and specify FORWARD for RuleType. To then have Resolver process queries for apex.example.com, you create a rule and specify SYSTEM for RuleType.
Currently, only Resolver can create rules that have a value of RECURSIVE for RuleType.
domain_name: Option<String>DNS queries for this domain name are forwarded to the IP addresses that you specify in TargetIps. If a query matches multiple Resolver rules (example.com and www.example.com), outbound DNS queries are routed using the Resolver rule that contains the most specific domain name (www.example.com).
target_ips: Option<Vec<TargetAddress>>The IPs that you want Resolver to forward DNS queries to. You can specify either Ipv4 or Ipv6 addresses but not both in the same rule. Separate IP addresses with a space.
TargetIps is available only when the value of Rule type is FORWARD.
resolver_endpoint_id: Option<String>The ID of the outbound Resolver endpoint that you want to use to route DNS queries to the IP addresses that you specify in TargetIps.
A list of the tag keys and values that you want to associate with the endpoint.
Implementations§
source§impl CreateResolverRuleInput
 
impl CreateResolverRuleInput
sourcepub fn creator_request_id(&self) -> Option<&str>
 
pub fn creator_request_id(&self) -> Option<&str>
A unique string that identifies the request and that allows failed requests to be retried without the risk of running the operation twice. CreatorRequestId can be any unique string, for example, a date/time stamp.
sourcepub fn name(&self) -> Option<&str>
 
pub fn name(&self) -> Option<&str>
A friendly name that lets you easily find a rule in the Resolver dashboard in the Route 53 console.
sourcepub fn rule_type(&self) -> Option<&RuleTypeOption>
 
pub fn rule_type(&self) -> Option<&RuleTypeOption>
When you want to forward DNS queries for specified domain name to resolvers on your network, specify FORWARD.
When you have a forwarding rule to forward DNS queries for a domain to your network and you want Resolver to process queries for a subdomain of that domain, specify SYSTEM.
For example, to forward DNS queries for example.com to resolvers on your network, you create a rule and specify FORWARD for RuleType. To then have Resolver process queries for apex.example.com, you create a rule and specify SYSTEM for RuleType.
Currently, only Resolver can create rules that have a value of RECURSIVE for RuleType.
sourcepub fn domain_name(&self) -> Option<&str>
 
pub fn domain_name(&self) -> Option<&str>
DNS queries for this domain name are forwarded to the IP addresses that you specify in TargetIps. If a query matches multiple Resolver rules (example.com and www.example.com), outbound DNS queries are routed using the Resolver rule that contains the most specific domain name (www.example.com).
sourcepub fn target_ips(&self) -> &[TargetAddress]
 
pub fn target_ips(&self) -> &[TargetAddress]
The IPs that you want Resolver to forward DNS queries to. You can specify either Ipv4 or Ipv6 addresses but not both in the same rule. Separate IP addresses with a space.
TargetIps is available only when the value of Rule type is FORWARD.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .target_ips.is_none().
sourcepub fn resolver_endpoint_id(&self) -> Option<&str>
 
pub fn resolver_endpoint_id(&self) -> Option<&str>
The ID of the outbound Resolver endpoint that you want to use to route DNS queries to the IP addresses that you specify in TargetIps.
A list of the tag keys and values that you want to associate with the endpoint.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .tags.is_none().
source§impl CreateResolverRuleInput
 
impl CreateResolverRuleInput
sourcepub fn builder() -> CreateResolverRuleInputBuilder
 
pub fn builder() -> CreateResolverRuleInputBuilder
Creates a new builder-style object to manufacture CreateResolverRuleInput.
Trait Implementations§
source§impl Clone for CreateResolverRuleInput
 
impl Clone for CreateResolverRuleInput
source§fn clone(&self) -> CreateResolverRuleInput
 
fn clone(&self) -> CreateResolverRuleInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for CreateResolverRuleInput
 
impl Debug for CreateResolverRuleInput
source§impl PartialEq for CreateResolverRuleInput
 
impl PartialEq for CreateResolverRuleInput
impl StructuralPartialEq for CreateResolverRuleInput
Auto Trait Implementations§
impl Freeze for CreateResolverRuleInput
impl RefUnwindSafe for CreateResolverRuleInput
impl Send for CreateResolverRuleInput
impl Sync for CreateResolverRuleInput
impl Unpin for CreateResolverRuleInput
impl UnwindSafe for CreateResolverRuleInput
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> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
 
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)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