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(java.util.Map<java.lang.String,java.lang.String> attributes)
One or more user-defined key-value pairs to be added to the stack attributes.
|
CfnLayer.Builder |
autoAssignElasticIps(java.lang.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(java.lang.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(Construct scope,
java.lang.String id) |
CfnLayer.Builder |
customInstanceProfileArn(java.lang.String customInstanceProfileArn)
The ARN of an IAM profile to be used for the layer's EC2 instances.
|
CfnLayer.Builder |
customJson(java.lang.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(java.util.List<java.lang.String> customSecurityGroupIds)
An array containing the layer custom security group IDs.
|
CfnLayer.Builder |
enableAutoHealing(java.lang.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(java.lang.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(java.lang.String name)
The layer name, which is used by the console.
|
CfnLayer.Builder |
packages(java.util.List<java.lang.String> packages)
An array of `Package` objects that describes the layer packages.
|
CfnLayer.Builder |
shortname(java.lang.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(java.lang.String stackId)
The layer stack ID.
|
CfnLayer.Builder |
tags(java.util.List<? extends CfnTag> tags)
Specifies one or more sets of tags (key–value pairs) to associate with this AWS OpsWorks layer.
|
CfnLayer.Builder |
type(java.lang.String type)
The layer type.
|
CfnLayer.Builder |
useEbsOptimizedInstances(java.lang.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(java.util.List<? extends java.lang.Object> volumeConfigurations)
A `VolumeConfigurations` object that describes the layer's Amazon EBS volumes.
|
public static CfnLayer.Builder create(Construct scope, java.lang.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
.public CfnLayer.Builder autoAssignElasticIps(java.lang.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
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
public CfnLayer.Builder autoAssignPublicIps(java.lang.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
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
public CfnLayer.Builder enableAutoHealing(java.lang.Boolean enableAutoHealing)
enableAutoHealing
- Whether to disable auto healing for the layer. This parameter is required.this
public CfnLayer.Builder enableAutoHealing(IResolvable enableAutoHealing)
enableAutoHealing
- Whether to disable auto healing for the layer. This parameter is required.this
public CfnLayer.Builder name(java.lang.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
public CfnLayer.Builder shortname(java.lang.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
public CfnLayer.Builder stackId(java.lang.String stackId)
stackId
- The layer stack ID. This parameter is required.this
public CfnLayer.Builder type(java.lang.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
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
public CfnLayer.Builder attributes(java.util.Map<java.lang.String,java.lang.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
public CfnLayer.Builder customInstanceProfileArn(java.lang.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
public CfnLayer.Builder customJson(java.lang.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
public CfnLayer.Builder customRecipes(IResolvable customRecipes)
customRecipes
- A `LayerCustomRecipes` object that specifies the layer custom recipes. This parameter is required.this
public CfnLayer.Builder customRecipes(CfnLayer.RecipesProperty customRecipes)
customRecipes
- A `LayerCustomRecipes` object that specifies the layer custom recipes. This parameter is required.this
public CfnLayer.Builder customSecurityGroupIds(java.util.List<java.lang.String> customSecurityGroupIds)
customSecurityGroupIds
- An array containing the layer custom security group IDs. This parameter is required.this
public CfnLayer.Builder installUpdatesOnBoot(java.lang.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
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
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
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
public CfnLayer.Builder loadBasedAutoScaling(IResolvable loadBasedAutoScaling)
loadBasedAutoScaling
- The load-based scaling configuration for the AWS OpsWorks layer. This parameter is required.this
public CfnLayer.Builder loadBasedAutoScaling(CfnLayer.LoadBasedAutoScalingProperty loadBasedAutoScaling)
loadBasedAutoScaling
- The load-based scaling configuration for the AWS OpsWorks layer. This parameter is required.this
public CfnLayer.Builder packages(java.util.List<java.lang.String> packages)
packages
- An array of `Package` objects that describes the layer packages. This parameter is required.this
public CfnLayer.Builder tags(java.util.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
public CfnLayer.Builder useEbsOptimizedInstances(java.lang.Boolean useEbsOptimizedInstances)
useEbsOptimizedInstances
- Whether to use Amazon EBS-optimized instances. This parameter is required.this
public CfnLayer.Builder useEbsOptimizedInstances(IResolvable useEbsOptimizedInstances)
useEbsOptimizedInstances
- Whether to use Amazon EBS-optimized instances. This parameter is required.this
public CfnLayer.Builder volumeConfigurations(IResolvable volumeConfigurations)
volumeConfigurations
- A `VolumeConfigurations` object that describes the layer's Amazon EBS volumes. This parameter is required.this
public CfnLayer.Builder volumeConfigurations(java.util.List<? extends java.lang.Object> volumeConfigurations)
volumeConfigurations
- A `VolumeConfigurations` object that describes the layer's Amazon EBS volumes. This parameter is required.this
public CfnLayer build()