• 沒有找到結果。

AWS Migration Hub Refactor Spaces API Reference Version latest

N/A
N/A
Protected

Academic year: 2022

Share "AWS Migration Hub Refactor Spaces API Reference Version latest"

Copied!
127
0
0

加載中.... (立即查看全文)

全文

(1)

AWS Migration Hub Refactor Spaces

API Reference

Version latest

(2)

AWS Migration Hub Refactor Spaces: API Reference

Copyright © Amazon Web Services, Inc. and/or its affiliates. All rights reserved.

Amazon's trademarks and trade dress may not be used in connection with any product or service that is not Amazon's, in any manner that is likely to cause confusion among customers, or in any manner that disparages or discredits Amazon. All other trademarks not owned by Amazon are the property of their respective owners, who may or may not be affiliated with, connected to, or sponsored by Amazon.

(3)

Table of Contents

Welcome ... 1

Actions ... 2

CreateApplication ... 3

Request Syntax ... 3

URI Request Parameters ... 3

Request Body ... 3

Response Syntax ... 4

Response Elements ... 5

Errors ... 7

See Also ... 8

CreateEnvironment ... 9

Request Syntax ... 9

URI Request Parameters ... 9

Request Body ... 9

Response Syntax ... 10

Response Elements ... 10

Errors ... 12

See Also ... 13

CreateRoute ... 14

Request Syntax ... 14

URI Request Parameters ... 15

Request Body ... 15

Response Syntax ... 16

Response Elements ... 16

Errors ... 18

See Also ... 19

CreateService ... 20

Request Syntax ... 20

URI Request Parameters ... 20

Request Body ... 21

Response Syntax ... 22

Response Elements ... 23

Errors ... 25

See Also ... 26

DeleteApplication ... 27

Request Syntax ... 27

URI Request Parameters ... 27

Request Body ... 27

Response Syntax ... 27

Response Elements ... 27

Errors ... 28

See Also ... 29

DeleteEnvironment ... 30

Request Syntax ... 30

URI Request Parameters ... 30

Request Body ... 30

Response Syntax ... 30

Response Elements ... 30

Errors ... 31

See Also ... 32

DeleteResourcePolicy ... 33

Request Syntax ... 33

URI Request Parameters ... 33

Request Body ... 33

(4)

Response Syntax ... 33

Response Elements ... 33

Errors ... 33

See Also ... 34

DeleteRoute ... 35

Request Syntax ... 35

URI Request Parameters ... 35

Request Body ... 35

Response Syntax ... 35

Response Elements ... 36

Errors ... 37

See Also ... 37

DeleteService ... 38

Request Syntax ... 38

URI Request Parameters ... 38

Request Body ... 38

Response Syntax ... 38

Response Elements ... 39

Errors ... 40

See Also ... 40

GetApplication ... 42

Request Syntax ... 42

URI Request Parameters ... 42

Request Body ... 42

Response Syntax ... 42

Response Elements ... 43

Errors ... 45

See Also ... 45

GetEnvironment ... 47

Request Syntax ... 47

URI Request Parameters ... 47

Request Body ... 47

Response Syntax ... 47

Response Elements ... 48

Errors ... 49

See Also ... 50

GetResourcePolicy ... 51

Request Syntax ... 51

URI Request Parameters ... 51

Request Body ... 51

Response Syntax ... 51

Response Elements ... 51

Errors ... 52

See Also ... 52

GetRoute ... 53

Request Syntax ... 53

URI Request Parameters ... 53

Request Body ... 53

Response Syntax ... 53

Response Elements ... 54

Errors ... 57

See Also ... 57

GetService ... 58

Request Syntax ... 58

URI Request Parameters ... 58

Request Body ... 58

Response Syntax ... 58

(5)

Response Elements ... 59

Errors ... 62

See Also ... 62

ListApplications ... 63

Request Syntax ... 63

URI Request Parameters ... 63

Request Body ... 63

Response Syntax ... 63

Response Elements ... 64

Errors ... 64

See Also ... 65

ListEnvironments ... 66

Request Syntax ... 66

URI Request Parameters ... 66

Request Body ... 66

Response Syntax ... 66

Response Elements ... 67

Errors ... 67

See Also ... 68

ListEnvironmentVpcs ... 69

Request Syntax ... 69

URI Request Parameters ... 69

Request Body ... 69

Response Syntax ... 69

Response Elements ... 70

Errors ... 70

See Also ... 71

ListRoutes ... 72

Request Syntax ... 72

URI Request Parameters ... 72

Request Body ... 72

Response Syntax ... 72

Response Elements ... 73

Errors ... 73

See Also ... 74

ListServices ... 75

Request Syntax ... 75

URI Request Parameters ... 75

Request Body ... 75

Response Syntax ... 75

Response Elements ... 76

Errors ... 77

See Also ... 77

ListTagsForResource ... 78

Request Syntax ... 78

URI Request Parameters ... 78

Request Body ... 78

Response Syntax ... 78

Response Elements ... 78

Errors ... 79

See Also ... 79

PutResourcePolicy ... 80

Request Syntax ... 80

URI Request Parameters ... 80

Request Body ... 80

Response Syntax ... 80

Response Elements ... 81

(6)

Errors ... 81

See Also ... 81

TagResource ... 82

Request Syntax ... 82

URI Request Parameters ... 82

Request Body ... 82

Response Syntax ... 82

Response Elements ... 83

Errors ... 83

See Also ... 83

UntagResource ... 84

Request Syntax ... 84

URI Request Parameters ... 84

Request Body ... 84

Response Syntax ... 84

Response Elements ... 84

Errors ... 84

See Also ... 85

Data Types ... 86

ApiGatewayProxyConfig ... 87

Contents ... 87

See Also ... 88

ApiGatewayProxyInput ... 89

Contents ... 89

See Also ... 89

ApiGatewayProxySummary ... 90

Contents ... 90

See Also ... 91

ApplicationSummary ... 92

Contents ... 92

See Also ... 94

EnvironmentSummary ... 95

Contents ... 95

See Also ... 97

EnvironmentVpc ... 98

Contents ... 98

See Also ... 99

ErrorResponse ... 100

Contents ... 100

See Also ... 101

LambdaEndpointConfig ... 102

Contents ... 102

See Also ... 102

LambdaEndpointInput ... 103

Contents ... 103

See Also ... 103

LambdaEndpointSummary ... 104

Contents ... 104

See Also ... 104

RouteSummary ... 105

Contents ... 105

See Also ... 108

ServiceSummary ... 109

Contents ... 109

See Also ... 111

UriPathRouteInput ... 113

Contents ... 113

(7)

See Also ... 113

UrlEndpointConfig ... 114

Contents ... 114

See Also ... 114

UrlEndpointInput ... 115

Contents ... 115

See Also ... 115

UrlEndpointSummary ... 116

Contents ... 116

See Also ... 116

Common Parameters ... 117

Common Errors ... 119

(8)

Welcome

This API reference provides descriptions, syntax, and other details about each of the actions and data types for AWS Migration Hub Refactor Spaces (Refactor Spaces). The topic for each action shows the API request parameters and the response. Alternatively, you can use one of the AWS SDKs to access an API that is tailored to the programming language or platform that you're using. For more information, see AWS SDKs.

