Struct aws_sdk_route53resolver::Client

source ·
pub struct Client { /* private fields */ }
Expand description

Client for Amazon Route 53 Resolver

Client for invoking operations on Amazon Route 53 Resolver. Each operation on Amazon Route 53 Resolver is a method on this this struct. .send() MUST be invoked on the generated operations to dispatch the request to the service.

§Constructing a Client

A Config is required to construct a client. For most use cases, the aws-config crate should be used to automatically resolve this config using aws_config::load_from_env(), since this will resolve an SdkConfig which can be shared across multiple different AWS SDK clients. This config resolution process can be customized by calling aws_config::from_env() instead, which returns a ConfigLoader that uses the builder pattern to customize the default config.

In the simplest case, creating a client looks as follows:

let config = aws_config::load_from_env().await;
let client = aws_sdk_route53resolver::Client::new(&config);

Occasionally, SDKs may have additional service-specific values that can be set on the Config that is absent from SdkConfig, or slightly different settings for a specific client may be desired. The Config struct implements From<&SdkConfig>, so setting these specific settings can be done as follows:

let sdk_config = ::aws_config::load_from_env().await;
let config = aws_sdk_route53resolver::config::Builder::from(&sdk_config)
    .some_service_specific_setting("value")
    .build();

See the aws-config docs and Config for more information on customizing configuration.

Note: Client construction is expensive due to connection thread pool initialization, and should be done once at application start-up.

§Using the Client

A client has a function for every operation that can be performed by the service. For example, the AssociateFirewallRuleGroup operation has a Client::associate_firewall_rule_group, function which returns a builder for that operation. The fluent builder ultimately has a send() function that returns an async future that returns a result, as illustrated below:

let result = client.associate_firewall_rule_group()
    .creator_request_id("example")
    .send()
    .await;

The underlying HTTP requests that get made by this can be modified with the customize_operation function on the fluent builder. See the customize module for more information.

Implementations§

source§

impl Client

source

pub fn associate_firewall_rule_group( &self ) -> AssociateFirewallRuleGroupFluentBuilder

Constructs a fluent builder for the AssociateFirewallRuleGroup operation.

source§

impl Client

source

pub fn associate_resolver_endpoint_ip_address( &self ) -> AssociateResolverEndpointIpAddressFluentBuilder

Constructs a fluent builder for the AssociateResolverEndpointIpAddress operation.

source§

impl Client

source

pub fn associate_resolver_query_log_config( &self ) -> AssociateResolverQueryLogConfigFluentBuilder

Constructs a fluent builder for the AssociateResolverQueryLogConfig operation.

source§

impl Client

source

pub fn associate_resolver_rule(&self) -> AssociateResolverRuleFluentBuilder

Constructs a fluent builder for the AssociateResolverRule operation.

source§

impl Client

source

pub fn create_firewall_domain_list( &self ) -> CreateFirewallDomainListFluentBuilder

Constructs a fluent builder for the CreateFirewallDomainList operation.

source§

impl Client

source

pub fn create_firewall_rule(&self) -> CreateFirewallRuleFluentBuilder

