Class: AWS::AutoScaling::Client

Inherits:
Core::QueryClient show all
Defined in:
lib/aws/auto_scaling/client.rb

Overview

Client class for Auto Scaling.

Instance Attribute Summary

Attributes inherited from Core::Client

#config, #http_read_timeout

Instance Method Summary collapse

Methods inherited from Core::Client

#initialize, #log_warning, #operations, operations, #with_http_handler, #with_options

Constructor Details

This class inherits a constructor from AWS::Core::Client

Instance Method Details

#create_auto_scaling_group(options = {}) ⇒ Core::Response

Calls the CreateAutoScalingGroup API operation.

Parameters:

  • options (Hash) (defaults to: {})
    • :auto_scaling_group_name - required - (String)

    • :launch_configuration_name - required - (String)

    • :min_size - required - (Integer)

    • :max_size - required - (Integer)

    • :desired_capacity - (Integer)

    • :default_cooldown - (Integer)

    • :availability_zones - required - (Array<String>)

    • :load_balancer_names - (Array<String>)

    • :health_check_type - (String)

    • :health_check_grace_period - (Integer)

    • :placement_group - (String)

    • :vpc_zone_identifier - (String)

    • :tags - (Array<Hash>)

      • :resource_id - (String)

      • :resource_type - (String)

      • :key - required - (String)

      • :value - (String)

      • :propagate_at_launch - (Boolean)

Returns:



# File 'lib/aws/auto_scaling/client.rb', line 40

#create_launch_configuration(options = {}) ⇒ Core::Response

Calls the CreateLaunchConfiguration API operation.

Parameters:

  • options (Hash) (defaults to: {})
    • :launch_configuration_name - required - (String)

    • :image_id - required - (String)

    • :key_name - (String)

    • :security_groups - (Array<String>)

    • :user_data - (String)

    • :instance_type - required - (String)

    • :kernel_id - (String)

    • :ramdisk_id - (String)

    • :block_device_mappings - (Array<Hash>)

      • :virtual_name - (String)

      • :device_name - required - (String)

      • :ebs - (Hash)

        • :snapshot_id - (String)

        • :volume_size - (Integer)

    • :instance_monitoring - (Hash)

      • :enabled - (Boolean)

    • :spot_price - (String)

    • :iam_instance_profile - (String)

Returns:



# File 'lib/aws/auto_scaling/client.rb', line 63

#create_or_update_tags(options = {}) ⇒ Core::Response

Calls the CreateOrUpdateTags API operation.

Parameters:

  • options (Hash) (defaults to: {})
    • :tags - required - (Array<Hash>)

      • :resource_id - (String)

      • :resource_type - (String)

      • :key - required - (String)

      • :value - (String)

      • :propagate_at_launch - (Boolean)

Returns:



# File 'lib/aws/auto_scaling/client.rb', line 86

#delete_auto_scaling_group(options = {}) ⇒ Core::Response

Calls the DeleteAutoScalingGroup API operation.

Parameters:

  • options (Hash) (defaults to: {})
    • :auto_scaling_group_name - required - (String)

    • :force_delete - (Boolean)

Returns:



# File 'lib/aws/auto_scaling/client.rb', line 97

#delete_launch_configuration(options = {}) ⇒ Core::Response

Calls the DeleteLaunchConfiguration API operation.

Parameters:

  • options (Hash) (defaults to: {})
    • :launch_configuration_name - required - (String)

Returns:



# File 'lib/aws/auto_scaling/client.rb', line 104

#delete_notification_configuration(options = {}) ⇒ Core::Response

Calls the DeleteNotificationConfiguration API operation.

Parameters:

  • options (Hash) (defaults to: {})
    • :auto_scaling_group_name - required - (String)

    • :topic_arn - required - (String)

Returns:



# File 'lib/aws/auto_scaling/client.rb', line 110

#delete_policy(options = {}) ⇒ Core::Response

Calls the DeletePolicy API operation.

Parameters:

  • options (Hash) (defaults to: {})
    • :auto_scaling_group_name - (String)

    • :policy_name - required - (String)

