public class Layer extends Object implements Serializable
Describes a layer.
Constructor and Description |
---|
Layer() |
Modifier and Type | Method and Description |
---|---|
Layer |
addAttributesEntry(String key,
String value)
The layer attributes.
|
Layer |
clearAttributesEntries()
Removes all the entries added into Attributes.
|
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.
|
Recipes |
getCustomRecipes()
A
LayerCustomRecipes object that specifies the layer's
custom recipes. |
List<String> |
getCustomSecurityGroupIds()
An array containing the layer's custom security group IDs.
|
Recipes |
getDefaultRecipes()
AWS OpsWorks supports five lifecycle events, setup,
configuration, deploy, undeploy, and
shutdown.
|
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.
|
String |
getName()
The layer name.
|
List<String> |
getPackages()
An array of
Package objects that describe the layer's
packages. |
String |
getShortname()
The layer short name.
|
String |
getStackId()
The layer stack ID.
|
String |
getType()
The layer type, which must be one of the following:
Custom GangliaMonitoringMaster HaProxy
MemcachedServer MySqlMaster NodeJsAppServer
PhpAppServer RailsAppServer WebServer
|
List<VolumeConfiguration> |
getVolumeConfigurations()
A
VolumeConfigurations 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.
|
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 |
setCustomRecipes(Recipes customRecipes)
A
LayerCustomRecipes 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)
AWS OpsWorks supports five lifecycle events, setup,
configuration, deploy, undeploy, and
shutdown.
|
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 |
setName(String name)
The layer name.
|
void |
setPackages(Collection<String> packages)
An array of
Package 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, which must be one of the following:
Custom GangliaMonitoringMaster HaProxy
MemcachedServer MySqlMaster NodeJsAppServer
PhpAppServer RailsAppServer WebServer
|
void |
setType(String type)
The layer type, which must be one of the following:
Custom GangliaMonitoringMaster HaProxy
MemcachedServer MySqlMaster NodeJsAppServer
PhpAppServer RailsAppServer WebServer
|
void |
setVolumeConfigurations(Collection<VolumeConfiguration> volumeConfigurations)
A
VolumeConfigurations 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 |
withCustomRecipes(Recipes customRecipes)
A
LayerCustomRecipes object that specifies the layer's
custom recipes. |
Layer |
withCustomSecurityGroupIds(Collection<String> customSecurityGroupIds)
An array containing the layer's custom security group IDs.
|
Layer |
withCustomSecurityGroupIds(String... customSecurityGroupIds)
An array containing the layer's custom security group IDs.
|
Layer |
withDefaultRecipes(Recipes defaultRecipes)
AWS OpsWorks supports five lifecycle events, setup,
configuration, deploy, undeploy, and
shutdown.
|
Layer |
withDefaultSecurityGroupNames(Collection<String> defaultSecurityGroupNames)
An array containing the layer's security group names.
|
Layer |
withDefaultSecurityGroupNames(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 |
withName(String name)
The layer name.
|
Layer |
withPackages(Collection<String> packages)
An array of
Package objects that describe the layer's
packages. |
Layer |
withPackages(String... packages)
An array of
Package 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, which must be one of the following:
Custom GangliaMonitoringMaster HaProxy
MemcachedServer MySqlMaster NodeJsAppServer
PhpAppServer RailsAppServer WebServer
|
Layer |
withType(String type)
The layer type, which must be one of the following:
Custom GangliaMonitoringMaster HaProxy
MemcachedServer MySqlMaster NodeJsAppServer
PhpAppServer RailsAppServer WebServer
|
Layer |
withVolumeConfigurations(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. |
public String getStackId()
public void setStackId(String stackId)
stackId
- The layer stack ID.public Layer withStackId(String stackId)
Returns a reference to this object so that method calls can be chained together.
stackId
- The layer stack ID.public String getLayerId()
public void setLayerId(String layerId)
layerId
- The layer ID.public Layer withLayerId(String layerId)
Returns a reference to this object so that method calls can be chained together.
layerId
- The layer ID.public String getType()
Constraints:
Allowed Values: lb, web, php-app, rails-app, nodejs-app, memcached, db-master, monitoring-master, custom
LayerType
public void setType(String type)
Constraints:
Allowed Values: lb, web, php-app, rails-app, nodejs-app, memcached, db-master, monitoring-master, custom
type
- The layer type, which must be one of the following: LayerType
public Layer withType(String type)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: lb, web, php-app, rails-app, nodejs-app, memcached, db-master, monitoring-master, custom
type
- The layer type, which must be one of the following: LayerType
public void setType(LayerType type)
Constraints:
Allowed Values: lb, web, php-app, rails-app, nodejs-app, memcached, db-master, monitoring-master, custom
type
- The layer type, which must be one of the following: LayerType
public Layer withType(LayerType type)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: lb, web, php-app, rails-app, nodejs-app, memcached, db-master, monitoring-master, custom
type
- The layer type, which must be one of the following: LayerType
public String getName()
public void setName(String name)
name
- The layer name.public Layer withName(String name)
Returns a reference to this object so that method calls can be chained together.
name
- The layer name.public String getShortname()
public void setShortname(String shortname)
shortname
- The layer short name.public Layer withShortname(String shortname)
Returns a reference to this object so that method calls can be chained together.
shortname
- The layer short name.public Map<String,String> getAttributes()
public void setAttributes(Map<String,String> attributes)
attributes
- The layer attributes.public Layer withAttributes(Map<String,String> attributes)
Returns a reference to this object so that method calls can be chained together.
attributes
- The layer attributes.public Layer addAttributesEntry(String key, String value)
The method adds a new key-value pair into Attributes parameter, and returns a reference to this object so that method calls can be chained together.
key
- The key of the entry to be added into Attributes.value
- The corresponding value of the entry to be added into Attributes.public Layer clearAttributesEntries()
Returns a reference to this object so that method calls can be chained together.
public String getCustomInstanceProfileArn()
public void setCustomInstanceProfileArn(String customInstanceProfileArn)
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 Layer withCustomInstanceProfileArn(String customInstanceProfileArn)
Returns a reference to this object so that method calls can be chained together.
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 List<String> getCustomSecurityGroupIds()
public void setCustomSecurityGroupIds(Collection<String> customSecurityGroupIds)
customSecurityGroupIds
- An array containing the layer's custom security group IDs.public Layer withCustomSecurityGroupIds(String... customSecurityGroupIds)
Returns a reference to this object so that method calls can be chained together.
customSecurityGroupIds
- An array containing the layer's custom security group IDs.public Layer withCustomSecurityGroupIds(Collection<String> customSecurityGroupIds)
Returns a reference to this object so that method calls can be chained together.
customSecurityGroupIds
- An array containing the layer's custom security group IDs.public List<String> getDefaultSecurityGroupNames()
public void setDefaultSecurityGroupNames(Collection<String> defaultSecurityGroupNames)
defaultSecurityGroupNames
- An array containing the layer's security group names.public Layer withDefaultSecurityGroupNames(String... defaultSecurityGroupNames)
Returns a reference to this object so that method calls can be chained together.
defaultSecurityGroupNames
- An array containing the layer's security group names.public Layer withDefaultSecurityGroupNames(Collection<String> defaultSecurityGroupNames)
Returns a reference to this object so that method calls can be chained together.
defaultSecurityGroupNames
- An array containing the layer's security group names.public List<String> getPackages()
Package
objects that describe the layer's
packages.Package
objects that describe the layer's
packages.public void setPackages(Collection<String> packages)
Package
objects that describe the layer's
packages.packages
- An array of Package
objects that describe the layer's
packages.public Layer withPackages(String... packages)
Package
objects that describe the layer's
packages.
Returns a reference to this object so that method calls can be chained together.
packages
- An array of Package
objects that describe the layer's
packages.public Layer withPackages(Collection<String> packages)
Package
objects that describe the layer's
packages.
Returns a reference to this object so that method calls can be chained together.
packages
- An array of Package
objects that describe the layer's
packages.public List<VolumeConfiguration> getVolumeConfigurations()
VolumeConfigurations
object that describes the layer's
Amazon EBS volumes.VolumeConfigurations
object that describes the layer's
Amazon EBS volumes.public void setVolumeConfigurations(Collection<VolumeConfiguration> volumeConfigurations)
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)
VolumeConfigurations
object that describes the layer's
Amazon EBS volumes.
Returns a reference to this object so that method calls can be chained together.
volumeConfigurations
- A VolumeConfigurations
object that describes the layer's
Amazon EBS volumes.public Layer withVolumeConfigurations(Collection<VolumeConfiguration> volumeConfigurations)
VolumeConfigurations
object that describes the layer's
Amazon EBS volumes.
Returns a reference to this object so that method calls can be chained together.
volumeConfigurations
- A VolumeConfigurations
object that describes the layer's
Amazon EBS volumes.public Boolean isEnableAutoHealing()
public void setEnableAutoHealing(Boolean enableAutoHealing)
enableAutoHealing
- Whether auto healing is disabled for the layer.public Layer withEnableAutoHealing(Boolean enableAutoHealing)
Returns a reference to this object so that method calls can be chained together.
enableAutoHealing
- Whether auto healing is disabled for the layer.public Boolean getEnableAutoHealing()
public Boolean isAutoAssignElasticIps()
public void setAutoAssignElasticIps(Boolean autoAssignElasticIps)
autoAssignElasticIps
- 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(Boolean autoAssignElasticIps)
Returns a reference to this object so that method calls can be chained together.
autoAssignElasticIps
- Whether to automatically assign an Elastic
IP address to the layer's instances. For more information, see How
to Edit a Layer.public Boolean getAutoAssignElasticIps()
public Boolean isAutoAssignPublicIps()
public void setAutoAssignPublicIps(Boolean autoAssignPublicIps)
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 Layer withAutoAssignPublicIps(Boolean autoAssignPublicIps)
Returns a reference to this object so that method calls can be chained together.
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 Boolean getAutoAssignPublicIps()
public Recipes getDefaultRecipes()
LayerCustomRecipes
specifies the custom recipes for a particular layer to be run in
response to each of the five events. To specify a recipe, use the cookbook's directory name in the repository followed by two colons and the recipe name, which is the recipe's file name without the .rb extension. For example: phpapp2::dbsetup specifies the dbsetup.rb recipe in the repository's phpapp2 folder.
LayerCustomRecipes
specifies the custom recipes for a particular layer to be run in
response to each of the five events. To specify a recipe, use the cookbook's directory name in the repository followed by two colons and the recipe name, which is the recipe's file name without the .rb extension. For example: phpapp2::dbsetup specifies the dbsetup.rb recipe in the repository's phpapp2 folder.
public void setDefaultRecipes(Recipes defaultRecipes)
LayerCustomRecipes
specifies the custom recipes for a particular layer to be run in
response to each of the five events. To specify a recipe, use the cookbook's directory name in the repository followed by two colons and the recipe name, which is the recipe's file name without the .rb extension. For example: phpapp2::dbsetup specifies the dbsetup.rb recipe in the repository's phpapp2 folder.
defaultRecipes
- AWS OpsWorks supports five lifecycle events, setup,
configuration, deploy, undeploy, and
shutdown. For each layer, AWS OpsWorks runs a set of standard
recipes for each event. In addition, you can provide custom recipes
for any or all layers and events. AWS OpsWorks runs custom event
recipes after the standard recipes. LayerCustomRecipes
specifies the custom recipes for a particular layer to be run in
response to each of the five events. To specify a recipe, use the cookbook's directory name in the repository followed by two colons and the recipe name, which is the recipe's file name without the .rb extension. For example: phpapp2::dbsetup specifies the dbsetup.rb recipe in the repository's phpapp2 folder.
public Layer withDefaultRecipes(Recipes defaultRecipes)
LayerCustomRecipes
specifies the custom recipes for a particular layer to be run in
response to each of the five events. To specify a recipe, use the cookbook's directory name in the repository followed by two colons and the recipe name, which is the recipe's file name without the .rb extension. For example: phpapp2::dbsetup specifies the dbsetup.rb recipe in the repository's phpapp2 folder.
Returns a reference to this object so that method calls can be chained together.
defaultRecipes
- AWS OpsWorks supports five lifecycle events, setup,
configuration, deploy, undeploy, and
shutdown. For each layer, AWS OpsWorks runs a set of standard
recipes for each event. In addition, you can provide custom recipes
for any or all layers and events. AWS OpsWorks runs custom event
recipes after the standard recipes. LayerCustomRecipes
specifies the custom recipes for a particular layer to be run in
response to each of the five events. To specify a recipe, use the cookbook's directory name in the repository followed by two colons and the recipe name, which is the recipe's file name without the .rb extension. For example: phpapp2::dbsetup specifies the dbsetup.rb recipe in the repository's phpapp2 folder.
public Recipes getCustomRecipes()
LayerCustomRecipes
object that specifies the layer's
custom recipes.LayerCustomRecipes
object that specifies the layer's
custom recipes.public void setCustomRecipes(Recipes customRecipes)
LayerCustomRecipes
object that specifies the layer's
custom recipes.customRecipes
- A LayerCustomRecipes
object that specifies the layer's
custom recipes.public Layer withCustomRecipes(Recipes customRecipes)
LayerCustomRecipes
object that specifies the layer's
custom recipes.
Returns a reference to this object so that method calls can be chained together.
customRecipes
- A LayerCustomRecipes
object that specifies the layer's
custom recipes.public String getCreatedAt()
public void setCreatedAt(String createdAt)
createdAt
- Date when the layer was created.public Layer withCreatedAt(String createdAt)
Returns a reference to this object so that method calls can be chained together.
createdAt
- Date when the layer was created.public Boolean isInstallUpdatesOnBoot()
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. 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. true
, to ensure that your instances have the latest
security updates.public void setInstallUpdatesOnBoot(Boolean installUpdatesOnBoot)
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. 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. true
, to ensure that your instances have the latest
security updates.public Layer withInstallUpdatesOnBoot(Boolean installUpdatesOnBoot)
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. true
, to ensure that your instances have the latest
security updates.Returns a reference to this object so that method calls can be chained together.
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. true
, to ensure that your instances have the latest
security updates.public Boolean getInstallUpdatesOnBoot()
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. 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. true
, to ensure that your instances have the latest
security updates.public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.