Class CfnApplication
- All Implemented Interfaces:
IConstruct,IDependable,IInspectable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct
AWS::RefactorSpaces::Application.
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 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 .
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.refactorspaces.*;
CfnApplication cfnApplication = CfnApplication.Builder.create(this, "MyCfnApplication")
.environmentIdentifier("environmentIdentifier")
.name("name")
.proxyType("proxyType")
.vpcId("vpcId")
// the properties below are optional
.apiGatewayProxy(ApiGatewayProxyInputProperty.builder()
.endpointType("endpointType")
.stageName("stageName")
.build())
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceA wrapper object holding the Amazon API Gateway endpoint input.static final classA fluent builder forCfnApplication.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionCfnApplication(Construct scope, String id, CfnApplicationProps props) Create a newAWS::RefactorSpaces::Application.protectedCfnApplication(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnApplication(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionThe endpoint URL of the Amazon API Gateway proxy.The resource ID of the API Gateway for the proxy.The unique identifier of the application.The Amazon Resource Name (ARN) of the application.The Amazon Resource Name (ARN) of the Network Load Balancer .The name of the Network Load Balancer configured by the API Gateway proxy.The endpoint URL of the Amazon API Gateway proxy.The name of the API Gateway stage.TheVpcLinkID of the API Gateway proxy.The unique identifier of the environment.getName()The name of the application.The proxy type of the proxy created within the application.getTags()The tags assigned to the application.getVpcId()The ID of the virtual private cloud (VPC).voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetApiGatewayProxy(IResolvable value) The endpoint URL of the Amazon API Gateway proxy.voidThe endpoint URL of the Amazon API Gateway proxy.voidsetEnvironmentIdentifier(String value) The unique identifier of the environment.voidThe name of the application.voidsetProxyType(String value) The proxy type of the proxy created within the application.voidThe ID of the virtual private cloud (VPC).Methods inherited from class software.amazon.awscdk.core.CfnResource
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.core.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnApplication
protected CfnApplication(software.amazon.jsii.JsiiObjectRef objRef) -
CfnApplication
protected CfnApplication(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnApplication
@Stability(Stable) public CfnApplication(@NotNull Construct scope, @NotNull String id, @NotNull CfnApplicationProps props) Create a newAWS::RefactorSpaces::Application.- Parameters:
scope-- scope in which this resource is defined.
id-- scoped id of the resource.
props-- resource properties.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector-- tree inspector to collect and process attributes.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrApiGatewayId
The resource ID of the API Gateway for the proxy. -
getAttrApplicationIdentifier
The unique identifier of the application. -
getAttrArn
The Amazon Resource Name (ARN) of the application. -
getAttrNlbArn
The Amazon Resource Name (ARN) of the Network Load Balancer . -
getAttrNlbName
The name of the Network Load Balancer configured by the API Gateway proxy. -
getAttrProxyUrl
The endpoint URL of the Amazon API Gateway proxy. -
getAttrStageName
The name of the API Gateway stage.The name defaults to
prod. -
getAttrVpcLinkId
TheVpcLinkID of the API Gateway proxy. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getTags
The tags assigned to the application. -
getEnvironmentIdentifier
The unique identifier of the environment. -
setEnvironmentIdentifier
The unique identifier of the environment. -
getName
The name of the application. -
setName
The name of the application. -
getProxyType
The proxy type of the proxy created within the application. -
setProxyType
The proxy type of the proxy created within the application. -
getVpcId
The ID of the virtual private cloud (VPC). -
setVpcId
The ID of the virtual private cloud (VPC). -
getApiGatewayProxy
The endpoint URL of the Amazon API Gateway proxy. -
setApiGatewayProxy
@Stability(Stable) public void setApiGatewayProxy(@Nullable CfnApplication.ApiGatewayProxyInputProperty value) The endpoint URL of the Amazon API Gateway proxy. -
setApiGatewayProxy
The endpoint URL of the Amazon API Gateway proxy.
-