You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.
Class: Aws::OpsWorks::Stack
- Inherits:
-
Resources::Resource
- Object
- Resources::Resource
- Aws::OpsWorks::Stack
- Defined in:
- (unknown)
Instance Attribute Summary collapse
-
#agent_version ⇒ String
readonly
The agent version.
-
#arn ⇒ String
readonly
The stack\'s ARN.
-
#attributes ⇒ Hash<String,String>
readonly
The stack\'s attributes.
-
#chef_configuration ⇒ Types::ChefConfiguration
readonly
A
ChefConfiguration
object that specifies whether to enable Berkshelf and the Berkshelf version. -
#configuration_manager ⇒ Types::StackConfigurationManager
readonly
The configuration manager.
-
#created_at ⇒ String
readonly
The date when the stack was created.
-
#custom_cookbooks_source ⇒ Types::Source
readonly
Contains the information required to retrieve an app or cookbook from a repository.
-
#custom_json ⇒ String
readonly
A JSON object that contains user-defined attributes to be added to the stack configuration and deployment attributes.
-
#default_availability_zone ⇒ String
readonly
The stack\'s default Availability Zone.
-
#default_instance_profile_arn ⇒ String
readonly
The ARN of an IAM profile that is the default profile for all of the stack\'s EC2 instances.
-
#default_os ⇒ String
readonly
The stack\'s default operating system.
-
#default_root_device_type ⇒ String
readonly
The default root device type.
-
#default_ssh_key_name ⇒ String
readonly
A default Amazon EC2 key pair for the stack\'s instances.
-
#default_subnet_id ⇒ String
readonly
The default subnet ID; applicable only if the stack is running in a VPC.
-
#hostname_theme ⇒ String
readonly
The stack host name theme, with spaces replaced by underscores.
-
#id ⇒ String
readonly
-
#name ⇒ String
readonly
The stack name.
-
#region ⇒ String
readonly
The stack AWS region, such as \"ap-northeast-2\".
-
#service_role_arn ⇒ String
readonly
The stack AWS Identity and Access Management (IAM) role.
-
#stack_id ⇒ String
readonly
The stack ID.
-
#use_custom_cookbooks ⇒ Boolean
readonly
Whether the stack uses custom cookbooks.
-
#use_opsworks_security_groups ⇒ Boolean
readonly
Whether the stack automatically associates the AWS OpsWorks Stacks built-in security groups with the stack\'s layers.
-
#vpc_id ⇒ String
readonly
The VPC ID; applicable only if the stack is running in a VPC.
Attributes inherited from Resources::Resource
Instance Method Summary collapse
-
#create_layer(options = {}) ⇒ Layer
-
#delete ⇒ Struct
Deletes a specified stack.
-
#initialize ⇒ Object
constructor
-
#layers(options = {}) ⇒ Collection<Layer>
Returns a Collection of Layer resources.
-
#summary ⇒ StackSummary
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
#agent_version ⇒ String (readonly)
The agent version. This parameter is set to LATEST
for auto-update. or
a version number for a fixed agent version.
#arn ⇒ String (readonly)
The stack\'s ARN.
#attributes ⇒ Hash<String,String> (readonly)
The stack\'s attributes.
#chef_configuration ⇒ Types::ChefConfiguration (readonly)
A ChefConfiguration
object that specifies whether to enable Berkshelf
and the Berkshelf version. For more information, see Create a New
Stack.
#configuration_manager ⇒ Types::StackConfigurationManager (readonly)
The configuration manager.
#created_at ⇒ String (readonly)
The date when the stack was created.
#custom_cookbooks_source ⇒ Types::Source (readonly)
Contains the information required to retrieve an app or cookbook from a repository. For more information, see Adding Apps or Cookbooks and Recipes.
#custom_json ⇒ String (readonly)
A JSON object that contains user-defined attributes to be added to the stack configuration and deployment attributes. You can use custom JSON to override the corresponding default stack configuration attribute values or to pass data to recipes. The string should be in the following format:
"{\"key1\": \"value1\", \"key2\": \"value2\",...}"
For more information on custom JSON, see Use Custom JSON to Modify the Stack Configuration Attributes.
#default_availability_zone ⇒ String (readonly)
The stack\'s default Availability Zone. For more information, see Regions and Endpoints.
#default_instance_profile_arn ⇒ String (readonly)
The ARN of an IAM profile that is the default profile for all of the stack\'s EC2 instances. For more information about IAM ARNs, see Using Identifiers.
#default_os ⇒ String (readonly)
The stack\'s default operating system.
#default_root_device_type ⇒ String (readonly)
The default root device type. This value is used by default for all instances in the stack, but you can override it when you create an instance. For more information, see Storage for the Root Device.
#default_ssh_key_name ⇒ String (readonly)
A default Amazon EC2 key pair for the stack\'s instances. You can override this value when you create or update an instance.
#default_subnet_id ⇒ String (readonly)
The default subnet ID; applicable only if the stack is running in a VPC.
#hostname_theme ⇒ String (readonly)
The stack host name theme, with spaces replaced by underscores.
#id ⇒ String (readonly)
#name ⇒ String (readonly)
The stack name.
#region ⇒ String (readonly)
The stack AWS region, such as \"ap-northeast-2\". For more information about AWS regions, see Regions and Endpoints.
#service_role_arn ⇒ String (readonly)
The stack AWS Identity and Access Management (IAM) role.
#stack_id ⇒ String (readonly)
The stack ID.
#use_custom_cookbooks ⇒ Boolean (readonly)
Whether the stack uses custom cookbooks.
#use_opsworks_security_groups ⇒ Boolean (readonly)
Whether the stack automatically associates the AWS OpsWorks Stacks built-in security groups with the stack\'s layers.
#vpc_id ⇒ String (readonly)
The VPC ID; applicable only if the stack is running in a VPC.
Instance Method Details
#create_layer(options = {}) ⇒ Layer
#delete ⇒ Struct
Deletes a specified stack. You must first delete all instances, layers, and apps or deregister registered instances. For more information, see Shut Down a Stack.
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.
#layers(options = {}) ⇒ Collection<Layer>
Returns a Collection of Layer resources. No API requests are made until you call an enumerable method on the collection. Client#describe_layers will be called multiple times until every Layer has been yielded.