Class CfnService
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.core.Construct
software.amazon.awscdk.core.CfnElement
software.amazon.awscdk.core.CfnRefElement
software.amazon.awscdk.core.CfnResource
software.amazon.awscdk.services.refactorspaces.CfnService
- All Implemented Interfaces:
IConstruct,IDependable,IInspectable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:34.928Z")
@Stability(Stable)
public class CfnService
extends CfnResource
implements IInspectable
A CloudFormation
AWS::RefactorSpaces::Service.
Creates an AWS Migration Hub Refactor Spaces service. The account owner of the service is always the environment owner, regardless of which account in the environment creates the service. Services have either a URL endpoint in a virtual private cloud (VPC), or a Lambda function endpoint.
If an AWS resource is launched in a service VPC, and you want it to be accessible to all of an environment’s services with VPCs and routes, apply the
RefactorSpacesSecurityGroupto the resource. Alternatively, to add more cross-account constraints, apply your own security group.
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.*;
CfnService cfnService = CfnService.Builder.create(this, "MyCfnService")
.applicationIdentifier("applicationIdentifier")
.endpointType("endpointType")
.environmentIdentifier("environmentIdentifier")
.name("name")
// the properties below are optional
.description("description")
.lambdaEndpoint(LambdaEndpointInputProperty.builder()
.arn("arn")
.build())
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.urlEndpoint(UrlEndpointInputProperty.builder()
.url("url")
// the properties below are optional
.healthUrl("healthUrl")
.build())
.vpcId("vpcId")
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnService.static interfaceThe input for the AWS Lambda endpoint type.static interfaceThe configuration for the URL endpoint type.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
ConstructorsModifierConstructorDescriptionCfnService(Construct scope, String id, CfnServiceProps props) Create a newAWS::RefactorSpaces::Service.protectedCfnService(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnService(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionThe unique identifier of the application.The Amazon Resource Name (ARN) of the service.The unique identifier of the service.A description of the service.The endpoint type of the service.The unique identifier of the environment.A summary of the configuration for the AWS Lambda endpoint type.getName()The name of the service.getTags()The tags assigned to the service.The summary of the configuration for the URL endpoint type.getVpcId()The ID of the virtual private cloud (VPC).voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetApplicationIdentifier(String value) The unique identifier of the application.voidsetDescription(String value) A description of the service.voidsetEndpointType(String value) The endpoint type of the service.voidsetEnvironmentIdentifier(String value) The unique identifier of the environment.voidsetLambdaEndpoint(IResolvable value) A summary of the configuration for the AWS Lambda endpoint type.voidA summary of the configuration for the AWS Lambda endpoint type.voidThe name of the service.voidsetUrlEndpoint(IResolvable value) The summary of the configuration for the URL endpoint type.voidThe summary of the configuration for the URL endpoint type.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
-
CfnService
protected CfnService(software.amazon.jsii.JsiiObjectRef objRef) -
CfnService
protected CfnService(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnService
@Stability(Stable) public CfnService(@NotNull Construct scope, @NotNull String id, @NotNull CfnServiceProps props) Create a newAWS::RefactorSpaces::Service.- 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.
-
getAttrArn
The Amazon Resource Name (ARN) of the service. -
getAttrServiceIdentifier
The unique identifier of the service. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getTags
The tags assigned to the service. -
getApplicationIdentifier
The unique identifier of the application. -
setApplicationIdentifier
The unique identifier of the application. -
getEndpointType
The endpoint type of the service. -
setEndpointType
The endpoint type of the service. -
getEnvironmentIdentifier
The unique identifier of the environment. -
setEnvironmentIdentifier
The unique identifier of the environment. -
getName
The name of the service. -
setName
The name of the service. -
getDescription
A description of the service. -
setDescription
A description of the service. -
getLambdaEndpoint
A summary of the configuration for the AWS Lambda endpoint type. -
setLambdaEndpoint
A summary of the configuration for the AWS Lambda endpoint type. -
setLambdaEndpoint
@Stability(Stable) public void setLambdaEndpoint(@Nullable CfnService.LambdaEndpointInputProperty value) A summary of the configuration for the AWS Lambda endpoint type. -
getUrlEndpoint
The summary of the configuration for the URL endpoint type. -
setUrlEndpoint
The summary of the configuration for the URL endpoint type. -
setUrlEndpoint
The summary of the configuration for the URL endpoint type. -
getVpcId
The ID of the virtual private cloud (VPC). -
setVpcId
The ID of the virtual private cloud (VPC).
-