| Modifier and Type | Method and Description |
|---|---|
CfnLayer.Builder |
attributes(IResolvable attributes)
One or more user-defined key-value pairs to be added to the stack attributes.
|
CfnLayer.Builder |
attributes(Map<String,String> attributes)
One or more user-defined key-value pairs to be added to the stack attributes.
|
CfnLayer.Builder |
autoAssignElasticIps(Boolean autoAssignElasticIps)
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.
|
CfnLayer.Builder |
autoAssignElasticIps(IResolvable autoAssignElasticIps)
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.
|
CfnLayer.Builder |
autoAssignPublicIps(Boolean autoAssignPublicIps)
For stacks that are running in a VPC, whether to automatically assign a public IP address to the layer's instances.
|
CfnLayer.Builder |
autoAssignPublicIps(IResolvable autoAssignPublicIps)
For stacks that are running in a VPC, whether to automatically assign a public IP address to the layer's instances.
|
CfnLayer |
build() |
static CfnLayer.Builder |
create(software.constructs.Construct scope,
String id) |
CfnLayer.Builder |
customInstanceProfileArn(String customInstanceProfileArn)
The ARN of an IAM profile to be used for the layer's EC2 instances.
|
CfnLayer.Builder |
customJson(Object customJson)
A JSON-formatted string containing custom stack configuration and deployment attributes to be installed on the layer's instances.
|
CfnLayer.Builder |
customRecipes(CfnLayer.RecipesProperty customRecipes)
A `LayerCustomRecipes` object that specifies the layer custom recipes.
|
CfnLayer.Builder |
customRecipes(IResolvable customRecipes)
A `LayerCustomRecipes` object that specifies the layer custom recipes.
|
CfnLayer.Builder |
customSecurityGroupIds(List<String> customSecurityGroupIds)
An array containing the layer custom security group IDs.
|
CfnLayer.Builder |
enableAutoHealing(Boolean enableAutoHealing)
Whether to disable auto healing for the layer.
|
CfnLayer.Builder |
enableAutoHealing(IResolvable enableAutoHealing)
Whether to disable auto healing for the layer.
|
CfnLayer.Builder |
installUpdatesOnBoot(Boolean installUpdatesOnBoot)
Whether to install operating system and package updates when the instance boots.
|
CfnLayer.Builder |
installUpdatesOnBoot(IResolvable installUpdatesOnBoot)
Whether to install operating system and package updates when the instance boots.
|
CfnLayer.Builder |
lifecycleEventConfiguration(CfnLayer.LifecycleEventConfigurationProperty lifecycleEventConfiguration)
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.
|
CfnLayer.Builder |
lifecycleEventConfiguration(IResolvable lifecycleEventConfiguration)
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.
|
CfnLayer.Builder |
loadBasedAutoScaling(CfnLayer.LoadBasedAutoScalingProperty loadBasedAutoScaling)
The load-based scaling configuration for the AWS OpsWorks layer.
|
CfnLayer.Builder |
loadBasedAutoScaling(IResolvable loadBasedAutoScaling)
The load-based scaling configuration for the AWS OpsWorks layer.
|
CfnLayer.Builder |
name(String name)
The layer name, which is used by the console.
|
CfnLayer.Builder |
packages(List<String> packages)
An array of `Package` objects that describes the layer packages.
|
CfnLayer.Builder |
shortname(String shortname)
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.
|
CfnLayer.Builder |
stackId(String stackId)
The layer stack ID.
|
CfnLayer.Builder |
tags(List<? extends CfnTag> tags)
Specifies one or more sets of tags (key–value pairs) to associate with this AWS OpsWorks layer.
|
CfnLayer.Builder |
type(String type)
The layer type.
|
CfnLayer.Builder |
useEbsOptimizedInstances(Boolean useEbsOptimizedInstances)
Whether to use Amazon EBS-optimized instances.
|
CfnLayer.Builder |
useEbsOptimizedInstances(IResolvable useEbsOptimizedInstances)
Whether to use Amazon EBS-optimized instances.
|
CfnLayer.Builder |
volumeConfigurations(IResolvable volumeConfigurations)
A `VolumeConfigurations` object that describes the layer's Amazon EBS volumes.
|
CfnLayer.Builder |
volumeConfigurations(List<? extends Object> volumeConfigurations)
A `VolumeConfigurations` object that describes the layer's Amazon EBS volumes.
|
@Stability(value=Stable) public static CfnLayer.Builder create(software.constructs.Construct scope, String id)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.CfnLayer.AutoScalingThresholdsProperty.Builder.@Stability(value=Stable) public CfnLayer.Builder autoAssignElasticIps(Boolean autoAssignElasticIps)
autoAssignElasticIps - 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. For more information, see [How to Edit a Layer](https://docs.aws.amazon.com/opsworks/latest/userguide/workinglayers-basics-edit.html) . This parameter is required.this@Stability(value=Stable) public CfnLayer.Builder autoAssignElasticIps(IResolvable autoAssignElasticIps)
autoAssignElasticIps - 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. For more information, see [How to Edit a Layer](https://docs.aws.amazon.com/opsworks/latest/userguide/workinglayers-basics-edit.html) . This parameter is required.this@Stability(value=Stable) public CfnLayer.Builder autoAssignPublicIps(Boolean autoAssignPublicIps)
For more information, see How to Edit a Layer .
autoAssignPublicIps - For stacks that are running in a VPC, whether to automatically assign a public IP address to the layer's instances. This parameter is required.this@Stability(value=Stable) public CfnLayer.Builder autoAssignPublicIps(IResolvable autoAssignPublicIps)
For more information, see How to Edit a Layer .
autoAssignPublicIps - For stacks that are running in a VPC, whether to automatically assign a public IP address to the layer's instances. This parameter is required.this@Stability(value=Stable) public CfnLayer.Builder enableAutoHealing(Boolean enableAutoHealing)
enableAutoHealing - Whether to disable auto healing for the layer. This parameter is required.this@Stability(value=Stable) public CfnLayer.Builder enableAutoHealing(IResolvable enableAutoHealing)
enableAutoHealing - Whether to disable auto healing for the layer. This parameter is required.this@Stability(value=Stable) public CfnLayer.Builder name(String name)
Layer names can be a maximum of 32 characters.
name - The layer name, which is used by the console. This parameter is required.this@Stability(value=Stable) public CfnLayer.Builder shortname(String shortname)
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 .
shortname - 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. This parameter is required.this@Stability(value=Stable) public CfnLayer.Builder stackId(String stackId)
stackId - The layer stack ID. This parameter is required.this@Stability(value=Stable) public CfnLayer.Builder type(String 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.
type - The layer type. This parameter is required.this@Stability(value=Stable) public CfnLayer.Builder attributes(IResolvable attributes)
To create a cluster layer, set the EcsClusterArn attribute to the cluster's ARN.
attributes - One or more user-defined key-value pairs to be added to the stack attributes. This parameter is required.this@Stability(value=Stable) public CfnLayer.Builder attributes(Map<String,String> attributes)
To create a cluster layer, set the EcsClusterArn attribute to the cluster's ARN.
attributes - One or more user-defined key-value pairs to be added to the stack attributes. This parameter is required.this@Stability(value=Stable) public CfnLayer.Builder customInstanceProfileArn(String customInstanceProfileArn)
For more information about IAM ARNs, see Using Identifiers .
customInstanceProfileArn - The ARN of an IAM profile to be used for the layer's EC2 instances. This parameter is required.this@Stability(value=Stable) public CfnLayer.Builder customJson(Object customJson)
For more information, see Using Custom JSON . This feature is supported as of version 1.7.42 of the AWS CLI .
customJson - A JSON-formatted string containing custom stack configuration and deployment attributes to be installed on the layer's instances. This parameter is required.this@Stability(value=Stable) public CfnLayer.Builder customRecipes(CfnLayer.RecipesProperty customRecipes)
customRecipes - A `LayerCustomRecipes` object that specifies the layer custom recipes. This parameter is required.this@Stability(value=Stable) public CfnLayer.Builder customRecipes(IResolvable customRecipes)
customRecipes - A `LayerCustomRecipes` object that specifies the layer custom recipes. This parameter is required.this@Stability(value=Stable) public CfnLayer.Builder customSecurityGroupIds(List<String> customSecurityGroupIds)
customSecurityGroupIds - An array containing the layer custom security group IDs. This parameter is required.this@Stability(value=Stable) public CfnLayer.Builder installUpdatesOnBoot(Boolean installUpdatesOnBoot)
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.
installUpdatesOnBoot - Whether to install operating system and package updates when the instance boots. This parameter is required.this@Stability(value=Stable) public CfnLayer.Builder installUpdatesOnBoot(IResolvable installUpdatesOnBoot)
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.
installUpdatesOnBoot - Whether to install operating system and package updates when the instance boots. This parameter is required.this@Stability(value=Stable) public CfnLayer.Builder lifecycleEventConfiguration(CfnLayer.LifecycleEventConfigurationProperty lifecycleEventConfiguration)
lifecycleEventConfiguration - 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. This parameter is required.this@Stability(value=Stable) public CfnLayer.Builder lifecycleEventConfiguration(IResolvable lifecycleEventConfiguration)
lifecycleEventConfiguration - 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. This parameter is required.this@Stability(value=Stable) public CfnLayer.Builder loadBasedAutoScaling(CfnLayer.LoadBasedAutoScalingProperty loadBasedAutoScaling)
loadBasedAutoScaling - The load-based scaling configuration for the AWS OpsWorks layer. This parameter is required.this@Stability(value=Stable) public CfnLayer.Builder loadBasedAutoScaling(IResolvable loadBasedAutoScaling)
loadBasedAutoScaling - The load-based scaling configuration for the AWS OpsWorks layer. This parameter is required.this@Stability(value=Stable) public CfnLayer.Builder packages(List<String> packages)
packages - An array of `Package` objects that describes the layer packages. This parameter is required.this@Stability(value=Stable) public CfnLayer.Builder tags(List<? extends CfnTag> tags)
Use tags to manage your resources.
tags - Specifies one or more sets of tags (key–value pairs) to associate with this AWS OpsWorks layer. This parameter is required.this@Stability(value=Stable) public CfnLayer.Builder useEbsOptimizedInstances(Boolean useEbsOptimizedInstances)
useEbsOptimizedInstances - Whether to use Amazon EBS-optimized instances. This parameter is required.this@Stability(value=Stable) public CfnLayer.Builder useEbsOptimizedInstances(IResolvable useEbsOptimizedInstances)
useEbsOptimizedInstances - Whether to use Amazon EBS-optimized instances. This parameter is required.this@Stability(value=Stable) public CfnLayer.Builder volumeConfigurations(IResolvable volumeConfigurations)
volumeConfigurations - A `VolumeConfigurations` object that describes the layer's Amazon EBS volumes. This parameter is required.this@Stability(value=Stable) public CfnLayer.Builder volumeConfigurations(List<? extends Object> volumeConfigurations)
volumeConfigurations - A `VolumeConfigurations` object that describes the layer's Amazon EBS volumes. This parameter is required.thisCopyright © 2022. All rights reserved.