Class CfnEnvironment
- All Implemented Interfaces:
IInspectable,ITaggable,IEnvironmentRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
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.m2.*;
CfnEnvironment cfnEnvironment = CfnEnvironment.Builder.create(this, "MyCfnEnvironment")
.engineType("engineType")
.instanceType("instanceType")
.name("name")
// the properties below are optional
.description("description")
.engineVersion("engineVersion")
.highAvailabilityConfig(HighAvailabilityConfigProperty.builder()
.desiredCapacity(123)
.build())
.kmsKeyId("kmsKeyId")
.networkType("networkType")
.preferredMaintenanceWindow("preferredMaintenanceWindow")
.publiclyAccessible(false)
.securityGroupIds(List.of("securityGroupIds"))
.storageConfigurations(List.of(StorageConfigurationProperty.builder()
.efs(EfsStorageConfigurationProperty.builder()
.fileSystemId("fileSystemId")
.mountPoint("mountPoint")
.build())
.fsx(FsxStorageConfigurationProperty.builder()
.fileSystemId("fileSystemId")
.mountPoint("mountPoint")
.build())
.build()))
.subnetIds(List.of("subnetIds"))
.tags(Map.of(
"tagsKey", "tags"))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnEnvironment.static interfacestatic interfacestatic interfacestatic interfaceNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.services.m2.IEnvironmentRef
IEnvironmentRef.Jsii$Default, IEnvironmentRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnEnvironment(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnEnvironment(software.amazon.jsii.JsiiObjectRef objRef) CfnEnvironment(software.constructs.Construct scope, String id, CfnEnvironmentProps props) -
Method Summary
Modifier and TypeMethodDescriptionThe Amazon Resource Name (ARN) of the runtime environment.The unique identifier of the runtime environment.The description of the runtime environment.The target platform for the runtime environment.The version of the runtime engine.A reference to a Environment resource.The instance type of the runtime environment.The identifier of a customer managed key.getName()The name of the runtime environment.The network type supported by the runtime environment.Configures the maintenance window that you want for the runtime environment.Specifies whether the runtime environment is publicly accessible.The list of security groups for the VPC associated with this runtime environment.The list of subnets associated with the VPC for this runtime environment.getTags()Tag Manager which manages the tags for this resource.An array of key-value pairs to apply to this resource.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetDescription(String value) The description of the runtime environment.voidsetEngineType(String value) The target platform for the runtime environment.voidsetEngineVersion(String value) The version of the runtime engine.voidvoidvoidsetInstanceType(String value) The instance type of the runtime environment.voidsetKmsKeyId(String value) The identifier of a customer managed key.voidThe name of the runtime environment.voidsetNetworkType(String value) The network type supported by the runtime environment.voidConfigures the maintenance window that you want for the runtime environment.voidsetPubliclyAccessible(Boolean value) Specifies whether the runtime environment is publicly accessible.voidsetPubliclyAccessible(IResolvable value) Specifies whether the runtime environment is publicly accessible.voidsetSecurityGroupIds(List<String> value) The list of security groups for the VPC associated with this runtime environment.voidsetStorageConfigurations(List<Object> value) voidvoidsetSubnetIds(List<String> value) The list of subnets associated with the VPC for this runtime environment.voidsetTagsRaw(Map<String, String> value) An array of key-value pairs to apply to this resource.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods 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.constructs.IConstruct
getNodeMethods 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
-
CfnEnvironment
protected CfnEnvironment(software.amazon.jsii.JsiiObjectRef objRef) -
CfnEnvironment
protected CfnEnvironment(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnEnvironment
@Stability(Stable) public CfnEnvironment(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnEnvironmentProps props) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrEnvironmentArn
The Amazon Resource Name (ARN) of the runtime environment. -
getAttrEnvironmentId
The unique identifier of the runtime environment. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getEnvironmentRef
A reference to a Environment resource.- Specified by:
getEnvironmentRefin interfaceIEnvironmentRef
-
getTags
Tag Manager which manages the tags for this resource. -
getEngineType
The target platform for the runtime environment. -
setEngineType
The target platform for the runtime environment. -
getInstanceType
The instance type of the runtime environment. -
setInstanceType
The instance type of the runtime environment. -
getName
The name of the runtime environment. -
setName
The name of the runtime environment. -
getDescription
The description of the runtime environment. -
setDescription
The description of the runtime environment. -
getEngineVersion
The version of the runtime engine. -
setEngineVersion
The version of the runtime engine. -
getHighAvailabilityConfig
AWS Mainframe Modernization Service (Managed Runtime Environment experience) will no longer be open to new customers starting on November 7, 2025.
Returns union: either
IResolvableorCfnEnvironment.HighAvailabilityConfigProperty -
setHighAvailabilityConfig
AWS Mainframe Modernization Service (Managed Runtime Environment experience) will no longer be open to new customers starting on November 7, 2025.
-
setHighAvailabilityConfig
@Stability(Stable) public void setHighAvailabilityConfig(@Nullable CfnEnvironment.HighAvailabilityConfigProperty value) AWS Mainframe Modernization Service (Managed Runtime Environment experience) will no longer be open to new customers starting on November 7, 2025.
-
getKmsKeyId
The identifier of a customer managed key. -
setKmsKeyId
The identifier of a customer managed key. -
getNetworkType
The network type supported by the runtime environment. -
setNetworkType
The network type supported by the runtime environment. -
getPreferredMaintenanceWindow
Configures the maintenance window that you want for the runtime environment. -
setPreferredMaintenanceWindow
Configures the maintenance window that you want for the runtime environment. -
getPubliclyAccessible
Specifies whether the runtime environment is publicly accessible.Returns union: either
BooleanorIResolvable -
setPubliclyAccessible
Specifies whether the runtime environment is publicly accessible. -
setPubliclyAccessible
Specifies whether the runtime environment is publicly accessible. -
getSecurityGroupIds
The list of security groups for the VPC associated with this runtime environment. -
setSecurityGroupIds
The list of security groups for the VPC associated with this runtime environment. -
getStorageConfigurations
AWS Mainframe Modernization Service (Managed Runtime Environment experience) will no longer be open to new customers starting on November 7, 2025.
Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnEnvironment.StorageConfigurationProperty> -
setStorageConfigurations
AWS Mainframe Modernization Service (Managed Runtime Environment experience) will no longer be open to new customers starting on November 7, 2025.
-
setStorageConfigurations
AWS Mainframe Modernization Service (Managed Runtime Environment experience) will no longer be open to new customers starting on November 7, 2025.
-
getSubnetIds
The list of subnets associated with the VPC for this runtime environment. -
setSubnetIds
The list of subnets associated with the VPC for this runtime environment. -
getTagsRaw
An array of key-value pairs to apply to this resource. -
setTagsRaw
An array of key-value pairs to apply to this resource.
-