@Generated(value="jsii-pacmak/1.63.2 (build a8a8833)",
date="2022-08-09T19:16:34.271Z")
public interface CfnLayerProps
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 java.lang.Object |
getAttributes()
One or more user-defined key-value pairs to be added to the stack attributes.
|
java.lang.Object |
getAutoAssignElasticIps()
Whether to automatically assign an [Elastic IP address](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html) to the layer's instances.
|
java.lang.Object |
getAutoAssignPublicIps()
For stacks that are running in a VPC, whether to automatically assign a public IP address to the layer's instances.
|
default java.lang.String |
getCustomInstanceProfileArn()
The ARN of an IAM profile to be used for the layer's EC2 instances.
|
default java.lang.Object |
getCustomJson()
A JSON-formatted string containing custom stack configuration and deployment attributes to be installed on the layer's instances.
|
default java.lang.Object |
getCustomRecipes()
A `LayerCustomRecipes` object that specifies the layer custom recipes.
|
default java.util.List<java.lang.String> |
getCustomSecurityGroupIds()
An array containing the layer custom security group IDs.
|
java.lang.Object |
getEnableAutoHealing()
Whether to disable auto healing for the layer.
|
default java.lang.Object |
getInstallUpdatesOnBoot()
Whether to install operating system and package updates when the instance boots.
|
default java.lang.Object |
getLifecycleEventConfiguration()
A `LifeCycleEventConfiguration` object that you can use to configure the Shutdown event to specify an execution timeout and enable or disable Elastic Load Balancer connection draining.
|
default java.lang.Object |
getLoadBasedAutoScaling()
The load-based scaling configuration for the AWS OpsWorks layer.
|
java.lang.String |
getName()
The layer name, which is used by the console.
|
default java.util.List<java.lang.String> |
getPackages()
An array of `Package` objects that describes the layer packages.
|
java.lang.String |
getShortname()
For custom layers only, use this parameter to specify the layer's short name, which is used internally by AWS OpsWorks Stacks and by Chef recipes.
|
java.lang.String |
getStackId()
The layer stack ID.
|
default java.util.List<CfnTag> |
getTags()
Specifies one or more sets of tags (key–value pairs) to associate with this AWS OpsWorks layer.
|
java.lang.String |
getType()
The layer type.
|
default java.lang.Object |
getUseEbsOptimizedInstances()
Whether to use Amazon EBS-optimized instances.
|
default java.lang.Object |
getVolumeConfigurations()
A `VolumeConfigurations` object that describes the layer's Amazon EBS volumes.
|
java.lang.Object getAutoAssignElasticIps()
java.lang.Object getAutoAssignPublicIps()
For more information, see How to Edit a Layer .
java.lang.Object getEnableAutoHealing()
java.lang.String getName()
Layer names can be a maximum of 32 characters.
java.lang.String getShortname()
The short name is also used as the name for the directory where your app files are installed. It can have a maximum of 32 characters, which are limited to the alphanumeric characters, '-', '_', and '.'.
Built-in layer short names are defined by AWS OpsWorks Stacks. For more information, see the Layer Reference .
java.lang.String getStackId()
java.lang.String getType()
A stack cannot have more than one built-in layer of the same type. It can have any number of custom layers. Built-in layers are not available in Chef 12 stacks.
default java.lang.Object getAttributes()
To create a cluster layer, set the EcsClusterArn
attribute to the cluster's ARN.
default java.lang.String getCustomInstanceProfileArn()
For more information about IAM ARNs, see Using Identifiers .
default java.lang.Object getCustomJson()
For more information, see Using Custom JSON . This feature is supported as of version 1.7.42 of the AWS CLI .
default java.lang.Object getCustomRecipes()
default java.util.List<java.lang.String> getCustomSecurityGroupIds()
default java.lang.Object getInstallUpdatesOnBoot()
The default value is true
. To control when updates are installed, set this value to false
. You must then update your instances manually by using CreateDeployment to run the update_dependencies
stack command or by manually running yum
(Amazon Linux) or apt-get
(Ubuntu) on the instances.
To ensure that your instances have the latest security updates, we strongly recommend using the default value of
true
.
default java.lang.Object getLifecycleEventConfiguration()
default java.lang.Object getLoadBasedAutoScaling()
default java.util.List<java.lang.String> getPackages()
default java.util.List<CfnTag> getTags()
Use tags to manage your resources.
default java.lang.Object getUseEbsOptimizedInstances()
default java.lang.Object getVolumeConfigurations()
static CfnLayerProps.Builder builder()
CfnLayerProps.Builder
of CfnLayerProps