public class CreateLayerRequest extends AmazonWebServiceRequest implements java.io.Serializable
CreateLayer operation.
Creates a layer. For more information, see How to Create a Layer .
NOTE:You should use CreateLayer for non-custom layer types such as PHP App Server only if the stack does not have an existing layer of that type. A stack can have at most one instance of each non-custom layer; if you attempt to create a second instance, CreateLayer fails. A stack can have an arbitrary number of custom layers, so you can call CreateLayer as many times as you like for that layer type.
| コンストラクタと説明 |
|---|
CreateLayerRequest() |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
CreateLayerRequest |
addAttributesEntry(java.lang.String key,
java.lang.String value)
One or more user-defined key/value pairs to be added to the stack
attributes bag.
|
CreateLayerRequest |
clearAttributesEntries()
Removes all the entries added into Attributes.
|
boolean |
equals(java.lang.Object obj) |
java.util.Map<java.lang.String,java.lang.String> |
getAttributes()
One or more user-defined key/value pairs to be added to the stack
attributes bag.
|
java.lang.Boolean |
getAutoAssignElasticIps()
Whether to automatically assign an Elastic
IP address to the layer.
|
java.lang.String |
getCustomInstanceProfileArn()
The ARN of an IAM profile that to be used for the layer's EC2
instances.
|
Recipes |
getCustomRecipes()
A
LayerCustomRecipes object that specifies the layer
custom recipes. |
java.util.List<java.lang.String> |
getCustomSecurityGroupIds()
An array containing the layer custom security group IDs.
|
java.lang.Boolean |
getEnableAutoHealing()
Whether to disable auto healing for the layer.
|
java.lang.Boolean |
getInstallUpdatesOnBoot()
Whether to install operating system and package updates when the
instance boots.
|
java.lang.String |
getName()
The layer name, which is used by the console.
|
java.util.List<java.lang.String> |
getPackages()
An array of
Package objects that describe the layer
packages. |
java.lang.String |
getShortname()
The layer short name, which is used internally by AWS OpsWorks and by
Chef recipes.
|
java.lang.String |
getStackId()
The layer stack ID.
|
java.lang.String |
getType()
The layer type.
|
java.util.List<VolumeConfiguration> |
getVolumeConfigurations()
A
VolumeConfigurations object that describes the layer
Amazon EBS volumes. |
int |
hashCode() |
java.lang.Boolean |
isAutoAssignElasticIps()
Whether to automatically assign an Elastic
IP address to the layer.
|
java.lang.Boolean |
isEnableAutoHealing()
Whether to disable auto healing for the layer.
|
java.lang.Boolean |
isInstallUpdatesOnBoot()
Whether to install operating system and package updates when the
instance boots.
|
void |
setAttributes(java.util.Map<java.lang.String,java.lang.String> attributes)
One or more user-defined key/value pairs to be added to the stack
attributes bag.
|
void |
setAutoAssignElasticIps(java.lang.Boolean autoAssignElasticIps)
Whether to automatically assign an Elastic
IP address to the layer.
|
void |
setCustomInstanceProfileArn(java.lang.String customInstanceProfileArn)
The ARN of an IAM profile that to be used for the layer's EC2
instances.
|
void |
setCustomRecipes(Recipes customRecipes)
A
LayerCustomRecipes object that specifies the layer
custom recipes. |
void |
setCustomSecurityGroupIds(java.util.Collection<java.lang.String> customSecurityGroupIds)
An array containing the layer custom security group IDs.
|
void |
setEnableAutoHealing(java.lang.Boolean enableAutoHealing)
Whether to disable auto healing for the layer.
|
void |
setInstallUpdatesOnBoot(java.lang.Boolean installUpdatesOnBoot)
Whether to install operating system and package updates when the
instance boots.
|
void |
setName(java.lang.String name)
The layer name, which is used by the console.
|
void |
setPackages(java.util.Collection<java.lang.String> packages)
An array of
Package objects that describe the layer
packages. |
void |
setShortname(java.lang.String shortname)
The layer short name, which is used internally by AWS OpsWorks and by
Chef recipes.
|
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 |
setVolumeConfigurations(java.util.Collection<VolumeConfiguration> volumeConfigurations)
A
VolumeConfigurations object that describes the layer
Amazon EBS volumes. |
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreateLayerRequest |
withAttributes(java.util.Map<java.lang.String,java.lang.String> attributes)
One or more user-defined key/value pairs to be added to the stack
attributes bag.
|
CreateLayerRequest |
withAutoAssignElasticIps(java.lang.Boolean autoAssignElasticIps)
Whether to automatically assign an Elastic
IP address to the layer.
|
CreateLayerRequest |
withCustomInstanceProfileArn(java.lang.String customInstanceProfileArn)
The ARN of an IAM profile that to be used for the layer's EC2
instances.
|
CreateLayerRequest |
withCustomRecipes(Recipes customRecipes)
A
LayerCustomRecipes object that specifies the layer
custom recipes. |
CreateLayerRequest |
withCustomSecurityGroupIds(java.util.Collection<java.lang.String> customSecurityGroupIds)
An array containing the layer custom security group IDs.
|
CreateLayerRequest |
withCustomSecurityGroupIds(java.lang.String... customSecurityGroupIds)
An array containing the layer custom security group IDs.
|
CreateLayerRequest |
withEnableAutoHealing(java.lang.Boolean enableAutoHealing)
Whether to disable auto healing for the layer.
|
CreateLayerRequest |
withInstallUpdatesOnBoot(java.lang.Boolean installUpdatesOnBoot)
Whether to install operating system and package updates when the
instance boots.
|
CreateLayerRequest |
withName(java.lang.String name)
The layer name, which is used by the console.
|
CreateLayerRequest |
withPackages(java.util.Collection<java.lang.String> packages)
An array of
Package objects that describe the layer
packages. |
CreateLayerRequest |
withPackages(java.lang.String... packages)
An array of
Package objects that describe the layer
packages. |
CreateLayerRequest |
withShortname(java.lang.String shortname)
The layer short name, which is used internally by AWS OpsWorks and by
Chef recipes.
|
CreateLayerRequest |
withStackId(java.lang.String stackId)
The layer stack ID.
|
CreateLayerRequest |
withType(LayerType type)
The layer type.
|
CreateLayerRequest |
withType(java.lang.String type)
The layer type.
|
CreateLayerRequest |
withVolumeConfigurations(java.util.Collection<VolumeConfiguration> volumeConfigurations)
A
VolumeConfigurations object that describes the layer
Amazon EBS volumes. |
CreateLayerRequest |
withVolumeConfigurations(VolumeConfiguration... volumeConfigurations)
A
VolumeConfigurations object that describes the layer
Amazon EBS volumes. |
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentialspublic java.lang.String getStackId()
public void setStackId(java.lang.String stackId)
stackId - The layer stack ID.public CreateLayerRequest withStackId(java.lang.String stackId)
Returns a reference to this object so that method calls can be chained together.
stackId - The layer stack ID.public java.lang.String getType()
Constraints:
Allowed Values: lb, web, php-app, rails-app, nodejs-app, memcached, db-master, monitoring-master, custom
LayerTypepublic void setType(java.lang.String type)
Constraints:
Allowed Values: lb, web, php-app, rails-app, nodejs-app, memcached, db-master, monitoring-master, custom
type - The layer type. A stack cannot have more than one layer of the same
type. This parameter must be set to one of the following: LayerTypepublic CreateLayerRequest withType(java.lang.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. A stack cannot have more than one layer of the same
type. This parameter must be set to one of the following: LayerTypepublic 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. A stack cannot have more than one layer of the same
type. This parameter must be set to one of the following: LayerTypepublic CreateLayerRequest 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. A stack cannot have more than one layer of the same
type. This parameter must be set to one of the following: LayerTypepublic java.lang.String getName()
public void setName(java.lang.String name)
name - The layer name, which is used by the console.public CreateLayerRequest withName(java.lang.String name)
Returns a reference to this object so that method calls can be chained together.
name - The layer name, which is used by the console.public java.lang.String getShortname()
public void setShortname(java.lang.String shortname)
shortname - The layer short name, which is used internally by AWS OpsWorks and by
Chef recipes. The short name is also used as the name for the
directory where your app files are installed. It can have a maximum of
200 characters, which are limited to the alphanumeric characters, '-',
'_', and '.'.public CreateLayerRequest withShortname(java.lang.String shortname)
Returns a reference to this object so that method calls can be chained together.
shortname - The layer short name, which is used internally by AWS OpsWorks and by
Chef recipes. The short name is also used as the name for the
directory where your app files are installed. It can have a maximum of
200 characters, which are limited to the alphanumeric characters, '-',
'_', and '.'.public java.util.Map<java.lang.String,java.lang.String> getAttributes()
public void setAttributes(java.util.Map<java.lang.String,java.lang.String> attributes)
attributes - One or more user-defined key/value pairs to be added to the stack
attributes bag.public CreateLayerRequest withAttributes(java.util.Map<java.lang.String,java.lang.String> attributes)
Returns a reference to this object so that method calls can be chained together.
attributes - One or more user-defined key/value pairs to be added to the stack
attributes bag.public CreateLayerRequest addAttributesEntry(java.lang.String key, java.lang.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 CreateLayerRequest clearAttributesEntries()
Returns a reference to this object so that method calls can be chained together.
public java.lang.String getCustomInstanceProfileArn()
public void setCustomInstanceProfileArn(java.lang.String customInstanceProfileArn)
customInstanceProfileArn - The ARN of an IAM profile that to be used for the layer's EC2
instances. For more information about IAM ARNs, see Using
Identifiers.public CreateLayerRequest withCustomInstanceProfileArn(java.lang.String customInstanceProfileArn)
Returns a reference to this object so that method calls can be chained together.
customInstanceProfileArn - The ARN of an IAM profile that to be used for the layer's EC2
instances. For more information about IAM ARNs, see Using
Identifiers.public java.util.List<java.lang.String> getCustomSecurityGroupIds()
public void setCustomSecurityGroupIds(java.util.Collection<java.lang.String> customSecurityGroupIds)
customSecurityGroupIds - An array containing the layer custom security group IDs.public CreateLayerRequest withCustomSecurityGroupIds(java.lang.String... customSecurityGroupIds)
Returns a reference to this object so that method calls can be chained together.
customSecurityGroupIds - An array containing the layer custom security group IDs.public CreateLayerRequest withCustomSecurityGroupIds(java.util.Collection<java.lang.String> customSecurityGroupIds)
Returns a reference to this object so that method calls can be chained together.
customSecurityGroupIds - An array containing the layer custom security group IDs.public java.util.List<java.lang.String> getPackages()
Package objects that describe the layer
packages.Package objects that describe the layer
packages.public void setPackages(java.util.Collection<java.lang.String> packages)
Package objects that describe the layer
packages.packages - An array of Package objects that describe the layer
packages.public CreateLayerRequest withPackages(java.lang.String... packages)
Package objects that describe the layer
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
packages.public CreateLayerRequest withPackages(java.util.Collection<java.lang.String> packages)
Package objects that describe the layer
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
packages.public java.util.List<VolumeConfiguration> getVolumeConfigurations()
VolumeConfigurations object that describes the layer
Amazon EBS volumes.VolumeConfigurations object that describes the layer
Amazon EBS volumes.public void setVolumeConfigurations(java.util.Collection<VolumeConfiguration> volumeConfigurations)
VolumeConfigurations object that describes the layer
Amazon EBS volumes.volumeConfigurations - A VolumeConfigurations object that describes the layer
Amazon EBS volumes.public CreateLayerRequest withVolumeConfigurations(VolumeConfiguration... volumeConfigurations)
VolumeConfigurations object that describes the layer
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
Amazon EBS volumes.public CreateLayerRequest withVolumeConfigurations(java.util.Collection<VolumeConfiguration> volumeConfigurations)
VolumeConfigurations object that describes the layer
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
Amazon EBS volumes.public java.lang.Boolean isEnableAutoHealing()
public void setEnableAutoHealing(java.lang.Boolean enableAutoHealing)
enableAutoHealing - Whether to disable auto healing for the layer.public CreateLayerRequest withEnableAutoHealing(java.lang.Boolean enableAutoHealing)
Returns a reference to this object so that method calls can be chained together.
enableAutoHealing - Whether to disable auto healing for the layer.public java.lang.Boolean getEnableAutoHealing()
public java.lang.Boolean isAutoAssignElasticIps()
public void setAutoAssignElasticIps(java.lang.Boolean autoAssignElasticIps)
autoAssignElasticIps - Whether to automatically assign an Elastic
IP address to the layer.public CreateLayerRequest withAutoAssignElasticIps(java.lang.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.public java.lang.Boolean getAutoAssignElasticIps()
public Recipes getCustomRecipes()
LayerCustomRecipes object that specifies the layer
custom recipes.LayerCustomRecipes object that specifies the layer
custom recipes.public void setCustomRecipes(Recipes customRecipes)
LayerCustomRecipes object that specifies the layer
custom recipes.customRecipes - A LayerCustomRecipes object that specifies the layer
custom recipes.public CreateLayerRequest withCustomRecipes(Recipes customRecipes)
LayerCustomRecipes object that specifies the layer
custom recipes.
Returns a reference to this object so that method calls can be chained together.
customRecipes - A LayerCustomRecipes object that specifies the layer
custom recipes.public java.lang.Boolean isInstallUpdatesOnBoot()
true. To control
when updates are installed, set this value to false. You
must then update your instances manually by using
CreateDeployment to run the update_dependencies
stack command or manually running yum (Amazon Linux) or
apt-get (Ubuntu) on the instances. true, to ensure that
your instances have the latest security updates.true. To control
when updates are installed, set this value to false. You
must then update your instances manually by using
CreateDeployment to run the update_dependencies
stack command or 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(java.lang.Boolean installUpdatesOnBoot)
true. To control
when updates are installed, set this value to false. You
must then update your instances manually by using
CreateDeployment to run the update_dependencies
stack command or 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. To control
when updates are installed, set this value to false. You
must then update your instances manually by using
CreateDeployment to run the update_dependencies
stack command or manually running yum (Amazon Linux) or
apt-get (Ubuntu) on the instances. true, to ensure that
your instances have the latest security updates.public CreateLayerRequest withInstallUpdatesOnBoot(java.lang.Boolean installUpdatesOnBoot)
true. To control
when updates are installed, set this value to false. You
must then update your instances manually by using
CreateDeployment to run the update_dependencies
stack command or 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. To control
when updates are installed, set this value to false. You
must then update your instances manually by using
CreateDeployment to run the update_dependencies
stack command or manually running yum (Amazon Linux) or
apt-get (Ubuntu) on the instances. true, to ensure that
your instances have the latest security updates.public java.lang.Boolean getInstallUpdatesOnBoot()
true. To control
when updates are installed, set this value to false. You
must then update your instances manually by using
CreateDeployment to run the update_dependencies
stack command or manually running yum (Amazon Linux) or
apt-get (Ubuntu) on the instances. true, to ensure that
your instances have the latest security updates.true. To control
when updates are installed, set this value to false. You
must then update your instances manually by using
CreateDeployment to run the update_dependencies
stack command or manually running yum (Amazon Linux) or
apt-get (Ubuntu) on the instances. true, to ensure that
your instances have the latest security updates.public java.lang.String toString()
toString クラス内 java.lang.ObjectObject.toString()public int hashCode()
hashCode クラス内 java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals クラス内 java.lang.Object