@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:40.741Z") @Stability(value=Stable) public class CfnEnvironment extends CfnResource implements IInspectable
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.*;
Object storageConfigurations;
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())
.preferredMaintenanceWindow("preferredMaintenanceWindow")
.publiclyAccessible(false)
.securityGroupIds(List.of("securityGroupIds"))
.storageConfigurations(List.of(storageConfigurations))
.subnetIds(List.of("subnetIds"))
.tags(Map.of(
"tagsKey", "tags"))
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnEnvironment.Builder
A fluent builder for
CfnEnvironment. |
static interface |
CfnEnvironment.HighAvailabilityConfigProperty
Example:
|
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnEnvironment(software.constructs.Construct scope,
String id,
CfnEnvironmentProps props)
Create a new `AWS::M2::Environment`.
|
protected |
CfnEnvironment(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnEnvironment(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAttrEnvironmentArn() |
String |
getAttrEnvironmentId() |
protected Map<String,Object> |
getCfnProperties() |
String |
getDescription()
`AWS::M2::Environment.Description`.
|
String |
getEngineType()
`AWS::M2::Environment.EngineType`.
|
String |
getEngineVersion()
`AWS::M2::Environment.EngineVersion`.
|
Object |
getHighAvailabilityConfig()
`AWS::M2::Environment.HighAvailabilityConfig`.
|
String |
getInstanceType()
`AWS::M2::Environment.InstanceType`.
|
String |
getName()
`AWS::M2::Environment.Name`.
|
String |
getPreferredMaintenanceWindow()
`AWS::M2::Environment.PreferredMaintenanceWindow`.
|
Object |
getPubliclyAccessible()
`AWS::M2::Environment.PubliclyAccessible`.
|
List<String> |
getSecurityGroupIds()
`AWS::M2::Environment.SecurityGroupIds`.
|
Object |
getStorageConfigurations()
`AWS::M2::Environment.StorageConfigurations`.
|
List<String> |
getSubnetIds()
`AWS::M2::Environment.SubnetIds`.
|
TagManager |
getTags()
`AWS::M2::Environment.Tags`.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setDescription(String value)
`AWS::M2::Environment.Description`.
|
void |
setEngineType(String value)
`AWS::M2::Environment.EngineType`.
|
void |
setEngineVersion(String value)
`AWS::M2::Environment.EngineVersion`.
|
void |
setHighAvailabilityConfig(CfnEnvironment.HighAvailabilityConfigProperty value)
`AWS::M2::Environment.HighAvailabilityConfig`.
|
void |
setHighAvailabilityConfig(IResolvable value)
`AWS::M2::Environment.HighAvailabilityConfig`.
|
void |
setInstanceType(String value)
`AWS::M2::Environment.InstanceType`.
|
void |
setName(String value)
`AWS::M2::Environment.Name`.
|
void |
setPreferredMaintenanceWindow(String value)
`AWS::M2::Environment.PreferredMaintenanceWindow`.
|
void |
setPubliclyAccessible(Boolean value)
`AWS::M2::Environment.PubliclyAccessible`.
|
void |
setPubliclyAccessible(IResolvable value)
`AWS::M2::Environment.PubliclyAccessible`.
|
void |
setSecurityGroupIds(List<String> value)
`AWS::M2::Environment.SecurityGroupIds`.
|
void |
setStorageConfigurations(IResolvable value)
`AWS::M2::Environment.StorageConfigurations`.
|
void |
setStorageConfigurations(List<Object> value)
`AWS::M2::Environment.StorageConfigurations`.
|
void |
setSubnetIds(List<String> value)
`AWS::M2::Environment.SubnetIds`.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnEnvironment(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnEnvironment(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnEnvironment(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnEnvironmentProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull public String getAttrEnvironmentArn()
@Stability(value=Stable) @NotNull public String getAttrEnvironmentId()
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public TagManager getTags()
@Stability(value=Stable) @NotNull public String getEngineType()
@Stability(value=Stable)
public void setEngineType(@NotNull
String value)
@Stability(value=Stable) @NotNull public String getInstanceType()
@Stability(value=Stable)
public void setInstanceType(@NotNull
String value)
@Stability(value=Stable) @NotNull public String getName()
@Stability(value=Stable)
public void setName(@NotNull
String value)
@Stability(value=Stable) @Nullable public String getDescription()
@Stability(value=Stable)
public void setDescription(@Nullable
String value)
@Stability(value=Stable) @Nullable public String getEngineVersion()
@Stability(value=Stable)
public void setEngineVersion(@Nullable
String value)
@Stability(value=Stable) @Nullable public Object getHighAvailabilityConfig()
@Stability(value=Stable)
public void setHighAvailabilityConfig(@Nullable
CfnEnvironment.HighAvailabilityConfigProperty value)
@Stability(value=Stable)
public void setHighAvailabilityConfig(@Nullable
IResolvable value)
@Stability(value=Stable) @Nullable public String getPreferredMaintenanceWindow()
@Stability(value=Stable)
public void setPreferredMaintenanceWindow(@Nullable
String value)
@Stability(value=Stable) @Nullable public Object getPubliclyAccessible()
@Stability(value=Stable)
public void setPubliclyAccessible(@Nullable
Boolean value)
@Stability(value=Stable)
public void setPubliclyAccessible(@Nullable
IResolvable value)
@Stability(value=Stable) @Nullable public List<String> getSecurityGroupIds()
@Stability(value=Stable)
public void setSecurityGroupIds(@Nullable
List<String> value)
@Stability(value=Stable) @Nullable public Object getStorageConfigurations()
@Stability(value=Stable)
public void setStorageConfigurations(@Nullable
List<Object> value)
@Stability(value=Stable)
public void setStorageConfigurations(@Nullable
IResolvable value)
@Stability(value=Stable) @Nullable public List<String> getSubnetIds()
Copyright © 2022. All rights reserved.