You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.
Class: Aws::AutoScaling::Resource
- Inherits:
-
Resources::Resource
- Object
- Resources::Resource
- Aws::AutoScaling::Resource
- Defined in:
- (unknown)
Overview
This class provides a resource oriented interface for Auto Scaling. To create a resource object:
resource = Aws::AutoScaling::Resource.new
You can supply a client object with custom configuration that will be
used for all resource operations. If you do not pass :client
,
a default client will be constructed.
client = Aws::AutoScaling::Client.new(region: 'us-west-2')
resource = Aws::AutoScaling::Resource.new(client: client)
Resource Resource Classes
Aws::AutoScaling::Resource has the following resource classes:
Instance Attribute Summary
Attributes inherited from Resources::Resource
Instance Method Summary collapse
-
#activities(options = {}) ⇒ Collection<Activity>
Returns a Collection of Activity resources.
-
#activity(id) ⇒ Activity
-
#create_group(options = {}) ⇒ AutoScalingGroup
-
#create_launch_configuration(options = {}) ⇒ LaunchConfiguration
-
#group(name) ⇒ AutoScalingGroup
-
#groups(options = {}) ⇒ Collection<AutoScalingGroup>
Returns a Collection of AutoScalingGroup resources.
-
#initialize ⇒ Object
constructor
-
#instances(options = {}) ⇒ Collection<Instance>
Returns a Collection of Instance resources.
-
#launch_configuration(name) ⇒ LaunchConfiguration
-
#launch_configurations(options = {}) ⇒ Collection<LaunchConfiguration>
Returns a Collection of LaunchConfiguration resources.
-
#policies(options = {}) ⇒ Collection<ScalingPolicy>
Returns a Collection of ScalingPolicy resources.
-
#policy(name) ⇒ ScalingPolicy
-
#scheduled_action(name) ⇒ ScheduledAction
-
#scheduled_actions(options = {}) ⇒ Collection<ScheduledAction>
Returns a Collection of ScheduledAction resources.
-
#tags(options = {}) ⇒ Collection<Tag>
Returns a Collection of Tag resources.
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(options = {}) ⇒ Object #initialize(options = {}) ⇒ Object
Instance Method Details
#activities(options = {}) ⇒ Collection<Activity>
Returns a Collection of Activity resources. No API requests are made until you call an enumerable method on the collection. Client#describe_scaling_activities will be called multiple times until every Activity has been yielded.
#activity(id) ⇒ Activity
#create_group(options = {}) ⇒ AutoScalingGroup
#create_launch_configuration(options = {}) ⇒ LaunchConfiguration
#group(name) ⇒ AutoScalingGroup
#groups(options = {}) ⇒ Collection<AutoScalingGroup>
Returns a Collection of AutoScalingGroup resources. No API requests are made until you call an enumerable method on the collection. Client#describe_auto_scaling_groups will be called multiple times until every AutoScalingGroup has been yielded.
#instances(options = {}) ⇒ Collection<Instance>
Returns a Collection of Instance resources. No API requests are made until you call an enumerable method on the collection. Client#describe_auto_scaling_instances will be called multiple times until every Instance has been yielded.
#launch_configuration(name) ⇒ LaunchConfiguration
#launch_configurations(options = {}) ⇒ Collection<LaunchConfiguration>
Returns a Collection of LaunchConfiguration resources. No API requests are made until you call an enumerable method on the collection. Client#describe_launch_configurations will be called multiple times until every LaunchConfiguration has been yielded.
#policies(options = {}) ⇒ Collection<ScalingPolicy>
Returns a Collection of ScalingPolicy resources. No API requests are made until you call an enumerable method on the collection. Client#describe_policies will be called multiple times until every ScalingPolicy has been yielded.
#policy(name) ⇒ ScalingPolicy
#scheduled_action(name) ⇒ ScheduledAction
#scheduled_actions(options = {}) ⇒ Collection<ScheduledAction>
Returns a Collection of ScheduledAction resources. No API requests are made until you call an enumerable method on the collection. Client#describe_scheduled_actions will be called multiple times until every ScheduledAction has been yielded.
#tags(options = {}) ⇒ Collection<Tag>
Returns a Collection of Tag resources. No API requests are made until you call an enumerable method on the collection. Client#describe_tags will be called multiple times until every Tag has been yielded.