MigrationHubRefactorSpaces / Client / create_application
create_application#
- MigrationHubRefactorSpaces.Client.create_application(**kwargs)#
Creates an Amazon Web Services 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.
In environments created with a CreateEnvironment:NetworkFabricType of
NONE
you need to configure VPC to VPC connectivity between your service VPC and the application proxy VPC to route traffic through the application proxy to a service with a private URL endpoint. For more information, see Create an application in the Refactor Spaces User Guide.See also: AWS API Documentation
Request Syntax
response = client.create_application( ApiGatewayProxy={ 'EndpointType': 'REGIONAL'|'PRIVATE', 'StageName': 'string' }, ClientToken='string', EnvironmentIdentifier='string', Name='string', ProxyType='API_GATEWAY', Tags={ 'string': 'string' }, VpcId='string' )
- Parameters:
ApiGatewayProxy (dict) –
A wrapper object holding the API Gateway endpoint type and stage name for the proxy.
EndpointType (string) –
The type of endpoint to use for the API Gateway proxy. If no value is specified in the request, the value is set to
REGIONAL
by default.If the value is set to
PRIVATE
in the request, this creates a private API endpoint that is isolated from the public internet. The private endpoint can only be accessed by using Amazon Virtual Private Cloud (Amazon VPC) interface endpoints for the Amazon API Gateway that has been granted access. For more information about creating a private connection with Refactor Spaces and interface endpoint (Amazon Web Services PrivateLink) availability, see Access Refactor Spaces using an interface endpoint (Amazon Web Services PrivateLink).StageName (string) –
The name of the API Gateway stage. The name defaults to
prod
.
ClientToken (string) –
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
This field is autopopulated if not provided.
EnvironmentIdentifier (string) –
[REQUIRED]
The unique identifier of the environment.
Name (string) –
[REQUIRED]
The name to use for the application.
ProxyType (string) –
[REQUIRED]
The proxy type of the proxy created within the application.
Tags (dict) –
The tags to assign to the application. A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key-value pair.
(string) –
(string) –
VpcId (string) –
[REQUIRED]
The ID of the virtual private cloud (VPC).
- Return type:
dict
- Returns:
Response Syntax
{ 'ApiGatewayProxy': { 'EndpointType': 'REGIONAL'|'PRIVATE', 'StageName': 'string' }, 'ApplicationId': 'string', 'Arn': 'string', 'CreatedByAccountId': 'string', 'CreatedTime': datetime(2015, 1, 1), 'EnvironmentId': 'string', 'LastUpdatedTime': datetime(2015, 1, 1), 'Name': 'string', 'OwnerAccountId': 'string', 'ProxyType': 'API_GATEWAY', 'State': 'CREATING'|'ACTIVE'|'DELETING'|'FAILED'|'UPDATING', 'Tags': { 'string': 'string' }, 'VpcId': 'string' }
Response Structure
(dict) –
ApiGatewayProxy (dict) –
A wrapper object holding the API Gateway endpoint type and stage name for the proxy.
EndpointType (string) –
The type of endpoint to use for the API Gateway proxy. If no value is specified in the request, the value is set to
REGIONAL
by default.If the value is set to
PRIVATE
in the request, this creates a private API endpoint that is isolated from the public internet. The private endpoint can only be accessed by using Amazon Virtual Private Cloud (Amazon VPC) interface endpoints for the Amazon API Gateway that has been granted access. For more information about creating a private connection with Refactor Spaces and interface endpoint (Amazon Web Services PrivateLink) availability, see Access Refactor Spaces using an interface endpoint (Amazon Web Services PrivateLink).StageName (string) –
The name of the API Gateway stage. The name defaults to
prod
.
ApplicationId (string) –
The unique identifier of the application.
Arn (string) –
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 Amazon Web Services General Reference.
CreatedByAccountId (string) –
The Amazon Web Services account ID of application creator.
CreatedTime (datetime) –
A timestamp that indicates when the application is created.
EnvironmentId (string) –
The ID of the environment in which the application is created.
LastUpdatedTime (datetime) –
A timestamp that indicates when the application was last updated.
Name (string) –
The name of the application.
OwnerAccountId (string) –
The Amazon Web Services account ID of the application owner (which is always the same as the environment owner account ID).
ProxyType (string) –
The proxy type of the proxy created within the application.
State (string) –
The current state of the application.
Tags (dict) –
The tags assigned to the application. A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key-value pair.
(string) –
(string) –
VpcId (string) –
The ID of the Amazon VPC.
Exceptions
MigrationHubRefactorSpaces.Client.exceptions.ResourceNotFoundException
MigrationHubRefactorSpaces.Client.exceptions.InternalServerException
MigrationHubRefactorSpaces.Client.exceptions.ConflictException
MigrationHubRefactorSpaces.Client.exceptions.ServiceQuotaExceededException
MigrationHubRefactorSpaces.Client.exceptions.ValidationException
MigrationHubRefactorSpaces.Client.exceptions.ThrottlingException
MigrationHubRefactorSpaces.Client.exceptions.AccessDeniedException