Class: AWS.Route53Resolver

Inherits:
AWS.Service show all
Identifier:
route53resolver
API Version:
2018-04-01
Defined in:
(unknown)

Overview

Constructs a service interface object. Each API operation is exposed as a function on service.

Service Description

When you create a VPC using Amazon VPC, you automatically get DNS resolution within the VPC from Route 53 Resolver. By default, Resolver answers DNS queries for VPC domain names such as domain names for EC2 instances or ELB load balancers. Resolver performs recursive lookups against public name servers for all other domain names.

You can also configure DNS resolution between your VPC and your network over a Direct Connect or VPN connection:

Forward DNS queries from resolvers on your network to Route 53 Resolver

DNS resolvers on your network can forward DNS queries to Resolver in a specified VPC. This allows your DNS resolvers to easily resolve domain names for AWS resources such as EC2 instances or records in a Route 53 private hosted zone. For more information, see How DNS Resolvers on Your Network Forward DNS Queries to Route 53 Resolver in the Amazon Route 53 Developer Guide.

Conditionally forward queries from a VPC to resolvers on your network

You can configure Resolver to forward queries that it receives from EC2 instances in your VPCs to DNS resolvers on your network. To forward selected queries, you create Resolver rules that specify the domain names for the DNS queries that you want to forward (such as example.com), and the IP addresses of the DNS resolvers on your network that you want to forward the queries to. If a query matches multiple rules (example.com, acme.example.com), Resolver chooses the rule with the most specific match (acme.example.com) and forwards the query to the IP addresses that you specified in that rule. For more information, see How Route 53 Resolver Forwards DNS Queries from Your VPCs to Your Network in the Amazon Route 53 Developer Guide.

Like Amazon VPC, Resolver is regional. In each region where you have VPCs, you can choose whether to forward queries from your VPCs to your network (outbound queries), from your network to your VPCs (inbound queries), or both.

Sending a Request Using Route53Resolver