Returns:



# File 'lib/aws/auto_scaling/client.rb', line 117

#delete_scheduled_action(options = {}) ⇒ Core::Response

Calls the DeleteScheduledAction API operation.

Parameters:

  • options (Hash) (defaults to: {})
    • :auto_scaling_group_name - (String)

    • :scheduled_action_name - required - (String)

Returns:



# File 'lib/aws/auto_scaling/client.rb', line 124

#delete_tags(options = {}) ⇒ Core::Response

Calls the DeleteTags API operation.

Parameters:

  • options (Hash) (defaults to: {})
    • :tags - required - (Array<Hash>)

      • :resource_id - (String)

      • :resource_type - (String)

      • :key - required - (String)

      • :value - (String)

      • :propagate_at_launch - (Boolean)

Returns:



# File 'lib/aws/auto_scaling/client.rb', line 131

#describe_adjustment_types(options = {}) ⇒ Core::Response

Calls the DescribeAdjustmentTypes API operation.

Parameters:

  • options (Hash) (defaults to: {})

Returns:

  • (Core::Response)

    The #data method of the response object returns a hash with the following structure:

    • :adjustment_types - (Array<Hash>)

      • :adjustment_type - (String)



# File 'lib/aws/auto_scaling/client.rb', line 142

#describe_auto_scaling_groups(options = {}) ⇒ Core::Response

Calls the DescribeAutoScalingGroups API operation.

Parameters:

  • options (Hash) (defaults to: {})
    • :auto_scaling_group_names - (Array<String>)

    • :next_token - (String)

    • :max_records - (Integer)

Returns:

  • (Core::Response)

    The #data method of the response object returns a hash with the following structure:

    • :auto_scaling_groups - (Array<Hash>)

      • :auto_scaling_group_name - (String)

      • :auto_scaling_group_arn - (String)

      • :launch_configuration_name - (String)

      • :min_size - (Integer)

      • :max_size - (Integer)

      • :desired_capacity - (Integer)

      • :default_cooldown - (Integer)

      • :availability_zones - (Array<String>)

      • :load_balancer_names - (Array<String>)

      • :health_check_type - (String)

      • :health_check_grace_period - (Integer)

      • :instances - (Array<Hash>)

        • :instance_id - (String)

        • :availability_zone - (String)

        • :lifecycle_state - (String)

        • :health_status - (String)

        • :launch_configuration_name - (String)

      • :created_time - (Time)

      • :suspended_processes - (Array<Hash>)

        • :process_name - (String)

        • :suspension_reason - (String)

      • :placement_group - (String)

      • :vpc_zone_identifier - (String)

      • :enabled_metrics - (Array<Hash>)

        • :metric - (String)

        • :granularity - (String)

      • :status - (String)

      • :tags - (Array<Hash>)

        • :resource_id - (String)

        • :resource_type - (String)

        • :key - (String)

        • :value - (String)

        • :propagate_at_launch - (Boolean)

    • :next_token - (String)



# File 'lib/aws/auto_scaling/client.rb', line 151

#describe_auto_scaling_instances(options = {}) ⇒ Core::Response

Calls the DescribeAutoScalingInstances API operation.

Parameters:

  • options (Hash) (defaults to: {})
    • :instance_ids - (Array<String>)

    • :max_records - (Integer)

    • :next_token - (String)

Returns:

  • (Core::Response)

    The #data method of the response object returns a hash with the following structure:

    • :auto_scaling_instances - (Array<Hash>)

      • :instance_id - (String)

      • :auto_scaling_group_name - (String)

      • :availability_zone - (String)

      • :lifecycle_state - (String)

      • :health_status - (String)

      • :launch_configuration_name - (String)

    • :next_token - (String)



# File 'lib/aws/auto_scaling/client.rb', line 196

#describe_auto_scaling_notification_types(options = {}) ⇒ Core::Response

Calls the DescribeAutoScalingNotificationTypes API operation.

Parameters:

  • options (Hash) (defaults to: {})

