aws-sdk 1.6.3 → 1.6.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/aws/api_config/AutoScaling-2011-01-01.yml +1 -0
- data/lib/aws/api_config/CloudFormation-2010-05-15.yml +1 -0
- data/lib/aws/api_config/CloudFront-2012-05-05.yml +2137 -0
- data/lib/aws/api_config/CloudWatch-2010-08-01.yml +9 -0
- data/lib/aws/api_config/DynamoDB-2011-12-05.yml +616 -0
- data/lib/aws/api_config/EC2-2012-07-20.yml +1 -0
- data/lib/aws/api_config/ELB-2012-06-01.yml +1 -0
- data/lib/aws/api_config/EMR-2009-03-31.yml +1 -0
- data/lib/aws/api_config/IAM-2010-05-08.yml +1 -0
- data/lib/aws/api_config/Route53-2012-02-29.yml +350 -349
- data/lib/aws/api_config/SNS-2010-03-31.yml +1 -0
- data/lib/aws/api_config/SQS-2011-10-01.yml +1 -0
- data/lib/aws/api_config/STS-2011-06-15.yml +1 -0
- data/lib/aws/api_config/SimpleDB-2009-04-15.yml +1 -0
- data/lib/aws/api_config/SimpleEmailService-2010-12-01.yml +62 -0
- data/lib/aws/api_config/SimpleWorkflow-2012-01-25.yml +1637 -0
- data/lib/aws/auto_scaling/client.rb +2 -37
- data/lib/aws/cloud_formation/client.rb +2 -17
- data/lib/aws/cloud_watch/client.rb +2 -15
- data/lib/aws/core.rb +24 -4
- data/lib/aws/core/client.rb +115 -46
- data/lib/aws/core/configuration.rb +6 -0
- data/lib/aws/core/credential_providers.rb +1 -0
- data/lib/aws/core/http/curb_handler.rb +3 -3
- data/lib/aws/core/http/httparty_handler.rb +15 -15
- data/lib/aws/core/json_client.rb +19 -77
- data/lib/aws/core/json_error_parser.rb +25 -0
- data/lib/aws/core/json_request_builder.rb +34 -0
- data/lib/aws/core/json_response_parser.rb +81 -0
- data/lib/aws/core/log_formatter.rb +25 -25
- data/lib/aws/core/option_grammar.rb +123 -115
- data/lib/aws/core/options/xml_serializer.rb +13 -9
- data/lib/aws/core/query_client.rb +13 -104
- data/lib/aws/core/query_error_parser.rb +24 -0
- data/lib/aws/core/query_request_builder.rb +47 -0
- data/lib/aws/core/query_response_parser.rb +35 -0
- data/lib/aws/core/rest_client.rb +13 -62
- data/lib/aws/core/rest_error_parser.rb +24 -0
- data/lib/aws/core/rest_request_builder.rb +124 -0
- data/lib/aws/core/rest_response_parser.rb +48 -0
- data/lib/aws/core/xml/parser.rb +2 -2
- data/lib/aws/core/xml/root_frame.rb +1 -1
- data/lib/aws/dynamo_db.rb +10 -9
- data/lib/aws/dynamo_db/binary.rb +35 -0
- data/lib/aws/dynamo_db/client.rb +103 -20
- data/lib/aws/dynamo_db/config.rb +2 -0
- data/lib/aws/dynamo_db/item.rb +3 -0
- data/lib/aws/dynamo_db/primary_key_element.rb +2 -1
- data/lib/aws/dynamo_db/table.rb +32 -36
- data/lib/aws/dynamo_db/table_collection.rb +13 -13
- data/lib/aws/dynamo_db/types.rb +34 -9
- data/lib/aws/ec2/client.rb +884 -344
- data/lib/aws/ec2/filtered_collection.rb +2 -3
- data/lib/aws/elb/client.rb +59 -45
- data/lib/aws/emr/client.rb +2 -11
- data/lib/aws/iam/client.rb +9 -80
- data/lib/aws/record/hash_model/attributes.rb +28 -13
- data/lib/aws/route_53/client.rb +6 -16
- data/lib/aws/s3/client.rb +2 -1
- data/lib/aws/s3/encryption_utils.rb +2 -7
- data/lib/aws/s3/s3_object.rb +5 -0
- data/lib/aws/simple_db/client.rb +2 -14
- data/lib/aws/simple_email_service/client.rb +35 -19
- data/lib/aws/simple_email_service/identity.rb +49 -10
- data/lib/aws/simple_email_service/identity_collection.rb +4 -4
- data/lib/aws/simple_workflow/client.rb +2 -38
- data/lib/aws/sns/client.rb +2 -19
- data/lib/aws/sqs/client.rb +2 -19
- data/lib/aws/sqs/errors.rb +5 -5
- data/lib/aws/sts/client.rb +2 -6
- metadata +14 -5
- data/lib/aws/core/rest_client/input_handler.rb +0 -145
- data/lib/aws/core/rest_client/output_handler.rb +0 -53
@@ -26,6 +26,16 @@ module AWS
|
|
26
26
|
# notifications will not be forwarded via email. Can only be set to
|
27
27
|
# +false+ when there is both a +bounce_topic+ and +complaint_topic+.
|
28
28
|
#
|
29
|
+
# @attr [Boolean] dkim_enabled When set to +true+, Easy DKIM signing will
|
30
|
+
# be enabled for email sent from this identity.
|
31
|
+
#
|
32
|
+
# @attr_reader [Array<String>] dkim_tokens Returns a set of DNS records,
|
33
|
+
# or tokens, that must be published in the domain name's DNS to
|
34
|
+
# complete the DKIM verification process. Call {#verify_dkim} if this
|
35
|
+
# returns an empty list.
|
36
|
+
#
|
37
|
+
# @attr_reader [String] dkim_verification_status
|
38
|
+
#
|
29
39
|
class Identity < Core::Resource
|
30
40
|
|
31
41
|
# @private
|
@@ -42,6 +52,12 @@ module AWS
|
|
42
52
|
|
43
53
|
attribute :verification_token, :static => true
|
44
54
|
|
55
|
+
mutable_attribute :dkim_enabled, :alias => :dkim_enabled?
|
56
|
+
|
57
|
+
attribute :dkim_tokens
|
58
|
+
|
59
|
+
attribute :dkim_verification_status
|
60
|
+
|
45
61
|
mutable_attribute :bounce_topic_arn, :from => :bounce_topic
|
46
62
|
|
47
63
|
mutable_attribute :complaint_topic_arn, :from => :complaint_topic
|
@@ -53,14 +69,31 @@ module AWS
|
|
53
69
|
provider(:get_identity_verification_attributes) do |provider|
|
54
70
|
provider.provides :verification_token
|
55
71
|
provider.provides :verification_status
|
56
|
-
provider.find{|resp| resp
|
72
|
+
provider.find{|resp| resp[:verification_attributes][identity] }
|
57
73
|
end
|
58
74
|
|
59
75
|
provider(:get_identity_notification_attributes) do |provider|
|
60
76
|
provider.provides :bounce_topic_arn
|
61
77
|
provider.provides :complaint_topic_arn
|
62
78
|
provider.provides :forwarding_enabled
|
63
|
-
provider.find{|resp| resp
|
79
|
+
provider.find{|resp| resp[:notification_attributes][identity] }
|
80
|
+
end
|
81
|
+
|
82
|
+
provider(:get_identity_dkim_attributes) do |provider|
|
83
|
+
provider.provides :dkim_enabled
|
84
|
+
provider.provides :dkim_verification_status
|
85
|
+
provider.provides :dkim_tokens
|
86
|
+
provider.find{|resp| resp[:dkim_attributes][identity] }
|
87
|
+
end
|
88
|
+
|
89
|
+
# @return [Array<String>] Returns an array of DKIM tokens.
|
90
|
+
def verify_dkim
|
91
|
+
if domain?
|
92
|
+
resp = client.verify_domain_dkim(:domain => identity)
|
93
|
+
reps[:dkim_tokens]
|
94
|
+
else
|
95
|
+
raise "unable to verify dkim for an email address"
|
96
|
+
end
|
64
97
|
end
|
65
98
|
|
66
99
|
# @param [String,SNS::Topic] topic The topic (ARN string or topic
|
@@ -94,7 +127,7 @@ module AWS
|
|
94
127
|
# @return [Boolean] Returns +true+ if this {Identity} represents an
|
95
128
|
# email address.
|
96
129
|
def email_address?
|
97
|
-
identity
|
130
|
+
identity.match(/@/) ? true : false
|
98
131
|
end
|
99
132
|
|
100
133
|
# @return [Boolean] Returns +true+ if this {Identity} represents a
|
@@ -136,13 +169,16 @@ module AWS
|
|
136
169
|
end
|
137
170
|
|
138
171
|
def get_resource attr
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
172
|
+
|
173
|
+
method_name =
|
174
|
+
case attr.name.to_s
|
175
|
+
when /dkim/ then :get_identity_dkim_attributes
|
176
|
+
when /verification/ then :get_identity_verification_attributes
|
177
|
+
else :get_identity_notification_attributes
|
178
|
+
end
|
179
|
+
|
180
|
+
client.send(method_name, :identities => [identity])
|
181
|
+
|
146
182
|
end
|
147
183
|
|
148
184
|
def update_resource attr, value
|
@@ -160,6 +196,9 @@ module AWS
|
|
160
196
|
when :forwarding_enabled
|
161
197
|
method = :set_identity_feedback_forwarding_enabled
|
162
198
|
client_opts[:forwarding_enabled] = value
|
199
|
+
when :dkim_enabled
|
200
|
+
method = :set_identity_dkim_enabled
|
201
|
+
client_opts[:dkim_enabled] = value
|
163
202
|
else raise "unhandled attribute: #{attr.name}"
|
164
203
|
end
|
165
204
|
client.send(method, client_opts)
|
@@ -25,7 +25,7 @@ module AWS
|
|
25
25
|
|
26
26
|
# Request verification for an email address or a domain.
|
27
27
|
# @param [String] email_or_domain
|
28
|
-
# @return [Identity] Returns an {Identity} object. Identities for
|
28
|
+
# @return [Identity] Returns an {Identity} object. Identities for
|
29
29
|
# domains will have a #verification_token.
|
30
30
|
def verify email_or_domain
|
31
31
|
|
@@ -33,7 +33,7 @@ module AWS
|
|
33
33
|
client.verify_email_identity(:email_address => email_or_domain) :
|
34
34
|
client.verify_domain_identity(:domain => email_or_domain)
|
35
35
|
|
36
|
-
Identity.new(email_or_domain,
|
36
|
+
Identity.new(email_or_domain,
|
37
37
|
:verification_token => resp.data[:verification_token],
|
38
38
|
:config => config)
|
39
39
|
|
@@ -41,8 +41,8 @@ module AWS
|
|
41
41
|
alias_method :create, :verify
|
42
42
|
|
43
43
|
# @param [String] email_or_domain
|
44
|
-
# @return [
|
45
|
-
# email address or domain name.
|
44
|
+
# @return [DomainIdentity,EmailIdentity] Returns an {Identity} with
|
45
|
+
# the given email address or domain name.
|
46
46
|
def [] email_or_domain
|
47
47
|
Identity.new(email_or_domain, :config => config)
|
48
48
|
end
|
@@ -15,14 +15,9 @@ module AWS
|
|
15
15
|
class SimpleWorkflow
|
16
16
|
|
17
17
|
# Client class for Amazon Simple Workflow Service (SWF).
|
18
|
-
class Client < Core::
|
18
|
+
class Client < Core::JSONClient
|
19
19
|
|
20
|
-
|
21
|
-
|
22
|
-
extend Core::JSONClient
|
23
|
-
|
24
|
-
# @private
|
25
|
-
TARGET_PREFIX = "SimpleWorkflowService."
|
20
|
+
define_client_methods('2012-01-25')
|
26
21
|
|
27
22
|
# @private
|
28
23
|
CACHEABLE_REQUESTS = Set[
|
@@ -69,7 +64,6 @@ module AWS
|
|
69
64
|
# a hash with the following structure:
|
70
65
|
# * +count+ - (Integer)
|
71
66
|
# * +truncated+ - (Boolean)
|
72
|
-
define_client_method :count_closed_workflow_executions, 'CountClosedWorkflowExecutions'
|
73
67
|
|
74
68
|
# Calls the CountOpenWorkflowExecutions API operation.
|
75
69
|
# @method count_open_workflow_executions(options = {})
|
@@ -90,7 +84,6 @@ module AWS
|
|
90
84
|
# a hash with the following structure:
|
91
85
|
# * +count+ - (Integer)
|
92
86
|
# * +truncated+ - (Boolean)
|
93
|
-
define_client_method :count_open_workflow_executions, 'CountOpenWorkflowExecutions'
|
94
87
|
|
95
88
|
# Calls the CountPendingActivityTasks API operation.
|
96
89
|
# @method count_pending_activity_tasks(options = {})
|
@@ -103,7 +96,6 @@ module AWS
|
|
103
96
|
# a hash with the following structure:
|
104
97
|
# * +count+ - (Integer)
|
105
98
|
# * +truncated+ - (Boolean)
|
106
|
-
define_client_method :count_pending_activity_tasks, 'CountPendingActivityTasks'
|
107
99
|
|
108
100
|
# Calls the CountPendingDecisionTasks API operation.
|
109
101
|
# @method count_pending_decision_tasks(options = {})
|
@@ -116,7 +108,6 @@ module AWS
|
|
116
108
|
# a hash with the following structure:
|
117
109
|
# * +count+ - (Integer)
|
118
110
|
# * +truncated+ - (Boolean)
|
119
|
-
define_client_method :count_pending_decision_tasks, 'CountPendingDecisionTasks'
|
120
111
|
|
121
112
|
# Calls the DeprecateActivityType API operation.
|
122
113
|
# @method deprecate_activity_type(options = {})
|
@@ -126,14 +117,12 @@ module AWS
|
|
126
117
|
# * +:name+ - *required* - (String)
|
127
118
|
# * +:version+ - *required* - (String)
|
128
119
|
# @return [Core::Response]
|
129
|
-
define_client_method :deprecate_activity_type, 'DeprecateActivityType'
|
130
120
|
|
131
121
|
# Calls the DeprecateDomain API operation.
|
132
122
|
# @method deprecate_domain(options = {})
|
133
123
|
# @param [Hash] options
|
134
124
|
# * +:name+ - *required* - (String)
|
135
125
|
# @return [Core::Response]
|
136
|
-
define_client_method :deprecate_domain, 'DeprecateDomain'
|
137
126
|
|
138
127
|
# Calls the DeprecateWorkflowType API operation.
|
139
128
|
# @method deprecate_workflow_type(options = {})
|
@@ -143,7 +132,6 @@ module AWS
|
|
143
132
|
# * +:name+ - *required* - (String)
|
144
133
|
# * +:version+ - *required* - (String)
|
145
134
|
# @return [Core::Response]
|
146
|
-
define_client_method :deprecate_workflow_type, 'DeprecateWorkflowType'
|
147
135
|
|
148
136
|
# Calls the DescribeActivityType API operation.
|
149
137
|
# @method describe_activity_type(options = {})
|
@@ -170,7 +158,6 @@ module AWS
|
|
170
158
|
# * +name+ - (String)
|
171
159
|
# * +defaultTaskScheduleToStartTimeout+ - (String)
|
172
160
|
# * +defaultTaskScheduleToCloseTimeout+ - (String)
|
173
|
-
define_client_method :describe_activity_type, 'DescribeActivityType'
|
174
161
|
|
175
162
|
# Calls the DescribeDomain API operation.
|
176
163
|
# @method describe_domain(options = {})
|
@@ -185,7 +172,6 @@ module AWS
|
|
185
172
|
# * +description+ - (String)
|
186
173
|
# * +configuration+ - (Hash)
|
187
174
|
# * +workflowExecutionRetentionPeriodInDays+ - (String)
|
188
|
-
define_client_method :describe_domain, 'DescribeDomain'
|
189
175
|
|
190
176
|
# Calls the DescribeWorkflowExecution API operation.
|
191
177
|
# @method describe_workflow_execution(options = {})
|
@@ -226,7 +212,6 @@ module AWS
|
|
226
212
|
# * +openChildWorkflowExecutions+ - (Integer)
|
227
213
|
# * +latestActivityTaskTimestamp+ - (Time)
|
228
214
|
# * +latestExecutionContext+ - (String)
|
229
|
-
define_client_method :describe_workflow_execution, 'DescribeWorkflowExecution'
|
230
215
|
|
231
216
|
# Calls the DescribeWorkflowType API operation.
|
232
217
|
# @method describe_workflow_type(options = {})
|
@@ -252,7 +237,6 @@ module AWS
|
|
252
237
|
# * +defaultTaskList+ - (Hash)
|
253
238
|
# * +name+ - (String)
|
254
239
|
# * +defaultChildPolicy+ - (String)
|
255
|
-
define_client_method :describe_workflow_type, 'DescribeWorkflowType'
|
256
240
|
|
257
241
|
# Calls the GetWorkflowExecutionHistory API operation.
|
258
242
|
# @method get_workflow_execution_history(options = {})
|
@@ -547,7 +531,6 @@ module AWS
|
|
547
531
|
# * +initiatedEventId+ - (Integer)
|
548
532
|
# * +decisionTaskCompletedEventId+ - (Integer)
|
549
533
|
# * +nextPageToken+ - (String)
|
550
|
-
define_client_method :get_workflow_execution_history, 'GetWorkflowExecutionHistory'
|
551
534
|
|
552
535
|
# Calls the ListActivityTypes API operation.
|
553
536
|
# @method list_activity_types(options = {})
|
@@ -570,7 +553,6 @@ module AWS
|
|
570
553
|
# * +creationDate+ - (Time)
|
571
554
|
# * +deprecationDate+ - (Time)
|
572
555
|
# * +nextPageToken+ - (String)
|
573
|
-
define_client_method :list_activity_types, 'ListActivityTypes'
|
574
556
|
|
575
557
|
# Calls the ListClosedWorkflowExecutions API operation.
|
576
558
|
# @method list_closed_workflow_executions(options = {})
|
@@ -614,7 +596,6 @@ module AWS
|
|
614
596
|
# * +tagList+ - (Array<String>)
|
615
597
|
# * +cancelRequested+ - (Boolean)
|
616
598
|
# * +nextPageToken+ - (String)
|
617
|
-
define_client_method :list_closed_workflow_executions, 'ListClosedWorkflowExecutions'
|
618
599
|
|
619
600
|
# Calls the ListDomains API operation.
|
620
601
|
# @method list_domains(options = {})
|
@@ -631,7 +612,6 @@ module AWS
|
|
631
612
|
# * +status+ - (String)
|
632
613
|
# * +description+ - (String)
|
633
614
|
# * +nextPageToken+ - (String)
|
634
|
-
define_client_method :list_domains, 'ListDomains'
|
635
615
|
|
636
616
|
# Calls the ListOpenWorkflowExecutions API operation.
|
637
617
|
# @method list_open_workflow_executions(options = {})
|
@@ -670,7 +650,6 @@ module AWS
|
|
670
650
|
# * +tagList+ - (Array<String>)
|
671
651
|
# * +cancelRequested+ - (Boolean)
|
672
652
|
# * +nextPageToken+ - (String)
|
673
|
-
define_client_method :list_open_workflow_executions, 'ListOpenWorkflowExecutions'
|
674
653
|
|
675
654
|
# Calls the ListWorkflowTypes API operation.
|
676
655
|
# @method list_workflow_types(options = {})
|
@@ -693,7 +672,6 @@ module AWS
|
|
693
672
|
# * +creationDate+ - (Time)
|
694
673
|
# * +deprecationDate+ - (Time)
|
695
674
|
# * +nextPageToken+ - (String)
|
696
|
-
define_client_method :list_workflow_types, 'ListWorkflowTypes'
|
697
675
|
|
698
676
|
# Calls the PollForActivityTask API operation.
|
699
677
|
# @method poll_for_activity_task(options = {})
|
@@ -715,7 +693,6 @@ module AWS
|
|
715
693
|
# * +name+ - (String)
|
716
694
|
# * +version+ - (String)
|
717
695
|
# * +input+ - (String)
|
718
|
-
define_client_method :poll_for_activity_task, 'PollForActivityTask'
|
719
696
|
|
720
697
|
# Calls the PollForDecisionTask API operation.
|
721
698
|
# @method poll_for_decision_task(options = {})
|
@@ -1019,7 +996,6 @@ module AWS
|
|
1019
996
|
# * +decisionTaskCompletedEventId+ - (Integer)
|
1020
997
|
# * +nextPageToken+ - (String)
|
1021
998
|
# * +previousStartedEventId+ - (Integer)
|
1022
|
-
define_client_method :poll_for_decision_task, 'PollForDecisionTask'
|
1023
999
|
|
1024
1000
|
# Calls the RecordActivityTaskHeartbeat API operation.
|
1025
1001
|
# @method record_activity_task_heartbeat(options = {})
|
@@ -1030,7 +1006,6 @@ module AWS
|
|
1030
1006
|
# The #data method of the response object returns
|
1031
1007
|
# a hash with the following structure:
|
1032
1008
|
# * +cancelRequested+ - (Boolean)
|
1033
|
-
define_client_method :record_activity_task_heartbeat, 'RecordActivityTaskHeartbeat'
|
1034
1009
|
|
1035
1010
|
# Calls the RegisterActivityType API operation.
|
1036
1011
|
# @method register_activity_type(options = {})
|
@@ -1046,7 +1021,6 @@ module AWS
|
|
1046
1021
|
# * +:default_task_schedule_to_start_timeout+ - (String)
|
1047
1022
|
# * +:default_task_schedule_to_close_timeout+ - (String)
|
1048
1023
|
# @return [Core::Response]
|
1049
|
-
define_client_method :register_activity_type, 'RegisterActivityType'
|
1050
1024
|
|
1051
1025
|
# Calls the RegisterDomain API operation.
|
1052
1026
|
# @method register_domain(options = {})
|
@@ -1055,7 +1029,6 @@ module AWS
|
|
1055
1029
|
# * +:description+ - (String)
|
1056
1030
|
# * +:workflow_execution_retention_period_in_days+ - *required* - (String)
|
1057
1031
|
# @return [Core::Response]
|
1058
|
-
define_client_method :register_domain, 'RegisterDomain'
|
1059
1032
|
|
1060
1033
|
# Calls the RegisterWorkflowType API operation.
|
1061
1034
|
# @method register_workflow_type(options = {})
|
@@ -1070,7 +1043,6 @@ module AWS
|
|
1070
1043
|
# * +:name+ - *required* - (String)
|
1071
1044
|
# * +:default_child_policy+ - (String)
|
1072
1045
|
# @return [Core::Response]
|
1073
|
-
define_client_method :register_workflow_type, 'RegisterWorkflowType'
|
1074
1046
|
|
1075
1047
|
# Calls the RequestCancelWorkflowExecution API operation.
|
1076
1048
|
# @method request_cancel_workflow_execution(options = {})
|
@@ -1079,7 +1051,6 @@ module AWS
|
|
1079
1051
|
# * +:workflow_id+ - *required* - (String)
|
1080
1052
|
# * +:run_id+ - (String)
|
1081
1053
|
# @return [Core::Response]
|
1082
|
-
define_client_method :request_cancel_workflow_execution, 'RequestCancelWorkflowExecution'
|
1083
1054
|
|
1084
1055
|
# Calls the RespondActivityTaskCanceled API operation.
|
1085
1056
|
# @method respond_activity_task_canceled(options = {})
|
@@ -1087,7 +1058,6 @@ module AWS
|
|
1087
1058
|
# * +:task_token+ - *required* - (String)
|
1088
1059
|
# * +:details+ - (String)
|
1089
1060
|
# @return [Core::Response]
|
1090
|
-
define_client_method :respond_activity_task_canceled, 'RespondActivityTaskCanceled'
|
1091
1061
|
|
1092
1062
|
# Calls the RespondActivityTaskCompleted API operation.
|
1093
1063
|
# @method respond_activity_task_completed(options = {})
|
@@ -1095,7 +1065,6 @@ module AWS
|
|
1095
1065
|
# * +:task_token+ - *required* - (String)
|
1096
1066
|
# * +:result+ - (String)
|
1097
1067
|
# @return [Core::Response]
|
1098
|
-
define_client_method :respond_activity_task_completed, 'RespondActivityTaskCompleted'
|
1099
1068
|
|
1100
1069
|
# Calls the RespondActivityTaskFailed API operation.
|
1101
1070
|
# @method respond_activity_task_failed(options = {})
|
@@ -1104,7 +1073,6 @@ module AWS
|
|
1104
1073
|
# * +:reason+ - (String)
|
1105
1074
|
# * +:details+ - (String)
|
1106
1075
|
# @return [Core::Response]
|
1107
|
-
define_client_method :respond_activity_task_failed, 'RespondActivityTaskFailed'
|
1108
1076
|
|
1109
1077
|
# Calls the RespondDecisionTaskCompleted API operation.
|
1110
1078
|
# @method respond_decision_task_completed(options = {})
|
@@ -1177,7 +1145,6 @@ module AWS
|
|
1177
1145
|
# * +:tag_list+ - (Array<String>)
|
1178
1146
|
# * +:execution_context+ - (String)
|
1179
1147
|
# @return [Core::Response]
|
1180
|
-
define_client_method :respond_decision_task_completed, 'RespondDecisionTaskCompleted'
|
1181
1148
|
|
1182
1149
|
# Calls the SignalWorkflowExecution API operation.
|
1183
1150
|
# @method signal_workflow_execution(options = {})
|
@@ -1188,7 +1155,6 @@ module AWS
|
|
1188
1155
|
# * +:signal_name+ - *required* - (String)
|
1189
1156
|
# * +:input+ - (String)
|
1190
1157
|
# @return [Core::Response]
|
1191
|
-
define_client_method :signal_workflow_execution, 'SignalWorkflowExecution'
|
1192
1158
|
|
1193
1159
|
# Calls the StartWorkflowExecution API operation.
|
1194
1160
|
# @method start_workflow_execution(options = {})
|
@@ -1209,7 +1175,6 @@ module AWS
|
|
1209
1175
|
# The #data method of the response object returns
|
1210
1176
|
# a hash with the following structure:
|
1211
1177
|
# * +runId+ - (String)
|
1212
|
-
define_client_method :start_workflow_execution, 'StartWorkflowExecution'
|
1213
1178
|
|
1214
1179
|
# Calls the TerminateWorkflowExecution API operation.
|
1215
1180
|
# @method terminate_workflow_execution(options = {})
|
@@ -1221,7 +1186,6 @@ module AWS
|
|
1221
1186
|
# * +:details+ - (String)
|
1222
1187
|
# * +:child_policy+ - (String)
|
1223
1188
|
# @return [Core::Response]
|
1224
|
-
define_client_method :terminate_workflow_execution, 'TerminateWorkflowExecution'
|
1225
1189
|
|
1226
1190
|
## end client methods ##
|
1227
1191
|
|
data/lib/aws/sns/client.rb
CHANGED
@@ -15,11 +15,9 @@ module AWS
|
|
15
15
|
class SNS
|
16
16
|
|
17
17
|
# Client class for Amazon Simple Notifications Service (SNS).
|
18
|
-
class Client < Core::
|
18
|
+
class Client < Core::QueryClient
|
19
19
|
|
20
|
-
|
21
|
-
|
22
|
-
extend Core::QueryClient
|
20
|
+
define_client_methods('2010-03-31')
|
23
21
|
|
24
22
|
# @private
|
25
23
|
CACHEABLE_REQUESTS = Set[]
|
@@ -41,7 +39,6 @@ module AWS
|
|
41
39
|
# to allow for the specified principal(s). Valid values: any Amazon
|
42
40
|
# SNS action name.
|
43
41
|
# @return [Core::Response]
|
44
|
-
define_client_method :add_permission, 'AddPermission'
|
45
42
|
|
46
43
|
# Calls the ConfirmSubscription API operation.
|
47
44
|
# @method confirm_subscription(options = {})
|
@@ -59,7 +56,6 @@ module AWS
|
|
59
56
|
# The #data method of the response object returns
|
60
57
|
# a hash with the following structure:
|
61
58
|
# * +:subscription_arn+ - (String)
|
62
|
-
define_client_method :confirm_subscription, 'ConfirmSubscription'
|
63
59
|
|
64
60
|
# Calls the CreateTopic API operation.
|
65
61
|
# @method create_topic(options = {})
|
@@ -72,7 +68,6 @@ module AWS
|
|
72
68
|
# The #data method of the response object returns
|
73
69
|
# a hash with the following structure:
|
74
70
|
# * +:topic_arn+ - (String)
|
75
|
-
define_client_method :create_topic, 'CreateTopic'
|
76
71
|
|
77
72
|
# Calls the DeleteTopic API operation.
|
78
73
|
# @method delete_topic(options = {})
|
@@ -90,7 +85,6 @@ module AWS
|
|
90
85
|
# <RequestId>fba800b9-3765-11df-8cf3-c58c53254dfb</RequestId>
|
91
86
|
# </ResponseMetadata> </DeleteTopicResponse>
|
92
87
|
# @return [Core::Response]
|
93
|
-
define_client_method :delete_topic, 'DeleteTopic'
|
94
88
|
|
95
89
|
# Calls the GetSubscriptionAttributes API operation.
|
96
90
|
# @method get_subscription_attributes(options = {})
|
@@ -101,7 +95,6 @@ module AWS
|
|
101
95
|
# The #data method of the response object returns
|
102
96
|
# a hash with the following structure:
|
103
97
|
# * +:attributes+ - (Hash<String,String>)
|
104
|
-
define_client_method :get_subscription_attributes, 'GetSubscriptionAttributes'
|
105
98
|
|
106
99
|
# Calls the GetTopicAttributes API operation.
|
107
100
|
# @method get_topic_attributes(options = {})
|
@@ -112,7 +105,6 @@ module AWS
|
|
112
105
|
# The #data method of the response object returns
|
113
106
|
# a hash with the following structure:
|
114
107
|
# * +:attributes+ - (Hash<String,String>)
|
115
|
-
define_client_method :get_topic_attributes, 'GetTopicAttributes'
|
116
108
|
|
117
109
|
# Calls the ListSubscriptions API operation.
|
118
110
|
# @method list_subscriptions(options = {})
|
@@ -129,7 +121,6 @@ module AWS
|
|
129
121
|
# * +:endpoint+ - (String)
|
130
122
|
# * +:topic_arn+ - (String)
|
131
123
|
# * +:next_token+ - (String)
|
132
|
-
define_client_method :list_subscriptions, 'ListSubscriptions'
|
133
124
|
|
134
125
|
# Calls the ListSubscriptionsByTopic API operation.
|
135
126
|
# @method list_subscriptions_by_topic(options = {})
|
@@ -148,7 +139,6 @@ module AWS
|
|
148
139
|
# * +:endpoint+ - (String)
|
149
140
|
# * +:topic_arn+ - (String)
|
150
141
|
# * +:next_token+ - (String)
|
151
|
-
define_client_method :list_subscriptions_by_topic, 'ListSubscriptionsByTopic'
|
152
142
|
|
153
143
|
# Calls the ListTopics API operation.
|
154
144
|
# @method list_topics(options = {})
|
@@ -161,7 +151,6 @@ module AWS
|
|
161
151
|
# * +:topics+ - (Array<Hash>)
|
162
152
|
# * +:topic_arn+ - (String)
|
163
153
|
# * +:next_token+ - (String)
|
164
|
-
define_client_method :list_topics, 'ListTopics'
|
165
154
|
|
166
155
|
# Calls the Publish API operation.
|
167
156
|
# @method publish(options = {})
|
@@ -203,7 +192,6 @@ module AWS
|
|
203
192
|
# The #data method of the response object returns
|
204
193
|
# a hash with the following structure:
|
205
194
|
# * +:message_id+ - (String)
|
206
|
-
define_client_method :publish, 'Publish'
|
207
195
|
|
208
196
|
# Calls the RemovePermission API operation.
|
209
197
|
# @method remove_permission(options = {})
|
@@ -213,7 +201,6 @@ module AWS
|
|
213
201
|
# * +:label+ - *required* - (String) The unique label of the statement
|
214
202
|
# you want to remove.
|
215
203
|
# @return [Core::Response]
|
216
|
-
define_client_method :remove_permission, 'RemovePermission'
|
217
204
|
|
218
205
|
# Calls the SetSubscriptionAttributes API operation.
|
219
206
|
# @method set_subscription_attributes(options = {})
|
@@ -226,7 +213,6 @@ module AWS
|
|
226
213
|
# * +:attribute_value+ - *required* - (String) The new value for the
|
227
214
|
# attribute.
|
228
215
|
# @return [Core::Response]
|
229
|
-
define_client_method :set_subscription_attributes, 'SetSubscriptionAttributes'
|
230
216
|
|
231
217
|
# Calls the SetTopicAttributes API operation.
|
232
218
|
# @method set_topic_attributes(options = {})
|
@@ -239,7 +225,6 @@ module AWS
|
|
239
225
|
# * +:attribute_value+ - *required* - (String) The new value for the
|
240
226
|
# attribute.
|
241
227
|
# @return [Core::Response]
|
242
|
-
define_client_method :set_topic_attributes, 'SetTopicAttributes'
|
243
228
|
|
244
229
|
# Calls the Subscribe API operation.
|
245
230
|
# @method subscribe(options = {})
|
@@ -266,7 +251,6 @@ module AWS
|
|
266
251
|
# The #data method of the response object returns
|
267
252
|
# a hash with the following structure:
|
268
253
|
# * +:subscription_arn+ - (String)
|
269
|
-
define_client_method :subscribe, 'Subscribe'
|
270
254
|
|
271
255
|
# Calls the Unsubscribe API operation.
|
272
256
|
# @method unsubscribe(options = {})
|
@@ -274,7 +258,6 @@ module AWS
|
|
274
258
|
# * +:subscription_arn+ - *required* - (String) The ARN of the
|
275
259
|
# subscription to be deleted.
|
276
260
|
# @return [Core::Response]
|
277
|
-
define_client_method :unsubscribe, 'Unsubscribe'
|
278
261
|
|
279
262
|
## end client methods ##
|
280
263
|
|