var route53resolver = new AWS.Route53Resolver();
route53resolver.associateResolverEndpointIpAddress(params, function (err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Locking the API Version

In order to ensure that the Route53Resolver object uses this specific API, you can construct the object by passing the apiVersion option to the constructor:

var route53resolver = new AWS.Route53Resolver({apiVersion: '2018-04-01'});

You can also set the API version globally in AWS.config.apiVersions using the route53resolver service identifier:

AWS.config.apiVersions = {
  route53resolver: '2018-04-01',
  // other service API versions
};

var route53resolver = new AWS.Route53Resolver();

Version:

  • 2018-04-01

Constructor Summary collapse

Property Summary collapse

Properties inherited from AWS.Service

apiVersions

Method Summary collapse

Methods inherited from AWS.Service

makeRequest, makeUnauthenticatedRequest, waitFor, setupRequestListeners, defineService

Constructor Details

new AWS.Route53Resolver(options = {}) ⇒ Object

Constructs a service object. This object has one method for each API operation.

Examples:

Constructing a Route53Resolver object

var route53resolver = new AWS.Route53Resolver({apiVersion: '2018-04-01'});

Options Hash (options):

  • params (map)

    An optional map of parameters to bind to every request sent by this service object. For more information on bound parameters, see "Working with Services" in the Getting Started Guide.

  • endpoint (String|AWS.Endpoint)

    The endpoint URI to send requests to. The default endpoint is built from the configured region. The endpoint should be a string like 'https://{service}.{region}.amazonaws.com' or an Endpoint object.

  • accessKeyId (String)

    your AWS access key ID.

  • secretAccessKey (String)

    your AWS secret access key.

  • sessionToken (AWS.Credentials)

    the optional AWS session token to sign requests with.

  • credentials (AWS.Credentials)

    the AWS credentials to sign requests with. You can either specify this object, or specify the accessKeyId and secretAccessKey options directly.

  • credentialProvider (AWS.CredentialProviderChain)

    the provider chain used to resolve credentials if no static credentials property is set.

  • region (String)

    the region to send service requests to. See AWS.Route53Resolver.region for more information.

  • maxRetries (Integer)

    the maximum amount of retries to attempt with a request. See AWS.Route53Resolver.maxRetries for more information.

  • maxRedirects (Integer)

    the maximum amount of redirects to follow with a request. See AWS.Route53Resolver.maxRedirects for more information.

  • sslEnabled (Boolean)

    whether to enable SSL for requests.

  • paramValidation (Boolean|map)

    whether input parameters should be validated against the operation description before sending the request. Defaults to true. Pass a map to enable any of the following specific validation features:

    • min [Boolean] — Validates that a value meets the min constraint. This is enabled by default when paramValidation is set to true.
    • max [Boolean] — Validates that a value meets the max constraint.
    • pattern [Boolean] — Validates that a string value matches a regular expression.
    • enum [Boolean] — Validates that a string value matches one of the allowable enum values.
  • computeChecksums (Boolean)

    whether to compute checksums for payload bodies when the service accepts it (currently supported in S3 only)

  • convertResponseTypes (Boolean)

    whether types are converted when parsing response data. Currently only supported for JSON based services. Turning this off may improve performance on large response payloads. Defaults to true.

  • correctClockSkew (Boolean)

    whether to apply a clock skew correction and retry requests that fail because of an skewed client clock. Defaults to false.

  • s3ForcePathStyle (Boolean)

    whether to force path style URLs for S3 objects.

  • s3BucketEndpoint (Boolean)

    whether the provided endpoint addresses an individual bucket (false if it addresses the root API endpoint). Note that setting this configuration option requires an endpoint to be provided explicitly to the service constructor.

  • s3DisableBodySigning (Boolean)

    whether S3 body signing should be disabled when using signature version v4. Body signing can only be disabled when using https. Defaults to true.

  • s3UsEast1RegionalEndpoint ('legacy'|'regional')

    when region is set to 'us-east-1', whether to send s3 request to global endpoints or 'us-east-1' regional endpoints. This config is only applicable to S3 client. Defaults to legacy

  • s3UseArnRegion (Boolean)

    whether to override the request region with the region inferred from requested resource's ARN. Only available for S3 buckets Defaults to true

  • retryDelayOptions (map)

    A set of options to configure the retry delay on retryable errors. Currently supported options are:

    • base [Integer] — The base number of milliseconds to use in the exponential backoff for operation retries. Defaults to 100 ms for all services except DynamoDB, where it defaults to 50ms.
    • customBackoff [function] — A custom function that accepts a retry count and error and returns the amount of time to delay in milliseconds. If the result is a non-zero negative value, no further retry attempts will be made. The base option will be ignored if this option is supplied. The function is only called for retryable errors.
  • httpOptions (map)

    A set of options to pass to the low-level HTTP request. Currently supported options are:

    • proxy [String] — the URL to proxy requests through
    • agent [http.Agent, https.Agent] — the Agent object to perform HTTP requests with. Used for connection pooling. Defaults to the global agent (http.globalAgent) for non-SSL connections. Note that for SSL connections, a special Agent object is used in order to enable peer certificate verification. This feature is only available in the Node.js environment.
    • connectTimeout [Integer] — Sets the socket to timeout after failing to establish a connection with the server after connectTimeout milliseconds. This timeout has no effect once a socket connection has been established.
    • timeout [Integer] — Sets the socket to timeout after timeout milliseconds of inactivity on the socket. Defaults to two minutes (120000).
    • xhrAsync [Boolean] — Whether the SDK will send asynchronous HTTP requests. Used in the browser environment only. Set to false to send requests synchronously. Defaults to true (async on).
    • xhrWithCredentials [Boolean] — Sets the "withCredentials" property of an XMLHttpRequest object. Used in the browser environment only. Defaults to false.
  • apiVersion (String, Date)

    a String in YYYY-MM-DD format (or a date) that represents the latest possible API version that can be used in all services (unless overridden by apiVersions). Specify 'latest' to use the latest possible version.

  • apiVersions (map<String, String|Date>)

    a map of service identifiers (the lowercase service class name) with the API version to use when instantiating a service. Specify 'latest' for each individual that can use the latest available version.

  • logger (#write, #log)

    an object that responds to .write() (like a stream) or .log() (like the console object) in order to log information about requests

  • systemClockOffset (Number)

    an offset value in milliseconds to apply to all signing times. Use this to compensate for clock skew when your system may be out of sync with the service time. Note that this configuration option can only be applied to the global AWS.config object and cannot be overridden in service-specific configuration. Defaults to 0 milliseconds.

  • signatureVersion (String)

    the signature version to sign requests with (overriding the API configuration). Possible values are: 'v2', 'v3', 'v4'.

  • signatureCache (Boolean)

    whether the signature to sign requests with (overriding the API configuration) is cached. Only applies to the signature version 'v4'. Defaults to true.

  • dynamoDbCrc32 (Boolean)

    whether to validate the CRC32 checksum of HTTP response bodies returned by DynamoDB. Default: true.

  • useAccelerateEndpoint (Boolean)

    Whether to use the S3 Transfer Acceleration endpoint with the S3 service. Default: false.

  • clientSideMonitoring (Boolean)

    whether to collect and publish this client's performance metrics of all its API requests.

  • endpointDiscoveryEnabled (Boolean|undefined)

    whether to call operations with endpoints given by service dynamically. Setting this

  • endpointCacheSize (Number)

    the size of the global cache storing endpoints from endpoint discovery operations. Once endpoint cache is created, updating this setting cannot change existing cache size. Defaults to 1000

  • hostPrefixEnabled (Boolean)

    whether to marshal request parameters to the prefix of hostname. Defaults to true.

  • stsRegionalEndpoints ('legacy'|'regional')

    whether to send sts request to global endpoints or regional endpoints. Defaults to 'legacy'.

Property Details

endpointAWS.Endpoint (readwrite)

Returns an Endpoint object representing the endpoint URL for service requests.

Returns:

  • (AWS.Endpoint)

    an Endpoint object representing the endpoint URL for service requests.

Method Details

associateResolverEndpointIpAddress(params = {}, callback) ⇒ AWS.Request

Adds IP addresses to an inbound or an outbound Resolver endpoint. If you want to add more than one IP address, submit one AssociateResolverEndpointIpAddress request for each IP address.

To remove an IP address from an endpoint, see DisassociateResolverEndpointIpAddress.

Examples:

Calling the associateResolverEndpointIpAddress operation

var params = {
  IpAddress: { /* required */
    Ip: 'STRING_VALUE',
    IpId: 'STRING_VALUE',
    SubnetId: 'STRING_VALUE'
  },
  ResolverEndpointId: 'STRING_VALUE' /* required */
};
route53resolver.associateResolverEndpointIpAddress(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ResolverEndpointId — (String)

      The ID of the Resolver endpoint that you want to associate IP addresses with.

    • IpAddress — (map)

      Either the IPv4 address that you want to add to a Resolver endpoint or a subnet ID. If you specify a subnet ID, Resolver chooses an IP address for you from the available IPs in the specified subnet.

      • IpId — (String)

        Only when removing an IP address from a Resolver endpoint: The ID of the IP address that you want to remove. To get this ID, use GetResolverEndpoint.

      • SubnetId — (String)

        The ID of the subnet that includes the IP address that you want to update. To get this ID, use GetResolverEndpoint.

      • Ip — (String)

        The new IP address.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • ResolverEndpoint — (map)

        The response to an AssociateResolverEndpointIpAddress request.

        • Id — (String)

          The ID of the Resolver endpoint.

        • CreatorRequestId — (String)

          A unique string that identifies the request that created the Resolver endpoint. The CreatorRequestId allows failed requests to be retried without the risk of executing the operation twice.

        • Arn — (String)

          The ARN (Amazon Resource Name) for the Resolver endpoint.

        • Name — (String)

          The name that you assigned to the Resolver endpoint when you submitted a CreateResolverEndpoint request.

        • SecurityGroupIds — (Array<String>)

          The ID of one or more security groups that control access to this VPC. The security group must include one or more inbound rules (for inbound endpoints) or outbound rules (for outbound endpoints). Inbound and outbound rules must allow TCP and UDP access. For inbound access, open port 53. For outbound access, open the port that you're using for DNS queries on your network.

        • Direction — (String)

          Indicates whether the Resolver endpoint allows inbound or outbound DNS queries:

          • INBOUND: allows DNS queries to your VPC from your network

          • OUTBOUND: allows DNS queries from your VPC to your network

          Possible values include:
          • "INBOUND"
          • "OUTBOUND"
        • IpAddressCount — (Integer)

          The number of IP addresses that the Resolver endpoint can use for DNS queries.

        • HostVPCId — (String)

          The ID of the VPC that you want to create the Resolver endpoint in.

        • Status — (String)

          A code that specifies the current status of the Resolver endpoint. Valid values include the following:

          • CREATING: Resolver is creating and configuring one or more Amazon VPC network interfaces for this endpoint.

          • OPERATIONAL: The Amazon VPC network interfaces for this endpoint are correctly configured and able to pass inbound or outbound DNS queries between your network and Resolver.

          • UPDATING: Resolver is associating or disassociating one or more network interfaces with this endpoint.

          • AUTO_RECOVERING: Resolver is trying to recover one or more of the network interfaces that are associated with this endpoint. During the recovery process, the endpoint functions with limited capacity because of the limit on the number of DNS queries per IP address (per network interface). For the current limit, see Limits on Route 53 Resolver.

          • ACTION_NEEDED: This endpoint is unhealthy, and Resolver can't automatically recover it. To resolve the problem, we recommend that you check each IP address that you associated with the endpoint. For each IP address that isn't available, add another IP address and then delete the IP address that isn't available. (An endpoint must always include at least two IP addresses.) A status of ACTION_NEEDED can have a variety of causes. Here are two common causes:

            • One or more of the network interfaces that are associated with the endpoint were deleted using Amazon VPC.

            • The network interface couldn't be created for some reason that's outside the control of Resolver.

          • DELETING: Resolver is deleting this endpoint and the associated network interfaces.

          Possible values include:
          • "CREATING"
          • "OPERATIONAL"
          • "UPDATING"
          • "AUTO_RECOVERING"
          • "ACTION_NEEDED"
          • "DELETING"
        • StatusMessage — (String)

          A detailed description of the status of the Resolver endpoint.

        • CreationTime — (String)

          The date and time that the endpoint was created, in Unix time format and Coordinated Universal Time (UTC).

        • ModificationTime — (String)

          The date and time that the endpoint was last modified, in Unix time format and Coordinated Universal Time (UTC).

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

associateResolverQueryLogConfig(params = {}, callback) ⇒ AWS.Request

Associates an Amazon VPC with a specified query logging configuration. Route 53 Resolver logs DNS queries that originate in all of the Amazon VPCs that are associated with a specified query logging configuration. To associate more than one VPC with a configuration, submit one AssociateResolverQueryLogConfig request for each VPC.

Note: The VPCs that you associate with a query logging configuration must be in the same Region as the configuration.

To remove a VPC from a query logging configuration, see DisassociateResolverQueryLogConfig.

Service Reference:

Examples:

Calling the associateResolverQueryLogConfig operation

var params = {
  ResolverQueryLogConfigId: 'STRING_VALUE', /* required */
  ResourceId: 'STRING_VALUE' /* required */
};
route53resolver.associateResolverQueryLogConfig(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ResolverQueryLogConfigId — (String)

      The ID of the query logging configuration that you want to associate a VPC with.

    • ResourceId — (String)

      The ID of an Amazon VPC that you want this query logging configuration to log queries for.

      Note: The VPCs and the query logging configuration must be in the same Region.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • ResolverQueryLogConfigAssociation — (map)

        A complex type that contains settings for a specified association between an Amazon VPC and a query logging configuration.

        • Id — (String)

          The ID of the query logging association.

        • ResolverQueryLogConfigId — (String)

          The ID of the query logging configuration that a VPC is associated with.

        • ResourceId — (String)

          The ID of the Amazon VPC that is associated with the query logging configuration.

        • Status — (String)

          The status of the specified query logging association. 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.

          Possible values include:
          • "CREATING"
          • "ACTIVE"
          • "ACTION_NEEDED"
          • "DELETING"
          • "FAILED"
        • Error — (String)

          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 the value of Status is a value other than FAILED, Error is null.

          Possible values include:
          • "NONE"
          • "DESTINATION_NOT_FOUND"
          • "ACCESS_DENIED"
          • "INTERNAL_SERVICE_ERROR"
        • ErrorMessage — (String)

          Contains additional information about the error. If the value or Error is null, the value of ErrorMessage also is null.

        • CreationTime — (String)

          The date and time that the VPC was associated with the query logging configuration, in Unix time format and Coordinated Universal Time (UTC).

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

associateResolverRule(params = {}, callback) ⇒ AWS.Request

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.

Service Reference:

Examples:

Calling the associateResolverRule operation

var params = {
  ResolverRuleId: 'STRING_VALUE', /* required */
  VPCId: 'STRING_VALUE', /* required */
  Name: 'STRING_VALUE'
};
route53resolver.associateResolverRule(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ResolverRuleId — (String)

      The ID of the Resolver rule that you want to associate with the VPC. To list the existing Resolver rules, use ListResolverRules.

    • Name — (String)

      A name for the association that you're creating between a Resolver rule and a VPC.

    • VPCId — (String)

      The ID of the VPC that you want to associate the Resolver rule with.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • ResolverRuleAssociation — (map)

        Information about the AssociateResolverRule request, including the status of the request.

        • Id — (String)

          The ID of the association between a Resolver rule and a VPC. Resolver assigns this value when you submit an AssociateResolverRule request.

        • ResolverRuleId — (String)

          The ID of the Resolver rule that you associated with the VPC that is specified by VPCId.

        • Name — (String)

          The name of an association between a Resolver rule and a VPC.

        • VPCId — (String)

          The ID of the VPC that you associated the Resolver rule with.

        • Status — (String)

          A code that specifies the current status of the association between a Resolver rule and a VPC.

          Possible values include:
          • "CREATING"
          • "COMPLETE"
          • "DELETING"
          • "FAILED"
          • "OVERRIDDEN"
        • StatusMessage — (String)

          A detailed description of the status of the association between a Resolver rule and a VPC.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

createResolverEndpoint(params = {}, callback) ⇒ AWS.Request

Creates a Resolver endpoint. There are two types of Resolver endpoints, inbound and outbound:

  • An inbound Resolver endpoint forwards DNS queries to the DNS service for a VPC from your network.

  • An outbound Resolver endpoint forwards DNS queries from the DNS service for a VPC to your network.

Service Reference:

Examples:

Calling the createResolverEndpoint operation

var params = {
  CreatorRequestId: 'STRING_VALUE', /* required */
  Direction: INBOUND | OUTBOUND, /* required */
  IpAddresses: [ /* required */
    {
      SubnetId: 'STRING_VALUE', /* required */
      Ip: 'STRING_VALUE'
    },
    /* more items */
  ],
  SecurityGroupIds: [ /* required */
    'STRING_VALUE',
    /* more items */
  ],
  Name: 'STRING_VALUE',
  Tags: [
    {
      Key: 'STRING_VALUE', /* required */
      Value: 'STRING_VALUE' /* required */
    },
    /* more items */
  ]
};
route53resolver.createResolverEndpoint(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • CreatorRequestId — (String)

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

    • Name — (String)

      A friendly name that lets you easily find a configuration in the Resolver dashboard in the Route 53 console.

    • SecurityGroupIds — (Array<String>)

      The ID of one or more security groups that you want to use to control access to this VPC. The security group that you specify must include one or more inbound rules (for inbound Resolver endpoints) or outbound rules (for outbound Resolver endpoints). Inbound and outbound rules must allow TCP and UDP access. For inbound access, open port 53. For outbound access, open the port that you're using for DNS queries on your network.

    • Direction — (String)

      Specify the applicable value:

      • INBOUND: Resolver forwards DNS queries to the DNS service for a VPC from your network

      • OUTBOUND: Resolver forwards DNS queries from the DNS service for a VPC to your network

      Possible values include:
      • "INBOUND"
      • "OUTBOUND"
    • IpAddresses — (Array<map>)

      The subnets and IP addresses in your VPC that DNS queries originate from (for outbound endpoints) or that you forward DNS queries to (for inbound endpoints). The subnet ID uniquely identifies a VPC.

      • SubnetIdrequired — (String)

        The ID of the subnet that contains the IP address.

      • Ip — (String)

        The IP address that you want to use for DNS queries.

    • Tags — (Array<map>)

      A list of the tag keys and values that you want to associate with the endpoint.

      • Keyrequired — (String)

        The name for the tag. For example, if you want to associate Resolver resources with the account IDs of your customers for billing purposes, the value of Key might be account-id.

      • Valuerequired — (String)

        The value for the tag. For example, if Key is account-id, then Value might be the ID of the customer account that you're creating the resource for.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • ResolverEndpoint — (map)

        Information about the CreateResolverEndpoint request, including the status of the request.

        • Id — (String)

          The ID of the Resolver endpoint.

        • CreatorRequestId — (String)

          A unique string that identifies the request that created the Resolver endpoint. The CreatorRequestId allows failed requests to be retried without the risk of executing the operation twice.

        • Arn — (String)

          The ARN (Amazon Resource Name) for the Resolver endpoint.

        • Name — (String)

          The name that you assigned to the Resolver endpoint when you submitted a CreateResolverEndpoint request.

        • SecurityGroupIds — (Array<String>)

          The ID of one or more security groups that control access to this VPC. The security group must include one or more inbound rules (for inbound endpoints) or outbound rules (for outbound endpoints). Inbound and outbound rules must allow TCP and UDP access. For inbound access, open port 53. For outbound access, open the port that you're using for DNS queries on your network.

        • Direction — (String)

          Indicates whether the Resolver endpoint allows inbound or outbound DNS queries:

          • INBOUND: allows DNS queries to your VPC from your network

          • OUTBOUND: allows DNS queries from your VPC to your network

          Possible values include:
          • "INBOUND"
          • "OUTBOUND"
        • IpAddressCount — (Integer)

          The number of IP addresses that the Resolver endpoint can use for DNS queries.

        • HostVPCId — (String)

          The ID of the VPC that you want to create the Resolver endpoint in.

        • Status — (String)

          A code that specifies the current status of the Resolver endpoint. Valid values include the following:

          • CREATING: Resolver is creating and configuring one or more Amazon VPC network interfaces for this endpoint.

          • OPERATIONAL: The Amazon VPC network interfaces for this endpoint are correctly configured and able to pass inbound or outbound DNS queries between your network and Resolver.

          • UPDATING: Resolver is associating or disassociating one or more network interfaces with this endpoint.

          • AUTO_RECOVERING: Resolver is trying to recover one or more of the network interfaces that are associated with this endpoint. During the recovery process, the endpoint functions with limited capacity because of the limit on the number of DNS queries per IP address (per network interface). For the current limit, see Limits on Route 53 Resolver.

          • ACTION_NEEDED: This endpoint is unhealthy, and Resolver can't automatically recover it. To resolve the problem, we recommend that you check each IP address that you associated with the endpoint. For each IP address that isn't available, add another IP address and then delete the IP address that isn't available. (An endpoint must always include at least two IP addresses.) A status of ACTION_NEEDED can have a variety of causes. Here are two common causes:

            • One or more of the network interfaces that are associated with the endpoint were deleted using Amazon VPC.

            • The network interface couldn't be created for some reason that's outside the control of Resolver.

          • DELETING: Resolver is deleting this endpoint and the associated network interfaces.

          Possible values include:
          • "CREATING"
          • "OPERATIONAL"
          • "UPDATING"
          • "AUTO_RECOVERING"
          • "ACTION_NEEDED"
          • "DELETING"
        • StatusMessage — (String)

          A detailed description of the status of the Resolver endpoint.

        • CreationTime — (String)

          The date and time that the endpoint was created, in Unix time format and Coordinated Universal Time (UTC).

        • ModificationTime — (String)

          The date and time that the endpoint was last modified, in Unix time format and Coordinated Universal Time (UTC).

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

createResolverQueryLogConfig(params = {}, callback) ⇒ AWS.Request

Creates a Resolver query logging configuration, which defines where you want Resolver to save DNS query logs that originate in your VPCs. Resolver can log queries only for VPCs that are in the same Region as the query logging configuration.

To specify which VPCs you want to log queries for, you use AssociateResolverQueryLogConfig. For more information, see AssociateResolverQueryLogConfig.

You can optionally use AWS Resource Access Manager (AWS RAM) to share a query logging configuration with other AWS accounts. The other accounts can then associate VPCs with the configuration. The query logs that Resolver creates for a configuration include all DNS queries that originate in all VPCs that are associated with the configuration.

Service Reference:

Examples:

Calling the createResolverQueryLogConfig operation

var params = {
  CreatorRequestId: 'STRING_VALUE', /* required */
  DestinationArn: 'STRING_VALUE', /* required */
  Name: 'STRING_VALUE', /* required */
  Tags: [
    {
      Key: 'STRING_VALUE', /* required */
      Value: 'STRING_VALUE' /* required */
    },
    /* more items */
  ]
};
route53resolver.createResolverQueryLogConfig(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • Name — (String)

      The name that you want to give the query logging configuration

    • DestinationArn — (String)

      The ARN of the resource that you want Resolver to send query logs. You can send query logs to an S3 bucket, a CloudWatch Logs log group, or a Kinesis Data Firehose delivery stream. Examples of valid values include the following:

      • S3 bucket:

        arn:aws:s3:::examplebucket

        You can optionally append a file prefix to the end of the ARN.

        arn:aws:s3:::examplebucket/development/

      • CloudWatch Logs log group:

        arn:aws:logs:us-west-1:123456789012:log-group:/mystack-testgroup-12ABC1AB12A1:*

      • Kinesis Data Firehose delivery stream:

        arn:aws:kinesis:us-east-2:0123456789:stream/my_stream_name

    • CreatorRequestId — (String)

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

      If a token is not provided, the SDK will use a version 4 UUID.
    • Tags — (Array<map>)

      A list of the tag keys and values that you want to associate with the query logging configuration.

      • Keyrequired — (String)

        The name for the tag. For example, if you want to associate Resolver resources with the account IDs of your customers for billing purposes, the value of Key might be account-id.

      • Valuerequired — (String)

        The value for the tag. For example, if Key is account-id, then Value might be the ID of the customer account that you're creating the resource for.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • ResolverQueryLogConfig — (map)

        Information about the CreateResolverQueryLogConfig request, including the status of the request.

        • Id — (String)

          The ID for the query logging configuration.

        • OwnerId — (String)

          The AWS account ID for the account that created the query logging configuration.

        • Status — (String)

          The status of the specified query logging 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 can't deliver logs to the location that is specified in 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.

          Possible values include:
          • "CREATING"
          • "CREATED"
          • "DELETING"
          • "FAILED"
        • ShareStatus — (String)

          An indication of whether the query logging configuration is shared with other AWS accounts, or was shared with the current account by another AWS account. Sharing is configured through AWS Resource Access Manager (AWS RAM).

          Possible values include:
          • "NOT_SHARED"
          • "SHARED_WITH_ME"
          • "SHARED_BY_ME"
        • AssociationCount — (Integer)

          The number of VPCs that are associated with the query logging configuration.

        • Arn — (String)

          The ARN for the query logging configuration.

        • Name — (String)

          The name of the query logging configuration.

        • DestinationArn — (String)

          The ARN of the resource that you want Resolver to send query logs: an Amazon S3 bucket, a CloudWatch Logs log group, or a Kinesis Data Firehose delivery stream.

        • CreatorRequestId — (String)

          A unique string that identifies the request that created the query logging configuration. The CreatorRequestId allows failed requests to be retried without the risk of executing the operation twice.

        • CreationTime — (String)

          The date and time that the query logging configuration was created, in Unix time format and Coordinated Universal Time (UTC).

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

createResolverRule(params = {}, callback) ⇒ AWS.Request

For DNS queries that originate in your VPCs, specifies which Resolver endpoint the queries pass through, one domain name that you want to forward to your network, and the IP addresses of the DNS resolvers in your network.

Service Reference:

Examples:

Calling the createResolverRule operation

var params = {
  CreatorRequestId: 'STRING_VALUE', /* required */
  DomainName: 'STRING_VALUE', /* required */
  RuleType: FORWARD | SYSTEM | RECURSIVE, /* required */
  Name: 'STRING_VALUE',
  ResolverEndpointId: 'STRING_VALUE',
  Tags: [
    {
      Key: 'STRING_VALUE', /* required */
      Value: 'STRING_VALUE' /* required */
    },
    /* more items */
  ],
  TargetIps: [
    {
      Ip: 'STRING_VALUE', /* required */
      Port: 'NUMBER_VALUE'
    },
    /* more items */
  ]
};
route53resolver.createResolverRule(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • CreatorRequestId — (String)

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

    • Name — (String)

      A friendly name that lets you easily find a rule in the Resolver dashboard in the Route 53 console.

    • RuleType — (String)

      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.

      Possible values include:
      • "FORWARD"
      • "SYSTEM"
      • "RECURSIVE"
    • DomainName — (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).

    • TargetIps — (Array<map>)

      The IPs that you want Resolver to forward DNS queries to. You can specify only IPv4 addresses. Separate IP addresses with a comma.

      TargetIps is available only when the value of Rule type is FORWARD.

      • Iprequired — (String)

        One IP address that you want to forward DNS queries to. You can specify only IPv4 addresses.

      • Port — (Integer)

        The port at Ip that you want to forward DNS queries to.

    • ResolverEndpointId — (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.

    • Tags — (Array<map>)

      A list of the tag keys and values that you want to associate with the endpoint.

      • Keyrequired — (String)

        The name for the tag. For example, if you want to associate Resolver resources with the account IDs of your customers for billing purposes, the value of Key might be account-id.

      • Valuerequired — (String)

        The value for the tag. For example, if Key is account-id, then Value might be the ID of the customer account that you're creating the resource for.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • ResolverRule — (map)

        Information about the CreateResolverRule request, including the status of the request.

        • Id — (String)

          The ID that Resolver assigned to the Resolver rule when you created it.

        • CreatorRequestId — (String)

          A unique string that you specified when you created the Resolver rule. CreatorRequestId identifies the request and allows failed requests to be retried without the risk of executing the operation twice.

        • Arn — (String)

          The ARN (Amazon Resource Name) for the Resolver rule specified by Id.

        • DomainName — (String)

          DNS queries for this domain name are forwarded to the IP addresses that are specified in TargetIps. If a query matches multiple Resolver rules (example.com and www.example.com), the query is routed using the Resolver rule that contains the most specific domain name (www.example.com).

        • Status — (String)

          A code that specifies the current status of the Resolver rule.

          Possible values include:
          • "COMPLETE"
          • "DELETING"
          • "UPDATING"
          • "FAILED"
        • StatusMessage — (String)

          A detailed description of the status of a Resolver rule.

        • RuleType — (String)

          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.

          Possible values include:
          • "FORWARD"
          • "SYSTEM"
          • "RECURSIVE"
        • Name — (String)

          The name for the Resolver rule, which you specified when you created the Resolver rule.

        • TargetIps — (Array<map>)

          An array that contains the IP addresses and ports that an outbound endpoint forwards DNS queries to. Typically, these are the IP addresses of DNS resolvers on your network. Specify IPv4 addresses. IPv6 is not supported.

          • Iprequired — (String)

            One IP address that you want to forward DNS queries to. You can specify only IPv4 addresses.

          • Port — (Integer)

            The port at Ip that you want to forward DNS queries to.

        • ResolverEndpointId — (String)

          The ID of the endpoint that the rule is associated with.

        • OwnerId — (String)

          When a rule is shared with another AWS account, the account ID of the account that the rule is shared with.

        • ShareStatus — (String)

          Whether the rules is shared and, if so, whether the current account is sharing the rule with another account, or another account is sharing the rule with the current account.

          Possible values include:
          • "NOT_SHARED"
          • "SHARED_WITH_ME"
          • "SHARED_BY_ME"
        • CreationTime — (String)

          The date and time that the Resolver rule was created, in Unix time format and Coordinated Universal Time (UTC).

        • ModificationTime — (String)

          The date and time that the Resolver rule was last updated, in Unix time format and Coordinated Universal Time (UTC).

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteResolverEndpoint(params = {}, callback) ⇒ AWS.Request

Deletes a Resolver endpoint. The effect of deleting a Resolver endpoint depends on whether it's an inbound or an outbound Resolver endpoint:

  • Inbound: DNS queries from your network are no longer routed to the DNS service for the specified VPC.

  • Outbound: DNS queries from a VPC are no longer routed to your network.

Service Reference:

Examples:

Calling the deleteResolverEndpoint operation

var params = {
  ResolverEndpointId: 'STRING_VALUE' /* required */
};
route53resolver.deleteResolverEndpoint(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ResolverEndpointId — (String)

      The ID of the Resolver endpoint that you want to delete.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • ResolverEndpoint — (map)

        Information about the DeleteResolverEndpoint request, including the status of the request.

        • Id — (String)

          The ID of the Resolver endpoint.

        • CreatorRequestId — (String)

          A unique string that identifies the request that created the Resolver endpoint. The CreatorRequestId allows failed requests to be retried without the risk of executing the operation twice.

        • Arn — (String)

          The ARN (Amazon Resource Name) for the Resolver endpoint.

        • Name — (String)

          The name that you assigned to the Resolver endpoint when you submitted a CreateResolverEndpoint request.

        • SecurityGroupIds — (Array<String>)

          The ID of one or more security groups that control access to this VPC. The security group must include one or more inbound rules (for inbound endpoints) or outbound rules (for outbound endpoints). Inbound and outbound rules must allow TCP and UDP access. For inbound access, open port 53. For outbound access, open the port that you're using for DNS queries on your network.

        • Direction — (String)

          Indicates whether the Resolver endpoint allows inbound or outbound DNS queries:

          • INBOUND: allows DNS queries to your VPC from your network

          • OUTBOUND: allows DNS queries from your VPC to your network

          Possible values include:
          • "INBOUND"
          • "OUTBOUND"
        • IpAddressCount — (Integer)

          The number of IP addresses that the Resolver endpoint can use for DNS queries.

        • HostVPCId — (String)

          The ID of the VPC that you want to create the Resolver endpoint in.

        • Status — (String)

          A code that specifies the current status of the Resolver endpoint. Valid values include the following:

          • CREATING: Resolver is creating and configuring one or more Amazon VPC network interfaces for this endpoint.

          • OPERATIONAL: The Amazon VPC network interfaces for this endpoint are correctly configured and able to pass inbound or outbound DNS queries between your network and Resolver.

          • UPDATING: Resolver is associating or disassociating one or more network interfaces with this endpoint.

          • AUTO_RECOVERING: Resolver is trying to recover one or more of the network interfaces that are associated with this endpoint. During the recovery process, the endpoint functions with limited capacity because of the limit on the number of DNS queries per IP address (per network interface). For the current limit, see Limits on Route 53 Resolver.

          • ACTION_NEEDED: This endpoint is unhealthy, and Resolver can't automatically recover it. To resolve the problem, we recommend that you check each IP address that you associated with the endpoint. For each IP address that isn't available, add another IP address and then delete the IP address that isn't available. (An endpoint must always include at least two IP addresses.) A status of ACTION_NEEDED can have a variety of causes. Here are two common causes:

            • One or more of the network interfaces that are associated with the endpoint were deleted using Amazon VPC.

            • The network interface couldn't be created for some reason that's outside the control of Resolver.

          • DELETING: Resolver is deleting this endpoint and the associated network interfaces.

          Possible values include:
          • "CREATING"
          • "OPERATIONAL"
          • "UPDATING"
          • "AUTO_RECOVERING"
          • "ACTION_NEEDED"
          • "DELETING"
        • StatusMessage — (String)

          A detailed description of the status of the Resolver endpoint.

        • CreationTime — (String)

          The date and time that the endpoint was created, in Unix time format and Coordinated Universal Time (UTC).

        • ModificationTime — (String)

          The date and time that the endpoint was last modified, in Unix time format and Coordinated Universal Time (UTC).

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteResolverQueryLogConfig(params = {}, callback) ⇒ AWS.Request

Deletes a query logging configuration. When you delete a configuration, Resolver stops logging DNS queries for all of the Amazon VPCs that are associated with the configuration. This also applies if the query logging configuration is shared with other AWS accounts, and the other accounts have associated VPCs with the shared configuration.

Before you can delete a query logging configuration, you must first disassociate all VPCs from the configuration. See DisassociateResolverQueryLogConfig.

If you used Resource Access Manager (RAM) to share a query logging configuration with other accounts, you must stop sharing the configuration before you can delete a configuration. The accounts that you shared the configuration with can first disassociate VPCs that they associated with the configuration, but that's not necessary. If you stop sharing the configuration, those VPCs are automatically disassociated from the configuration.

Service Reference:

Examples:

Calling the deleteResolverQueryLogConfig operation

var params = {
  ResolverQueryLogConfigId: 'STRING_VALUE' /* required */
};
route53resolver.deleteResolverQueryLogConfig(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ResolverQueryLogConfigId — (String)

      The ID of the query logging configuration that you want to delete.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • ResolverQueryLogConfig — (map)

        Information about the query logging configuration that you deleted, including the status of the request.

        • Id — (String)

          The ID for the query logging configuration.

        • OwnerId — (String)

          The AWS account ID for the account that created the query logging configuration.

        • Status — (String)

          The status of the specified query logging 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 can't deliver logs to the location that is specified in 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.

          Possible values include:
          • "CREATING"
          • "CREATED"
          • "DELETING"
          • "FAILED"
        • ShareStatus — (String)

          An indication of whether the query logging configuration is shared with other AWS accounts, or was shared with the current account by another AWS account. Sharing is configured through AWS Resource Access Manager (AWS RAM).

          Possible values include:
          • "NOT_SHARED"
          • "SHARED_WITH_ME"
          • "SHARED_BY_ME"
        • AssociationCount — (Integer)

          The number of VPCs that are associated with the query logging configuration.

        • Arn — (String)

          The ARN for the query logging configuration.

        • Name — (String)

          The name of the query logging configuration.

        • DestinationArn — (String)

          The ARN of the resource that you want Resolver to send query logs: an Amazon S3 bucket, a CloudWatch Logs log group, or a Kinesis Data Firehose delivery stream.

        • CreatorRequestId — (String)

          A unique string that identifies the request that created the query logging configuration. The CreatorRequestId allows failed requests to be retried without the risk of executing the operation twice.

        • CreationTime — (String)

          The date and time that the query logging configuration was created, in Unix time format and Coordinated Universal Time (UTC).

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteResolverRule(params = {}, callback) ⇒ AWS.Request

Deletes a Resolver rule. Before you can delete a Resolver rule, you must disassociate it from all the VPCs that you associated the Resolver rule with. For more information, see DisassociateResolverRule.

Service Reference:

Examples:

Calling the deleteResolverRule operation

var params = {
  ResolverRuleId: 'STRING_VALUE' /* required */
};
route53resolver.deleteResolverRule(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ResolverRuleId — (String)

      The ID of the Resolver rule that you want to delete.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • ResolverRule — (map)

        Information about the DeleteResolverRule request, including the status of the request.

        • Id — (String)

          The ID that Resolver assigned to the Resolver rule when you created it.

        • CreatorRequestId — (String)

          A unique string that you specified when you created the Resolver rule. CreatorRequestId identifies the request and allows failed requests to be retried without the risk of executing the operation twice.

        • Arn — (String)

          The ARN (Amazon Resource Name) for the Resolver rule specified by Id.

        • DomainName — (String)

          DNS queries for this domain name are forwarded to the IP addresses that are specified in TargetIps. If a query matches multiple Resolver rules (example.com and www.example.com), the query is routed using the Resolver rule that contains the most specific domain name (www.example.com).

        • Status — (String)

          A code that specifies the current status of the Resolver rule.

          Possible values include:
          • "COMPLETE"
          • "DELETING"
          • "UPDATING"
          • "FAILED"
        • StatusMessage — (String)

          A detailed description of the status of a Resolver rule.

        • RuleType — (String)

          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.

          Possible values include:
          • "FORWARD"
          • "SYSTEM"
          • "RECURSIVE"
        • Name — (String)

          The name for the Resolver rule, which you specified when you created the Resolver rule.

        • TargetIps — (Array<map>)

          An array that contains the IP addresses and ports that an outbound endpoint forwards DNS queries to. Typically, these are the IP addresses of DNS resolvers on your network. Specify IPv4 addresses. IPv6 is not supported.

          • Iprequired — (String)

            One IP address that you want to forward DNS queries to. You can specify only IPv4 addresses.

          • Port — (Integer)

            The port at Ip that you want to forward DNS queries to.

        • ResolverEndpointId — (String)

          The ID of the endpoint that the rule is associated with.

        • OwnerId — (String)

          When a rule is shared with another AWS account, the account ID of the account that the rule is shared with.

        • ShareStatus — (String)

          Whether the rules is shared and, if so, whether the current account is sharing the rule with another account, or another account is sharing the rule with the current account.

          Possible values include:
          • "NOT_SHARED"
          • "SHARED_WITH_ME"
          • "SHARED_BY_ME"
        • CreationTime — (String)

          The date and time that the Resolver rule was created, in Unix time format and Coordinated Universal Time (UTC).

        • ModificationTime — (String)

          The date and time that the Resolver rule was last updated, in Unix time format and Coordinated Universal Time (UTC).

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

disassociateResolverEndpointIpAddress(params = {}, callback) ⇒ AWS.Request

Removes IP addresses from an inbound or an outbound Resolver endpoint. If you want to remove more than one IP address, submit one DisassociateResolverEndpointIpAddress request for each IP address.

To add an IP address to an endpoint, see AssociateResolverEndpointIpAddress.

Examples:

Calling the disassociateResolverEndpointIpAddress operation

var params = {
  IpAddress: { /* required */
    Ip: 'STRING_VALUE',
    IpId: 'STRING_VALUE',
    SubnetId: 'STRING_VALUE'
  },
  ResolverEndpointId: 'STRING_VALUE' /* required */
};
route53resolver.disassociateResolverEndpointIpAddress(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ResolverEndpointId — (String)

      The ID of the Resolver endpoint that you want to disassociate an IP address from.

    • IpAddress — (map)

      The IPv4 address that you want to remove from a Resolver endpoint.

      • IpId — (String)

        Only when removing an IP address from a Resolver endpoint: The ID of the IP address that you want to remove. To get this ID, use GetResolverEndpoint.

      • SubnetId — (String)

        The ID of the subnet that includes the IP address that you want to update. To get this ID, use GetResolverEndpoint.

      • Ip — (String)

        The new IP address.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • ResolverEndpoint — (map)

        The response to an DisassociateResolverEndpointIpAddress request.

        • Id — (String)

          The ID of the Resolver endpoint.

        • CreatorRequestId — (String)

          A unique string that identifies the request that created the Resolver endpoint. The CreatorRequestId allows failed requests to be retried without the risk of executing the operation twice.

        • Arn — (String)

          The ARN (Amazon Resource Name) for the Resolver endpoint.

        • Name — (String)

          The name that you assigned to the Resolver endpoint when you submitted a CreateResolverEndpoint request.

        • SecurityGroupIds — (Array<String>)

          The ID of one or more security groups that control access to this VPC. The security group must include one or more inbound rules (for inbound endpoints) or outbound rules (for outbound endpoints). Inbound and outbound rules must allow TCP and UDP access. For inbound access, open port 53. For outbound access, open the port that you're using for DNS queries on your network.

        • Direction — (String)

          Indicates whether the Resolver endpoint allows inbound or outbound DNS queries:

          • INBOUND: allows DNS queries to your VPC from your network

          • OUTBOUND: allows DNS queries from your VPC to your network

          Possible values include:
          • "INBOUND"
          • "OUTBOUND"
        • IpAddressCount — (Integer)

          The number of IP addresses that the Resolver endpoint can use for DNS queries.

        • HostVPCId — (String)

          The ID of the VPC that you want to create the Resolver endpoint in.

        • Status — (String)

          A code that specifies the current status of the Resolver endpoint. Valid values include the following:

          • CREATING: Resolver is creating and configuring one or more Amazon VPC network interfaces for this endpoint.

          • OPERATIONAL: The Amazon VPC network interfaces for this endpoint are correctly configured and able to pass inbound or outbound DNS queries between your network and Resolver.

          • UPDATING: Resolver is associating or disassociating one or more network interfaces with this endpoint.

          • AUTO_RECOVERING: Resolver is trying to recover one or more of the network interfaces that are associated with this endpoint. During the recovery process, the endpoint functions with limited capacity because of the limit on the number of DNS queries per IP address (per network interface). For the current limit, see Limits on Route 53 Resolver.

          • ACTION_NEEDED: This endpoint is unhealthy, and Resolver can't automatically recover it. To resolve the problem, we recommend that you check each IP address that you associated with the endpoint. For each IP address that isn't available, add another IP address and then delete the IP address that isn't available. (An endpoint must always include at least two IP addresses.) A status of ACTION_NEEDED can have a variety of causes. Here are two common causes:

            • One or more of the network interfaces that are associated with the endpoint were deleted using Amazon VPC.

            • The network interface couldn't be created for some reason that's outside the control of Resolver.

          • DELETING: Resolver is deleting this endpoint and the associated network interfaces.

          Possible values include:
          • "CREATING"
          • "OPERATIONAL"
          • "UPDATING"
          • "AUTO_RECOVERING"
          • "ACTION_NEEDED"
          • "DELETING"
        • StatusMessage — (String)

          A detailed description of the status of the Resolver endpoint.

        • CreationTime — (String)

          The date and time that the endpoint was created, in Unix time format and Coordinated Universal Time (UTC).

        • ModificationTime — (String)

          The date and time that the endpoint was last modified, in Unix time format and Coordinated Universal Time (UTC).

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

disassociateResolverQueryLogConfig(params = {}, callback) ⇒ AWS.Request

Disassociates a VPC from a query logging configuration.

Note: Before you can delete a query logging configuration, you must first disassociate all VPCs from the configuration. If you used Resource Access Manager (RAM) to share a query logging configuration with other accounts, VPCs can be disassociated from the configuration in the following ways:
  • The accounts that you shared the configuration with can disassociate VPCs from the configuration.
  • You can stop sharing the configuration.

Examples:

Calling the disassociateResolverQueryLogConfig operation

var params = {
  ResolverQueryLogConfigId: 'STRING_VALUE', /* required */
  ResourceId: 'STRING_VALUE' /* required */
};
route53resolver.disassociateResolverQueryLogConfig(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ResolverQueryLogConfigId — (String)

      The ID of the query logging configuration that you want to disassociate a specified VPC from.

    • ResourceId — (String)

      The ID of the Amazon VPC that you want to disassociate from a specified query logging configuration.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • ResolverQueryLogConfigAssociation — (map)

        A complex type that contains settings for the association that you deleted between an Amazon VPC and a query logging configuration.

        • Id — (String)

          The ID of the query logging association.

        • ResolverQueryLogConfigId — (String)

          The ID of the query logging configuration that a VPC is associated with.

        • ResourceId — (String)

          The ID of the Amazon VPC that is associated with the query logging configuration.

        • Status — (String)

          The status of the specified query logging association. 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.

          Possible values include:
          • "CREATING"
          • "ACTIVE"
          • "ACTION_NEEDED"
          • "DELETING"
          • "FAILED"
        • Error — (String)

          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 the value of Status is a value other than FAILED, Error is null.

          Possible values include:
          • "NONE"
          • "DESTINATION_NOT_FOUND"
          • "ACCESS_DENIED"
          • "INTERNAL_SERVICE_ERROR"
        • ErrorMessage — (String)

          Contains additional information about the error. If the value or Error is null, the value of ErrorMessage also is null.

        • CreationTime — (String)

          The date and time that the VPC was associated with the query logging configuration, in Unix time format and Coordinated Universal Time (UTC).

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

disassociateResolverRule(params = {}, callback) ⇒ AWS.Request

Removes the association between a specified Resolver rule and a specified VPC.

If you disassociate a Resolver rule from a VPC, Resolver stops forwarding DNS queries for the domain name that you specified in the Resolver rule.

Service Reference:

Examples:

Calling the disassociateResolverRule operation

var params = {
  ResolverRuleId: 'STRING_VALUE', /* required */
  VPCId: 'STRING_VALUE' /* required */
};
route53resolver.disassociateResolverRule(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • VPCId — (String)

      The ID of the VPC that you want to disassociate the Resolver rule from.

    • ResolverRuleId — (String)

      The ID of the Resolver rule that you want to disassociate from the specified VPC.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • ResolverRuleAssociation — (map)

        Information about the DisassociateResolverRule request, including the status of the request.

        • Id — (String)

          The ID of the association between a Resolver rule and a VPC. Resolver assigns this value when you submit an AssociateResolverRule request.

        • ResolverRuleId — (String)

          The ID of the Resolver rule that you associated with the VPC that is specified by VPCId.

        • Name — (String)

          The name of an association between a Resolver rule and a VPC.

        • VPCId — (String)

          The ID of the VPC that you associated the Resolver rule with.

        • Status — (String)

          A code that specifies the current status of the association between a Resolver rule and a VPC.

          Possible values include:
          • "CREATING"
          • "COMPLETE"
          • "DELETING"
          • "FAILED"
          • "OVERRIDDEN"
        • StatusMessage — (String)

          A detailed description of the status of the association between a Resolver rule and a VPC.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getResolverEndpoint(params = {}, callback) ⇒ AWS.Request

Gets information about a specified Resolver endpoint, such as whether it's an inbound or an outbound Resolver endpoint, and the current status of the endpoint.

Service Reference:

Examples:

Calling the getResolverEndpoint operation

var params = {
  ResolverEndpointId: 'STRING_VALUE' /* required */
};
route53resolver.getResolverEndpoint(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ResolverEndpointId — (String)

      The ID of the Resolver endpoint that you want to get information about.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • ResolverEndpoint — (map)

        Information about the Resolver endpoint that you specified in a GetResolverEndpoint request.

        • Id — (String)

          The ID of the Resolver endpoint.

        • CreatorRequestId — (String)

          A unique string that identifies the request that created the Resolver endpoint. The CreatorRequestId allows failed requests to be retried without the risk of executing the operation twice.

        • Arn — (String)

          The ARN (Amazon Resource Name) for the Resolver endpoint.

        • Name — (String)

          The name that you assigned to the Resolver endpoint when you submitted a CreateResolverEndpoint request.

        • SecurityGroupIds — (Array<String>)

          The ID of one or more security groups that control access to this VPC. The security group must include one or more inbound rules (for inbound endpoints) or outbound rules (for outbound endpoints). Inbound and outbound rules must allow TCP and UDP access. For inbound access, open port 53. For outbound access, open the port that you're using for DNS queries on your network.

        • Direction — (String)

          Indicates whether the Resolver endpoint allows inbound or outbound DNS queries:

          • INBOUND: allows DNS queries to your VPC from your network

          • OUTBOUND: allows DNS queries from your VPC to your network

          Possible values include:
          • "INBOUND"
          • "OUTBOUND"
        • IpAddressCount — (Integer)

          The number of IP addresses that the Resolver endpoint can use for DNS queries.

        • HostVPCId — (String)

          The ID of the VPC that you want to create the Resolver endpoint in.

        • Status — (String)

          A code that specifies the current status of the Resolver endpoint. Valid values include the following:

          • CREATING: Resolver is creating and configuring one or more Amazon VPC network interfaces for this endpoint.

          • OPERATIONAL: The Amazon VPC network interfaces for this endpoint are correctly configured and able to pass inbound or outbound DNS queries between your network and Resolver.

          • UPDATING: Resolver is associating or disassociating one or more network interfaces with this endpoint.

          • AUTO_RECOVERING: Resolver is trying to recover one or more of the network interfaces that are associated with this endpoint. During the recovery process, the endpoint functions with limited capacity because of the limit on the number of DNS queries per IP address (per network interface). For the current limit, see Limits on Route 53 Resolver.

          • ACTION_NEEDED: This endpoint is unhealthy, and Resolver can't automatically recover it. To resolve the problem, we recommend that you check each IP address that you associated with the endpoint. For each IP address that isn't available, add another IP address and then delete the IP address that isn't available. (An endpoint must always include at least two IP addresses.) A status of ACTION_NEEDED can have a variety of causes. Here are two common causes:

            • One or more of the network interfaces that are associated with the endpoint were deleted using Amazon VPC.

            • The network interface couldn't be created for some reason that's outside the control of Resolver.

          • DELETING: Resolver is deleting this endpoint and the associated network interfaces.

          Possible values include:
          • "CREATING"
          • "OPERATIONAL"
          • "UPDATING"
          • "AUTO_RECOVERING"
          • "ACTION_NEEDED"
          • "DELETING"
        • StatusMessage — (String)

          A detailed description of the status of the Resolver endpoint.

        • CreationTime — (String)

          The date and time that the endpoint was created, in Unix time format and Coordinated Universal Time (UTC).

        • ModificationTime — (String)

          The date and time that the endpoint was last modified, in Unix time format and Coordinated Universal Time (UTC).

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getResolverQueryLogConfig(params = {}, callback) ⇒ AWS.Request

Gets information about a specified Resolver query logging configuration, such as the number of VPCs that the configuration is logging queries for and the location that logs are sent to.

Service Reference:

Examples:

Calling the getResolverQueryLogConfig operation

var params = {
  ResolverQueryLogConfigId: 'STRING_VALUE' /* required */
};
route53resolver.getResolverQueryLogConfig(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ResolverQueryLogConfigId — (String)

      The ID of the Resolver query logging configuration that you want to get information about.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • ResolverQueryLogConfig — (map)

        Information about the Resolver query logging configuration that you specified in a GetQueryLogConfig request.

        • Id — (String)

          The ID for the query logging configuration.

        • OwnerId — (String)

          The AWS account ID for the account that created the query logging configuration.

        • Status — (String)

          The status of the specified query logging 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 can't deliver logs to the location that is specified in 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.

          Possible values include:
          • "CREATING"
          • "CREATED"
          • "DELETING"
          • "FAILED"
        • ShareStatus — (String)

          An indication of whether the query logging configuration is shared with other AWS accounts, or was shared with the current account by another AWS account. Sharing is configured through AWS Resource Access Manager (AWS RAM).

          Possible values include:
          • "NOT_SHARED"
          • "SHARED_WITH_ME"
          • "SHARED_BY_ME"
        • AssociationCount — (Integer)

          The number of VPCs that are associated with the query logging configuration.

        • Arn — (String)

          The ARN for the query logging configuration.

        • Name — (String)

          The name of the query logging configuration.

        • DestinationArn — (String)

          The ARN of the resource that you want Resolver to send query logs: an Amazon S3 bucket, a CloudWatch Logs log group, or a Kinesis Data Firehose delivery stream.

        • CreatorRequestId — (String)

          A unique string that identifies the request that created the query logging configuration. The CreatorRequestId allows failed requests to be retried without the risk of executing the operation twice.

        • CreationTime — (String)

          The date and time that the query logging configuration was created, in Unix time format and Coordinated Universal Time (UTC).

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getResolverQueryLogConfigAssociation(params = {}, callback) ⇒ AWS.Request

Gets information about a specified association between a Resolver query logging configuration and an Amazon VPC. When you associate a VPC with a query logging configuration, Resolver logs DNS queries that originate in that VPC.

Examples:

Calling the getResolverQueryLogConfigAssociation operation

var params = {
  ResolverQueryLogConfigAssociationId: 'STRING_VALUE' /* required */
};
route53resolver.getResolverQueryLogConfigAssociation(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ResolverQueryLogConfigAssociationId — (String)

      The ID of the Resolver query logging configuration association that you want to get information about.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • ResolverQueryLogConfigAssociation — (map)

        Information about the Resolver query logging configuration association that you specified in a GetQueryLogConfigAssociation request.

        • Id — (String)

          The ID of the query logging association.

        • ResolverQueryLogConfigId — (String)

          The ID of the query logging configuration that a VPC is associated with.

        • ResourceId — (String)

          The ID of the Amazon VPC that is associated with the query logging configuration.

        • Status — (String)

          The status of the specified query logging association. 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.

          Possible values include:
          • "CREATING"
          • "ACTIVE"
          • "ACTION_NEEDED"
          • "DELETING"
          • "FAILED"
        • Error — (String)

          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 the value of Status is a value other than FAILED, Error is null.

          Possible values include:
          • "NONE"
          • "DESTINATION_NOT_FOUND"
          • "ACCESS_DENIED"
          • "INTERNAL_SERVICE_ERROR"
        • ErrorMessage — (String)

          Contains additional information about the error. If the value or Error is null, the value of ErrorMessage also is null.

        • CreationTime — (String)

          The date and time that the VPC was associated with the query logging configuration, in Unix time format and Coordinated Universal Time (UTC).

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getResolverQueryLogConfigPolicy(params = {}, callback) ⇒ AWS.Request

Gets information about a query logging policy. A query logging policy specifies the Resolver query logging operations and resources that you want to allow another AWS account to be able to use.

Service Reference:

Examples:

Calling the getResolverQueryLogConfigPolicy operation

var params = {
  Arn: 'STRING_VALUE' /* required */
};
route53resolver.getResolverQueryLogConfigPolicy(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • Arn — (String)

      The ARN of the query logging configuration that you want to get the query logging policy for.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • ResolverQueryLogConfigPolicy — (String)

        Information about the query logging policy for the query logging configuration that you specified in a GetResolverQueryLogConfigPolicy request.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getResolverRule(params = {}, callback) ⇒ AWS.Request

Gets information about a specified Resolver rule, such as the domain name that the rule forwards DNS queries for and the ID of the outbound Resolver endpoint that the rule is associated with.

Service Reference:

Examples:

Calling the getResolverRule operation

var params = {
  ResolverRuleId: 'STRING_VALUE' /* required */
};
route53resolver.getResolverRule(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ResolverRuleId — (String)

      The ID of the Resolver rule that you want to get information about.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • ResolverRule — (map)

        Information about the Resolver rule that you specified in a GetResolverRule request.

        • Id — (String)

          The ID that Resolver assigned to the Resolver rule when you created it.

        • CreatorRequestId — (String)

          A unique string that you specified when you created the Resolver rule. CreatorRequestId identifies the request and allows failed requests to be retried without the risk of executing the operation twice.

        • Arn — (String)

          The ARN (Amazon Resource Name) for the Resolver rule specified by Id.

        • DomainName — (String)

          DNS queries for this domain name are forwarded to the IP addresses that are specified in TargetIps. If a query matches multiple Resolver rules (example.com and www.example.com), the query is routed using the Resolver rule that contains the most specific domain name (www.example.com).

        • Status — (String)

          A code that specifies the current status of the Resolver rule.

          Possible values include:
          • "COMPLETE"
          • "DELETING"
          • "UPDATING"
          • "FAILED"
        • StatusMessage — (String)

          A detailed description of the status of a Resolver rule.

        • RuleType — (String)

          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.

          Possible values include:
          • "FORWARD"
          • "SYSTEM"
          • "RECURSIVE"
        • Name — (String)

          The name for the Resolver rule, which you specified when you created the Resolver rule.

        • TargetIps — (Array<map>)

          An array that contains the IP addresses and ports that an outbound endpoint forwards DNS queries to. Typically, these are the IP addresses of DNS resolvers on your network. Specify IPv4 addresses. IPv6 is not supported.

          • Iprequired — (String)

            One IP address that you want to forward DNS queries to. You can specify only IPv4 addresses.

          • Port — (Integer)

            The port at Ip that you want to forward DNS queries to.

        • ResolverEndpointId — (String)

          The ID of the endpoint that the rule is associated with.

        • OwnerId — (String)

          When a rule is shared with another AWS account, the account ID of the account that the rule is shared with.

        • ShareStatus — (String)

          Whether the rules is shared and, if so, whether the current account is sharing the rule with another account, or another account is sharing the rule with the current account.

          Possible values include:
          • "NOT_SHARED"
          • "SHARED_WITH_ME"
          • "SHARED_BY_ME"
        • CreationTime — (String)

          The date and time that the Resolver rule was created, in Unix time format and Coordinated Universal Time (UTC).

        • ModificationTime — (String)

          The date and time that the Resolver rule was last updated, in Unix time format and Coordinated Universal Time (UTC).

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getResolverRuleAssociation(params = {}, callback) ⇒ AWS.Request

Gets information about an association between a specified Resolver rule and a VPC. You associate a Resolver rule and a VPC using AssociateResolverRule.

Service Reference:

Examples:

Calling the getResolverRuleAssociation operation

var params = {
  ResolverRuleAssociationId: 'STRING_VALUE' /* required */
};
route53resolver.getResolverRuleAssociation(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ResolverRuleAssociationId — (String)

      The ID of the Resolver rule association that you want to get information about.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • ResolverRuleAssociation — (map)

        Information about the Resolver rule association that you specified in a GetResolverRuleAssociation request.

        • Id — (String)

          The ID of the association between a Resolver rule and a VPC. Resolver assigns this value when you submit an AssociateResolverRule request.

        • ResolverRuleId — (String)

          The ID of the Resolver rule that you associated with the VPC that is specified by VPCId.

        • Name — (String)

          The name of an association between a Resolver rule and a VPC.

        • VPCId — (String)

          The ID of the VPC that you associated the Resolver rule with.

        • Status — (String)

          A code that specifies the current status of the association between a Resolver rule and a VPC.

          Possible values include:
          • "CREATING"
          • "COMPLETE"
          • "DELETING"
          • "FAILED"
          • "OVERRIDDEN"
        • StatusMessage — (String)

          A detailed description of the status of the association between a Resolver rule and a VPC.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getResolverRulePolicy(params = {}, callback) ⇒ AWS.Request

Gets information about a Resolver rule policy. A Resolver rule policy specifies the Resolver operations and resources that you want to allow another AWS account to be able to use.

Service Reference:

Examples:

Calling the getResolverRulePolicy operation

var params = {
  Arn: 'STRING_VALUE' /* required */
};
route53resolver.getResolverRulePolicy(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • Arn — (String)

      The ID of the Resolver rule policy that you want to get information about.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • ResolverRulePolicy — (String)

        Information about the Resolver rule policy that you specified in a GetResolverRulePolicy request.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listResolverEndpointIpAddresses(params = {}, callback) ⇒ AWS.Request

Gets the IP addresses for a specified Resolver endpoint.

Service Reference:

Examples:

Calling the listResolverEndpointIpAddresses operation

var params = {
  ResolverEndpointId: 'STRING_VALUE', /* required */
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE'
};
route53resolver.listResolverEndpointIpAddresses(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ResolverEndpointId — (String)

      The ID of the Resolver endpoint that you want to get IP addresses for.

    • MaxResults — (Integer)

      The maximum number of IP addresses that you want to return in the response to a ListResolverEndpointIpAddresses request. If you don't specify a value for MaxResults, Resolver returns up to 100 IP addresses.

    • NextToken — (String)

      For the first ListResolverEndpointIpAddresses request, omit this value.

      If the specified Resolver endpoint has more than MaxResults IP addresses, you can submit another ListResolverEndpointIpAddresses request to get the next group of IP addresses. In the next request, specify the value of NextToken from the previous response.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • NextToken — (String)

        If the specified endpoint has more than MaxResults IP addresses, you can submit another ListResolverEndpointIpAddresses request to get the next group of IP addresses. In the next request, specify the value of NextToken from the previous response.

      • MaxResults — (Integer)

        The value that you specified for MaxResults in the request.

      • IpAddresses — (Array<map>)

        Information about the IP addresses in your VPC that DNS queries originate from (for outbound endpoints) or that you forward DNS queries to (for inbound endpoints).

        • IpId — (String)

          The ID of one IP address.

        • SubnetId — (String)

          The ID of one subnet.

        • Ip — (String)

          One IP address that the Resolver endpoint uses for DNS queries.

        • Status — (String)

          A status code that gives the current status of the request.

          Possible values include:
          • "CREATING"
          • "FAILED_CREATION"
          • "ATTACHING"
          • "ATTACHED"
          • "REMAP_DETACHING"
          • "REMAP_ATTACHING"
          • "DETACHING"
          • "FAILED_RESOURCE_GONE"
          • "DELETING"
          • "DELETE_FAILED_FAS_EXPIRED"
        • StatusMessage — (String)

          A message that provides additional information about the status of the request.

        • CreationTime — (String)

          The date and time that the IP address was created, in Unix time format and Coordinated Universal Time (UTC).

        • ModificationTime — (String)

          The date and time that the IP address was last modified, in Unix time format and Coordinated Universal Time (UTC).

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listResolverEndpoints(params = {}, callback) ⇒ AWS.Request

Lists all the Resolver endpoints that were created using the current AWS account.

Service Reference:

Examples:

Calling the listResolverEndpoints operation

var params = {
  Filters: [
    {
      Name: 'STRING_VALUE',
      Values: [
        'STRING_VALUE',
        /* more items */
      ]
    },
    /* more items */
  ],
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE'
};
route53resolver.listResolverEndpoints(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • MaxResults — (Integer)

      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.

    • NextToken — (String)

      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 — (Array<map>)

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

      Note: 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.
      • Name — (String)

        The name of the parameter that you want to use to filter objects.

        The valid values for Name depend on the action that you're including the filter in, ListResolverEndpoints, ListResolverRules, ListResolverRuleAssociations, ListResolverQueryLogConfigs, or ListResolverQueryLogConfigAssociations.

        Note: In early versions of Resolver, values for Name were listed as uppercase, with underscore (_) delimiters. For example, CreatorRequestId was originally listed as CREATOR_REQUEST_ID. Uppercase values for Name are still supported.

        ListResolverEndpoints

        Valid values for Name include the following:

        • CreatorRequestId: The value that you specified when you created the Resolver endpoint.

        • Direction: Whether you want to return inbound or outbound Resolver endpoints. If you specify DIRECTION for Name, specify INBOUND or OUTBOUND for Values.

        • HostVpcId: The ID of the VPC that inbound DNS queries pass through on the way from your network to your VPCs in a region, or the VPC that outbound queries pass through on the way from your VPCs to your network. In a CreateResolverEndpoint request, SubnetId indirectly identifies the VPC. In a GetResolverEndpoint request, the VPC ID for a Resolver endpoint is returned in the HostVPCId element.

        • IpAddressCount: The number of IP addresses that you have associated with the Resolver endpoint.

        • Name: The name of the Resolver endpoint.

        • SecurityGroupIds: The IDs of the VPC security groups that you specified when you created the Resolver endpoint.

        • Status: The status of the Resolver endpoint. If you specify Status for Name, specify one of the following status codes for Values: CREATING, OPERATIONAL, UPDATING, AUTO_RECOVERING, ACTION_NEEDED, or DELETING. For more information, see Status in ResolverEndpoint.

        ListResolverRules

        Valid values for Name include the following:

        • CreatorRequestId: The value that you specified when you created the Resolver rule.

        • DomainName: The domain name for which Resolver is forwarding DNS queries to your network. In the value that you specify for Values, include a trailing dot (.) after the domain name. For example, if the domain name is example.com, specify the following value. Note the "." after com:

          example.com.

        • Name: The name of the Resolver rule.

        • ResolverEndpointId: The ID of the Resolver endpoint that the Resolver rule is associated with.

          Note: You can filter on the Resolver endpoint only for rules that have a value of FORWARD for RuleType.
        • Status: The status of the Resolver rule. If you specify Status for Name, specify one of the following status codes for Values: COMPLETE, DELETING, UPDATING, or FAILED.

        • Type: The type of the Resolver rule. If you specify TYPE for Name, specify FORWARD or SYSTEM for Values.

        ListResolverRuleAssociations

        Valid values for Name include the following:

        • Name: The name of the Resolver rule association.

        • ResolverRuleId: The ID of the Resolver rule that is associated with one or more VPCs.

        • Status: The status of the Resolver rule association. If you specify Status for Name, specify one of the following status codes for Values: CREATING, COMPLETE, DELETING, or FAILED.

        • VPCId: The ID of the VPC that the Resolver rule is associated with.

        ListResolverQueryLogConfigs

        Valid values for Name include the following:

        • Arn: The ARN for the query logging configuration.

        • AssociationCount: The number of VPCs that are associated with the query logging configuration.

        • CreationTime: The date and time that the query logging configuration was created, in Unix time format and Coordinated Universal Time (UTC).

        • CreatorRequestId: A unique string that identifies the request that created the query logging configuration.

        • Destination: The AWS service that you want to forward query logs to. Valid values include the following:

          • S3

          • CloudWatchLogs

          • KinesisFirehose

        • DestinationArn: The ARN of the location that Resolver is sending query logs to. This value can be the ARN for an S3 bucket, a CloudWatch Logs log group, or a Kinesis Data Firehose delivery stream.

        • Id: The ID of the query logging configuration

        • Name: The name of the query logging configuration

        • OwnerId: The AWS account ID for the account that created the query logging configuration.

        • ShareStatus: An indication of whether the query logging configuration is shared with other AWS accounts, or was shared with the current account by another AWS account. Valid values include: NOT_SHARED, SHARED_WITH_ME, or SHARED_BY_ME.

        • Status: The status of the query logging configuration. If you specify Status for Name, specify the applicable status code for Values: CREATING, CREATED, DELETING, or FAILED. For more information, see Status.

        ListResolverQueryLogConfigAssociations

        Valid values for Name include the following:

        • CreationTime: The date and time that the VPC was associated with the query logging configuration, in Unix time format and Coordinated Universal Time (UTC).

        • Error: If the value of Status is FAILED, specify the cause: DESTINATION_NOT_FOUND or ACCESS_DENIED.

        • Id: The ID of the query logging association.

        • ResolverQueryLogConfigId: The ID of the query logging configuration that a VPC is associated with.

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

        • Status: The status of the query logging association. If you specify Status for Name, specify the applicable status code for Values: CREATING, CREATED, DELETING, or FAILED. For more information, see Status.

      • Values — (Array<String>)

        When you're using a List operation and you want the operation to return a subset of objects, such as Resolver endpoints or Resolver rules, the value of the parameter that you want to use to filter objects. For example, to list only inbound Resolver endpoints, specify Direction for Name and specify INBOUND for Values.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • NextToken — (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.

      • MaxResults — (Integer)

        The value that you specified for MaxResults in the request.

      • ResolverEndpoints — (Array<map>)

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

        • Id — (String)

          The ID of the Resolver endpoint.

        • CreatorRequestId — (String)

          A unique string that identifies the request that created the Resolver endpoint. The CreatorRequestId allows failed requests to be retried without the risk of executing the operation twice.

        • Arn — (String)

          The ARN (Amazon Resource Name) for the Resolver endpoint.

        • Name — (String)

          The name that you assigned to the Resolver endpoint when you submitted a CreateResolverEndpoint request.

        • SecurityGroupIds — (Array<String>)

          The ID of one or more security groups that control access to this VPC. The security group must include one or more inbound rules (for inbound endpoints) or outbound rules (for outbound endpoints). Inbound and outbound rules must allow TCP and UDP access. For inbound access, open port 53. For outbound access, open the port that you're using for DNS queries on your network.

        • Direction — (String)

          Indicates whether the Resolver endpoint allows inbound or outbound DNS queries:

          • INBOUND: allows DNS queries to your VPC from your network

          • OUTBOUND: allows DNS queries from your VPC to your network

          Possible values include:
          • "INBOUND"
          • "OUTBOUND"
        • IpAddressCount — (Integer)

          The number of IP addresses that the Resolver endpoint can use for DNS queries.

        • HostVPCId — (String)

          The ID of the VPC that you want to create the Resolver endpoint in.

        • Status — (String)

          A code that specifies the current status of the Resolver endpoint. Valid values include the following:

          • CREATING: Resolver is creating and configuring one or more Amazon VPC network interfaces for this endpoint.

          • OPERATIONAL: The Amazon VPC network interfaces for this endpoint are correctly configured and able to pass inbound or outbound DNS queries between your network and Resolver.

          • UPDATING: Resolver is associating or disassociating one or more network interfaces with this endpoint.

          • AUTO_RECOVERING: Resolver is trying to recover one or more of the network interfaces that are associated with this endpoint. During the recovery process, the endpoint functions with limited capacity because of the limit on the number of DNS queries per IP address (per network interface). For the current limit, see Limits on Route 53 Resolver.

          • ACTION_NEEDED: This endpoint is unhealthy, and Resolver can't automatically recover it. To resolve the problem, we recommend that you check each IP address that you associated with the endpoint. For each IP address that isn't available, add another IP address and then delete the IP address that isn't available. (An endpoint must always include at least two IP addresses.) A status of ACTION_NEEDED can have a variety of causes. Here are two common causes:

            • One or more of the network interfaces that are associated with the endpoint were deleted using Amazon VPC.

            • The network interface couldn't be created for some reason that's outside the control of Resolver.

          • DELETING: Resolver is deleting this endpoint and the associated network interfaces.

          Possible values include:
          • "CREATING"
          • "OPERATIONAL"
          • "UPDATING"
          • "AUTO_RECOVERING"
          • "ACTION_NEEDED"
          • "DELETING"
        • StatusMessage — (String)

          A detailed description of the status of the Resolver endpoint.

        • CreationTime — (String)

          The date and time that the endpoint was created, in Unix time format and Coordinated Universal Time (UTC).

        • ModificationTime — (String)

          The date and time that the endpoint was last modified, in Unix time format and Coordinated Universal Time (UTC).

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listResolverQueryLogConfigAssociations(params = {}, callback) ⇒ AWS.Request

Lists information about associations between Amazon VPCs and query logging configurations.

Examples:

Calling the listResolverQueryLogConfigAssociations operation

var params = {
  Filters: [
    {
      Name: 'STRING_VALUE',
      Values: [
        'STRING_VALUE',
        /* more items */
      ]
    },
    /* more items */
  ],
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE',
  SortBy: 'STRING_VALUE',
  SortOrder: ASCENDING | DESCENDING
};
route53resolver.listResolverQueryLogConfigAssociations(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • MaxResults — (Integer)

      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.

    • NextToken — (String)

      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 — (Array<map>)

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

      Note: 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.
      • Name — (String)

        The name of the parameter that you want to use to filter objects.

        The valid values for Name depend on the action that you're including the filter in, ListResolverEndpoints, ListResolverRules, ListResolverRuleAssociations, ListResolverQueryLogConfigs, or ListResolverQueryLogConfigAssociations.

        Note: In early versions of Resolver, values for Name were listed as uppercase, with underscore (_) delimiters. For example, CreatorRequestId was originally listed as CREATOR_REQUEST_ID. Uppercase values for Name are still supported.

        ListResolverEndpoints

        Valid values for Name include the following:

        • CreatorRequestId: The value that you specified when you created the Resolver endpoint.

        • Direction: Whether you want to return inbound or outbound Resolver endpoints. If you specify DIRECTION for Name, specify INBOUND or OUTBOUND for Values.

        • HostVpcId: The ID of the VPC that inbound DNS queries pass through on the way from your network to your VPCs in a region, or the VPC that outbound queries pass through on the way from your VPCs to your network. In a CreateResolverEndpoint request, SubnetId indirectly identifies the VPC. In a GetResolverEndpoint request, the VPC ID for a Resolver endpoint is returned in the HostVPCId element.

        • IpAddressCount: The number of IP addresses that you have associated with the Resolver endpoint.

        • Name: The name of the Resolver endpoint.

        • SecurityGroupIds: The IDs of the VPC security groups that you specified when you created the Resolver endpoint.

        • Status: The status of the Resolver endpoint. If you specify Status for Name, specify one of the following status codes for Values: CREATING, OPERATIONAL, UPDATING, AUTO_RECOVERING, ACTION_NEEDED, or DELETING. For more information, see Status in ResolverEndpoint.

        ListResolverRules

        Valid values for Name include the following:

        • CreatorRequestId: The value that you specified when you created the Resolver rule.

        • DomainName: The domain name for which Resolver is forwarding DNS queries to your network. In the value that you specify for Values, include a trailing dot (.) after the domain name. For example, if the domain name is example.com, specify the following value. Note the "." after com:

          example.com.

        • Name: The name of the Resolver rule.

        • ResolverEndpointId: The ID of the Resolver endpoint that the Resolver rule is associated with.

          Note: You can filter on the Resolver endpoint only for rules that have a value of FORWARD for RuleType.
        • Status: The status of the Resolver rule. If you specify Status for Name, specify one of the following status codes for Values: COMPLETE, DELETING, UPDATING, or FAILED.

        • Type: The type of the Resolver rule. If you specify TYPE for Name, specify FORWARD or SYSTEM for Values.

        ListResolverRuleAssociations

        Valid values for Name include the following:

        • Name: The name of the Resolver rule association.

        • ResolverRuleId: The ID of the Resolver rule that is associated with one or more VPCs.

        • Status: The status of the Resolver rule association. If you specify Status for Name, specify one of the following status codes for Values: CREATING, COMPLETE, DELETING, or FAILED.

        • VPCId: The ID of the VPC that the Resolver rule is associated with.

        ListResolverQueryLogConfigs

        Valid values for Name include the following:

        • Arn: The ARN for the query logging configuration.

        • AssociationCount: The number of VPCs that are associated with the query logging configuration.

        • CreationTime: The date and time that the query logging configuration was created, in Unix time format and Coordinated Universal Time (UTC).

        • CreatorRequestId: A unique string that identifies the request that created the query logging configuration.

        • Destination: The AWS service that you want to forward query logs to. Valid values include the following:

          • S3

          • CloudWatchLogs

          • KinesisFirehose

        • DestinationArn: The ARN of the location that Resolver is sending query logs to. This value can be the ARN for an S3 bucket, a CloudWatch Logs log group, or a Kinesis Data Firehose delivery stream.

        • Id: The ID of the query logging configuration

        • Name: The name of the query logging configuration

        • OwnerId: The AWS account ID for the account that created the query logging configuration.

        • ShareStatus: An indication of whether the query logging configuration is shared with other AWS accounts, or was shared with the current account by another AWS account. Valid values include: NOT_SHARED, SHARED_WITH_ME, or SHARED_BY_ME.

        • Status: The status of the query logging configuration. If you specify Status for Name, specify the applicable status code for Values: CREATING, CREATED, DELETING, or FAILED. For more information, see Status.

        ListResolverQueryLogConfigAssociations

        Valid values for Name include the following:

        • CreationTime: The date and time that the VPC was associated with the query logging configuration, in Unix time format and Coordinated Universal Time (UTC).

        • Error: If the value of Status is FAILED, specify the cause: DESTINATION_NOT_FOUND or ACCESS_DENIED.

        • Id: The ID of the query logging association.

        • ResolverQueryLogConfigId: The ID of the query logging configuration that a VPC is associated with.

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

        • Status: The status of the query logging association. If you specify Status for Name, specify the applicable status code for Values: CREATING, CREATED, DELETING, or FAILED. For more information, see Status.

      • Values — (Array<String>)

        When you're using a List operation and you want the operation to return a subset of objects, such as Resolver endpoints or Resolver rules, the value of the parameter that you want to use to filter objects. For example, to list only inbound Resolver endpoints, specify Direction for Name and specify INBOUND for Values.

    • SortBy — (String)

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

      Note: 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.

    • SortOrder — (String)

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

      Note: 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.
      Possible values include:
      • "ASCENDING"
      • "DESCENDING"

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • NextToken — (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.

      • TotalCount — (Integer)

        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.

      • TotalFilteredCount — (Integer)

        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.

      • ResolverQueryLogConfigAssociations — (Array<map>)

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

        • Id — (String)

          The ID of the query logging association.

        • ResolverQueryLogConfigId — (String)

          The ID of the query logging configuration that a VPC is associated with.

        • ResourceId — (String)

          The ID of the Amazon VPC that is associated with the query logging configuration.

        • Status — (String)

          The status of the specified query logging association. 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.

          Possible values include:
          • "CREATING"
          • "ACTIVE"
          • "ACTION_NEEDED"
          • "DELETING"
          • "FAILED"
        • Error — (String)

          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 the value of Status is a value other than FAILED, Error is null.

          Possible values include:
          • "NONE"
          • "DESTINATION_NOT_FOUND"
          • "ACCESS_DENIED"
          • "INTERNAL_SERVICE_ERROR"
        • ErrorMessage — (String)

          Contains additional information about the error. If the value or Error is null, the value of ErrorMessage also is null.

        • CreationTime — (String)

          The date and time that the VPC was associated with the query logging configuration, in Unix time format and Coordinated Universal Time (UTC).

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listResolverQueryLogConfigs(params = {}, callback) ⇒ AWS.Request

Lists information about the specified query logging configurations. Each configuration defines where you want Resolver to save DNS query logs and specifies the VPCs that you want to log queries for.

Service Reference:

Examples:

Calling the listResolverQueryLogConfigs operation

var params = {
  Filters: [
    {
      Name: 'STRING_VALUE',
      Values: [
        'STRING_VALUE',
        /* more items */
      ]
    },
    /* more items */
  ],
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE',
  SortBy: 'STRING_VALUE',
  SortOrder: ASCENDING | DESCENDING
};
route53resolver.listResolverQueryLogConfigs(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • MaxResults — (Integer)

      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.

    • NextToken — (String)

      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 — (Array<map>)

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

      Note: 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.
      • Name — (String)

        The name of the parameter that you want to use to filter objects.

        The valid values for Name depend on the action that you're including the filter in, ListResolverEndpoints, ListResolverRules, ListResolverRuleAssociations, ListResolverQueryLogConfigs, or ListResolverQueryLogConfigAssociations.

        Note: In early versions of Resolver, values for Name were listed as uppercase, with underscore (_) delimiters. For example, CreatorRequestId was originally listed as CREATOR_REQUEST_ID. Uppercase values for Name are still supported.

        ListResolverEndpoints

        Valid values for Name include the following:

        • CreatorRequestId: The value that you specified when you created the Resolver endpoint.

        • Direction: Whether you want to return inbound or outbound Resolver endpoints. If you specify DIRECTION for Name, specify INBOUND or OUTBOUND for Values.

        • HostVpcId: The ID of the VPC that inbound DNS queries pass through on the way from your network to your VPCs in a region, or the VPC that outbound queries pass through on the way from your VPCs to your network. In a CreateResolverEndpoint request, SubnetId indirectly identifies the VPC. In a GetResolverEndpoint request, the VPC ID for a Resolver endpoint is returned in the HostVPCId element.

        • IpAddressCount: The number of IP addresses that you have associated with the Resolver endpoint.

        • Name: The name of the Resolver endpoint.

        • SecurityGroupIds: The IDs of the VPC security groups that you specified when you created the Resolver endpoint.

        • Status: The status of the Resolver endpoint. If you specify Status for Name, specify one of the following status codes for Values: CREATING, OPERATIONAL, UPDATING, AUTO_RECOVERING, ACTION_NEEDED, or DELETING. For more information, see Status in ResolverEndpoint.

        ListResolverRules

        Valid values for Name include the following:

        • CreatorRequestId: The value that you specified when you created the Resolver rule.

        • DomainName: The domain name for which Resolver is forwarding DNS queries to your network. In the value that you specify for Values, include a trailing dot (.) after the domain name. For example, if the domain name is example.com, specify the following value. Note the "." after com:

          example.com.

        • Name: The name of the Resolver rule.

        • ResolverEndpointId: The ID of the Resolver endpoint that the Resolver rule is associated with.

          Note: You can filter on the Resolver endpoint only for rules that have a value of FORWARD for RuleType.
        • Status: The status of the Resolver rule. If you specify Status for Name, specify one of the following status codes for Values: COMPLETE, DELETING, UPDATING, or FAILED.

        • Type: The type of the Resolver rule. If you specify TYPE for Name, specify FORWARD or SYSTEM for Values.

        ListResolverRuleAssociations

        Valid values for Name include the following:

        • Name: The name of the Resolver rule association.

        • ResolverRuleId: The ID of the Resolver rule that is associated with one or more VPCs.

        • Status: The status of the Resolver rule association. If you specify Status for Name, specify one of the following status codes for Values: CREATING, COMPLETE, DELETING, or FAILED.

        • VPCId: The ID of the VPC that the Resolver rule is associated with.

        ListResolverQueryLogConfigs

        Valid values for Name include the following:

        • Arn: The ARN for the query logging configuration.

        • AssociationCount: The number of VPCs that are associated with the query logging configuration.

        • CreationTime: The date and time that the query logging configuration was created, in Unix time format and Coordinated Universal Time (UTC).

        • CreatorRequestId: A unique string that identifies the request that created the query logging configuration.

        • Destination: The AWS service that you want to forward query logs to. Valid values include the following:

          • S3

          • CloudWatchLogs

          • KinesisFirehose

        • DestinationArn: The ARN of the location that Resolver is sending query logs to. This value can be the ARN for an S3 bucket, a CloudWatch Logs log group, or a Kinesis Data Firehose delivery stream.

        • Id: The ID of the query logging configuration

        • Name: The name of the query logging configuration

        • OwnerId: The AWS account ID for the account that created the query logging configuration.

        • ShareStatus: An indication of whether the query logging configuration is shared with other AWS accounts, or was shared with the current account by another AWS account. Valid values include: NOT_SHARED, SHARED_WITH_ME, or SHARED_BY_ME.

        • Status: The status of the query logging configuration. If you specify Status for Name, specify the applicable status code for Values: CREATING, CREATED, DELETING, or FAILED. For more information, see Status.

        ListResolverQueryLogConfigAssociations

        Valid values for Name include the following:

        • CreationTime: The date and time that the VPC was associated with the query logging configuration, in Unix time format and Coordinated Universal Time (UTC).

        • Error: If the value of Status is FAILED, specify the cause: DESTINATION_NOT_FOUND or ACCESS_DENIED.

        • Id: The ID of the query logging association.

        • ResolverQueryLogConfigId: The ID of the query logging configuration that a VPC is associated with.

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

        • Status: The status of the query logging association. If you specify Status for Name, specify the applicable status code for Values: CREATING, CREATED, DELETING, or FAILED. For more information, see Status.

      • Values — (Array<String>)

        When you're using a List operation and you want the operation to return a subset of objects, such as Resolver endpoints or Resolver rules, the value of the parameter that you want to use to filter objects. For example, to list only inbound Resolver endpoints, specify Direction for Name and specify INBOUND for Values.

    • SortBy — (String)

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

      Note: 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 AWS account number of the account that created the configuration

      • ShareStatus: Whether the configuration is shared with other AWS accounts or shared with the current account by another AWS account. Sharing is configured through AWS Resource Access Manager (AWS 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.

    • SortOrder — (String)

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

      Note: 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.
      Possible values include:
      • "ASCENDING"
      • "DESCENDING"

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • NextToken — (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.

      • TotalCount — (Integer)

        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.

      • TotalFilteredCount — (Integer)

        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.

      • ResolverQueryLogConfigs — (Array<map>)

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

        • Id — (String)

          The ID for the query logging configuration.

        • OwnerId — (String)

          The AWS account ID for the account that created the query logging configuration.

        • Status — (String)

          The status of the specified query logging 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 can't deliver logs to the location that is specified in 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.

          Possible values include:
          • "CREATING"
          • "CREATED"
          • "DELETING"
          • "FAILED"
        • ShareStatus — (String)

          An indication of whether the query logging configuration is shared with other AWS accounts, or was shared with the current account by another AWS account. Sharing is configured through AWS Resource Access Manager (AWS RAM).

          Possible values include:
          • "NOT_SHARED"
          • "SHARED_WITH_ME"
          • "SHARED_BY_ME"
        • AssociationCount — (Integer)

          The number of VPCs that are associated with the query logging configuration.

        • Arn — (String)

          The ARN for the query logging configuration.

        • Name — (String)

          The name of the query logging configuration.

        • DestinationArn — (String)

          The ARN of the resource that you want Resolver to send query logs: an Amazon S3 bucket, a CloudWatch Logs log group, or a Kinesis Data Firehose delivery stream.

        • CreatorRequestId — (String)

          A unique string that identifies the request that created the query logging configuration. The CreatorRequestId allows failed requests to be retried without the risk of executing the operation twice.

        • CreationTime — (String)

          The date and time that the query logging configuration was created, in Unix time format and Coordinated Universal Time (UTC).

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listResolverRuleAssociations(params = {}, callback) ⇒ AWS.Request

Lists the associations that were created between Resolver rules and VPCs using the current AWS account.

Service Reference:

Examples:

Calling the listResolverRuleAssociations operation

var params = {
  Filters: [
    {
      Name: 'STRING_VALUE',
      Values: [
        'STRING_VALUE',
        /* more items */
      ]
    },
    /* more items */
  ],
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE'
};
route53resolver.listResolverRuleAssociations(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • MaxResults — (Integer)

      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.

    • NextToken — (String)

      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 — (Array<map>)

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

      Note: 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.
      • Name — (String)

        The name of the parameter that you want to use to filter objects.

        The valid values for Name depend on the action that you're including the filter in, ListResolverEndpoints, ListResolverRules, ListResolverRuleAssociations, ListResolverQueryLogConfigs, or ListResolverQueryLogConfigAssociations.

        Note: In early versions of Resolver, values for Name were listed as uppercase, with underscore (_) delimiters. For example, CreatorRequestId was originally listed as CREATOR_REQUEST_ID. Uppercase values for Name are still supported.

        ListResolverEndpoints

        Valid values for Name include the following:

        • CreatorRequestId: The value that you specified when you created the Resolver endpoint.

        • Direction: Whether you want to return inbound or outbound Resolver endpoints. If you specify DIRECTION for Name, specify INBOUND or OUTBOUND for Values.

        • HostVpcId: The ID of the VPC that inbound DNS queries pass through on the way from your network to your VPCs in a region, or the VPC that outbound queries pass through on the way from your VPCs to your network. In a CreateResolverEndpoint request, SubnetId indirectly identifies the VPC. In a GetResolverEndpoint request, the VPC ID for a Resolver endpoint is returned in the HostVPCId element.

        • IpAddressCount: The number of IP addresses that you have associated with the Resolver endpoint.

        • Name: The name of the Resolver endpoint.

        • SecurityGroupIds: The IDs of the VPC security groups that you specified when you created the Resolver endpoint.

        • Status: The status of the Resolver endpoint. If you specify Status for Name, specify one of the following status codes for Values: CREATING, OPERATIONAL, UPDATING, AUTO_RECOVERING, ACTION_NEEDED, or DELETING. For more information, see Status in ResolverEndpoint.

        ListResolverRules

        Valid values for Name include the following:

        • CreatorRequestId: The value that you specified when you created the Resolver rule.

        • DomainName: The domain name for which Resolver is forwarding DNS queries to your network. In the value that you specify for Values, include a trailing dot (.) after the domain name. For example, if the domain name is example.com, specify the following value. Note the "." after com:

          example.com.

        • Name: The name of the Resolver rule.

        • ResolverEndpointId: The ID of the Resolver endpoint that the Resolver rule is associated with.

          Note: You can filter on the Resolver endpoint only for rules that have a value of FORWARD for RuleType.
        • Status: The status of the Resolver rule. If you specify Status for Name, specify one of the following status codes for Values: COMPLETE, DELETING, UPDATING, or FAILED.

        • Type: The type of the Resolver rule. If you specify TYPE for Name, specify FORWARD or SYSTEM for Values.

        ListResolverRuleAssociations

        Valid values for Name include the following:

        • Name: The name of the Resolver rule association.

        • ResolverRuleId: The ID of the Resolver rule that is associated with one or more VPCs.

        • Status: The status of the Resolver rule association. If you specify Status for Name, specify one of the following status codes for Values: CREATING, COMPLETE, DELETING, or FAILED.

        • VPCId: The ID of the VPC that the Resolver rule is associated with.

        ListResolverQueryLogConfigs

        Valid values for Name include the following:

        • Arn: The ARN for the query logging configuration.

        • AssociationCount: The number of VPCs that are associated with the query logging configuration.

        • CreationTime: The date and time that the query logging configuration was created, in Unix time format and Coordinated Universal Time (UTC).

        • CreatorRequestId: A unique string that identifies the request that created the query logging configuration.

        • Destination: The AWS service that you want to forward query logs to. Valid values include the following:

          • S3

          • CloudWatchLogs

          • KinesisFirehose

        • DestinationArn: The ARN of the location that Resolver is sending query logs to. This value can be the ARN for an S3 bucket, a CloudWatch Logs log group, or a Kinesis Data Firehose delivery stream.

        • Id: The ID of the query logging configuration

        • Name: The name of the query logging configuration

        • OwnerId: The AWS account ID for the account that created the query logging configuration.

        • ShareStatus: An indication of whether the query logging configuration is shared with other AWS accounts, or was shared with the current account by another AWS account. Valid values include: NOT_SHARED, SHARED_WITH_ME, or SHARED_BY_ME.

        • Status: The status of the query logging configuration. If you specify Status for Name, specify the applicable status code for Values: CREATING, CREATED, DELETING, or FAILED. For more information, see Status.

        ListResolverQueryLogConfigAssociations

        Valid values for Name include the following:

        • CreationTime: The date and time that the VPC was associated with the query logging configuration, in Unix time format and Coordinated Universal Time (UTC).

        • Error: If the value of Status is FAILED, specify the cause: DESTINATION_NOT_FOUND or ACCESS_DENIED.

        • Id: The ID of the query logging association.

        • ResolverQueryLogConfigId: The ID of the query logging configuration that a VPC is associated with.

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

        • Status: The status of the query logging association. If you specify Status for Name, specify the applicable status code for Values: CREATING, CREATED, DELETING, or FAILED. For more information, see Status.

      • Values — (Array<String>)

        When you're using a List operation and you want the operation to return a subset of objects, such as Resolver endpoints or Resolver rules, the value of the parameter that you want to use to filter objects. For example, to list only inbound Resolver endpoints, specify Direction for Name and specify INBOUND for Values.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • NextToken — (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.

      • MaxResults — (Integer)

        The value that you specified for MaxResults in the request.

      • ResolverRuleAssociations — (Array<map>)

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

        • Id — (String)

          The ID of the association between a Resolver rule and a VPC. Resolver assigns this value when you submit an AssociateResolverRule request.

        • ResolverRuleId — (String)

          The ID of the Resolver rule that you associated with the VPC that is specified by VPCId.

        • Name — (String)

          The name of an association between a Resolver rule and a VPC.

        • VPCId — (String)

          The ID of the VPC that you associated the Resolver rule with.

        • Status — (String)

          A code that specifies the current status of the association between a Resolver rule and a VPC.

          Possible values include:
          • "CREATING"
          • "COMPLETE"
          • "DELETING"
          • "FAILED"
          • "OVERRIDDEN"
        • StatusMessage — (String)

          A detailed description of the status of the association between a Resolver rule and a VPC.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listResolverRules(params = {}, callback) ⇒ AWS.Request

Lists the Resolver rules that were created using the current AWS account.

Service Reference:

Examples:

Calling the listResolverRules operation

var params = {
  Filters: [
    {
      Name: 'STRING_VALUE',
      Values: [
        'STRING_VALUE',
        /* more items */
      ]
    },
    /* more items */
  ],
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE'
};
route53resolver.listResolverRules(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • MaxResults — (Integer)

      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.

    • NextToken — (String)

      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 — (Array<map>)

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

      Note: 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.
      • Name — (String)

        The name of the parameter that you want to use to filter objects.

        The valid values for Name depend on the action that you're including the filter in, ListResolverEndpoints, ListResolverRules, ListResolverRuleAssociations, ListResolverQueryLogConfigs, or ListResolverQueryLogConfigAssociations.

        Note: In early versions of Resolver, values for Name were listed as uppercase, with underscore (_) delimiters. For example, CreatorRequestId was originally listed as CREATOR_REQUEST_ID. Uppercase values for Name are still supported.

        ListResolverEndpoints

        Valid values for Name include the following:

        • CreatorRequestId: The value that you specified when you created the Resolver endpoint.

        • Direction: Whether you want to return inbound or outbound Resolver endpoints. If you specify DIRECTION for Name, specify INBOUND or OUTBOUND for Values.

        • HostVpcId: The ID of the VPC that inbound DNS queries pass through on the way from your network to your VPCs in a region, or the VPC that outbound queries pass through on the way from your VPCs to your network. In a CreateResolverEndpoint request, SubnetId indirectly identifies the VPC. In a GetResolverEndpoint request, the VPC ID for a Resolver endpoint is returned in the HostVPCId element.

        • IpAddressCount: The number of IP addresses that you have associated with the Resolver endpoint.

        • Name: The name of the Resolver endpoint.

        • SecurityGroupIds: The IDs of the VPC security groups that you specified when you created the Resolver endpoint.

        • Status: The status of the Resolver endpoint. If you specify Status for Name, specify one of the following status codes for Values: CREATING, OPERATIONAL, UPDATING, AUTO_RECOVERING, ACTION_NEEDED, or DELETING. For more information, see Status in ResolverEndpoint.

        ListResolverRules

        Valid values for Name include the following:

        • CreatorRequestId: The value that you specified when you created the Resolver rule.

        • DomainName: The domain name for which Resolver is forwarding DNS queries to your network. In the value that you specify for Values, include a trailing dot (.) after the domain name. For example, if the domain name is example.com, specify the following value. Note the "." after com:

          example.com.

        • Name: The name of the Resolver rule.

        • ResolverEndpointId: The ID of the Resolver endpoint that the Resolver rule is associated with.

          Note: You can filter on the Resolver endpoint only for rules that have a value of FORWARD for RuleType.
        • Status: The status of the Resolver rule. If you specify Status for Name, specify one of the following status codes for Values: COMPLETE, DELETING, UPDATING, or FAILED.

        • Type: The type of the Resolver rule. If you specify TYPE for Name, specify FORWARD or SYSTEM for Values.

        ListResolverRuleAssociations

        Valid values for Name include the following:

        • Name: The name of the Resolver rule association.

        • ResolverRuleId: The ID of the Resolver rule that is associated with one or more VPCs.

        • Status: The status of the Resolver rule association. If you specify Status for Name, specify one of the following status codes for Values: CREATING, COMPLETE, DELETING, or FAILED.

        • VPCId: The ID of the VPC that the Resolver rule is associated with.

        ListResolverQueryLogConfigs

        Valid values for Name include the following:

        • Arn: The ARN for the query logging configuration.

        • AssociationCount: The number of VPCs that are associated with the query logging configuration.

        • CreationTime: The date and time that the query logging configuration was created, in Unix time format and Coordinated Universal Time (UTC).

        • CreatorRequestId: A unique string that identifies the request that created the query logging configuration.

        • Destination: The AWS service that you want to forward query logs to. Valid values include the following:

          • S3

          • CloudWatchLogs

          • KinesisFirehose

        • DestinationArn: The ARN of the location that Resolver is sending query logs to. This value can be the ARN for an S3 bucket, a CloudWatch Logs log group, or a Kinesis Data Firehose delivery stream.

        • Id: The ID of the query logging configuration

        • Name: The name of the query logging configuration

        • OwnerId: The AWS account ID for the account that created the query logging configuration.

        • ShareStatus: An indication of whether the query logging configuration is shared with other AWS accounts, or was shared with the current account by another AWS account. Valid values include: NOT_SHARED, SHARED_WITH_ME, or SHARED_BY_ME.

        • Status: The status of the query logging configuration. If you specify Status for Name, specify the applicable status code for Values: CREATING, CREATED, DELETING, or FAILED. For more information, see Status.

        ListResolverQueryLogConfigAssociations

        Valid values for Name include the following:

        • CreationTime: The date and time that the VPC was associated with the query logging configuration, in Unix time format and Coordinated Universal Time (UTC).

        • Error: If the value of Status is FAILED, specify the cause: DESTINATION_NOT_FOUND or ACCESS_DENIED.

        • Id: The ID of the query logging association.

        • ResolverQueryLogConfigId: The ID of the query logging configuration that a VPC is associated with.

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

        • Status: The status of the query logging association. If you specify Status for Name, specify the applicable status code for Values: CREATING, CREATED, DELETING, or FAILED. For more information, see Status.

      • Values — (Array<String>)

        When you're using a List operation and you want the operation to return a subset of objects, such as Resolver endpoints or Resolver rules, the value of the parameter that you want to use to filter objects. For example, to list only inbound Resolver endpoints, specify Direction for Name and specify INBOUND for Values.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • NextToken — (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.

      • MaxResults — (Integer)

        The value that you specified for MaxResults in the request.

      • ResolverRules — (Array<map>)

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

        • Id — (String)

          The ID that Resolver assigned to the Resolver rule when you created it.

        • CreatorRequestId — (String)

          A unique string that you specified when you created the Resolver rule. CreatorRequestId identifies the request and allows failed requests to be retried without the risk of executing the operation twice.

        • Arn — (String)

          The ARN (Amazon Resource Name) for the Resolver rule specified by Id.

        • DomainName — (String)

          DNS queries for this domain name are forwarded to the IP addresses that are specified in TargetIps. If a query matches multiple Resolver rules (example.com and www.example.com), the query is routed using the Resolver rule that contains the most specific domain name (www.example.com).

        • Status — (String)

          A code that specifies the current status of the Resolver rule.

          Possible values include:
          • "COMPLETE"
          • "DELETING"
          • "UPDATING"
          • "FAILED"
        • StatusMessage — (String)

          A detailed description of the status of a Resolver rule.

        • RuleType — (String)

          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.

          Possible values include:
          • "FORWARD"
          • "SYSTEM"
          • "RECURSIVE"
        • Name — (String)

          The name for the Resolver rule, which you specified when you created the Resolver rule.

        • TargetIps — (Array<map>)

          An array that contains the IP addresses and ports that an outbound endpoint forwards DNS queries to. Typically, these are the IP addresses of DNS resolvers on your network. Specify IPv4 addresses. IPv6 is not supported.

          • Iprequired — (String)

            One IP address that you want to forward DNS queries to. You can specify only IPv4 addresses.

          • Port — (Integer)

            The port at Ip that you want to forward DNS queries to.

        • ResolverEndpointId — (String)

          The ID of the endpoint that the rule is associated with.

        • OwnerId — (String)

          When a rule is shared with another AWS account, the account ID of the account that the rule is shared with.

        • ShareStatus — (String)

          Whether the rules is shared and, if so, whether the current account is sharing the rule with another account, or another account is sharing the rule with the current account.

          Possible values include:
          • "NOT_SHARED"
          • "SHARED_WITH_ME"
          • "SHARED_BY_ME"
        • CreationTime — (String)

          The date and time that the Resolver rule was created, in Unix time format and Coordinated Universal Time (UTC).

        • ModificationTime — (String)

          The date and time that the Resolver rule was last updated, in Unix time format and Coordinated Universal Time (UTC).

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listTagsForResource(params = {}, callback) ⇒ AWS.Request

Lists the tags that you associated with the specified resource.

Service Reference:

Examples:

Calling the listTagsForResource operation

var params = {
  ResourceArn: 'STRING_VALUE', /* required */
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE'
};
route53resolver.listTagsForResource(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ResourceArn — (String)

      The Amazon Resource Name (ARN) for the resource that you want to list tags for.

    • MaxResults — (Integer)

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

    • NextToken — (String)

      For the first ListTagsForResource request, omit this value.

      If you have more than MaxResults tags, you can submit another ListTagsForResource request to get the next group of tags for the resource. In the next request, specify the value of NextToken from the previous response.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Tags — (Array<map>)

        The tags that are associated with the resource that you specified in the ListTagsForResource request.

        • Keyrequired — (String)

          The name for the tag. For example, if you want to associate Resolver resources with the account IDs of your customers for billing purposes, the value of Key might be account-id.

        • Valuerequired — (String)

          The value for the tag. For example, if Key is account-id, then Value might be the ID of the customer account that you're creating the resource for.

      • NextToken — (String)

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

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

putResolverQueryLogConfigPolicy(params = {}, callback) ⇒ AWS.Request

Specifies an AWS account that you want to share a query logging configuration with, the query logging configuration that you want to share, and the operations that you want the account to be able to perform on the configuration.

Service Reference:

Examples:

Calling the putResolverQueryLogConfigPolicy operation

var params = {
  Arn: 'STRING_VALUE', /* required */
  ResolverQueryLogConfigPolicy: 'STRING_VALUE' /* required */
};
route53resolver.putResolverQueryLogConfigPolicy(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • Arn — (String)

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

    • ResolverQueryLogConfigPolicy — (String)

      An AWS Identity and Access Management policy statement that lists the query logging configurations that you want to share with another AWS account and the operations that you want the account to be able to perform. You can specify the following operations in the Actions section of the statement:

      • route53resolver:AssociateResolverQueryLogConfig

      • route53resolver:DisassociateResolverQueryLogConfig

      • route53resolver:ListResolverQueryLogConfigAssociations

      • route53resolver:ListResolverQueryLogConfigs

      In the Resource section of the statement, you specify the ARNs for the query logging configurations that you want to share with the account that you specified in Arn.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • ReturnValue — (Boolean)

        Whether the PutResolverQueryLogConfigPolicy request was successful.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

putResolverRulePolicy(params = {}, callback) ⇒ AWS.Request

Specifies an AWS account that you want to share rules with, the Resolver rules that you want to share, and the operations that you want the account to be able to perform on those rules.

Service Reference:

Examples:

Calling the putResolverRulePolicy operation

var params = {
  Arn: 'STRING_VALUE', /* required */
  ResolverRulePolicy: 'STRING_VALUE' /* required */
};
route53resolver.putResolverRulePolicy(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • Arn — (String)

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

    • ResolverRulePolicy — (String)

      An AWS Identity and Access Management policy statement that lists the rules that you want to share with another AWS account and the operations that you want the account to be able to perform. You can specify the following operations in the Actions section of the statement:

      • route53resolver:GetResolverRule

      • route53resolver:AssociateResolverRule

      • route53resolver:DisassociateResolverRule

      • route53resolver:ListResolverRules

      • route53resolver:ListResolverRuleAssociations

      In the Resource section of the statement, you specify the ARNs for the rules that you want to share with the account that you specified in Arn.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • ReturnValue — (Boolean)

        Whether the PutResolverRulePolicy request was successful.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

tagResource(params = {}, callback) ⇒ AWS.Request

Adds one or more tags to a specified resource.

Service Reference:

Examples:

Calling the tagResource operation

var params = {
  ResourceArn: 'STRING_VALUE', /* required */
  Tags: [ /* required */
    {
      Key: 'STRING_VALUE', /* required */
      Value: 'STRING_VALUE' /* required */
    },
    /* more items */
  ]
};
route53resolver.tagResource(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ResourceArn — (String)

      The Amazon Resource Name (ARN) for the resource that you want to add tags to. To get the ARN for a resource, use the applicable Get or List command:

    • Tags — (Array<map>)

      The tags that you want to add to the specified resource.

      • Keyrequired — (String)

        The name for the tag. For example, if you want to associate Resolver resources with the account IDs of your customers for billing purposes, the value of Key might be account-id.

      • Valuerequired — (String)

        The value for the tag. For example, if Key is account-id, then Value might be the ID of the customer account that you're creating the resource for.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

untagResource(params = {}, callback) ⇒ AWS.Request

Removes one or more tags from a specified resource.

Service Reference:

Examples:

Calling the untagResource operation

var params = {
  ResourceArn: 'STRING_VALUE', /* required */
  TagKeys: [ /* required */
    'STRING_VALUE',
    /* more items */
  ]
};
route53resolver.untagResource(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

updateResolverEndpoint(params = {}, callback) ⇒ AWS.Request

Updates the name of an inbound or an outbound Resolver endpoint.

Service Reference:

Examples:

Calling the updateResolverEndpoint operation

var params = {
  ResolverEndpointId: 'STRING_VALUE', /* required */
  Name: 'STRING_VALUE'
};
route53resolver.updateResolverEndpoint(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ResolverEndpointId — (String)

      The ID of the Resolver endpoint that you want to update.

    • Name — (String)

      The name of the Resolver endpoint that you want to update.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • ResolverEndpoint — (map)

        The response to an UpdateResolverEndpoint request.

        • Id — (String)

          The ID of the Resolver endpoint.

        • CreatorRequestId — (String)

          A unique string that identifies the request that created the Resolver endpoint. The CreatorRequestId allows failed requests to be retried without the risk of executing the operation twice.

        • Arn — (String)

          The ARN (Amazon Resource Name) for the Resolver endpoint.

        • Name — (String)

          The name that you assigned to the Resolver endpoint when you submitted a CreateResolverEndpoint request.

        • SecurityGroupIds — (Array<String>)

          The ID of one or more security groups that control access to this VPC. The security group must include one or more inbound rules (for inbound endpoints) or outbound rules (for outbound endpoints). Inbound and outbound rules must allow TCP and UDP access. For inbound access, open port 53. For outbound access, open the port that you're using for DNS queries on your network.

        • Direction — (String)

          Indicates whether the Resolver endpoint allows inbound or outbound DNS queries:

          • INBOUND: allows DNS queries to your VPC from your network

          • OUTBOUND: allows DNS queries from your VPC to your network

          Possible values include:
          • "INBOUND"
          • "OUTBOUND"
        • IpAddressCount — (Integer)

          The number of IP addresses that the Resolver endpoint can use for DNS queries.

        • HostVPCId — (String)

          The ID of the VPC that you want to create the Resolver endpoint in.

        • Status — (String)

          A code that specifies the current status of the Resolver endpoint. Valid values include the following:

          • CREATING: Resolver is creating and configuring one or more Amazon VPC network interfaces for this endpoint.

          • OPERATIONAL: The Amazon VPC network interfaces for this endpoint are correctly configured and able to pass inbound or outbound DNS queries between your network and Resolver.

          • UPDATING: Resolver is associating or disassociating one or more network interfaces with this endpoint.

          • AUTO_RECOVERING: Resolver is trying to recover one or more of the network interfaces that are associated with this endpoint. During the recovery process, the endpoint functions with limited capacity because of the limit on the number of DNS queries per IP address (per network interface). For the current limit, see Limits on Route 53 Resolver.

          • ACTION_NEEDED: This endpoint is unhealthy, and Resolver can't automatically recover it. To resolve the problem, we recommend that you check each IP address that you associated with the endpoint. For each IP address that isn't available, add another IP address and then delete the IP address that isn't available. (An endpoint must always include at least two IP addresses.) A status of ACTION_NEEDED can have a variety of causes. Here are two common causes:

            • One or more of the network interfaces that are associated with the endpoint were deleted using Amazon VPC.

            • The network interface couldn't be created for some reason that's outside the control of Resolver.

          • DELETING: Resolver is deleting this endpoint and the associated network interfaces.

          Possible values include:
          • "CREATING"
          • "OPERATIONAL"
          • "UPDATING"
          • "AUTO_RECOVERING"
          • "ACTION_NEEDED"
          • "DELETING"
        • StatusMessage — (String)

          A detailed description of the status of the Resolver endpoint.

        • CreationTime — (String)

          The date and time that the endpoint was created, in Unix time format and Coordinated Universal Time (UTC).

        • ModificationTime — (String)

          The date and time that the endpoint was last modified, in Unix time format and Coordinated Universal Time (UTC).

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

updateResolverRule(params = {}, callback) ⇒ AWS.Request

Updates settings for a specified Resolver rule. ResolverRuleId is required, and all other parameters are optional. If you don't specify a parameter, it retains its current value.

Service Reference:

Examples:

Calling the updateResolverRule operation

var params = {
  Config: { /* required */
    Name: 'STRING_VALUE',
    ResolverEndpointId: 'STRING_VALUE',
    TargetIps: [
      {
        Ip: 'STRING_VALUE', /* required */
        Port: 'NUMBER_VALUE'
      },
      /* more items */
    ]
  },
  ResolverRuleId: 'STRING_VALUE' /* required */
};
route53resolver.updateResolverRule(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ResolverRuleId — (String)

      The ID of the Resolver rule that you want to update.

    • Config — (map)

      The new settings for the Resolver rule.

      • Name — (String)

        The new name for the Resolver rule. The name that you specify appears in the Resolver dashboard in the Route 53 console.

      • TargetIps — (Array<map>)

        For DNS queries that originate in your VPC, the new IP addresses that you want to route outbound DNS queries to.

        • Iprequired — (String)

          One IP address that you want to forward DNS queries to. You can specify only IPv4 addresses.

        • Port — (Integer)

          The port at Ip that you want to forward DNS queries to.

      • ResolverEndpointId — (String)

        The ID of the new outbound Resolver endpoint that you want to use to route DNS queries to the IP addresses that you specify in TargetIps.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • ResolverRule — (map)

        The response to an UpdateResolverRule request.

        • Id — (String)

          The ID that Resolver assigned to the Resolver rule when you created it.

        • CreatorRequestId — (String)

          A unique string that you specified when you created the Resolver rule. CreatorRequestId identifies the request and allows failed requests to be retried without the risk of executing the operation twice.

        • Arn — (String)

          The ARN (Amazon Resource Name) for the Resolver rule specified by Id.

        • DomainName — (String)

          DNS queries for this domain name are forwarded to the IP addresses that are specified in TargetIps. If a query matches multiple Resolver rules (example.com and www.example.com), the query is routed using the Resolver rule that contains the most specific domain name (www.example.com).

        • Status — (String)

          A code that specifies the current status of the Resolver rule.

          Possible values include:
          • "COMPLETE"
          • "DELETING"
          • "UPDATING"
          • "FAILED"
        • StatusMessage — (String)

          A detailed description of the status of a Resolver rule.

        • RuleType — (String)

          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.

          Possible values include:
          • "FORWARD"
          • "SYSTEM"
          • "RECURSIVE"
        • Name — (String)

          The name for the Resolver rule, which you specified when you created the Resolver rule.

        • TargetIps — (Array<map>)

          An array that contains the IP addresses and ports that an outbound endpoint forwards DNS queries to. Typically, these are the IP addresses of DNS resolvers on your network. Specify IPv4 addresses. IPv6 is not supported.

          • Iprequired — (String)

            One IP address that you want to forward DNS queries to. You can specify only IPv4 addresses.

          • Port — (Integer)

            The port at Ip that you want to forward DNS queries to.

        • ResolverEndpointId — (String)

          The ID of the endpoint that the rule is associated with.

        • OwnerId — (String)

          When a rule is shared with another AWS account, the account ID of the account that the rule is shared with.

        • ShareStatus — (String)

          Whether the rules is shared and, if so, whether the current account is sharing the rule with another account, or another account is sharing the rule with the current account.

          Possible values include:
          • "NOT_SHARED"
          • "SHARED_WITH_ME"
          • "SHARED_BY_ME"
        • CreationTime — (String)

          The date and time that the Resolver rule was created, in Unix time format and Coordinated Universal Time (UTC).

        • ModificationTime — (String)

          The date and time that the Resolver rule was last updated, in Unix time format and Coordinated Universal Time (UTC).

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.