CopyableBuilder<Layer.Builder,Layer>
, SdkBuilder<Layer.Builder,Layer>
public static interface Layer.Builder extends CopyableBuilder<Layer.Builder,Layer>
Modifier and Type | Method | Description |
---|---|---|
Layer.Builder |
arn(String arn) |
|
Layer.Builder |
attributes(Map<String,String> attributes) |
The layer attributes.
|
Layer.Builder |
autoAssignElasticIps(Boolean autoAssignElasticIps) |
Whether to automatically assign an Elastic IP
address to the layer's instances.
|
Layer.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.
|
Layer.Builder |
cloudWatchLogsConfiguration(CloudWatchLogsConfiguration cloudWatchLogsConfiguration) |
The Amazon CloudWatch Logs configuration settings for the layer.
|
Layer.Builder |
createdAt(String createdAt) |
Date when the layer was created.
|
Layer.Builder |
customInstanceProfileArn(String customInstanceProfileArn) |
The ARN of the default IAM profile to be used for the layer's EC2 instances.
|
Layer.Builder |
customJson(String customJson) |
A JSON formatted string containing the layer's custom stack configuration and deployment attributes.
|
Layer.Builder |
customRecipes(Recipes customRecipes) |
A
LayerCustomRecipes object that specifies the layer's custom recipes. |
Layer.Builder |
customSecurityGroupIds(String... customSecurityGroupIds) |
An array containing the layer's custom security group IDs.
|
Layer.Builder |
customSecurityGroupIds(Collection<String> customSecurityGroupIds) |
An array containing the layer's custom security group IDs.
|
Layer.Builder |
defaultRecipes(Recipes defaultRecipes) |
|
Layer.Builder |
defaultSecurityGroupNames(String... defaultSecurityGroupNames) |
An array containing the layer's security group names.
|
Layer.Builder |
defaultSecurityGroupNames(Collection<String> defaultSecurityGroupNames) |
An array containing the layer's security group names.
|
Layer.Builder |
enableAutoHealing(Boolean enableAutoHealing) |
Whether auto healing is disabled for the layer.
|
Layer.Builder |
installUpdatesOnBoot(Boolean installUpdatesOnBoot) |
Whether to install operating system and package updates when the instance boots.
|
Layer.Builder |
layerId(String layerId) |
The layer ID.
|
Layer.Builder |
lifecycleEventConfiguration(LifecycleEventConfiguration lifecycleEventConfiguration) |
A
LifeCycleEventConfiguration object that specifies the Shutdown event configuration. |
Layer.Builder |
name(String name) |
The layer name.
|
Layer.Builder |
packages(String... packages) |
An array of
Package objects that describe the layer's packages. |
Layer.Builder |
packages(Collection<String> packages) |
An array of
Package objects that describe the layer's packages. |
Layer.Builder |
shortname(String shortname) |
The layer short name.
|
Layer.Builder |
stackId(String stackId) |
The layer stack ID.
|
Layer.Builder |
type(String type) |
The layer type.
|
Layer.Builder |
type(LayerType type) |
The layer type.
|
Layer.Builder |
useEbsOptimizedInstances(Boolean useEbsOptimizedInstances) |
Whether the layer uses Amazon EBS-optimized instances.
|
Layer.Builder |
volumeConfigurations(Collection<VolumeConfiguration> volumeConfigurations) |
A
VolumeConfigurations object that describes the layer's Amazon EBS volumes. |
Layer.Builder |
volumeConfigurations(VolumeConfiguration... volumeConfigurations) |
A
VolumeConfigurations object that describes the layer's Amazon EBS volumes. |
copy
apply, build
Layer.Builder arn(String arn)
arn
- Layer.Builder stackId(String stackId)
The layer stack ID.
stackId
- The layer stack ID.Layer.Builder layerId(String layerId)
The layer ID.
layerId
- The layer ID.Layer.Builder type(String type)
The layer type.
type
- The layer type.LayerType
Layer.Builder type(LayerType type)
The layer type.
type
- The layer type.LayerType
Layer.Builder name(String name)
The layer name.
name
- The layer name.Layer.Builder shortname(String shortname)
The layer short name.
shortname
- The layer short name.Layer.Builder attributes(Map<String,String> attributes)
The layer attributes.
For the HaproxyStatsPassword
, MysqlRootPassword
, and GangliaPassword
attributes, AWS OpsWorks Stacks returns *****FILTERED*****
instead of the actual value
For an ECS Cluster layer, AWS OpsWorks Stacks the EcsClusterArn
attribute is set to the
cluster's ARN.
attributes
- The layer attributes.
For the HaproxyStatsPassword
, MysqlRootPassword
, and
GangliaPassword
attributes, AWS OpsWorks Stacks returns *****FILTERED*****
instead of the actual value
For an ECS Cluster layer, AWS OpsWorks Stacks the EcsClusterArn
attribute is set to the
cluster's ARN.
Layer.Builder cloudWatchLogsConfiguration(CloudWatchLogsConfiguration cloudWatchLogsConfiguration)
The Amazon CloudWatch Logs configuration settings for the layer.
cloudWatchLogsConfiguration
- The Amazon CloudWatch Logs configuration settings for the layer.Layer.Builder customInstanceProfileArn(String customInstanceProfileArn)
The ARN of the default IAM profile to be used for the layer's EC2 instances. For more information about IAM ARNs, see Using Identifiers.
customInstanceProfileArn
- The ARN of the default IAM profile to be used for the layer's EC2 instances. For more information
about IAM ARNs, see Using Identifiers.Layer.Builder customJson(String customJson)
A JSON formatted string containing the layer's custom stack configuration and deployment attributes.
customJson
- A JSON formatted string containing the layer's custom stack configuration and deployment attributes.Layer.Builder customSecurityGroupIds(Collection<String> customSecurityGroupIds)
An array containing the layer's custom security group IDs.
customSecurityGroupIds
- An array containing the layer's custom security group IDs.Layer.Builder customSecurityGroupIds(String... customSecurityGroupIds)
An array containing the layer's custom security group IDs.
NOTE: This method appends the values to the existing list (if any). Use
#setCustomSecurityGroupIds(java.util.Collection)
or
#withCustomSecurityGroupIds(java.util.Collection)
if you want to override the existing values.
customSecurityGroupIds
- An array containing the layer's custom security group IDs.Layer.Builder defaultSecurityGroupNames(Collection<String> defaultSecurityGroupNames)
An array containing the layer's security group names.
defaultSecurityGroupNames
- An array containing the layer's security group names.Layer.Builder defaultSecurityGroupNames(String... defaultSecurityGroupNames)
An array containing the layer's security group names.
NOTE: This method appends the values to the existing list (if any). Use
#setDefaultSecurityGroupNames(java.util.Collection)
or
#withDefaultSecurityGroupNames(java.util.Collection)
if you want to override the existing values.
defaultSecurityGroupNames
- An array containing the layer's security group names.Layer.Builder packages(Collection<String> packages)
An array of Package
objects that describe the layer's packages.
packages
- An array of Package
objects that describe the layer's packages.Layer.Builder packages(String... packages)
An array of Package
objects that describe the layer's packages.
NOTE: This method appends the values to the existing list (if any). Use
#setPackages(java.util.Collection)
or #withPackages(java.util.Collection)
if you want to
override the existing values.
packages
- An array of Package
objects that describe the layer's packages.Layer.Builder volumeConfigurations(Collection<VolumeConfiguration> volumeConfigurations)
A VolumeConfigurations
object that describes the layer's Amazon EBS volumes.
volumeConfigurations
- A VolumeConfigurations
object that describes the layer's Amazon EBS volumes.Layer.Builder volumeConfigurations(VolumeConfiguration... volumeConfigurations)
A VolumeConfigurations
object that describes the layer's Amazon EBS volumes.
NOTE: This method appends the values to the existing list (if any). Use
#setVolumeConfigurations(java.util.Collection)
or
#withVolumeConfigurations(java.util.Collection)
if you want to override the existing values.
volumeConfigurations
- A VolumeConfigurations
object that describes the layer's Amazon EBS volumes.Layer.Builder enableAutoHealing(Boolean enableAutoHealing)
Whether auto healing is disabled for the layer.
enableAutoHealing
- Whether auto healing is disabled for the layer.Layer.Builder autoAssignElasticIps(Boolean autoAssignElasticIps)
Whether to automatically assign an Elastic IP address to the layer's instances. For more information, see How to Edit a Layer.
autoAssignElasticIps
- Whether to automatically assign an Elastic IP
address to the layer's instances. For more information, see How to Edit
a Layer.Layer.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. 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. For more information, see How to Edit
a Layer.Layer.Builder defaultRecipes(Recipes defaultRecipes)
defaultRecipes
- Layer.Builder customRecipes(Recipes customRecipes)
A LayerCustomRecipes
object that specifies the layer's custom recipes.
customRecipes
- A LayerCustomRecipes
object that specifies the layer's custom recipes.Layer.Builder createdAt(String createdAt)
Date when the layer was created.
createdAt
- Date when the layer was created.Layer.Builder installUpdatesOnBoot(Boolean installUpdatesOnBoot)
Whether to install operating system and package updates when the instance boots. The default value is
true
. If this value is set to false
, you must then update your instances manually
by using CreateDeployment to run the update_dependencies
stack command or manually
running yum
(Amazon Linux) or apt-get
(Ubuntu) on the instances.
We strongly recommend using the default value of true
, to ensure that your instances have the
latest security updates.
installUpdatesOnBoot
- Whether to install operating system and package updates when the instance boots. The default value is
true
. If this value is set to false
, you must then update your instances
manually by using CreateDeployment to run the update_dependencies
stack command or
manually running yum
(Amazon Linux) or apt-get
(Ubuntu) on the instances.
We strongly recommend using the default value of true
, to ensure that your instances have
the latest security updates.
Layer.Builder useEbsOptimizedInstances(Boolean useEbsOptimizedInstances)
Whether the layer uses Amazon EBS-optimized instances.
useEbsOptimizedInstances
- Whether the layer uses Amazon EBS-optimized instances.Layer.Builder lifecycleEventConfiguration(LifecycleEventConfiguration lifecycleEventConfiguration)
A LifeCycleEventConfiguration
object that specifies the Shutdown event configuration.
lifecycleEventConfiguration
- A LifeCycleEventConfiguration
object that specifies the Shutdown event configuration.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.