Class Layer
- java.lang.Object
-
- com.amazonaws.services.opsworks.model.Layer
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class Layer extends Object implements Serializable, Cloneable
Describes a layer.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Layer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Layer
addAttributesEntry(String key, String value)
Layer
clearAttributesEntries()
Removes all the entries added into Attributes.Layer
clone()
boolean
equals(Object obj)
Map<String,String>
getAttributes()
The layer attributes.Boolean
getAutoAssignElasticIps()
Whether to automatically assign an Elastic IP address to the layer's instances.Boolean
getAutoAssignPublicIps()
For stacks that are running in a VPC, whether to automatically assign a public IP address to the layer's instances.String
getCreatedAt()
Date when the layer was created.String
getCustomInstanceProfileArn()
The ARN of the default IAM profile to be used for the layer's EC2 instances.String
getCustomJson()
A JSON formatted string containing the layer's custom stack configuration and deployment attributes.Recipes
getCustomRecipes()
ALayerCustomRecipes
object that specifies the layer's custom recipes.List<String>
getCustomSecurityGroupIds()
An array containing the layer's custom security group IDs.Recipes
getDefaultRecipes()
List<String>
getDefaultSecurityGroupNames()
An array containing the layer's security group names.Boolean
getEnableAutoHealing()
Whether auto healing is disabled for the layer.Boolean
getInstallUpdatesOnBoot()
Whether to install operating system and package updates when the instance boots.String
getLayerId()
The layer ID.LifecycleEventConfiguration
getLifecycleEventConfiguration()
ALifeCycleEventConfiguration
object that specifies the Shutdown event configuration.String
getName()
The layer name.List<String>
getPackages()
An array ofPackage
objects that describe the layer's packages.String
getShortname()
The layer short name.String
getStackId()
The layer stack ID.String
getType()
The layer type.Boolean
getUseEbsOptimizedInstances()
Whether the layer uses Amazon EBS-optimized instances.List<VolumeConfiguration>
getVolumeConfigurations()
AVolumeConfigurations
object that describes the layer's Amazon EBS volumes.int
hashCode()
Boolean
isAutoAssignElasticIps()
Whether to automatically assign an Elastic IP address to the layer's instances.Boolean
isAutoAssignPublicIps()
For stacks that are running in a VPC, whether to automatically assign a public IP address to the layer's instances.Boolean
isEnableAutoHealing()
Whether auto healing is disabled for the layer.Boolean
isInstallUpdatesOnBoot()
Whether to install operating system and package updates when the instance boots.Boolean
isUseEbsOptimizedInstances()
Whether the layer uses Amazon EBS-optimized instances.void
setAttributes(Map<String,String> attributes)
The layer attributes.void
setAutoAssignElasticIps(Boolean autoAssignElasticIps)
Whether to automatically assign an Elastic IP address to the layer's instances.void
setAutoAssignPublicIps(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(String createdAt)
Date when the layer was created.void
setCustomInstanceProfileArn(String customInstanceProfileArn)
The ARN of the default IAM profile to be used for the layer's EC2 instances.void
setCustomJson(String customJson)
A JSON formatted string containing the layer's custom stack configuration and deployment attributes.void
setCustomRecipes(Recipes customRecipes)
ALayerCustomRecipes
object that specifies the layer's custom recipes.void
setCustomSecurityGroupIds(Collection<String> customSecurityGroupIds)
An array containing the layer's custom security group IDs.void
setDefaultRecipes(Recipes defaultRecipes)
void
setDefaultSecurityGroupNames(Collection<String> defaultSecurityGroupNames)
An array containing the layer's security group names.void
setEnableAutoHealing(Boolean enableAutoHealing)
Whether auto healing is disabled for the layer.void
setInstallUpdatesOnBoot(Boolean installUpdatesOnBoot)
Whether to install operating system and package updates when the instance boots.void
setLayerId(String layerId)
The layer ID.void
setLifecycleEventConfiguration(LifecycleEventConfiguration lifecycleEventConfiguration)
ALifeCycleEventConfiguration
object that specifies the Shutdown event configuration.void
setName(String name)
The layer name.void
setPackages(Collection<String> packages)
An array ofPackage
objects that describe the layer's packages.void
setShortname(String shortname)
The layer short name.void
setStackId(String stackId)
The layer stack ID.void
setType(LayerType type)
The layer type.void
setType(String type)
The layer type.void
setUseEbsOptimizedInstances(Boolean useEbsOptimizedInstances)
Whether the layer uses Amazon EBS-optimized instances.void
setVolumeConfigurations(Collection<VolumeConfiguration> volumeConfigurations)
AVolumeConfigurations
object that describes the layer's Amazon EBS volumes.String
toString()
Returns a string representation of this object; useful for testing and debugging.Layer
withAttributes(Map<String,String> attributes)
The layer attributes.Layer
withAutoAssignElasticIps(Boolean autoAssignElasticIps)
Whether to automatically assign an Elastic IP address to the layer's instances.Layer
withAutoAssignPublicIps(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(String createdAt)
Date when the layer was created.Layer
withCustomInstanceProfileArn(String customInstanceProfileArn)
The ARN of the default IAM profile to be used for the layer's EC2 instances.Layer
withCustomJson(String customJson)
A JSON formatted string containing the layer's custom stack configuration and deployment attributes.Layer
withCustomRecipes(Recipes customRecipes)
ALayerCustomRecipes
object that specifies the layer's custom recipes.Layer
withCustomSecurityGroupIds(String... customSecurityGroupIds)
An array containing the layer's custom security group IDs.Layer
withCustomSecurityGroupIds(Collection<String> customSecurityGroupIds)
An array containing the layer's custom security group IDs.Layer
withDefaultRecipes(Recipes defaultRecipes)
Layer
withDefaultSecurityGroupNames(String... defaultSecurityGroupNames)
An array containing the layer's security group names.Layer
withDefaultSecurityGroupNames(Collection<String> defaultSecurityGroupNames)
An array containing the layer's security group names.Layer
withEnableAutoHealing(Boolean enableAutoHealing)
Whether auto healing is disabled for the layer.Layer
withInstallUpdatesOnBoot(Boolean installUpdatesOnBoot)
Whether to install operating system and package updates when the instance boots.Layer
withLayerId(String layerId)
The layer ID.Layer
withLifecycleEventConfiguration(LifecycleEventConfiguration lifecycleEventConfiguration)
ALifeCycleEventConfiguration
object that specifies the Shutdown event configuration.Layer
withName(String name)
The layer name.Layer
withPackages(String... packages)
An array ofPackage
objects that describe the layer's packages.Layer
withPackages(Collection<String> packages)
An array ofPackage
objects that describe the layer's packages.Layer
withShortname(String shortname)
The layer short name.Layer
withStackId(String stackId)
The layer stack ID.Layer
withType(LayerType type)
The layer type.Layer
withType(String type)
The layer type.Layer
withUseEbsOptimizedInstances(Boolean useEbsOptimizedInstances)
Whether the layer uses Amazon EBS-optimized instances.Layer
withVolumeConfigurations(VolumeConfiguration... volumeConfigurations)
AVolumeConfigurations
object that describes the layer's Amazon EBS volumes.Layer
withVolumeConfigurations(Collection<VolumeConfiguration> volumeConfigurations)
AVolumeConfigurations
object that describes the layer's Amazon EBS volumes.
-
-
-
Method Detail
-
setStackId
public void setStackId(String stackId)
The layer stack ID.
- Parameters:
stackId
- The layer stack ID.
-
getStackId
public String getStackId()
The layer stack ID.
- Returns:
- The layer stack ID.
-
withStackId
public Layer withStackId(String stackId)
The layer stack ID.
- Parameters:
stackId
- The layer stack ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setLayerId
public void setLayerId(String layerId)
The layer ID.
- Parameters:
layerId
- The layer ID.
-
getLayerId
public String getLayerId()
The layer ID.
- Returns:
- The layer ID.
-
withLayerId
public Layer withLayerId(String layerId)
The layer ID.
- Parameters:
layerId
- The layer ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setType
public void setType(String type)
The layer type.
- Parameters:
type
- The layer type.- See Also:
LayerType
-
withType
public Layer withType(String type)
The layer type.
- Parameters:
type
- The layer type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
LayerType
-
setType
public void setType(LayerType type)
The layer type.
- Parameters:
type
- The layer type.- See Also:
LayerType
-
withType
public Layer withType(LayerType type)
The layer type.
- Parameters:
type
- The layer type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
LayerType
-
setName
public void setName(String name)
The layer name.
- Parameters:
name
- The layer name.
-
getName
public String getName()
The layer name.
- Returns:
- The layer name.
-
withName
public Layer withName(String name)
The layer name.
- Parameters:
name
- The layer name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setShortname
public void setShortname(String shortname)
The layer short name.
- Parameters:
shortname
- The layer short name.
-
getShortname
public String getShortname()
The layer short name.
- Returns:
- The layer short name.
-
withShortname
public Layer withShortname(String shortname)
The layer short name.
- Parameters:
shortname
- The layer short name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getAttributes
public Map<String,String> getAttributes()
The layer attributes.
For the
HaproxyStatsPassword
,MysqlRootPassword
, andGangliaPassword
attributes, AWS OpsWorks returns*****FILTERED*****
instead of the actual valueFor an ECS Cluster layer, AWS OpsWorks the
EcsClusterArn
attribute is set to the cluster's ARN.- Returns:
- The layer attributes.
For the
HaproxyStatsPassword
,MysqlRootPassword
, andGangliaPassword
attributes, AWS OpsWorks returns*****FILTERED*****
instead of the actual valueFor an ECS Cluster layer, AWS OpsWorks the
EcsClusterArn
attribute is set to the cluster's ARN.
-
setAttributes
public void setAttributes(Map<String,String> attributes)
The layer attributes.
For the
HaproxyStatsPassword
,MysqlRootPassword
, andGangliaPassword
attributes, AWS OpsWorks returns*****FILTERED*****
instead of the actual valueFor an ECS Cluster layer, AWS OpsWorks the
EcsClusterArn
attribute is set to the cluster's ARN.- Parameters:
attributes
- The layer attributes.For the
HaproxyStatsPassword
,MysqlRootPassword
, andGangliaPassword
attributes, AWS OpsWorks returns*****FILTERED*****
instead of the actual valueFor an ECS Cluster layer, AWS OpsWorks the
EcsClusterArn
attribute is set to the cluster's ARN.
-
withAttributes
public Layer withAttributes(Map<String,String> attributes)
The layer attributes.
For the
HaproxyStatsPassword
,MysqlRootPassword
, andGangliaPassword
attributes, AWS OpsWorks returns*****FILTERED*****
instead of the actual valueFor an ECS Cluster layer, AWS OpsWorks the
EcsClusterArn
attribute is set to the cluster's ARN.- Parameters:
attributes
- The layer attributes.For the
HaproxyStatsPassword
,MysqlRootPassword
, andGangliaPassword
attributes, AWS OpsWorks returns*****FILTERED*****
instead of the actual valueFor an ECS Cluster layer, AWS OpsWorks the
EcsClusterArn
attribute is set to the cluster's ARN.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
clearAttributesEntries
public Layer clearAttributesEntries()
Removes all the entries added into Attributes. <p> Returns a reference to this object so that method calls can be chained together.
-
setCustomInstanceProfileArn
public void setCustomInstanceProfileArn(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.
- Parameters:
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.
-
getCustomInstanceProfileArn
public 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.
- Returns:
- 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.
-
withCustomInstanceProfileArn
public Layer withCustomInstanceProfileArn(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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setCustomJson
public void setCustomJson(String customJson)
A JSON formatted string containing the layer's custom stack configuration and deployment attributes.
- Parameters:
customJson
- A JSON formatted string containing the layer's custom stack configuration and deployment attributes.
-
getCustomJson
public String getCustomJson()
A JSON formatted string containing the layer's custom stack configuration and deployment attributes.
- Returns:
- A JSON formatted string containing the layer's custom stack configuration and deployment attributes.
-
withCustomJson
public Layer withCustomJson(String customJson)
A JSON formatted string containing the layer's custom stack configuration and deployment attributes.
- Parameters:
customJson
- A JSON formatted string containing the layer's custom stack configuration and deployment attributes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getCustomSecurityGroupIds
public List<String> getCustomSecurityGroupIds()
An array containing the layer's custom security group IDs.
- Returns:
- An array containing the layer's custom security group IDs.
-
setCustomSecurityGroupIds
public void setCustomSecurityGroupIds(Collection<String> customSecurityGroupIds)
An array containing the layer's custom security group IDs.
- Parameters:
customSecurityGroupIds
- An array containing the layer's custom security group IDs.
-
withCustomSecurityGroupIds
public Layer withCustomSecurityGroupIds(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)
orwithCustomSecurityGroupIds(java.util.Collection)
if you want to override the existing values.- Parameters:
customSecurityGroupIds
- An array containing the layer's custom security group IDs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withCustomSecurityGroupIds
public Layer withCustomSecurityGroupIds(Collection<String> customSecurityGroupIds)
An array containing the layer's custom security group IDs.
- Parameters:
customSecurityGroupIds
- An array containing the layer's custom security group IDs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getDefaultSecurityGroupNames
public List<String> getDefaultSecurityGroupNames()
An array containing the layer's security group names.
- Returns:
- An array containing the layer's security group names.
-
setDefaultSecurityGroupNames
public void setDefaultSecurityGroupNames(Collection<String> defaultSecurityGroupNames)
An array containing the layer's security group names.
- Parameters:
defaultSecurityGroupNames
- An array containing the layer's security group names.
-
withDefaultSecurityGroupNames
public Layer withDefaultSecurityGroupNames(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)
orwithDefaultSecurityGroupNames(java.util.Collection)
if you want to override the existing values.- Parameters:
defaultSecurityGroupNames
- An array containing the layer's security group names.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withDefaultSecurityGroupNames
public Layer withDefaultSecurityGroupNames(Collection<String> defaultSecurityGroupNames)
An array containing the layer's security group names.
- Parameters:
defaultSecurityGroupNames
- An array containing the layer's security group names.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getPackages
public List<String> getPackages()
An array of
Package
objects that describe the layer's packages.- Returns:
- An array of
Package
objects that describe the layer's packages.
-
setPackages
public void setPackages(Collection<String> packages)
An array of
Package
objects that describe the layer's packages.- Parameters:
packages
- An array ofPackage
objects that describe the layer's packages.
-
withPackages
public Layer withPackages(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)
orwithPackages(java.util.Collection)
if you want to override the existing values.- Parameters:
packages
- An array ofPackage
objects that describe the layer's packages.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withPackages
public Layer withPackages(Collection<String> packages)
An array of
Package
objects that describe the layer's packages.- Parameters:
packages
- An array ofPackage
objects that describe the layer's packages.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getVolumeConfigurations
public List<VolumeConfiguration> getVolumeConfigurations()
A
VolumeConfigurations
object that describes the layer's Amazon EBS volumes.- Returns:
- A
VolumeConfigurations
object that describes the layer's Amazon EBS volumes.
-
setVolumeConfigurations
public void setVolumeConfigurations(Collection<VolumeConfiguration> volumeConfigurations)
A
VolumeConfigurations
object that describes the layer's Amazon EBS volumes.- Parameters:
volumeConfigurations
- AVolumeConfigurations
object that describes the layer's Amazon EBS volumes.
-
withVolumeConfigurations
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)
orwithVolumeConfigurations(java.util.Collection)
if you want to override the existing values.- Parameters:
volumeConfigurations
- AVolumeConfigurations
object that describes the layer's Amazon EBS volumes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withVolumeConfigurations
public Layer withVolumeConfigurations(Collection<VolumeConfiguration> volumeConfigurations)
A
VolumeConfigurations
object that describes the layer's Amazon EBS volumes.- Parameters:
volumeConfigurations
- AVolumeConfigurations
object that describes the layer's Amazon EBS volumes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setEnableAutoHealing
public void setEnableAutoHealing(Boolean enableAutoHealing)
Whether auto healing is disabled for the layer.
- Parameters:
enableAutoHealing
- Whether auto healing is disabled for the layer.
-
getEnableAutoHealing
public Boolean getEnableAutoHealing()
Whether auto healing is disabled for the layer.
- Returns:
- Whether auto healing is disabled for the layer.
-
withEnableAutoHealing
public Layer withEnableAutoHealing(Boolean enableAutoHealing)
Whether auto healing is disabled for the layer.
- Parameters:
enableAutoHealing
- Whether auto healing is disabled for the layer.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isEnableAutoHealing
public Boolean isEnableAutoHealing()
Whether auto healing is disabled for the layer.
- Returns:
- Whether auto healing is disabled for the layer.
-
setAutoAssignElasticIps
public void setAutoAssignElasticIps(Boolean autoAssignElasticIps)
Whether to automatically assign an Elastic IP address to the layer's instances. For more information, see How to Edit a Layer.
- Parameters:
autoAssignElasticIps
- Whether to automatically assign an Elastic IP address to the layer's instances. For more information, see How to Edit a Layer.
-
getAutoAssignElasticIps
public Boolean getAutoAssignElasticIps()
Whether to automatically assign an Elastic IP address to the layer's instances. For more information, see How to Edit a Layer.
- Returns:
- Whether to automatically assign an Elastic IP address to the layer's instances. For more information, see How to Edit a Layer.
-
withAutoAssignElasticIps
public Layer withAutoAssignElasticIps(Boolean autoAssignElasticIps)
Whether to automatically assign an Elastic IP address to the layer's instances. For more information, see How to Edit a Layer.
- Parameters:
autoAssignElasticIps
- Whether to automatically assign an Elastic IP address to the layer's instances. For more information, see How to Edit a Layer.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isAutoAssignElasticIps
public Boolean isAutoAssignElasticIps()
Whether to automatically assign an Elastic IP address to the layer's instances. For more information, see How to Edit a Layer.
- Returns:
- Whether to automatically assign an Elastic IP address to the layer's instances. For more information, see How to Edit a Layer.
-
setAutoAssignPublicIps
public void setAutoAssignPublicIps(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.
- Parameters:
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.
-
getAutoAssignPublicIps
public 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.
- Returns:
- 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.
-
withAutoAssignPublicIps
public Layer withAutoAssignPublicIps(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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isAutoAssignPublicIps
public 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.
- Returns:
- 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.
-
setDefaultRecipes
public void setDefaultRecipes(Recipes defaultRecipes)
- Parameters:
defaultRecipes
-
-
getDefaultRecipes
public Recipes getDefaultRecipes()
- Returns:
-
withDefaultRecipes
public Layer withDefaultRecipes(Recipes defaultRecipes)
- Parameters:
defaultRecipes
-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setCustomRecipes
public void setCustomRecipes(Recipes customRecipes)
A
LayerCustomRecipes
object that specifies the layer's custom recipes.- Parameters:
customRecipes
- ALayerCustomRecipes
object that specifies the layer's custom recipes.
-
getCustomRecipes
public Recipes getCustomRecipes()
A
LayerCustomRecipes
object that specifies the layer's custom recipes.- Returns:
- A
LayerCustomRecipes
object that specifies the layer's custom recipes.
-
withCustomRecipes
public Layer withCustomRecipes(Recipes customRecipes)
A
LayerCustomRecipes
object that specifies the layer's custom recipes.- Parameters:
customRecipes
- ALayerCustomRecipes
object that specifies the layer's custom recipes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setCreatedAt
public void setCreatedAt(String createdAt)
Date when the layer was created.
- Parameters:
createdAt
- Date when the layer was created.
-
getCreatedAt
public String getCreatedAt()
Date when the layer was created.
- Returns:
- Date when the layer was created.
-
withCreatedAt
public Layer withCreatedAt(String createdAt)
Date when the layer was created.
- Parameters:
createdAt
- Date when the layer was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setInstallUpdatesOnBoot
public void setInstallUpdatesOnBoot(Boolean installUpdatesOnBoot)
Whether to install operating system and package updates when the instance boots. The default value is
true
. If this value is set tofalse
, you must then update your instances manually by using CreateDeployment to run theupdate_dependencies
stack command or manually runningyum
(Amazon Linux) orapt-get
(Ubuntu) on the instances.We strongly recommend using the default value of
true
, to ensure that your instances have the latest security updates.- Parameters:
installUpdatesOnBoot
- Whether to install operating system and package updates when the instance boots. The default value istrue
. If this value is set tofalse
, you must then update your instances manually by using CreateDeployment to run theupdate_dependencies
stack command or manually runningyum
(Amazon Linux) orapt-get
(Ubuntu) on the instances.We strongly recommend using the default value of
true
, to ensure that your instances have the latest security updates.
-
getInstallUpdatesOnBoot
public Boolean getInstallUpdatesOnBoot()
Whether to install operating system and package updates when the instance boots. The default value is
true
. If this value is set tofalse
, you must then update your instances manually by using CreateDeployment to run theupdate_dependencies
stack command or manually runningyum
(Amazon Linux) orapt-get
(Ubuntu) on the instances.We strongly recommend using the default value of
true
, to ensure that your instances have the latest security updates.- Returns:
- Whether to install operating system and package updates when the
instance boots. The default value is
true
. If this value is set tofalse
, you must then update your instances manually by using CreateDeployment to run theupdate_dependencies
stack command or manually runningyum
(Amazon Linux) orapt-get
(Ubuntu) on the instances.We strongly recommend using the default value of
true
, to ensure that your instances have the latest security updates.
-
withInstallUpdatesOnBoot
public Layer withInstallUpdatesOnBoot(Boolean installUpdatesOnBoot)
Whether to install operating system and package updates when the instance boots. The default value is
true
. If this value is set tofalse
, you must then update your instances manually by using CreateDeployment to run theupdate_dependencies
stack command or manually runningyum
(Amazon Linux) orapt-get
(Ubuntu) on the instances.We strongly recommend using the default value of
true
, to ensure that your instances have the latest security updates.- Parameters:
installUpdatesOnBoot
- Whether to install operating system and package updates when the instance boots. The default value istrue
. If this value is set tofalse
, you must then update your instances manually by using CreateDeployment to run theupdate_dependencies
stack command or manually runningyum
(Amazon Linux) orapt-get
(Ubuntu) on the instances.We strongly recommend using the default value of
true
, to ensure that your instances have the latest security updates.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isInstallUpdatesOnBoot
public Boolean isInstallUpdatesOnBoot()
Whether to install operating system and package updates when the instance boots. The default value is
true
. If this value is set tofalse
, you must then update your instances manually by using CreateDeployment to run theupdate_dependencies
stack command or manually runningyum
(Amazon Linux) orapt-get
(Ubuntu) on the instances.We strongly recommend using the default value of
true
, to ensure that your instances have the latest security updates.- Returns:
- Whether to install operating system and package updates when the
instance boots. The default value is
true
. If this value is set tofalse
, you must then update your instances manually by using CreateDeployment to run theupdate_dependencies
stack command or manually runningyum
(Amazon Linux) orapt-get
(Ubuntu) on the instances.We strongly recommend using the default value of
true
, to ensure that your instances have the latest security updates.
-
setUseEbsOptimizedInstances
public void setUseEbsOptimizedInstances(Boolean useEbsOptimizedInstances)
Whether the layer uses Amazon EBS-optimized instances.
- Parameters:
useEbsOptimizedInstances
- Whether the layer uses Amazon EBS-optimized instances.
-
getUseEbsOptimizedInstances
public Boolean getUseEbsOptimizedInstances()
Whether the layer uses Amazon EBS-optimized instances.
- Returns:
- Whether the layer uses Amazon EBS-optimized instances.
-
withUseEbsOptimizedInstances
public Layer withUseEbsOptimizedInstances(Boolean useEbsOptimizedInstances)
Whether the layer uses Amazon EBS-optimized instances.
- Parameters:
useEbsOptimizedInstances
- Whether the layer uses Amazon EBS-optimized instances.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isUseEbsOptimizedInstances
public Boolean isUseEbsOptimizedInstances()
Whether the layer uses Amazon EBS-optimized instances.
- Returns:
- Whether the layer uses Amazon EBS-optimized instances.
-
setLifecycleEventConfiguration
public void setLifecycleEventConfiguration(LifecycleEventConfiguration lifecycleEventConfiguration)
A
LifeCycleEventConfiguration
object that specifies the Shutdown event configuration.- Parameters:
lifecycleEventConfiguration
- ALifeCycleEventConfiguration
object that specifies the Shutdown event configuration.
-
getLifecycleEventConfiguration
public LifecycleEventConfiguration getLifecycleEventConfiguration()
A
LifeCycleEventConfiguration
object that specifies the Shutdown event configuration.- Returns:
- A
LifeCycleEventConfiguration
object that specifies the Shutdown event configuration.
-
withLifecycleEventConfiguration
public Layer withLifecycleEventConfiguration(LifecycleEventConfiguration lifecycleEventConfiguration)
A
LifeCycleEventConfiguration
object that specifies the Shutdown event configuration.- Parameters:
lifecycleEventConfiguration
- ALifeCycleEventConfiguration
object that specifies the Shutdown event configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-