To share Refactor Spaces environments with other AWS accounts or with AWS Organizations and their OUs, use AWS Resource Access Manager's CreateResourceShare API. See CreateResourceShare in the AWS RAM API Reference.

This document was last published on March 6, 2022.

(9)

Actions

The following actions are supported:

• CreateApplication (p. 3)

• CreateEnvironment (p. 9)

• CreateRoute (p. 14)

• CreateService (p. 20)

• DeleteApplication (p. 27)

• DeleteEnvironment (p. 30)

• DeleteResourcePolicy (p. 33)

• DeleteRoute (p. 35)

• DeleteService (p. 38)

• GetApplication (p. 42)

• GetEnvironment (p. 47)

• GetResourcePolicy (p. 51)

• GetRoute (p. 53)

• GetService (p. 58)

• ListApplications (p. 63)

• ListEnvironments (p. 66)

• ListEnvironmentVpcs (p. 69)

• ListRoutes (p. 72)

• ListServices (p. 75)

• ListTagsForResource (p. 78)

• PutResourcePolicy (p. 80)

• TagResource (p. 82)

• UntagResource (p. 84)

(10)

CreateApplication

CreateApplication

Creates an AWS Migration Hub Refactor Spaces application. The account that owns the environment also owns the applications created inside the environment, regardless of the account that creates the application. Refactor Spaces provisions an Amazon API Gateway, API Gateway VPC link, and Network Load Balancer for the application proxy inside your account.

Request Syntax

POST /environments/EnvironmentIdentifier/applications HTTP/1.1 Content-type: application/json

{ "ApiGatewayProxy": { "EndpointType": "string", "StageName": "string"

},

"ClientToken": "string", "Name": "string",

"ProxyType": "string", "Tags": {

"string" : "string"

},

"VpcId": "string"

}

URI Request Parameters

The request uses the following URI parameters.

EnvironmentIdentifier (p. 3)

The unique identifier of the environment.

Length Constraints: Fixed length of 14.

Pattern: ^env-[0-9A-Za-z]{10}$

Required: Yes

Request Body

The request accepts the following data in JSON format.

ApiGatewayProxy (p. 3)

A wrapper object holding the API Gateway endpoint type and stage name for the proxy.

Type: ApiGatewayProxyInput (p. 89) object Required: No

ClientToken (p. 3)

A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.

Type: String

(11)

Response Syntax

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

Pattern: ^[\x20-\x7E]{1,64}$

Required: No Name (p. 3)

The name to use for the application.

Type: String

Length Constraints: Minimum length of 3. Maximum length of 63.

Pattern: ^(?!app-)[a-zA-Z0-9]+[a-zA-Z0-9-_ ]+$

Required: Yes ProxyType (p. 3)

The proxy type of the proxy created within the application.

Type: String

Valid Values: API_GATEWAY Required: Yes

Tags (p. 3)

The tags to assign to the application. A tag is a label that you assign to an AWS resource. Each tag consists of a key-value pair.

Type: String to string map

Map Entries: Minimum number of 0 items. Maximum number of 50 items.

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

Key Pattern: ^(?!aws:).+

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

Required: No VpcId (p. 3)

The ID of the virtual private cloud (VPC).

Type: String

Length Constraints: Minimum length of 12. Maximum length of 21.

Pattern: ^vpc-[-a-f0-9]{8}([-a-f0-9]{9})?$

Required: Yes

Response Syntax

HTTP/1.1 200

Content-type: application/json

(12)

Response Elements

