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

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 - (Array)
    • :load_balancer_names - (Array)
    • :health_check_type - (String)
    • :health_check_grace_period - (Integer)
    • :placement_group - (String)
    • :vpc_zone_identifier - (String)
    • :termination_policies - (Array)
    • :tags - (Array)
      • :resource_id - (String)
      • :resource_type - (String)
      • :key - required - (String)
      • :value - (String)
      • :propagate_at_launch - (Boolean)

Returns:



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

#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)
    • :user_data - (String)
    • :instance_type - required - (String)
    • :kernel_id - (String)
    • :ramdisk_id - (String)
    • :block_device_mappings - (Array)
      • :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)
    • :ebs_optimized - (Boolean)

Returns:



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

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

Calls the CreateOrUpdateTags API operation.

Parameters:

  • options (Hash) (defaults to: {})
    • :tags - required - (Array)
      • :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)
      • :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)
      • :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)
    • :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)
      • :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)
      • :load_balancer_names - (Array)
      • :health_check_type - (String)
      • :health_check_grace_period - (Integer)
      • :instances - (Array)
      • :instance_id - (String)
      • :availability_zone - (String)
      • :lifecycle_state - (String)
      • :health_status - (String)
      • :launch_configuration_name - (String)
      • :created_time - (Time)
      • :suspended_processes - (Array)
      • :process_name - (String)
      • :suspension_reason - (String)
      • :placement_group - (String)
      • :vpc_zone_identifier - (String)
      • :enabled_metrics - (Array)
      • :metric - (String)
      • :granularity - (String)
      • :status - (String)
      • :tags - (Array)
      • :resource_id - (String)
      • :resource_type - (String)
      • :key - (String)
      • :value - (String)
      • :propagate_at_launch - (Boolean)
      • :termination_policies - (Array)
    • :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)
    • :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)
      • :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 197

#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)


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

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

Calls the DescribeLaunchConfigurations API operation.

Parameters:

  • options (Hash) (defaults to: {})
    • :launch_configuration_names - (Array)
    • :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)
      • :launch_configuration_name - (String)
      • :launch_configuration_arn - (String)
      • :image_id - (String)
      • :key_name - (String)
      • :security_groups - (Array)
      • :user_data - (String)
      • :instance_type - (String)
      • :kernel_id - (String)
      • :ramdisk_id - (String)
      • :block_device_mappings - (Array)
      • :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)
      • :ebs_optimized - (Boolean)
    • :next_token - (String)


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

#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)
      • :metric - (String)
    • :granularities - (Array)
      • :granularity - (String)


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

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

Calls the DescribeNotificationConfigurations API operation.

Parameters:

  • options (Hash) (defaults to: {})
    • :auto_scaling_group_names - (Array)
    • :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)
      • :auto_scaling_group_name - (String)
      • :topic_arn - (String)
      • :notification_type - (String)
    • :next_token - (String)


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

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

Calls the DescribePolicies API operation.

Parameters:

  • options (Hash) (defaults to: {})
    • :auto_scaling_group_name - (String)
    • :policy_names - (Array)
    • :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)
      • :auto_scaling_group_name - (String)
      • :policy_name - (String)
      • :scaling_adjustment - (Integer)
      • :adjustment_type - (String)
      • :cooldown - (Integer)
      • :policy_arn - (String)
      • :alarms - (Array)
      • :alarm_name - (String)
      • :alarm_arn - (String)
      • :min_adjustment_step - (Integer)
    • :next_token - (String)


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

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

Calls the DescribeScalingActivities API operation.

Parameters:

  • options (Hash) (defaults to: {})
    • :activity_ids - (Array)
    • :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)
      • :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 305

#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)
      • :process_name - (String)


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

#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)
    • :start_time - (String)
    • :end_time - (String)
    • :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)
      • :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 337

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

Calls the DescribeTags API operation.

Parameters:

  • options (Hash) (defaults to: {})
    • :filters - (Array)
      • :name - (String)
      • :values - (Array)
    • :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)
      • :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 362

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

Calls the DescribeTerminationPolicyTypes API operation.

Parameters:

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

Returns:

  • (Core::Response)

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

    • :termination_policy_types - (Array)


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

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

Calls the DisableMetricsCollection API operation.

Parameters:

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

Returns:



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

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

Calls the EnableMetricsCollection API operation.

Parameters:

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

Returns:



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

#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 404

#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)

Returns:



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

#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 420

#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)
    • :start_time - (String)
    • :end_time - (String)
    • :recurrence - (String)
    • :min_size - (Integer)
    • :max_size - (Integer)
    • :desired_capacity - (Integer)

Returns:



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

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

Calls the ResumeProcesses API operation.

Parameters:

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

Returns:



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

#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 455

#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 463

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

Calls the SuspendProcesses API operation.

Parameters:

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

Returns:



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

#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 478

#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)
    • :health_check_type - (String)
    • :health_check_grace_period - (Integer)
    • :placement_group - (String)
    • :vpc_zone_identifier - (String)
    • :termination_policies - (Array)

Returns:



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