AWS::OpsWorks::Layerhttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-layer.html.
import { CfnLayer } from 'aws-cdk-lib/aws-opsworks';Or use the module namespace:
import * as opsworks from 'aws-cdk-lib/aws-opsworks';
// opsworks.CfnLayerConfiguration passed to the constructor as CfnLayerProps.
autoAssignElasticIpsRequiredboolean | IResolvableWhether 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. For more information, see [How to Edit a Layer](https://docs.aws.amazon.com/opsworks/latest/userguide/workinglayers-basics-edit.html) .
autoAssignPublicIpsRequiredboolean | IResolvableFor stacks that are running in a VPC, whether to automatically assign a public IP address to the layer's instances. For more information, see [How to Edit a Layer](https://docs.aws.amazon.com/opsworks/latest/userguide/workinglayers-basics-edit.html) .
enableAutoHealingRequiredboolean | IResolvableWhether to disable auto healing for the layer.
nameRequiredstringThe layer name, which is used by the console. Layer names can be a maximum of 32 characters.
shortnameRequiredstringFor custom layers only, use this parameter to specify the layer's short name, which is used internally by OpsWorks Stacks and by Chef recipes. 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 OpsWorks Stacks. For more information, see the [Layer Reference](https://docs.aws.amazon.com/opsworks/latest/userguide/layers.html) .
stackIdRequiredstringThe layer stack ID.
typeRequiredstringThe layer type. 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.
attributesOptional{ [key: string]: string } | IResolvableOne or more user-defined key-value pairs to be added to the stack attributes. To create a cluster layer, set the `EcsClusterArn` attribute to the cluster's ARN.
customInstanceProfileArnOptionalstringThe ARN of an IAM profile to be used for the layer's EC2 instances. For more information about IAM ARNs, see [Using Identifiers](https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html) .
customJsonOptionalanyA JSON-formatted string containing custom stack configuration and deployment attributes to be installed on the layer's instances. For more information, see [Using Custom JSON](https://docs.aws.amazon.com/opsworks/latest/userguide/workingcookbook-json-override.html) . This feature is supported as of version 1.7.42 of the AWS CLI .
customRecipesOptionalIResolvable | RecipesPropertyA `LayerCustomRecipes` object that specifies the layer custom recipes.
customSecurityGroupIdsOptionalstring[]An array containing the layer custom security group IDs.
installUpdatesOnBootOptionalboolean | IResolvableWhether to install operating system and package updates when the instance boots. 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` .
lifecycleEventConfigurationOptionalIResolvable | LifecycleEventConfigurationPropertyA `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.
loadBasedAutoScalingOptionalIResolvable | LoadBasedAutoScalingPropertyThe load-based scaling configuration for the OpsWorks layer.
packagesOptionalstring[]An array of `Package` objects that describes the layer packages.
tagsOptionalCfnTag[]Specifies one or more sets of tags (key–value pairs) to associate with this OpsWorks layer. Use tags to manage your resources.
useEbsOptimizedInstancesOptionalboolean | IResolvableWhether to use Amazon EBS-optimized instances.
volumeConfigurationsOptionalIResolvable | IResolvable | VolumeConfigurationProperty[]A `VolumeConfigurations` object that describes the layer's Amazon EBS volumes.
This L1 construct maps directly to the following CloudFormation resource type.
Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to Newsletteraws-opsworksAWS::OpsWorks::Layer