AWS SDK for .NET Documentation
Layer Class
AmazonAmazon.OpsWorks.ModelLayer Did this page help you?   Yes   No    Tell us about it...
Describes a layer.
Declaration Syntax
C#
public class Layer
Members
All MembersConstructorsMethodsProperties



IconMemberDescription
Layer()()()()
Initializes a new instance of the Layer class

Attributes
Gets and sets the property Attributes.

The layer 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.


CreatedAt
Gets and sets the property CreatedAt.

Date when the layer was created.


CustomInstanceProfileArn
Gets and sets the property 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.


CustomRecipes
Gets and sets the property CustomRecipes.

A

CopyC#
LayerCustomRecipes
object that specifies the layer's custom recipes.


CustomSecurityGroupIds
Gets and sets the property CustomSecurityGroupIds.

An array containing the layer's custom security group IDs.


DefaultRecipes
Gets and sets the property DefaultRecipes.

DefaultSecurityGroupNames
Gets and sets the property DefaultSecurityGroupNames.

An array containing the layer's security group names.


EnableAutoHealing
Gets and sets the property EnableAutoHealing.

Whether auto healing is disabled 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
. If this value is set 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.


LayerId
Gets and sets the property LayerId.

The layer ID.


Name
Gets and sets the property Name.

The layer name.


Packages
Gets and sets the property Packages.

An array of

CopyC#
Package
objects that describe the layer's packages.


Shortname
Gets and sets the property Shortname.

The layer short name.


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, which must be one of the following:

  • Custom
  • GangliaMonitoringMaster
  • HaProxy
  • MemcachedServer
  • MySqlMaster
  • NodeJsAppServer
  • PhpAppServer
  • RailsAppServer
  • WebServer

UseEbsOptimizedInstances
Gets and sets the property UseEbsOptimizedInstances.

Whether the layer uses 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

WithCreatedAt(String) Obsolete.
Sets the CreatedAt 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

WithDefaultRecipes(Recipes) Obsolete.
Sets the DefaultRecipes property

WithDefaultSecurityGroupNames(array<String>[]()[][]) Obsolete.
Sets the DefaultSecurityGroupNames property

WithDefaultSecurityGroupNames(IEnumerable<(Of <<'(String>)>>)) Obsolete.
Sets the DefaultSecurityGroupNames property

WithEnableAutoHealing(Boolean) Obsolete.
Sets the EnableAutoHealing property

WithInstallUpdatesOnBoot(Boolean) Obsolete.
Sets the InstallUpdatesOnBoot property

WithLayerId(String) Obsolete.
Sets the LayerId 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
Layer

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