aws-sdk 1.8.5 → 1.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.yardopts +1 -0
- data/README.rdoc +8 -0
- data/lib/aws-sdk.rb +39 -35
- data/lib/aws/api_config/CloudFront-2012-07-01.yml +2398 -0
- data/lib/aws/api_config/DirectConnect-2012-10-25.yml +475 -0
- data/lib/aws/api_config/DynamoDB-2011-12-05.yml +8 -0
- data/lib/aws/api_config/DynamoDB-2012-08-10.yml +1516 -0
- data/lib/aws/api_config/OpsWorks-2013-02-18.yml +2 -2
- data/lib/aws/auto_scaling.rb +44 -44
- data/lib/aws/auto_scaling/activity.rb +1 -1
- data/lib/aws/auto_scaling/activity_collection.rb +14 -15
- data/lib/aws/auto_scaling/client.rb +277 -277
- data/lib/aws/auto_scaling/config.rb +1 -1
- data/lib/aws/auto_scaling/group.rb +35 -36
- data/lib/aws/auto_scaling/group_collection.rb +10 -10
- data/lib/aws/auto_scaling/group_options.rb +19 -19
- data/lib/aws/auto_scaling/instance.rb +27 -27
- data/lib/aws/auto_scaling/instance_collection.rb +10 -10
- data/lib/aws/auto_scaling/launch_configuration.rb +3 -3
- data/lib/aws/auto_scaling/launch_configuration_collection.rb +1 -1
- data/lib/aws/auto_scaling/notification_configuration.rb +2 -2
- data/lib/aws/auto_scaling/notification_configuration_collection.rb +37 -38
- data/lib/aws/auto_scaling/scaling_policy.rb +3 -3
- data/lib/aws/auto_scaling/scaling_policy_collection.rb +6 -6
- data/lib/aws/auto_scaling/scaling_policy_options.rb +8 -7
- data/lib/aws/auto_scaling/scheduled_action.rb +3 -3
- data/lib/aws/auto_scaling/scheduled_action_collection.rb +28 -28
- data/lib/aws/auto_scaling/tag_collection.rb +30 -28
- data/lib/aws/cloud_formation.rb +95 -94
- data/lib/aws/cloud_formation/client.rb +136 -133
- data/lib/aws/cloud_formation/config.rb +1 -1
- data/lib/aws/cloud_formation/stack.rb +37 -37
- data/lib/aws/cloud_formation/stack_collection.rb +28 -27
- data/lib/aws/cloud_formation/stack_event.rb +9 -11
- data/lib/aws/cloud_formation/stack_output.rb +1 -1
- data/lib/aws/cloud_formation/stack_resource.rb +6 -6
- data/lib/aws/cloud_formation/stack_resource_collection.rb +11 -12
- data/lib/aws/cloud_formation/stack_resource_summary_collection.rb +11 -11
- data/lib/aws/cloud_formation/stack_summary_collection.rb +39 -39
- data/lib/aws/cloud_front.rb +21 -21
- data/lib/aws/cloud_front/client.rb +853 -652
- data/lib/aws/cloud_front/request.rb +3 -0
- data/lib/aws/cloud_search.rb +22 -22
- data/lib/aws/cloud_search/client.rb +322 -315
- data/lib/aws/cloud_search/config.rb +1 -1
- data/lib/aws/cloud_watch.rb +39 -39
- data/lib/aws/cloud_watch/alarm.rb +55 -37
- data/lib/aws/cloud_watch/alarm_collection.rb +18 -18
- data/lib/aws/cloud_watch/alarm_history_item_collection.rb +2 -2
- data/lib/aws/cloud_watch/client.rb +360 -146
- data/lib/aws/cloud_watch/config.rb +1 -1
- data/lib/aws/cloud_watch/metric.rb +15 -15
- data/lib/aws/cloud_watch/metric_alarm_collection.rb +17 -17
- data/lib/aws/cloud_watch/metric_collection.rb +16 -16
- data/lib/aws/cloud_watch/metric_statistics.rb +11 -11
- data/lib/aws/core.rb +243 -225
- data/lib/aws/core/async_handle.rb +13 -13
- data/lib/aws/core/cacheable.rb +14 -15
- data/lib/aws/core/client.rb +40 -15
- data/lib/aws/core/collection.rb +42 -46
- data/lib/aws/core/collection/with_limit_and_next_token.rb +1 -1
- data/lib/aws/core/collection/with_next_token.rb +1 -1
- data/lib/aws/core/configuration.rb +97 -133
- data/lib/aws/core/credential_providers.rb +16 -16
- data/lib/aws/core/data.rb +23 -23
- data/lib/aws/core/http/connection_pool.rb +348 -0
- data/lib/aws/core/http/net_http_handler.rb +17 -26
- data/lib/aws/core/http/patch.rb +102 -0
- data/lib/aws/core/http/request.rb +13 -19
- data/lib/aws/core/http/response.rb +2 -2
- data/lib/aws/core/lazy_error_classes.rb +17 -17
- data/lib/aws/core/log_formatter.rb +70 -104
- data/lib/aws/core/options/json_serializer.rb +1 -1
- data/lib/aws/core/options/validator.rb +4 -4
- data/lib/aws/core/page_result.rb +8 -8
- data/lib/aws/core/policy.rb +49 -49
- data/lib/aws/core/region.rb +72 -0
- data/lib/aws/core/region_collection.rb +106 -0
- data/lib/aws/core/resource.rb +5 -5
- data/lib/aws/core/response.rb +20 -17
- data/lib/aws/core/rest_request_builder.rb +4 -4
- data/lib/aws/core/service_interface.rb +24 -2
- data/lib/aws/core/signature/version_3.rb +2 -2
- data/lib/aws/core/uri_escape.rb +1 -1
- data/lib/aws/core/xml/frame_stack.rb +1 -1
- data/lib/aws/core/xml/grammar.rb +3 -4
- data/lib/aws/core/xml/sax_handlers/libxml.rb +2 -2
- data/lib/aws/core/xml/sax_handlers/nokogiri.rb +3 -3
- data/lib/aws/core/xml/sax_handlers/rexml.rb +5 -5
- data/lib/aws/core/xml/stub.rb +9 -9
- data/lib/aws/data_pipeline.rb +21 -21
- data/lib/aws/data_pipeline/client.rb +189 -133
- data/lib/aws/data_pipeline/config.rb +1 -1
- data/lib/aws/direct_connect.rb +74 -0
- data/lib/aws/direct_connect/client.rb +253 -0
- data/lib/aws/direct_connect/config.rb +18 -0
- data/lib/aws/direct_connect/errors.rb +22 -0
- data/lib/aws/direct_connect/request.rb +27 -0
- data/lib/aws/dynamo_db.rb +71 -69
- data/lib/aws/dynamo_db/attribute_collection.rb +53 -58
- data/lib/aws/dynamo_db/batch_get.rb +23 -23
- data/lib/aws/dynamo_db/batch_write.rb +43 -43
- data/lib/aws/dynamo_db/binary.rb +9 -9
- data/lib/aws/dynamo_db/client.rb +494 -509
- data/lib/aws/dynamo_db/client_base.rb +91 -0
- data/lib/aws/dynamo_db/client_v2.rb +825 -0
- data/lib/aws/dynamo_db/config.rb +1 -1
- data/lib/aws/dynamo_db/item.rb +10 -10
- data/lib/aws/dynamo_db/item_collection.rb +75 -75
- data/lib/aws/dynamo_db/table.rb +85 -85
- data/lib/aws/dynamo_db/table_collection.rb +13 -13
- data/lib/aws/ec2.rb +132 -142
- data/lib/aws/ec2/attachment.rb +31 -36
- data/lib/aws/ec2/attachment_collection.rb +1 -1
- data/lib/aws/ec2/availability_zone.rb +4 -4
- data/lib/aws/ec2/client.rb +2272 -2125
- data/lib/aws/ec2/config.rb +1 -1
- data/lib/aws/ec2/customer_gateway.rb +6 -6
- data/lib/aws/ec2/customer_gateway_collection.rb +6 -6
- data/lib/aws/ec2/dhcp_options.rb +3 -3
- data/lib/aws/ec2/dhcp_options_collection.rb +10 -10
- data/lib/aws/ec2/elastic_ip.rb +15 -15
- data/lib/aws/ec2/elastic_ip_collection.rb +11 -15
- data/lib/aws/ec2/export_task.rb +4 -4
- data/lib/aws/ec2/export_task_collection.rb +11 -11
- data/lib/aws/ec2/filtered_collection.rb +6 -8
- data/lib/aws/ec2/image.rb +46 -40
- data/lib/aws/ec2/image_collection.rb +44 -52
- data/lib/aws/ec2/instance.rb +64 -62
- data/lib/aws/ec2/instance_collection.rb +47 -50
- data/lib/aws/ec2/internet_gateway.rb +6 -6
- data/lib/aws/ec2/internet_gateway/attachment.rb +13 -13
- data/lib/aws/ec2/internet_gateway_collection.rb +3 -3
- data/lib/aws/ec2/key_pair.rb +3 -3
- data/lib/aws/ec2/key_pair_collection.rb +12 -12
- data/lib/aws/ec2/network_acl.rb +39 -39
- data/lib/aws/ec2/network_acl/association.rb +2 -2
- data/lib/aws/ec2/network_acl/entry.rb +22 -22
- data/lib/aws/ec2/network_acl_collection.rb +2 -2
- data/lib/aws/ec2/network_interface.rb +13 -4
- data/lib/aws/ec2/network_interface/attachment.rb +3 -3
- data/lib/aws/ec2/network_interface_collection.rb +5 -5
- data/lib/aws/ec2/permission_collection.rb +1 -1
- data/lib/aws/ec2/region.rb +6 -6
- data/lib/aws/ec2/region_collection.rb +1 -1
- data/lib/aws/ec2/reserved_instances_collection.rb +2 -2
- data/lib/aws/ec2/reserved_instances_offering_collection.rb +2 -2
- data/lib/aws/ec2/resource_tag_collection.rb +5 -5
- data/lib/aws/ec2/route_table.rb +14 -14
- data/lib/aws/ec2/route_table/association.rb +22 -22
- data/lib/aws/ec2/route_table/route.rb +8 -8
- data/lib/aws/ec2/route_table_collection.rb +3 -3
- data/lib/aws/ec2/security_group.rb +39 -41
- data/lib/aws/ec2/security_group_collection.rb +19 -21
- data/lib/aws/ec2/snapshot.rb +3 -3
- data/lib/aws/ec2/snapshot_collection.rb +11 -12
- data/lib/aws/ec2/subnet.rb +2 -2
- data/lib/aws/ec2/subnet_collection.rb +17 -17
- data/lib/aws/ec2/tag_collection.rb +1 -1
- data/lib/aws/ec2/tagged_collection.rb +7 -7
- data/lib/aws/ec2/tagged_item.rb +10 -10
- data/lib/aws/ec2/volume.rb +16 -16
- data/lib/aws/ec2/volume_collection.rb +9 -12
- data/lib/aws/ec2/vpc.rb +6 -6
- data/lib/aws/ec2/vpc_collection.rb +10 -10
- data/lib/aws/ec2/vpn_connection.rb +4 -4
- data/lib/aws/ec2/vpn_connection/telemetry.rb +1 -1
- data/lib/aws/ec2/vpn_connection_collection.rb +6 -6
- data/lib/aws/ec2/vpn_gateway.rb +2 -2
- data/lib/aws/ec2/vpn_gateway_collection.rb +5 -5
- data/lib/aws/elastic_beanstalk.rb +12 -12
- data/lib/aws/elastic_beanstalk/client.rb +376 -368
- data/lib/aws/elastic_beanstalk/config.rb +1 -1
- data/lib/aws/elastic_transcoder.rb +5 -5
- data/lib/aws/elastic_transcoder/client.rb +283 -283
- data/lib/aws/elastic_transcoder/config.rb +1 -1
- data/lib/aws/elasticache.rb +12 -12
- data/lib/aws/elasticache/client.rb +484 -479
- data/lib/aws/elasticache/config.rb +1 -1
- data/lib/aws/elb.rb +23 -23
- data/lib/aws/elb/availability_zone_collection.rb +34 -34
- data/lib/aws/elb/backend_server_policy_collection.rb +24 -24
- data/lib/aws/elb/client.rb +153 -153
- data/lib/aws/elb/config.rb +1 -1
- data/lib/aws/elb/errors.rb +1 -1
- data/lib/aws/elb/instance_collection.rb +20 -25
- data/lib/aws/elb/listener.rb +3 -3
- data/lib/aws/elb/listener_collection.rb +8 -8
- data/lib/aws/elb/load_balancer.rb +15 -16
- data/lib/aws/elb/load_balancer_collection.rb +36 -24
- data/lib/aws/elb/load_balancer_policy.rb +1 -1
- data/lib/aws/elb/load_balancer_policy_collection.rb +5 -5
- data/lib/aws/emr.rb +28 -26
- data/lib/aws/emr/client.rb +165 -149
- data/lib/aws/emr/config.rb +1 -1
- data/lib/aws/emr/instance_group.rb +1 -1
- data/lib/aws/emr/instance_group_collection.rb +1 -1
- data/lib/aws/emr/job_flow.rb +27 -26
- data/lib/aws/emr/job_flow_collection.rb +34 -34
- data/lib/aws/errors.rb +7 -7
- data/lib/aws/glacier.rb +21 -21
- data/lib/aws/glacier/archive_collection.rb +2 -2
- data/lib/aws/glacier/client.rb +139 -140
- data/lib/aws/glacier/config.rb +1 -1
- data/lib/aws/glacier/vault.rb +2 -2
- data/lib/aws/glacier/vault_collection.rb +1 -1
- data/lib/aws/iam.rb +133 -144
- data/lib/aws/iam/access_key.rb +17 -17
- data/lib/aws/iam/access_key_collection.rb +22 -22
- data/lib/aws/iam/account_alias_collection.rb +2 -2
- data/lib/aws/iam/client.rb +429 -420
- data/lib/aws/iam/collection.rb +1 -1
- data/lib/aws/iam/config.rb +2 -2
- data/lib/aws/iam/group.rb +8 -8
- data/lib/aws/iam/group_collection.rb +16 -16
- data/lib/aws/iam/group_policy_collection.rb +6 -6
- data/lib/aws/iam/group_user_collection.rb +3 -3
- data/lib/aws/iam/mfa_device.rb +1 -1
- data/lib/aws/iam/mfa_device_collection.rb +9 -9
- data/lib/aws/iam/policy_collection.rb +4 -4
- data/lib/aws/iam/resource.rb +2 -2
- data/lib/aws/iam/server_certificate.rb +1 -1
- data/lib/aws/iam/server_certificate_collection.rb +15 -15
- data/lib/aws/iam/signing_certificate.rb +29 -29
- data/lib/aws/iam/signing_certificate_collection.rb +23 -23
- data/lib/aws/iam/user.rb +33 -38
- data/lib/aws/iam/user_collection.rb +27 -27
- data/lib/aws/iam/user_group_collection.rb +3 -3
- data/lib/aws/iam/user_policy_collection.rb +6 -6
- data/lib/aws/iam/virtual_mfa_device.rb +12 -12
- data/lib/aws/iam/virtual_mfa_device_collection.rb +4 -4
- data/lib/aws/import_export.rb +22 -21
- data/lib/aws/import_export/client.rb +47 -43
- data/lib/aws/ops_works.rb +5 -5
- data/lib/aws/ops_works/client.rb +484 -438
- data/lib/aws/ops_works/config.rb +1 -1
- data/lib/aws/rails.rb +34 -34
- data/lib/aws/rds.rb +18 -18
- data/lib/aws/rds/client.rb +1286 -1277
- data/lib/aws/rds/config.rb +1 -1
- data/lib/aws/rds/db_instance.rb +15 -4
- data/lib/aws/rds/db_snapshot.rb +1 -1
- data/lib/aws/record.rb +50 -24
- data/lib/aws/record/abstract_base.rb +52 -60
- data/lib/aws/record/attributes.rb +79 -79
- data/lib/aws/record/conversion.rb +1 -1
- data/lib/aws/record/dirty_tracking.rb +69 -67
- data/lib/aws/record/errors.rb +21 -21
- data/lib/aws/record/exceptions.rb +2 -2
- data/lib/aws/record/hash_model.rb +20 -21
- data/lib/aws/record/hash_model/attributes.rb +13 -15
- data/lib/aws/record/hash_model/finder_methods.rb +46 -46
- data/lib/aws/record/hash_model/scope.rb +31 -31
- data/lib/aws/record/model.rb +136 -136
- data/lib/aws/record/model/attributes.rb +57 -59
- data/lib/aws/record/model/finder_methods.rb +67 -67
- data/lib/aws/record/model/scope.rb +48 -49
- data/lib/aws/record/naming.rb +1 -1
- data/lib/aws/record/scope.rb +23 -19
- data/lib/aws/record/validations.rb +253 -271
- data/lib/aws/record/validator.rb +3 -3
- data/lib/aws/record/validators/acceptance.rb +1 -3
- data/lib/aws/record/validators/block.rb +1 -3
- data/lib/aws/record/validators/confirmation.rb +1 -3
- data/lib/aws/record/validators/count.rb +2 -4
- data/lib/aws/record/validators/exclusion.rb +2 -4
- data/lib/aws/record/validators/format.rb +2 -4
- data/lib/aws/record/validators/inclusion.rb +1 -3
- data/lib/aws/record/validators/length.rb +5 -7
- data/lib/aws/record/validators/method.rb +1 -3
- data/lib/aws/record/validators/numericality.rb +6 -8
- data/lib/aws/record/validators/presence.rb +1 -3
- data/lib/aws/redshift.rb +14 -14
- data/lib/aws/redshift/client.rb +596 -592
- data/lib/aws/redshift/config.rb +1 -1
- data/lib/aws/route_53.rb +30 -30
- data/lib/aws/route_53/change_batch.rb +7 -7
- data/lib/aws/route_53/client.rb +188 -152
- data/lib/aws/route_53/hosted_zone.rb +4 -4
- data/lib/aws/route_53/hosted_zone_collection.rb +7 -7
- data/lib/aws/route_53/resource_record_set.rb +10 -10
- data/lib/aws/route_53/resource_record_set_collection.rb +6 -6
- data/lib/aws/s3.rb +79 -79
- data/lib/aws/s3/access_control_list.rb +44 -36
- data/lib/aws/s3/acl_options.rb +51 -51
- data/lib/aws/s3/bucket.rb +146 -146
- data/lib/aws/s3/bucket_collection.rb +21 -21
- data/lib/aws/s3/bucket_lifecycle_configuration.rb +81 -82
- data/lib/aws/s3/bucket_tag_collection.rb +4 -2
- data/lib/aws/s3/cipher_io.rb +5 -4
- data/lib/aws/s3/client.rb +89 -84
- data/lib/aws/s3/client/xml.rb +1 -1
- data/lib/aws/s3/config.rb +7 -1
- data/lib/aws/s3/cors_rule.rb +2 -0
- data/lib/aws/s3/cors_rule_collection.rb +42 -40
- data/lib/aws/s3/data_options.rb +16 -11
- data/lib/aws/s3/encryption_utils.rb +2 -2
- data/lib/aws/s3/errors.rb +7 -7
- data/lib/aws/s3/multipart_upload.rb +30 -33
- data/lib/aws/s3/multipart_upload_collection.rb +8 -6
- data/lib/aws/s3/object_collection.rb +35 -35
- data/lib/aws/s3/object_metadata.rb +6 -6
- data/lib/aws/s3/object_version.rb +4 -4
- data/lib/aws/s3/object_version_collection.rb +15 -15
- data/lib/aws/s3/policy.rb +2 -2
- data/lib/aws/s3/prefixed_collection.rb +9 -5
- data/lib/aws/s3/presigned_post.rb +39 -37
- data/lib/aws/s3/request.rb +11 -11
- data/lib/aws/s3/s3_object.rb +210 -200
- data/lib/aws/s3/tree.rb +25 -27
- data/lib/aws/s3/tree/child_collection.rb +3 -3
- data/lib/aws/s3/tree/leaf_node.rb +2 -2
- data/lib/aws/s3/tree/parent.rb +1 -1
- data/lib/aws/s3/website_configuration.rb +13 -13
- data/lib/aws/simple_db.rb +83 -83
- data/lib/aws/simple_db/attribute.rb +9 -7
- data/lib/aws/simple_db/attribute_collection.rb +22 -13
- data/lib/aws/simple_db/client.rb +107 -107
- data/lib/aws/simple_db/config.rb +7 -1
- data/lib/aws/simple_db/consistent_read_option.rb +5 -5
- data/lib/aws/simple_db/domain.rb +4 -2
- data/lib/aws/simple_db/domain_collection.rb +4 -4
- data/lib/aws/simple_db/domain_metadata.rb +5 -5
- data/lib/aws/simple_db/errors.rb +9 -9
- data/lib/aws/simple_db/item.rb +5 -5
- data/lib/aws/simple_db/item_collection.rb +83 -81
- data/lib/aws/simple_db/item_data.rb +4 -4
- data/lib/aws/simple_db/put_attributes.rb +3 -3
- data/lib/aws/simple_email_service.rb +140 -140
- data/lib/aws/simple_email_service/client.rb +82 -76
- data/lib/aws/simple_email_service/config.rb +1 -2
- data/lib/aws/simple_email_service/email_address_collection.rb +3 -3
- data/lib/aws/simple_email_service/identity.rb +8 -8
- data/lib/aws/simple_email_service/quotas.rb +8 -6
- data/lib/aws/simple_workflow.rb +106 -106
- data/lib/aws/simple_workflow/activity_task.rb +15 -22
- data/lib/aws/simple_workflow/activity_task_collection.rb +15 -15
- data/lib/aws/simple_workflow/activity_type.rb +23 -23
- data/lib/aws/simple_workflow/activity_type_collection.rb +23 -23
- data/lib/aws/simple_workflow/client.rb +1004 -956
- data/lib/aws/simple_workflow/config.rb +1 -1
- data/lib/aws/simple_workflow/count.rb +5 -5
- data/lib/aws/simple_workflow/decision_task.rb +129 -129
- data/lib/aws/simple_workflow/decision_task_collection.rb +59 -59
- data/lib/aws/simple_workflow/domain.rb +11 -11
- data/lib/aws/simple_workflow/domain_collection.rb +26 -26
- data/lib/aws/simple_workflow/history_event.rb +32 -32
- data/lib/aws/simple_workflow/history_event_collection.rb +3 -3
- data/lib/aws/simple_workflow/option_formatters.rb +5 -5
- data/lib/aws/simple_workflow/request.rb +1 -1
- data/lib/aws/simple_workflow/resource.rb +1 -1
- data/lib/aws/simple_workflow/type.rb +8 -8
- data/lib/aws/simple_workflow/type_collection.rb +15 -15
- data/lib/aws/simple_workflow/workflow_execution.rb +70 -72
- data/lib/aws/simple_workflow/workflow_execution_collection.rb +130 -130
- data/lib/aws/simple_workflow/workflow_type.rb +27 -25
- data/lib/aws/simple_workflow/workflow_type_collection.rb +20 -20
- data/lib/aws/sns.rb +25 -25
- data/lib/aws/sns/client.rb +55 -55
- data/lib/aws/sns/config.rb +1 -1
- data/lib/aws/sns/policy.rb +1 -1
- data/lib/aws/sns/subscription.rb +7 -7
- data/lib/aws/sns/subscription_collection.rb +5 -5
- data/lib/aws/sns/topic.rb +49 -49
- data/lib/aws/sns/topic_collection.rb +2 -2
- data/lib/aws/sns/topic_subscription_collection.rb +5 -5
- data/lib/aws/sqs.rb +20 -20
- data/lib/aws/sqs/client.rb +78 -78
- data/lib/aws/sqs/config.rb +1 -1
- data/lib/aws/sqs/errors.rb +12 -12
- data/lib/aws/sqs/queue.rb +66 -67
- data/lib/aws/sqs/queue_collection.rb +16 -8
- data/lib/aws/sqs/received_message.rb +7 -6
- data/lib/aws/storage_gateway.rb +21 -21
- data/lib/aws/storage_gateway/client.rb +269 -202
- data/lib/aws/storage_gateway/config.rb +1 -1
- data/lib/aws/sts.rb +10 -8
- data/lib/aws/sts/client.rb +35 -35
- data/lib/aws/sts/session.rb +3 -3
- data/lib/aws/version.rb +1 -2
- metadata +23 -21
- data/lib/aws/core/autoloader.rb +0 -64
- data/lib/net/http/connection_pool.rb +0 -226
- data/lib/net/http/connection_pool/connection.rb +0 -189
- data/lib/net/http/connection_pool/session.rb +0 -126
data/lib/aws/core/resource.rb
CHANGED
@@ -82,11 +82,11 @@ module AWS
|
|
82
82
|
# Overide this method is subclasses of Resource. This method should
|
83
83
|
# return an array of identifying key/value pairs.
|
84
84
|
#
|
85
|
-
#
|
86
|
-
#
|
87
|
-
#
|
88
|
-
#
|
89
|
-
#
|
85
|
+
# # @private
|
86
|
+
# protected
|
87
|
+
# def resource_identifiers
|
88
|
+
# [[:user_name, name]]
|
89
|
+
# end
|
90
90
|
#
|
91
91
|
# @private
|
92
92
|
protected
|
data/lib/aws/core/response.rb
CHANGED
@@ -14,7 +14,7 @@
|
|
14
14
|
module AWS
|
15
15
|
module Core
|
16
16
|
|
17
|
-
#
|
17
|
+
# # Response
|
18
18
|
#
|
19
19
|
# Each Service has a Client class. There is one method per service
|
20
20
|
# operation defined on the client. These methods all return a {Response}
|
@@ -23,23 +23,23 @@ module AWS
|
|
23
23
|
# In addition to the response data, these responses provide metadata
|
24
24
|
# about the HTTP request made and the HTTP response received.
|
25
25
|
#
|
26
|
-
#
|
26
|
+
# ## Response Data
|
27
27
|
#
|
28
28
|
# You can access the response data for a client request using the {#data}
|
29
29
|
# method or the {#[]} method. Response data is a hash and {#[]} is
|
30
30
|
# a shortcut for accessing this hash.
|
31
31
|
#
|
32
|
-
#
|
33
|
-
#
|
34
|
-
#
|
32
|
+
# # make a request to describe one instance
|
33
|
+
# ec2 = AWS::EC2.new
|
34
|
+
# response = ec2.client.describe_instances(:instance_ids => ['i-12345678'])
|
35
35
|
#
|
36
|
-
#
|
37
|
-
#
|
38
|
-
#
|
36
|
+
# # find the instance in the response data (2 ways to get the data)
|
37
|
+
# instance = response[:reservation_set].first[:instance_set].first
|
38
|
+
# instance = response.data[:reservation_set].first[:instance_set].first
|
39
39
|
#
|
40
|
-
#
|
40
|
+
# instance[:status] #=> 'running'
|
41
41
|
#
|
42
|
-
#
|
42
|
+
# ## Response Metadata
|
43
43
|
#
|
44
44
|
# In addition to the response data, there is additional information
|
45
45
|
# available with the response, including:
|
@@ -51,10 +51,10 @@ module AWS
|
|
51
51
|
#
|
52
52
|
# Given the example and response object from above:
|
53
53
|
#
|
54
|
-
#
|
55
|
-
#
|
56
|
-
#
|
57
|
-
#
|
54
|
+
# response.request_type #=> :describe_instances
|
55
|
+
# response.request_options #=> { :instance_ids => ['i-12345678'] }
|
56
|
+
# response.http_request #=> #<AWS::Core::Http::Request>
|
57
|
+
# response.http_response #=> #<AWS::Core::Http::Response>
|
58
58
|
#
|
59
59
|
class Response
|
60
60
|
|
@@ -63,6 +63,9 @@ module AWS
|
|
63
63
|
# @return [Hash] Returns the response data as a hash.
|
64
64
|
attr_accessor :data
|
65
65
|
|
66
|
+
# @private
|
67
|
+
attr_accessor :config
|
68
|
+
|
66
69
|
# @return [Symbol] The name of the client request method that
|
67
70
|
# returned this response.
|
68
71
|
attr_accessor :request_type
|
@@ -109,7 +112,7 @@ module AWS
|
|
109
112
|
end
|
110
113
|
|
111
114
|
# Provides access to the response data. This is a short-cut
|
112
|
-
# for calling
|
115
|
+
# for calling `response.data[key]`.
|
113
116
|
#
|
114
117
|
# @param [Symbol,String] key
|
115
118
|
# @return [Hash,nil]
|
@@ -122,7 +125,7 @@ module AWS
|
|
122
125
|
error.nil?
|
123
126
|
end
|
124
127
|
|
125
|
-
# @return [Boolean] Returns
|
128
|
+
# @return [Boolean] Returns `true` if the http request failed due to
|
126
129
|
# a networking issue.
|
127
130
|
def network_error?
|
128
131
|
http_response.network_error?
|
@@ -154,7 +157,7 @@ module AWS
|
|
154
157
|
@http_request.body_stream.rewind if @http_request.body_stream
|
155
158
|
end
|
156
159
|
|
157
|
-
# @return [Boolean] Returns
|
160
|
+
# @return [Boolean] Returns `false` if it is not safe to retry a
|
158
161
|
# request. This happens when the http request body is an IO
|
159
162
|
# object that can not be rewound and re-streamed.
|
160
163
|
def safe_to_retry?
|
@@ -27,14 +27,36 @@ module AWS
|
|
27
27
|
base::Errors.module_eval { include Errors }
|
28
28
|
end
|
29
29
|
|
30
|
+
AWS::Core::MetaUtils.extend(base) do
|
31
|
+
|
32
|
+
# @private
|
33
|
+
def endpoint_prefix prefix = nil, options = {}
|
34
|
+
if prefix
|
35
|
+
@endpoint_prefix = prefix
|
36
|
+
@global_endpoint = !!options[:global]
|
37
|
+
end
|
38
|
+
@endpoint_prefix
|
39
|
+
end
|
40
|
+
|
41
|
+
# @private
|
42
|
+
def global_endpoint?
|
43
|
+
@global_endpoint
|
44
|
+
end
|
45
|
+
|
46
|
+
def regions
|
47
|
+
RegionCollection.new(:service => self)
|
48
|
+
end
|
49
|
+
|
50
|
+
end
|
51
|
+
|
30
52
|
end
|
31
53
|
|
32
54
|
# Returns a new interface object for this service. You can override
|
33
55
|
# any of the global configuration parameters by passing them in as
|
34
56
|
# hash options. They are merged with AWS.config or merged
|
35
|
-
# with the provided
|
57
|
+
# with the provided `:config` object.
|
36
58
|
#
|
37
|
-
#
|
59
|
+
# @ec2 = AWS::EC2.new(:max_retries => 2)
|
38
60
|
#
|
39
61
|
# @see AWS::Cofiguration
|
40
62
|
#
|
@@ -28,7 +28,7 @@ module AWS
|
|
28
28
|
headers["x-amz-date"] ||= (headers["date"] ||= Time.now.httpdate)
|
29
29
|
headers["host"] ||= host
|
30
30
|
|
31
|
-
headers["x-amz-security-token"] = credentials.session_token if
|
31
|
+
headers["x-amz-security-token"] = credentials.session_token if
|
32
32
|
credentials.session_token
|
33
33
|
|
34
34
|
# compute the authorization
|
@@ -43,7 +43,7 @@ module AWS
|
|
43
43
|
protected
|
44
44
|
|
45
45
|
def signature credentials
|
46
|
-
Signer.sign(credentials.secret_access_key, string_to_sign)
|
46
|
+
Signer.sign(credentials.secret_access_key, string_to_sign)
|
47
47
|
end
|
48
48
|
|
49
49
|
def string_to_sign
|
data/lib/aws/core/uri_escape.rb
CHANGED
@@ -28,7 +28,7 @@ module AWS
|
|
28
28
|
module_function :escape
|
29
29
|
|
30
30
|
# @param [String] value
|
31
|
-
# @return [String] Returns a URI-escaped path without escaping the
|
31
|
+
# @return [String] Returns a URI-escaped path without escaping the
|
32
32
|
# separators.
|
33
33
|
def escape_path value
|
34
34
|
escaped = ""
|
data/lib/aws/core/xml/grammar.rb
CHANGED
@@ -129,7 +129,7 @@ module AWS
|
|
129
129
|
allow_methods = %w(
|
130
130
|
rename attribute_name boolean integer long float list force string
|
131
131
|
ignore collect_values symbol_value timestamp map_entry map blob
|
132
|
-
position
|
132
|
+
enum position
|
133
133
|
)
|
134
134
|
unless allow_methods.include?(method.to_s)
|
135
135
|
raise "#{method} cannot be used in configuration"
|
@@ -151,9 +151,7 @@ module AWS
|
|
151
151
|
Inflection.ruby_name(value.to_s).to_sym
|
152
152
|
end
|
153
153
|
|
154
|
-
|
155
|
-
## customization methods
|
156
|
-
##
|
154
|
+
# customization methods
|
157
155
|
|
158
156
|
def element element_name, &block
|
159
157
|
|
@@ -286,6 +284,7 @@ module AWS
|
|
286
284
|
end
|
287
285
|
alias_method :==, :eql?
|
288
286
|
|
287
|
+
def enum *args; end
|
289
288
|
def position *args; end
|
290
289
|
def http_trait *args; end
|
291
290
|
alias_method :http_header, :http_trait
|
@@ -18,7 +18,7 @@ module AWS
|
|
18
18
|
module XML
|
19
19
|
module SaxHandlers
|
20
20
|
class LibXML
|
21
|
-
|
21
|
+
|
22
22
|
include FrameStack
|
23
23
|
include ::LibXML::XML::SaxParser::Callbacks
|
24
24
|
|
@@ -29,7 +29,7 @@ module AWS
|
|
29
29
|
end
|
30
30
|
|
31
31
|
def on_start_element_ns element_name, attributes, *ignore
|
32
|
-
start_element(element_name, attributes)
|
32
|
+
start_element(element_name, attributes)
|
33
33
|
end
|
34
34
|
|
35
35
|
def on_end_element_ns *ignore
|
@@ -18,7 +18,7 @@ module AWS
|
|
18
18
|
module XML
|
19
19
|
module SaxHandlers
|
20
20
|
class Nokogiri
|
21
|
-
|
21
|
+
|
22
22
|
include FrameStack
|
23
23
|
|
24
24
|
def sax_parse xml
|
@@ -32,11 +32,11 @@ module AWS
|
|
32
32
|
|
33
33
|
def start_element_namespace element_name, attributes = [], *ignore
|
34
34
|
|
35
|
-
attributes = attributes.map.inject({}) do |hash,attr|
|
35
|
+
attributes = attributes.map.inject({}) do |hash,attr|
|
36
36
|
hash.merge(attr.localname => attr.value)
|
37
37
|
end
|
38
38
|
|
39
|
-
start_element(element_name, attributes)
|
39
|
+
start_element(element_name, attributes)
|
40
40
|
|
41
41
|
end
|
42
42
|
|
@@ -19,23 +19,23 @@ module AWS
|
|
19
19
|
module XML
|
20
20
|
module SaxHandlers
|
21
21
|
class REXML
|
22
|
-
|
22
|
+
|
23
23
|
include FrameStack
|
24
24
|
include ::REXML::StreamListener
|
25
|
-
|
25
|
+
|
26
26
|
def sax_parse xml
|
27
27
|
source = ::REXML::Source.new(xml)
|
28
28
|
::REXML::Parsers::StreamParser.new(source, self).parse
|
29
29
|
end
|
30
|
-
|
30
|
+
|
31
31
|
def tag_start name, attrs
|
32
32
|
start_element(name, attrs)
|
33
33
|
end
|
34
|
-
|
34
|
+
|
35
35
|
def tag_end name
|
36
36
|
end_element
|
37
37
|
end
|
38
|
-
|
38
|
+
|
39
39
|
end
|
40
40
|
end
|
41
41
|
end
|
data/lib/aws/core/xml/stub.rb
CHANGED
@@ -37,9 +37,9 @@ module AWS
|
|
37
37
|
attr_reader :rules
|
38
38
|
|
39
39
|
# Returns a hash with stubbed values as if it had parsed
|
40
|
-
# an empty xml document.
|
41
|
-
# @return [Hash]
|
42
|
-
def simulate
|
40
|
+
# an empty xml document.
|
41
|
+
# @return [Hash]
|
42
|
+
def simulate
|
43
43
|
if rules[:children]
|
44
44
|
data = stub_data_for(rules)
|
45
45
|
apply_empty_indexes(rules, data)
|
@@ -50,9 +50,9 @@ module AWS
|
|
50
50
|
end
|
51
51
|
|
52
52
|
# Returns a hash with stubbed values as if it had parsed
|
53
|
-
# an empty xml document.
|
53
|
+
# an empty xml document.
|
54
54
|
# @param [Hash] rules An XML::Parser rule set.
|
55
|
-
# @return [Hash]
|
55
|
+
# @return [Hash]
|
56
56
|
def self.simulate rules
|
57
57
|
stub = Stub.new(rules)
|
58
58
|
stub.simulate
|
@@ -74,7 +74,7 @@ module AWS
|
|
74
74
|
data = data[wrapper]
|
75
75
|
end
|
76
76
|
|
77
|
-
ruby_name = child_rules[:rename] ||
|
77
|
+
ruby_name = child_rules[:rename] ||
|
78
78
|
Inflection.ruby_name(name.to_s).to_sym
|
79
79
|
|
80
80
|
if child_rules[:list]
|
@@ -85,7 +85,7 @@ module AWS
|
|
85
85
|
data[ruby_name] = stub_data_for(child_rules)
|
86
86
|
else
|
87
87
|
data[ruby_name] = case child_rules[:type]
|
88
|
-
when :integer then 0
|
88
|
+
when :integer then 0
|
89
89
|
when :float then 0.0
|
90
90
|
when :time then Time.now
|
91
91
|
when :datetime then Date.parse(Time.now.to_s)
|
@@ -105,9 +105,9 @@ module AWS
|
|
105
105
|
|
106
106
|
protected
|
107
107
|
def apply_empty_indexes rules, data
|
108
|
-
|
108
|
+
|
109
109
|
return unless rules[:children]
|
110
|
-
|
110
|
+
|
111
111
|
rules[:children].each_pair do |name,child_rules|
|
112
112
|
if index = child_rules[:index]
|
113
113
|
data[index[:name]] = {}
|
data/lib/aws/data_pipeline.rb
CHANGED
@@ -19,41 +19,41 @@ module AWS
|
|
19
19
|
# This class is the starting point for working with AWS Data Pipeline.
|
20
20
|
#
|
21
21
|
# To use AWS Data Pipeline you must first
|
22
|
-
#
|
22
|
+
# [sign up here](http://aws.amazon.com/datapipeline/).
|
23
23
|
#
|
24
24
|
# For more information about AWS Data Pipeline:
|
25
25
|
#
|
26
|
-
# *
|
27
|
-
# *
|
26
|
+
# * [AWS Data Pipeline](http://aws.amazon.com/datapipeline/)
|
27
|
+
# * [AWS Data Pipeline Documentation](http://aws.amazon.com/documentation/datapipeline/)
|
28
28
|
#
|
29
|
-
#
|
29
|
+
# # Credentials
|
30
30
|
#
|
31
31
|
# You can setup default credentials for all AWS services via
|
32
32
|
# AWS.config:
|
33
33
|
#
|
34
|
-
#
|
35
|
-
#
|
36
|
-
#
|
34
|
+
# AWS.config(
|
35
|
+
# :access_key_id => 'YOUR_ACCESS_KEY_ID',
|
36
|
+
# :secret_access_key => 'YOUR_SECRET_ACCESS_KEY')
|
37
37
|
#
|
38
38
|
# Or you can set them directly on the AWS::DataPipeline interface:
|
39
39
|
#
|
40
|
-
#
|
41
|
-
#
|
42
|
-
#
|
40
|
+
# datapipeline = AWS::DataPipeline.new(
|
41
|
+
# :access_key_id => 'YOUR_ACCESS_KEY_ID',
|
42
|
+
# :secret_access_key => 'YOUR_SECRET_ACCESS_KEY')
|
43
43
|
#
|
44
|
-
#
|
44
|
+
# # Using the Client
|
45
45
|
#
|
46
46
|
# AWS::DataPipeline does not provide higher level abstractions for AWS Data Pipeline
|
47
47
|
# this time. You can still access all of the API methods using
|
48
48
|
# {AWS::DataPipeline::Client}. Here is how you access the client and make
|
49
49
|
# a simple request:
|
50
50
|
#
|
51
|
-
#
|
51
|
+
# data_pipeline = AWS::DataPipeline.new
|
52
52
|
#
|
53
|
-
#
|
54
|
-
#
|
55
|
-
#
|
56
|
-
#
|
53
|
+
# resp = data_pipeline.client.describe_pipelines
|
54
|
+
# resp[:pipeline_description_list].each do |pipeline|
|
55
|
+
# puts pipeline[:pipeline_id]
|
56
|
+
# end
|
57
57
|
#
|
58
58
|
# See {Client} for documentation on all of the supported operations.
|
59
59
|
#
|
@@ -61,13 +61,13 @@ module AWS
|
|
61
61
|
# @return [Client] the low-level DataPipeline client object
|
62
62
|
class DataPipeline
|
63
63
|
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
autoload :Request, 'request'
|
68
|
-
end
|
64
|
+
autoload :Client, 'aws/data_pipeline/client'
|
65
|
+
autoload :Errors, 'aws/data_pipeline/errors'
|
66
|
+
autoload :Request, 'aws/data_pipeline/request'
|
69
67
|
|
70
68
|
include Core::ServiceInterface
|
71
69
|
|
70
|
+
endpoint_prefix 'datapipeline'
|
71
|
+
|
72
72
|
end
|
73
73
|
end
|
@@ -25,18 +25,18 @@ module AWS
|
|
25
25
|
# @!method activate_pipeline(options = {})
|
26
26
|
# Calls the ActivatePipeline API operation.
|
27
27
|
# @param [Hash] options
|
28
|
-
# *
|
28
|
+
# * `:pipeline_id` - *required* - (String) The identifier of the
|
29
29
|
# pipeline to activate.
|
30
30
|
# @return [Core::Response]
|
31
31
|
|
32
32
|
# @!method create_pipeline(options = {})
|
33
33
|
# Calls the CreatePipeline API operation.
|
34
34
|
# @param [Hash] options
|
35
|
-
# *
|
35
|
+
# * `:name` - *required* - (String) The name of the new pipeline. You
|
36
36
|
# can use the same name for multiple pipelines associated with your
|
37
37
|
# AWS account, because AWS Data Pipeline assigns each new pipeline a
|
38
38
|
# unique pipeline identifier.
|
39
|
-
# *
|
39
|
+
# * `:unique_id` - *required* - (String) A unique identifier that you
|
40
40
|
# specify. This identifier is not the same as the pipeline identifier
|
41
41
|
# assigned by AWS Data Pipeline. You are responsible for defining the
|
42
42
|
# format and ensuring the uniqueness of this identifier. You use this
|
@@ -48,30 +48,32 @@ module AWS
|
|
48
48
|
# exists with the same name and unique identifier, a new pipeline
|
49
49
|
# will not be created. Instead, you'll receive the pipeline
|
50
50
|
# identifier from the previous attempt. The uniqueness of the name
|
51
|
-
# and unique identifier combination is scoped to the AWS account
|
52
|
-
#
|
51
|
+
# and unique identifier combination is scoped to the AWS account or
|
52
|
+
# IAM user credentials.
|
53
|
+
# * `:description` - (String) The description of the new pipeline.
|
53
54
|
# @return [Core::Response]
|
54
55
|
# The #data method of the response object returns
|
55
56
|
# a hash with the following structure:
|
56
|
-
# *
|
57
|
+
# * `:pipeline_id` - (String)
|
57
58
|
|
58
59
|
# @!method delete_pipeline(options = {})
|
59
60
|
# Calls the DeletePipeline API operation.
|
60
61
|
# @param [Hash] options
|
61
|
-
# *
|
62
|
+
# * `:pipeline_id` - *required* - (String) The identifier of the
|
62
63
|
# pipeline to be deleted.
|
63
64
|
# @return [Core::Response]
|
64
65
|
|
65
66
|
# @!method describe_objects(options = {})
|
66
67
|
# Calls the DescribeObjects API operation.
|
67
68
|
# @param [Hash] options
|
68
|
-
# *
|
69
|
+
# * `:pipeline_id` - *required* - (String) Identifier of the pipeline
|
69
70
|
# that contains the object definitions.
|
70
|
-
# *
|
71
|
+
# * `:object_ids` - *required* - (Array<String>) Identifiers of the
|
71
72
|
# pipeline objects that contain the definitions to be described. You
|
72
73
|
# can pass as many as 25 identifiers in a single call to
|
73
74
|
# DescribeObjects
|
74
|
-
# *
|
75
|
+
# * `:evaluate_expressions` - (Boolean)
|
76
|
+
# * `:marker` - (String) The starting point for the results to be
|
75
77
|
# returned. The first time you call DescribeObjects, this value
|
76
78
|
# should be empty. As long as the action returns HasMoreResults as
|
77
79
|
# True, you can call DescribeObjects again and pass the marker value
|
@@ -79,67 +81,69 @@ module AWS
|
|
79
81
|
# @return [Core::Response]
|
80
82
|
# The #data method of the response object returns
|
81
83
|
# a hash with the following structure:
|
82
|
-
# *
|
83
|
-
# *
|
84
|
-
# *
|
85
|
-
# *
|
86
|
-
# *
|
87
|
-
# *
|
88
|
-
# *
|
89
|
-
# *
|
90
|
-
# *
|
84
|
+
# * `:pipeline_objects` - (Array<Hash>)
|
85
|
+
# * `:id` - (String)
|
86
|
+
# * `:name` - (String)
|
87
|
+
# * `:fields` - (Array<Hash>)
|
88
|
+
# * `:key` - (String)
|
89
|
+
# * `:string_value` - (String)
|
90
|
+
# * `:ref_value` - (String)
|
91
|
+
# * `:marker` - (String)
|
92
|
+
# * `:has_more_results` - (Boolean)
|
91
93
|
|
92
94
|
# @!method describe_pipelines(options = {})
|
93
95
|
# Calls the DescribePipelines API operation.
|
94
96
|
# @param [Hash] options
|
95
|
-
# *
|
97
|
+
# * `:pipeline_ids` - *required* - (Array<String>) Identifiers of the
|
96
98
|
# pipelines to describe. You can pass as many as 25 identifiers in a
|
97
99
|
# single call to DescribePipelines. You can obtain pipeline
|
98
100
|
# identifiers by calling ListPipelines.
|
99
101
|
# @return [Core::Response]
|
100
102
|
# The #data method of the response object returns
|
101
103
|
# a hash with the following structure:
|
102
|
-
# *
|
103
|
-
# *
|
104
|
-
# *
|
105
|
-
# *
|
106
|
-
# *
|
107
|
-
# *
|
108
|
-
# *
|
109
|
-
# *
|
104
|
+
# * `:pipeline_description_list` - (Array<Hash>)
|
105
|
+
# * `:pipeline_id` - (String)
|
106
|
+
# * `:name` - (String)
|
107
|
+
# * `:fields` - (Array<Hash>)
|
108
|
+
# * `:key` - (String)
|
109
|
+
# * `:string_value` - (String)
|
110
|
+
# * `:ref_value` - (String)
|
111
|
+
# * `:description` - (String)
|
110
112
|
|
111
113
|
# @!method evaluate_expression(options = {})
|
112
114
|
# Calls the EvaluateExpression API operation.
|
113
115
|
# @param [Hash] options
|
114
|
-
# *
|
115
|
-
#
|
116
|
-
# *
|
116
|
+
# * `:pipeline_id` - *required* - (String) The identifier of the
|
117
|
+
# pipeline.
|
118
|
+
# * `:object_id` - *required* - (String) The identifier of the object.
|
119
|
+
# * `:expression` - *required* - (String) The expression to evaluate.
|
117
120
|
# @return [Core::Response]
|
118
121
|
# The #data method of the response object returns
|
119
122
|
# a hash with the following structure:
|
120
|
-
# *
|
123
|
+
# * `:evaluated_expression` - (String)
|
121
124
|
|
122
125
|
# @!method get_pipeline_definition(options = {})
|
123
126
|
# Calls the GetPipelineDefinition API operation.
|
124
127
|
# @param [Hash] options
|
125
|
-
# *
|
128
|
+
# * `:pipeline_id` - *required* - (String) The identifier of the
|
126
129
|
# pipeline.
|
127
|
-
# *
|
130
|
+
# * `:version` - (String) The version of the pipeline definition to
|
131
|
+
# retrieve.
|
128
132
|
# @return [Core::Response]
|
129
133
|
# The #data method of the response object returns
|
130
134
|
# a hash with the following structure:
|
131
|
-
# *
|
132
|
-
# *
|
133
|
-
# *
|
134
|
-
# *
|
135
|
-
# *
|
136
|
-
# *
|
137
|
-
# *
|
135
|
+
# * `:pipeline_objects` - (Array<Hash>)
|
136
|
+
# * `:id` - (String)
|
137
|
+
# * `:name` - (String)
|
138
|
+
# * `:fields` - (Array<Hash>)
|
139
|
+
# * `:key` - (String)
|
140
|
+
# * `:string_value` - (String)
|
141
|
+
# * `:ref_value` - (String)
|
138
142
|
|
139
143
|
# @!method list_pipelines(options = {})
|
140
144
|
# Calls the ListPipelines API operation.
|
141
145
|
# @param [Hash] options
|
142
|
-
# *
|
146
|
+
# * `:marker` - (String) The starting point for the results to be
|
143
147
|
# returned. The first time you call ListPipelines, this value should
|
144
148
|
# be empty. As long as the action returns HasMoreResults as True, you
|
145
149
|
# can call ListPipelines again and pass the marker value from the
|
@@ -147,159 +151,211 @@ module AWS
|
|
147
151
|
# @return [Core::Response]
|
148
152
|
# The #data method of the response object returns
|
149
153
|
# a hash with the following structure:
|
150
|
-
# *
|
151
|
-
# *
|
152
|
-
# *
|
153
|
-
# *
|
154
|
-
# *
|
154
|
+
# * `:pipeline_id_list` - (Array<Hash>)
|
155
|
+
# * `:id` - (String)
|
156
|
+
# * `:name` - (String)
|
157
|
+
# * `:marker` - (String)
|
158
|
+
# * `:has_more_results` - (Boolean)
|
155
159
|
|
156
160
|
# @!method poll_for_task(options = {})
|
157
161
|
# Calls the PollForTask API operation.
|
158
162
|
# @param [Hash] options
|
159
|
-
# *
|
160
|
-
# the
|
161
|
-
# set as a field on objects in the pipeline when they are
|
162
|
-
# You can only specify a single value for workerGroup in the
|
163
|
-
# PollForTask. There are no wildcard values permitted in
|
164
|
-
# the string must be an exact match.
|
165
|
-
# *
|
166
|
-
#
|
167
|
-
# *
|
168
|
-
# EC2 instance that is hosting the
|
169
|
-
#
|
163
|
+
# * `:worker_group` - *required* - (String) Indicates the type of task
|
164
|
+
# the task runner is configured to accept and process. The worker
|
165
|
+
# group is set as a field on objects in the pipeline when they are
|
166
|
+
# created. You can only specify a single value for workerGroup in the
|
167
|
+
# call to PollForTask. There are no wildcard values permitted in
|
168
|
+
# workerGroup, the string must be an exact, case-sensitive, match.
|
169
|
+
# * `:hostname` - (String) The public DNS name of the calling task
|
170
|
+
# runner.
|
171
|
+
# * `:instance_identity` - (Hash) Identity information for the Amazon
|
172
|
+
# EC2 instance that is hosting the task runner. You can get this
|
173
|
+
# value by calling the URI,
|
174
|
+
# http://169.254.169.254/latest/meta-data/instance-id, from the EC2
|
175
|
+
# instance. For more information, go to Instance Metadata in the
|
176
|
+
# Amazon Elastic Compute Cloud User Guide. Passing in this value
|
177
|
+
# proves that your task runner is running on an EC2 instance, and
|
178
|
+
# ensures the proper AWS Data Pipeline service charges are applied to
|
179
|
+
# your pipeline.
|
180
|
+
# * `:document` - (String) A description of an Amazon EC2 instance
|
170
181
|
# that is generated when the instance is launched and exposed to
|
171
182
|
# the instance via the instance meta-data service in the form of a
|
172
183
|
# JSON representation of an object.
|
173
|
-
# *
|
184
|
+
# * `:signature` - (String) A signature which can be used to verify
|
174
185
|
# the accuracy and authenticity of the information provided in the
|
175
186
|
# instance identity document.
|
176
187
|
# @return [Core::Response]
|
177
188
|
# The #data method of the response object returns
|
178
189
|
# a hash with the following structure:
|
179
|
-
# *
|
180
|
-
# *
|
181
|
-
# *
|
182
|
-
# *
|
183
|
-
# *
|
184
|
-
# *
|
185
|
-
# *
|
186
|
-
# *
|
187
|
-
# *
|
188
|
-
# *
|
189
|
-
# *
|
190
|
+
# * `:task_object` - (Hash)
|
191
|
+
# * `:task_id` - (String)
|
192
|
+
# * `:pipeline_id` - (String)
|
193
|
+
# * `:attempt_id` - (String)
|
194
|
+
# * `:objects` - (Hash<String,Hash>)
|
195
|
+
# * `:id` - (String)
|
196
|
+
# * `:name` - (String)
|
197
|
+
# * `:fields` - (Array<Hash>)
|
198
|
+
# * `:key` - (String)
|
199
|
+
# * `:string_value` - (String)
|
200
|
+
# * `:ref_value` - (String)
|
190
201
|
|
191
202
|
# @!method put_pipeline_definition(options = {})
|
192
203
|
# Calls the PutPipelineDefinition API operation.
|
193
204
|
# @param [Hash] options
|
194
|
-
# *
|
205
|
+
# * `:pipeline_id` - *required* - (String) The identifier of the
|
195
206
|
# pipeline to be configured.
|
196
|
-
# *
|
207
|
+
# * `:pipeline_objects` - *required* - (Array<Hash>) The objects that
|
197
208
|
# define the pipeline. These will overwrite the existing pipeline
|
198
209
|
# definition.
|
199
|
-
# *
|
200
|
-
# *
|
201
|
-
# *
|
210
|
+
# * `:id` - *required* - (String) Identifier of the object.
|
211
|
+
# * `:name` - *required* - (String) Name of the object.
|
212
|
+
# * `:fields` - *required* - (Array<Hash>) Key-value pairs that
|
202
213
|
# define the properties of the object.
|
203
|
-
# *
|
204
|
-
# *
|
214
|
+
# * `:key` - *required* - (String) The field identifier.
|
215
|
+
# * `:string_value` - (String) The field value, expressed as a
|
205
216
|
# String.
|
206
|
-
# *
|
217
|
+
# * `:ref_value` - (String) The field value, expressed as the
|
207
218
|
# identifier of another object.
|
208
219
|
# @return [Core::Response]
|
209
220
|
# The #data method of the response object returns
|
210
221
|
# a hash with the following structure:
|
211
|
-
# *
|
212
|
-
# *
|
213
|
-
# *
|
214
|
-
# *
|
222
|
+
# * `:validation_errors` - (Array<Hash>)
|
223
|
+
# * `:id` - (String)
|
224
|
+
# * `:errors` - (Array<String>)
|
225
|
+
# * `:errored` - (Boolean)
|
215
226
|
|
216
227
|
# @!method query_objects(options = {})
|
217
228
|
# Calls the QueryObjects API operation.
|
218
229
|
# @param [Hash] options
|
219
|
-
# *
|
230
|
+
# * `:pipeline_id` - *required* - (String) Identifier of the pipeline
|
220
231
|
# to be queried for object names.
|
221
|
-
# *
|
232
|
+
# * `:query` - (Hash) Query that defines the objects to be returned.
|
222
233
|
# The Query object can contain a maximum of ten selectors. The
|
223
234
|
# conditions in the query are limited to top-level String fields in
|
224
|
-
# the object. These filters can be applied to
|
225
|
-
# and
|
226
|
-
# *
|
235
|
+
# the object. These filters can be applied to components, instances,
|
236
|
+
# and attempts.
|
237
|
+
# * `:selectors` - (Array<Hash>) List of selectors that define the
|
227
238
|
# query. An object must satisfy all of the selectors to match the
|
228
239
|
# query.
|
229
|
-
# *
|
240
|
+
# * `:field_name` - (String) The name of the field that the
|
230
241
|
# operator will be applied to. The field name is the "key"
|
231
242
|
# portion of the field definition in the pipeline definition
|
232
|
-
# syntax that is used by the AWS Data Pipeline API.
|
233
|
-
#
|
234
|
-
#
|
243
|
+
# syntax that is used by the AWS Data Pipeline API. If the field
|
244
|
+
# is not set on the object, the condition fails.
|
245
|
+
# * `:operator` - (Hash)
|
246
|
+
# * `:type` - (String) The logical operation to be performed:
|
235
247
|
# equal (EQ), equal reference (REF_EQ), less than or equal
|
236
248
|
# (LE), greater than or equal (GE), or between (BETWEEN). Equal
|
237
249
|
# reference (REF_EQ) can be used only with reference fields.
|
238
250
|
# The other comparison types can be used only with String
|
239
|
-
# fields.
|
240
|
-
#
|
251
|
+
# fields. The comparison types you can use apply only to
|
252
|
+
# certain object fields, as detailed below. The comparison
|
253
|
+
# operators EQ and REF_EQ act on the following fields: name
|
254
|
+
# @sphere parent @componentParent @instanceParent @status
|
255
|
+
# @scheduledStartTime @scheduledEndTime @actualStartTime
|
256
|
+
# @actualEndTime The comparison operators GE, LE, and BETWEEN
|
257
|
+
# act on the following fields: @scheduledStartTime
|
258
|
+
# @scheduledEndTime @actualStartTime @actualEndTime Note that
|
259
|
+
# fields beginning with the at sign (@) are read-only and set
|
260
|
+
# by the web service. When you name fields, you should choose
|
261
|
+
# names containing only alpha-numeric values, as symbols may be
|
262
|
+
# reserved by AWS Data Pipeline. A best practice for
|
263
|
+
# user-defined fields that you add to a pipeline is to prefix
|
264
|
+
# their name with the string "my". Valid values include:
|
265
|
+
# * `EQ`
|
266
|
+
# * `REF_EQ`
|
267
|
+
# * `LE`
|
268
|
+
# * `GE`
|
269
|
+
# * `BETWEEN`
|
270
|
+
# * `:values` - (Array<String>) The value that the actual field
|
241
271
|
# value will be compared with.
|
242
|
-
# *
|
243
|
-
# applies to
|
244
|
-
#
|
245
|
-
#
|
246
|
-
# * +:marker+ - (String) The starting point for the results to be
|
272
|
+
# * `:sphere` - *required* - (String) Specifies whether the query
|
273
|
+
# applies to components or instances. Allowable values: COMPONENT,
|
274
|
+
# INSTANCE, ATTEMPT.
|
275
|
+
# * `:marker` - (String) The starting point for the results to be
|
247
276
|
# returned. The first time you call QueryObjects, this value should
|
248
277
|
# be empty. As long as the action returns HasMoreResults as True, you
|
249
278
|
# can call QueryObjects again and pass the marker value from the
|
250
279
|
# response to retrieve the next set of results.
|
251
|
-
# *
|
280
|
+
# * `:limit` - (Integer) Specifies the maximum number of object names
|
252
281
|
# that QueryObjects will return in a single call. The default value
|
253
282
|
# is 100.
|
254
283
|
# @return [Core::Response]
|
255
284
|
# The #data method of the response object returns
|
256
285
|
# a hash with the following structure:
|
257
|
-
# *
|
258
|
-
# *
|
259
|
-
# *
|
286
|
+
# * `:ids` - (Array<String>)
|
287
|
+
# * `:marker` - (String)
|
288
|
+
# * `:has_more_results` - (Boolean)
|
260
289
|
|
261
290
|
# @!method report_task_progress(options = {})
|
262
291
|
# Calls the ReportTaskProgress API operation.
|
263
292
|
# @param [Hash] options
|
264
|
-
# *
|
265
|
-
# to the
|
266
|
-
# service returns with the response for the PollForTask action.
|
293
|
+
# * `:task_id` - *required* - (String) Identifier of the task assigned
|
294
|
+
# to the task runner. This value is provided in the TaskObject that
|
295
|
+
# the service returns with the response for the PollForTask action.
|
296
|
+
# @return [Core::Response]
|
297
|
+
# The #data method of the response object returns
|
298
|
+
# a hash with the following structure:
|
299
|
+
# * `:canceled` - (Boolean)
|
300
|
+
|
301
|
+
# @!method report_task_runner_heartbeat(options = {})
|
302
|
+
# Calls the ReportTaskRunnerHeartbeat API operation.
|
303
|
+
# @param [Hash] options
|
304
|
+
# * `:taskrunner_id` - *required* - (String) The identifier of the task
|
305
|
+
# runner. This value should be unique across your AWS account. In the
|
306
|
+
# case of AWS Data Pipeline Task Runner launched on a resource
|
307
|
+
# managed by AWS Data Pipeline, the web service provides a unique
|
308
|
+
# identifier when it launches the application. If you have written a
|
309
|
+
# custom task runner, you should assign a unique identifier for the
|
310
|
+
# task runner.
|
311
|
+
# * `:worker_group` - (String) Indicates the type of task the task
|
312
|
+
# runner is configured to accept and process. The worker group is set
|
313
|
+
# as a field on objects in the pipeline when they are created. You
|
314
|
+
# can only specify a single value for workerGroup in the call to
|
315
|
+
# ReportTaskRunnerHeartbeat. There are no wildcard values permitted
|
316
|
+
# in workerGroup, the string must be an exact, case-sensitive, match.
|
317
|
+
# * `:hostname` - (String) The public DNS name of the calling task
|
318
|
+
# runner.
|
267
319
|
# @return [Core::Response]
|
268
320
|
# The #data method of the response object returns
|
269
321
|
# a hash with the following structure:
|
270
|
-
# *
|
322
|
+
# * `:terminate` - (Boolean)
|
271
323
|
|
272
324
|
# @!method set_status(options = {})
|
273
325
|
# Calls the SetStatus API operation.
|
274
326
|
# @param [Hash] options
|
275
|
-
# *
|
327
|
+
# * `:pipeline_id` - *required* - (String) Identifies the pipeline that
|
276
328
|
# contains the objects.
|
277
|
-
# *
|
329
|
+
# * `:object_ids` - *required* - (Array<String>) Identifies an array of
|
278
330
|
# objects. The corresponding objects can be either physical or
|
279
|
-
#
|
280
|
-
# *
|
281
|
-
# all the objects in objectIds.
|
282
|
-
#
|
283
|
-
#
|
331
|
+
# components, but not a mix of both types.
|
332
|
+
# * `:status` - *required* - (String) Specifies the status to be set on
|
333
|
+
# all the objects in objectIds. For components, this can be either
|
334
|
+
# PAUSE or RESUME. For instances, this can be either CANCEL, RERUN,
|
335
|
+
# or MARK_FINISHED.
|
284
336
|
# @return [Core::Response]
|
285
337
|
|
286
338
|
# @!method set_task_status(options = {})
|
287
339
|
# Calls the SetTaskStatus API operation.
|
288
340
|
# @param [Hash] options
|
289
|
-
# *
|
290
|
-
# the
|
291
|
-
# the PollForTask action.
|
292
|
-
# *
|
293
|
-
#
|
294
|
-
#
|
341
|
+
# * `:task_id` - *required* - (String) Identifies the task assigned to
|
342
|
+
# the task runner. This value is set in the TaskObject that is
|
343
|
+
# returned by the PollForTask action.
|
344
|
+
# * `:task_status` - *required* - (String) If FINISHED, the task
|
345
|
+
# successfully completed. If FAILED the task ended unsuccessfully.
|
346
|
+
# The FALSE value is used by preconditions. Valid values include:
|
347
|
+
# * `FINISHED`
|
348
|
+
# * `FAILED`
|
349
|
+
# * `FALSE`
|
350
|
+
# * `:error_code` - (Integer) If an error occurred during the task,
|
295
351
|
# specifies a numerical value that represents the error. This value
|
296
352
|
# is set on the physical attempt object. It is used to display error
|
297
353
|
# information to the user. The web service does not parse this value.
|
298
|
-
# *
|
354
|
+
# * `:error_message` - (String) If an error occurred during the task,
|
299
355
|
# specifies a text description of the error. This value is set on the
|
300
356
|
# physical attempt object. It is used to display error information to
|
301
357
|
# the user. The web service does not parse this value.
|
302
|
-
# *
|
358
|
+
# * `:error_stack_trace` - (String) If an error occurred during the
|
303
359
|
# task, specifies the stack trace associated with the error. This
|
304
360
|
# value is set on the physical attempt object. It is used to display
|
305
361
|
# error information to the user. The web service does not parse this
|
@@ -309,26 +365,26 @@ module AWS
|
|
309
365
|
# @!method validate_pipeline_definition(options = {})
|
310
366
|
# Calls the ValidatePipelineDefinition API operation.
|
311
367
|
# @param [Hash] options
|
312
|
-
# *
|
368
|
+
# * `:pipeline_id` - *required* - (String) Identifies the pipeline
|
313
369
|
# whose definition is to be validated.
|
314
|
-
# *
|
370
|
+
# * `:pipeline_objects` - *required* - (Array<Hash>) A list of objects
|
315
371
|
# that define the pipeline changes to validate against the pipeline.
|
316
|
-
# *
|
317
|
-
# *
|
318
|
-
# *
|
372
|
+
# * `:id` - *required* - (String) Identifier of the object.
|
373
|
+
# * `:name` - *required* - (String) Name of the object.
|
374
|
+
# * `:fields` - *required* - (Array<Hash>) Key-value pairs that
|
319
375
|
# define the properties of the object.
|
320
|
-
# *
|
321
|
-
# *
|
376
|
+
# * `:key` - *required* - (String) The field identifier.
|
377
|
+
# * `:string_value` - (String) The field value, expressed as a
|
322
378
|
# String.
|
323
|
-
# *
|
379
|
+
# * `:ref_value` - (String) The field value, expressed as the
|
324
380
|
# identifier of another object.
|
325
381
|
# @return [Core::Response]
|
326
382
|
# The #data method of the response object returns
|
327
383
|
# a hash with the following structure:
|
328
|
-
# *
|
329
|
-
# *
|
330
|
-
# *
|
331
|
-
# *
|
384
|
+
# * `:validation_errors` - (Array<Hash>)
|
385
|
+
# * `:id` - (String)
|
386
|
+
# * `:errors` - (Array<String>)
|
387
|
+
# * `:errored` - (Boolean)
|
332
388
|
|
333
389
|
# end client methods #
|
334
390
|
|