Returns:

  • (Core::Response)

    The #data method of the response object returns a hash with the following structure:

    • :auto_scaling_notification_types - (Array<String>)



# File 'lib/aws/auto_scaling/client.rb', line 214

#describe_launch_configurations(options = {}) ⇒ Core::Response

Calls the DescribeLaunchConfigurations API operation.

Parameters:

  • options (Hash) (defaults to: {})
    • :launch_configuration_names - (Array<String>)

    • :next_token - (String)

    • :max_records - (Integer)

Returns:

  • (Core::Response)

    The #data method of the response object returns a hash with the following structure:

    • :launch_configurations - (Array<Hash>)

      • :launch_configuration_name - (String)

      • :launch_configuration_arn - (String)

      • :image_id - (String)

      • :key_name - (String)

      • :security_groups - (Array<String>)

      • :user_data - (String)

      • :instance_type - (String)

      • :kernel_id - (String)

      • :ramdisk_id - (String)

      • :block_device_mappings - (Array<Hash>)

        • :virtual_name - (String)

        • :device_name - (String)

        • :ebs - (Hash)

          • :snapshot_id - (String)

          • :volume_size - (Integer)

      • :instance_monitoring - (Hash)

        • :enabled - (Boolean)

      • :spot_price - (String)

      • :iam_instance_profile - (String)

      • :created_time - (Time)

    • :next_token - (String)



# File 'lib/aws/auto_scaling/client.rb', line 222

#describe_metric_collection_types(options = {}) ⇒ Core::Response

Calls the DescribeMetricCollectionTypes API operation.

Parameters:

  • options (Hash) (defaults to: {})

Returns:

  • (Core::Response)

    The #data method of the response object returns a hash with the following structure:

    • :metrics - (Array<Hash>)

      • :metric - (String)

    • :granularities - (Array<Hash>)

      • :granularity - (String)



# File 'lib/aws/auto_scaling/client.rb', line 254

#describe_notification_configurations(options = {}) ⇒ Core::Response

Calls the DescribeNotificationConfigurations API operation.

Parameters:

  • options (Hash) (defaults to: {})
    • :auto_scaling_group_names - (Array<String>)

    • :next_token - (String)

    • :max_records - (Integer)

Returns:

  • (Core::Response)

    The #data method of the response object returns a hash with the following structure:

    • :notification_configurations - (Array<Hash>)

      • :auto_scaling_group_name - (String)

      • :topic_arn - (String)

      • :notification_type - (String)

    • :next_token - (String)



# File 'lib/aws/auto_scaling/client.rb', line 265

#describe_policies(options = {}) ⇒ Core::Response

Calls the DescribePolicies API operation.

Parameters:

  • options (Hash) (defaults to: {})
    • :auto_scaling_group_name - (String)

    • :policy_names - (Array<String>)

    • :next_token - (String)

    • :max_records - (Integer)

Returns:

  • (Core::Response)

    The #data method of the response object returns a hash with the following structure:

    • :scaling_policies - (Array<Hash>)

      • :auto_scaling_group_name - (String)

      • :policy_name - (String)

      • :scaling_adjustment - (Integer)

      • :adjustment_type - (String)

      • :cooldown - (Integer)

      • :policy_arn - (String)

      • :alarms - (Array<Hash>)

        • :alarm_name - (String)

        • :alarm_arn - (String)

      • :min_adjustment_step - (Integer)

    • :next_token - (String)



# File 'lib/aws/auto_scaling/client.rb', line 280

#describe_scaling_activities(options = {}) ⇒ Core::Response

Calls the DescribeScalingActivities API operation.

Parameters:

  • options (Hash) (defaults to: {})
    • :activity_ids - (Array<String>)

    • :auto_scaling_group_name - (String)

    • :max_records - (Integer)

    • :next_token - (String)

Returns:

  • (Core::Response)

    The #data method of the response object returns a hash with the following structure:

    • :activities - (Array<Hash>)

      • :activity_id - (String)

      • :auto_scaling_group_name - (String)

      • :description - (String)

      • :cause - (String)

      • :start_time - (Time)

      • :end_time - (Time)

      • :status_code - (String)

      • :status_message - (String)

      • :progress - (Integer)

      • :details - (String)

    • :next_token - (String)



