CreateOutpostResolver - Amazon Route 53
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

CreateOutpostResolver

Creates a Amazon Route 53 Resolver on an Outpost.

Request Syntax

{ "CreatorRequestId": "string", "InstanceCount": number, "Name": "string", "OutpostArn": "string", "PreferredInstanceType": "string", "Tags": [ { "Key": "string", "Value": "string" } ] }

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters.

The request accepts the following data in JSON format.

CreatorRequestId

A unique string that identifies the request and that allows failed requests to be retried without the risk of running the operation twice.

CreatorRequestId can be any unique string, for example, a date/time stamp.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 255.

Required: Yes

InstanceCount

Number of Amazon EC2 instances for the Resolver on Outpost. The default and minimal value is 4.

Type: Integer

Required: No

Name

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

Type: String

Length Constraints: Minimum length of 1. Maximum length of 255.

Required: Yes

OutpostArn

The Amazon Resource Name (ARN) of the Outpost. If you specify this, you must also specify a value for the PreferredInstanceType.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 255.

Pattern: ^arn:aws([a-z-]+)?:outposts:[a-z\d-]+:\d{12}:outpost/op-[a-f0-9]{17}$

Required: Yes

PreferredInstanceType

The Amazon EC2 instance type. If you specify this, you must also specify a value for the OutpostArn.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 255.

Required: Yes

Tags

A string that helps identify the Route 53 Resolvers on Outpost.

Type: Array of Tag objects

Array Members: Maximum number of 200 items.

Required: No

Response Syntax

{ "OutpostResolver": { "Arn": "string", "CreationTime": "string", "CreatorRequestId": "string", "Id": "string", "InstanceCount": number, "ModificationTime": "string", "Name": "string", "OutpostArn": "string", "PreferredInstanceType": "string", "Status": "string", "StatusMessage": "string" } }

Response Elements

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.

OutpostResolver

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

Type: OutpostResolver object

Errors

For information about the errors that are common to all actions, see Common Errors.

AccessDeniedException

The current account doesn't have the IAM permissions required to perform the specified Resolver operation.

This error can also be thrown when a customer has reached the 5120 character limit for a resource policy for CloudWatch Logs.

HTTP Status Code: 400

InternalServiceErrorException

We encountered an unknown error. Try again in a few minutes.

HTTP Status Code: 400

ResourceNotFoundException

The specified resource doesn't exist.

HTTP Status Code: 400

ServiceQuotaExceededException

Fulfilling the request would cause one or more quotas to be exceeded.

HTTP Status Code: 400

ThrottlingException

The request was throttled. Try again in a few minutes.

HTTP Status Code: 400

ValidationException

You have provided an invalid command. If you ran the UpdateFirewallDomains request. supported values are ADD, REMOVE, or REPLACE a domain.

HTTP Status Code: 400

Examples

CreateOutpostResolver Example

This example illustrates one usage of CreateOutpostResolver.

Sample Request

POST / HTTP/1.1 Host: route53resolver.us-west-2.amazonaws.com Accept-Encoding: identity Content-Length: 214 X-Amz-Target: Route53Resolver.CreateOutpostResolver X-Amz-Date: 20230718T192937Z User-Agent: aws-cli/2.11.9 Python/3.11.2 Darwin/22.5.0 exe/x86_64 prompt/off command/route53resolver.create-outpost-resolver Content-Type: application/x-amz-json-1.1 Authorization: AWS4-HMAC-SHA256 Credential=AKIAJJ2SONIPEXAMPLE/20230718/us-west-2/route53resolver/aws4_request, SignedHeaders=content-type;host;x-amz-date;x-amz-security-token;x-amz-target, Signature=[calculated-signature] { "CreatorRequestId": "my-first-outpost-resolver", "Name": "ResolverForOp0123example456op7", "PreferredInstanceType": "m5.large", "OutpostArn": "arn:aws:outposts:us-west-2:123456789012:outpost/op-0123example456op7" }

Sample Response

HTTP/1.1 200 OK Date: Tue, 18 Jul 2023 19:29:39 GMT Content-Type: application/x-amz-json-1.1 Content-Length: 559 x-amzn-RequestId: 08afd081-9d67-4281-a277-b3880example Connection: keep-alive { "OutpostResolver": { "Arn": "arn:aws:route53resolver:us-west-2:123456789012:outpost-resolver/rslvr-op-b12345example678", "CreationTime": "2023-07-18T19:29:39.697440Z", "ModificationTime": "2023-07-18T19:29:39.697440Z", "CreatorRequestId": "my-first-outpost-resolver", "Id": "rslvr-op-b12345example678", "InstanceCount": 4, "PreferredInstanceType": "m5.large", "Name": "ResolverForOp0123example456op7", "Status": "CREATING", "StatusMessage": "Creating the Resolver might take up to 90 minutes.", "OutpostArn": "arn:aws:outposts:us-west-2:123456789012:outpost/op-0123example456op7" } }

See Also

For more information about using this API in one of the language-specific Amazon SDKs, see the following: