AWS SDK for .NET Documentation
CreateLayerRequest Class
AmazonAmazon.OpsWorks.ModelCreateLayerRequest Did this page help you?   Yes   No    Tell us about it...
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 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.

Declaration Syntax
C#
public class CreateLayerRequest : AmazonWebServiceRequest
Members
All MembersConstructorsMethodsProperties



IconMemberDescription
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

CopyC#
LayerCustomRecipes
object that specifies the layer custom recipes.


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)
Determines whether the specified Object is equal to the current 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

CopyC#
true
. To control when updates are installed, set this value to
CopyC#
false
. You must then update your instances manually by using CreateDeployment to run the
CopyC#
update_dependencies
stack command or manually running
CopyC#
yum
(Amazon Linux) or
CopyC#
apt-get
(Ubuntu) on the instances.

Note:

We strongly recommend using the default value of

CopyC#
true
, to ensure that your instances have the latest security updates.


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

CopyC#
Package
objects that describe the layer packages.


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:

  • custom: A custom layer
  • db-master: A MySQL layer
  • java-app: A Java App Server layer
  • rails-app: A Rails App Server layer
  • lb: An HAProxy layer
  • memcached: A Memcached layer
  • monitoring-master: A Ganglia layer
  • nodejs-app: A Node.js App Server layer
  • php-app: A PHP App Server layer
  • web: A Static Web Server layer

UseEbsOptimizedInstances
Gets and sets the property UseEbsOptimizedInstances.

Whether to use Amazon EBS-optimized instances.


VolumeConfigurations
Gets and sets the property VolumeConfigurations.

A

CopyC#
VolumeConfigurations
object that describes the layer's Amazon EBS volumes.


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

Inheritance Hierarchy
Object
AmazonWebServiceRequest
 CreateLayerRequest

Assembly: AWSSDK (Module: AWSSDK) Version: 1.5.60.0 (1.5.60.0)