aws-sdk-sns 1.0.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,749 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing for info on making contributions:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws
9
+ module SNS
10
+ # @api private
11
+ module ClientApi
12
+
13
+ include Seahorse::Model
14
+
15
+ ActionsList = Shapes::ListShape.new(name: 'ActionsList')
16
+ AddPermissionInput = Shapes::StructureShape.new(name: 'AddPermissionInput')
17
+ AuthorizationErrorException = Shapes::StructureShape.new(name: 'AuthorizationErrorException')
18
+ Binary = Shapes::BlobShape.new(name: 'Binary')
19
+ CheckIfPhoneNumberIsOptedOutInput = Shapes::StructureShape.new(name: 'CheckIfPhoneNumberIsOptedOutInput')
20
+ CheckIfPhoneNumberIsOptedOutResponse = Shapes::StructureShape.new(name: 'CheckIfPhoneNumberIsOptedOutResponse')
21
+ ConfirmSubscriptionInput = Shapes::StructureShape.new(name: 'ConfirmSubscriptionInput')
22
+ ConfirmSubscriptionResponse = Shapes::StructureShape.new(name: 'ConfirmSubscriptionResponse')
23
+ CreateEndpointResponse = Shapes::StructureShape.new(name: 'CreateEndpointResponse')
24
+ CreatePlatformApplicationInput = Shapes::StructureShape.new(name: 'CreatePlatformApplicationInput')
25
+ CreatePlatformApplicationResponse = Shapes::StructureShape.new(name: 'CreatePlatformApplicationResponse')
26
+ CreatePlatformEndpointInput = Shapes::StructureShape.new(name: 'CreatePlatformEndpointInput')
27
+ CreateTopicInput = Shapes::StructureShape.new(name: 'CreateTopicInput')
28
+ CreateTopicResponse = Shapes::StructureShape.new(name: 'CreateTopicResponse')
29
+ DelegatesList = Shapes::ListShape.new(name: 'DelegatesList')
30
+ DeleteEndpointInput = Shapes::StructureShape.new(name: 'DeleteEndpointInput')
31
+ DeletePlatformApplicationInput = Shapes::StructureShape.new(name: 'DeletePlatformApplicationInput')
32
+ DeleteTopicInput = Shapes::StructureShape.new(name: 'DeleteTopicInput')
33
+ Endpoint = Shapes::StructureShape.new(name: 'Endpoint')
34
+ EndpointDisabledException = Shapes::StructureShape.new(name: 'EndpointDisabledException')
35
+ GetEndpointAttributesInput = Shapes::StructureShape.new(name: 'GetEndpointAttributesInput')
36
+ GetEndpointAttributesResponse = Shapes::StructureShape.new(name: 'GetEndpointAttributesResponse')
37
+ GetPlatformApplicationAttributesInput = Shapes::StructureShape.new(name: 'GetPlatformApplicationAttributesInput')
38
+ GetPlatformApplicationAttributesResponse = Shapes::StructureShape.new(name: 'GetPlatformApplicationAttributesResponse')
39
+ GetSMSAttributesInput = Shapes::StructureShape.new(name: 'GetSMSAttributesInput')
40
+ GetSMSAttributesResponse = Shapes::StructureShape.new(name: 'GetSMSAttributesResponse')
41
+ GetSubscriptionAttributesInput = Shapes::StructureShape.new(name: 'GetSubscriptionAttributesInput')
42
+ GetSubscriptionAttributesResponse = Shapes::StructureShape.new(name: 'GetSubscriptionAttributesResponse')
43
+ GetTopicAttributesInput = Shapes::StructureShape.new(name: 'GetTopicAttributesInput')
44
+ GetTopicAttributesResponse = Shapes::StructureShape.new(name: 'GetTopicAttributesResponse')
45
+ InternalErrorException = Shapes::StructureShape.new(name: 'InternalErrorException')
46
+ InvalidParameterException = Shapes::StructureShape.new(name: 'InvalidParameterException')
47
+ InvalidParameterValueException = Shapes::StructureShape.new(name: 'InvalidParameterValueException')
48
+ ListEndpointsByPlatformApplicationInput = Shapes::StructureShape.new(name: 'ListEndpointsByPlatformApplicationInput')
49
+ ListEndpointsByPlatformApplicationResponse = Shapes::StructureShape.new(name: 'ListEndpointsByPlatformApplicationResponse')
50
+ ListOfEndpoints = Shapes::ListShape.new(name: 'ListOfEndpoints')
51
+ ListOfPlatformApplications = Shapes::ListShape.new(name: 'ListOfPlatformApplications')
52
+ ListPhoneNumbersOptedOutInput = Shapes::StructureShape.new(name: 'ListPhoneNumbersOptedOutInput')
53
+ ListPhoneNumbersOptedOutResponse = Shapes::StructureShape.new(name: 'ListPhoneNumbersOptedOutResponse')
54
+ ListPlatformApplicationsInput = Shapes::StructureShape.new(name: 'ListPlatformApplicationsInput')
55
+ ListPlatformApplicationsResponse = Shapes::StructureShape.new(name: 'ListPlatformApplicationsResponse')
56
+ ListString = Shapes::ListShape.new(name: 'ListString')
57
+ ListSubscriptionsByTopicInput = Shapes::StructureShape.new(name: 'ListSubscriptionsByTopicInput')
58
+ ListSubscriptionsByTopicResponse = Shapes::StructureShape.new(name: 'ListSubscriptionsByTopicResponse')
59
+ ListSubscriptionsInput = Shapes::StructureShape.new(name: 'ListSubscriptionsInput')
60
+ ListSubscriptionsResponse = Shapes::StructureShape.new(name: 'ListSubscriptionsResponse')
61
+ ListTopicsInput = Shapes::StructureShape.new(name: 'ListTopicsInput')
62
+ ListTopicsResponse = Shapes::StructureShape.new(name: 'ListTopicsResponse')
63
+ MapStringToString = Shapes::MapShape.new(name: 'MapStringToString')
64
+ MessageAttributeMap = Shapes::MapShape.new(name: 'MessageAttributeMap')
65
+ MessageAttributeValue = Shapes::StructureShape.new(name: 'MessageAttributeValue')
66
+ NotFoundException = Shapes::StructureShape.new(name: 'NotFoundException')
67
+ OptInPhoneNumberInput = Shapes::StructureShape.new(name: 'OptInPhoneNumberInput')
68
+ OptInPhoneNumberResponse = Shapes::StructureShape.new(name: 'OptInPhoneNumberResponse')
69
+ PhoneNumber = Shapes::StringShape.new(name: 'PhoneNumber')
70
+ PhoneNumberList = Shapes::ListShape.new(name: 'PhoneNumberList')
71
+ PlatformApplication = Shapes::StructureShape.new(name: 'PlatformApplication')
72
+ PlatformApplicationDisabledException = Shapes::StructureShape.new(name: 'PlatformApplicationDisabledException')
73
+ PublishInput = Shapes::StructureShape.new(name: 'PublishInput')
74
+ PublishResponse = Shapes::StructureShape.new(name: 'PublishResponse')
75
+ RemovePermissionInput = Shapes::StructureShape.new(name: 'RemovePermissionInput')
76
+ SetEndpointAttributesInput = Shapes::StructureShape.new(name: 'SetEndpointAttributesInput')
77
+ SetPlatformApplicationAttributesInput = Shapes::StructureShape.new(name: 'SetPlatformApplicationAttributesInput')
78
+ SetSMSAttributesInput = Shapes::StructureShape.new(name: 'SetSMSAttributesInput')
79
+ SetSMSAttributesResponse = Shapes::StructureShape.new(name: 'SetSMSAttributesResponse')
80
+ SetSubscriptionAttributesInput = Shapes::StructureShape.new(name: 'SetSubscriptionAttributesInput')
81
+ SetTopicAttributesInput = Shapes::StructureShape.new(name: 'SetTopicAttributesInput')
82
+ String = Shapes::StringShape.new(name: 'String')
83
+ SubscribeInput = Shapes::StructureShape.new(name: 'SubscribeInput')
84
+ SubscribeResponse = Shapes::StructureShape.new(name: 'SubscribeResponse')
85
+ Subscription = Shapes::StructureShape.new(name: 'Subscription')
86
+ SubscriptionAttributesMap = Shapes::MapShape.new(name: 'SubscriptionAttributesMap')
87
+ SubscriptionLimitExceededException = Shapes::StructureShape.new(name: 'SubscriptionLimitExceededException')
88
+ SubscriptionsList = Shapes::ListShape.new(name: 'SubscriptionsList')
89
+ ThrottledException = Shapes::StructureShape.new(name: 'ThrottledException')
90
+ Topic = Shapes::StructureShape.new(name: 'Topic')
91
+ TopicAttributesMap = Shapes::MapShape.new(name: 'TopicAttributesMap')
92
+ TopicLimitExceededException = Shapes::StructureShape.new(name: 'TopicLimitExceededException')
93
+ TopicsList = Shapes::ListShape.new(name: 'TopicsList')
94
+ UnsubscribeInput = Shapes::StructureShape.new(name: 'UnsubscribeInput')
95
+ account = Shapes::StringShape.new(name: 'account')
96
+ action = Shapes::StringShape.new(name: 'action')
97
+ attributeName = Shapes::StringShape.new(name: 'attributeName')
98
+ attributeValue = Shapes::StringShape.new(name: 'attributeValue')
99
+ authenticateOnUnsubscribe = Shapes::StringShape.new(name: 'authenticateOnUnsubscribe')
100
+ boolean = Shapes::BooleanShape.new(name: 'boolean')
101
+ delegate = Shapes::StringShape.new(name: 'delegate')
102
+ endpoint = Shapes::StringShape.new(name: 'endpoint')
103
+ label = Shapes::StringShape.new(name: 'label')
104
+ message = Shapes::StringShape.new(name: 'message')
105
+ messageId = Shapes::StringShape.new(name: 'messageId')
106
+ messageStructure = Shapes::StringShape.new(name: 'messageStructure')
107
+ nextToken = Shapes::StringShape.new(name: 'nextToken')
108
+ protocol = Shapes::StringShape.new(name: 'protocol')
109
+ string = Shapes::StringShape.new(name: 'string')
110
+ subject = Shapes::StringShape.new(name: 'subject')
111
+ subscriptionARN = Shapes::StringShape.new(name: 'subscriptionARN')
112
+ token = Shapes::StringShape.new(name: 'token')
113
+ topicARN = Shapes::StringShape.new(name: 'topicARN')
114
+ topicName = Shapes::StringShape.new(name: 'topicName')
115
+
116
+ ActionsList.member = Shapes::ShapeRef.new(shape: action)
117
+
118
+ AddPermissionInput.add_member(:topic_arn, Shapes::ShapeRef.new(shape: topicARN, required: true, location_name: "TopicArn"))
119
+ AddPermissionInput.add_member(:label, Shapes::ShapeRef.new(shape: label, required: true, location_name: "Label"))
120
+ AddPermissionInput.add_member(:aws_account_id, Shapes::ShapeRef.new(shape: DelegatesList, required: true, location_name: "AWSAccountId"))
121
+ AddPermissionInput.add_member(:action_name, Shapes::ShapeRef.new(shape: ActionsList, required: true, location_name: "ActionName"))
122
+ AddPermissionInput.struct_class = Types::AddPermissionInput
123
+
124
+ CheckIfPhoneNumberIsOptedOutInput.add_member(:phone_number, Shapes::ShapeRef.new(shape: PhoneNumber, required: true, location_name: "phoneNumber"))
125
+ CheckIfPhoneNumberIsOptedOutInput.struct_class = Types::CheckIfPhoneNumberIsOptedOutInput
126
+
127
+ CheckIfPhoneNumberIsOptedOutResponse.add_member(:is_opted_out, Shapes::ShapeRef.new(shape: boolean, location_name: "isOptedOut"))
128
+ CheckIfPhoneNumberIsOptedOutResponse.struct_class = Types::CheckIfPhoneNumberIsOptedOutResponse
129
+
130
+ ConfirmSubscriptionInput.add_member(:topic_arn, Shapes::ShapeRef.new(shape: topicARN, required: true, location_name: "TopicArn"))
131
+ ConfirmSubscriptionInput.add_member(:token, Shapes::ShapeRef.new(shape: token, required: true, location_name: "Token"))
132
+ ConfirmSubscriptionInput.add_member(:authenticate_on_unsubscribe, Shapes::ShapeRef.new(shape: authenticateOnUnsubscribe, location_name: "AuthenticateOnUnsubscribe"))
133
+ ConfirmSubscriptionInput.struct_class = Types::ConfirmSubscriptionInput
134
+
135
+ ConfirmSubscriptionResponse.add_member(:subscription_arn, Shapes::ShapeRef.new(shape: subscriptionARN, location_name: "SubscriptionArn"))
136
+ ConfirmSubscriptionResponse.struct_class = Types::ConfirmSubscriptionResponse
137
+
138
+ CreateEndpointResponse.add_member(:endpoint_arn, Shapes::ShapeRef.new(shape: String, location_name: "EndpointArn"))
139
+ CreateEndpointResponse.struct_class = Types::CreateEndpointResponse
140
+
141
+ CreatePlatformApplicationInput.add_member(:name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Name"))
142
+ CreatePlatformApplicationInput.add_member(:platform, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Platform"))
143
+ CreatePlatformApplicationInput.add_member(:attributes, Shapes::ShapeRef.new(shape: MapStringToString, required: true, location_name: "Attributes"))
144
+ CreatePlatformApplicationInput.struct_class = Types::CreatePlatformApplicationInput
145
+
146
+ CreatePlatformApplicationResponse.add_member(:platform_application_arn, Shapes::ShapeRef.new(shape: String, location_name: "PlatformApplicationArn"))
147
+ CreatePlatformApplicationResponse.struct_class = Types::CreatePlatformApplicationResponse
148
+
149
+ CreatePlatformEndpointInput.add_member(:platform_application_arn, Shapes::ShapeRef.new(shape: String, required: true, location_name: "PlatformApplicationArn"))
150
+ CreatePlatformEndpointInput.add_member(:token, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Token"))
151
+ CreatePlatformEndpointInput.add_member(:custom_user_data, Shapes::ShapeRef.new(shape: String, location_name: "CustomUserData"))
152
+ CreatePlatformEndpointInput.add_member(:attributes, Shapes::ShapeRef.new(shape: MapStringToString, location_name: "Attributes"))
153
+ CreatePlatformEndpointInput.struct_class = Types::CreatePlatformEndpointInput
154
+
155
+ CreateTopicInput.add_member(:name, Shapes::ShapeRef.new(shape: topicName, required: true, location_name: "Name"))
156
+ CreateTopicInput.struct_class = Types::CreateTopicInput
157
+
158
+ CreateTopicResponse.add_member(:topic_arn, Shapes::ShapeRef.new(shape: topicARN, location_name: "TopicArn"))
159
+ CreateTopicResponse.struct_class = Types::CreateTopicResponse
160
+
161
+ DelegatesList.member = Shapes::ShapeRef.new(shape: delegate)
162
+
163
+ DeleteEndpointInput.add_member(:endpoint_arn, Shapes::ShapeRef.new(shape: String, required: true, location_name: "EndpointArn"))
164
+ DeleteEndpointInput.struct_class = Types::DeleteEndpointInput
165
+
166
+ DeletePlatformApplicationInput.add_member(:platform_application_arn, Shapes::ShapeRef.new(shape: String, required: true, location_name: "PlatformApplicationArn"))
167
+ DeletePlatformApplicationInput.struct_class = Types::DeletePlatformApplicationInput
168
+
169
+ DeleteTopicInput.add_member(:topic_arn, Shapes::ShapeRef.new(shape: topicARN, required: true, location_name: "TopicArn"))
170
+ DeleteTopicInput.struct_class = Types::DeleteTopicInput
171
+
172
+ Endpoint.add_member(:endpoint_arn, Shapes::ShapeRef.new(shape: String, location_name: "EndpointArn"))
173
+ Endpoint.add_member(:attributes, Shapes::ShapeRef.new(shape: MapStringToString, location_name: "Attributes"))
174
+ Endpoint.struct_class = Types::Endpoint
175
+
176
+ GetEndpointAttributesInput.add_member(:endpoint_arn, Shapes::ShapeRef.new(shape: String, required: true, location_name: "EndpointArn"))
177
+ GetEndpointAttributesInput.struct_class = Types::GetEndpointAttributesInput
178
+
179
+ GetEndpointAttributesResponse.add_member(:attributes, Shapes::ShapeRef.new(shape: MapStringToString, location_name: "Attributes"))
180
+ GetEndpointAttributesResponse.struct_class = Types::GetEndpointAttributesResponse
181
+
182
+ GetPlatformApplicationAttributesInput.add_member(:platform_application_arn, Shapes::ShapeRef.new(shape: String, required: true, location_name: "PlatformApplicationArn"))
183
+ GetPlatformApplicationAttributesInput.struct_class = Types::GetPlatformApplicationAttributesInput
184
+
185
+ GetPlatformApplicationAttributesResponse.add_member(:attributes, Shapes::ShapeRef.new(shape: MapStringToString, location_name: "Attributes"))
186
+ GetPlatformApplicationAttributesResponse.struct_class = Types::GetPlatformApplicationAttributesResponse
187
+
188
+ GetSMSAttributesInput.add_member(:attributes, Shapes::ShapeRef.new(shape: ListString, location_name: "attributes"))
189
+ GetSMSAttributesInput.struct_class = Types::GetSMSAttributesInput
190
+
191
+ GetSMSAttributesResponse.add_member(:attributes, Shapes::ShapeRef.new(shape: MapStringToString, location_name: "attributes"))
192
+ GetSMSAttributesResponse.struct_class = Types::GetSMSAttributesResponse
193
+
194
+ GetSubscriptionAttributesInput.add_member(:subscription_arn, Shapes::ShapeRef.new(shape: subscriptionARN, required: true, location_name: "SubscriptionArn"))
195
+ GetSubscriptionAttributesInput.struct_class = Types::GetSubscriptionAttributesInput
196
+
197
+ GetSubscriptionAttributesResponse.add_member(:attributes, Shapes::ShapeRef.new(shape: SubscriptionAttributesMap, location_name: "Attributes"))
198
+ GetSubscriptionAttributesResponse.struct_class = Types::GetSubscriptionAttributesResponse
199
+
200
+ GetTopicAttributesInput.add_member(:topic_arn, Shapes::ShapeRef.new(shape: topicARN, required: true, location_name: "TopicArn"))
201
+ GetTopicAttributesInput.struct_class = Types::GetTopicAttributesInput
202
+
203
+ GetTopicAttributesResponse.add_member(:attributes, Shapes::ShapeRef.new(shape: TopicAttributesMap, location_name: "Attributes"))
204
+ GetTopicAttributesResponse.struct_class = Types::GetTopicAttributesResponse
205
+
206
+ ListEndpointsByPlatformApplicationInput.add_member(:platform_application_arn, Shapes::ShapeRef.new(shape: String, required: true, location_name: "PlatformApplicationArn"))
207
+ ListEndpointsByPlatformApplicationInput.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
208
+ ListEndpointsByPlatformApplicationInput.struct_class = Types::ListEndpointsByPlatformApplicationInput
209
+
210
+ ListEndpointsByPlatformApplicationResponse.add_member(:endpoints, Shapes::ShapeRef.new(shape: ListOfEndpoints, location_name: "Endpoints"))
211
+ ListEndpointsByPlatformApplicationResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
212
+ ListEndpointsByPlatformApplicationResponse.struct_class = Types::ListEndpointsByPlatformApplicationResponse
213
+
214
+ ListOfEndpoints.member = Shapes::ShapeRef.new(shape: Endpoint)
215
+
216
+ ListOfPlatformApplications.member = Shapes::ShapeRef.new(shape: PlatformApplication)
217
+
218
+ ListPhoneNumbersOptedOutInput.add_member(:next_token, Shapes::ShapeRef.new(shape: string, location_name: "nextToken"))
219
+ ListPhoneNumbersOptedOutInput.struct_class = Types::ListPhoneNumbersOptedOutInput
220
+
221
+ ListPhoneNumbersOptedOutResponse.add_member(:phone_numbers, Shapes::ShapeRef.new(shape: PhoneNumberList, location_name: "phoneNumbers"))
222
+ ListPhoneNumbersOptedOutResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: string, location_name: "nextToken"))
223
+ ListPhoneNumbersOptedOutResponse.struct_class = Types::ListPhoneNumbersOptedOutResponse
224
+
225
+ ListPlatformApplicationsInput.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
226
+ ListPlatformApplicationsInput.struct_class = Types::ListPlatformApplicationsInput
227
+
228
+ ListPlatformApplicationsResponse.add_member(:platform_applications, Shapes::ShapeRef.new(shape: ListOfPlatformApplications, location_name: "PlatformApplications"))
229
+ ListPlatformApplicationsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
230
+ ListPlatformApplicationsResponse.struct_class = Types::ListPlatformApplicationsResponse
231
+
232
+ ListString.member = Shapes::ShapeRef.new(shape: String)
233
+
234
+ ListSubscriptionsByTopicInput.add_member(:topic_arn, Shapes::ShapeRef.new(shape: topicARN, required: true, location_name: "TopicArn"))
235
+ ListSubscriptionsByTopicInput.add_member(:next_token, Shapes::ShapeRef.new(shape: nextToken, location_name: "NextToken"))
236
+ ListSubscriptionsByTopicInput.struct_class = Types::ListSubscriptionsByTopicInput
237
+
238
+ ListSubscriptionsByTopicResponse.add_member(:subscriptions, Shapes::ShapeRef.new(shape: SubscriptionsList, location_name: "Subscriptions"))
239
+ ListSubscriptionsByTopicResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: nextToken, location_name: "NextToken"))
240
+ ListSubscriptionsByTopicResponse.struct_class = Types::ListSubscriptionsByTopicResponse
241
+
242
+ ListSubscriptionsInput.add_member(:next_token, Shapes::ShapeRef.new(shape: nextToken, location_name: "NextToken"))
243
+ ListSubscriptionsInput.struct_class = Types::ListSubscriptionsInput
244
+
245
+ ListSubscriptionsResponse.add_member(:subscriptions, Shapes::ShapeRef.new(shape: SubscriptionsList, location_name: "Subscriptions"))
246
+ ListSubscriptionsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: nextToken, location_name: "NextToken"))
247
+ ListSubscriptionsResponse.struct_class = Types::ListSubscriptionsResponse
248
+
249
+ ListTopicsInput.add_member(:next_token, Shapes::ShapeRef.new(shape: nextToken, location_name: "NextToken"))
250
+ ListTopicsInput.struct_class = Types::ListTopicsInput
251
+
252
+ ListTopicsResponse.add_member(:topics, Shapes::ShapeRef.new(shape: TopicsList, location_name: "Topics"))
253
+ ListTopicsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: nextToken, location_name: "NextToken"))
254
+ ListTopicsResponse.struct_class = Types::ListTopicsResponse
255
+
256
+ MapStringToString.key = Shapes::ShapeRef.new(shape: String)
257
+ MapStringToString.value = Shapes::ShapeRef.new(shape: String)
258
+
259
+ MessageAttributeMap.key = Shapes::ShapeRef.new(shape: String, location_name: "Name")
260
+ MessageAttributeMap.value = Shapes::ShapeRef.new(shape: MessageAttributeValue, location_name: "Value")
261
+
262
+ MessageAttributeValue.add_member(:data_type, Shapes::ShapeRef.new(shape: String, required: true, location_name: "DataType"))
263
+ MessageAttributeValue.add_member(:string_value, Shapes::ShapeRef.new(shape: String, location_name: "StringValue"))
264
+ MessageAttributeValue.add_member(:binary_value, Shapes::ShapeRef.new(shape: Binary, location_name: "BinaryValue"))
265
+ MessageAttributeValue.struct_class = Types::MessageAttributeValue
266
+
267
+ OptInPhoneNumberInput.add_member(:phone_number, Shapes::ShapeRef.new(shape: PhoneNumber, required: true, location_name: "phoneNumber"))
268
+ OptInPhoneNumberInput.struct_class = Types::OptInPhoneNumberInput
269
+
270
+ OptInPhoneNumberResponse.struct_class = Types::OptInPhoneNumberResponse
271
+
272
+ PhoneNumberList.member = Shapes::ShapeRef.new(shape: PhoneNumber)
273
+
274
+ PlatformApplication.add_member(:platform_application_arn, Shapes::ShapeRef.new(shape: String, location_name: "PlatformApplicationArn"))
275
+ PlatformApplication.add_member(:attributes, Shapes::ShapeRef.new(shape: MapStringToString, location_name: "Attributes"))
276
+ PlatformApplication.struct_class = Types::PlatformApplication
277
+
278
+ PublishInput.add_member(:topic_arn, Shapes::ShapeRef.new(shape: topicARN, location_name: "TopicArn"))
279
+ PublishInput.add_member(:target_arn, Shapes::ShapeRef.new(shape: String, location_name: "TargetArn"))
280
+ PublishInput.add_member(:phone_number, Shapes::ShapeRef.new(shape: String, location_name: "PhoneNumber"))
281
+ PublishInput.add_member(:message, Shapes::ShapeRef.new(shape: message, required: true, location_name: "Message"))
282
+ PublishInput.add_member(:subject, Shapes::ShapeRef.new(shape: subject, location_name: "Subject"))
283
+ PublishInput.add_member(:message_structure, Shapes::ShapeRef.new(shape: messageStructure, location_name: "MessageStructure"))
284
+ PublishInput.add_member(:message_attributes, Shapes::ShapeRef.new(shape: MessageAttributeMap, location_name: "MessageAttributes"))
285
+ PublishInput.struct_class = Types::PublishInput
286
+
287
+ PublishResponse.add_member(:message_id, Shapes::ShapeRef.new(shape: messageId, location_name: "MessageId"))
288
+ PublishResponse.struct_class = Types::PublishResponse
289
+
290
+ RemovePermissionInput.add_member(:topic_arn, Shapes::ShapeRef.new(shape: topicARN, required: true, location_name: "TopicArn"))
291
+ RemovePermissionInput.add_member(:label, Shapes::ShapeRef.new(shape: label, required: true, location_name: "Label"))
292
+ RemovePermissionInput.struct_class = Types::RemovePermissionInput
293
+
294
+ SetEndpointAttributesInput.add_member(:endpoint_arn, Shapes::ShapeRef.new(shape: String, required: true, location_name: "EndpointArn"))
295
+ SetEndpointAttributesInput.add_member(:attributes, Shapes::ShapeRef.new(shape: MapStringToString, required: true, location_name: "Attributes"))
296
+ SetEndpointAttributesInput.struct_class = Types::SetEndpointAttributesInput
297
+
298
+ SetPlatformApplicationAttributesInput.add_member(:platform_application_arn, Shapes::ShapeRef.new(shape: String, required: true, location_name: "PlatformApplicationArn"))
299
+ SetPlatformApplicationAttributesInput.add_member(:attributes, Shapes::ShapeRef.new(shape: MapStringToString, required: true, location_name: "Attributes"))
300
+ SetPlatformApplicationAttributesInput.struct_class = Types::SetPlatformApplicationAttributesInput
301
+
302
+ SetSMSAttributesInput.add_member(:attributes, Shapes::ShapeRef.new(shape: MapStringToString, required: true, location_name: "attributes"))
303
+ SetSMSAttributesInput.struct_class = Types::SetSMSAttributesInput
304
+
305
+ SetSMSAttributesResponse.struct_class = Types::SetSMSAttributesResponse
306
+
307
+ SetSubscriptionAttributesInput.add_member(:subscription_arn, Shapes::ShapeRef.new(shape: subscriptionARN, required: true, location_name: "SubscriptionArn"))
308
+ SetSubscriptionAttributesInput.add_member(:attribute_name, Shapes::ShapeRef.new(shape: attributeName, required: true, location_name: "AttributeName"))
309
+ SetSubscriptionAttributesInput.add_member(:attribute_value, Shapes::ShapeRef.new(shape: attributeValue, location_name: "AttributeValue"))
310
+ SetSubscriptionAttributesInput.struct_class = Types::SetSubscriptionAttributesInput
311
+
312
+ SetTopicAttributesInput.add_member(:topic_arn, Shapes::ShapeRef.new(shape: topicARN, required: true, location_name: "TopicArn"))
313
+ SetTopicAttributesInput.add_member(:attribute_name, Shapes::ShapeRef.new(shape: attributeName, required: true, location_name: "AttributeName"))
314
+ SetTopicAttributesInput.add_member(:attribute_value, Shapes::ShapeRef.new(shape: attributeValue, location_name: "AttributeValue"))
315
+ SetTopicAttributesInput.struct_class = Types::SetTopicAttributesInput
316
+
317
+ SubscribeInput.add_member(:topic_arn, Shapes::ShapeRef.new(shape: topicARN, required: true, location_name: "TopicArn"))
318
+ SubscribeInput.add_member(:protocol, Shapes::ShapeRef.new(shape: protocol, required: true, location_name: "Protocol"))
319
+ SubscribeInput.add_member(:endpoint, Shapes::ShapeRef.new(shape: endpoint, location_name: "Endpoint"))
320
+ SubscribeInput.struct_class = Types::SubscribeInput
321
+
322
+ SubscribeResponse.add_member(:subscription_arn, Shapes::ShapeRef.new(shape: subscriptionARN, location_name: "SubscriptionArn"))
323
+ SubscribeResponse.struct_class = Types::SubscribeResponse
324
+
325
+ Subscription.add_member(:subscription_arn, Shapes::ShapeRef.new(shape: subscriptionARN, location_name: "SubscriptionArn"))
326
+ Subscription.add_member(:owner, Shapes::ShapeRef.new(shape: account, location_name: "Owner"))
327
+ Subscription.add_member(:protocol, Shapes::ShapeRef.new(shape: protocol, location_name: "Protocol"))
328
+ Subscription.add_member(:endpoint, Shapes::ShapeRef.new(shape: endpoint, location_name: "Endpoint"))
329
+ Subscription.add_member(:topic_arn, Shapes::ShapeRef.new(shape: topicARN, location_name: "TopicArn"))
330
+ Subscription.struct_class = Types::Subscription
331
+
332
+ SubscriptionAttributesMap.key = Shapes::ShapeRef.new(shape: attributeName)
333
+ SubscriptionAttributesMap.value = Shapes::ShapeRef.new(shape: attributeValue)
334
+
335
+ SubscriptionsList.member = Shapes::ShapeRef.new(shape: Subscription)
336
+
337
+ Topic.add_member(:topic_arn, Shapes::ShapeRef.new(shape: topicARN, location_name: "TopicArn"))
338
+ Topic.struct_class = Types::Topic
339
+
340
+ TopicAttributesMap.key = Shapes::ShapeRef.new(shape: attributeName)
341
+ TopicAttributesMap.value = Shapes::ShapeRef.new(shape: attributeValue)
342
+
343
+ TopicsList.member = Shapes::ShapeRef.new(shape: Topic)
344
+
345
+ UnsubscribeInput.add_member(:subscription_arn, Shapes::ShapeRef.new(shape: subscriptionARN, required: true, location_name: "SubscriptionArn"))
346
+ UnsubscribeInput.struct_class = Types::UnsubscribeInput
347
+
348
+
349
+ # @api private
350
+ API = Seahorse::Model::Api.new.tap do |api|
351
+
352
+ api.version = "2010-03-31"
353
+
354
+ api.metadata = {
355
+ "endpointPrefix" => "sns",
356
+ "protocol" => "query",
357
+ "serviceFullName" => "Amazon Simple Notification Service",
358
+ "signatureVersion" => "v4",
359
+ "xmlNamespace" => "http://sns.amazonaws.com/doc/2010-03-31/",
360
+ }
361
+
362
+ api.add_operation(:add_permission, Seahorse::Model::Operation.new.tap do |o|
363
+ o.name = "AddPermission"
364
+ o.http_method = "POST"
365
+ o.http_request_uri = "/"
366
+ o.input = Shapes::ShapeRef.new(shape: AddPermissionInput)
367
+ o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
368
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
369
+ o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
370
+ o.errors << Shapes::ShapeRef.new(shape: AuthorizationErrorException)
371
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
372
+ end)
373
+
374
+ api.add_operation(:check_if_phone_number_is_opted_out, Seahorse::Model::Operation.new.tap do |o|
375
+ o.name = "CheckIfPhoneNumberIsOptedOut"
376
+ o.http_method = "POST"
377
+ o.http_request_uri = "/"
378
+ o.input = Shapes::ShapeRef.new(shape: CheckIfPhoneNumberIsOptedOutInput)
379
+ o.output = Shapes::ShapeRef.new(shape: CheckIfPhoneNumberIsOptedOutResponse)
380
+ o.errors << Shapes::ShapeRef.new(shape: ThrottledException)
381
+ o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
382
+ o.errors << Shapes::ShapeRef.new(shape: AuthorizationErrorException)
383
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
384
+ end)
385
+
386
+ api.add_operation(:confirm_subscription, Seahorse::Model::Operation.new.tap do |o|
387
+ o.name = "ConfirmSubscription"
388
+ o.http_method = "POST"
389
+ o.http_request_uri = "/"
390
+ o.input = Shapes::ShapeRef.new(shape: ConfirmSubscriptionInput)
391
+ o.output = Shapes::ShapeRef.new(shape: ConfirmSubscriptionResponse)
392
+ o.errors << Shapes::ShapeRef.new(shape: SubscriptionLimitExceededException)
393
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
394
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
395
+ o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
396
+ o.errors << Shapes::ShapeRef.new(shape: AuthorizationErrorException)
397
+ end)
398
+
399
+ api.add_operation(:create_platform_application, Seahorse::Model::Operation.new.tap do |o|
400
+ o.name = "CreatePlatformApplication"
401
+ o.http_method = "POST"
402
+ o.http_request_uri = "/"
403
+ o.input = Shapes::ShapeRef.new(shape: CreatePlatformApplicationInput)
404
+ o.output = Shapes::ShapeRef.new(shape: CreatePlatformApplicationResponse)
405
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
406
+ o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
407
+ o.errors << Shapes::ShapeRef.new(shape: AuthorizationErrorException)
408
+ end)
409
+
410
+ api.add_operation(:create_platform_endpoint, Seahorse::Model::Operation.new.tap do |o|
411
+ o.name = "CreatePlatformEndpoint"
412
+ o.http_method = "POST"
413
+ o.http_request_uri = "/"
414
+ o.input = Shapes::ShapeRef.new(shape: CreatePlatformEndpointInput)
415
+ o.output = Shapes::ShapeRef.new(shape: CreateEndpointResponse)
416
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
417
+ o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
418
+ o.errors << Shapes::ShapeRef.new(shape: AuthorizationErrorException)
419
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
420
+ end)
421
+
422
+ api.add_operation(:create_topic, Seahorse::Model::Operation.new.tap do |o|
423
+ o.name = "CreateTopic"
424
+ o.http_method = "POST"
425
+ o.http_request_uri = "/"
426
+ o.input = Shapes::ShapeRef.new(shape: CreateTopicInput)
427
+ o.output = Shapes::ShapeRef.new(shape: CreateTopicResponse)
428
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
429
+ o.errors << Shapes::ShapeRef.new(shape: TopicLimitExceededException)
430
+ o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
431
+ o.errors << Shapes::ShapeRef.new(shape: AuthorizationErrorException)
432
+ end)
433
+
434
+ api.add_operation(:delete_endpoint, Seahorse::Model::Operation.new.tap do |o|
435
+ o.name = "DeleteEndpoint"
436
+ o.http_method = "POST"
437
+ o.http_request_uri = "/"
438
+ o.input = Shapes::ShapeRef.new(shape: DeleteEndpointInput)
439
+ o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
440
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
441
+ o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
442
+ o.errors << Shapes::ShapeRef.new(shape: AuthorizationErrorException)
443
+ end)
444
+
445
+ api.add_operation(:delete_platform_application, Seahorse::Model::Operation.new.tap do |o|
446
+ o.name = "DeletePlatformApplication"
447
+ o.http_method = "POST"
448
+ o.http_request_uri = "/"
449
+ o.input = Shapes::ShapeRef.new(shape: DeletePlatformApplicationInput)
450
+ o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
451
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
452
+ o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
453
+ o.errors << Shapes::ShapeRef.new(shape: AuthorizationErrorException)
454
+ end)
455
+
456
+ api.add_operation(:delete_topic, Seahorse::Model::Operation.new.tap do |o|
457
+ o.name = "DeleteTopic"
458
+ o.http_method = "POST"
459
+ o.http_request_uri = "/"
460
+ o.input = Shapes::ShapeRef.new(shape: DeleteTopicInput)
461
+ o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
462
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
463
+ o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
464
+ o.errors << Shapes::ShapeRef.new(shape: AuthorizationErrorException)
465
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
466
+ end)
467
+
468
+ api.add_operation(:get_endpoint_attributes, Seahorse::Model::Operation.new.tap do |o|
469
+ o.name = "GetEndpointAttributes"
470
+ o.http_method = "POST"
471
+ o.http_request_uri = "/"
472
+ o.input = Shapes::ShapeRef.new(shape: GetEndpointAttributesInput)
473
+ o.output = Shapes::ShapeRef.new(shape: GetEndpointAttributesResponse)
474
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
475
+ o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
476
+ o.errors << Shapes::ShapeRef.new(shape: AuthorizationErrorException)
477
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
478
+ end)
479
+
480
+ api.add_operation(:get_platform_application_attributes, Seahorse::Model::Operation.new.tap do |o|
481
+ o.name = "GetPlatformApplicationAttributes"
482
+ o.http_method = "POST"
483
+ o.http_request_uri = "/"
484
+ o.input = Shapes::ShapeRef.new(shape: GetPlatformApplicationAttributesInput)
485
+ o.output = Shapes::ShapeRef.new(shape: GetPlatformApplicationAttributesResponse)
486
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
487
+ o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
488
+ o.errors << Shapes::ShapeRef.new(shape: AuthorizationErrorException)
489
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
490
+ end)
491
+
492
+ api.add_operation(:get_sms_attributes, Seahorse::Model::Operation.new.tap do |o|
493
+ o.name = "GetSMSAttributes"
494
+ o.http_method = "POST"
495
+ o.http_request_uri = "/"
496
+ o.input = Shapes::ShapeRef.new(shape: GetSMSAttributesInput)
497
+ o.output = Shapes::ShapeRef.new(shape: GetSMSAttributesResponse)
498
+ o.errors << Shapes::ShapeRef.new(shape: ThrottledException)
499
+ o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
500
+ o.errors << Shapes::ShapeRef.new(shape: AuthorizationErrorException)
501
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
502
+ end)
503
+
504
+ api.add_operation(:get_subscription_attributes, Seahorse::Model::Operation.new.tap do |o|
505
+ o.name = "GetSubscriptionAttributes"
506
+ o.http_method = "POST"
507
+ o.http_request_uri = "/"
508
+ o.input = Shapes::ShapeRef.new(shape: GetSubscriptionAttributesInput)
509
+ o.output = Shapes::ShapeRef.new(shape: GetSubscriptionAttributesResponse)
510
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
511
+ o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
512
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
513
+ o.errors << Shapes::ShapeRef.new(shape: AuthorizationErrorException)
514
+ end)
515
+
516
+ api.add_operation(:get_topic_attributes, Seahorse::Model::Operation.new.tap do |o|
517
+ o.name = "GetTopicAttributes"
518
+ o.http_method = "POST"
519
+ o.http_request_uri = "/"
520
+ o.input = Shapes::ShapeRef.new(shape: GetTopicAttributesInput)
521
+ o.output = Shapes::ShapeRef.new(shape: GetTopicAttributesResponse)
522
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
523
+ o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
524
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
525
+ o.errors << Shapes::ShapeRef.new(shape: AuthorizationErrorException)
526
+ end)
527
+
528
+ api.add_operation(:list_endpoints_by_platform_application, Seahorse::Model::Operation.new.tap do |o|
529
+ o.name = "ListEndpointsByPlatformApplication"
530
+ o.http_method = "POST"
531
+ o.http_request_uri = "/"
532
+ o.input = Shapes::ShapeRef.new(shape: ListEndpointsByPlatformApplicationInput)
533
+ o.output = Shapes::ShapeRef.new(shape: ListEndpointsByPlatformApplicationResponse)
534
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
535
+ o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
536
+ o.errors << Shapes::ShapeRef.new(shape: AuthorizationErrorException)
537
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
538
+ o[:pager] = Aws::Pager.new(
539
+ tokens: {
540
+ "next_token" => "next_token"
541
+ }
542
+ )
543
+ end)
544
+
545
+ api.add_operation(:list_phone_numbers_opted_out, Seahorse::Model::Operation.new.tap do |o|
546
+ o.name = "ListPhoneNumbersOptedOut"
547
+ o.http_method = "POST"
548
+ o.http_request_uri = "/"
549
+ o.input = Shapes::ShapeRef.new(shape: ListPhoneNumbersOptedOutInput)
550
+ o.output = Shapes::ShapeRef.new(shape: ListPhoneNumbersOptedOutResponse)
551
+ o.errors << Shapes::ShapeRef.new(shape: ThrottledException)
552
+ o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
553
+ o.errors << Shapes::ShapeRef.new(shape: AuthorizationErrorException)
554
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
555
+ end)
556
+
557
+ api.add_operation(:list_platform_applications, Seahorse::Model::Operation.new.tap do |o|
558
+ o.name = "ListPlatformApplications"
559
+ o.http_method = "POST"
560
+ o.http_request_uri = "/"
561
+ o.input = Shapes::ShapeRef.new(shape: ListPlatformApplicationsInput)
562
+ o.output = Shapes::ShapeRef.new(shape: ListPlatformApplicationsResponse)
563
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
564
+ o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
565
+ o.errors << Shapes::ShapeRef.new(shape: AuthorizationErrorException)
566
+ o[:pager] = Aws::Pager.new(
567
+ tokens: {
568
+ "next_token" => "next_token"
569
+ }
570
+ )
571
+ end)
572
+
573
+ api.add_operation(:list_subscriptions, Seahorse::Model::Operation.new.tap do |o|
574
+ o.name = "ListSubscriptions"
575
+ o.http_method = "POST"
576
+ o.http_request_uri = "/"
577
+ o.input = Shapes::ShapeRef.new(shape: ListSubscriptionsInput)
578
+ o.output = Shapes::ShapeRef.new(shape: ListSubscriptionsResponse)
579
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
580
+ o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
581
+ o.errors << Shapes::ShapeRef.new(shape: AuthorizationErrorException)
582
+ o[:pager] = Aws::Pager.new(
583
+ tokens: {
584
+ "next_token" => "next_token"
585
+ }
586
+ )
587
+ end)
588
+
589
+ api.add_operation(:list_subscriptions_by_topic, Seahorse::Model::Operation.new.tap do |o|
590
+ o.name = "ListSubscriptionsByTopic"
591
+ o.http_method = "POST"
592
+ o.http_request_uri = "/"
593
+ o.input = Shapes::ShapeRef.new(shape: ListSubscriptionsByTopicInput)
594
+ o.output = Shapes::ShapeRef.new(shape: ListSubscriptionsByTopicResponse)
595
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
596
+ o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
597
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
598
+ o.errors << Shapes::ShapeRef.new(shape: AuthorizationErrorException)
599
+ o[:pager] = Aws::Pager.new(
600
+ tokens: {
601
+ "next_token" => "next_token"
602
+ }
603
+ )
604
+ end)
605
+
606
+ api.add_operation(:list_topics, Seahorse::Model::Operation.new.tap do |o|
607
+ o.name = "ListTopics"
608
+ o.http_method = "POST"
609
+ o.http_request_uri = "/"
610
+ o.input = Shapes::ShapeRef.new(shape: ListTopicsInput)
611
+ o.output = Shapes::ShapeRef.new(shape: ListTopicsResponse)
612
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
613
+ o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
614
+ o.errors << Shapes::ShapeRef.new(shape: AuthorizationErrorException)
615
+ o[:pager] = Aws::Pager.new(
616
+ tokens: {
617
+ "next_token" => "next_token"
618
+ }
619
+ )
620
+ end)
621
+
622
+ api.add_operation(:opt_in_phone_number, Seahorse::Model::Operation.new.tap do |o|
623
+ o.name = "OptInPhoneNumber"
624
+ o.http_method = "POST"
625
+ o.http_request_uri = "/"
626
+ o.input = Shapes::ShapeRef.new(shape: OptInPhoneNumberInput)
627
+ o.output = Shapes::ShapeRef.new(shape: OptInPhoneNumberResponse)
628
+ o.errors << Shapes::ShapeRef.new(shape: ThrottledException)
629
+ o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
630
+ o.errors << Shapes::ShapeRef.new(shape: AuthorizationErrorException)
631
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
632
+ end)
633
+
634
+ api.add_operation(:publish, Seahorse::Model::Operation.new.tap do |o|
635
+ o.name = "Publish"
636
+ o.http_method = "POST"
637
+ o.http_request_uri = "/"
638
+ o.input = Shapes::ShapeRef.new(shape: PublishInput)
639
+ o.output = Shapes::ShapeRef.new(shape: PublishResponse)
640
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
641
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
642
+ o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
643
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
644
+ o.errors << Shapes::ShapeRef.new(shape: EndpointDisabledException)
645
+ o.errors << Shapes::ShapeRef.new(shape: PlatformApplicationDisabledException)
646
+ o.errors << Shapes::ShapeRef.new(shape: AuthorizationErrorException)
647
+ end)
648
+
649
+ api.add_operation(:remove_permission, Seahorse::Model::Operation.new.tap do |o|
650
+ o.name = "RemovePermission"
651
+ o.http_method = "POST"
652
+ o.http_request_uri = "/"
653
+ o.input = Shapes::ShapeRef.new(shape: RemovePermissionInput)
654
+ o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
655
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
656
+ o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
657
+ o.errors << Shapes::ShapeRef.new(shape: AuthorizationErrorException)
658
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
659
+ end)
660
+
661
+ api.add_operation(:set_endpoint_attributes, Seahorse::Model::Operation.new.tap do |o|
662
+ o.name = "SetEndpointAttributes"
663
+ o.http_method = "POST"
664
+ o.http_request_uri = "/"
665
+ o.input = Shapes::ShapeRef.new(shape: SetEndpointAttributesInput)
666
+ o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
667
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
668
+ o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
669
+ o.errors << Shapes::ShapeRef.new(shape: AuthorizationErrorException)
670
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
671
+ end)
672
+
673
+ api.add_operation(:set_platform_application_attributes, Seahorse::Model::Operation.new.tap do |o|
674
+ o.name = "SetPlatformApplicationAttributes"
675
+ o.http_method = "POST"
676
+ o.http_request_uri = "/"
677
+ o.input = Shapes::ShapeRef.new(shape: SetPlatformApplicationAttributesInput)
678
+ o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
679
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
680
+ o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
681
+ o.errors << Shapes::ShapeRef.new(shape: AuthorizationErrorException)
682
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
683
+ end)
684
+
685
+ api.add_operation(:set_sms_attributes, Seahorse::Model::Operation.new.tap do |o|
686
+ o.name = "SetSMSAttributes"
687
+ o.http_method = "POST"
688
+ o.http_request_uri = "/"
689
+ o.input = Shapes::ShapeRef.new(shape: SetSMSAttributesInput)
690
+ o.output = Shapes::ShapeRef.new(shape: SetSMSAttributesResponse)
691
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
692
+ o.errors << Shapes::ShapeRef.new(shape: ThrottledException)
693
+ o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
694
+ o.errors << Shapes::ShapeRef.new(shape: AuthorizationErrorException)
695
+ end)
696
+
697
+ api.add_operation(:set_subscription_attributes, Seahorse::Model::Operation.new.tap do |o|
698
+ o.name = "SetSubscriptionAttributes"
699
+ o.http_method = "POST"
700
+ o.http_request_uri = "/"
701
+ o.input = Shapes::ShapeRef.new(shape: SetSubscriptionAttributesInput)
702
+ o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
703
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
704
+ o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
705
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
706
+ o.errors << Shapes::ShapeRef.new(shape: AuthorizationErrorException)
707
+ end)
708
+
709
+ api.add_operation(:set_topic_attributes, Seahorse::Model::Operation.new.tap do |o|
710
+ o.name = "SetTopicAttributes"
711
+ o.http_method = "POST"
712
+ o.http_request_uri = "/"
713
+ o.input = Shapes::ShapeRef.new(shape: SetTopicAttributesInput)
714
+ o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
715
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
716
+ o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
717
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
718
+ o.errors << Shapes::ShapeRef.new(shape: AuthorizationErrorException)
719
+ end)
720
+
721
+ api.add_operation(:subscribe, Seahorse::Model::Operation.new.tap do |o|
722
+ o.name = "Subscribe"
723
+ o.http_method = "POST"
724
+ o.http_request_uri = "/"
725
+ o.input = Shapes::ShapeRef.new(shape: SubscribeInput)
726
+ o.output = Shapes::ShapeRef.new(shape: SubscribeResponse)
727
+ o.errors << Shapes::ShapeRef.new(shape: SubscriptionLimitExceededException)
728
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
729
+ o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
730
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
731
+ o.errors << Shapes::ShapeRef.new(shape: AuthorizationErrorException)
732
+ end)
733
+
734
+ api.add_operation(:unsubscribe, Seahorse::Model::Operation.new.tap do |o|
735
+ o.name = "Unsubscribe"
736
+ o.http_method = "POST"
737
+ o.http_request_uri = "/"
738
+ o.input = Shapes::ShapeRef.new(shape: UnsubscribeInput)
739
+ o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
740
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
741
+ o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
742
+ o.errors << Shapes::ShapeRef.new(shape: AuthorizationErrorException)
743
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
744
+ end)
745
+ end
746
+
747
+ end
748
+ end
749
+ end