@Generated(value="jsii-pacmak/1.46.0 (build cd08c55)", date="2021-11-25T20:11:07.429Z") @Stability(value=Stable) public class CfnLayer 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.opsworks.*;
Object customJson;
CfnLayer cfnLayer = CfnLayer.Builder.create(this, "MyCfnLayer")
.autoAssignElasticIps(false)
.autoAssignPublicIps(false)
.enableAutoHealing(false)
.name("name")
.shortname("shortname")
.stackId("stackId")
.type("type")
// the properties below are optional
.attributes(Map.of(
"attributesKey", "attributes"))
.customInstanceProfileArn("customInstanceProfileArn")
.customJson(customJson)
.customRecipes(RecipesProperty.builder()
.configure(List.of("configure"))
.deploy(List.of("deploy"))
.setup(List.of("setup"))
.shutdown(List.of("shutdown"))
.undeploy(List.of("undeploy"))
.build())
.customSecurityGroupIds(List.of("customSecurityGroupIds"))
.installUpdatesOnBoot(false)
.lifecycleEventConfiguration(LifecycleEventConfigurationProperty.builder()
.shutdownEventConfiguration(ShutdownEventConfigurationProperty.builder()
.delayUntilElbConnectionsDrained(false)
.executionTimeout(123)
.build())
.build())
.loadBasedAutoScaling(LoadBasedAutoScalingProperty.builder()
.downScaling(AutoScalingThresholdsProperty.builder()
.cpuThreshold(123)
.ignoreMetricsTime(123)
.instanceCount(123)
.loadThreshold(123)
.memoryThreshold(123)
.thresholdsWaitTime(123)
.build())
.enable(false)
.upScaling(AutoScalingThresholdsProperty.builder()
.cpuThreshold(123)
.ignoreMetricsTime(123)
.instanceCount(123)
.loadThreshold(123)
.memoryThreshold(123)
.thresholdsWaitTime(123)
.build())
.build())
.packages(List.of("packages"))
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.useEbsOptimizedInstances(false)
.volumeConfigurations(List.of(VolumeConfigurationProperty.builder()
.encrypted(false)
.iops(123)
.mountPoint("mountPoint")
.numberOfDisks(123)
.raidLevel(123)
.size(123)
.volumeType("volumeType")
.build()))
.build();
| Modifier and Type | Class and Description |
|---|---|
static interface |
CfnLayer.AutoScalingThresholdsProperty
Example:
|
static class |
CfnLayer.Builder
A fluent builder for
CfnLayer. |
static interface |
CfnLayer.LifecycleEventConfigurationProperty
Example:
|
static interface |
CfnLayer.LoadBasedAutoScalingProperty
Example:
|
static interface |
CfnLayer.RecipesProperty
Example:
|
static interface |
CfnLayer.ShutdownEventConfigurationProperty
Example:
|
static interface |
CfnLayer.VolumeConfigurationProperty
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 |
|---|---|
|
CfnLayer(software.constructs.Construct scope,
String id,
CfnLayerProps props)
Create a new `AWS::OpsWorks::Layer`.
|
protected |
CfnLayer(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnLayer(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
Object |
getAttributes()
`AWS::OpsWorks::Layer.Attributes`.
|
Object |
getAutoAssignElasticIps()
`AWS::OpsWorks::Layer.AutoAssignElasticIps`.
|
Object |
getAutoAssignPublicIps()
`AWS::OpsWorks::Layer.AutoAssignPublicIps`.
|
protected Map<String,Object> |
getCfnProperties() |
String |
getCustomInstanceProfileArn()
`AWS::OpsWorks::Layer.CustomInstanceProfileArn`.
|
Object |
getCustomJson()
`AWS::OpsWorks::Layer.CustomJson`.
|
Object |
getCustomRecipes()
`AWS::OpsWorks::Layer.CustomRecipes`.
|
List<String> |
getCustomSecurityGroupIds()
`AWS::OpsWorks::Layer.CustomSecurityGroupIds`.
|
Object |
getEnableAutoHealing()
`AWS::OpsWorks::Layer.EnableAutoHealing`.
|
Object |
getInstallUpdatesOnBoot()
`AWS::OpsWorks::Layer.InstallUpdatesOnBoot`.
|
Object |
getLifecycleEventConfiguration()
`AWS::OpsWorks::Layer.LifecycleEventConfiguration`.
|
Object |
getLoadBasedAutoScaling()
`AWS::OpsWorks::Layer.LoadBasedAutoScaling`.
|
String |
getName()
`AWS::OpsWorks::Layer.Name`.
|
List<String> |
getPackages()
`AWS::OpsWorks::Layer.Packages`.
|
String |
getShortname()
`AWS::OpsWorks::Layer.Shortname`.
|
String |
getStackId()
`AWS::OpsWorks::Layer.StackId`.
|
TagManager |
getTags()
`AWS::OpsWorks::Layer.Tags`.
|
String |
getType()
`AWS::OpsWorks::Layer.Type`.
|
Object |
getUseEbsOptimizedInstances()
`AWS::OpsWorks::Layer.UseEbsOptimizedInstances`.
|
Object |
getVolumeConfigurations()
`AWS::OpsWorks::Layer.VolumeConfigurations`.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setAttributes(IResolvable value)
`AWS::OpsWorks::Layer.Attributes`.
|
void |
setAttributes(Map<String,String> value)
`AWS::OpsWorks::Layer.Attributes`.
|
void |
setAutoAssignElasticIps(Boolean value)
`AWS::OpsWorks::Layer.AutoAssignElasticIps`.
|
void |
setAutoAssignElasticIps(IResolvable value)
`AWS::OpsWorks::Layer.AutoAssignElasticIps`.
|
void |
setAutoAssignPublicIps(Boolean value)
`AWS::OpsWorks::Layer.AutoAssignPublicIps`.
|
void |
setAutoAssignPublicIps(IResolvable value)
`AWS::OpsWorks::Layer.AutoAssignPublicIps`.
|
void |
setCustomInstanceProfileArn(String value)
`AWS::OpsWorks::Layer.CustomInstanceProfileArn`.
|
void |
setCustomJson(Object value)
`AWS::OpsWorks::Layer.CustomJson`.
|
void |
setCustomRecipes(CfnLayer.RecipesProperty value)
`AWS::OpsWorks::Layer.CustomRecipes`.
|
void |
setCustomRecipes(IResolvable value)
`AWS::OpsWorks::Layer.CustomRecipes`.
|
void |
setCustomSecurityGroupIds(List<String> value)
`AWS::OpsWorks::Layer.CustomSecurityGroupIds`.
|
void |
setEnableAutoHealing(Boolean value)
`AWS::OpsWorks::Layer.EnableAutoHealing`.
|
void |
setEnableAutoHealing(IResolvable value)
`AWS::OpsWorks::Layer.EnableAutoHealing`.
|
void |
setInstallUpdatesOnBoot(Boolean value)
`AWS::OpsWorks::Layer.InstallUpdatesOnBoot`.
|
void |
setInstallUpdatesOnBoot(IResolvable value)
`AWS::OpsWorks::Layer.InstallUpdatesOnBoot`.
|
void |
setLifecycleEventConfiguration(CfnLayer.LifecycleEventConfigurationProperty value)
`AWS::OpsWorks::Layer.LifecycleEventConfiguration`.
|
void |
setLifecycleEventConfiguration(IResolvable value)
`AWS::OpsWorks::Layer.LifecycleEventConfiguration`.
|
void |
setLoadBasedAutoScaling(CfnLayer.LoadBasedAutoScalingProperty value)
`AWS::OpsWorks::Layer.LoadBasedAutoScaling`.
|
void |
setLoadBasedAutoScaling(IResolvable value)
`AWS::OpsWorks::Layer.LoadBasedAutoScaling`.
|
void |
setName(String value)
`AWS::OpsWorks::Layer.Name`.
|
void |
setPackages(List<String> value)
`AWS::OpsWorks::Layer.Packages`.
|
void |
setShortname(String value)
`AWS::OpsWorks::Layer.Shortname`.
|
void |
setStackId(String value)
`AWS::OpsWorks::Layer.StackId`.
|
void |
setType(String value)
`AWS::OpsWorks::Layer.Type`.
|
void |
setUseEbsOptimizedInstances(Boolean value)
`AWS::OpsWorks::Layer.UseEbsOptimizedInstances`.
|
void |
setUseEbsOptimizedInstances(IResolvable value)
`AWS::OpsWorks::Layer.UseEbsOptimizedInstances`.
|
void |
setVolumeConfigurations(IResolvable value)
`AWS::OpsWorks::Layer.VolumeConfigurations`.
|
void |
setVolumeConfigurations(List<Object> value)
`AWS::OpsWorks::Layer.VolumeConfigurations`.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, 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 CfnLayer(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnLayer(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnLayer(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnLayerProps 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) @Nullable public Object getAttributes()
@Stability(value=Stable)
public void setAttributes(@Nullable
IResolvable value)
@Stability(value=Stable)
public void setAttributes(@Nullable
Map<String,String> value)
@Stability(value=Stable) @NotNull public Object getAutoAssignElasticIps()
@Stability(value=Stable)
public void setAutoAssignElasticIps(@NotNull
Boolean value)
@Stability(value=Stable)
public void setAutoAssignElasticIps(@NotNull
IResolvable value)
@Stability(value=Stable) @NotNull public Object getAutoAssignPublicIps()
@Stability(value=Stable)
public void setAutoAssignPublicIps(@NotNull
Boolean value)
@Stability(value=Stable)
public void setAutoAssignPublicIps(@NotNull
IResolvable value)
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @Nullable public String getCustomInstanceProfileArn()
@Stability(value=Stable)
public void setCustomInstanceProfileArn(@Nullable
String value)
@Stability(value=Stable) @NotNull public Object getCustomJson()
@Stability(value=Stable)
public void setCustomJson(@NotNull
Object value)
@Stability(value=Stable) @Nullable public Object getCustomRecipes()
@Stability(value=Stable)
public void setCustomRecipes(@Nullable
CfnLayer.RecipesProperty value)
@Stability(value=Stable)
public void setCustomRecipes(@Nullable
IResolvable value)
@Stability(value=Stable) @Nullable public List<String> getCustomSecurityGroupIds()
@Stability(value=Stable)
public void setCustomSecurityGroupIds(@Nullable
List<String> value)
@Stability(value=Stable) @NotNull public Object getEnableAutoHealing()
@Stability(value=Stable)
public void setEnableAutoHealing(@NotNull
Boolean value)
@Stability(value=Stable)
public void setEnableAutoHealing(@NotNull
IResolvable value)
@Stability(value=Stable) @Nullable public Object getInstallUpdatesOnBoot()
@Stability(value=Stable)
public void setInstallUpdatesOnBoot(@Nullable
Boolean value)
@Stability(value=Stable)
public void setInstallUpdatesOnBoot(@Nullable
IResolvable value)
@Stability(value=Stable) @Nullable public Object getLifecycleEventConfiguration()
@Stability(value=Stable)
public void setLifecycleEventConfiguration(@Nullable
CfnLayer.LifecycleEventConfigurationProperty value)
@Stability(value=Stable)
public void setLifecycleEventConfiguration(@Nullable
IResolvable value)
@Stability(value=Stable) @Nullable public Object getLoadBasedAutoScaling()
@Stability(value=Stable)
public void setLoadBasedAutoScaling(@Nullable
CfnLayer.LoadBasedAutoScalingProperty value)
@Stability(value=Stable)
public void setLoadBasedAutoScaling(@Nullable
IResolvable value)
@Stability(value=Stable) @NotNull public String getName()
@Stability(value=Stable)
public void setName(@NotNull
String value)
@Stability(value=Stable) @Nullable public List<String> getPackages()
@Stability(value=Stable)
public void setPackages(@Nullable
List<String> value)
@Stability(value=Stable) @NotNull public String getShortname()
@Stability(value=Stable)
public void setShortname(@NotNull
String value)
@Stability(value=Stable) @NotNull public String getStackId()
@Stability(value=Stable)
public void setStackId(@NotNull
String value)
@Stability(value=Stable) @NotNull public TagManager getTags()
@Stability(value=Stable) @NotNull public String getType()
@Stability(value=Stable)
public void setType(@NotNull
String value)
@Stability(value=Stable) @Nullable public Object getUseEbsOptimizedInstances()
@Stability(value=Stable)
public void setUseEbsOptimizedInstances(@Nullable
Boolean value)
@Stability(value=Stable)
public void setUseEbsOptimizedInstances(@Nullable
IResolvable value)
@Stability(value=Stable) @Nullable public Object getVolumeConfigurations()
@Stability(value=Stable)
public void setVolumeConfigurations(@Nullable
IResolvable value)
Copyright © 2021. All rights reserved.