@Generated(value="jsii-pacmak/1.46.0 (build cd08c55)", date="2021-11-25T20:11:07.432Z") @Stability(value=Stable) public interface CfnLayerProps extends software.amazon.jsii.JsiiSerializable
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;
CfnLayerProps cfnLayerProps = CfnLayerProps.builder()
.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 | Interface and Description |
|---|---|
static class |
CfnLayerProps.Builder
A builder for
CfnLayerProps |
static class |
CfnLayerProps.Jsii$Proxy
An implementation for
CfnLayerProps |
| Modifier and Type | Method and Description |
|---|---|
static CfnLayerProps.Builder |
builder() |
default Object |
getAttributes()
`AWS::OpsWorks::Layer.Attributes`.
|
Object |
getAutoAssignElasticIps()
`AWS::OpsWorks::Layer.AutoAssignElasticIps`.
|
Object |
getAutoAssignPublicIps()
`AWS::OpsWorks::Layer.AutoAssignPublicIps`.
|
default String |
getCustomInstanceProfileArn()
`AWS::OpsWorks::Layer.CustomInstanceProfileArn`.
|
default Object |
getCustomJson()
`AWS::OpsWorks::Layer.CustomJson`.
|
default Object |
getCustomRecipes()
`AWS::OpsWorks::Layer.CustomRecipes`.
|
default List<String> |
getCustomSecurityGroupIds()
`AWS::OpsWorks::Layer.CustomSecurityGroupIds`.
|
Object |
getEnableAutoHealing()
`AWS::OpsWorks::Layer.EnableAutoHealing`.
|
default Object |
getInstallUpdatesOnBoot()
`AWS::OpsWorks::Layer.InstallUpdatesOnBoot`.
|
default Object |
getLifecycleEventConfiguration()
`AWS::OpsWorks::Layer.LifecycleEventConfiguration`.
|
default Object |
getLoadBasedAutoScaling()
`AWS::OpsWorks::Layer.LoadBasedAutoScaling`.
|
String |
getName()
`AWS::OpsWorks::Layer.Name`.
|
default List<String> |
getPackages()
`AWS::OpsWorks::Layer.Packages`.
|
String |
getShortname()
`AWS::OpsWorks::Layer.Shortname`.
|
String |
getStackId()
`AWS::OpsWorks::Layer.StackId`.
|
default List<CfnTag> |
getTags()
`AWS::OpsWorks::Layer.Tags`.
|
String |
getType()
`AWS::OpsWorks::Layer.Type`.
|
default Object |
getUseEbsOptimizedInstances()
`AWS::OpsWorks::Layer.UseEbsOptimizedInstances`.
|
default Object |
getVolumeConfigurations()
`AWS::OpsWorks::Layer.VolumeConfigurations`.
|
@Stability(value=Stable) @Nullable default Object getAttributes()
@Stability(value=Stable) @NotNull Object getAutoAssignElasticIps()
@Stability(value=Stable) @NotNull Object getAutoAssignPublicIps()
@Stability(value=Stable) @Nullable default String getCustomInstanceProfileArn()
@Stability(value=Stable) @Nullable default Object getCustomJson()
@Stability(value=Stable) @Nullable default Object getCustomRecipes()
@Stability(value=Stable) @Nullable default List<String> getCustomSecurityGroupIds()
@Stability(value=Stable) @NotNull Object getEnableAutoHealing()
@Stability(value=Stable) @Nullable default Object getInstallUpdatesOnBoot()
@Stability(value=Stable) @Nullable default Object getLifecycleEventConfiguration()
@Stability(value=Stable) @Nullable default Object getLoadBasedAutoScaling()
@Stability(value=Stable) @NotNull String getName()
@Stability(value=Stable) @Nullable default List<String> getPackages()
@Stability(value=Stable) @NotNull String getShortname()
@Stability(value=Stable) @NotNull String getStackId()
@Stability(value=Stable) @Nullable default List<CfnTag> getTags()
@Stability(value=Stable) @NotNull String getType()
@Stability(value=Stable) @Nullable default Object getUseEbsOptimizedInstances()
@Stability(value=Stable) @Nullable default Object getVolumeConfigurations()
@Stability(value=Stable) static CfnLayerProps.Builder builder()
CfnLayerProps.Builder of CfnLayerPropsCopyright © 2021. All rights reserved.