aws-sdk 1.8.5 → 1.9.0
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.
- 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
|
@@ -16,18 +16,18 @@ require 'uuidtools'
|
|
|
16
16
|
module AWS
|
|
17
17
|
class SimpleWorkflow
|
|
18
18
|
|
|
19
|
-
#
|
|
19
|
+
# ## Registering a WorkflowType
|
|
20
20
|
#
|
|
21
21
|
# To register a workflow type you should use the #workflow_types method
|
|
22
22
|
# on the domain:
|
|
23
23
|
#
|
|
24
|
-
#
|
|
24
|
+
# domain.workflow_types.register('name', 'version', { ... })
|
|
25
25
|
#
|
|
26
26
|
# See {WorkflowTypeCollection#register} for a complete list of options.
|
|
27
27
|
#
|
|
28
|
-
#
|
|
28
|
+
# ## Deprecating a workflow type
|
|
29
29
|
#
|
|
30
|
-
# WorkflowType inherits from the generic {Type} base class. Defined in
|
|
30
|
+
# WorkflowType inherits from the generic {Type} base class. Defined in
|
|
31
31
|
# {Type} are a few useful methods including:
|
|
32
32
|
#
|
|
33
33
|
# * {Type#deprecate}
|
|
@@ -35,7 +35,7 @@ module AWS
|
|
|
35
35
|
#
|
|
36
36
|
# You can use these to deprecate a workflow type:
|
|
37
37
|
#
|
|
38
|
-
#
|
|
38
|
+
# domain.workflow_types['name','version'].deprecate
|
|
39
39
|
#
|
|
40
40
|
# @attr_reader [Time] creation_date When the workflow type was registered.
|
|
41
41
|
#
|
|
@@ -46,38 +46,38 @@ module AWS
|
|
|
46
46
|
# type, or nil if was not set when it was registered.
|
|
47
47
|
#
|
|
48
48
|
# @attr_reader [Symbol] status The status of this workflow type. The
|
|
49
|
-
# status will either be
|
|
50
|
-
#
|
|
49
|
+
# status will either be `:registered` or `:deprecated`.
|
|
50
|
+
#
|
|
51
51
|
# @attr_reader [Symbol,nil] default_child_policy Specifies the default
|
|
52
|
-
# policy to use for the child workflow executions when a workflow
|
|
52
|
+
# policy to use for the child workflow executions when a workflow
|
|
53
53
|
# execution of this type is terminated. Values may be one of the
|
|
54
54
|
# following (or nil):
|
|
55
55
|
#
|
|
56
|
-
# *
|
|
56
|
+
# * `:terminate` - the child executions will be terminated.
|
|
57
57
|
#
|
|
58
|
-
# *
|
|
59
|
-
# child execution by recording a WorkflowExecutionCancelRequested
|
|
58
|
+
# * `:request_cancel` - a request to cancel will be attempted for each
|
|
59
|
+
# child execution by recording a WorkflowExecutionCancelRequested
|
|
60
60
|
# event in its history. It is up to the decider to take appropriate
|
|
61
61
|
# actions when it receives an execution history with this event.
|
|
62
62
|
#
|
|
63
|
-
# *
|
|
63
|
+
# * `:abandon` - no action will be taken. The child executions will
|
|
64
64
|
# continue to run.
|
|
65
65
|
#
|
|
66
66
|
# @attr_reader [Integer,:none,nil] default_execution_start_to_close_timeout
|
|
67
67
|
# The default maximum duration for executions of this workflow type.
|
|
68
68
|
#
|
|
69
69
|
# The return value may be an integer (number of seconds), the
|
|
70
|
-
# symbol
|
|
70
|
+
# symbol `:none` (implying no timeout) or `nil` (not specified).
|
|
71
71
|
#
|
|
72
|
-
# @attr_reader [String,nil] default_task_list Specifies
|
|
73
|
-
# the default task list to use for scheduling decision tasks for
|
|
72
|
+
# @attr_reader [String,nil] default_task_list Specifies
|
|
73
|
+
# the default task list to use for scheduling decision tasks for
|
|
74
74
|
# executions of this workflow type.
|
|
75
75
|
#
|
|
76
76
|
# @attr_reader [Integer,:none,nil] default_task_start_to_close_timeout
|
|
77
77
|
# The default maximum duration of decision tasks for this workflow type.
|
|
78
78
|
#
|
|
79
79
|
# The return value may be an integer (number of seconds), the
|
|
80
|
-
# symbol
|
|
80
|
+
# symbol `:none` (implying no timeout) or `nil` (not specified).
|
|
81
81
|
#
|
|
82
82
|
class WorkflowType < Type
|
|
83
83
|
|
|
@@ -106,21 +106,21 @@ module AWS
|
|
|
106
106
|
# @param [Hash] options
|
|
107
107
|
#
|
|
108
108
|
# @option (see DecisionTask#continue_as_new_workflow_execution)
|
|
109
|
-
#
|
|
109
|
+
#
|
|
110
110
|
# @option options [String] :workflow_id
|
|
111
111
|
# A user defined identifier associated with the workflow execution.
|
|
112
|
-
# You can use this to associate a custom identifier with the
|
|
113
|
-
# workflow execution. You may specify the same identifier if a
|
|
114
|
-
# workflow execution is logically a restart of a previous execution.
|
|
115
|
-
# You cannot have two open workflow executions with the same
|
|
112
|
+
# You can use this to associate a custom identifier with the
|
|
113
|
+
# workflow execution. You may specify the same identifier if a
|
|
114
|
+
# workflow execution is logically a restart of a previous execution.
|
|
115
|
+
# You cannot have two open workflow executions with the same
|
|
116
116
|
# :workflow_id at the same time.
|
|
117
117
|
#
|
|
118
|
-
# If you do not provide
|
|
118
|
+
# If you do not provide `:workflow_id` a random UUID will be generated.
|
|
119
119
|
#
|
|
120
120
|
# @return [WorkflowExecution] Returns the new workflow execution.
|
|
121
121
|
#
|
|
122
122
|
def start_execution options = {}
|
|
123
|
-
|
|
123
|
+
|
|
124
124
|
options[:domain] = domain.name
|
|
125
125
|
start_execution_opts(options, self)
|
|
126
126
|
response = client.start_workflow_execution(options)
|
|
@@ -134,8 +134,10 @@ module AWS
|
|
|
134
134
|
|
|
135
135
|
# Returns a count of workflow executions of this workflow type.
|
|
136
136
|
#
|
|
137
|
+
# @example
|
|
138
|
+
#
|
|
137
139
|
# domain.workflow_types['name','version'].count
|
|
138
|
-
#
|
|
140
|
+
#
|
|
139
141
|
# @note (see WorkflowExecution#count_executions)
|
|
140
142
|
# @param (see WorkflowExecution#count_executions)
|
|
141
143
|
# @option (see WorkflowExecution#count_executions)
|
|
@@ -155,7 +157,7 @@ module AWS
|
|
|
155
157
|
provider(:list_workflow_types) do |provider|
|
|
156
158
|
provider.provides *type_attributes.keys
|
|
157
159
|
provider.find do |resp|
|
|
158
|
-
desc = resp.data['typeInfos'].find do |info|
|
|
160
|
+
desc = resp.data['typeInfos'].find do |info|
|
|
159
161
|
info[self.class.type_key] == { 'name' => name, 'version' => version }
|
|
160
162
|
end
|
|
161
163
|
end
|
|
@@ -16,53 +16,53 @@ module AWS
|
|
|
16
16
|
|
|
17
17
|
class WorkflowTypeCollection < TypeCollection
|
|
18
18
|
|
|
19
|
-
# Registers a new workflow type and its configuration settings for
|
|
19
|
+
# Registers a new workflow type and its configuration settings for
|
|
20
20
|
# in the current domain.
|
|
21
|
-
#
|
|
21
|
+
#
|
|
22
22
|
# @param [String] name The name of the workflow type.
|
|
23
23
|
#
|
|
24
24
|
# @param [String] version The version of the workflow type.
|
|
25
|
-
# The workflow type consists of the name and version, the
|
|
26
|
-
# combination of which must be unique within the domain.
|
|
25
|
+
# The workflow type consists of the name and version, the
|
|
26
|
+
# combination of which must be unique within the domain.
|
|
27
27
|
#
|
|
28
28
|
# @param [Hash] options
|
|
29
|
-
#
|
|
29
|
+
#
|
|
30
30
|
# @option options [Symbol] :default_child_policy (nil) Specifies the default
|
|
31
|
-
# policy to use for the child workflow executions when a workflow
|
|
32
|
-
# execution of this type is terminated. This default can be
|
|
31
|
+
# policy to use for the child workflow executions when a workflow
|
|
32
|
+
# execution of this type is terminated. This default can be
|
|
33
33
|
# overridden when starting a workflow execution. The supported child
|
|
34
34
|
# policies are:
|
|
35
35
|
#
|
|
36
|
-
# *
|
|
36
|
+
# * `:terminate` - the child executions will be terminated.
|
|
37
37
|
#
|
|
38
|
-
# *
|
|
39
|
-
# child execution by recording a WorkflowExecutionCancelRequested
|
|
38
|
+
# * `:request_cancel` - a request to cancel will be attempted for each
|
|
39
|
+
# child execution by recording a WorkflowExecutionCancelRequested
|
|
40
40
|
# event in its history. It is up to the decider to take appropriate
|
|
41
41
|
# actions when it receives an execution history with this event.
|
|
42
42
|
#
|
|
43
|
-
# *
|
|
43
|
+
# * `:abandon` - no action will be taken. The child executions will
|
|
44
44
|
# continue to run.
|
|
45
45
|
#
|
|
46
46
|
# @option options [Integer,:none] :default_execution_start_to_close_timeout (nil)
|
|
47
47
|
# The default maximum duration for executions of this workflow type.
|
|
48
|
-
# You can override this default when starting an execution.
|
|
48
|
+
# You can override this default when starting an execution.
|
|
49
49
|
# The value should be a number of seconds (integer) or the symbol
|
|
50
|
-
#
|
|
50
|
+
# `:none` (implying no timeout).
|
|
51
51
|
#
|
|
52
|
-
# @option options [String] :default_task_list (nil) Specifies
|
|
53
|
-
# the default task list to use for scheduling decision tasks for
|
|
54
|
-
# executions of this workflow type. This default is used only if
|
|
52
|
+
# @option options [String] :default_task_list (nil) Specifies
|
|
53
|
+
# the default task list to use for scheduling decision tasks for
|
|
54
|
+
# executions of this workflow type. This default is used only if
|
|
55
55
|
# a task list is not provided when starting the workflow execution.
|
|
56
56
|
#
|
|
57
57
|
# @option options [Integer,:none] :default_task_start_to_close_timeout (nil)
|
|
58
58
|
# The default maximum duration of decision tasks for this workflow type.
|
|
59
59
|
#
|
|
60
60
|
# The value should be a number of seconds (integer) or the symbol
|
|
61
|
-
#
|
|
61
|
+
# `:none` (implying no timeout).
|
|
62
62
|
#
|
|
63
63
|
# @option options [String] :description (nil) Textual description of
|
|
64
64
|
# the workflow type.
|
|
65
|
-
#
|
|
65
|
+
#
|
|
66
66
|
def register name, version, options = {}
|
|
67
67
|
|
|
68
68
|
options[:domain] = domain.name
|
|
@@ -71,7 +71,7 @@ module AWS
|
|
|
71
71
|
|
|
72
72
|
upcase_opts(options, :default_child_policy)
|
|
73
73
|
|
|
74
|
-
duration_opts(options,
|
|
74
|
+
duration_opts(options,
|
|
75
75
|
:default_execution_start_to_close_timeout,
|
|
76
76
|
:default_task_start_to_close_timeout)
|
|
77
77
|
|
|
@@ -82,7 +82,7 @@ module AWS
|
|
|
82
82
|
client.register_workflow_type(options)
|
|
83
83
|
|
|
84
84
|
self[name, version]
|
|
85
|
-
|
|
85
|
+
|
|
86
86
|
end
|
|
87
87
|
alias_method :create, :register
|
|
88
88
|
|
data/lib/aws/sns.rb
CHANGED
|
@@ -16,50 +16,50 @@ require 'aws/sns/config'
|
|
|
16
16
|
|
|
17
17
|
module AWS
|
|
18
18
|
|
|
19
|
-
# This class is the starting point for working with Amazon Simple
|
|
19
|
+
# This class is the starting point for working with Amazon Simple
|
|
20
20
|
# Notification Service (SNS).
|
|
21
21
|
#
|
|
22
|
-
# To use Amazon SNS you must first
|
|
22
|
+
# To use Amazon SNS you must first [sign up here](http://aws.amazon.com/sns/).
|
|
23
23
|
#
|
|
24
24
|
# For more information about Amazon SNS:
|
|
25
25
|
#
|
|
26
|
-
# *
|
|
27
|
-
# *
|
|
26
|
+
# * [Amazon SNS](http://aws.amazon.com/sns/)
|
|
27
|
+
# * [Amazon SNS Documentation](http://aws.amazon.com/documentation/sns/)
|
|
28
28
|
#
|
|
29
|
-
#
|
|
29
|
+
# # Credentials
|
|
30
30
|
#
|
|
31
|
-
# You can setup default credentials for all AWS services via
|
|
31
|
+
# You can setup default credentials for all AWS services via
|
|
32
32
|
# AWS.config:
|
|
33
33
|
#
|
|
34
|
-
#
|
|
35
|
-
#
|
|
36
|
-
#
|
|
37
|
-
#
|
|
34
|
+
# AWS.config(
|
|
35
|
+
# :access_key_id => 'YOUR_ACCESS_KEY_ID',
|
|
36
|
+
# :secret_access_key => 'YOUR_SECRET_ACCESS_KEY')
|
|
37
|
+
#
|
|
38
38
|
# Or you can set them directly on the SNS interface:
|
|
39
39
|
#
|
|
40
|
-
#
|
|
41
|
-
#
|
|
42
|
-
#
|
|
40
|
+
# sns = AWS::SNS.new(
|
|
41
|
+
# :access_key_id => 'YOUR_ACCESS_KEY_ID',
|
|
42
|
+
# :secret_access_key => 'YOUR_SECRET_ACCESS_KEY')
|
|
43
43
|
#
|
|
44
44
|
# @!attribute [r] client
|
|
45
45
|
# @return [Client] the low-level SNS client object
|
|
46
46
|
class SNS
|
|
47
47
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
autoload :TopicSubscriptionCollection, 'topic_subscription_collection'
|
|
59
|
-
end
|
|
48
|
+
autoload :Client, 'aws/sns/client'
|
|
49
|
+
autoload :Errors, 'aws/sns/errors'
|
|
50
|
+
autoload :Policy, 'aws/sns/policy'
|
|
51
|
+
autoload :HasDeliveryPolicy, 'aws/sns/has_delivery_policy'
|
|
52
|
+
autoload :Request, 'aws/sns/request'
|
|
53
|
+
autoload :Subscription, 'aws/sns/subscription'
|
|
54
|
+
autoload :SubscriptionCollection, 'aws/sns/subscription_collection'
|
|
55
|
+
autoload :Topic, 'aws/sns/topic'
|
|
56
|
+
autoload :TopicCollection, 'aws/sns/topic_collection'
|
|
57
|
+
autoload :TopicSubscriptionCollection, 'aws/sns/topic_subscription_collection'
|
|
60
58
|
|
|
61
59
|
include Core::ServiceInterface
|
|
62
60
|
|
|
61
|
+
endpoint_prefix 'sns'
|
|
62
|
+
|
|
63
63
|
# @return [TopicCollection] Returns a topic collection for managing
|
|
64
64
|
# SNS topics.
|
|
65
65
|
def topics
|
data/lib/aws/sns/client.rb
CHANGED
|
@@ -25,15 +25,15 @@ module AWS
|
|
|
25
25
|
# @!method add_permission(options = {})
|
|
26
26
|
# Calls the AddPermission API operation.
|
|
27
27
|
# @param [Hash] options
|
|
28
|
-
# *
|
|
28
|
+
# * `:topic_arn` - *required* - (String) The ARN of the topic whose
|
|
29
29
|
# access control policy you wish to modify.
|
|
30
|
-
# *
|
|
30
|
+
# * `:label` - *required* - (String) A unique identifier for the new
|
|
31
31
|
# policy statement.
|
|
32
|
-
# *
|
|
32
|
+
# * `:aws_account_id` - *required* - (Array<String>) The AWS account
|
|
33
33
|
# IDs of the users (principals) who will be given access to the
|
|
34
34
|
# specified actions. The users must have AWS accounts, but do not
|
|
35
35
|
# need to be signed up for this service.
|
|
36
|
-
# *
|
|
36
|
+
# * `:action_name` - *required* - (Array<String>) The action you want
|
|
37
37
|
# to allow for the specified principal(s). Valid values: any Amazon
|
|
38
38
|
# SNS action name.
|
|
39
39
|
# @return [Core::Response]
|
|
@@ -41,36 +41,36 @@ module AWS
|
|
|
41
41
|
# @!method confirm_subscription(options = {})
|
|
42
42
|
# Calls the ConfirmSubscription API operation.
|
|
43
43
|
# @param [Hash] options
|
|
44
|
-
# *
|
|
44
|
+
# * `:topic_arn` - *required* - (String) The ARN of the topic for which
|
|
45
45
|
# you wish to confirm a subscription.
|
|
46
|
-
# *
|
|
46
|
+
# * `:token` - *required* - (String) Short-lived token sent to an
|
|
47
47
|
# endpoint during the Subscribe action.
|
|
48
|
-
# *
|
|
48
|
+
# * `:authenticate_on_unsubscribe` - (String) Disallows unauthenticated
|
|
49
49
|
# unsubscribes of the subscription. If the value of this parameter is
|
|
50
|
-
#
|
|
50
|
+
# `true` and the request has an AWS signature, then only the topic
|
|
51
51
|
# owner and the subscription owner can unsubscribe the endpoint. The
|
|
52
52
|
# unsubscribe action will require AWS authentication.
|
|
53
53
|
# @return [Core::Response]
|
|
54
54
|
# The #data method of the response object returns
|
|
55
55
|
# a hash with the following structure:
|
|
56
|
-
# *
|
|
56
|
+
# * `:subscription_arn` - (String)
|
|
57
57
|
|
|
58
58
|
# @!method create_topic(options = {})
|
|
59
59
|
# Calls the CreateTopic API operation.
|
|
60
60
|
# @param [Hash] options
|
|
61
|
-
# *
|
|
61
|
+
# * `:name` - *required* - (String) The name of the topic you want to
|
|
62
62
|
# create. Constraints: Topic names must be made up of only uppercase
|
|
63
63
|
# and lowercase ASCII letters, numbers, and hyphens, and must be
|
|
64
64
|
# between 1 and 256 characters long.
|
|
65
65
|
# @return [Core::Response]
|
|
66
66
|
# The #data method of the response object returns
|
|
67
67
|
# a hash with the following structure:
|
|
68
|
-
# *
|
|
68
|
+
# * `:topic_arn` - (String)
|
|
69
69
|
|
|
70
70
|
# @!method delete_topic(options = {})
|
|
71
71
|
# Calls the DeleteTopic API operation.
|
|
72
72
|
# @param [Hash] options
|
|
73
|
-
# *
|
|
73
|
+
# * `:topic_arn` - *required* - (String) The ARN of the topic you want
|
|
74
74
|
# to delete. http://sns.us-east-1.amazonaws.com/
|
|
75
75
|
# ?TopicArn=arn%3Aaws%3Asns%3Aus-east-1%3A123456789012%3AMy-Topic
|
|
76
76
|
# &Action=DeleteTopic &SignatureVersion=2 &SignatureMethod=HmacSHA256
|
|
@@ -87,85 +87,85 @@ module AWS
|
|
|
87
87
|
# @!method get_subscription_attributes(options = {})
|
|
88
88
|
# Calls the GetSubscriptionAttributes API operation.
|
|
89
89
|
# @param [Hash] options
|
|
90
|
-
# *
|
|
90
|
+
# * `:subscription_arn` - *required* - (String) The ARN of the
|
|
91
91
|
# subscription whose properties you want to get.
|
|
92
92
|
# @return [Core::Response]
|
|
93
93
|
# The #data method of the response object returns
|
|
94
94
|
# a hash with the following structure:
|
|
95
|
-
# *
|
|
95
|
+
# * `:attributes` - (Hash<String,String>)
|
|
96
96
|
|
|
97
97
|
# @!method get_topic_attributes(options = {})
|
|
98
98
|
# Calls the GetTopicAttributes API operation.
|
|
99
99
|
# @param [Hash] options
|
|
100
|
-
# *
|
|
100
|
+
# * `:topic_arn` - *required* - (String) The ARN of the topic whose
|
|
101
101
|
# properties you want to get.
|
|
102
102
|
# @return [Core::Response]
|
|
103
103
|
# The #data method of the response object returns
|
|
104
104
|
# a hash with the following structure:
|
|
105
|
-
# *
|
|
105
|
+
# * `:attributes` - (Hash<String,String>)
|
|
106
106
|
|
|
107
107
|
# @!method list_subscriptions(options = {})
|
|
108
108
|
# Calls the ListSubscriptions API operation.
|
|
109
109
|
# @param [Hash] options
|
|
110
|
-
# *
|
|
110
|
+
# * `:next_token` - (String) Token returned by the previous
|
|
111
111
|
# ListSubscriptions request.
|
|
112
112
|
# @return [Core::Response]
|
|
113
113
|
# The #data method of the response object returns
|
|
114
114
|
# a hash with the following structure:
|
|
115
|
-
# *
|
|
116
|
-
# *
|
|
117
|
-
# *
|
|
118
|
-
# *
|
|
119
|
-
# *
|
|
120
|
-
# *
|
|
121
|
-
# *
|
|
115
|
+
# * `:subscriptions` - (Array<Hash>)
|
|
116
|
+
# * `:subscription_arn` - (String)
|
|
117
|
+
# * `:owner` - (String)
|
|
118
|
+
# * `:protocol` - (String)
|
|
119
|
+
# * `:endpoint` - (String)
|
|
120
|
+
# * `:topic_arn` - (String)
|
|
121
|
+
# * `:next_token` - (String)
|
|
122
122
|
|
|
123
123
|
# @!method list_subscriptions_by_topic(options = {})
|
|
124
124
|
# Calls the ListSubscriptionsByTopic API operation.
|
|
125
125
|
# @param [Hash] options
|
|
126
|
-
# *
|
|
126
|
+
# * `:topic_arn` - *required* - (String) The ARN of the topic for which
|
|
127
127
|
# you wish to find subscriptions.
|
|
128
|
-
# *
|
|
128
|
+
# * `:next_token` - (String) Token returned by the previous
|
|
129
129
|
# ListSubscriptionsByTopic request.
|
|
130
130
|
# @return [Core::Response]
|
|
131
131
|
# The #data method of the response object returns
|
|
132
132
|
# a hash with the following structure:
|
|
133
|
-
# *
|
|
134
|
-
# *
|
|
135
|
-
# *
|
|
136
|
-
# *
|
|
137
|
-
# *
|
|
138
|
-
# *
|
|
139
|
-
# *
|
|
133
|
+
# * `:subscriptions` - (Array<Hash>)
|
|
134
|
+
# * `:subscription_arn` - (String)
|
|
135
|
+
# * `:owner` - (String)
|
|
136
|
+
# * `:protocol` - (String)
|
|
137
|
+
# * `:endpoint` - (String)
|
|
138
|
+
# * `:topic_arn` - (String)
|
|
139
|
+
# * `:next_token` - (String)
|
|
140
140
|
|
|
141
141
|
# @!method list_topics(options = {})
|
|
142
142
|
# Calls the ListTopics API operation.
|
|
143
143
|
# @param [Hash] options
|
|
144
|
-
# *
|
|
144
|
+
# * `:next_token` - (String) Token returned by the previous ListTopics
|
|
145
145
|
# request.
|
|
146
146
|
# @return [Core::Response]
|
|
147
147
|
# The #data method of the response object returns
|
|
148
148
|
# a hash with the following structure:
|
|
149
|
-
# *
|
|
150
|
-
# *
|
|
151
|
-
# *
|
|
149
|
+
# * `:topics` - (Array<Hash>)
|
|
150
|
+
# * `:topic_arn` - (String)
|
|
151
|
+
# * `:next_token` - (String)
|
|
152
152
|
|
|
153
153
|
# @!method publish(options = {})
|
|
154
154
|
# Calls the Publish API operation.
|
|
155
155
|
# @param [Hash] options
|
|
156
|
-
# *
|
|
156
|
+
# * `:topic_arn` - *required* - (String) The topic you want to publish
|
|
157
157
|
# to.
|
|
158
|
-
# *
|
|
158
|
+
# * `:message` - *required* - (String) The message you want to send to
|
|
159
159
|
# the topic. Constraints: Messages must be UTF-8 encoded strings at
|
|
160
160
|
# most 8 KB in size (8192 bytes, not 8192 characters).
|
|
161
|
-
# *
|
|
161
|
+
# * `:subject` - (String) Optional parameter to be used as the
|
|
162
162
|
# "Subject" line of when the message is delivered to e-mail
|
|
163
163
|
# endpoints. This field will also be included, if present, in the
|
|
164
164
|
# standard JSON messages delivered to other endpoints. Constraints:
|
|
165
165
|
# Subjects must be ASCII text that begins with a letter, number or
|
|
166
166
|
# punctuation mark; must not include line breaks or control
|
|
167
167
|
# characters; and must be less than 100 characters long.
|
|
168
|
-
# *
|
|
168
|
+
# * `:message_structure` - (String) Optional parameter. It will have
|
|
169
169
|
# one valid value: "json". If this option, Message is present and set
|
|
170
170
|
# to "json", the value of Message must: be a syntactically valid JSON
|
|
171
171
|
# object. It must contain at least a top level JSON key of "default"
|
|
@@ -189,54 +189,54 @@ module AWS
|
|
|
189
189
|
# @return [Core::Response]
|
|
190
190
|
# The #data method of the response object returns
|
|
191
191
|
# a hash with the following structure:
|
|
192
|
-
# *
|
|
192
|
+
# * `:message_id` - (String)
|
|
193
193
|
|
|
194
194
|
# @!method remove_permission(options = {})
|
|
195
195
|
# Calls the RemovePermission API operation.
|
|
196
196
|
# @param [Hash] options
|
|
197
|
-
# *
|
|
197
|
+
# * `:topic_arn` - *required* - (String) The ARN of the topic whose
|
|
198
198
|
# access control policy you wish to modify.
|
|
199
|
-
# *
|
|
199
|
+
# * `:label` - *required* - (String) The unique label of the statement
|
|
200
200
|
# you want to remove.
|
|
201
201
|
# @return [Core::Response]
|
|
202
202
|
|
|
203
203
|
# @!method set_subscription_attributes(options = {})
|
|
204
204
|
# Calls the SetSubscriptionAttributes API operation.
|
|
205
205
|
# @param [Hash] options
|
|
206
|
-
# *
|
|
206
|
+
# * `:subscription_arn` - *required* - (String) The ARN of the
|
|
207
207
|
# subscription to modify.
|
|
208
|
-
# *
|
|
208
|
+
# * `:attribute_name` - *required* - (String) The name of the attribute
|
|
209
209
|
# you want to set. Only a subset of the subscriptions attributes are
|
|
210
210
|
# mutable. Valid values: DeliveryPolicy
|
|
211
|
-
# *
|
|
211
|
+
# * `:attribute_value` - *required* - (String) The new value for the
|
|
212
212
|
# attribute.
|
|
213
213
|
# @return [Core::Response]
|
|
214
214
|
|
|
215
215
|
# @!method set_topic_attributes(options = {})
|
|
216
216
|
# Calls the SetTopicAttributes API operation.
|
|
217
217
|
# @param [Hash] options
|
|
218
|
-
# *
|
|
218
|
+
# * `:topic_arn` - *required* - (String) The ARN of the topic to
|
|
219
219
|
# modify.
|
|
220
|
-
# *
|
|
220
|
+
# * `:attribute_name` - *required* - (String) The name of the attribute
|
|
221
221
|
# you want to set. Only a subset of the topic's attributes are
|
|
222
222
|
# mutable. Valid values: Policy | DisplayName
|
|
223
|
-
# *
|
|
223
|
+
# * `:attribute_value` - *required* - (String) The new value for the
|
|
224
224
|
# attribute.
|
|
225
225
|
# @return [Core::Response]
|
|
226
226
|
|
|
227
227
|
# @!method subscribe(options = {})
|
|
228
228
|
# Calls the Subscribe API operation.
|
|
229
229
|
# @param [Hash] options
|
|
230
|
-
# *
|
|
230
|
+
# * `:topic_arn` - *required* - (String) The ARN of topic you want to
|
|
231
231
|
# subscribe to.
|
|
232
|
-
# *
|
|
232
|
+
# * `:protocol` - *required* - (String) The protocol you want to use.
|
|
233
233
|
# Supported protocols include: http -- delivery of JSON-encoded
|
|
234
234
|
# message via HTTP POST https -- delivery of JSON-encoded message via
|
|
235
235
|
# HTTPS POST email -- delivery of message via SMTP email-json --
|
|
236
236
|
# delivery of JSON-encoded message via SMTP sms -- delivery of
|
|
237
237
|
# message via SMS sqs -- delivery of JSON-encoded message to an
|
|
238
238
|
# Amazon SQS queue
|
|
239
|
-
# *
|
|
239
|
+
# * `:endpoint` - *required* - (String) The endpoint that you want to
|
|
240
240
|
# receive notifications. Endpoints vary by protocol: For the http
|
|
241
241
|
# protocol, the endpoint is an URL beginning with "http://" For the
|
|
242
242
|
# https protocol, the endpoint is a URL beginning with "https://" For
|
|
@@ -248,12 +248,12 @@ module AWS
|
|
|
248
248
|
# @return [Core::Response]
|
|
249
249
|
# The #data method of the response object returns
|
|
250
250
|
# a hash with the following structure:
|
|
251
|
-
# *
|
|
251
|
+
# * `:subscription_arn` - (String)
|
|
252
252
|
|
|
253
253
|
# @!method unsubscribe(options = {})
|
|
254
254
|
# Calls the Unsubscribe API operation.
|
|
255
255
|
# @param [Hash] options
|
|
256
|
-
# *
|
|
256
|
+
# * `:subscription_arn` - *required* - (String) The ARN of the
|
|
257
257
|
# subscription to be deleted.
|
|
258
258
|
# @return [Core::Response]
|
|
259
259
|
|