Note: |
---|
You should use CreateLayer for noncustom 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 noncustom 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. |
Required Permissions: To use this action, an IAM user must have a Manage permissions level for the stack, or an attached policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions.
C# |
public class CreateLayerRequest : AmazonWebServiceRequest
All Members | Constructors | Methods | Properties | ||
Icon | Member | Description | ||
---|---|---|---|---|
CreateLayerRequest()()()() | Initializes a new instance of the CreateLayerRequest class | |||
Attributes |
Gets and sets the property Attributes.
One or more user-defined key/value pairs to be added to the stack attributes. | |||
AutoAssignElasticIps |
Gets and sets the property AutoAssignElasticIps.
Whether to automatically assign an Elastic IP address to the layer's instances. For more information, see How to Edit a Layer. | |||
AutoAssignPublicIps |
Gets and sets the property 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. | |||
CustomInstanceProfileArn |
Gets and sets the property 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. | |||
CustomRecipes |
Gets and sets the property CustomRecipes.
A | |||
CustomSecurityGroupIds |
Gets and sets the property CustomSecurityGroupIds.
An array containing the layer custom security group IDs. | |||
EnableAutoHealing |
Gets and sets the property EnableAutoHealing.
Whether to disable auto healing for the layer. | |||
Equals(Object) | (Inherited from Object.) | |||
GetHashCode()()()() | Serves as a hash function for a particular type. (Inherited from Object.) | |||
GetType()()()() | Gets the type of the current instance. (Inherited from Object.) | |||
InstallUpdatesOnBoot |
Gets and sets the property InstallUpdatesOnBoot.
Whether to install operating system and package updates when the instance boots. The
default value is
| |||
Name |
Gets and sets the property Name.
The layer name, which is used by the console. | |||
Packages |
Gets and sets the property Packages.
An array of | |||
Shortname |
Gets and sets the property 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 '.'. | |||
StackId |
Gets and sets the property StackId.
The layer stack ID. | |||
ToString()()()() | Returns a string that represents the current object. (Inherited from Object.) | |||
Type |
Gets and sets the property Type.
The layer type. A stack cannot have more than one built-in layer of the same type. It can have any number of custom layers. This parameter must be set to one of the following:
| |||
UseEbsOptimizedInstances |
Gets and sets the property UseEbsOptimizedInstances.
Whether to use Amazon EBS-optimized instances. | |||
VolumeConfigurations |
Gets and sets the property VolumeConfigurations.
A | |||
WithAttributes(array<KeyValuePair<(Of <<'(String, String>)>>)>[]()[][]) | Obsolete.
Adds the KeyValuePairs to the Attributes dictionary.
| |||
WithAutoAssignElasticIps(Boolean) | Obsolete.
Sets the AutoAssignElasticIps property
| |||
WithAutoAssignPublicIps(Boolean) | Obsolete.
Sets the AutoAssignPublicIps property
| |||
WithCustomInstanceProfileArn(String) | Obsolete.
Sets the CustomInstanceProfileArn property
| |||
WithCustomRecipes(Recipes) | Obsolete.
Sets the CustomRecipes property
| |||
WithCustomSecurityGroupIds(array<String>[]()[][]) | Obsolete.
Sets the CustomSecurityGroupIds property
| |||
WithCustomSecurityGroupIds(IEnumerable<(Of <<'(String>)>>)) | Obsolete.
Sets the CustomSecurityGroupIds property
| |||
WithEnableAutoHealing(Boolean) | Obsolete.
Sets the EnableAutoHealing property
| |||
WithInstallUpdatesOnBoot(Boolean) | Obsolete.
Sets the InstallUpdatesOnBoot property
| |||
WithName(String) | Obsolete.
Sets the Name property
| |||
WithPackages(array<String>[]()[][]) | Obsolete.
Sets the Packages property
| |||
WithPackages(IEnumerable<(Of <<'(String>)>>)) | Obsolete.
Sets the Packages property
| |||
WithShortname(String) | Obsolete.
Sets the Shortname property
| |||
WithStackId(String) | Obsolete.
Sets the StackId property
| |||
WithType(String) | Obsolete.
Sets the Type property
| |||
WithUseEbsOptimizedInstances(Boolean) | Obsolete.
Sets the UseEbsOptimizedInstances property
| |||
WithVolumeConfigurations(array<VolumeConfiguration>[]()[][]) | Obsolete.
Sets the VolumeConfigurations property
| |||
WithVolumeConfigurations(IEnumerable<(Of <<'(VolumeConfiguration>)>>)) | Obsolete.
Sets the VolumeConfigurations property
|
Object | ||
AmazonWebServiceRequest | ||
CreateLayerRequest |