{

"ApiGatewayProxy": { "EndpointType": "string", "StageName": "string"

},

"ApplicationId": "string", "Arn": "string",

"CreatedByAccountId": "string", "CreatedTime": number,

"EnvironmentId": "string", "LastUpdatedTime": number, "Name": "string",

"OwnerAccountId": "string", "ProxyType": "string", "State": "string", "Tags": {

"string" : "string"

},

"VpcId": "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.

ApiGatewayProxy (p. 4)

A wrapper object holding the API Gateway endpoint type and stage name for the proxy.

Type: ApiGatewayProxyInput (p. 89) object ApplicationId (p. 4)

The unique identifier of the application.

Type: String

Length Constraints: Fixed length of 14.

Pattern: ^app-[0-9A-Za-z]{10}$

Arn (p. 4)

The Amazon Resource Name (ARN) of the application. The format for this ARN is

arn:aws:refactor-spaces:region:account-id:resource-type/resource-id . For more information about ARNs, see Amazon Resource Names (ARNs) in the AWS General Reference.

Type: String

Length Constraints: Minimum length of 20. Maximum length of 2048.

Pattern: ^arn:aws:refactor-spaces:[a-zA-Z0-9\-]+:\w{12}:[a-zA-Z_0-9+=,.@\-_/]+

$

CreatedByAccountId (p. 4)

The AWS account ID of application creator.

Type: String

Length Constraints: Fixed length of 12.

(13)

Response Elements

Pattern: ^\d{12}$

CreatedTime (p. 4)

A timestamp that indicates when the application is created.

Type: Timestamp EnvironmentId (p. 4)

The ID of the environment in which the application is created.

Type: String

Length Constraints: Fixed length of 14.

Pattern: ^env-[0-9A-Za-z]{10}$

LastUpdatedTime (p. 4)

A timestamp that indicates when the application was last updated.

Type: Timestamp Name (p. 4)

The name of the application.

Type: String

Length Constraints: Minimum length of 3. Maximum length of 63.

Pattern: ^(?!app-)[a-zA-Z0-9]+[a-zA-Z0-9-_ ]+$

OwnerAccountId (p. 4)

The AWS account ID of the application owner (which is always the same as the environment owner account ID).

Type: String

Length Constraints: Fixed length of 12.

Pattern: ^\d{12}$

ProxyType (p. 4)

The proxy type of the proxy created within the application.

Type: String

Valid Values: API_GATEWAY State (p. 4)

The current state of the application.

Type: String

Valid Values: CREATING | ACTIVE | DELETING | FAILED | UPDATING Tags (p. 4)

The tags assigned to the application. A tag is a label that you assign to an AWS resource. Each tag consists of a key-value pair.

Type: String to string map

(14)

Errors

Map Entries: Minimum number of 0 items. Maximum number of 50 items.

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

Key Pattern: ^(?!aws:).+

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

VpcId (p. 4)

The ID of the Amazon VPC.

Type: String

Length Constraints: Minimum length of 12. Maximum length of 21.

Pattern: ^vpc-[-a-f0-9]{8}([-a-f0-9]{9})?$

Errors

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

AccessDeniedException

The user does not have sufficient access to perform this action.

HTTP Status Code: 403 ConflictException

Updating or deleting a resource can cause an inconsistent state.

HTTP Status Code: 409 InternalServerException

An unexpected error occurred while processing the request.

HTTP Status Code: 500 ResourceNotFoundException

The request references a resource that does not exist.

HTTP Status Code: 404 ServiceQuotaExceededException

The request would cause a service quota to be exceeded.

HTTP Status Code: 402 ThrottlingException

Request was denied because the request was throttled.

HTTP Status Code: 429 ValidationException

The input does not satisfy the constraints specified by an AWS service.

HTTP Status Code: 400

(15)

See Also

See Also

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

• AWS Command Line Interface

• AWS SDK for .NET

• AWS SDK for C++

• AWS SDK for Go

• AWS SDK for Java V2

• AWS SDK for JavaScript

• AWS SDK for PHP V3

• AWS SDK for Python

• AWS SDK for Ruby V3

(16)

CreateEnvironment

CreateEnvironment

Creates an AWS Migration Hub Refactor Spaces environment. The caller owns the environment resource, and all Refactor Spaces applications, services, and routes created within the environment. They are referred to as the environment owner. The environment owner has cross-account visibility and control of Refactor Spaces resources that are added to the environment by other accounts that the environment is shared with. When creating an environment, Refactor Spaces provisions a transit gateway in your account.

Request Syntax

POST /environments HTTP/1.1 Content-type: application/json { "ClientToken": "string", "Description": "string", "Name": "string",

"NetworkFabricType": "string", "Tags": {

"string" : "string"

} }

URI Request Parameters

The request does not use any URI parameters.

Request Body

The request accepts the following data in JSON format.

ClientToken (p. 9)

A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.

Type: String

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

Pattern: ^[\x20-\x7E]{1,64}$

Required: No Description (p. 9)

The description of the environment.

Type: String

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

Pattern: ^[a-zA-Z0-9-_\s\.\!\*\#\@\']+$

Required: No Name (p. 9)

The name of the environment.

(17)

Response Syntax

Type: String

Length Constraints: Minimum length of 3. Maximum length of 63.

Pattern: ^(?!env-)[a-zA-Z0-9]+[a-zA-Z0-9-_ ]+$

Required: Yes

NetworkFabricType (p. 9)

The network fabric type of the environment.

Type: String

Valid Values: TRANSIT_GATEWAY Required: Yes

Tags (p. 9)

The tags to assign to the environment. A tag is a label that you assign to an AWS resource. Each tag consists of a key-value pair.

Type: String to string map

Map Entries: Minimum number of 0 items. Maximum number of 50 items.

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

Key Pattern: ^(?!aws:).+

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

Required: No

Response Syntax

HTTP/1.1 200

Content-type: application/json {

"Arn": "string", "CreatedTime": number, "Description": "string", "EnvironmentId": "string", "LastUpdatedTime": number, "Name": "string",

"NetworkFabricType": "string", "OwnerAccountId": "string", "State": "string",

"Tags": {

"string" : "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.

(18)

Response Elements

Arn (p. 10)

The Amazon Resource Name (ARN) of the environment.

Type: String

Length Constraints: Minimum length of 20. Maximum length of 2048.

Pattern: ^arn:aws:refactor-spaces:[a-zA-Z0-9\-]+:\w{12}:[a-zA-Z_0-9+=,.@\-_/]+

$

CreatedTime (p. 10)

A timestamp that indicates when the environment is created.

Type: Timestamp Description (p. 10)

A description of the environment.

Type: String

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

Pattern: ^[a-zA-Z0-9-_\s\.\!\*\#\@\']+$

EnvironmentId (p. 10)

The unique identifier of the environment.

Type: String

Length Constraints: Fixed length of 14.

Pattern: ^env-[0-9A-Za-z]{10}$

LastUpdatedTime (p. 10)

A timestamp that indicates when the environment was last updated.

Type: Timestamp Name (p. 10)

The name of the environment.

Type: String

Length Constraints: Minimum length of 3. Maximum length of 63.

Pattern: ^(?!env-)[a-zA-Z0-9]+[a-zA-Z0-9-_ ]+$

NetworkFabricType (p. 10)

The network fabric type of the environment.

Type: String

Valid Values: TRANSIT_GATEWAY OwnerAccountId (p. 10)

The AWS account ID of environment owner.

Type: String

(19)

Errors

Length Constraints: Fixed length of 12.

Pattern: ^\d{12}$

State (p. 10)

The current state of the environment.

Type: String

Valid Values: CREATING | ACTIVE | DELETING | FAILED Tags (p. 10)

The tags assigned to the created environment. A tag is a label that you assign to an AWS resource.

Each tag consists of a key-value pair..

Type: String to string map

Map Entries: Minimum number of 0 items. Maximum number of 50 items.

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

Key Pattern: ^(?!aws:).+

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

Errors

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

AccessDeniedException

The user does not have sufficient access to perform this action.

HTTP Status Code: 403 ConflictException

Updating or deleting a resource can cause an inconsistent state.

HTTP Status Code: 409 InternalServerException

An unexpected error occurred while processing the request.

HTTP Status Code: 500 ResourceNotFoundException

The request references a resource that does not exist.

HTTP Status Code: 404 ServiceQuotaExceededException

The request would cause a service quota to be exceeded.

HTTP Status Code: 402 ThrottlingException

Request was denied because the request was throttled.

(20)

See Also

HTTP Status Code: 429 ValidationException

The input does not satisfy the constraints specified by an AWS service.

HTTP Status Code: 400

See Also

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

• AWS Command Line Interface

• AWS SDK for .NET

• AWS SDK for C++

• AWS SDK for Go

• AWS SDK for Java V2

• AWS SDK for JavaScript

• AWS SDK for PHP V3

• AWS SDK for Python

• AWS SDK for Ruby V3

(21)

CreateRoute

CreateRoute

Creates an AWS Migration Hub Refactor Spaces route. The account owner of the service resource is always the environment owner, regardless of which account creates the route. Routes target a service in the application. If an application does not have any routes, then the first route must be created as a DEFAULT RouteType.

When you create a route, Refactor Spaces configures the Amazon API Gateway to send traffic to the target service as follows:

• If the service has a URL endpoint, and the endpoint resolves to a private IP address, Refactor Spaces routes traffic using the API Gateway VPC link.

• If the service has a URL endpoint, and the endpoint resolves to a public IP address, Refactor Spaces routes traffic over the public internet.

• If the service has an AWS Lambda function endpoint, then Refactor Spaces configures the Lambda function's resource policy to allow the application's API Gateway to invoke the function.

A one-time health check is performed on the service when the route is created. If the health check fails, the route transitions to FAILED, and no traffic is sent to the service.

For Lambda functions, the Lambda function state is checked. If the function is not active, the function configuration is updated so that Lambda resources are provisioned. If the Lambda state is Failed, then the route creation fails. For more information, see the GetFunctionConfiguration's State response parameter in the AWS Lambda Developer Guide.

For public URLs, a connection is opened to the public endpoint. If the URL is not reachable, the health check fails. For private URLs, a target group is created and the target group health check is run.

The HealthCheckProtocol, HealthCheckPort, and HealthCheckPath are the same protocol, port, and path specified in the URL or health URL, if used. All other settings use the default values, as described in Health checks for your target groups. The health check is considered successful if at least one target within the target group transitions to a healthy state.

Services can have HTTP or HTTPS URL endpoints. For HTTPS URLs, publicly-signed certificates are supported. Private Certificate Authorities (CAs) are permitted only if the CA's domain is publicly resolvable.

Request Syntax

POST /environments/EnvironmentIdentifier/applications/ApplicationIdentifier/routes HTTP/1.1 Content-type: application/json

{

"ClientToken": "string", "RouteType": "string",

"ServiceIdentifier": "string", "Tags": {

"string" : "string"

},

"UriPathRoute": {

"ActivationState": "string", "IncludeChildPaths": boolean, "Methods": [ "string" ], "SourcePath": "string"

}}

(22)

URI Request Parameters

URI Request Parameters

The request uses the following URI parameters.

ApplicationIdentifier (p. 14)

The ID of the application within which the route is being created.

Length Constraints: Fixed length of 14.

Pattern: ^app-[0-9A-Za-z]{10}$

Required: Yes

EnvironmentIdentifier (p. 14)

The ID of the environment in which the route is created.

Length Constraints: Fixed length of 14.

Pattern: ^env-[0-9A-Za-z]{10}$

Required: Yes

Request Body

The request accepts the following data in JSON format.

ClientToken (p. 14)

A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.

Type: String

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

Pattern: ^[\x20-\x7E]{1,64}$

Required: No RouteType (p. 14)

The route type of the route. DEFAULT indicates that all traffic that does not match another route is forwarded to the default route. Applications must have a default route before any other routes can be created. URI_PATH indicates a route that is based on a URI path.

Type: String

Valid Values: DEFAULT | URI_PATH Required: Yes

ServiceIdentifier (p. 14)

The ID of the service in which the route is created. Traffic that matches this route is forwarded to this service.

Type: String

Length Constraints: Fixed length of 14.

(23)

Response Syntax

Pattern: ^svc-[0-9A-Za-z]{10}$

Required: Yes Tags (p. 14)

The tags to assign to the route. A tag is a label that you assign to an AWS resource. Each tag consists of a key-value pair..

Type: String to string map

Map Entries: Minimum number of 0 items. Maximum number of 50 items.

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

Key Pattern: ^(?!aws:).+

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

Required: No UriPathRoute (p. 14)

The configuration for the URI path route type.

Type: UriPathRouteInput (p. 113) object Required: No

Response Syntax

HTTP/1.1 200

Content-type: application/json { "ApplicationId": "string", "Arn": "string",

"CreatedByAccountId": "string", "CreatedTime": number,

"LastUpdatedTime": number, "OwnerAccountId": "string", "RouteId": "string", "RouteType": "string", "ServiceId": "string", "State": "string", "Tags": {

"string" : "string"

},

"UriPathRoute": {

"ActivationState": "string", "IncludeChildPaths": boolean, "Methods": [ "string" ], "SourcePath": "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.

(24)

Response Elements

ApplicationId (p. 16)

The ID of the application in which the route is created.

Type: String

Length Constraints: Fixed length of 14.

Pattern: ^app-[0-9A-Za-z]{10}$

Arn (p. 16)

The Amazon Resource Name (ARN) of the route. The format for this ARN is arn:aws:refactor- spaces:region:account-id:resource-type/resource-id . For more information about ARNs, see Amazon Resource Names (ARNs) in the AWS General Reference.

Type: String

Length Constraints: Minimum length of 20. Maximum length of 2048.

Pattern: ^arn:aws:refactor-spaces:[a-zA-Z0-9\-]+:\w{12}:[a-zA-Z_0-9+=,.@\-_/]+

$

CreatedByAccountId (p. 16)

The AWS account ID of the route creator.

Type: String

Length Constraints: Fixed length of 12.

Pattern: ^\d{12}$

CreatedTime (p. 16)

A timestamp that indicates when the route is created.

Type: Timestamp LastUpdatedTime (p. 16)

A timestamp that indicates when the route was last updated.

Type: Timestamp OwnerAccountId (p. 16)

The AWS account ID of the route owner.

Type: String

Length Constraints: Fixed length of 12.

Pattern: ^\d{12}$

RouteId (p. 16)

The unique identifier of the route.

Type: String

Length Constraints: Fixed length of 14.

Pattern: ^rte-[0-9A-Za-z]{10}$

RouteType (p. 16)

The route type of the route.

(25)

Errors

Type: String

Valid Values: DEFAULT | URI_PATH ServiceId (p. 16)

The ID of service in which the route is created. Traffic that matches this route is forwarded to this service.

Type: String

Length Constraints: Fixed length of 14.

Pattern: ^svc-[0-9A-Za-z]{10}$

State (p. 16)

The current state of the route.

Type: String

Valid Values: CREATING | ACTIVE | DELETING | FAILED | UPDATING | INACTIVE Tags (p. 16)

The tags assigned to the created route. A tag is a label that you assign to an AWS resource. Each tag consists of a key-value pair.

Type: String to string map

Map Entries: Minimum number of 0 items. Maximum number of 50 items.

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

Key Pattern: ^(?!aws:).+

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

UriPathRoute (p. 16)

onfiguration for the URI path route type.

Type: UriPathRouteInput (p. 113) object

Errors

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

AccessDeniedException

The user does not have sufficient access to perform this action.

HTTP Status Code: 403 ConflictException

Updating or deleting a resource can cause an inconsistent state.

HTTP Status Code: 409 InternalServerException

An unexpected error occurred while processing the request.

HTTP Status Code: 500

(26)

See Also

ResourceNotFoundException

The request references a resource that does not exist.

HTTP Status Code: 404 ServiceQuotaExceededException

The request would cause a service quota to be exceeded.

HTTP Status Code: 402 ThrottlingException

Request was denied because the request was throttled.

HTTP Status Code: 429 ValidationException

The input does not satisfy the constraints specified by an AWS service.

HTTP Status Code: 400

See Also

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

• AWS Command Line Interface

• AWS SDK for .NET

• AWS SDK for C++

• AWS SDK for Go

• AWS SDK for Java V2

• AWS SDK for JavaScript

• AWS SDK for PHP V3

• AWS SDK for Python

• AWS SDK for Ruby V3

(27)

CreateService

CreateService

Creates an AWS Migration Hub Refactor Spaces service. The account owner of the service is always the environment owner, regardless of which account in the environment creates the service. Services have either a URL endpoint in a virtual private cloud (VPC), or a Lambda function endpoint.

Important

If an AWS resource is launched in a service VPC, and you want it to be accessible to all of an environment’s services with VPCs and routes, apply the RefactorSpacesSecurityGroup to the resource. Alternatively, to add more cross-account constraints, apply your own security group.

Request Syntax

POST /environments/EnvironmentIdentifier/applications/ApplicationIdentifier/services HTTP/1.1

Content-type: application/json { "ClientToken": "string", "Description": "string", "EndpointType": "string", "LambdaEndpoint": { "Arn": "string"

},

"Name": "string", "Tags": {

"string" : "string"

},

"UrlEndpoint": {

"HealthUrl": "string", "Url": "string"

},

"VpcId": "string"

}

URI Request Parameters

The request uses the following URI parameters.

ApplicationIdentifier (p. 20)

The ID of the application which the service is created.

Length Constraints: Fixed length of 14.

Pattern: ^app-[0-9A-Za-z]{10}$

Required: Yes

EnvironmentIdentifier (p. 20)

The ID of the environment in which the service is created.

Length Constraints: Fixed length of 14.

Pattern: ^env-[0-9A-Za-z]{10}$

Required: Yes

(28)

Request Body

Request Body

The request accepts the following data in JSON format.

ClientToken (p. 20)

A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.

Type: String

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

Pattern: ^[\x20-\x7E]{1,64}$

Required: No Description (p. 20)

The description of the service.

Type: String

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

Pattern: ^[a-zA-Z0-9-_\s\.\!\*\#\@\']+$

Required: No EndpointType (p. 20)

The type of endpoint to use for the service. The type can be a URL in a VPC or an AWS Lambda function.

Type: String

Valid Values: LAMBDA | URL Required: Yes

LambdaEndpoint (p. 20)

The configuration for the Lambda endpoint type.

Type: LambdaEndpointInput (p. 103) object Required: No

Name (p. 20)

The name of the service.

Type: String

Length Constraints: Minimum length of 3. Maximum length of 63.

Pattern: ^(?!svc-)[a-zA-Z0-9]+[a-zA-Z0-9-_ ]+$

Required: Yes Tags (p. 20)

The tags to assign to the service. A tag is a label that you assign to an AWS resource. Each tag consists of a key-value pair..

(29)

Response Syntax

Type: String to string map

Map Entries: Minimum number of 0 items. Maximum number of 50 items.

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

Key Pattern: ^(?!aws:).+

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

Required: No UrlEndpoint (p. 20)

The configuration for the URL endpoint type.

Type: UrlEndpointInput (p. 115) object Required: No

VpcId (p. 20)

The ID of the VPC.

Type: String

Length Constraints: Minimum length of 12. Maximum length of 21.

Pattern: ^vpc-[-a-f0-9]{8}([-a-f0-9]{9})?$

Required: No

Response Syntax

HTTP/1.1 200

Content-type: application/json { "ApplicationId": "string", "Arn": "string",

"CreatedByAccountId": "string", "CreatedTime": number,

"Description": "string", "EndpointType": "string", "EnvironmentId": "string", "LambdaEndpoint": { "Arn": "string"

},

"LastUpdatedTime": number, "Name": "string",

"OwnerAccountId": "string", "ServiceId": "string", "State": "string", "Tags": {

"string" : "string"

},

"UrlEndpoint": {

"HealthUrl": "string", "Url": "string"

},

"VpcId": "string"

}

(30)

Response Elements

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.

ApplicationId (p. 22)

The ID of the application that the created service belongs to.

Type: String

Length Constraints: Fixed length of 14.

Pattern: ^app-[0-9A-Za-z]{10}$

Arn (p. 22)

The Amazon Resource Name (ARN) of the service.

Type: String

Length Constraints: Minimum length of 20. Maximum length of 2048.

Pattern: ^arn:aws:refactor-spaces:[a-zA-Z0-9\-]+:\w{12}:[a-zA-Z_0-9+=,.@\-_/]+

$

CreatedByAccountId (p. 22)

The AWS account ID of the service creator.

Type: String

Length Constraints: Fixed length of 12.

Pattern: ^\d{12}$

CreatedTime (p. 22)

A timestamp that indicates when the service is created.

Type: Timestamp Description (p. 22)

The description of the created service.

Type: String

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

Pattern: ^[a-zA-Z0-9-_\s\.\!\*\#\@\']+$

EndpointType (p. 22)

The endpoint type of the service.

Type: String

Valid Values: LAMBDA | URL EnvironmentId (p. 22)

The unique identifier of the environment.

(31)

Response Elements

Type: String

Length Constraints: Fixed length of 14.

Pattern: ^env-[0-9A-Za-z]{10}$

LambdaEndpoint (p. 22)

The configuration for the Lambda endpoint type.

Type: LambdaEndpointInput (p. 103) object LastUpdatedTime (p. 22)

A timestamp that indicates when the service was last updated.

Type: Timestamp Name (p. 22)

The name of the service.

Type: String

Length Constraints: Minimum length of 3. Maximum length of 63.

Pattern: ^(?!svc-)[a-zA-Z0-9]+[a-zA-Z0-9-_ ]+$

OwnerAccountId (p. 22)

The AWS account ID of the service owner.

Type: String

Length Constraints: Fixed length of 12.

Pattern: ^\d{12}$

ServiceId (p. 22)

The unique identifier of the service.

Type: String

Length Constraints: Fixed length of 14.

Pattern: ^svc-[0-9A-Za-z]{10}$

State (p. 22)

The current state of the service.

Type: String

Valid Values: CREATING | ACTIVE | DELETING | FAILED Tags (p. 22)

The tags assigned to the created service. A tag is a label that you assign to an AWS resource. Each tag consists of a key-value pair..

Type: String to string map

Map Entries: Minimum number of 0 items. Maximum number of 50 items.

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

(32)

Errors

Key Pattern: ^(?!aws:).+

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

UrlEndpoint (p. 22)

The configuration for the URL endpoint type.

Type: UrlEndpointInput (p. 115) object VpcId (p. 22)

The ID of the VPC.

Type: String

Length Constraints: Minimum length of 12. Maximum length of 21.

Pattern: ^vpc-[-a-f0-9]{8}([-a-f0-9]{9})?$

Errors

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

AccessDeniedException

The user does not have sufficient access to perform this action.

HTTP Status Code: 403 ConflictException

Updating or deleting a resource can cause an inconsistent state.

HTTP Status Code: 409 InternalServerException

An unexpected error occurred while processing the request.

HTTP Status Code: 500 ResourceNotFoundException

The request references a resource that does not exist.

HTTP Status Code: 404 ServiceQuotaExceededException

The request would cause a service quota to be exceeded.

HTTP Status Code: 402 ThrottlingException

Request was denied because the request was throttled.

HTTP Status Code: 429 ValidationException

The input does not satisfy the constraints specified by an AWS service.

HTTP Status Code: 400

(33)

See Also

See Also

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

• AWS Command Line Interface

• AWS SDK for .NET

• AWS SDK for C++

• AWS SDK for Go

• AWS SDK for Java V2

• AWS SDK for JavaScript

• AWS SDK for PHP V3

• AWS SDK for Python

• AWS SDK for Ruby V3

(34)

DeleteApplication

DeleteApplication

Deletes an AWS Migration Hub Refactor Spaces application. Before you can delete an application, you must first delete any services or routes within the application.

Request Syntax

DELETE /environments/EnvironmentIdentifier/applications/ApplicationIdentifier HTTP/1.1

URI Request Parameters

The request uses the following URI parameters.

ApplicationIdentifier (p. 27) The ID of the application.

Length Constraints: Fixed length of 14.

Pattern: ^app-[0-9A-Za-z]{10}$

Required: Yes

EnvironmentIdentifier (p. 27) The ID of the environment.

Length Constraints: Fixed length of 14.

Pattern: ^env-[0-9A-Za-z]{10}$

Required: Yes

Request Body

The request does not have a request body.

Response Syntax

HTTP/1.1 200

Content-type: application/json { "ApplicationId": "string", "Arn": "string",

"EnvironmentId": "string", "LastUpdatedTime": number, "Name": "string",

"State": "string"

}

Response Elements

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

(35)

Errors

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

ApplicationId (p. 27)

The ID of the application.

Type: String

Length Constraints: Fixed length of 14.

Pattern: ^app-[0-9A-Za-z]{10}$

Arn (p. 27)

The Amazon Resource Name (ARN) of the application.

Type: String

Length Constraints: Minimum length of 20. Maximum length of 2048.

Pattern: ^arn:aws:refactor-spaces:[a-zA-Z0-9\-]+:\w{12}:[a-zA-Z_0-9+=,.@\-_/]+

$

EnvironmentId (p. 27)

The unique identifier of the application’s environment.

Type: String

Length Constraints: Fixed length of 14.

Pattern: ^env-[0-9A-Za-z]{10}$

LastUpdatedTime (p. 27)

A timestamp that indicates when the environment was last updated.

Type: Timestamp Name (p. 27)

The name of the application.

Type: String

Length Constraints: Minimum length of 3. Maximum length of 63.

Pattern: ^(?!app-)[a-zA-Z0-9]+[a-zA-Z0-9-_ ]+$

State (p. 27)

The current state of the application.

Type: String

Valid Values: CREATING | ACTIVE | DELETING | FAILED | UPDATING

Errors

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

AccessDeniedException

The user does not have sufficient access to perform this action.

(36)

See Also

HTTP Status Code: 403 ConflictException

Updating or deleting a resource can cause an inconsistent state.

HTTP Status Code: 409 InternalServerException

An unexpected error occurred while processing the request.

HTTP Status Code: 500 ResourceNotFoundException

The request references a resource that does not exist.

HTTP Status Code: 404 ThrottlingException

Request was denied because the request was throttled.

HTTP Status Code: 429 ValidationException

The input does not satisfy the constraints specified by an AWS service.

HTTP Status Code: 400

See Also

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

• AWS Command Line Interface

• AWS SDK for .NET

• AWS SDK for C++

• AWS SDK for Go

• AWS SDK for Java V2

• AWS SDK for JavaScript

• AWS SDK for PHP V3

• AWS SDK for Python

• AWS SDK for Ruby V3

(37)

DeleteEnvironment

DeleteEnvironment

Deletes an AWS Migration Hub Refactor Spaces environment. Before you can delete an environment, you must first delete any applications and services within the environment.

Request Syntax

DELETE /environments/EnvironmentIdentifier HTTP/1.1

URI Request Parameters

The request uses the following URI parameters.

EnvironmentIdentifier (p. 30) The ID of the environment.

Length Constraints: Fixed length of 14.

Pattern: ^env-[0-9A-Za-z]{10}$

Required: Yes

Request Body

The request does not have a request body.

Response Syntax

HTTP/1.1 200

Content-type: application/json { "Arn": "string",

"EnvironmentId": "string", "LastUpdatedTime": number, "Name": "string",

"State": "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.

Arn (p. 30)

The Amazon Resource Name (ARN) of the environment.

Type: String

Length Constraints: Minimum length of 20. Maximum length of 2048.

(38)

Errors

Pattern: ^arn:aws:refactor-spaces:[a-zA-Z0-9\-]+:\w{12}:[a-zA-Z_0-9+=,.@\-_/]+

$

EnvironmentId (p. 30)

The unique identifier of the environment.

Type: String

Length Constraints: Fixed length of 14.

Pattern: ^env-[0-9A-Za-z]{10}$

LastUpdatedTime (p. 30)

A timestamp that indicates when the environment was last updated.

Type: Timestamp Name (p. 30)

The name of the environment.

Type: String

Length Constraints: Minimum length of 3. Maximum length of 63.

Pattern: ^(?!env-)[a-zA-Z0-9]+[a-zA-Z0-9-_ ]+$

State (p. 30)

The current state of the environment.

Type: String

Valid Values: CREATING | ACTIVE | DELETING | FAILED

Errors

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

AccessDeniedException

The user does not have sufficient access to perform this action.

HTTP Status Code: 403 ConflictException

Updating or deleting a resource can cause an inconsistent state.

HTTP Status Code: 409 InternalServerException

An unexpected error occurred while processing the request.

HTTP Status Code: 500 ResourceNotFoundException

The request references a resource that does not exist.

HTTP Status Code: 404

(39)

See Also

ThrottlingException

Request was denied because the request was throttled.

HTTP Status Code: 429 ValidationException

The input does not satisfy the constraints specified by an AWS service.

HTTP Status Code: 400

See Also

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

• AWS Command Line Interface

• AWS SDK for .NET

• AWS SDK for C++

• AWS SDK for Go

• AWS SDK for Java V2

• AWS SDK for JavaScript

• AWS SDK for PHP V3

• AWS SDK for Python

• AWS SDK for Ruby V3

(40)

DeleteResourcePolicy

DeleteResourcePolicy

Deletes the resource policy set for the environment.

Request Syntax

DELETE /resourcepolicy/Identifier HTTP/1.1

URI Request Parameters

The request uses the following URI parameters.

Identifier (p. 33)

Amazon Resource Name (ARN) of the resource associated with the policy.

Length Constraints: Minimum length of 20. Maximum length of 2048.

Pattern: ^arn:aws:refactor-spaces:[a-zA-Z0-9\-]+:\w{12}:[a-zA-Z_0-9+=,.@\-_/]+

$

Required: Yes

Request Body

The request does not have a request body.

Response Syntax

HTTP/1.1 200

Response Elements

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

Errors

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

AccessDeniedException

The user does not have sufficient access to perform this action.

HTTP Status Code: 403 InternalServerException

An unexpected error occurred while processing the request.

HTTP Status Code: 500 ResourceNotFoundException

The request references a resource that does not exist.

(41)

See Also

HTTP Status Code: 404 ThrottlingException

Request was denied because the request was throttled.

HTTP Status Code: 429 ValidationException

The input does not satisfy the constraints specified by an AWS service.

HTTP Status Code: 400

See Also

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

• AWS Command Line Interface

• AWS SDK for .NET

• AWS SDK for C++

• AWS SDK for Go

• AWS SDK for Java V2

• AWS SDK for JavaScript

• AWS SDK for PHP V3

• AWS SDK for Python

• AWS SDK for Ruby V3

(42)

DeleteRoute

DeleteRoute

Deletes an AWS Migration Hub Refactor Spaces route.

Request Syntax

DELETE /environments/EnvironmentIdentifier/applications/ApplicationIdentifier/

routes/RouteIdentifier HTTP/1.1

URI Request Parameters

The request uses the following URI parameters.

ApplicationIdentifier (p. 35)

The ID of the application to delete the route from.

Length Constraints: Fixed length of 14.

Pattern: ^app-[0-9A-Za-z]{10}$

Required: Yes

EnvironmentIdentifier (p. 35)

The ID of the environment to delete the route from.

Length Constraints: Fixed length of 14.

Pattern: ^env-[0-9A-Za-z]{10}$

Required: Yes RouteIdentifier (p. 35)

The ID of the route to delete.

Length Constraints: Fixed length of 14.

Pattern: ^rte-[0-9A-Za-z]{10}$

Required: Yes

Request Body

The request does not have a request body.

Response Syntax

HTTP/1.1 200

Content-type: application/json { "ApplicationId": "string", "Arn": "string",

"LastUpdatedTime": number,

(43)

Response Elements

"RouteId": "string", "ServiceId": "string", "State": "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.

ApplicationId (p. 35)

The ID of the application that the route belongs to.

Type: String

Length Constraints: Fixed length of 14.

Pattern: ^app-[0-9A-Za-z]{10}$

Arn (p. 35)

The Amazon Resource Name (ARN) of the route.

Type: String

Length Constraints: Minimum length of 20. Maximum length of 2048.

Pattern: ^arn:aws:refactor-spaces:[a-zA-Z0-9\-]+:\w{12}:[a-zA-Z_0-9+=,.@\-_/]+

$

LastUpdatedTime (p. 35)

A timestamp that indicates when the route was last updated.

Type: Timestamp RouteId (p. 35)

The ID of the route to delete.

Type: String

Length Constraints: Fixed length of 14.

Pattern: ^rte-[0-9A-Za-z]{10}$

ServiceId (p. 35)

The ID of the service that the route belongs to.

Type: String

Length Constraints: Fixed length of 14.

Pattern: ^svc-[0-9A-Za-z]{10}$

State (p. 35)

The current state of the route.

Type: String

Valid Values: CREATING | ACTIVE | DELETING | FAILED | UPDATING | INACTIVE

(44)

Errors

Errors

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

AccessDeniedException

The user does not have sufficient access to perform this action.

HTTP Status Code: 403 ConflictException

Updating or deleting a resource can cause an inconsistent state.

HTTP Status Code: 409 InternalServerException

An unexpected error occurred while processing the request.

HTTP Status Code: 500 ResourceNotFoundException

The request references a resource that does not exist.

HTTP Status Code: 404 ThrottlingException

Request was denied because the request was throttled.

HTTP Status Code: 429 ValidationException

The input does not satisfy the constraints specified by an AWS service.

HTTP Status Code: 400

See Also

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

• AWS Command Line Interface

• AWS SDK for .NET

• AWS SDK for C++

• AWS SDK for Go

• AWS SDK for Java V2

• AWS SDK for JavaScript

• AWS SDK for PHP V3

• AWS SDK for Python

• AWS SDK for Ruby V3

(45)

DeleteService

DeleteService

Deletes an AWS Migration Hub Refactor Spaces service.

Request Syntax

DELETE /environments/EnvironmentIdentifier/applications/ApplicationIdentifier/

services/ServiceIdentifier HTTP/1.1

URI Request Parameters

The request uses the following URI parameters.

ApplicationIdentifier (p. 38)

Deletes a Refactor Spaces service.

NoteThe RefactorSpacesSecurityGroup security group must be removed from all AWS resources in the virtual private cloud (VPC) prior to deleting a service with a URL endpoint in a VPC.

Length Constraints: Fixed length of 14.

Pattern: ^app-[0-9A-Za-z]{10}$

Required: Yes

EnvironmentIdentifier (p. 38)

The ID of the environment that the service is in.

Length Constraints: Fixed length of 14.

Pattern: ^env-[0-9A-Za-z]{10}$

Required: Yes ServiceIdentifier (p. 38)

The ID of the service to delete.

Length Constraints: Fixed length of 14.

Pattern: ^svc-[0-9A-Za-z]{10}$

Required: Yes

Request Body

The request does not have a request body.

Response Syntax

HTTP/1.1 200

Content-type: application/json

(46)

Response Elements

{ "ApplicationId": "string", "Arn": "string",

"EnvironmentId": "string", "LastUpdatedTime": number, "Name": "string",

"ServiceId": "string", "State": "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.

ApplicationId (p. 38)

The ID of the application that the service is in.

Type: String

Length Constraints: Fixed length of 14.

Pattern: ^app-[0-9A-Za-z]{10}$

Arn (p. 38)

The Amazon Resource Name (ARN) of the service.

Type: String

Length Constraints: Minimum length of 20. Maximum length of 2048.

Pattern: ^arn:aws:refactor-spaces:[a-zA-Z0-9\-]+:\w{12}:[a-zA-Z_0-9+=,.@\-_/]+

$

EnvironmentId (p. 38)

The unique identifier of the environment.

Type: String

Length Constraints: Fixed length of 14.

Pattern: ^env-[0-9A-Za-z]{10}$

LastUpdatedTime (p. 38)

A timestamp that indicates when the service was last updated.

Type: Timestamp Name (p. 38)

The name of the service.

Type: String

Length Constraints: Minimum length of 3. Maximum length of 63.

Pattern: ^(?!svc-)[a-zA-Z0-9]+[a-zA-Z0-9-_ ]+$

(47)

Errors

ServiceId (p. 38)

The unique identifier of the service.

Type: String

Length Constraints: Fixed length of 14.

Pattern: ^svc-[0-9A-Za-z]{10}$

State (p. 38)

The current state of the service.

Type: String

Valid Values: CREATING | ACTIVE | DELETING | FAILED

Errors

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

AccessDeniedException

The user does not have sufficient access to perform this action.

HTTP Status Code: 403 ConflictException

Updating or deleting a resource can cause an inconsistent state.

HTTP Status Code: 409 InternalServerException

An unexpected error occurred while processing the request.

HTTP Status Code: 500 ResourceNotFoundException

The request references a resource that does not exist.

HTTP Status Code: 404 ThrottlingException

Request was denied because the request was throttled.

HTTP Status Code: 429 ValidationException

The input does not satisfy the constraints specified by an AWS service.

HTTP Status Code: 400

See Also

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

• AWS Command Line Interface

(48)

See Also

• AWS SDK for .NET

• AWS SDK for C++

• AWS SDK for Go

• AWS SDK for Java V2

• AWS SDK for JavaScript

• AWS SDK for PHP V3

• AWS SDK for Python

• AWS SDK for Ruby V3

(49)

GetApplication

GetApplication

Gets an AWS Migration Hub Refactor Spaces application.

Request Syntax

GET /environments/EnvironmentIdentifier/applications/ApplicationIdentifier HTTP/1.1

URI Request Parameters

The request uses the following URI parameters.

ApplicationIdentifier (p. 42) The ID of the application.

Length Constraints: Fixed length of 14.

Pattern: ^app-[0-9A-Za-z]{10}$

Required: Yes

EnvironmentIdentifier (p. 42) The ID of the environment.

Length Constraints: Fixed length of 14.

Pattern: ^env-[0-9A-Za-z]{10}$

Required: Yes

Request Body

The request does not have a request body.

Response Syntax

HTTP/1.1 200

Content-type: application/json { "ApiGatewayProxy": { "ApiGatewayId": "string", "EndpointType": "string", "NlbArn": "string", "NlbName": "string", "ProxyUrl": "string", "StageName": "string", "VpcLinkId": "string"

},

"ApplicationId": "string", "Arn": "string",

"CreatedByAccountId": "string", "CreatedTime": number,

"EnvironmentId": "string",

(50)

Response Elements

"Error": {

"AccountId": "string", "AdditionalDetails": { "string" : "string"

},

"Code": "string", "Message": "string",

"ResourceIdentifier": "string", "ResourceType": "string"

},

"LastUpdatedTime": number, "Name": "string",

"OwnerAccountId": "string", "ProxyType": "string", "State": "string", "Tags": {

"string" : "string"

},

"VpcId": "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.

ApiGatewayProxy (p. 42)

The endpoint URL of the API Gateway proxy.

Type: ApiGatewayProxyConfig (p. 87) object ApplicationId (p. 42)

The unique identifier of the application.

Type: String

Length Constraints: Fixed length of 14.

Pattern: ^app-[0-9A-Za-z]{10}$

Arn (p. 42)

The Amazon Resource Name (ARN) of the application.

Type: String

Length Constraints: Minimum length of 20. Maximum length of 2048.

Pattern: ^arn:aws:refactor-spaces:[a-zA-Z0-9\-]+:\w{12}:[a-zA-Z_0-9+=,.@\-_/]+

$

CreatedByAccountId (p. 42)

The AWS account ID of the application creator.

Type: String

Length Constraints: Fixed length of 12.

Pattern: ^\d{12}$

(51)

Response Elements

CreatedTime (p. 42)

A timestamp that indicates when the application is created.

Type: Timestamp EnvironmentId (p. 42)

The unique identifier of the environment.

Type: String

Length Constraints: Fixed length of 14.

Pattern: ^env-[0-9A-Za-z]{10}$

Error (p. 42)

Any error associated with the application resource.

Type: ErrorResponse (p. 100) object LastUpdatedTime (p. 42)

A timestamp that indicates when the application was last updated.

Type: Timestamp Name (p. 42)

The name of the application.

Type: String

Length Constraints: Minimum length of 3. Maximum length of 63.

Pattern: ^(?!app-)[a-zA-Z0-9]+[a-zA-Z0-9-_ ]+$

OwnerAccountId (p. 42)

The AWS account ID of the application owner (which is always the same as the environment owner account ID).

Type: String

Length Constraints: Fixed length of 12.

Pattern: ^\d{12}$

ProxyType (p. 42)

The proxy type of the proxy created within the application.

Type: String

Valid Values: API_GATEWAY State (p. 42)

The current state of the application.

Type: String

Valid Values: CREATING | ACTIVE | DELETING | FAILED | UPDATING Tags (p. 42)

The tags assigned to the application. A tag is a label that you assign to an AWS resource. Each tag consists of a key-value pair.

(52)

Errors

Type: String to string map

Map Entries: Minimum number of 0 items. Maximum number of 50 items.

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

Key Pattern: ^(?!aws:).+

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

VpcId (p. 42)

The ID of the virtual private cloud (VPC).

Type: String

Length Constraints: Minimum length of 12. Maximum length of 21.

Pattern: ^vpc-[-a-f0-9]{8}([-a-f0-9]{9})?$

Errors

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

AccessDeniedException

The user does not have sufficient access to perform this action.

HTTP Status Code: 403 InternalServerException

An unexpected error occurred while processing the request.

HTTP Status Code: 500 ResourceNotFoundException

The request references a resource that does not exist.

HTTP Status Code: 404 ThrottlingException

Request was denied because the request was throttled.

HTTP Status Code: 429 ValidationException

The input does not satisfy the constraints specified by an AWS service.

HTTP Status Code: 400

See Also

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

• AWS Command Line Interface

• AWS SDK for .NET

• AWS SDK for C++

(53)

See Also

• AWS SDK for Go

• AWS SDK for Java V2

• AWS SDK for JavaScript

• AWS SDK for PHP V3

• AWS SDK for Python

• AWS SDK for Ruby V3

(54)

GetEnvironment

GetEnvironment

Gets an AWS Migration Hub Refactor Spaces environment.

Request Syntax

GET /environments/EnvironmentIdentifier HTTP/1.1

URI Request Parameters

The request uses the following URI parameters.

EnvironmentIdentifier (p. 47) The ID of the environment.

Length Constraints: Fixed length of 14.

Pattern: ^env-[0-9A-Za-z]{10}$

Required: Yes

Request Body

The request does not have a request body.

Response Syntax

HTTP/1.1 200

Content-type: application/json { "Arn": "string",

"CreatedTime": number, "Description": "string", "EnvironmentId": "string", "Error": {

"AccountId": "string", "AdditionalDetails": { "string" : "string"

},

"Code": "string", "Message": "string",

"ResourceIdentifier": "string", "ResourceType": "string"

},

"LastUpdatedTime": number, "Name": "string",

"NetworkFabricType": "string", "OwnerAccountId": "string", "State": "string",

"Tags": {

"string" : "string"

},

"TransitGatewayId": "string"

}

(55)

Response Elements

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.

Arn (p. 47)

The Amazon Resource Name (ARN) of the environment.

Type: String

Length Constraints: Minimum length of 20. Maximum length of 2048.

Pattern: ^arn:aws:refactor-spaces:[a-zA-Z0-9\-]+:\w{12}:[a-zA-Z_0-9+=,.@\-_/]+

$

CreatedTime (p. 47)

A timestamp that indicates when the environment is created.

Type: Timestamp Description (p. 47)

The description of the environment.

Type: String

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

Pattern: ^[a-zA-Z0-9-_\s\.\!\*\#\@\']+$

EnvironmentId (p. 47)

The unique identifier of the environment.

Type: String

Length Constraints: Fixed length of 14.

Pattern: ^env-[0-9A-Za-z]{10}$

Error (p. 47)

Any error associated with the environment resource.

Type: ErrorResponse (p. 100) object LastUpdatedTime (p. 47)

A timestamp that indicates when the environment was last updated.

Type: Timestamp Name (p. 47)

The name of the environment.

Type: String

Length Constraints: Minimum length of 3. Maximum length of 63.

Pattern: ^(?!env-)[a-zA-Z0-9]+[a-zA-Z0-9-_ ]+$

參考文獻

相關文件

Reading Task 6: Genre Structure and Language Features. • Now let’s look at how language features (e.g. sentence patterns) are connected to the structure

 Promote project learning, mathematical modeling, and problem-based learning to strengthen the ability to integrate and apply knowledge and skills, and make. calculated

利用 determinant 我 們可以判斷一個 square matrix 是否為 invertible, 也可幫助我們找到一個 invertible matrix 的 inverse, 甚至將聯立方成組的解寫下.

Then, we tested the influence of θ for the rate of convergence of Algorithm 4.1, by using this algorithm with α = 15 and four different θ to solve a test ex- ample generated as

Numerical results are reported for some convex second-order cone programs (SOCPs) by solving the unconstrained minimization reformulation of the KKT optimality conditions,

Particularly, combining the numerical results of the two papers, we may obtain such a conclusion that the merit function method based on ϕ p has a better a global convergence and

Then, it is easy to see that there are 9 problems for which the iterative numbers of the algorithm using ψ α,θ,p in the case of θ = 1 and p = 3 are less than the one of the

By exploiting the Cartesian P -properties for a nonlinear transformation, we show that the class of regularized merit functions provides a global error bound for the solution of