Constructs a fluent builder for the CreateFirewallRule operation.

  • The fluent builder is configurable:
    • creator_request_id(impl Into<String>) / set_creator_request_id(Option<String>):
      required: true

      A unique string that identifies the request and that allows you to retry failed requests without the risk of running the operation twice. CreatorRequestId can be any unique string, for example, a date/time stamp.


    • firewall_rule_group_id(impl Into<String>) / set_firewall_rule_group_id(Option<String>):
      required: true

      The unique identifier of the firewall rule group where you want to create the rule.


    • firewall_domain_list_id(impl Into<String>) / set_firewall_domain_list_id(Option<String>):
      required: true

      The ID of the domain list that you want to use in the rule.


    • priority(i32) / set_priority(Option<i32>):
      required: true

      The setting that determines the processing order of the rule in the rule group. DNS Firewall processes the rules in a rule group by order of priority, starting from the lowest setting.

      You must specify a unique priority for each rule in a rule group. To make it easier to insert rules later, leave space between the numbers, for example, use 100, 200, and so on. You can change the priority setting for the rules in a rule group at any time.


    • action(Action) / set_action(Option<Action>):
      required: true

      The action that DNS Firewall should take on a DNS query when it matches one of the domains in the rule’s domain list:

      • ALLOW - Permit the request to go through.

      • ALERT - Permit the request and send metrics and logs to Cloud Watch.

      • BLOCK - Disallow the request. This option requires additional details in the rule’s BlockResponse.


    • block_response(BlockResponse) / set_block_response(Option<BlockResponse>):
      required: false

      The way that you want DNS Firewall to block the request, used with the rule action setting BLOCK.

      • NODATA - Respond indicating that the query was successful, but no response is available for it.

      • NXDOMAIN - Respond indicating that the domain name that’s in the query doesn’t exist.

      • OVERRIDE - Provide a custom override in the response. This option requires custom handling details in the rule’s BlockOverride* settings.

      This setting is required if the rule action setting is BLOCK.


    • block_override_domain(impl Into<String>) / set_block_override_domain(Option<String>):
      required: false

      The custom DNS record to send back in response to the query. Used for the rule action BLOCK with a BlockResponse setting of OVERRIDE.

      This setting is required if the BlockResponse setting is OVERRIDE.


    • block_override_dns_type(BlockOverrideDnsType) / set_block_override_dns_type(Option<BlockOverrideDnsType>):
      required: false

      The DNS record’s type. This determines the format of the record value that you provided in BlockOverrideDomain. Used for the rule action BLOCK with a BlockResponse setting of OVERRIDE.

      This setting is required if the BlockResponse setting is OVERRIDE.


    • block_override_ttl(i32) / set_block_override_ttl(Option<i32>):
      required: false

      The recommended amount of time, in seconds, for the DNS resolver or web browser to cache the provided override record. Used for the rule action BLOCK with a BlockResponse setting of OVERRIDE.

      This setting is required if the BlockResponse setting is OVERRIDE.


    • name(impl Into<String>) / set_name(Option<String>):
      required: true

      A name that lets you identify the rule in the rule group.


    • firewall_domain_redirection_action(FirewallDomainRedirectionAction) / set_firewall_domain_redirection_action(Option<FirewallDomainRedirectionAction>):
      required: false

      How you want the the rule to evaluate DNS redirection in the DNS redirection chain, such as CNAME, DNAME, ot ALIAS.

      Inspect_Redirection_Domain (Default) inspects all domains in the redirection chain. The individual domains in the redirection chain must be added to the allow domain list.

      Trust_Redirection_Domain inspects only the first domain in the redirection chain. You don’t need to add the subsequent domains in the redirection list to the domain alloww list.


    • qtype(impl Into<String>) / set_qtype(Option<String>):
      required: false

      The DNS query type you want the rule to evaluate. Allowed values are;

      • A: Returns an IPv4 address.

      • AAAA: Returns an Ipv6 address.

      • CAA: Restricts CAs that can create SSL/TLS certifications for the domain.

      • CNAME: Returns another domain name.

      • DS: Record that identifies the DNSSEC signing key of a delegated zone.

      • MX: Specifies mail servers.

      • NAPTR: Regular-expression-based rewriting of domain names.

      • NS: Authoritative name servers.

      • PTR: Maps an IP address to a domain name.

      • SOA: Start of authority record for the zone.

      • SPF: Lists the servers authorized to send emails from a domain.

      • SRV: Application specific values that identify servers.

      • TXT: Verifies email senders and application-specific values.

      • A query type you define by using the DNS type ID, for example 28 for AAAA. The values must be defined as TYPENUMBER, where the NUMBER can be 1-65334, for example, TYPE28. For more information, see List of DNS record types.


  • On success, responds with CreateFirewallRuleOutput with field(s):
  • On failure, responds with SdkError<CreateFirewallRuleError>
source§

impl Client

source

pub fn create_firewall_rule_group(&self) -> CreateFirewallRuleGroupFluentBuilder

Constructs a fluent builder for the CreateFirewallRuleGroup operation.

source§

impl Client

source

pub fn create_outpost_resolver(&self) -> CreateOutpostResolverFluentBuilder

Constructs a fluent builder for the CreateOutpostResolver operation.

source§

impl Client

source

pub fn create_resolver_endpoint(&self) -> CreateResolverEndpointFluentBuilder

Constructs a fluent builder for the CreateResolverEndpoint operation.

source§

impl Client

source

pub fn create_resolver_query_log_config( &self ) -> CreateResolverQueryLogConfigFluentBuilder

Constructs a fluent builder for the CreateResolverQueryLogConfig operation.

source§

impl Client

source

pub fn create_resolver_rule(&self) -> CreateResolverRuleFluentBuilder

Constructs a fluent builder for the CreateResolverRule operation.

source§

impl Client

source

pub fn delete_firewall_domain_list( &self ) -> DeleteFirewallDomainListFluentBuilder

Constructs a fluent builder for the DeleteFirewallDomainList operation.

source§

impl Client

source

pub fn delete_firewall_rule(&self) -> DeleteFirewallRuleFluentBuilder

Constructs a fluent builder for the DeleteFirewallRule operation.

source§

impl Client

source

pub fn delete_firewall_rule_group(&self) -> DeleteFirewallRuleGroupFluentBuilder

Constructs a fluent builder for the DeleteFirewallRuleGroup operation.

source§

impl Client

source

pub fn delete_outpost_resolver(&self) -> DeleteOutpostResolverFluentBuilder

Constructs a fluent builder for the DeleteOutpostResolver operation.

source§

impl Client

source

pub fn delete_resolver_endpoint(&self) -> DeleteResolverEndpointFluentBuilder

Constructs a fluent builder for the DeleteResolverEndpoint operation.

source§

impl Client

source

pub fn delete_resolver_query_log_config( &self ) -> DeleteResolverQueryLogConfigFluentBuilder

Constructs a fluent builder for the DeleteResolverQueryLogConfig operation.

source§

impl Client

source

pub fn delete_resolver_rule(&self) -> DeleteResolverRuleFluentBuilder

Constructs a fluent builder for the DeleteResolverRule operation.

source§

impl Client

source

pub fn disassociate_firewall_rule_group( &self ) -> DisassociateFirewallRuleGroupFluentBuilder

Constructs a fluent builder for the DisassociateFirewallRuleGroup operation.

source§

impl Client

source

pub fn disassociate_resolver_endpoint_ip_address( &self ) -> DisassociateResolverEndpointIpAddressFluentBuilder

Constructs a fluent builder for the DisassociateResolverEndpointIpAddress operation.

source§

impl Client

source

pub fn disassociate_resolver_query_log_config( &self ) -> DisassociateResolverQueryLogConfigFluentBuilder

Constructs a fluent builder for the DisassociateResolverQueryLogConfig operation.

source§

impl Client

source

pub fn disassociate_resolver_rule( &self ) -> DisassociateResolverRuleFluentBuilder

Constructs a fluent builder for the DisassociateResolverRule operation.

source§

impl Client

source

pub fn get_firewall_config(&self) -> GetFirewallConfigFluentBuilder

Constructs a fluent builder for the GetFirewallConfig operation.

source§

impl Client

source

pub fn get_firewall_domain_list(&self) -> GetFirewallDomainListFluentBuilder

Constructs a fluent builder for the GetFirewallDomainList operation.

source§

impl Client

source

pub fn get_firewall_rule_group(&self) -> GetFirewallRuleGroupFluentBuilder

Constructs a fluent builder for the GetFirewallRuleGroup operation.

source§

impl Client

source

pub fn get_firewall_rule_group_association( &self ) -> GetFirewallRuleGroupAssociationFluentBuilder

Constructs a fluent builder for the GetFirewallRuleGroupAssociation operation.

source§

impl Client

source

pub fn get_firewall_rule_group_policy( &self ) -> GetFirewallRuleGroupPolicyFluentBuilder

Constructs a fluent builder for the GetFirewallRuleGroupPolicy operation.

source§

impl Client

source

pub fn get_outpost_resolver(&self) -> GetOutpostResolverFluentBuilder

Constructs a fluent builder for the GetOutpostResolver operation.

source§

impl Client

source

pub fn get_resolver_config(&self) -> GetResolverConfigFluentBuilder

Constructs a fluent builder for the GetResolverConfig operation.

source§

impl Client

source

pub fn get_resolver_dnssec_config(&self) -> GetResolverDnssecConfigFluentBuilder

Constructs a fluent builder for the GetResolverDnssecConfig operation.

source§

impl Client

source

pub fn get_resolver_endpoint(&self) -> GetResolverEndpointFluentBuilder

Constructs a fluent builder for the GetResolverEndpoint operation.

source§

impl Client

source

pub fn get_resolver_query_log_config( &self ) -> GetResolverQueryLogConfigFluentBuilder

Constructs a fluent builder for the GetResolverQueryLogConfig operation.

source§

impl Client

source

pub fn get_resolver_query_log_config_association( &self ) -> GetResolverQueryLogConfigAssociationFluentBuilder

Constructs a fluent builder for the GetResolverQueryLogConfigAssociation operation.

source§

impl Client

source

pub fn get_resolver_query_log_config_policy( &self ) -> GetResolverQueryLogConfigPolicyFluentBuilder

Constructs a fluent builder for the GetResolverQueryLogConfigPolicy operation.

source§

impl Client

source

pub fn get_resolver_rule(&self) -> GetResolverRuleFluentBuilder

Constructs a fluent builder for the GetResolverRule operation.

source§

impl Client

source

pub fn get_resolver_rule_association( &self ) -> GetResolverRuleAssociationFluentBuilder

Constructs a fluent builder for the GetResolverRuleAssociation operation.

source§

impl Client

source

pub fn get_resolver_rule_policy(&self) -> GetResolverRulePolicyFluentBuilder

Constructs a fluent builder for the GetResolverRulePolicy operation.

source§

impl Client

source

pub fn import_firewall_domains(&self) -> ImportFirewallDomainsFluentBuilder

Constructs a fluent builder for the ImportFirewallDomains operation.

source§

impl Client

source

pub fn list_firewall_configs(&self) -> ListFirewallConfigsFluentBuilder

Constructs a fluent builder for the ListFirewallConfigs operation. This operation supports pagination; See into_paginator().

  • The fluent builder is configurable:
    • max_results(i32) / set_max_results(Option<i32>):
      required: false

      The maximum number of objects that you want Resolver to return for this request. If more objects are available, in the response, Resolver provides a NextToken value that you can use in a subsequent call to get the next batch of objects.

      If you don’t specify a value for MaxResults, Resolver returns up to 100 objects.


    • next_token(impl Into<String>) / set_next_token(Option<String>):
      required: false

      For the first call to this list request, omit this value.

      When you request a list of objects, Resolver returns at most the number of objects specified in MaxResults. If more objects are available for retrieval, Resolver returns a NextToken value in the response. To retrieve the next batch of objects, use the token that was returned for the prior request in your next request.


  • On success, responds with ListFirewallConfigsOutput with field(s):
    • next_token(Option<String>):

      If objects are still available for retrieval, Resolver returns this token in the response. To retrieve the next batch of objects, provide this token in your next request.

    • firewall_configs(Option<Vec::<FirewallConfig>>):

      The configurations for the firewall behavior provided by DNS Firewall for VPCs from Amazon Virtual Private Cloud (Amazon VPC).

  • On failure, responds with SdkError<ListFirewallConfigsError>
source§

impl Client

source

pub fn list_firewall_domain_lists(&self) -> ListFirewallDomainListsFluentBuilder

Constructs a fluent builder for the ListFirewallDomainLists operation. This operation supports pagination; See into_paginator().

  • The fluent builder is configurable:
    • max_results(i32) / set_max_results(Option<i32>):
      required: false

      The maximum number of objects that you want Resolver to return for this request. If more objects are available, in the response, Resolver provides a NextToken value that you can use in a subsequent call to get the next batch of objects.

      If you don’t specify a value for MaxResults, Resolver returns up to 100 objects.


    • next_token(impl Into<String>) / set_next_token(Option<String>):
      required: false

      For the first call to this list request, omit this value.

      When you request a list of objects, Resolver returns at most the number of objects specified in MaxResults. If more objects are available for retrieval, Resolver returns a NextToken value in the response. To retrieve the next batch of objects, use the token that was returned for the prior request in your next request.


  • On success, responds with ListFirewallDomainListsOutput with field(s):
  • On failure, responds with SdkError<ListFirewallDomainListsError>
source§

impl Client

source

pub fn list_firewall_domains(&self) -> ListFirewallDomainsFluentBuilder

Constructs a fluent builder for the ListFirewallDomains operation. This operation supports pagination; See into_paginator().

  • The fluent builder is configurable:
    • firewall_domain_list_id(impl Into<String>) / set_firewall_domain_list_id(Option<String>):
      required: true

      The ID of the domain list whose domains you want to retrieve.


    • max_results(i32) / set_max_results(Option<i32>):
      required: false

      The maximum number of objects that you want Resolver to return for this request. If more objects are available, in the response, Resolver provides a NextToken value that you can use in a subsequent call to get the next batch of objects.

      If you don’t specify a value for MaxResults, Resolver returns up to 100 objects.


    • next_token(impl Into<String>) / set_next_token(Option<String>):
      required: false

      For the first call to this list request, omit this value.

      When you request a list of objects, Resolver returns at most the number of objects specified in MaxResults. If more objects are available for retrieval, Resolver returns a NextToken value in the response. To retrieve the next batch of objects, use the token that was returned for the prior request in your next request.


  • On success, responds with ListFirewallDomainsOutput with field(s):
    • next_token(Option<String>):

      If objects are still available for retrieval, Resolver returns this token in the response. To retrieve the next batch of objects, provide this token in your next request.

    • domains(Option<Vec::<String>>):

      A list of the domains in the firewall domain list.

      This might be a partial list of the domains that you’ve defined in the domain list. For information, see MaxResults.

  • On failure, responds with SdkError<ListFirewallDomainsError>
source§

impl Client

source

pub fn list_firewall_rule_group_associations( &self ) -> ListFirewallRuleGroupAssociationsFluentBuilder

Constructs a fluent builder for the ListFirewallRuleGroupAssociations operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn list_firewall_rule_groups(&self) -> ListFirewallRuleGroupsFluentBuilder

Constructs a fluent builder for the ListFirewallRuleGroups operation. This operation supports pagination; See into_paginator().

  • The fluent builder is configurable:
    • max_results(i32) / set_max_results(Option<i32>):
      required: false

      The maximum number of objects that you want Resolver to return for this request. If more objects are available, in the response, Resolver provides a NextToken value that you can use in a subsequent call to get the next batch of objects.

      If you don’t specify a value for MaxResults, Resolver returns up to 100 objects.


    • next_token(impl Into<String>) / set_next_token(Option<String>):
      required: false

      For the first call to this list request, omit this value.

      When you request a list of objects, Resolver returns at most the number of objects specified in MaxResults. If more objects are available for retrieval, Resolver returns a NextToken value in the response. To retrieve the next batch of objects, use the token that was returned for the prior request in your next request.


  • On success, responds with ListFirewallRuleGroupsOutput with field(s):
  • On failure, responds with SdkError<ListFirewallRuleGroupsError>
source§

impl Client

source

pub fn list_firewall_rules(&self) -> ListFirewallRulesFluentBuilder

Constructs a fluent builder for the ListFirewallRules operation. This operation supports pagination; See into_paginator().

  • The fluent builder is configurable:
    • firewall_rule_group_id(impl Into<String>) / set_firewall_rule_group_id(Option<String>):
      required: true

      The unique identifier of the firewall rule group that you want to retrieve the rules for.


    • priority(i32) / set_priority(Option<i32>):
      required: false

      Optional additional filter for the rules to retrieve.

      The setting that determines the processing order of the rules in a rule group. DNS Firewall processes the rules in a rule group by order of priority, starting from the lowest setting.


    • action(Action) / set_action(Option<Action>):
      required: false

      Optional additional filter for the rules to retrieve.

      The action that DNS Firewall should take on a DNS query when it matches one of the domains in the rule’s domain list:

      • ALLOW - Permit the request to go through.

      • ALERT - Permit the request to go through but send an alert to the logs.

      • BLOCK - Disallow the request. If this is specified, additional handling details are provided in the rule’s BlockResponse setting.


    • max_results(i32) / set_max_results(Option<i32>):
      required: false

      The maximum number of objects that you want Resolver to return for this request. If more objects are available, in the response, Resolver provides a NextToken value that you can use in a subsequent call to get the next batch of objects.

      If you don’t specify a value for MaxResults, Resolver returns up to 100 objects.


    • next_token(impl Into<String>) / set_next_token(Option<String>):
      required: false

      For the first call to this list request, omit this value.

      When you request a list of objects, Resolver returns at most the number of objects specified in MaxResults. If more objects are available for retrieval, Resolver returns a NextToken value in the response. To retrieve the next batch of objects, use the token that was returned for the prior request in your next request.


  • On success, responds with ListFirewallRulesOutput with field(s):
    • next_token(Option<String>):

      If objects are still available for retrieval, Resolver returns this token in the response. To retrieve the next batch of objects, provide this token in your next request.

    • firewall_rules(Option<Vec::<FirewallRule>>):

      A list of the rules that you have defined.

      This might be a partial list of the firewall rules that you’ve defined. For information, see MaxResults.

  • On failure, responds with SdkError<ListFirewallRulesError>
source§

impl Client

source

pub fn list_outpost_resolvers(&self) -> ListOutpostResolversFluentBuilder

Constructs a fluent builder for the ListOutpostResolvers operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn list_resolver_configs(&self) -> ListResolverConfigsFluentBuilder

Constructs a fluent builder for the ListResolverConfigs operation. This operation supports pagination; See into_paginator().

  • The fluent builder is configurable:
    • max_results(i32) / set_max_results(Option<i32>):
      required: false

      The maximum number of Resolver configurations that you want to return in the response to a ListResolverConfigs request. If you don’t specify a value for MaxResults, up to 100 Resolver configurations are returned.


    • next_token(impl Into<String>) / set_next_token(Option<String>):
      required: false

      (Optional) If the current Amazon Web Services account has more than MaxResults Resolver configurations, use NextToken to get the second and subsequent pages of results.

      For the first ListResolverConfigs request, omit this value.

      For the second and subsequent requests, get the value of NextToken from the previous response and specify that value for NextToken in the request.


  • On success, responds with ListResolverConfigsOutput with field(s):
    • next_token(Option<String>):

      If a response includes the last of the Resolver configurations that are associated with the current Amazon Web Services account, NextToken doesn’t appear in the response.

      If a response doesn’t include the last of the configurations, you can get more configurations by submitting another ListResolverConfigs request. Get the value of NextToken that Amazon Route 53 returned in the previous response and include it in NextToken in the next request.

    • resolver_configs(Option<Vec::<ResolverConfig>>):

      An array that contains one ResolverConfigs element for each Resolver configuration that is associated with the current Amazon Web Services account.

  • On failure, responds with SdkError<ListResolverConfigsError>
source§

impl Client

source

pub fn list_resolver_dnssec_configs( &self ) -> ListResolverDnssecConfigsFluentBuilder

Constructs a fluent builder for the ListResolverDnssecConfigs operation. This operation supports pagination; See into_paginator().

  • The fluent builder is configurable:
    • max_results(i32) / set_max_results(Option<i32>):
      required: false

      Optional: An integer that specifies the maximum number of DNSSEC configuration results that you want Amazon Route 53 to return. If you don’t specify a value for MaxResults, Route 53 returns up to 100 configuration per page.


    • next_token(impl Into<String>) / set_next_token(Option<String>):
      required: false

      (Optional) If the current Amazon Web Services account has more than MaxResults DNSSEC configurations, use NextToken to get the second and subsequent pages of results.

      For the first ListResolverDnssecConfigs request, omit this value.

      For the second and subsequent requests, get the value of NextToken from the previous response and specify that value for NextToken in the request.


    • filters(Filter) / set_filters(Option<Vec::<Filter>>):
      required: false

      An optional specification to return a subset of objects.


  • On success, responds with ListResolverDnssecConfigsOutput with field(s):
    • next_token(Option<String>):

      If a response includes the last of the DNSSEC configurations that are associated with the current Amazon Web Services account, NextToken doesn’t appear in the response.

      If a response doesn’t include the last of the configurations, you can get more configurations by submitting another ListResolverDnssecConfigs request. Get the value of NextToken that Amazon Route 53 returned in the previous response and include it in NextToken in the next request.

    • resolver_dnssec_configs(Option<Vec::<ResolverDnssecConfig>>):

      An array that contains one ResolverDnssecConfig element for each configuration for DNSSEC validation that is associated with the current Amazon Web Services account. It doesn’t contain disabled DNSSEC configurations for the resource.

  • On failure, responds with SdkError<ListResolverDnssecConfigsError>
source§

impl Client

source

pub fn list_resolver_endpoint_ip_addresses( &self ) -> ListResolverEndpointIpAddressesFluentBuilder

Constructs a fluent builder for the ListResolverEndpointIpAddresses operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn list_resolver_endpoints(&self) -> ListResolverEndpointsFluentBuilder

Constructs a fluent builder for the ListResolverEndpoints operation. This operation supports pagination; See into_paginator().

  • The fluent builder is configurable:
    • max_results(i32) / set_max_results(Option<i32>):
      required: false

      The maximum number of Resolver endpoints that you want to return in the response to a ListResolverEndpoints request. If you don’t specify a value for MaxResults, Resolver returns up to 100 Resolver endpoints.


    • next_token(impl Into<String>) / set_next_token(Option<String>):
      required: false

      For the first ListResolverEndpoints request, omit this value.

      If you have more than MaxResults Resolver endpoints, you can submit another ListResolverEndpoints request to get the next group of Resolver endpoints. In the next request, specify the value of NextToken from the previous response.


    • filters(Filter) / set_filters(Option<Vec::<Filter>>):
      required: false

      An optional specification to return a subset of Resolver endpoints, such as all inbound Resolver endpoints.

      If you submit a second or subsequent ListResolverEndpoints request and specify the NextToken parameter, you must use the same values for Filters, if any, as in the previous request.


  • On success, responds with ListResolverEndpointsOutput with field(s):
    • next_token(Option<String>):

      If more than MaxResults IP addresses match the specified criteria, you can submit another ListResolverEndpoint request to get the next group of results. In the next request, specify the value of NextToken from the previous response.

    • max_results(Option<i32>):

      The value that you specified for MaxResults in the request.

    • resolver_endpoints(Option<Vec::<ResolverEndpoint>>):

      The Resolver endpoints that were created by using the current Amazon Web Services account, and that match the specified filters, if any.

  • On failure, responds with SdkError<ListResolverEndpointsError>
source§

impl Client

source

pub fn list_resolver_query_log_config_associations( &self ) -> ListResolverQueryLogConfigAssociationsFluentBuilder

Constructs a fluent builder for the ListResolverQueryLogConfigAssociations operation. This operation supports pagination; See into_paginator().

  • The fluent builder is configurable:
    • max_results(i32) / set_max_results(Option<i32>):
      required: false

      The maximum number of query logging associations that you want to return in the response to a ListResolverQueryLogConfigAssociations request. If you don’t specify a value for MaxResults, Resolver returns up to 100 query logging associations.


    • next_token(impl Into<String>) / set_next_token(Option<String>):
      required: false

      For the first ListResolverQueryLogConfigAssociations request, omit this value.

      If there are more than MaxResults query logging associations that match the values that you specify for Filters, you can submit another ListResolverQueryLogConfigAssociations request to get the next group of associations. In the next request, specify the value of NextToken from the previous response.


    • filters(Filter) / set_filters(Option<Vec::<Filter>>):
      required: false

      An optional specification to return a subset of query logging associations.

      If you submit a second or subsequent ListResolverQueryLogConfigAssociations request and specify the NextToken parameter, you must use the same values for Filters, if any, as in the previous request.


    • sort_by(impl Into<String>) / set_sort_by(Option<String>):
      required: false

      The element that you want Resolver to sort query logging associations by.

      If you submit a second or subsequent ListResolverQueryLogConfigAssociations request and specify the NextToken parameter, you must use the same value for SortBy, if any, as in the previous request.

      Valid values include the following elements:

      • CreationTime: The ID of the query logging association.

      • Error: If the value of Status is FAILED, the value of Error indicates the cause:

        • DESTINATION_NOT_FOUND: The specified destination (for example, an Amazon S3 bucket) was deleted.

        • ACCESS_DENIED: Permissions don’t allow sending logs to the destination.

        If Status is a value other than FAILED, ERROR is null.

      • Id: The ID of the query logging association

      • ResolverQueryLogConfigId: The ID of the query logging configuration

      • ResourceId: The ID of the VPC that is associated with the query logging configuration

      • Status: The current status of the configuration. Valid values include the following:

        • CREATING: Resolver is creating an association between an Amazon VPC and a query logging configuration.

        • CREATED: The association between an Amazon VPC and a query logging configuration was successfully created. Resolver is logging queries that originate in the specified VPC.

        • DELETING: Resolver is deleting this query logging association.

        • FAILED: Resolver either couldn’t create or couldn’t delete the query logging association. Here are two common causes:

          • The specified destination (for example, an Amazon S3 bucket) was deleted.

          • Permissions don’t allow sending logs to the destination.


    • sort_order(SortOrder) / set_sort_order(Option<SortOrder>):
      required: false

      If you specified a value for SortBy, the order that you want query logging associations to be listed in, ASCENDING or DESCENDING.

      If you submit a second or subsequent ListResolverQueryLogConfigAssociations request and specify the NextToken parameter, you must use the same value for SortOrder, if any, as in the previous request.


  • On success, responds with ListResolverQueryLogConfigAssociationsOutput with field(s):
    • next_token(Option<String>):

      If there are more than MaxResults query logging associations, you can submit another ListResolverQueryLogConfigAssociations request to get the next group of associations. In the next request, specify the value of NextToken from the previous response.

    • total_count(i32):

      The total number of query logging associations that were created by the current account in the specified Region. This count can differ from the number of associations that are returned in a ListResolverQueryLogConfigAssociations response, depending on the values that you specify in the request.

    • total_filtered_count(i32):

      The total number of query logging associations that were created by the current account in the specified Region and that match the filters that were specified in the ListResolverQueryLogConfigAssociations request. For the total number of associations that were created by the current account in the specified Region, see TotalCount.

    • resolver_query_log_config_associations(Option<Vec::<ResolverQueryLogConfigAssociation>>):

      A list that contains one ResolverQueryLogConfigAssociations element for each query logging association that matches the values that you specified for Filter.

  • On failure, responds with SdkError<ListResolverQueryLogConfigAssociationsError>
source§

impl Client

source

pub fn list_resolver_query_log_configs( &self ) -> ListResolverQueryLogConfigsFluentBuilder

