NAME

Paws::OpsWorks::CreateLayer - Arguments for method CreateLayer on Paws::OpsWorks

DESCRIPTION

This class represents the parameters used for calling the method CreateLayer on the AWS OpsWorks service. Use the attributes of this class as arguments to method CreateLayer.

You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateLayer.

As an example:

$service_obj->CreateLayer(Att1 => $value1, Att2 => $value2, ...);

Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object.

ATTRIBUTES

Attributes => Paws::OpsWorks::LayerAttributes

One or more user-defined key-value pairs to be added to the stack
attributes.

To create a cluster layer, set the EcsClusterArn attribute to the cluster's ARN.

AutoAssignElasticIps => Bool

Whether to automatically assign an Elastic IP address to the layer's
instances. For more information, see How to Edit a Layer.

AutoAssignPublicIps => Bool

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 => Str

The ARN of an IAM profile to be used for the layer's EC2 instances. For
more information about IAM ARNs, see Using Identifiers.

CustomJson => Str

A JSON-formatted string containing custom stack configuration and
deployment attributes to be installed on the layer's instances. For
more information, see Using Custom JSON.

CustomRecipes => Paws::OpsWorks::Recipes

A C<LayerCustomRecipes> object that specifies the layer custom recipes.

CustomSecurityGroupIds => ArrayRef[Str]

An array containing the layer custom security group IDs.

EnableAutoHealing => Bool

Whether to disable auto healing for the layer.

InstallUpdatesOnBoot => Bool

Whether to install operating system and package updates when the
instance boots. The default value is C<true>. To control when updates
are installed, set this value to C<false>. You must then update your
instances manually by using CreateDeployment to run the
C<update_dependencies> stack command or by manually running C<yum>
(Amazon Linux) or C<apt-get> (Ubuntu) on the instances.

To ensure that your instances have the latest security updates, we strongly recommend using the default value of true.

LifecycleEventConfiguration => Paws::OpsWorks::LifecycleEventConfiguration

A C<LifeCycleEventConfiguration> object that you can use to configure
the Shutdown event to specify an execution timeout and enable or
disable Elastic Load Balancer connection draining.

REQUIRED Name => Str

The layer name, which is used by the console.

Packages => ArrayRef[Str]

An array of C<Package> objects that describes the layer packages.

REQUIRED Shortname => Str

For custom layers only, use this parameter to specify the layer's 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 '.'.

The built-in layers' short names are defined by AWS OpsWorks. For more information, see the Layer Reference.

REQUIRED StackId => Str

The layer stack ID.

REQUIRED Type => Str

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.

UseEbsOptimizedInstances => Bool

Whether to use Amazon EBS-optimized instances.

VolumeConfigurations => ArrayRef[Paws::OpsWorks::VolumeConfiguration]

A C<VolumeConfigurations> object that describes the layer's Amazon EBS
volumes.

SEE ALSO

This class forms part of Paws, documenting arguments for method CreateLayer in Paws::OpsWorks

BUGS and CONTRIBUTIONS

The source code is located here: https://github.com/pplu/aws-sdk-perl

Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues