aws_sdk 3.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/aws-sdk.rb +14 -0
- data/lib/aws.rb +49 -0
- data/lib/aws/api_config/AutoScaling-2011-01-01.yml +791 -0
- data/lib/aws/api_config/CloudFormation-2010-05-15.yml +303 -0
- data/lib/aws/api_config/DynamoDB-2011-12-05.yml +540 -0
- data/lib/aws/api_config/EC2-2011-12-15.yml +3638 -0
- data/lib/aws/api_config/EC2-2012-04-01.yml +3739 -0
- data/lib/aws/api_config/ELB-2011-08-15.yml +512 -0
- data/lib/aws/api_config/IAM-2010-05-08.yml +1221 -0
- data/lib/aws/api_config/SNS-2010-03-31.yml +248 -0
- data/lib/aws/api_config/SQS-2011-10-01.yml +314 -0
- data/lib/aws/api_config/STS-2011-06-15.yml +54 -0
- data/lib/aws/api_config/SimpleDB-2009-04-15.yml +305 -0
- data/lib/aws/api_config/SimpleEmailService-2010-12-01.yml +231 -0
- data/lib/aws/api_config/SimpleWorkflow-2012-01-25.yml +721 -0
- data/lib/aws/auto_scaling.rb +162 -0
- data/lib/aws/auto_scaling/activity.rb +102 -0
- data/lib/aws/auto_scaling/activity_collection.rb +82 -0
- data/lib/aws/auto_scaling/client.rb +765 -0
- data/lib/aws/auto_scaling/config.rb +18 -0
- data/lib/aws/auto_scaling/errors.rb +22 -0
- data/lib/aws/auto_scaling/group.rb +420 -0
- data/lib/aws/auto_scaling/group_collection.rb +96 -0
- data/lib/aws/auto_scaling/group_options.rb +146 -0
- data/lib/aws/auto_scaling/instance.rb +192 -0
- data/lib/aws/auto_scaling/instance_collection.rb +63 -0
- data/lib/aws/auto_scaling/launch_configuration.rb +150 -0
- data/lib/aws/auto_scaling/launch_configuration_collection.rb +144 -0
- data/lib/aws/auto_scaling/notification_configuration.rb +89 -0
- data/lib/aws/auto_scaling/notification_configuration_collection.rb +184 -0
- data/lib/aws/auto_scaling/request.rb +23 -0
- data/lib/aws/auto_scaling/scaling_policy.rb +125 -0
- data/lib/aws/auto_scaling/scaling_policy_collection.rb +72 -0
- data/lib/aws/auto_scaling/scaling_policy_options.rb +61 -0
- data/lib/aws/auto_scaling/scheduled_action.rb +145 -0
- data/lib/aws/auto_scaling/scheduled_action_collection.rb +195 -0
- data/lib/aws/auto_scaling/tag.rb +59 -0
- data/lib/aws/auto_scaling/tag_collection.rb +112 -0
- data/lib/aws/cloud_formation.rb +270 -0
- data/lib/aws/cloud_formation/client.rb +339 -0
- data/lib/aws/cloud_formation/config.rb +18 -0
- data/lib/aws/cloud_formation/errors.rb +22 -0
- data/lib/aws/cloud_formation/request.rb +29 -0
- data/lib/aws/cloud_formation/stack.rb +256 -0
- data/lib/aws/cloud_formation/stack_collection.rb +206 -0
- data/lib/aws/cloud_formation/stack_event.rb +75 -0
- data/lib/aws/cloud_formation/stack_event_collection.rb +47 -0
- data/lib/aws/cloud_formation/stack_options.rb +72 -0
- data/lib/aws/cloud_formation/stack_output.rb +53 -0
- data/lib/aws/cloud_formation/stack_resource.rb +117 -0
- data/lib/aws/cloud_formation/stack_resource_collection.rb +84 -0
- data/lib/aws/cloud_formation/stack_resource_summary_collection.rb +72 -0
- data/lib/aws/cloud_formation/stack_summary.rb +71 -0
- data/lib/aws/cloud_formation/stack_summary_collection.rb +127 -0
- data/lib/aws/core.rb +474 -0
- data/lib/aws/core/async_handle.rb +90 -0
- data/lib/aws/core/autoloader.rb +64 -0
- data/lib/aws/core/cacheable.rb +78 -0
- data/lib/aws/core/client.rb +541 -0
- data/lib/aws/core/client/query_json.rb +110 -0
- data/lib/aws/core/client/query_xml.rb +122 -0
- data/lib/aws/core/collection.rb +234 -0
- data/lib/aws/core/collection/limitable.rb +99 -0
- data/lib/aws/core/collection/simple.rb +90 -0
- data/lib/aws/core/configuration.rb +445 -0
- data/lib/aws/core/data.rb +242 -0
- data/lib/aws/core/default_signer.rb +67 -0
- data/lib/aws/core/http/curb_handler.rb +136 -0
- data/lib/aws/core/http/handler.rb +77 -0
- data/lib/aws/core/http/httparty_handler.rb +114 -0
- data/lib/aws/core/http/net_http_handler.rb +85 -0
- data/lib/aws/core/http/request.rb +250 -0
- data/lib/aws/core/http/response.rb +74 -0
- data/lib/aws/core/indifferent_hash.rb +88 -0
- data/lib/aws/core/inflection.rb +47 -0
- data/lib/aws/core/lazy_error_classes.rb +90 -0
- data/lib/aws/core/log_formatter.rb +454 -0
- data/lib/aws/core/meta_utils.rb +45 -0
- data/lib/aws/core/model.rb +57 -0
- data/lib/aws/core/naming.rb +30 -0
- data/lib/aws/core/option_grammar.rb +700 -0
- data/lib/aws/core/page_result.rb +73 -0
- data/lib/aws/core/policy.rb +916 -0
- data/lib/aws/core/resource.rb +408 -0
- data/lib/aws/core/resource_cache.rb +40 -0
- data/lib/aws/core/response.rb +202 -0
- data/lib/aws/core/response_cache.rb +50 -0
- data/lib/aws/core/service_interface.rb +61 -0
- data/lib/aws/core/session_signer.rb +90 -0
- data/lib/aws/core/signature/version_2.rb +42 -0
- data/lib/aws/core/signature/version_3.rb +73 -0
- data/lib/aws/core/signature/version_3_http.rb +72 -0
- data/lib/aws/core/signature/version_4.rb +138 -0
- data/lib/aws/core/uri_escape.rb +42 -0
- data/lib/aws/core/xml/frame.rb +242 -0
- data/lib/aws/core/xml/frame_stack.rb +85 -0
- data/lib/aws/core/xml/grammar.rb +299 -0
- data/lib/aws/core/xml/parser.rb +70 -0
- data/lib/aws/core/xml/root_frame.rb +65 -0
- data/lib/aws/core/xml/sax_handlers/libxml.rb +47 -0
- data/lib/aws/core/xml/sax_handlers/nokogiri.rb +55 -0
- data/lib/aws/core/xml/sax_handlers/ox.rb +41 -0
- data/lib/aws/core/xml/sax_handlers/rexml.rb +43 -0
- data/lib/aws/core/xml/stub.rb +123 -0
- data/lib/aws/dynamo_db.rb +213 -0
- data/lib/aws/dynamo_db/attribute_collection.rb +460 -0
- data/lib/aws/dynamo_db/batch_get.rb +206 -0
- data/lib/aws/dynamo_db/batch_write.rb +251 -0
- data/lib/aws/dynamo_db/client.rb +888 -0
- data/lib/aws/dynamo_db/config.rb +20 -0
- data/lib/aws/dynamo_db/errors.rb +20 -0
- data/lib/aws/dynamo_db/expectations.rb +40 -0
- data/lib/aws/dynamo_db/item.rb +130 -0
- data/lib/aws/dynamo_db/item_collection.rb +852 -0
- data/lib/aws/dynamo_db/item_data.rb +31 -0
- data/lib/aws/dynamo_db/keys.rb +41 -0
- data/lib/aws/dynamo_db/primary_key_element.rb +47 -0
- data/lib/aws/dynamo_db/request.rb +28 -0
- data/lib/aws/dynamo_db/resource.rb +33 -0
- data/lib/aws/dynamo_db/table.rb +489 -0
- data/lib/aws/dynamo_db/table_collection.rb +165 -0
- data/lib/aws/dynamo_db/types.rb +86 -0
- data/lib/aws/ec2.rb +431 -0
- data/lib/aws/ec2/attachment.rb +140 -0
- data/lib/aws/ec2/attachment_collection.rb +54 -0
- data/lib/aws/ec2/availability_zone.rb +87 -0
- data/lib/aws/ec2/availability_zone_collection.rb +43 -0
- data/lib/aws/ec2/block_device_mappings.rb +53 -0
- data/lib/aws/ec2/client.rb +4121 -0
- data/lib/aws/ec2/collection.rb +36 -0
- data/lib/aws/ec2/config.rb +18 -0
- data/lib/aws/ec2/config_transform.rb +63 -0
- data/lib/aws/ec2/customer_gateway.rb +90 -0
- data/lib/aws/ec2/customer_gateway_collection.rb +73 -0
- data/lib/aws/ec2/dhcp_options.rb +106 -0
- data/lib/aws/ec2/dhcp_options_collection.rb +87 -0
- data/lib/aws/ec2/elastic_ip.rb +157 -0
- data/lib/aws/ec2/elastic_ip_collection.rb +97 -0
- data/lib/aws/ec2/errors.rb +32 -0
- data/lib/aws/ec2/filtered_collection.rb +90 -0
- data/lib/aws/ec2/has_permissions.rb +44 -0
- data/lib/aws/ec2/image.rb +254 -0
- data/lib/aws/ec2/image_collection.rb +228 -0
- data/lib/aws/ec2/instance.rb +669 -0
- data/lib/aws/ec2/instance_collection.rb +346 -0
- data/lib/aws/ec2/internet_gateway.rb +122 -0
- data/lib/aws/ec2/internet_gateway/attachment.rb +78 -0
- data/lib/aws/ec2/internet_gateway_collection.rb +54 -0
- data/lib/aws/ec2/key_pair.rb +82 -0
- data/lib/aws/ec2/key_pair_collection.rb +99 -0
- data/lib/aws/ec2/network_acl.rb +256 -0
- data/lib/aws/ec2/network_acl/association.rb +56 -0
- data/lib/aws/ec2/network_acl/entry.rb +147 -0
- data/lib/aws/ec2/network_acl_collection.rb +64 -0
- data/lib/aws/ec2/network_interface.rb +228 -0
- data/lib/aws/ec2/network_interface/attachment.rb +100 -0
- data/lib/aws/ec2/network_interface_collection.rb +103 -0
- data/lib/aws/ec2/permission_collection.rb +174 -0
- data/lib/aws/ec2/region.rb +97 -0
- data/lib/aws/ec2/region_collection.rb +51 -0
- data/lib/aws/ec2/request.rb +22 -0
- data/lib/aws/ec2/reserved_instances.rb +53 -0
- data/lib/aws/ec2/reserved_instances_collection.rb +40 -0
- data/lib/aws/ec2/reserved_instances_offering.rb +58 -0
- data/lib/aws/ec2/reserved_instances_offering_collection.rb +39 -0
- data/lib/aws/ec2/resource.rb +161 -0
- data/lib/aws/ec2/resource_tag_collection.rb +211 -0
- data/lib/aws/ec2/route_table.rb +205 -0
- data/lib/aws/ec2/route_table/association.rb +119 -0
- data/lib/aws/ec2/route_table/route.rb +113 -0
- data/lib/aws/ec2/route_table_collection.rb +72 -0
- data/lib/aws/ec2/security_group.rb +458 -0
- data/lib/aws/ec2/security_group/egress_ip_permission_collection.rb +63 -0
- data/lib/aws/ec2/security_group/ingress_ip_permission_collection.rb +61 -0
- data/lib/aws/ec2/security_group/ip_permission.rb +128 -0
- data/lib/aws/ec2/security_group_collection.rb +135 -0
- data/lib/aws/ec2/snapshot.rb +143 -0
- data/lib/aws/ec2/snapshot_collection.rb +131 -0
- data/lib/aws/ec2/subnet.rb +161 -0
- data/lib/aws/ec2/subnet_collection.rb +115 -0
- data/lib/aws/ec2/tag.rb +81 -0
- data/lib/aws/ec2/tag_collection.rb +107 -0
- data/lib/aws/ec2/tagged_collection.rb +53 -0
- data/lib/aws/ec2/tagged_item.rb +85 -0
- data/lib/aws/ec2/volume.rb +170 -0
- data/lib/aws/ec2/volume_collection.rb +97 -0
- data/lib/aws/ec2/vpc.rb +166 -0
- data/lib/aws/ec2/vpc_collection.rb +70 -0
- data/lib/aws/ec2/vpn_connection.rb +99 -0
- data/lib/aws/ec2/vpn_connection/telemetry.rb +49 -0
- data/lib/aws/ec2/vpn_connection_collection.rb +96 -0
- data/lib/aws/ec2/vpn_gateway.rb +123 -0
- data/lib/aws/ec2/vpn_gateway/attachment.rb +45 -0
- data/lib/aws/ec2/vpn_gateway_collection.rb +77 -0
- data/lib/aws/elb.rb +65 -0
- data/lib/aws/elb/availability_zone_collection.rb +138 -0
- data/lib/aws/elb/backend_server_policy_collection.rb +140 -0
- data/lib/aws/elb/client.rb +539 -0
- data/lib/aws/elb/config.rb +18 -0
- data/lib/aws/elb/errors.rb +26 -0
- data/lib/aws/elb/instance_collection.rb +174 -0
- data/lib/aws/elb/listener.rb +189 -0
- data/lib/aws/elb/listener_collection.rb +119 -0
- data/lib/aws/elb/listener_opts.rb +45 -0
- data/lib/aws/elb/load_balancer.rb +253 -0
- data/lib/aws/elb/load_balancer_collection.rb +113 -0
- data/lib/aws/elb/load_balancer_policy.rb +93 -0
- data/lib/aws/elb/load_balancer_policy_collection.rb +208 -0
- data/lib/aws/elb/request.rb +23 -0
- data/lib/aws/errors.rb +122 -0
- data/lib/aws/iam.rb +418 -0
- data/lib/aws/iam/access_key.rb +180 -0
- data/lib/aws/iam/access_key_collection.rb +128 -0
- data/lib/aws/iam/account_alias_collection.rb +79 -0
- data/lib/aws/iam/client.rb +1609 -0
- data/lib/aws/iam/collection.rb +83 -0
- data/lib/aws/iam/config.rb +18 -0
- data/lib/aws/iam/errors.rb +22 -0
- data/lib/aws/iam/group.rb +111 -0
- data/lib/aws/iam/group_collection.rb +132 -0
- data/lib/aws/iam/group_policy_collection.rb +47 -0
- data/lib/aws/iam/group_user_collection.rb +84 -0
- data/lib/aws/iam/login_profile.rb +99 -0
- data/lib/aws/iam/mfa_device.rb +52 -0
- data/lib/aws/iam/mfa_device_collection.rb +127 -0
- data/lib/aws/iam/policy.rb +46 -0
- data/lib/aws/iam/policy_collection.rb +188 -0
- data/lib/aws/iam/request.rb +29 -0
- data/lib/aws/iam/resource.rb +71 -0
- data/lib/aws/iam/server_certificate.rb +141 -0
- data/lib/aws/iam/server_certificate_collection.rb +138 -0
- data/lib/aws/iam/signing_certificate.rb +169 -0
- data/lib/aws/iam/signing_certificate_collection.rb +131 -0
- data/lib/aws/iam/user.rb +205 -0
- data/lib/aws/iam/user_collection.rb +133 -0
- data/lib/aws/iam/user_group_collection.rb +98 -0
- data/lib/aws/iam/user_policy.rb +90 -0
- data/lib/aws/iam/user_policy_collection.rb +45 -0
- data/lib/aws/iam/virtual_mfa_device.rb +139 -0
- data/lib/aws/iam/virtual_mfa_device_collection.rb +73 -0
- data/lib/aws/rails.rb +195 -0
- data/lib/aws/record.rb +116 -0
- data/lib/aws/record/abstract_base.rb +645 -0
- data/lib/aws/record/attributes.rb +384 -0
- data/lib/aws/record/conversion.rb +38 -0
- data/lib/aws/record/dirty_tracking.rb +285 -0
- data/lib/aws/record/errors.rb +143 -0
- data/lib/aws/record/exceptions.rb +48 -0
- data/lib/aws/record/hash_model.rb +161 -0
- data/lib/aws/record/hash_model/attributes.rb +182 -0
- data/lib/aws/record/hash_model/finder_methods.rb +172 -0
- data/lib/aws/record/hash_model/scope.rb +108 -0
- data/lib/aws/record/model.rb +427 -0
- data/lib/aws/record/model/attributes.rb +379 -0
- data/lib/aws/record/model/finder_methods.rb +232 -0
- data/lib/aws/record/model/scope.rb +213 -0
- data/lib/aws/record/naming.rb +31 -0
- data/lib/aws/record/scope.rb +199 -0
- data/lib/aws/record/validations.rb +694 -0
- data/lib/aws/record/validator.rb +237 -0
- data/lib/aws/record/validators/acceptance.rb +51 -0
- data/lib/aws/record/validators/block.rb +38 -0
- data/lib/aws/record/validators/confirmation.rb +43 -0
- data/lib/aws/record/validators/count.rb +108 -0
- data/lib/aws/record/validators/exclusion.rb +43 -0
- data/lib/aws/record/validators/format.rb +57 -0
- data/lib/aws/record/validators/inclusion.rb +56 -0
- data/lib/aws/record/validators/length.rb +107 -0
- data/lib/aws/record/validators/method.rb +33 -0
- data/lib/aws/record/validators/numericality.rb +138 -0
- data/lib/aws/record/validators/presence.rb +45 -0
- data/lib/aws/s3.rb +135 -0
- data/lib/aws/s3/access_control_list.rb +250 -0
- data/lib/aws/s3/acl_object.rb +264 -0
- data/lib/aws/s3/bucket.rb +393 -0
- data/lib/aws/s3/bucket_collection.rb +143 -0
- data/lib/aws/s3/bucket_lifecycle_configuration.rb +360 -0
- data/lib/aws/s3/bucket_version_collection.rb +77 -0
- data/lib/aws/s3/client.rb +1184 -0
- data/lib/aws/s3/client/xml.rb +177 -0
- data/lib/aws/s3/config.rb +26 -0
- data/lib/aws/s3/data_options.rb +100 -0
- data/lib/aws/s3/errors.rb +81 -0
- data/lib/aws/s3/multipart_upload.rb +317 -0
- data/lib/aws/s3/multipart_upload_collection.rb +68 -0
- data/lib/aws/s3/object_collection.rb +337 -0
- data/lib/aws/s3/object_metadata.rb +96 -0
- data/lib/aws/s3/object_upload_collection.rb +77 -0
- data/lib/aws/s3/object_version.rb +143 -0
- data/lib/aws/s3/object_version_collection.rb +89 -0
- data/lib/aws/s3/paginated_collection.rb +75 -0
- data/lib/aws/s3/policy.rb +74 -0
- data/lib/aws/s3/prefix_and_delimiter_collection.rb +47 -0
- data/lib/aws/s3/prefixed_collection.rb +81 -0
- data/lib/aws/s3/presigned_post.rb +553 -0
- data/lib/aws/s3/request.rb +201 -0
- data/lib/aws/s3/s3_object.rb +1037 -0
- data/lib/aws/s3/tree.rb +118 -0
- data/lib/aws/s3/tree/branch_node.rb +68 -0
- data/lib/aws/s3/tree/child_collection.rb +104 -0
- data/lib/aws/s3/tree/leaf_node.rb +94 -0
- data/lib/aws/s3/tree/node.rb +22 -0
- data/lib/aws/s3/tree/parent.rb +87 -0
- data/lib/aws/s3/uploaded_part.rb +80 -0
- data/lib/aws/s3/uploaded_part_collection.rb +84 -0
- data/lib/aws/simple_db.rb +217 -0
- data/lib/aws/simple_db/attribute.rb +154 -0
- data/lib/aws/simple_db/attribute_collection.rb +231 -0
- data/lib/aws/simple_db/client.rb +349 -0
- data/lib/aws/simple_db/config.rb +20 -0
- data/lib/aws/simple_db/consistent_read_option.rb +42 -0
- data/lib/aws/simple_db/delete_attributes.rb +62 -0
- data/lib/aws/simple_db/domain.rb +121 -0
- data/lib/aws/simple_db/domain_collection.rb +113 -0
- data/lib/aws/simple_db/domain_metadata.rb +110 -0
- data/lib/aws/simple_db/errors.rb +55 -0
- data/lib/aws/simple_db/expect_condition_option.rb +45 -0
- data/lib/aws/simple_db/item.rb +93 -0
- data/lib/aws/simple_db/item_collection.rb +649 -0
- data/lib/aws/simple_db/item_data.rb +73 -0
- data/lib/aws/simple_db/put_attributes.rb +60 -0
- data/lib/aws/simple_db/request.rb +23 -0
- data/lib/aws/simple_email_service.rb +426 -0
- data/lib/aws/simple_email_service/client.rb +286 -0
- data/lib/aws/simple_email_service/config.rb +19 -0
- data/lib/aws/simple_email_service/email_address_collection.rb +69 -0
- data/lib/aws/simple_email_service/errors.rb +22 -0
- data/lib/aws/simple_email_service/identity.rb +91 -0
- data/lib/aws/simple_email_service/identity_collection.rb +81 -0
- data/lib/aws/simple_email_service/quotas.rb +64 -0
- data/lib/aws/simple_email_service/request.rb +29 -0
- data/lib/aws/simple_workflow.rb +226 -0
- data/lib/aws/simple_workflow/activity_task.rb +173 -0
- data/lib/aws/simple_workflow/activity_task_collection.rb +123 -0
- data/lib/aws/simple_workflow/activity_type.rb +131 -0
- data/lib/aws/simple_workflow/activity_type_collection.rb +93 -0
- data/lib/aws/simple_workflow/client.rb +1434 -0
- data/lib/aws/simple_workflow/config.rb +18 -0
- data/lib/aws/simple_workflow/count.rb +49 -0
- data/lib/aws/simple_workflow/decision_task.rb +601 -0
- data/lib/aws/simple_workflow/decision_task_collection.rb +225 -0
- data/lib/aws/simple_workflow/domain.rb +122 -0
- data/lib/aws/simple_workflow/domain_collection.rb +169 -0
- data/lib/aws/simple_workflow/errors.rb +20 -0
- data/lib/aws/simple_workflow/history_event.rb +276 -0
- data/lib/aws/simple_workflow/history_event_collection.rb +76 -0
- data/lib/aws/simple_workflow/option_formatters.rb +82 -0
- data/lib/aws/simple_workflow/request.rb +36 -0
- data/lib/aws/simple_workflow/resource.rb +94 -0
- data/lib/aws/simple_workflow/type.rb +89 -0
- data/lib/aws/simple_workflow/type_collection.rb +140 -0
- data/lib/aws/simple_workflow/workflow_execution.rb +386 -0
- data/lib/aws/simple_workflow/workflow_execution_collection.rb +617 -0
- data/lib/aws/simple_workflow/workflow_type.rb +177 -0
- data/lib/aws/simple_workflow/workflow_type_collection.rb +91 -0
- data/lib/aws/sns.rb +74 -0
- data/lib/aws/sns/client.rb +371 -0
- data/lib/aws/sns/config.rb +18 -0
- data/lib/aws/sns/errors.rb +22 -0
- data/lib/aws/sns/has_delivery_policy.rb +68 -0
- data/lib/aws/sns/policy.rb +47 -0
- data/lib/aws/sns/request.rb +23 -0
- data/lib/aws/sns/subscription.rb +144 -0
- data/lib/aws/sns/subscription_collection.rb +80 -0
- data/lib/aws/sns/topic.rb +403 -0
- data/lib/aws/sns/topic_collection.rb +67 -0
- data/lib/aws/sns/topic_subscription_collection.rb +55 -0
- data/lib/aws/sqs.rb +79 -0
- data/lib/aws/sqs/client.rb +360 -0
- data/lib/aws/sqs/config.rb +18 -0
- data/lib/aws/sqs/errors.rb +101 -0
- data/lib/aws/sqs/policy.rb +48 -0
- data/lib/aws/sqs/queue.rb +725 -0
- data/lib/aws/sqs/queue_collection.rb +170 -0
- data/lib/aws/sqs/received_message.rb +181 -0
- data/lib/aws/sqs/received_sns_message.rb +112 -0
- data/lib/aws/sqs/request.rb +43 -0
- data/lib/aws/sts.rb +152 -0
- data/lib/aws/sts/client.rb +105 -0
- data/lib/aws/sts/config.rb +18 -0
- data/lib/aws/sts/errors.rb +22 -0
- data/lib/aws/sts/federated_session.rb +56 -0
- data/lib/aws/sts/policy.rb +30 -0
- data/lib/aws/sts/request.rb +29 -0
- data/lib/aws/sts/session.rb +48 -0
- data/lib/net/http/connection_pool.rb +210 -0
- data/lib/net/http/connection_pool/connection.rb +132 -0
- data/lib/net/http/connection_pool/session.rb +93 -0
- data/lib/user.rb +49 -0
- metadata +433 -0
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
# Copyright 2011-2012 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
2
|
+
#
|
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License"). You
|
|
4
|
+
# may not use this file except in compliance with the License. A copy of
|
|
5
|
+
# the License is located at
|
|
6
|
+
#
|
|
7
|
+
# http://aws.amazon.com/apache2.0/
|
|
8
|
+
#
|
|
9
|
+
# or in the "license" file accompanying this file. This file is
|
|
10
|
+
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
|
|
11
|
+
# ANY KIND, either express or implied. See the License for the specific
|
|
12
|
+
# language governing permissions and limitations under the License.
|
|
13
|
+
|
|
14
|
+
require 'aws/core'
|
|
15
|
+
require 'aws/auto_scaling/config'
|
|
16
|
+
|
|
17
|
+
module AWS
|
|
18
|
+
|
|
19
|
+
# This class is the starting point for working with Auto Scaling.
|
|
20
|
+
#
|
|
21
|
+
# To use Auto Scaling you must first
|
|
22
|
+
# {sign up here}[http://aws.amazon.com/autoscaling/].
|
|
23
|
+
#
|
|
24
|
+
# For more information about Auto Scaling:
|
|
25
|
+
#
|
|
26
|
+
# * {Auto Scaling}[http://aws.amazon.com/autoscaling/]
|
|
27
|
+
# * {Auto Scaling Documentation}[http://aws.amazon.com/documentation/autoscaling/]
|
|
28
|
+
#
|
|
29
|
+
# = Credentials
|
|
30
|
+
#
|
|
31
|
+
# You can setup default credentials for all AWS services via
|
|
32
|
+
# AWS.config:
|
|
33
|
+
#
|
|
34
|
+
# AWS.config(
|
|
35
|
+
# :access_key_id => 'YOUR_ACCESS_KEY_ID',
|
|
36
|
+
# :secret_access_key => 'YOUR_SECRET_ACCESS_KEY')
|
|
37
|
+
#
|
|
38
|
+
# Or you can set them directly on the AWS::AutoSclaing interface:
|
|
39
|
+
#
|
|
40
|
+
# auto_scaling = AWS::AutoScaling.new(
|
|
41
|
+
# :access_key_id => 'YOUR_ACCESS_KEY_ID',
|
|
42
|
+
# :secret_access_key => 'YOUR_SECRET_ACCESS_KEY')
|
|
43
|
+
#
|
|
44
|
+
# = Launch Configurations
|
|
45
|
+
#
|
|
46
|
+
# You need to create a launch configuration before you can create
|
|
47
|
+
# an Auto Scaling Group.
|
|
48
|
+
#
|
|
49
|
+
# # needs a name, image id, and instance type
|
|
50
|
+
# launch_config = auto_scaling.launch_configurations.create(
|
|
51
|
+
# 'launch-config-name', 'ami-12345', 'm1-small')
|
|
52
|
+
#
|
|
53
|
+
# If you have previously created a launch configuration you can
|
|
54
|
+
# reference using the {LaunchConfigurationCollection}.
|
|
55
|
+
#
|
|
56
|
+
# launch_config = auto_scaling.launch_configurations['launch-config-name']
|
|
57
|
+
#
|
|
58
|
+
# = Auto Scaling Groups
|
|
59
|
+
#
|
|
60
|
+
# Given a launch configuration, you can now create an Auto Scaling {Group}.
|
|
61
|
+
#
|
|
62
|
+
# group = auto_scaling.groups.create('group-name',
|
|
63
|
+
# :launch_configuration => launch_config,
|
|
64
|
+
# :availability_zones => %(us-east-1a us-east-1b),
|
|
65
|
+
# :min_size => 1,
|
|
66
|
+
# :max_size => 4)
|
|
67
|
+
#
|
|
68
|
+
class AutoScaling
|
|
69
|
+
|
|
70
|
+
AWS.register_autoloads(self, 'aws/auto_scaling') do
|
|
71
|
+
autoload :Activity, 'activity'
|
|
72
|
+
autoload :ActivityCollection, 'activity_collection'
|
|
73
|
+
autoload :Client, 'client'
|
|
74
|
+
autoload :Errors, 'errors'
|
|
75
|
+
autoload :Group, 'group'
|
|
76
|
+
autoload :GroupCollection, 'group_collection'
|
|
77
|
+
autoload :GroupOptions, 'group_options'
|
|
78
|
+
autoload :Instance, 'instance'
|
|
79
|
+
autoload :InstanceCollection, 'instance_collection'
|
|
80
|
+
autoload :LaunchConfiguration, 'launch_configuration'
|
|
81
|
+
autoload :LaunchConfigurationCollection, 'launch_configuration_collection'
|
|
82
|
+
autoload :NotificationConfiguration, 'notification_configuration'
|
|
83
|
+
autoload :NotificationConfigurationCollection, 'notification_configuration_collection'
|
|
84
|
+
autoload :Request, 'request'
|
|
85
|
+
autoload :ScalingPolicy, 'scaling_policy'
|
|
86
|
+
autoload :ScalingPolicyCollection, 'scaling_policy_collection'
|
|
87
|
+
autoload :ScalingPolicyOptions, 'scaling_policy_options'
|
|
88
|
+
autoload :ScheduledAction, 'scheduled_action'
|
|
89
|
+
autoload :ScheduledActionCollection, 'scheduled_action_collection'
|
|
90
|
+
autoload :Tag, 'tag'
|
|
91
|
+
autoload :TagCollection, 'tag_collection'
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
include Core::ServiceInterface
|
|
95
|
+
|
|
96
|
+
# @return [LaunchConfigurationCollection]
|
|
97
|
+
def launch_configurations
|
|
98
|
+
LaunchConfigurationCollection.new(:config => config)
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
# @return [GroupCollection]
|
|
102
|
+
def groups
|
|
103
|
+
GroupCollection.new(:config => config)
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
# @return [TagCollection]
|
|
107
|
+
def tags
|
|
108
|
+
TagCollection.new(:config => config)
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
# @return [NotificationConfigurationCollection]
|
|
112
|
+
def notification_configurations
|
|
113
|
+
NotificationConfigurationCollection.new(:config => config)
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
# @return [AutoScaling::InstancesCollection] Returns a collection of
|
|
117
|
+
# {AutoScaling::Instance} objects. Each of these is a small
|
|
118
|
+
# wrapper around an {EC2::Instance} with additional attributes.
|
|
119
|
+
def instances
|
|
120
|
+
InstanceCollection.new(:config => config)
|
|
121
|
+
end
|
|
122
|
+
|
|
123
|
+
# @return [ActivityCollection]
|
|
124
|
+
def activities
|
|
125
|
+
ActivityCollection.new(:config => config)
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
# @return [ScheduledActionCollection]
|
|
129
|
+
def scheduled_actions
|
|
130
|
+
ScheduledActionCollection.new(:config => config)
|
|
131
|
+
end
|
|
132
|
+
|
|
133
|
+
# Returns a list of all notification types that are supported by
|
|
134
|
+
# Auto Scaling.
|
|
135
|
+
# @return [Array<String>]
|
|
136
|
+
def notification_types
|
|
137
|
+
resp = client.describe_auto_scaling_notification_types
|
|
138
|
+
resp.auto_scaling_notification_types
|
|
139
|
+
end
|
|
140
|
+
|
|
141
|
+
# @return [Array<String>] Returns the list of valid adjustmet types.
|
|
142
|
+
def adjustment_types
|
|
143
|
+
client.describe_adjustment_types.adjustment_types.map(&:adjustment_type)
|
|
144
|
+
end
|
|
145
|
+
|
|
146
|
+
# @return [Array<String>] Returns the list of valid scaling process types.
|
|
147
|
+
def scaling_process_types
|
|
148
|
+
client.describe_scaling_process_types.processes.map(&:process_name)
|
|
149
|
+
end
|
|
150
|
+
|
|
151
|
+
# @return [Array<String>] Returns the list of valid metric collection types.
|
|
152
|
+
def metric_collection_types
|
|
153
|
+
client.describe_metric_collection_types.metrics.map(&:metric)
|
|
154
|
+
end
|
|
155
|
+
|
|
156
|
+
# @return [Array<String>] Returns the list of valid metric granularities.
|
|
157
|
+
def metric_collection_granularities
|
|
158
|
+
client.describe_metric_collection_types.granularities.map(&:granularity)
|
|
159
|
+
end
|
|
160
|
+
|
|
161
|
+
end
|
|
162
|
+
end
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
# Copyright 2011-2012 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
2
|
+
#.kkk:w
|
|
3
|
+
|
|
4
|
+
# Licensed under the Apache License, Version 2.0 (the "License"). You
|
|
5
|
+
# may not use this file except in compliance with the License. A copy of
|
|
6
|
+
# the License is located at
|
|
7
|
+
#
|
|
8
|
+
# http://aws.amazon.com/apache2.0/
|
|
9
|
+
#
|
|
10
|
+
# or in the "license" file accompanying this file. This file is
|
|
11
|
+
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
|
|
12
|
+
# ANY KIND, either express or implied. See the License for the specific
|
|
13
|
+
# language governing permissions and limitations under the License.
|
|
14
|
+
|
|
15
|
+
module AWS
|
|
16
|
+
class AutoScaling
|
|
17
|
+
|
|
18
|
+
# @attr_reader [String] auto_scaling_group_name
|
|
19
|
+
#
|
|
20
|
+
# @attr_reader [String] cause
|
|
21
|
+
#
|
|
22
|
+
# @attr_reader [nil,String] description
|
|
23
|
+
#
|
|
24
|
+
# @attr_reader [String] details
|
|
25
|
+
#
|
|
26
|
+
# @attr_reader [Time] start_time
|
|
27
|
+
#
|
|
28
|
+
# @attr_reader [nil,Time] end_time
|
|
29
|
+
#
|
|
30
|
+
# @attr_reader [Integer] progress
|
|
31
|
+
#
|
|
32
|
+
# @attr_reader [nil,String] status_code
|
|
33
|
+
#
|
|
34
|
+
# @attr_reader [nil,String] status_message
|
|
35
|
+
#
|
|
36
|
+
class Activity < Core::Resource
|
|
37
|
+
|
|
38
|
+
# @private
|
|
39
|
+
def initialize activity_id, options = {}
|
|
40
|
+
@activity_id = activity_id
|
|
41
|
+
super
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
# @return [String]
|
|
45
|
+
attr_reader :activity_id
|
|
46
|
+
|
|
47
|
+
alias_method :id, :activity_id
|
|
48
|
+
|
|
49
|
+
attribute :auto_scaling_group_name, :static => true
|
|
50
|
+
|
|
51
|
+
attribute :cause, :static => true
|
|
52
|
+
|
|
53
|
+
attribute :description, :static => true
|
|
54
|
+
|
|
55
|
+
attribute :details
|
|
56
|
+
|
|
57
|
+
attribute :start_time, :static => true
|
|
58
|
+
|
|
59
|
+
attribute :end_time
|
|
60
|
+
|
|
61
|
+
attribute :progress
|
|
62
|
+
|
|
63
|
+
attribute :status_code
|
|
64
|
+
|
|
65
|
+
attribute :status_message
|
|
66
|
+
|
|
67
|
+
populates_from(:describe_scaling_activities) do |resp|
|
|
68
|
+
resp.activities.find {|a| a.activity_id == activity_id }
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
populates_from(:terminate_instance_in_auto_scaling_group) do |resp|
|
|
72
|
+
resp.activity if resp.activity.activity_id == activity_id
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
# @return [Group]
|
|
76
|
+
def group
|
|
77
|
+
Group.new(auto_scaling_group_name, :config => config)
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
# @return [Boolean]
|
|
81
|
+
def exists?
|
|
82
|
+
client_opts = {}
|
|
83
|
+
client_opts[:activity_ids] = [activity_id]
|
|
84
|
+
resp = client.describe_scaling_activities(client_opts)
|
|
85
|
+
!resp.activities.empty?
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
protected
|
|
89
|
+
|
|
90
|
+
def get_resource attr_name = nil
|
|
91
|
+
client_opts = {}
|
|
92
|
+
client_opts[:activity_ids] = [activity_id]
|
|
93
|
+
client.describe_scaling_activities(client_opts)
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
def resource_identifiers
|
|
97
|
+
[[:activity_id, activity_id]]
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
end
|
|
101
|
+
end
|
|
102
|
+
end
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
# Copyright 2011-2012 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
2
|
+
#
|
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License"). You
|
|
4
|
+
# may not use this file except in compliance with the License. A copy of
|
|
5
|
+
# the License is located at
|
|
6
|
+
#
|
|
7
|
+
# http://aws.amazon.com/apache2.0/
|
|
8
|
+
#
|
|
9
|
+
# or in the "license" file accompanying this file. This file is
|
|
10
|
+
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
|
|
11
|
+
# ANY KIND, either express or implied. See the License for the specific
|
|
12
|
+
# language governing permissions and limitations under the License.
|
|
13
|
+
|
|
14
|
+
module AWS
|
|
15
|
+
class AutoScaling
|
|
16
|
+
|
|
17
|
+
# Allows you to enumerate Auto Scaling activities
|
|
18
|
+
#
|
|
19
|
+
# Enumerating ALL activities:
|
|
20
|
+
#
|
|
21
|
+
# auto_scaling = AWS::AutoScaling.new
|
|
22
|
+
# auto_scaling.activities.each do |activity|
|
|
23
|
+
# # ...
|
|
24
|
+
# end
|
|
25
|
+
#
|
|
26
|
+
# Enumerating activities for a single Auto Scaling group:
|
|
27
|
+
#
|
|
28
|
+
# group = auto_scaling.groups['group-name']
|
|
29
|
+
# group.activities.each do |activity|
|
|
30
|
+
# # ...
|
|
31
|
+
# end
|
|
32
|
+
#
|
|
33
|
+
# If you know the id of an activity you can get a refernce to it:
|
|
34
|
+
#
|
|
35
|
+
# activity = auto_scaling.activities['activity-id']
|
|
36
|
+
#
|
|
37
|
+
class ActivityCollection
|
|
38
|
+
|
|
39
|
+
include Core::Collection::Limitable
|
|
40
|
+
|
|
41
|
+
# @private
|
|
42
|
+
def initialize options = {}
|
|
43
|
+
@group = options[:group]
|
|
44
|
+
if @group
|
|
45
|
+
super(@group, options)
|
|
46
|
+
else
|
|
47
|
+
super
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
# @param [String] activity_id
|
|
52
|
+
# @return [Activity]
|
|
53
|
+
def [] activity_id
|
|
54
|
+
Activity.new(activity_id, :config => config)
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
protected
|
|
58
|
+
|
|
59
|
+
def _each_item next_token, limit, options = {}, &block
|
|
60
|
+
|
|
61
|
+
options[:next_token] = next_token if next_token
|
|
62
|
+
options[:max_records] = limit if limit
|
|
63
|
+
options[:auto_scaling_group_name] = @group.name if @group
|
|
64
|
+
|
|
65
|
+
resp = client.describe_scaling_activities(options)
|
|
66
|
+
resp.activities.each do |details|
|
|
67
|
+
|
|
68
|
+
activity = Activity.new_from(
|
|
69
|
+
:describe_scaling_activities, details,
|
|
70
|
+
details.activity_id, :config => config)
|
|
71
|
+
|
|
72
|
+
yield(activity)
|
|
73
|
+
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
resp.data[:next_token]
|
|
77
|
+
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
end
|
|
81
|
+
end
|
|
82
|
+
end
|
|
@@ -0,0 +1,765 @@
|
|
|
1
|
+
# Copyright 2011-2012 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
2
|
+
#
|
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License"). You
|
|
4
|
+
# may not use this file except in compliance with the License. A copy of
|
|
5
|
+
# the License is located at
|
|
6
|
+
#
|
|
7
|
+
# http://aws.amazon.com/apache2.0/
|
|
8
|
+
#
|
|
9
|
+
# or in the "license" file accompanying this file. This file is
|
|
10
|
+
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
|
|
11
|
+
# ANY KIND, either express or implied. See the License for the specific
|
|
12
|
+
# language governing permissions and limitations under the License.
|
|
13
|
+
|
|
14
|
+
module AWS
|
|
15
|
+
class AutoScaling
|
|
16
|
+
|
|
17
|
+
# Client class for Auto Scaling.
|
|
18
|
+
class Client < Core::Client
|
|
19
|
+
|
|
20
|
+
API_VERSION = '2011-01-01'
|
|
21
|
+
|
|
22
|
+
extend Core::Client::QueryXML
|
|
23
|
+
|
|
24
|
+
# @private
|
|
25
|
+
CACHEABLE_REQUESTS = Set[
|
|
26
|
+
:describe_adjustment_types,
|
|
27
|
+
:describe_auto_scaling_groups,
|
|
28
|
+
:describe_auto_scaling_instances,
|
|
29
|
+
:describe_auto_scaling_notification_types,
|
|
30
|
+
:describe_launch_configurations,
|
|
31
|
+
:describe_metric_collection_types,
|
|
32
|
+
:describe_notification_configurations,
|
|
33
|
+
:describe_policies,
|
|
34
|
+
:describe_scaling_activities,
|
|
35
|
+
:describe_scaling_process_types,
|
|
36
|
+
:describe_scheduled_actions,
|
|
37
|
+
:describe_tags,
|
|
38
|
+
]
|
|
39
|
+
|
|
40
|
+
## client methods ##
|
|
41
|
+
|
|
42
|
+
# Calls the CreateAutoScalingGroup API operation.
|
|
43
|
+
# @method create_auto_scaling_group(options = {})
|
|
44
|
+
#
|
|
45
|
+
# === Options:
|
|
46
|
+
#
|
|
47
|
+
# * +:auto_scaling_group_name+ - *required* - (String)
|
|
48
|
+
# * +:launch_configuration_name+ - *required* - (String)
|
|
49
|
+
# * +:min_size+ - *required* - (Integer)
|
|
50
|
+
# * +:max_size+ - *required* - (Integer)
|
|
51
|
+
# * +:desired_capacity+ - (Integer)
|
|
52
|
+
# * +:default_cooldown+ - (Integer)
|
|
53
|
+
# * +:availability_zones+ - *required* - (Array<String>)
|
|
54
|
+
# * +:load_balancer_names+ - (Array<String>)
|
|
55
|
+
# * +:health_check_type+ - (String)
|
|
56
|
+
# * +:health_check_grace_period+ - (Integer)
|
|
57
|
+
# * +:placement_group+ - (String)
|
|
58
|
+
# * +:vpc_zone_identifier+ - (String)
|
|
59
|
+
# * +:tags+ - (Array<Hash>)
|
|
60
|
+
# * +:resource_id+ - (String)
|
|
61
|
+
# * +:resource_type+ - (String)
|
|
62
|
+
# * +:key+ - *required* - (String)
|
|
63
|
+
# * +:value+ - (String)
|
|
64
|
+
# * +:propagate_at_launch+ - (Boolean)
|
|
65
|
+
#
|
|
66
|
+
# === Response Structure:
|
|
67
|
+
#
|
|
68
|
+
# This method returns no response data.
|
|
69
|
+
#
|
|
70
|
+
# @return [Core::Response]
|
|
71
|
+
#
|
|
72
|
+
define_client_method :create_auto_scaling_group, 'CreateAutoScalingGroup'
|
|
73
|
+
|
|
74
|
+
# Calls the CreateLaunchConfiguration API operation.
|
|
75
|
+
# @method create_launch_configuration(options = {})
|
|
76
|
+
#
|
|
77
|
+
# === Options:
|
|
78
|
+
#
|
|
79
|
+
# * +:launch_configuration_name+ - *required* - (String)
|
|
80
|
+
# * +:image_id+ - *required* - (String)
|
|
81
|
+
# * +:key_name+ - (String)
|
|
82
|
+
# * +:security_groups+ - (Array<String>)
|
|
83
|
+
# * +:user_data+ - (String)
|
|
84
|
+
# * +:instance_type+ - *required* - (String)
|
|
85
|
+
# * +:kernel_id+ - (String)
|
|
86
|
+
# * +:ramdisk_id+ - (String)
|
|
87
|
+
# * +:block_device_mappings+ - (Array<Hash>)
|
|
88
|
+
# * +:virtual_name+ - (String)
|
|
89
|
+
# * +:device_name+ - *required* - (String)
|
|
90
|
+
# * +:ebs+ - (Hash)
|
|
91
|
+
# * +:snapshot_id+ - (String)
|
|
92
|
+
# * +:volume_size+ - (Integer)
|
|
93
|
+
# * +:instance_monitoring+ - (Hash)
|
|
94
|
+
# * +:enabled+ - (Boolean)
|
|
95
|
+
#
|
|
96
|
+
# === Response Structure:
|
|
97
|
+
#
|
|
98
|
+
# This method returns no response data.
|
|
99
|
+
#
|
|
100
|
+
# @return [Core::Response]
|
|
101
|
+
#
|
|
102
|
+
define_client_method :create_launch_configuration, 'CreateLaunchConfiguration'
|
|
103
|
+
|
|
104
|
+
# Calls the CreateOrUpdateTags API operation.
|
|
105
|
+
# @method create_or_update_tags(options = {})
|
|
106
|
+
#
|
|
107
|
+
# === Options:
|
|
108
|
+
#
|
|
109
|
+
# * +:tags+ - *required* - (Array<Hash>)
|
|
110
|
+
# * +:resource_id+ - (String)
|
|
111
|
+
# * +:resource_type+ - (String)
|
|
112
|
+
# * +:key+ - *required* - (String)
|
|
113
|
+
# * +:value+ - (String)
|
|
114
|
+
# * +:propagate_at_launch+ - (Boolean)
|
|
115
|
+
#
|
|
116
|
+
# === Response Structure:
|
|
117
|
+
#
|
|
118
|
+
# This method returns no response data.
|
|
119
|
+
#
|
|
120
|
+
# @return [Core::Response]
|
|
121
|
+
#
|
|
122
|
+
define_client_method :create_or_update_tags, 'CreateOrUpdateTags'
|
|
123
|
+
|
|
124
|
+
# Calls the DeleteAutoScalingGroup API operation.
|
|
125
|
+
# @method delete_auto_scaling_group(options = {})
|
|
126
|
+
#
|
|
127
|
+
# === Options:
|
|
128
|
+
#
|
|
129
|
+
# * +:auto_scaling_group_name+ - *required* - (String)
|
|
130
|
+
# * +:force_delete+ - (Boolean)
|
|
131
|
+
#
|
|
132
|
+
# === Response Structure:
|
|
133
|
+
#
|
|
134
|
+
# This method returns no response data.
|
|
135
|
+
#
|
|
136
|
+
# @return [Core::Response]
|
|
137
|
+
#
|
|
138
|
+
define_client_method :delete_auto_scaling_group, 'DeleteAutoScalingGroup'
|
|
139
|
+
|
|
140
|
+
# Calls the DeleteLaunchConfiguration API operation.
|
|
141
|
+
# @method delete_launch_configuration(options = {})
|
|
142
|
+
#
|
|
143
|
+
# === Options:
|
|
144
|
+
#
|
|
145
|
+
# * +:launch_configuration_name+ - *required* - (String)
|
|
146
|
+
#
|
|
147
|
+
# === Response Structure:
|
|
148
|
+
#
|
|
149
|
+
# This method returns no response data.
|
|
150
|
+
#
|
|
151
|
+
# @return [Core::Response]
|
|
152
|
+
#
|
|
153
|
+
define_client_method :delete_launch_configuration, 'DeleteLaunchConfiguration'
|
|
154
|
+
|
|
155
|
+
# Calls the DeleteNotificationConfiguration API operation.
|
|
156
|
+
# @method delete_notification_configuration(options = {})
|
|
157
|
+
#
|
|
158
|
+
# === Options:
|
|
159
|
+
#
|
|
160
|
+
# * +:auto_scaling_group_name+ - *required* - (String)
|
|
161
|
+
# * +:topic_arn+ - *required* - (String)
|
|
162
|
+
#
|
|
163
|
+
# === Response Structure:
|
|
164
|
+
#
|
|
165
|
+
# This method returns no response data.
|
|
166
|
+
#
|
|
167
|
+
# @return [Core::Response]
|
|
168
|
+
#
|
|
169
|
+
define_client_method :delete_notification_configuration, 'DeleteNotificationConfiguration'
|
|
170
|
+
|
|
171
|
+
# Calls the DeletePolicy API operation.
|
|
172
|
+
# @method delete_policy(options = {})
|
|
173
|
+
#
|
|
174
|
+
# === Options:
|
|
175
|
+
#
|
|
176
|
+
# * +:auto_scaling_group_name+ - (String)
|
|
177
|
+
# * +:policy_name+ - *required* - (String)
|
|
178
|
+
#
|
|
179
|
+
# === Response Structure:
|
|
180
|
+
#
|
|
181
|
+
# This method returns no response data.
|
|
182
|
+
#
|
|
183
|
+
# @return [Core::Response]
|
|
184
|
+
#
|
|
185
|
+
define_client_method :delete_policy, 'DeletePolicy'
|
|
186
|
+
|
|
187
|
+
# Calls the DeleteScheduledAction API operation.
|
|
188
|
+
# @method delete_scheduled_action(options = {})
|
|
189
|
+
#
|
|
190
|
+
# === Options:
|
|
191
|
+
#
|
|
192
|
+
# * +:auto_scaling_group_name+ - (String)
|
|
193
|
+
# * +:scheduled_action_name+ - *required* - (String)
|
|
194
|
+
#
|
|
195
|
+
# === Response Structure:
|
|
196
|
+
#
|
|
197
|
+
# This method returns no response data.
|
|
198
|
+
#
|
|
199
|
+
# @return [Core::Response]
|
|
200
|
+
#
|
|
201
|
+
define_client_method :delete_scheduled_action, 'DeleteScheduledAction'
|
|
202
|
+
|
|
203
|
+
# Calls the DeleteTags API operation.
|
|
204
|
+
# @method delete_tags(options = {})
|
|
205
|
+
#
|
|
206
|
+
# === Options:
|
|
207
|
+
#
|
|
208
|
+
# * +:tags+ - *required* - (Array<Hash>)
|
|
209
|
+
# * +:resource_id+ - (String)
|
|
210
|
+
# * +:resource_type+ - (String)
|
|
211
|
+
# * +:key+ - *required* - (String)
|
|
212
|
+
# * +:value+ - (String)
|
|
213
|
+
# * +:propagate_at_launch+ - (Boolean)
|
|
214
|
+
#
|
|
215
|
+
# === Response Structure:
|
|
216
|
+
#
|
|
217
|
+
# This method returns no response data.
|
|
218
|
+
#
|
|
219
|
+
# @return [Core::Response]
|
|
220
|
+
#
|
|
221
|
+
define_client_method :delete_tags, 'DeleteTags'
|
|
222
|
+
|
|
223
|
+
# Calls the DescribeAdjustmentTypes API operation.
|
|
224
|
+
# @method describe_adjustment_types(options = {})
|
|
225
|
+
#
|
|
226
|
+
# === Options:
|
|
227
|
+
#
|
|
228
|
+
# This method accepts no options.
|
|
229
|
+
#
|
|
230
|
+
# === Response Structure:
|
|
231
|
+
#
|
|
232
|
+
# * +:adjustment_types+ - (Array<Hash>)
|
|
233
|
+
# * +:adjustment_type+ - (String)
|
|
234
|
+
#
|
|
235
|
+
# @return [Core::Response]
|
|
236
|
+
#
|
|
237
|
+
define_client_method :describe_adjustment_types, 'DescribeAdjustmentTypes'
|
|
238
|
+
|
|
239
|
+
# Calls the DescribeAutoScalingGroups API operation.
|
|
240
|
+
# @method describe_auto_scaling_groups(options = {})
|
|
241
|
+
#
|
|
242
|
+
# === Options:
|
|
243
|
+
#
|
|
244
|
+
# * +:auto_scaling_group_names+ - (Array<String>)
|
|
245
|
+
# * +:next_token+ - (String)
|
|
246
|
+
# * +:max_records+ - (Integer)
|
|
247
|
+
#
|
|
248
|
+
# === Response Structure:
|
|
249
|
+
#
|
|
250
|
+
# * +:auto_scaling_groups+ - (Array<Hash>)
|
|
251
|
+
# * +:auto_scaling_group_name+ - (String)
|
|
252
|
+
# * +:auto_scaling_group_arn+ - (String)
|
|
253
|
+
# * +:launch_configuration_name+ - (String)
|
|
254
|
+
# * +:min_size+ - (Integer)
|
|
255
|
+
# * +:max_size+ - (Integer)
|
|
256
|
+
# * +:desired_capacity+ - (Integer)
|
|
257
|
+
# * +:default_cooldown+ - (Integer)
|
|
258
|
+
# * +:availability_zones+ - (Array<String>)
|
|
259
|
+
# * +:load_balancer_names+ - (Array<String>)
|
|
260
|
+
# * +:health_check_type+ - (String)
|
|
261
|
+
# * +:health_check_grace_period+ - (Integer)
|
|
262
|
+
# * +:instances+ - (Array<Hash>)
|
|
263
|
+
# * +:instance_id+ - (String)
|
|
264
|
+
# * +:availability_zone+ - (String)
|
|
265
|
+
# * +:lifecycle_state+ - (String)
|
|
266
|
+
# * +:health_status+ - (String)
|
|
267
|
+
# * +:launch_configuration_name+ - (String)
|
|
268
|
+
# * +:created_time+ - (Time)
|
|
269
|
+
# * +:suspended_processes+ - (Array<Hash>)
|
|
270
|
+
# * +:process_name+ - (String)
|
|
271
|
+
# * +:suspension_reason+ - (String)
|
|
272
|
+
# * +:placement_group+ - (String)
|
|
273
|
+
# * +:vpc_zone_identifier+ - (String)
|
|
274
|
+
# * +:enabled_metrics+ - (Array<Hash>)
|
|
275
|
+
# * +:metric+ - (String)
|
|
276
|
+
# * +:granularity+ - (String)
|
|
277
|
+
# * +:status+ - (String)
|
|
278
|
+
# * +:tags+ - (Array<Hash>)
|
|
279
|
+
# * +:resource_id+ - (String)
|
|
280
|
+
# * +:resource_type+ - (String)
|
|
281
|
+
# * +:key+ - (String)
|
|
282
|
+
# * +:value+ - (String)
|
|
283
|
+
# * +:propagate_at_launch+ - (Boolean)
|
|
284
|
+
# * +:next_token+ - (String)
|
|
285
|
+
#
|
|
286
|
+
# @return [Core::Response]
|
|
287
|
+
#
|
|
288
|
+
define_client_method :describe_auto_scaling_groups, 'DescribeAutoScalingGroups'
|
|
289
|
+
|
|
290
|
+
# Calls the DescribeAutoScalingInstances API operation.
|
|
291
|
+
# @method describe_auto_scaling_instances(options = {})
|
|
292
|
+
#
|
|
293
|
+
# === Options:
|
|
294
|
+
#
|
|
295
|
+
# * +:instance_ids+ - (Array<String>)
|
|
296
|
+
# * +:max_records+ - (Integer)
|
|
297
|
+
# * +:next_token+ - (String)
|
|
298
|
+
#
|
|
299
|
+
# === Response Structure:
|
|
300
|
+
#
|
|
301
|
+
# * +:auto_scaling_instances+ - (Array<Hash>)
|
|
302
|
+
# * +:instance_id+ - (String)
|
|
303
|
+
# * +:auto_scaling_group_name+ - (String)
|
|
304
|
+
# * +:availability_zone+ - (String)
|
|
305
|
+
# * +:lifecycle_state+ - (String)
|
|
306
|
+
# * +:health_status+ - (String)
|
|
307
|
+
# * +:launch_configuration_name+ - (String)
|
|
308
|
+
# * +:next_token+ - (String)
|
|
309
|
+
#
|
|
310
|
+
# @return [Core::Response]
|
|
311
|
+
#
|
|
312
|
+
define_client_method :describe_auto_scaling_instances, 'DescribeAutoScalingInstances'
|
|
313
|
+
|
|
314
|
+
# Calls the DescribeAutoScalingNotificationTypes API operation.
|
|
315
|
+
# @method describe_auto_scaling_notification_types(options = {})
|
|
316
|
+
#
|
|
317
|
+
# === Options:
|
|
318
|
+
#
|
|
319
|
+
# This method accepts no options.
|
|
320
|
+
#
|
|
321
|
+
# === Response Structure:
|
|
322
|
+
#
|
|
323
|
+
# * +:auto_scaling_notification_types+ - (Array<String>)
|
|
324
|
+
#
|
|
325
|
+
# @return [Core::Response]
|
|
326
|
+
#
|
|
327
|
+
define_client_method :describe_auto_scaling_notification_types, 'DescribeAutoScalingNotificationTypes'
|
|
328
|
+
|
|
329
|
+
# Calls the DescribeLaunchConfigurations API operation.
|
|
330
|
+
# @method describe_launch_configurations(options = {})
|
|
331
|
+
#
|
|
332
|
+
# === Options:
|
|
333
|
+
#
|
|
334
|
+
# * +:launch_configuration_names+ - (Array<String>)
|
|
335
|
+
# * +:next_token+ - (String)
|
|
336
|
+
# * +:max_records+ - (Integer)
|
|
337
|
+
#
|
|
338
|
+
# === Response Structure:
|
|
339
|
+
#
|
|
340
|
+
# * +:launch_configurations+ - (Array<Hash>)
|
|
341
|
+
# * +:launch_configuration_name+ - (String)
|
|
342
|
+
# * +:launch_configuration_arn+ - (String)
|
|
343
|
+
# * +:image_id+ - (String)
|
|
344
|
+
# * +:key_name+ - (String)
|
|
345
|
+
# * +:security_groups+ - (Array<String>)
|
|
346
|
+
# * +:user_data+ - (String)
|
|
347
|
+
# * +:instance_type+ - (String)
|
|
348
|
+
# * +:kernel_id+ - (String)
|
|
349
|
+
# * +:ramdisk_id+ - (String)
|
|
350
|
+
# * +:block_device_mappings+ - (Array<Hash>)
|
|
351
|
+
# * +:virtual_name+ - (String)
|
|
352
|
+
# * +:device_name+ - (String)
|
|
353
|
+
# * +:ebs+ - (Hash)
|
|
354
|
+
# * +:snapshot_id+ - (String)
|
|
355
|
+
# * +:volume_size+ - (Integer)
|
|
356
|
+
# * +:instance_monitoring+ - (Hash)
|
|
357
|
+
# * +:enabled+ - (Boolean)
|
|
358
|
+
# * +:created_time+ - (Time)
|
|
359
|
+
# * +:next_token+ - (String)
|
|
360
|
+
#
|
|
361
|
+
# @return [Core::Response]
|
|
362
|
+
#
|
|
363
|
+
define_client_method :describe_launch_configurations, 'DescribeLaunchConfigurations'
|
|
364
|
+
|
|
365
|
+
# Calls the DescribeMetricCollectionTypes API operation.
|
|
366
|
+
# @method describe_metric_collection_types(options = {})
|
|
367
|
+
#
|
|
368
|
+
# === Options:
|
|
369
|
+
#
|
|
370
|
+
# This method accepts no options.
|
|
371
|
+
#
|
|
372
|
+
# === Response Structure:
|
|
373
|
+
#
|
|
374
|
+
# * +:metrics+ - (Array<Hash>)
|
|
375
|
+
# * +:metric+ - (String)
|
|
376
|
+
# * +:granularities+ - (Array<Hash>)
|
|
377
|
+
# * +:granularity+ - (String)
|
|
378
|
+
#
|
|
379
|
+
# @return [Core::Response]
|
|
380
|
+
#
|
|
381
|
+
define_client_method :describe_metric_collection_types, 'DescribeMetricCollectionTypes'
|
|
382
|
+
|
|
383
|
+
# Calls the DescribeNotificationConfigurations API operation.
|
|
384
|
+
# @method describe_notification_configurations(options = {})
|
|
385
|
+
#
|
|
386
|
+
# === Options:
|
|
387
|
+
#
|
|
388
|
+
# * +:auto_scaling_group_names+ - (Array<String>)
|
|
389
|
+
# * +:next_token+ - (String)
|
|
390
|
+
# * +:max_records+ - (Integer)
|
|
391
|
+
#
|
|
392
|
+
# === Response Structure:
|
|
393
|
+
#
|
|
394
|
+
# * +:notification_configurations+ - (Array<Hash>)
|
|
395
|
+
# * +:auto_scaling_group_name+ - (String)
|
|
396
|
+
# * +:topic_arn+ - (String)
|
|
397
|
+
# * +:notification_type+ - (String)
|
|
398
|
+
# * +:next_token+ - (String)
|
|
399
|
+
#
|
|
400
|
+
# @return [Core::Response]
|
|
401
|
+
#
|
|
402
|
+
define_client_method :describe_notification_configurations, 'DescribeNotificationConfigurations'
|
|
403
|
+
|
|
404
|
+
# Calls the DescribePolicies API operation.
|
|
405
|
+
# @method describe_policies(options = {})
|
|
406
|
+
#
|
|
407
|
+
# === Options:
|
|
408
|
+
#
|
|
409
|
+
# * +:auto_scaling_group_name+ - (String)
|
|
410
|
+
# * +:policy_names+ - (Array<String>)
|
|
411
|
+
# * +:next_token+ - (String)
|
|
412
|
+
# * +:max_records+ - (Integer)
|
|
413
|
+
#
|
|
414
|
+
# === Response Structure:
|
|
415
|
+
#
|
|
416
|
+
# * +:scaling_policies+ - (Array<Hash>)
|
|
417
|
+
# * +:auto_scaling_group_name+ - (String)
|
|
418
|
+
# * +:policy_name+ - (String)
|
|
419
|
+
# * +:scaling_adjustment+ - (Integer)
|
|
420
|
+
# * +:adjustment_type+ - (String)
|
|
421
|
+
# * +:cooldown+ - (Integer)
|
|
422
|
+
# * +:policy_arn+ - (String)
|
|
423
|
+
# * +:alarms+ - (Array<Hash>)
|
|
424
|
+
# * +:alarm_name+ - (String)
|
|
425
|
+
# * +:alarm_arn+ - (String)
|
|
426
|
+
# * +:min_adjustment_magnitude+ - (Integer)
|
|
427
|
+
# * +:next_token+ - (String)
|
|
428
|
+
#
|
|
429
|
+
# @return [Core::Response]
|
|
430
|
+
#
|
|
431
|
+
define_client_method :describe_policies, 'DescribePolicies'
|
|
432
|
+
|
|
433
|
+
# Calls the DescribeScalingActivities API operation.
|
|
434
|
+
# @method describe_scaling_activities(options = {})
|
|
435
|
+
#
|
|
436
|
+
# === Options:
|
|
437
|
+
#
|
|
438
|
+
# * +:activity_ids+ - (Array<String>)
|
|
439
|
+
# * +:auto_scaling_group_name+ - (String)
|
|
440
|
+
# * +:max_records+ - (Integer)
|
|
441
|
+
# * +:next_token+ - (String)
|
|
442
|
+
#
|
|
443
|
+
# === Response Structure:
|
|
444
|
+
#
|
|
445
|
+
# * +:activities+ - (Array<Hash>)
|
|
446
|
+
# * +:activity_id+ - (String)
|
|
447
|
+
# * +:auto_scaling_group_name+ - (String)
|
|
448
|
+
# * +:description+ - (String)
|
|
449
|
+
# * +:cause+ - (String)
|
|
450
|
+
# * +:start_time+ - (Time)
|
|
451
|
+
# * +:end_time+ - (Time)
|
|
452
|
+
# * +:status_code+ - (String)
|
|
453
|
+
# * +:status_message+ - (String)
|
|
454
|
+
# * +:progress+ - (Integer)
|
|
455
|
+
# * +:details+ - (String)
|
|
456
|
+
# * +:next_token+ - (String)
|
|
457
|
+
#
|
|
458
|
+
# @return [Core::Response]
|
|
459
|
+
#
|
|
460
|
+
define_client_method :describe_scaling_activities, 'DescribeScalingActivities'
|
|
461
|
+
|
|
462
|
+
# Calls the DescribeScalingProcessTypes API operation.
|
|
463
|
+
# @method describe_scaling_process_types(options = {})
|
|
464
|
+
#
|
|
465
|
+
# === Options:
|
|
466
|
+
#
|
|
467
|
+
# This method accepts no options.
|
|
468
|
+
#
|
|
469
|
+
# === Response Structure:
|
|
470
|
+
#
|
|
471
|
+
# * +:processes+ - (Array<Hash>)
|
|
472
|
+
# * +:process_name+ - (String)
|
|
473
|
+
#
|
|
474
|
+
# @return [Core::Response]
|
|
475
|
+
#
|
|
476
|
+
define_client_method :describe_scaling_process_types, 'DescribeScalingProcessTypes'
|
|
477
|
+
|
|
478
|
+
# Calls the DescribeScheduledActions API operation.
|
|
479
|
+
# @method describe_scheduled_actions(options = {})
|
|
480
|
+
#
|
|
481
|
+
# === Options:
|
|
482
|
+
#
|
|
483
|
+
# * +:auto_scaling_group_name+ - (String)
|
|
484
|
+
# * +:scheduled_action_names+ - (Array<String>)
|
|
485
|
+
# * +:start_time+ - (String<ISO8601 datetime>)
|
|
486
|
+
# * +:end_time+ - (String<ISO8601 datetime>)
|
|
487
|
+
# * +:next_token+ - (String)
|
|
488
|
+
# * +:max_records+ - (Integer)
|
|
489
|
+
#
|
|
490
|
+
# === Response Structure:
|
|
491
|
+
#
|
|
492
|
+
# * +:scheduled_update_group_actions+ - (Array<Hash>)
|
|
493
|
+
# * +:auto_scaling_group_name+ - (String)
|
|
494
|
+
# * +:scheduled_action_name+ - (String)
|
|
495
|
+
# * +:scheduled_action_arn+ - (String)
|
|
496
|
+
# * +:time+ - (Time)
|
|
497
|
+
# * +:start_time+ - (Time)
|
|
498
|
+
# * +:end_time+ - (Time)
|
|
499
|
+
# * +:recurrence+ - (String)
|
|
500
|
+
# * +:min_size+ - (Integer)
|
|
501
|
+
# * +:max_size+ - (Integer)
|
|
502
|
+
# * +:desired_capacity+ - (Integer)
|
|
503
|
+
# * +:next_token+ - (String)
|
|
504
|
+
#
|
|
505
|
+
# @return [Core::Response]
|
|
506
|
+
#
|
|
507
|
+
define_client_method :describe_scheduled_actions, 'DescribeScheduledActions'
|
|
508
|
+
|
|
509
|
+
# Calls the DescribeTags API operation.
|
|
510
|
+
# @method describe_tags(options = {})
|
|
511
|
+
#
|
|
512
|
+
# === Options:
|
|
513
|
+
#
|
|
514
|
+
# * +:filters+ - (Array<Hash>)
|
|
515
|
+
# * +:name+ - (String)
|
|
516
|
+
# * +:values+ - (Array<String>)
|
|
517
|
+
# * +:next_token+ - (String)
|
|
518
|
+
# * +:max_records+ - (Integer)
|
|
519
|
+
#
|
|
520
|
+
# === Response Structure:
|
|
521
|
+
#
|
|
522
|
+
# * +:tags+ - (Array<Hash>)
|
|
523
|
+
# * +:resource_id+ - (String)
|
|
524
|
+
# * +:resource_type+ - (String)
|
|
525
|
+
# * +:key+ - (String)
|
|
526
|
+
# * +:value+ - (String)
|
|
527
|
+
# * +:propagate_at_launch+ - (Boolean)
|
|
528
|
+
# * +:next_token+ - (String)
|
|
529
|
+
#
|
|
530
|
+
# @return [Core::Response]
|
|
531
|
+
#
|
|
532
|
+
define_client_method :describe_tags, 'DescribeTags'
|
|
533
|
+
|
|
534
|
+
# Calls the DisableMetricsCollection API operation.
|
|
535
|
+
# @method disable_metrics_collection(options = {})
|
|
536
|
+
#
|
|
537
|
+
# === Options:
|
|
538
|
+
#
|
|
539
|
+
# * +:auto_scaling_group_name+ - *required* - (String)
|
|
540
|
+
# * +:metrics+ - (Array<String>)
|
|
541
|
+
#
|
|
542
|
+
# === Response Structure:
|
|
543
|
+
#
|
|
544
|
+
# This method returns no response data.
|
|
545
|
+
#
|
|
546
|
+
# @return [Core::Response]
|
|
547
|
+
#
|
|
548
|
+
define_client_method :disable_metrics_collection, 'DisableMetricsCollection'
|
|
549
|
+
|
|
550
|
+
# Calls the EnableMetricsCollection API operation.
|
|
551
|
+
# @method enable_metrics_collection(options = {})
|
|
552
|
+
#
|
|
553
|
+
# === Options:
|
|
554
|
+
#
|
|
555
|
+
# * +:auto_scaling_group_name+ - *required* - (String)
|
|
556
|
+
# * +:metrics+ - (Array<String>)
|
|
557
|
+
# * +:granularity+ - *required* - (String)
|
|
558
|
+
#
|
|
559
|
+
# === Response Structure:
|
|
560
|
+
#
|
|
561
|
+
# This method returns no response data.
|
|
562
|
+
#
|
|
563
|
+
# @return [Core::Response]
|
|
564
|
+
#
|
|
565
|
+
define_client_method :enable_metrics_collection, 'EnableMetricsCollection'
|
|
566
|
+
|
|
567
|
+
# Calls the ExecutePolicy API operation.
|
|
568
|
+
# @method execute_policy(options = {})
|
|
569
|
+
#
|
|
570
|
+
# === Options:
|
|
571
|
+
#
|
|
572
|
+
# * +:auto_scaling_group_name+ - (String)
|
|
573
|
+
# * +:policy_name+ - *required* - (String)
|
|
574
|
+
# * +:honor_cooldown+ - (Boolean)
|
|
575
|
+
#
|
|
576
|
+
# === Response Structure:
|
|
577
|
+
#
|
|
578
|
+
# This method returns no response data.
|
|
579
|
+
#
|
|
580
|
+
# @return [Core::Response]
|
|
581
|
+
#
|
|
582
|
+
define_client_method :execute_policy, 'ExecutePolicy'
|
|
583
|
+
|
|
584
|
+
# Calls the PutNotificationConfiguration API operation.
|
|
585
|
+
# @method put_notification_configuration(options = {})
|
|
586
|
+
#
|
|
587
|
+
# === Options:
|
|
588
|
+
#
|
|
589
|
+
# * +:auto_scaling_group_name+ - *required* - (String)
|
|
590
|
+
# * +:topic_arn+ - *required* - (String)
|
|
591
|
+
# * +:notification_types+ - *required* - (Array<String>)
|
|
592
|
+
#
|
|
593
|
+
# === Response Structure:
|
|
594
|
+
#
|
|
595
|
+
# This method returns no response data.
|
|
596
|
+
#
|
|
597
|
+
# @return [Core::Response]
|
|
598
|
+
#
|
|
599
|
+
define_client_method :put_notification_configuration, 'PutNotificationConfiguration'
|
|
600
|
+
|
|
601
|
+
# Calls the PutScalingPolicy API operation.
|
|
602
|
+
# @method put_scaling_policy(options = {})
|
|
603
|
+
#
|
|
604
|
+
# === Options:
|
|
605
|
+
#
|
|
606
|
+
# * +:auto_scaling_group_name+ - *required* - (String)
|
|
607
|
+
# * +:policy_name+ - *required* - (String)
|
|
608
|
+
# * +:scaling_adjustment+ - *required* - (Integer)
|
|
609
|
+
# * +:adjustment_type+ - *required* - (String)
|
|
610
|
+
# * +:cooldown+ - (Integer)
|
|
611
|
+
# * +:min_adjustment_magnitude+ - (Integer)
|
|
612
|
+
#
|
|
613
|
+
# === Response Structure:
|
|
614
|
+
#
|
|
615
|
+
# * +:policy_arn+ - (String)
|
|
616
|
+
#
|
|
617
|
+
# @return [Core::Response]
|
|
618
|
+
#
|
|
619
|
+
define_client_method :put_scaling_policy, 'PutScalingPolicy'
|
|
620
|
+
|
|
621
|
+
# Calls the PutScheduledUpdateGroupAction API operation.
|
|
622
|
+
# @method put_scheduled_update_group_action(options = {})
|
|
623
|
+
#
|
|
624
|
+
# === Options:
|
|
625
|
+
#
|
|
626
|
+
# * +:auto_scaling_group_name+ - *required* - (String)
|
|
627
|
+
# * +:scheduled_action_name+ - *required* - (String)
|
|
628
|
+
# * +:time+ - (String<ISO8601 datetime>)
|
|
629
|
+
# * +:start_time+ - (String<ISO8601 datetime>)
|
|
630
|
+
# * +:end_time+ - (String<ISO8601 datetime>)
|
|
631
|
+
# * +:recurrence+ - (String)
|
|
632
|
+
# * +:min_size+ - (Integer)
|
|
633
|
+
# * +:max_size+ - (Integer)
|
|
634
|
+
# * +:desired_capacity+ - (Integer)
|
|
635
|
+
#
|
|
636
|
+
# === Response Structure:
|
|
637
|
+
#
|
|
638
|
+
# This method returns no response data.
|
|
639
|
+
#
|
|
640
|
+
# @return [Core::Response]
|
|
641
|
+
#
|
|
642
|
+
define_client_method :put_scheduled_update_group_action, 'PutScheduledUpdateGroupAction'
|
|
643
|
+
|
|
644
|
+
# Calls the ResumeProcesses API operation.
|
|
645
|
+
# @method resume_processes(options = {})
|
|
646
|
+
#
|
|
647
|
+
# === Options:
|
|
648
|
+
#
|
|
649
|
+
# * +:auto_scaling_group_name+ - *required* - (String)
|
|
650
|
+
# * +:scaling_processes+ - (Array<String>)
|
|
651
|
+
#
|
|
652
|
+
# === Response Structure:
|
|
653
|
+
#
|
|
654
|
+
# This method returns no response data.
|
|
655
|
+
#
|
|
656
|
+
# @return [Core::Response]
|
|
657
|
+
#
|
|
658
|
+
define_client_method :resume_processes, 'ResumeProcesses'
|
|
659
|
+
|
|
660
|
+
# Calls the SetDesiredCapacity API operation.
|
|
661
|
+
# @method set_desired_capacity(options = {})
|
|
662
|
+
#
|
|
663
|
+
# === Options:
|
|
664
|
+
#
|
|
665
|
+
# * +:auto_scaling_group_name+ - *required* - (String)
|
|
666
|
+
# * +:desired_capacity+ - *required* - (Integer)
|
|
667
|
+
# * +:honor_cooldown+ - (Boolean)
|
|
668
|
+
#
|
|
669
|
+
# === Response Structure:
|
|
670
|
+
#
|
|
671
|
+
# This method returns no response data.
|
|
672
|
+
#
|
|
673
|
+
# @return [Core::Response]
|
|
674
|
+
#
|
|
675
|
+
define_client_method :set_desired_capacity, 'SetDesiredCapacity'
|
|
676
|
+
|
|
677
|
+
# Calls the SetInstanceHealth API operation.
|
|
678
|
+
# @method set_instance_health(options = {})
|
|
679
|
+
#
|
|
680
|
+
# === Options:
|
|
681
|
+
#
|
|
682
|
+
# * +:instance_id+ - *required* - (String)
|
|
683
|
+
# * +:health_status+ - *required* - (String)
|
|
684
|
+
# * +:should_respect_grace_period+ - (Boolean)
|
|
685
|
+
#
|
|
686
|
+
# === Response Structure:
|
|
687
|
+
#
|
|
688
|
+
# This method returns no response data.
|
|
689
|
+
#
|
|
690
|
+
# @return [Core::Response]
|
|
691
|
+
#
|
|
692
|
+
define_client_method :set_instance_health, 'SetInstanceHealth'
|
|
693
|
+
|
|
694
|
+
# Calls the SuspendProcesses API operation.
|
|
695
|
+
# @method suspend_processes(options = {})
|
|
696
|
+
#
|
|
697
|
+
# === Options:
|
|
698
|
+
#
|
|
699
|
+
# * +:auto_scaling_group_name+ - *required* - (String)
|
|
700
|
+
# * +:scaling_processes+ - (Array<String>)
|
|
701
|
+
#
|
|
702
|
+
# === Response Structure:
|
|
703
|
+
#
|
|
704
|
+
# This method returns no response data.
|
|
705
|
+
#
|
|
706
|
+
# @return [Core::Response]
|
|
707
|
+
#
|
|
708
|
+
define_client_method :suspend_processes, 'SuspendProcesses'
|
|
709
|
+
|
|
710
|
+
# Calls the TerminateInstanceInAutoScalingGroup API operation.
|
|
711
|
+
# @method terminate_instance_in_auto_scaling_group(options = {})
|
|
712
|
+
#
|
|
713
|
+
# === Options:
|
|
714
|
+
#
|
|
715
|
+
# * +:instance_id+ - *required* - (String)
|
|
716
|
+
# * +:should_decrement_desired_capacity+ - *required* - (Boolean)
|
|
717
|
+
#
|
|
718
|
+
# === Response Structure:
|
|
719
|
+
#
|
|
720
|
+
# * +:activity+ - (Hash)
|
|
721
|
+
# * +:activity_id+ - (String)
|
|
722
|
+
# * +:auto_scaling_group_name+ - (String)
|
|
723
|
+
# * +:description+ - (String)
|
|
724
|
+
# * +:cause+ - (String)
|
|
725
|
+
# * +:start_time+ - (Time)
|
|
726
|
+
# * +:end_time+ - (Time)
|
|
727
|
+
# * +:status_code+ - (String)
|
|
728
|
+
# * +:status_message+ - (String)
|
|
729
|
+
# * +:progress+ - (Integer)
|
|
730
|
+
# * +:details+ - (String)
|
|
731
|
+
#
|
|
732
|
+
# @return [Core::Response]
|
|
733
|
+
#
|
|
734
|
+
define_client_method :terminate_instance_in_auto_scaling_group, 'TerminateInstanceInAutoScalingGroup'
|
|
735
|
+
|
|
736
|
+
# Calls the UpdateAutoScalingGroup API operation.
|
|
737
|
+
# @method update_auto_scaling_group(options = {})
|
|
738
|
+
#
|
|
739
|
+
# === Options:
|
|
740
|
+
#
|
|
741
|
+
# * +:auto_scaling_group_name+ - *required* - (String)
|
|
742
|
+
# * +:launch_configuration_name+ - (String)
|
|
743
|
+
# * +:min_size+ - (Integer)
|
|
744
|
+
# * +:max_size+ - (Integer)
|
|
745
|
+
# * +:desired_capacity+ - (Integer)
|
|
746
|
+
# * +:default_cooldown+ - (Integer)
|
|
747
|
+
# * +:availability_zones+ - (Array<String>)
|
|
748
|
+
# * +:health_check_type+ - (String)
|
|
749
|
+
# * +:health_check_grace_period+ - (Integer)
|
|
750
|
+
# * +:placement_group+ - (String)
|
|
751
|
+
# * +:vpc_zone_identifier+ - (String)
|
|
752
|
+
#
|
|
753
|
+
# === Response Structure:
|
|
754
|
+
#
|
|
755
|
+
# This method returns no response data.
|
|
756
|
+
#
|
|
757
|
+
# @return [Core::Response]
|
|
758
|
+
#
|
|
759
|
+
define_client_method :update_auto_scaling_group, 'UpdateAutoScalingGroup'
|
|
760
|
+
|
|
761
|
+
## end client methods ##
|
|
762
|
+
|
|
763
|
+
end
|
|
764
|
+
end
|
|
765
|
+
end
|