# File 'lib/aws/auto_scaling/client.rb', line 303

#describe_scaling_process_types(options = {}) ⇒ Core::Response

Calls the DescribeScalingProcessTypes API operation.

Parameters:

  • options (Hash) (defaults to: {})

Returns:

  • (Core::Response)

    The #data method of the response object returns a hash with the following structure:

    • :processes - (Array<Hash>)

      • :process_name - (String)



# File 'lib/aws/auto_scaling/client.rb', line 326

#describe_scheduled_actions(options = {}) ⇒ Core::Response

Calls the DescribeScheduledActions API operation.

Parameters:

  • options (Hash) (defaults to: {})
    • :auto_scaling_group_name - (String)

    • :scheduled_action_names - (Array<String>)

    • :start_time - (String<ISO8601 datetime>)

    • :end_time - (String<ISO8601 datetime>)

    • :next_token - (String)

    • :max_records - (Integer)

Returns:

  • (Core::Response)

    The #data method of the response object returns a hash with the following structure:

    • :scheduled_update_group_actions - (Array<Hash>)

      • :auto_scaling_group_name - (String)

      • :scheduled_action_name - (String)

      • :scheduled_action_arn - (String)

      • :time - (Time)

      • :start_time - (Time)

      • :end_time - (Time)

      • :recurrence - (String)

      • :min_size - (Integer)

      • :max_size - (Integer)

      • :desired_capacity - (Integer)

    • :next_token - (String)



# File 'lib/aws/auto_scaling/client.rb', line 335

#describe_tags(options = {}) ⇒ Core::Response

Calls the DescribeTags API operation.

Parameters:

  • options (Hash) (defaults to: {})
    • :filters - (Array<Hash>)

      • :name - (String)

      • :values - (Array<String>)

    • :next_token - (String)

    • :max_records - (Integer)

Returns:

  • (Core::Response)

    The #data method of the response object returns a hash with the following structure:

    • :tags - (Array<Hash>)

      • :resource_id - (String)

      • :resource_type - (String)

      • :key - (String)

      • :value - (String)

      • :propagate_at_launch - (Boolean)

    • :next_token - (String)



# File 'lib/aws/auto_scaling/client.rb', line 360

#disable_metrics_collection(options = {}) ⇒ Core::Response

Calls the DisableMetricsCollection API operation.

Parameters:

  • options (Hash) (defaults to: {})
    • :auto_scaling_group_name - required - (String)

    • :metrics - (Array<String>)

Returns:



# File 'lib/aws/auto_scaling/client.rb', line 379

#enable_metrics_collection(options = {}) ⇒ Core::Response

Calls the EnableMetricsCollection API operation.

Parameters:

  • options (Hash) (defaults to: {})
    • :auto_scaling_group_name - required - (String)

    • :metrics - (Array<String>)

    • :granularity - required - (String)

Returns:



# File 'lib/aws/auto_scaling/client.rb', line 386

#execute_policy(options = {}) ⇒ Core::Response

Calls the ExecutePolicy API operation.

Parameters:

  • options (Hash) (defaults to: {})
    • :auto_scaling_group_name - (String)

    • :policy_name - required - (String)

    • :honor_cooldown - (Boolean)

Returns:



# File 'lib/aws/auto_scaling/client.rb', line 394

#put_notification_configuration(options = {}) ⇒ Core::Response

Calls the PutNotificationConfiguration API operation.

Parameters:

  • options (Hash) (defaults to: {})
    • :auto_scaling_group_name - required - (String)

    • :topic_arn - required - (String)

    • :notification_types - required - (Array<String>)

Returns:



# File 'lib/aws/auto_scaling/client.rb', line 402

#put_scaling_policy(options = {}) ⇒ Core::Response

Calls the PutScalingPolicy API operation.

