AWS Fundamentals Logo
AWS Fundamentals
L1 ConstructAWS::RefactorSpaces::Application

CfnApplication

> AWS Migration Hub is no longer open to new customers as of November 7, 2025. For capabilities similar to AWS Migration Hub , explore [AWS Migration Hub](https://docs.aws.amazon.com/https://aws.amazon.com/transform) . 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. In environments created with a [CreateEnvironment:NetworkFabricType](https://docs.aws.amazon.com/migrationhub-refactor-spaces/latest/APIReference/API_CreateEnvironment.html#migrationhubrefactorspaces-CreateEnvironment-request-NetworkFabricType) of `NONE` you need to configure [VPC to VPC connectivity](https://docs.aws.amazon.com/whitepapers/latest/aws-vpc-connectivity-options/amazon-vpc-to-amazon-vpc-connectivity-options.html) 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](https://docs.aws.amazon.com/migrationhub-refactor-spaces/latest/userguide/getting-started-create-application.html) in the *Refactor Spaces User Guide* .

Import

import { CfnApplication } from 'aws-cdk-lib/aws-refactorspaces';

Or use the module namespace:

import * as refactorspaces from 'aws-cdk-lib/aws-refactorspaces';
// refactorspaces.CfnApplication

Properties

Configuration passed to the constructor as CfnApplicationProps.

environmentIdentifierRequired
string | IEnvironmentRef

The unique identifier of the environment.

nameRequired
string

The name of the application.

proxyTypeRequired
string

The proxy type of the proxy created within the application.

vpcIdRequired
string | IVPCRef

The ID of the virtual private cloud (VPC).

apiGatewayProxyOptional
IResolvable | ApiGatewayProxyInputProperty

The endpoint URL of the Amazon API Gateway proxy.

tagsOptional
CfnTag[]

The tags assigned to the application.

CloudFormation Resource

This L1 construct maps directly to the following CloudFormation resource type.

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter

Quick Facts

LevelL1 (CloudFormation)
Moduleaws-refactorspaces
CFN TypeAWS::RefactorSpaces::Application
Properties6

Related Constructs

External Links