View a markdown version of this page

CreateOutboundExternalLink - AWS RTB Fabric

CreateOutboundExternalLink

Creates an outbound external link.

POST /requester-gateway/gatewayId/outbound-external-link HTTP/1.1 Content-type: application/json { "attributes": { "customerProvidedId": "string", "responderErrorMasking": [ { "action": "string", "httpCode": "string", "loggingTypes": [ "string" ], "responseLoggingPercentage": number } ] }, "clientToken": "string", "logSettings": { "applicationLogs": { "sampling": { "errorLog": number, "filterLog": number } } }, "publicEndpoint": "string", "tags": { "string" : "string" } }

The request uses the following URI parameters.

The unique identifier of the gateway.

Length Constraints: Minimum length of 8. Maximum length of 32.

Pattern: rtb-gw-[a-z0-9-]{1,25}

Required: Yes

The request accepts the following data in JSON format.

Attributes of the link.

Type: LinkAttributes object

Required: No

Specifies a unique, case-sensitive identifier that you provide to ensure the idempotency of the request. This lets you safely retry the request without accidentally performing the same operation a second time. Passing the same value to a later call to an operation requires that you also pass the same value for all other parameters. We recommend that you use a UUID type of value.

If you don't provide this value, then AWS generates a random one for you.

If you retry the operation with the same clientToken, but with different parameters, the retry fails with an IdempotentParameterMismatch error.

Type: String

Required: Yes

Settings for the application logs.

Type: LinkLogSettings object

Required: Yes

The public endpoint of the link.

Type: String

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

Pattern: (https|http)://.+

Required: Yes

A map of the key-value pairs of the tag or tags to assign to the resource.

Type: String to string map

Key Length Constraints: Minimum length of 1. Maximum length of 128.

Key Pattern: (resourceArn|internalId|[a-zA-Z0-9+\-=._:/@]+)

Value Length Constraints: Minimum length of 0. Maximum length of 1600.

Required: No

HTTP/1.1 200 Content-type: application/json { "gatewayId": "string", "linkId": "string", "status": "string" }

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

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

The unique identifier of the gateway.

Type: String

Length Constraints: Minimum length of 8. Maximum length of 32.

Pattern: rtb-gw-[a-z0-9-]{1,25}

The unique identifier of the link.

Type: String

Length Constraints: Minimum length of 6. Maximum length of 30.

Pattern: link-[a-z0-9-]{1,25}

The status of the request.

Type: String

Valid Values: PENDING_CREATION | PENDING_REQUEST | REQUESTED | ACCEPTED | ACTIVE | REJECTED | FAILED | PENDING_DELETION | DELETED | PENDING_UPDATE | PENDING_ISOLATION | ISOLATED | PENDING_RESTORATION

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

AccessDeniedException

The request could not be completed because you do not have sufficient access to perform this action.

HTTP Status Code: 403

ConflictException

The request could not be completed because of a conflict in the current state of the resource.

HTTP Status Code: 409

InternalServerException

The request could not be completed because of an internal server error. Try your call again.

HTTP Status Code: 500

ResourceNotFoundException

The request could not be completed because the resource does not exist.

HTTP Status Code: 404

ServiceQuotaExceededException

The request could not be completed because you exceeded a service quota.

HTTP Status Code: 402

ThrottlingException

The request was denied due to request throttling.

HTTP Status Code: 429

ValidationException

The request could not be completed because it fails satisfy the constraints specified by the service.

HTTP Status Code: 400

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