Parameters:

  • options (Hash) (defaults to: {})
    • :auto_scaling_group_name - required - (String)

    • :policy_name - required - (String)

    • :scaling_adjustment - required - (Integer)

    • :adjustment_type - required - (String)

    • :cooldown - (Integer)

    • :min_adjustment_step - (Integer)

Returns:

  • (Core::Response)

    The #data method of the response object returns a hash with the following structure:

    • :policy_arn - (String)



# File 'lib/aws/auto_scaling/client.rb', line 410

#put_scheduled_update_group_action(options = {}) ⇒ Core::Response

Calls the PutScheduledUpdateGroupAction API operation.

Parameters:

  • options (Hash) (defaults to: {})
    • :auto_scaling_group_name - required - (String)

    • :scheduled_action_name - required - (String)

    • :time - (String<ISO8601 datetime>)

    • :start_time - (String<ISO8601 datetime>)

    • :end_time - (String<ISO8601 datetime>)

    • :recurrence - (String)

    • :min_size - (Integer)

    • :max_size - (Integer)

    • :desired_capacity - (Integer)

Returns:



# File 'lib/aws/auto_scaling/client.rb', line 424

#resume_processes(options = {}) ⇒ Core::Response

Calls the ResumeProcesses API operation.

Parameters:

  • options (Hash) (defaults to: {})
    • :auto_scaling_group_name - required - (String)

    • :scaling_processes - (Array<String>)

Returns:



# File 'lib/aws/auto_scaling/client.rb', line 438

#set_desired_capacity(options = {}) ⇒ Core::Response

Calls the SetDesiredCapacity API operation.

Parameters:

  • options (Hash) (defaults to: {})
    • :auto_scaling_group_name - required - (String)

    • :desired_capacity - required - (Integer)

    • :honor_cooldown - (Boolean)

Returns:



# File 'lib/aws/auto_scaling/client.rb', line 445

#set_instance_health(options = {}) ⇒ Core::Response

Calls the SetInstanceHealth API operation.

Parameters:

  • options (Hash) (defaults to: {})
    • :instance_id - required - (String)

    • :health_status - required - (String)

    • :should_respect_grace_period - (Boolean)

Returns:



# File 'lib/aws/auto_scaling/client.rb', line 453

#suspend_processes(options = {}) ⇒ Core::Response

Calls the SuspendProcesses API operation.

Parameters:

  • options (Hash) (defaults to: {})
    • :auto_scaling_group_name - required - (String)

    • :scaling_processes - (Array<String>)

Returns:



# File 'lib/aws/auto_scaling/client.rb', line 461

#terminate_instance_in_auto_scaling_group(options = {}) ⇒ Core::Response

Calls the TerminateInstanceInAutoScalingGroup API operation.

Parameters:

  • options (Hash) (defaults to: {})
    • :instance_id - required - (String)

    • :should_decrement_desired_capacity - required - (Boolean)

Returns:

  • (Core::Response)

    The #data method of the response object returns a hash with the following structure:

    • :activity - (Hash)

      • :activity_id - (String)

      • :auto_scaling_group_name - (String)

      • :description - (String)

      • :cause - (String)

      • :start_time - (Time)

      • :end_time - (Time)

      • :status_code - (String)

      • :status_message - (String)

      • :progress - (Integer)

      • :details - (String)



# File 'lib/aws/auto_scaling/client.rb', line 468

#update_auto_scaling_group(options = {}) ⇒ Core::Response

Calls the UpdateAutoScalingGroup API operation.

Parameters:

  • options (Hash) (defaults to: {})
    • :auto_scaling_group_name - required - (String)

    • :launch_configuration_name - (String)

    • :min_size - (Integer)

    • :max_size - (Integer)

    • :desired_capacity - (Integer)

    • :default_cooldown - (Integer)

    • :availability_zones - (Array<String>)

    • :health_check_type - (String)

    • :health_check_grace_period - (Integer)

    • :placement_group - (String)

    • :vpc_zone_identifier - (String)

Returns:



# File 'lib/aws/auto_scaling/client.rb', line 488