Constructs a fluent builder for the ListResolverQueryLogConfigs operation. This operation supports pagination; See into_paginator().

  • The fluent builder is configurable:
    • max_results(i32) / set_max_results(Option<i32>):
      required: false

      The maximum number of query logging configurations that you want to return in the response to a ListResolverQueryLogConfigs request. If you don’t specify a value for MaxResults, Resolver returns up to 100 query logging configurations.


    • next_token(impl Into<String>) / set_next_token(Option<String>):
      required: false

      For the first ListResolverQueryLogConfigs request, omit this value.

      If there are more than MaxResults query logging configurations that match the values that you specify for Filters, you can submit another ListResolverQueryLogConfigs request to get the next group of configurations. In the next request, specify the value of NextToken from the previous response.


    • filters(Filter) / set_filters(Option<Vec::<Filter>>):
      required: false

      An optional specification to return a subset of query logging configurations.

      If you submit a second or subsequent ListResolverQueryLogConfigs request and specify the NextToken parameter, you must use the same values for Filters, if any, as in the previous request.


    • sort_by(impl Into<String>) / set_sort_by(Option<String>):
      required: false

      The element that you want Resolver to sort query logging configurations by.

      If you submit a second or subsequent ListResolverQueryLogConfigs request and specify the NextToken parameter, you must use the same value for SortBy, if any, as in the previous request.

      Valid values include the following elements:

      • Arn: The ARN of the query logging configuration

      • AssociationCount: The number of VPCs that are associated with the specified configuration

      • CreationTime: The date and time that Resolver returned when the configuration was created

      • CreatorRequestId: The value that was specified for CreatorRequestId when the configuration was created

      • DestinationArn: The location that logs are sent to

      • Id: The ID of the configuration

      • Name: The name of the configuration

      • OwnerId: The Amazon Web Services account number of the account that created the configuration

      • ShareStatus: Whether the configuration is shared with other Amazon Web Services accounts or shared with the current account by another Amazon Web Services account. Sharing is configured through Resource Access Manager (RAM).

      • Status: The current status of the configuration. Valid values include the following:

        • CREATING: Resolver is creating the query logging configuration.

        • CREATED: The query logging configuration was successfully created. Resolver is logging queries that originate in the specified VPC.

        • DELETING: Resolver is deleting this query logging configuration.

        • FAILED: Resolver either couldn’t create or couldn’t delete the query logging configuration. Here are two common causes:

          • The specified destination (for example, an Amazon S3 bucket) was deleted.

          • Permissions don’t allow sending logs to the destination.


    • sort_order(SortOrder) / set_sort_order(Option<SortOrder>):
      required: false

      If you specified a value for SortBy, the order that you want query logging configurations to be listed in, ASCENDING or DESCENDING.

      If you submit a second or subsequent ListResolverQueryLogConfigs request and specify the NextToken parameter, you must use the same value for SortOrder, if any, as in the previous request.


  • On success, responds with ListResolverQueryLogConfigsOutput with field(s):
    • next_token(Option<String>):

      If there are more than MaxResults query logging configurations, you can submit another ListResolverQueryLogConfigs request to get the next group of configurations. In the next request, specify the value of NextToken from the previous response.

    • total_count(i32):

      The total number of query logging configurations that were created by the current account in the specified Region. This count can differ from the number of query logging configurations that are returned in a ListResolverQueryLogConfigs response, depending on the values that you specify in the request.

    • total_filtered_count(i32):

      The total number of query logging configurations that were created by the current account in the specified Region and that match the filters that were specified in the ListResolverQueryLogConfigs request. For the total number of query logging configurations that were created by the current account in the specified Region, see TotalCount.

    • resolver_query_log_configs(Option<Vec::<ResolverQueryLogConfig>>):

      A list that contains one ResolverQueryLogConfig element for each query logging configuration that matches the values that you specified for Filter.

  • On failure, responds with SdkError<ListResolverQueryLogConfigsError>
source§

impl Client

source

pub fn list_resolver_rule_associations( &self ) -> ListResolverRuleAssociationsFluentBuilder

Constructs a fluent builder for the ListResolverRuleAssociations operation. This operation supports pagination; See into_paginator().

  • The fluent builder is configurable:
    • max_results(i32) / set_max_results(Option<i32>):
      required: false

      The maximum number of rule associations that you want to return in the response to a ListResolverRuleAssociations request. If you don’t specify a value for MaxResults, Resolver returns up to 100 rule associations.


    • next_token(impl Into<String>) / set_next_token(Option<String>):
      required: false

      For the first ListResolverRuleAssociation request, omit this value.

      If you have more than MaxResults rule associations, you can submit another ListResolverRuleAssociation request to get the next group of rule associations. In the next request, specify the value of NextToken from the previous response.


    • filters(Filter) / set_filters(Option<Vec::<Filter>>):
      required: false

      An optional specification to return a subset of Resolver rules, such as Resolver rules that are associated with the same VPC ID.

      If you submit a second or subsequent ListResolverRuleAssociations request and specify the NextToken parameter, you must use the same values for Filters, if any, as in the previous request.


  • On success, responds with ListResolverRuleAssociationsOutput with field(s):
    • next_token(Option<String>):

      If more than MaxResults rule associations match the specified criteria, you can submit another ListResolverRuleAssociation request to get the next group of results. In the next request, specify the value of NextToken from the previous response.

    • max_results(Option<i32>):

      The value that you specified for MaxResults in the request.

    • resolver_rule_associations(Option<Vec::<ResolverRuleAssociation>>):

      The associations that were created between Resolver rules and VPCs using the current Amazon Web Services account, and that match the specified filters, if any.

  • On failure, responds with SdkError<ListResolverRuleAssociationsError>
source§

impl Client

source

pub fn list_resolver_rules(&self) -> ListResolverRulesFluentBuilder

Constructs a fluent builder for the ListResolverRules operation. This operation supports pagination; See into_paginator().

  • The fluent builder is configurable:
    • max_results(i32) / set_max_results(Option<i32>):
      required: false

      The maximum number of Resolver rules that you want to return in the response to a ListResolverRules request. If you don’t specify a value for MaxResults, Resolver returns up to 100 Resolver rules.


    • next_token(impl Into<String>) / set_next_token(Option<String>):
      required: false

      For the first ListResolverRules request, omit this value.

      If you have more than MaxResults Resolver rules, you can submit another ListResolverRules request to get the next group of Resolver rules. In the next request, specify the value of NextToken from the previous response.


    • filters(Filter) / set_filters(Option<Vec::<Filter>>):
      required: false

      An optional specification to return a subset of Resolver rules, such as all Resolver rules that are associated with the same Resolver endpoint.

      If you submit a second or subsequent ListResolverRules request and specify the NextToken parameter, you must use the same values for Filters, if any, as in the previous request.


  • On success, responds with ListResolverRulesOutput with field(s):
    • next_token(Option<String>):

      If more than MaxResults Resolver rules match the specified criteria, you can submit another ListResolverRules request to get the next group of results. In the next request, specify the value of NextToken from the previous response.

    • max_results(Option<i32>):

      The value that you specified for MaxResults in the request.

    • resolver_rules(Option<Vec::<ResolverRule>>):

      The Resolver rules that were created using the current Amazon Web Services account and that match the specified filters, if any.

  • On failure, responds with SdkError<ListResolverRulesError>
