You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.
Class: Aws::OpsWorks::Layer
- Inherits:
-
Resources::Resource
- Object
- Resources::Resource
- Aws::OpsWorks::Layer
- Defined in:
- (unknown)
Instance Attribute Summary collapse
-
#arn ⇒ String
readonly
The Amazon Resource Number (ARN) of a layer.
-
#attributes ⇒ Hash<String,String>
readonly
The layer attributes.
-
#auto_assign_elastic_ips ⇒ Boolean
readonly
Whether to automatically assign an [Elastic IP address][1] to the layer\'s instances.
-
#auto_assign_public_ips ⇒ Boolean
readonly
For stacks that are running in a VPC, whether to automatically assign a public IP address to the layer\'s instances.
-
#cloud_watch_logs_configuration ⇒ Types::CloudWatchLogsConfiguration
readonly
The Amazon CloudWatch Logs configuration settings for the layer.
-
#created_at ⇒ String
readonly
Date when the layer was created.
-
#custom_instance_profile_arn ⇒ String
readonly
The ARN of the default IAM profile to be used for the layer\'s EC2 instances.
-
#custom_json ⇒ String
readonly
A JSON formatted string containing the layer\'s custom stack configuration and deployment attributes.
-
#custom_recipes ⇒ Types::Recipes
readonly
A
LayerCustomRecipes
object that specifies the layer\'s custom recipes. -
#custom_security_group_ids ⇒ Array<String>
readonly
An array containing the layer\'s custom security group IDs.
-
#default_recipes ⇒ Types::Recipes
readonly
AWS OpsWorks Stacks supports five lifecycle events: setup, configuration, deploy, undeploy, and shutdown.
-
#default_security_group_names ⇒ Array<String>
readonly
An array containing the layer\'s security group names.
-
#enable_auto_healing ⇒ Boolean
readonly
Whether auto healing is disabled for the layer.
-
#id ⇒ String
readonly
-
#install_updates_on_boot ⇒ Boolean
readonly
Whether to install operating system and package updates when the instance boots.
-
#layer_id ⇒ String
readonly
The layer ID.
-
#lifecycle_event_configuration ⇒ Types::LifecycleEventConfiguration
readonly
A
LifeCycleEventConfiguration
object that specifies the Shutdown event configuration. -
#name ⇒ String
readonly
The layer name.
-
#packages ⇒ Array<String>
readonly
An array of
Package
objects that describe the layer\'s packages. -
#shortname ⇒ String
readonly
The layer short name.
-
#stack_id ⇒ String
readonly
The layer stack ID.
-
#type ⇒ String
readonly
The layer type.
-
#use_ebs_optimized_instances ⇒ Boolean
readonly
Whether the layer uses Amazon EBS-optimized instances.
-
#volume_configurations ⇒ Array<Types::VolumeConfiguration>
readonly
A
VolumeConfigurations
object that describes the layer\'s Amazon EBS volumes.
Attributes inherited from Resources::Resource
Instance Method Summary collapse
-
#delete ⇒ Struct
Deletes a specified layer.
-
#initialize ⇒ Object
constructor
-
#stack ⇒ Stack?
Methods inherited from Resources::Resource
add_data_attribute, add_identifier, #data, data_attributes, #data_loaded?, identifiers, #load, #wait_until
Methods included from Resources::OperationMethods
#add_batch_operation, #add_operation, #batch_operation, #batch_operation_names, #batch_operations, #operation, #operation_names, #operations
Constructor Details
#initialize(id, options = {}) ⇒ Object #initialize(options = {}) ⇒ Object
Instance Attribute Details
#arn ⇒ String (readonly)
The Amazon Resource Number (ARN) of a layer.
#attributes ⇒ Hash<String,String> (readonly)
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.
#auto_assign_elastic_ips ⇒ Boolean (readonly)
Whether to automatically assign an Elastic IP address to the layer\'s instances. For more information, see How to Edit a Layer.
#auto_assign_public_ips ⇒ Boolean (readonly)
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.
#cloud_watch_logs_configuration ⇒ Types::CloudWatchLogsConfiguration (readonly)
The Amazon CloudWatch Logs configuration settings for the layer.
#created_at ⇒ String (readonly)
Date when the layer was created.
#custom_instance_profile_arn ⇒ String (readonly)
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.
#custom_json ⇒ String (readonly)
A JSON formatted string containing the layer\'s custom stack configuration and deployment attributes.
#custom_recipes ⇒ Types::Recipes (readonly)
A LayerCustomRecipes
object that specifies the layer\'s custom
recipes.
#custom_security_group_ids ⇒ Array<String> (readonly)
An array containing the layer\'s custom security group IDs.
#default_recipes ⇒ Types::Recipes (readonly)
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.
#default_security_group_names ⇒ Array<String> (readonly)
An array containing the layer\'s security group names.
#enable_auto_healing ⇒ Boolean (readonly)
Whether auto healing is disabled for the layer.
#id ⇒ String (readonly)
#install_updates_on_boot ⇒ Boolean (readonly)
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.
true
, to ensure that
your instances have the latest security updates.
#layer_id ⇒ String (readonly)
The layer ID.
#lifecycle_event_configuration ⇒ Types::LifecycleEventConfiguration (readonly)
A LifeCycleEventConfiguration
object that specifies the Shutdown event
configuration.
#name ⇒ String (readonly)
The layer name.
#packages ⇒ Array<String> (readonly)
An array of Package
objects that describe the layer\'s packages.
#shortname ⇒ String (readonly)
The layer short name.
#stack_id ⇒ String (readonly)
The layer stack ID.
#type ⇒ String (readonly)
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
#use_ebs_optimized_instances ⇒ Boolean (readonly)
Whether the layer uses Amazon EBS-optimized instances.
#volume_configurations ⇒ Array<Types::VolumeConfiguration> (readonly)
A VolumeConfigurations
object that describes the layer\'s Amazon EBS
volumes.
Instance Method Details
#delete ⇒ Struct
Deletes a specified layer. You must first stop and then delete all associated instances or unassign registered instances. For more information, see How to Delete a Layer.
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.