public class Layer
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes a layer.
Modifier and Type | Field and Description |
---|---|
private SdkInternalMap<java.lang.String,java.lang.String> |
attributes
The layer attributes.
|
private java.lang.Boolean |
autoAssignElasticIps
Whether to automatically assign an Elastic IP address to the layer's instances.
|
private 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.
|
private java.lang.String |
createdAt
Date when the layer was created.
|
private java.lang.String |
customInstanceProfileArn
The ARN of the default IAM profile to be used for the layer's EC2
instances.
|
private java.lang.String |
customJson
A JSON formatted string containing the layer's custom stack configuration
and deployment attributes.
|
private Recipes |
customRecipes
A
LayerCustomRecipes object that specifies the layer's
custom recipes. |
private SdkInternalList<java.lang.String> |
customSecurityGroupIds
An array containing the layer's custom security group IDs.
|
private Recipes |
defaultRecipes |
private SdkInternalList<java.lang.String> |
defaultSecurityGroupNames
An array containing the layer's security group names.
|
private java.lang.Boolean |
enableAutoHealing
Whether auto healing is disabled for the layer.
|
private java.lang.Boolean |
installUpdatesOnBoot
Whether to install operating system and package updates when the instance
boots.
|
private java.lang.String |
layerId
The layer ID.
|
private LifecycleEventConfiguration |
lifecycleEventConfiguration
A
LifeCycleEventConfiguration object that specifies the
Shutdown event configuration. |
private java.lang.String |
name
The layer name.
|
private SdkInternalList<java.lang.String> |
packages
An array of
Package objects that describe the layer's
packages. |
private java.lang.String |
shortname
The layer short name.
|
private java.lang.String |
stackId
The layer stack ID.
|
private java.lang.String |
type
The layer type.
|
private java.lang.Boolean |
useEbsOptimizedInstances
Whether the layer uses Amazon EBS-optimized instances.
|
private SdkInternalList<VolumeConfiguration> |
volumeConfigurations
A
VolumeConfigurations object that describes the layer's
Amazon EBS volumes. |
Constructor and Description |
---|
Layer() |
Modifier and Type | Method and Description |
---|---|
Layer |
addAttributesEntry(java.lang.String key,
java.lang.String value) |
Layer |
clearAttributesEntries()
Removes all the entries added into Attributes.
|
Layer |
clone() |
boolean |
equals(java.lang.Object obj) |
java.util.Map<java.lang.String,java.lang.String> |
getAttributes()
The layer attributes.
|
java.lang.Boolean |
getAutoAssignElasticIps()
Whether to automatically assign an Elastic IP address to the layer's instances.
|
java.lang.Boolean |
getAutoAssignPublicIps()
For stacks that are running in a VPC, whether to automatically assign a
public IP address to the layer's instances.
|
java.lang.String |
getCreatedAt()
Date when the layer was created.
|
java.lang.String |
getCustomInstanceProfileArn()
The ARN of the default IAM profile to be used for the layer's EC2
instances.
|
java.lang.String |
getCustomJson()
A JSON formatted string containing the layer's custom stack configuration
and deployment attributes.
|
Recipes |
getCustomRecipes()
A
LayerCustomRecipes object that specifies the layer's
custom recipes. |
java.util.List<java.lang.String> |
getCustomSecurityGroupIds()
An array containing the layer's custom security group IDs.
|
Recipes |
getDefaultRecipes() |
java.util.List<java.lang.String> |
getDefaultSecurityGroupNames()
An array containing the layer's security group names.
|
java.lang.Boolean |
getEnableAutoHealing()
Whether auto healing is disabled for the layer.
|
java.lang.Boolean |
getInstallUpdatesOnBoot()
Whether to install operating system and package updates when the instance
boots.
|
java.lang.String |
getLayerId()
The layer ID.
|
LifecycleEventConfiguration |
getLifecycleEventConfiguration()
A
LifeCycleEventConfiguration object that specifies the
Shutdown event configuration. |
java.lang.String |
getName()
The layer name.
|
java.util.List<java.lang.String> |
getPackages()
An array of
Package objects that describe the layer's
packages. |
java.lang.String |
getShortname()
The layer short name.
|
java.lang.String |
getStackId()
The layer stack ID.
|
java.lang.String |
getType()
The layer type.
|
java.lang.Boolean |
getUseEbsOptimizedInstances()
Whether the layer uses Amazon EBS-optimized instances.
|
java.util.List<VolumeConfiguration> |
getVolumeConfigurations()
A
VolumeConfigurations object that describes the layer's
Amazon EBS volumes. |
int |
hashCode() |
java.lang.Boolean |
isAutoAssignElasticIps()
Whether to automatically assign an Elastic IP address to the layer's instances.
|
java.lang.Boolean |
isAutoAssignPublicIps()
For stacks that are running in a VPC, whether to automatically assign a
public IP address to the layer's instances.
|
java.lang.Boolean |
isEnableAutoHealing()
Whether auto healing is disabled for the layer.
|
java.lang.Boolean |
isInstallUpdatesOnBoot()
Whether to install operating system and package updates when the instance
boots.
|
java.lang.Boolean |
isUseEbsOptimizedInstances()
Whether the layer uses Amazon EBS-optimized instances.
|
void |
setAttributes(java.util.Map<java.lang.String,java.lang.String> attributes)
The layer attributes.
|
void |
setAutoAssignElasticIps(java.lang.Boolean autoAssignElasticIps)
Whether to automatically assign an Elastic IP address to the layer's instances.
|
void |
setAutoAssignPublicIps(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.
|
void |
setCreatedAt(java.lang.String createdAt)
Date when the layer was created.
|
void |
setCustomInstanceProfileArn(java.lang.String customInstanceProfileArn)
The ARN of the default IAM profile to be used for the layer's EC2
instances.
|
void |
setCustomJson(java.lang.String customJson)
A JSON formatted string containing the layer's custom stack configuration
and deployment attributes.
|
void |
setCustomRecipes(Recipes customRecipes)
A
LayerCustomRecipes object that specifies the layer's
custom recipes. |
void |
setCustomSecurityGroupIds(java.util.Collection<java.lang.String> customSecurityGroupIds)
An array containing the layer's custom security group IDs.
|
void |
setDefaultRecipes(Recipes defaultRecipes) |
void |
setDefaultSecurityGroupNames(java.util.Collection<java.lang.String> defaultSecurityGroupNames)
An array containing the layer's security group names.
|
void |
setEnableAutoHealing(java.lang.Boolean enableAutoHealing)
Whether auto healing is disabled for the layer.
|
void |
setInstallUpdatesOnBoot(java.lang.Boolean installUpdatesOnBoot)
Whether to install operating system and package updates when the instance
boots.
|
void |
setLayerId(java.lang.String layerId)
The layer ID.
|
void |
setLifecycleEventConfiguration(LifecycleEventConfiguration lifecycleEventConfiguration)
A
LifeCycleEventConfiguration object that specifies the
Shutdown event configuration. |
void |
setName(java.lang.String name)
The layer name.
|
void |
setPackages(java.util.Collection<java.lang.String> packages)
An array of
Package objects that describe the layer's
packages. |
void |
setShortname(java.lang.String shortname)
The layer short name.
|
void |
setStackId(java.lang.String stackId)
The layer stack ID.
|
void |
setType(LayerType type)
The layer type.
|
void |
setType(java.lang.String type)
The layer type.
|
void |
setUseEbsOptimizedInstances(java.lang.Boolean useEbsOptimizedInstances)
Whether the layer uses Amazon EBS-optimized instances.
|
void |
setVolumeConfigurations(java.util.Collection<VolumeConfiguration> volumeConfigurations)
A
VolumeConfigurations object that describes the layer's
Amazon EBS volumes. |
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Layer |
withAttributes(java.util.Map<java.lang.String,java.lang.String> attributes)
The layer attributes.
|
Layer |
withAutoAssignElasticIps(java.lang.Boolean autoAssignElasticIps)
Whether to automatically assign an Elastic IP address to the layer's instances.
|
Layer |
withAutoAssignPublicIps(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.
|
Layer |
withCreatedAt(java.lang.String createdAt)
Date when the layer was created.
|
Layer |
withCustomInstanceProfileArn(java.lang.String customInstanceProfileArn)
The ARN of the default IAM profile to be used for the layer's EC2
instances.
|
Layer |
withCustomJson(java.lang.String customJson)
A JSON formatted string containing the layer's custom stack configuration
and deployment attributes.
|
Layer |
withCustomRecipes(Recipes customRecipes)
A
LayerCustomRecipes object that specifies the layer's
custom recipes. |
Layer |
withCustomSecurityGroupIds(java.util.Collection<java.lang.String> customSecurityGroupIds)
An array containing the layer's custom security group IDs.
|
Layer |
withCustomSecurityGroupIds(java.lang.String... customSecurityGroupIds)
An array containing the layer's custom security group IDs.
|
Layer |
withDefaultRecipes(Recipes defaultRecipes) |
Layer |
withDefaultSecurityGroupNames(java.util.Collection<java.lang.String> defaultSecurityGroupNames)
An array containing the layer's security group names.
|
Layer |
withDefaultSecurityGroupNames(java.lang.String... defaultSecurityGroupNames)
An array containing the layer's security group names.
|
Layer |
withEnableAutoHealing(java.lang.Boolean enableAutoHealing)
Whether auto healing is disabled for the layer.
|
Layer |
withInstallUpdatesOnBoot(java.lang.Boolean installUpdatesOnBoot)
Whether to install operating system and package updates when the instance
boots.
|
Layer |
withLayerId(java.lang.String layerId)
The layer ID.
|
Layer |
withLifecycleEventConfiguration(LifecycleEventConfiguration lifecycleEventConfiguration)
A
LifeCycleEventConfiguration object that specifies the
Shutdown event configuration. |
Layer |
withName(java.lang.String name)
The layer name.
|
Layer |
withPackages(java.util.Collection<java.lang.String> packages)
An array of
Package objects that describe the layer's
packages. |
Layer |
withPackages(java.lang.String... packages)
An array of
Package objects that describe the layer's
packages. |
Layer |
withShortname(java.lang.String shortname)
The layer short name.
|
Layer |
withStackId(java.lang.String stackId)
The layer stack ID.
|
Layer |
withType(LayerType type)
The layer type.
|
Layer |
withType(java.lang.String type)
The layer type.
|
Layer |
withUseEbsOptimizedInstances(java.lang.Boolean useEbsOptimizedInstances)
Whether the layer uses Amazon EBS-optimized instances.
|
Layer |
withVolumeConfigurations(java.util.Collection<VolumeConfiguration> volumeConfigurations)
A
VolumeConfigurations object that describes the layer's
Amazon EBS volumes. |
Layer |
withVolumeConfigurations(VolumeConfiguration... volumeConfigurations)
A
VolumeConfigurations object that describes the layer's
Amazon EBS volumes. |
private java.lang.String stackId
The layer stack ID.
private java.lang.String layerId
The layer ID.
private java.lang.String type
The layer type.
private java.lang.String name
The layer name.
private java.lang.String shortname
The layer short name.
private SdkInternalMap<java.lang.String,java.lang.String> attributes
The layer attributes.
For the HaproxyStatsPassword
, MysqlRootPassword
, and GangliaPassword
attributes, AWS OpsWorks returns
*****FILTERED*****
instead of the actual value
For an ECS Cluster layer, AWS OpsWorks the EcsClusterArn
attribute is set to the cluster's ARN.
private java.lang.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.
private java.lang.String customJson
A JSON formatted string containing the layer's custom stack configuration and deployment attributes.
private SdkInternalList<java.lang.String> customSecurityGroupIds
An array containing the layer's custom security group IDs.
private SdkInternalList<java.lang.String> defaultSecurityGroupNames
An array containing the layer's security group names.
private SdkInternalList<java.lang.String> packages
An array of Package
objects that describe the layer's
packages.
private SdkInternalList<VolumeConfiguration> volumeConfigurations
A VolumeConfigurations
object that describes the layer's
Amazon EBS volumes.
private java.lang.Boolean enableAutoHealing
Whether auto healing is disabled for the layer.
private java.lang.Boolean autoAssignElasticIps
Whether to automatically assign an Elastic IP address to the layer's instances. For more information, see How to Edit a Layer.
private 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. For more information, see How to Edit a Layer.
private Recipes defaultRecipes
private Recipes customRecipes
A LayerCustomRecipes
object that specifies the layer's
custom recipes.
private java.lang.String createdAt
Date when the layer was created.
private java.lang.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.
private java.lang.Boolean useEbsOptimizedInstances
Whether the layer uses Amazon EBS-optimized instances.
private LifecycleEventConfiguration lifecycleEventConfiguration
A LifeCycleEventConfiguration
object that specifies the
Shutdown event configuration.
public void setStackId(java.lang.String stackId)
The layer stack ID.
stackId
- The layer stack ID.public java.lang.String getStackId()
The layer stack ID.
public Layer withStackId(java.lang.String stackId)
The layer stack ID.
stackId
- The layer stack ID.public void setLayerId(java.lang.String layerId)
The layer ID.
layerId
- The layer ID.public java.lang.String getLayerId()
The layer ID.
public Layer withLayerId(java.lang.String layerId)
The layer ID.
layerId
- The layer ID.public void setType(java.lang.String type)
The layer type.
type
- The layer type.LayerType
public java.lang.String getType()
The layer type.
LayerType
public Layer withType(java.lang.String type)
The layer type.
type
- The layer type.LayerType
public void setType(LayerType type)
The layer type.
type
- The layer type.LayerType
public Layer withType(LayerType type)
The layer type.
type
- The layer type.LayerType
public void setName(java.lang.String name)
The layer name.
name
- The layer name.public java.lang.String getName()
The layer name.
public Layer withName(java.lang.String name)
The layer name.
name
- The layer name.public void setShortname(java.lang.String shortname)
The layer short name.
shortname
- The layer short name.public java.lang.String getShortname()
The layer short name.
public Layer withShortname(java.lang.String shortname)
The layer short name.
shortname
- The layer short name.public java.util.Map<java.lang.String,java.lang.String> getAttributes()
The layer attributes.
For the HaproxyStatsPassword
, MysqlRootPassword
, and GangliaPassword
attributes, AWS OpsWorks returns
*****FILTERED*****
instead of the actual value
For an ECS Cluster layer, AWS OpsWorks the EcsClusterArn
attribute is set to the cluster's ARN.
For the HaproxyStatsPassword
,
MysqlRootPassword
, and GangliaPassword
attributes, AWS OpsWorks returns *****FILTERED*****
instead of the actual value
For an ECS Cluster layer, AWS OpsWorks the
EcsClusterArn
attribute is set to the cluster's ARN.
public void setAttributes(java.util.Map<java.lang.String,java.lang.String> attributes)
The layer attributes.
For the HaproxyStatsPassword
, MysqlRootPassword
, and GangliaPassword
attributes, AWS OpsWorks returns
*****FILTERED*****
instead of the actual value
For an ECS Cluster layer, AWS OpsWorks the EcsClusterArn
attribute is set to the cluster's ARN.
attributes
- The layer attributes.
For the HaproxyStatsPassword
,
MysqlRootPassword
, and GangliaPassword
attributes, AWS OpsWorks returns *****FILTERED*****
instead of the actual value
For an ECS Cluster layer, AWS OpsWorks the
EcsClusterArn
attribute is set to the cluster's ARN.
public Layer withAttributes(java.util.Map<java.lang.String,java.lang.String> attributes)
The layer attributes.
For the HaproxyStatsPassword
, MysqlRootPassword
, and GangliaPassword
attributes, AWS OpsWorks returns
*****FILTERED*****
instead of the actual value
For an ECS Cluster layer, AWS OpsWorks the EcsClusterArn
attribute is set to the cluster's ARN.
attributes
- The layer attributes.
For the HaproxyStatsPassword
,
MysqlRootPassword
, and GangliaPassword
attributes, AWS OpsWorks returns *****FILTERED*****
instead of the actual value
For an ECS Cluster layer, AWS OpsWorks the
EcsClusterArn
attribute is set to the cluster's ARN.
public Layer addAttributesEntry(java.lang.String key, java.lang.String value)
public Layer clearAttributesEntries()
public void setCustomInstanceProfileArn(java.lang.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.public java.lang.String getCustomInstanceProfileArn()
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.
public Layer withCustomInstanceProfileArn(java.lang.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.public void setCustomJson(java.lang.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.public java.lang.String getCustomJson()
A JSON formatted string containing the layer's custom stack configuration and deployment attributes.
public Layer withCustomJson(java.lang.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.public java.util.List<java.lang.String> getCustomSecurityGroupIds()
An array containing the layer's custom security group IDs.
public void setCustomSecurityGroupIds(java.util.Collection<java.lang.String> customSecurityGroupIds)
An array containing the layer's custom security group IDs.
customSecurityGroupIds
- An array containing the layer's custom security group IDs.public Layer withCustomSecurityGroupIds(java.lang.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.public Layer withCustomSecurityGroupIds(java.util.Collection<java.lang.String> customSecurityGroupIds)
An array containing the layer's custom security group IDs.
customSecurityGroupIds
- An array containing the layer's custom security group IDs.public java.util.List<java.lang.String> getDefaultSecurityGroupNames()
An array containing the layer's security group names.
public void setDefaultSecurityGroupNames(java.util.Collection<java.lang.String> defaultSecurityGroupNames)
An array containing the layer's security group names.
defaultSecurityGroupNames
- An array containing the layer's security group names.public Layer withDefaultSecurityGroupNames(java.lang.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.public Layer withDefaultSecurityGroupNames(java.util.Collection<java.lang.String> defaultSecurityGroupNames)
An array containing the layer's security group names.
defaultSecurityGroupNames
- An array containing the layer's security group names.public java.util.List<java.lang.String> getPackages()
An array of Package
objects that describe the layer's
packages.
Package
objects that describe the
layer's packages.public void setPackages(java.util.Collection<java.lang.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.public Layer withPackages(java.lang.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.public Layer withPackages(java.util.Collection<java.lang.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.public java.util.List<VolumeConfiguration> getVolumeConfigurations()
A VolumeConfigurations
object that describes the layer's
Amazon EBS volumes.
VolumeConfigurations
object that describes the
layer's Amazon EBS volumes.public void setVolumeConfigurations(java.util.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.public Layer withVolumeConfigurations(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.public Layer withVolumeConfigurations(java.util.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.public void setEnableAutoHealing(java.lang.Boolean enableAutoHealing)
Whether auto healing is disabled for the layer.
enableAutoHealing
- Whether auto healing is disabled for the layer.public java.lang.Boolean getEnableAutoHealing()
Whether auto healing is disabled for the layer.
public Layer withEnableAutoHealing(java.lang.Boolean enableAutoHealing)
Whether auto healing is disabled for the layer.
enableAutoHealing
- Whether auto healing is disabled for the layer.public java.lang.Boolean isEnableAutoHealing()
Whether auto healing is disabled for the layer.
public void setAutoAssignElasticIps(java.lang.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.public java.lang.Boolean getAutoAssignElasticIps()
Whether to automatically assign an Elastic IP address to the layer's instances. For more information, see How to Edit a Layer.
public Layer withAutoAssignElasticIps(java.lang.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.public java.lang.Boolean isAutoAssignElasticIps()
Whether to automatically assign an Elastic IP address to the layer's instances. For more information, see How to Edit a Layer.
public void setAutoAssignPublicIps(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. 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.public java.lang.Boolean getAutoAssignPublicIps()
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.
public Layer withAutoAssignPublicIps(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. 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.public java.lang.Boolean isAutoAssignPublicIps()
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.
public void setDefaultRecipes(Recipes defaultRecipes)
defaultRecipes
- public Recipes getDefaultRecipes()
public Layer withDefaultRecipes(Recipes defaultRecipes)
defaultRecipes
- public void setCustomRecipes(Recipes customRecipes)
A LayerCustomRecipes
object that specifies the layer's
custom recipes.
customRecipes
- A LayerCustomRecipes
object that specifies the
layer's custom recipes.public Recipes getCustomRecipes()
A LayerCustomRecipes
object that specifies the layer's
custom recipes.
LayerCustomRecipes
object that specifies the
layer's custom recipes.public Layer withCustomRecipes(Recipes customRecipes)
A LayerCustomRecipes
object that specifies the layer's
custom recipes.
customRecipes
- A LayerCustomRecipes
object that specifies the
layer's custom recipes.public void setCreatedAt(java.lang.String createdAt)
Date when the layer was created.
createdAt
- Date when the layer was created.public java.lang.String getCreatedAt()
Date when the layer was created.
public Layer withCreatedAt(java.lang.String createdAt)
Date when the layer was created.
createdAt
- Date when the layer was created.public void setInstallUpdatesOnBoot(java.lang.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.
public java.lang.Boolean getInstallUpdatesOnBoot()
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.
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.
public Layer withInstallUpdatesOnBoot(java.lang.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.
public java.lang.Boolean isInstallUpdatesOnBoot()
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.
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.
public void setUseEbsOptimizedInstances(java.lang.Boolean useEbsOptimizedInstances)
Whether the layer uses Amazon EBS-optimized instances.
useEbsOptimizedInstances
- Whether the layer uses Amazon EBS-optimized instances.public java.lang.Boolean getUseEbsOptimizedInstances()
Whether the layer uses Amazon EBS-optimized instances.
public Layer withUseEbsOptimizedInstances(java.lang.Boolean useEbsOptimizedInstances)
Whether the layer uses Amazon EBS-optimized instances.
useEbsOptimizedInstances
- Whether the layer uses Amazon EBS-optimized instances.public java.lang.Boolean isUseEbsOptimizedInstances()
Whether the layer uses Amazon EBS-optimized instances.
public void setLifecycleEventConfiguration(LifecycleEventConfiguration lifecycleEventConfiguration)
A LifeCycleEventConfiguration
object that specifies the
Shutdown event configuration.
lifecycleEventConfiguration
- A LifeCycleEventConfiguration
object that specifies
the Shutdown event configuration.public LifecycleEventConfiguration getLifecycleEventConfiguration()
A LifeCycleEventConfiguration
object that specifies the
Shutdown event configuration.
LifeCycleEventConfiguration
object that specifies
the Shutdown event configuration.public Layer withLifecycleEventConfiguration(LifecycleEventConfiguration lifecycleEventConfiguration)
A LifeCycleEventConfiguration
object that specifies the
Shutdown event configuration.
lifecycleEventConfiguration
- A LifeCycleEventConfiguration
object that specifies
the Shutdown event configuration.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public Layer clone()
clone
in class java.lang.Object