source§

impl Client

source

pub fn list_tags_for_resource(&self) -> ListTagsForResourceFluentBuilder

Constructs a fluent builder for the ListTagsForResource operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn put_firewall_rule_group_policy( &self ) -> PutFirewallRuleGroupPolicyFluentBuilder

Constructs a fluent builder for the PutFirewallRuleGroupPolicy operation.

source§

impl Client

source

pub fn put_resolver_query_log_config_policy( &self ) -> PutResolverQueryLogConfigPolicyFluentBuilder

Constructs a fluent builder for the PutResolverQueryLogConfigPolicy operation.

source§

impl Client

source

pub fn put_resolver_rule_policy(&self) -> PutResolverRulePolicyFluentBuilder

Constructs a fluent builder for the PutResolverRulePolicy operation.

  • The fluent builder is configurable:
    • arn(impl Into<String>) / set_arn(Option<String>):
      required: true

      The Amazon Resource Name (ARN) of the rule that you want to share with another account.


    • resolver_rule_policy(impl Into<String>) / set_resolver_rule_policy(Option<String>):
      required: true

      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.


  • On success, responds with PutResolverRulePolicyOutput with field(s):
  • On failure, responds with SdkError<PutResolverRulePolicyError>
source§

impl Client

source

pub fn tag_resource(&self) -> TagResourceFluentBuilder

Constructs a fluent builder for the TagResource operation.

source§

impl Client

source

pub fn untag_resource(&self) -> UntagResourceFluentBuilder

Constructs a fluent builder for the UntagResource operation.

source§

impl Client

source

pub fn update_firewall_config(&self) -> UpdateFirewallConfigFluentBuilder

Constructs a fluent builder for the UpdateFirewallConfig operation.

source§

impl Client

source

pub fn update_firewall_domains(&self) -> UpdateFirewallDomainsFluentBuilder

Constructs a fluent builder for the UpdateFirewallDomains operation.

source§

impl Client

source

pub fn update_firewall_rule(&self) -> UpdateFirewallRuleFluentBuilder

Constructs a fluent builder for the UpdateFirewallRule operation.

source§

impl Client

source

pub fn update_firewall_rule_group_association( &self ) -> UpdateFirewallRuleGroupAssociationFluentBuilder

Constructs a fluent builder for the UpdateFirewallRuleGroupAssociation operation.

source§

impl Client

source

pub fn update_outpost_resolver(&self) -> UpdateOutpostResolverFluentBuilder

Constructs a fluent builder for the UpdateOutpostResolver operation.

source§

impl Client

source

pub fn update_resolver_config(&self) -> UpdateResolverConfigFluentBuilder

Constructs a fluent builder for the UpdateResolverConfig operation.

source§

impl Client

source

pub fn update_resolver_dnssec_config( &self ) -> UpdateResolverDnssecConfigFluentBuilder

Constructs a fluent builder for the UpdateResolverDnssecConfig operation.

source§

impl Client

source

pub fn update_resolver_endpoint(&self) -> UpdateResolverEndpointFluentBuilder

Constructs a fluent builder for the UpdateResolverEndpoint operation.

source§

impl Client

source

pub fn update_resolver_rule(&self) -> UpdateResolverRuleFluentBuilder

Constructs a fluent builder for the UpdateResolverRule operation.

source§

impl Client

source

pub fn from_conf(conf: Config) -> Self

Creates a new client from the service Config.

§Panics

This method will panic in the following cases:

  • Retries or timeouts are enabled without a sleep_impl configured.
  • Identity caching is enabled without a sleep_impl and time_source configured.
  • No behavior_version is provided.

The panic message for each of these will have instructions on how to resolve them.

source

pub fn config(&self) -> &Config

Returns the client’s configuration.

source§

impl Client

source

pub fn new(sdk_config: &SdkConfig) -> Self

Creates a new client from an SDK Config.

§Panics
  • This method will panic if the sdk_config is missing an async sleep implementation. If you experience this panic, set the sleep_impl on the Config passed into this function to fix it.
  • This method will panic if the sdk_config is missing an HTTP connector. If you experience this panic, set the http_connector on the Config passed into this function to fix it.
  • This method will panic if no BehaviorVersion is provided. If you experience this panic, set behavior_version on the Config or enable the behavior-version-latest Cargo feature.

Trait Implementations§

source§

impl Clone for Client

source§

fn clone(&self) -> Client

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Client

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl Freeze for Client

§

impl !RefUnwindSafe for Client

§

impl Send for Client

§

impl Sync for Client

§

impl Unpin for Client

§

impl !UnwindSafe for Client

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts 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 more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts 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
source§

impl<Unshared, Shared> IntoShared<Shared> for Unshared
where Shared: FromUnshared<Unshared>,

source§

fn into_shared(self) -> Shared

Creates a shared type from an unshared type.
source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more