|
Did this page help you?Yes No Tell us about it... |
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Objectcom.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.opsworks.model.CreateLayerRequest
public class CreateLayerRequest
Container for the parameters to the 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.
AWSOpsWorks.createLayer(CreateLayerRequest),
Serialized Form| Constructor Summary | |
|---|---|
CreateLayerRequest()
|
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
Map<String,String> |
getAttributes()
One or more user-defined key/value pairs to be added to the stack attributes bag. |
Boolean |
getAutoAssignElasticIps()
Whether to automatically assign an Elastic IP address to the layer. |
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. |
List<String> |
getCustomSecurityGroupIds()
An array containing the layer custom security group IDs. |
Boolean |
getEnableAutoHealing()
Whether to disable auto healing for the layer. |
String |
getName()
The layer name, which is used by the console. |
List<String> |
getPackages()
An array of Package objects that describe the layer
packages. |
String |
getShortname()
The layer short name, which is used internally by OpsWorks and by Chef recipes. |
String |
getStackId()
The layer stack ID. |
String |
getType()
The layer type. |
List<VolumeConfiguration> |
getVolumeConfigurations()
A VolumeConfigurations object that describes the layer
Amazon EBS volumes. |
int |
hashCode()
|
Boolean |
isAutoAssignElasticIps()
Whether to automatically assign an Elastic IP address to the layer. |
Boolean |
isEnableAutoHealing()
Whether to disable auto healing for the layer. |
void |
setAttributes(Map<String,String> attributes)
One or more user-defined key/value pairs to be added to the stack attributes bag. |
void |
setAutoAssignElasticIps(Boolean autoAssignElasticIps)
Whether to automatically assign an Elastic IP address to the layer. |
void |
setCustomInstanceProfileArn(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(Collection<String> customSecurityGroupIds)
An array containing the layer custom security group IDs. |
void |
setEnableAutoHealing(Boolean enableAutoHealing)
Whether to disable auto healing for the layer. |
void |
setName(String name)
The layer name, which is used by the console. |
void |
setPackages(Collection<String> packages)
An array of Package objects that describe the layer
packages. |
void |
setShortname(String shortname)
The layer short name, which is used internally by OpsWorks and by Chef recipes. |
void |
setStackId(String stackId)
The layer stack ID. |
void |
setType(LayerType type)
The layer type. |
void |
setType(String type)
The layer type. |
void |
setVolumeConfigurations(Collection<VolumeConfiguration> volumeConfigurations)
A VolumeConfigurations object that describes the layer
Amazon EBS volumes. |
String |
toString()
Returns a string representation of this object; useful for testing and debugging. |
CreateLayerRequest |
withAttributes(Map<String,String> attributes)
One or more user-defined key/value pairs to be added to the stack attributes bag. |
CreateLayerRequest |
withAutoAssignElasticIps(Boolean autoAssignElasticIps)
Whether to automatically assign an Elastic IP address to the layer. |
CreateLayerRequest |
withCustomInstanceProfileArn(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(Collection<String> customSecurityGroupIds)
An array containing the layer custom security group IDs. |
CreateLayerRequest |
withCustomSecurityGroupIds(String... customSecurityGroupIds)
An array containing the layer custom security group IDs. |
CreateLayerRequest |
withEnableAutoHealing(Boolean enableAutoHealing)
Whether to disable auto healing for the layer. |
CreateLayerRequest |
withName(String name)
The layer name, which is used by the console. |
CreateLayerRequest |
withPackages(Collection<String> packages)
An array of Package objects that describe the layer
packages. |
CreateLayerRequest |
withPackages(String... packages)
An array of Package objects that describe the layer
packages. |
CreateLayerRequest |
withShortname(String shortname)
The layer short name, which is used internally by OpsWorks and by Chef recipes. |
CreateLayerRequest |
withStackId(String stackId)
The layer stack ID. |
CreateLayerRequest |
withType(LayerType type)
The layer type. |
CreateLayerRequest |
withType(String type)
The layer type. |
CreateLayerRequest |
withVolumeConfigurations(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. |
| Methods inherited from class com.amazonaws.AmazonWebServiceRequest |
|---|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CreateLayerRequest()
| Method Detail |
|---|
public String getStackId()
public void setStackId(String stackId)
stackId - The layer stack ID.public CreateLayerRequest withStackId(String stackId)
Returns a reference to this object so that method calls can be chained together.
stackId - The layer stack ID.
public String getType()
Constraints:
Allowed Values: lb, web, php-app, rails-app, nodejs-app, memcached, db-master, monitoring-master, custom
LayerTypepublic 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. 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(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 String getName()
public void setName(String name)
name - The layer name, which is used by the console.public CreateLayerRequest withName(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 String getShortname()
public void setShortname(String shortname)
shortname - The layer short name, which is used internally by OpsWorks and by Chef
recipes. The shortname 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(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 OpsWorks and by Chef
recipes. The shortname 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 Map<String,String> getAttributes()
public void setAttributes(Map<String,String> attributes)
attributes - One or more user-defined key/value pairs to be added to the stack
attributes bag.public CreateLayerRequest withAttributes(Map<String,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 String getCustomInstanceProfileArn()
public void setCustomInstanceProfileArn(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(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 List<String> getCustomSecurityGroupIds()
public void setCustomSecurityGroupIds(Collection<String> customSecurityGroupIds)
customSecurityGroupIds - An array containing the layer custom security group IDs.public CreateLayerRequest withCustomSecurityGroupIds(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(Collection<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 List<String> getPackages()
Package objects that describe the layer
packages.
Package objects that describe the layer
packages.public void setPackages(Collection<String> packages)
Package objects that describe the layer
packages.
packages - An array of Package objects that describe the layer
packages.public CreateLayerRequest withPackages(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(Collection<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 List<VolumeConfiguration> getVolumeConfigurations()
VolumeConfigurations object that describes the layer
Amazon EBS volumes.
VolumeConfigurations object that describes the layer
Amazon EBS volumes.public void setVolumeConfigurations(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(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 Boolean isEnableAutoHealing()
public void setEnableAutoHealing(Boolean enableAutoHealing)
enableAutoHealing - Whether to disable auto healing for the layer.public CreateLayerRequest withEnableAutoHealing(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 Boolean getEnableAutoHealing()
public Boolean isAutoAssignElasticIps()
public void setAutoAssignElasticIps(Boolean autoAssignElasticIps)
autoAssignElasticIps - Whether to automatically assign an Elastic
IP address to the layer.public CreateLayerRequest 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.
public 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 String toString()
toString in class ObjectObject.toString()public int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Object
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||