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
Modifier and TypeClassDescriptionstatic interface
A wrapper object holding the Amazon API Gateway endpoint input.static final class
A fluent builder forCfnApplication
.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionCfnApplication
(Construct scope, String id, CfnApplicationProps props) Create a newAWS::RefactorSpaces::Application
.protected
CfnApplication
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnApplication
(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.TheVpcLink
ID 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).void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
setApiGatewayProxy
(IResolvable value) The endpoint URL of the Amazon API Gateway proxy.void
The endpoint URL of the Amazon API Gateway proxy.void
setEnvironmentIdentifier
(String value) The unique identifier of the environment.void
The name of the application.void
setProxyType
(String value) The proxy type of the proxy created within the application.void
The 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, validateProperties
Methods inherited from class software.amazon.awscdk.core.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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:
inspect
in 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:
renderProperties
in 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
TheVpcLink
ID of the API Gateway proxy. -
getCfnProperties
- Overrides:
getCfnProperties
in 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.
-