You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Aws::OpsWorks::Types::Layer

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Describes a layer.

Instance Attribute Summary collapse

Instance Attribute Details

#arnString

The Amazon Resource Number (ARN) of a layer.

Returns:

  • (String)

    The Amazon Resource Number (ARN) of a layer.

#attributesHash<String,String>

The layer attributes.

For the HaproxyStatsPassword, MysqlRootPassword, and GangliaPassword attributes, AWS OpsWorks Stacks returns *****FILTERED***** instead of the actual value

For an ECS Cluster layer, AWS OpsWorks Stacks the EcsClusterArn attribute is set to the cluster\'s ARN.

Returns:

  • (Hash<String,String>)

    The layer attributes.

#auto_assign_elastic_ipsBoolean

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

Returns:

  • (Boolean)

    Whether to automatically assign an [Elastic IP address][1] to the layer\'s instances.

#auto_assign_public_ipsBoolean

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.

Returns:

  • (Boolean)

    For stacks that are running in a VPC, whether to automatically assign a public IP address to the layer\'s instances.

#cloud_watch_logs_configurationTypes::CloudWatchLogsConfiguration

The Amazon CloudWatch Logs configuration settings for the layer.

Returns:

#created_atString

Date when the layer was created.

Returns:

  • (String)

    Date when the layer was created.

#custom_instance_profile_arnString

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.

Returns:

  • (String)

    The ARN of the default IAM profile to be used for the layer\'s EC2 instances.

#custom_jsonString

A JSON formatted string containing the layer\'s custom stack configuration and deployment attributes.

Returns:

  • (String)

    A JSON formatted string containing the layer\'s custom stack configuration and deployment attributes.

#custom_recipesTypes::Recipes

A LayerCustomRecipes object that specifies the layer\'s custom recipes.

Returns:

  • (Types::Recipes)

    A LayerCustomRecipes object that specifies the layer\'s custom recipes.

#custom_security_group_idsArray<String>

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

Returns:

  • (Array<String>)

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

#default_recipesTypes::Recipes

AWS OpsWorks Stacks supports five lifecycle events: setup, configuration, deploy, undeploy, and shutdown. For each layer, AWS OpsWorks Stacks runs a set of standard recipes for each event. You can also provide custom recipes for any or all layers and events. AWS OpsWorks Stacks runs custom event recipes after the standard recipes. LayerCustomRecipes specifies the custom recipes for a particular layer to be run in response to each of the five events.

To specify a recipe, use the cookbook\'s directory name in the repository followed by two colons and the recipe name, which is the recipe\'s file name without the .rb extension. For example: phpapp2::dbsetup specifies the dbsetup.rb recipe in the repository\'s phpapp2 folder.

Returns:

  • (Types::Recipes)

    AWS OpsWorks Stacks supports five lifecycle events: setup, configuration, deploy, undeploy, and shutdown.

#default_security_group_namesArray<String>

An array containing the layer\'s security group names.

Returns:

  • (Array<String>)

    An array containing the layer\'s security group names.

#enable_auto_healingBoolean

Whether auto healing is disabled for the layer.

Returns:

  • (Boolean)

    Whether auto healing is disabled for the layer.

#install_updates_on_bootBoolean

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

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

Returns:

  • (Boolean)

    Whether to install operating system and package updates when the instance boots.

#layer_idString

The layer ID.

Returns:

  • (String)

    The layer ID.

#lifecycle_event_configurationTypes::LifecycleEventConfiguration

A LifeCycleEventConfiguration object that specifies the Shutdown event configuration.

Returns:

#nameString

The layer name.

Returns:

  • (String)

    The layer name.

#packagesArray<String>

An array of Package objects that describe the layer\'s packages.

Returns:

  • (Array<String>)

    An array of Package objects that describe the layer\'s packages.

#shortnameString

The layer short name.

Returns:

  • (String)

    The layer short name.

#stack_idString

The layer stack ID.

Returns:

  • (String)

    The layer stack ID.

#typeString

The layer type.

Possible values:

  • aws-flow-ruby
  • ecs-cluster
  • java-app
  • lb
  • web
  • php-app
  • rails-app
  • nodejs-app
  • memcached
  • db-master
  • monitoring-master
  • custom

Returns:

  • (String)

    The layer type.

#use_ebs_optimized_instancesBoolean

Whether the layer uses Amazon EBS-optimized instances.

Returns:

  • (Boolean)

    Whether the layer uses Amazon EBS-optimized instances.

#volume_configurationsArray<Types::VolumeConfiguration>

A VolumeConfigurations object that describes the layer\'s Amazon EBS volumes.

Returns: