Skip to main content

applications

Creates, updates, deletes, gets or lists an applications resource.

Overview

Nameapplications
TypeResource
Idaws.migration_hub_refactor_spaces.applications

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
api_gateway_proxyobjectThe endpoint URL of the API Gateway proxy.
application_idstringThe unique identifier of the application. (pattern: <code>^app-[0-9A-Za-z]{10}$</code>)
arnstringThe Amazon Resource Name (ARN) of the application. (pattern: <code>^arn:aws:refactor-spaces:[a-zA-Z0-9-]+:\w{12}:[a-zA-Z_0-9+=,.@-_/]+$</code>)
created_by_account_idstringThe Amazon Web Services account ID of the application creator. (pattern: <code>^\d{12}$</code>)
created_timestring (date-time)A timestamp that indicates when the application is created.
environment_idstringThe unique identifier of the environment. (pattern: <code>^env-[0-9A-Za-z]{10}$</code>)
errorobjectAny error associated with the application resource.
last_updated_timestring (date-time)A timestamp that indicates when the application was last updated.
namestringThe name of the application. (pattern: <code>^(?!app-)[a-zA-Z0-9]+[a-zA-Z0-9-_ ]+$</code>)
owner_account_idstringThe Amazon Web Services account ID of the application owner (which is always the same as the environment owner account ID). (pattern: <code>^\d{12}$</code>)
proxy_typestringThe proxy type of the proxy created within the application. (API_GATEWAY)
statestringThe current state of the application. (CREATING, ACTIVE, DELETING, FAILED, UPDATING)
tagsobjectThe 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.
vpc_idstringThe ID of the virtual private cloud (VPC). (pattern: <code>^vpc-[-a-f0-9]{8}([-a-f0-9]{9})?$</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_applicationselectapplication_identifier, environment_identifier, regionGets an Amazon Web Services Migration Hub Refactor Spaces application.
list_applicationsselectenvironment_identifier, regionmaxResults, nextTokenLists all the Amazon Web Services Migration Hub Refactor Spaces applications within an environment.
create_applicationinsertenvironment_identifier, region, ProxyType, VpcIdCreates 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.
delete_applicationdeleteapplication_identifier, environment_identifier, regionDeletes an Amazon Web Services Migration Hub Refactor Spaces application. Before you can delete an application, you must first delete any services or routes within the application.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
application_identifierstringThe ID of the application.
environment_identifierstringThe ID of the environment.
regionstringAWS region (default: us-east-1)
maxResultsintegerThe maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value.
nextTokenstringThe token for the next page of results.

SELECT examples

Gets an Amazon Web Services Migration Hub Refactor Spaces application.

SELECT
api_gateway_proxy,
application_id,
arn,
created_by_account_id,
created_time,
environment_id,
error,
last_updated_time,
name,
owner_account_id,
proxy_type,
state,
tags,
vpc_id
FROM aws.migration_hub_refactor_spaces.applications
WHERE application_identifier = '{{ application_identifier }}' -- required
AND environment_identifier = '{{ environment_identifier }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

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.

INSERT INTO aws.migration_hub_refactor_spaces.applications (
ApiGatewayProxy,
ClientToken,
Name,
ProxyType,
Tags,
VpcId,
environment_identifier,
region
)
SELECT
'{{ ApiGatewayProxy }}',
'{{ ClientToken }}',
'{{ Name }}',
'{{ ProxyType }}' /* required */,
'{{ Tags }}',
'{{ VpcId }}' /* required */,
'{{ environment_identifier }}',
'{{ region }}'
RETURNING
api_gateway_proxy,
application_id,
arn,
created_by_account_id,
created_time,
environment_id,
last_updated_time,
name,
owner_account_id,
proxy_type,
state,
tags,
vpc_id
;

DELETE examples

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

DELETE FROM aws.migration_hub_refactor_spaces.applications
WHERE application_identifier = '{{ application_identifier }}' --required
AND environment_identifier = '{{ environment_identifier }}' --required
AND region = '{{ region }}' --required
;