aws-sdk-sqs 1.0.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/aws-sdk-sqs.rb +47 -0
- data/lib/aws-sdk-sqs/client.rb +1604 -0
- data/lib/aws-sdk-sqs/client_api.rb +480 -0
- data/lib/aws-sdk-sqs/customizations.rb +2 -0
- data/lib/aws-sdk-sqs/errors.rb +23 -0
- data/lib/aws-sdk-sqs/plugins/md5s.rb +166 -0
- data/lib/aws-sdk-sqs/plugins/queue_urls.rb +43 -0
- data/lib/aws-sdk-sqs/queue_poller.rb +521 -0
- data/lib/aws-sdk-sqs/resource.rb +25 -0
- data/lib/aws-sdk-sqs/types.rb +1642 -0
- metadata +83 -0
@@ -0,0 +1,480 @@
|
|
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 SQS
|
10
|
+
# @api private
|
11
|
+
module ClientApi
|
12
|
+
|
13
|
+
include Seahorse::Model
|
14
|
+
|
15
|
+
AWSAccountIdList = Shapes::ListShape.new(name: 'AWSAccountIdList', flattened: true)
|
16
|
+
ActionNameList = Shapes::ListShape.new(name: 'ActionNameList', flattened: true)
|
17
|
+
AddPermissionRequest = Shapes::StructureShape.new(name: 'AddPermissionRequest')
|
18
|
+
AttributeNameList = Shapes::ListShape.new(name: 'AttributeNameList', flattened: true)
|
19
|
+
BatchEntryIdsNotDistinct = Shapes::StructureShape.new(name: 'BatchEntryIdsNotDistinct')
|
20
|
+
BatchRequestTooLong = Shapes::StructureShape.new(name: 'BatchRequestTooLong')
|
21
|
+
BatchResultErrorEntry = Shapes::StructureShape.new(name: 'BatchResultErrorEntry')
|
22
|
+
BatchResultErrorEntryList = Shapes::ListShape.new(name: 'BatchResultErrorEntryList', flattened: true)
|
23
|
+
Binary = Shapes::BlobShape.new(name: 'Binary')
|
24
|
+
BinaryList = Shapes::ListShape.new(name: 'BinaryList', flattened: true)
|
25
|
+
Boolean = Shapes::BooleanShape.new(name: 'Boolean')
|
26
|
+
ChangeMessageVisibilityBatchRequest = Shapes::StructureShape.new(name: 'ChangeMessageVisibilityBatchRequest')
|
27
|
+
ChangeMessageVisibilityBatchRequestEntry = Shapes::StructureShape.new(name: 'ChangeMessageVisibilityBatchRequestEntry')
|
28
|
+
ChangeMessageVisibilityBatchRequestEntryList = Shapes::ListShape.new(name: 'ChangeMessageVisibilityBatchRequestEntryList', flattened: true)
|
29
|
+
ChangeMessageVisibilityBatchResult = Shapes::StructureShape.new(name: 'ChangeMessageVisibilityBatchResult')
|
30
|
+
ChangeMessageVisibilityBatchResultEntry = Shapes::StructureShape.new(name: 'ChangeMessageVisibilityBatchResultEntry')
|
31
|
+
ChangeMessageVisibilityBatchResultEntryList = Shapes::ListShape.new(name: 'ChangeMessageVisibilityBatchResultEntryList', flattened: true)
|
32
|
+
ChangeMessageVisibilityRequest = Shapes::StructureShape.new(name: 'ChangeMessageVisibilityRequest')
|
33
|
+
CreateQueueRequest = Shapes::StructureShape.new(name: 'CreateQueueRequest')
|
34
|
+
CreateQueueResult = Shapes::StructureShape.new(name: 'CreateQueueResult')
|
35
|
+
DeleteMessageBatchRequest = Shapes::StructureShape.new(name: 'DeleteMessageBatchRequest')
|
36
|
+
DeleteMessageBatchRequestEntry = Shapes::StructureShape.new(name: 'DeleteMessageBatchRequestEntry')
|
37
|
+
DeleteMessageBatchRequestEntryList = Shapes::ListShape.new(name: 'DeleteMessageBatchRequestEntryList', flattened: true)
|
38
|
+
DeleteMessageBatchResult = Shapes::StructureShape.new(name: 'DeleteMessageBatchResult')
|
39
|
+
DeleteMessageBatchResultEntry = Shapes::StructureShape.new(name: 'DeleteMessageBatchResultEntry')
|
40
|
+
DeleteMessageBatchResultEntryList = Shapes::ListShape.new(name: 'DeleteMessageBatchResultEntryList', flattened: true)
|
41
|
+
DeleteMessageRequest = Shapes::StructureShape.new(name: 'DeleteMessageRequest')
|
42
|
+
DeleteQueueRequest = Shapes::StructureShape.new(name: 'DeleteQueueRequest')
|
43
|
+
EmptyBatchRequest = Shapes::StructureShape.new(name: 'EmptyBatchRequest')
|
44
|
+
GetQueueAttributesRequest = Shapes::StructureShape.new(name: 'GetQueueAttributesRequest')
|
45
|
+
GetQueueAttributesResult = Shapes::StructureShape.new(name: 'GetQueueAttributesResult')
|
46
|
+
GetQueueUrlRequest = Shapes::StructureShape.new(name: 'GetQueueUrlRequest')
|
47
|
+
GetQueueUrlResult = Shapes::StructureShape.new(name: 'GetQueueUrlResult')
|
48
|
+
Integer = Shapes::IntegerShape.new(name: 'Integer')
|
49
|
+
InvalidAttributeName = Shapes::StructureShape.new(name: 'InvalidAttributeName')
|
50
|
+
InvalidBatchEntryId = Shapes::StructureShape.new(name: 'InvalidBatchEntryId')
|
51
|
+
InvalidIdFormat = Shapes::StructureShape.new(name: 'InvalidIdFormat')
|
52
|
+
InvalidMessageContents = Shapes::StructureShape.new(name: 'InvalidMessageContents')
|
53
|
+
ListDeadLetterSourceQueuesRequest = Shapes::StructureShape.new(name: 'ListDeadLetterSourceQueuesRequest')
|
54
|
+
ListDeadLetterSourceQueuesResult = Shapes::StructureShape.new(name: 'ListDeadLetterSourceQueuesResult')
|
55
|
+
ListQueuesRequest = Shapes::StructureShape.new(name: 'ListQueuesRequest')
|
56
|
+
ListQueuesResult = Shapes::StructureShape.new(name: 'ListQueuesResult')
|
57
|
+
Message = Shapes::StructureShape.new(name: 'Message')
|
58
|
+
MessageAttributeName = Shapes::StringShape.new(name: 'MessageAttributeName')
|
59
|
+
MessageAttributeNameList = Shapes::ListShape.new(name: 'MessageAttributeNameList', flattened: true)
|
60
|
+
MessageAttributeValue = Shapes::StructureShape.new(name: 'MessageAttributeValue')
|
61
|
+
MessageBodyAttributeMap = Shapes::MapShape.new(name: 'MessageBodyAttributeMap', flattened: true)
|
62
|
+
MessageList = Shapes::ListShape.new(name: 'MessageList', flattened: true)
|
63
|
+
MessageNotInflight = Shapes::StructureShape.new(name: 'MessageNotInflight')
|
64
|
+
MessageSystemAttributeMap = Shapes::MapShape.new(name: 'MessageSystemAttributeMap', flattened: true)
|
65
|
+
MessageSystemAttributeName = Shapes::StringShape.new(name: 'MessageSystemAttributeName')
|
66
|
+
OverLimit = Shapes::StructureShape.new(name: 'OverLimit')
|
67
|
+
PurgeQueueInProgress = Shapes::StructureShape.new(name: 'PurgeQueueInProgress')
|
68
|
+
PurgeQueueRequest = Shapes::StructureShape.new(name: 'PurgeQueueRequest')
|
69
|
+
QueueAttributeMap = Shapes::MapShape.new(name: 'QueueAttributeMap', flattened: true)
|
70
|
+
QueueAttributeName = Shapes::StringShape.new(name: 'QueueAttributeName')
|
71
|
+
QueueDeletedRecently = Shapes::StructureShape.new(name: 'QueueDeletedRecently')
|
72
|
+
QueueDoesNotExist = Shapes::StructureShape.new(name: 'QueueDoesNotExist')
|
73
|
+
QueueNameExists = Shapes::StructureShape.new(name: 'QueueNameExists')
|
74
|
+
QueueUrlList = Shapes::ListShape.new(name: 'QueueUrlList', flattened: true)
|
75
|
+
ReceiptHandleIsInvalid = Shapes::StructureShape.new(name: 'ReceiptHandleIsInvalid')
|
76
|
+
ReceiveMessageRequest = Shapes::StructureShape.new(name: 'ReceiveMessageRequest')
|
77
|
+
ReceiveMessageResult = Shapes::StructureShape.new(name: 'ReceiveMessageResult')
|
78
|
+
RemovePermissionRequest = Shapes::StructureShape.new(name: 'RemovePermissionRequest')
|
79
|
+
SendMessageBatchRequest = Shapes::StructureShape.new(name: 'SendMessageBatchRequest')
|
80
|
+
SendMessageBatchRequestEntry = Shapes::StructureShape.new(name: 'SendMessageBatchRequestEntry')
|
81
|
+
SendMessageBatchRequestEntryList = Shapes::ListShape.new(name: 'SendMessageBatchRequestEntryList', flattened: true)
|
82
|
+
SendMessageBatchResult = Shapes::StructureShape.new(name: 'SendMessageBatchResult')
|
83
|
+
SendMessageBatchResultEntry = Shapes::StructureShape.new(name: 'SendMessageBatchResultEntry')
|
84
|
+
SendMessageBatchResultEntryList = Shapes::ListShape.new(name: 'SendMessageBatchResultEntryList', flattened: true)
|
85
|
+
SendMessageRequest = Shapes::StructureShape.new(name: 'SendMessageRequest')
|
86
|
+
SendMessageResult = Shapes::StructureShape.new(name: 'SendMessageResult')
|
87
|
+
SetQueueAttributesRequest = Shapes::StructureShape.new(name: 'SetQueueAttributesRequest')
|
88
|
+
String = Shapes::StringShape.new(name: 'String')
|
89
|
+
StringList = Shapes::ListShape.new(name: 'StringList', flattened: true)
|
90
|
+
TooManyEntriesInBatchRequest = Shapes::StructureShape.new(name: 'TooManyEntriesInBatchRequest')
|
91
|
+
UnsupportedOperation = Shapes::StructureShape.new(name: 'UnsupportedOperation')
|
92
|
+
|
93
|
+
AWSAccountIdList.member = Shapes::ShapeRef.new(shape: String, location_name: "AWSAccountId")
|
94
|
+
|
95
|
+
ActionNameList.member = Shapes::ShapeRef.new(shape: String, location_name: "ActionName")
|
96
|
+
|
97
|
+
AddPermissionRequest.add_member(:queue_url, Shapes::ShapeRef.new(shape: String, required: true, location_name: "QueueUrl"))
|
98
|
+
AddPermissionRequest.add_member(:label, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Label"))
|
99
|
+
AddPermissionRequest.add_member(:aws_account_ids, Shapes::ShapeRef.new(shape: AWSAccountIdList, required: true, location_name: "AWSAccountIds"))
|
100
|
+
AddPermissionRequest.add_member(:actions, Shapes::ShapeRef.new(shape: ActionNameList, required: true, location_name: "Actions"))
|
101
|
+
AddPermissionRequest.struct_class = Types::AddPermissionRequest
|
102
|
+
|
103
|
+
AttributeNameList.member = Shapes::ShapeRef.new(shape: QueueAttributeName, location_name: "AttributeName")
|
104
|
+
|
105
|
+
BatchResultErrorEntry.add_member(:id, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Id"))
|
106
|
+
BatchResultErrorEntry.add_member(:sender_fault, Shapes::ShapeRef.new(shape: Boolean, required: true, location_name: "SenderFault"))
|
107
|
+
BatchResultErrorEntry.add_member(:code, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Code"))
|
108
|
+
BatchResultErrorEntry.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
|
109
|
+
BatchResultErrorEntry.struct_class = Types::BatchResultErrorEntry
|
110
|
+
|
111
|
+
BatchResultErrorEntryList.member = Shapes::ShapeRef.new(shape: BatchResultErrorEntry, location_name: "BatchResultErrorEntry")
|
112
|
+
|
113
|
+
BinaryList.member = Shapes::ShapeRef.new(shape: Binary, location_name: "BinaryListValue")
|
114
|
+
|
115
|
+
ChangeMessageVisibilityBatchRequest.add_member(:queue_url, Shapes::ShapeRef.new(shape: String, required: true, location_name: "QueueUrl"))
|
116
|
+
ChangeMessageVisibilityBatchRequest.add_member(:entries, Shapes::ShapeRef.new(shape: ChangeMessageVisibilityBatchRequestEntryList, required: true, location_name: "Entries"))
|
117
|
+
ChangeMessageVisibilityBatchRequest.struct_class = Types::ChangeMessageVisibilityBatchRequest
|
118
|
+
|
119
|
+
ChangeMessageVisibilityBatchRequestEntry.add_member(:id, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Id"))
|
120
|
+
ChangeMessageVisibilityBatchRequestEntry.add_member(:receipt_handle, Shapes::ShapeRef.new(shape: String, required: true, location_name: "ReceiptHandle"))
|
121
|
+
ChangeMessageVisibilityBatchRequestEntry.add_member(:visibility_timeout, Shapes::ShapeRef.new(shape: Integer, location_name: "VisibilityTimeout"))
|
122
|
+
ChangeMessageVisibilityBatchRequestEntry.struct_class = Types::ChangeMessageVisibilityBatchRequestEntry
|
123
|
+
|
124
|
+
ChangeMessageVisibilityBatchRequestEntryList.member = Shapes::ShapeRef.new(shape: ChangeMessageVisibilityBatchRequestEntry, location_name: "ChangeMessageVisibilityBatchRequestEntry")
|
125
|
+
|
126
|
+
ChangeMessageVisibilityBatchResult.add_member(:successful, Shapes::ShapeRef.new(shape: ChangeMessageVisibilityBatchResultEntryList, required: true, location_name: "Successful"))
|
127
|
+
ChangeMessageVisibilityBatchResult.add_member(:failed, Shapes::ShapeRef.new(shape: BatchResultErrorEntryList, required: true, location_name: "Failed"))
|
128
|
+
ChangeMessageVisibilityBatchResult.struct_class = Types::ChangeMessageVisibilityBatchResult
|
129
|
+
|
130
|
+
ChangeMessageVisibilityBatchResultEntry.add_member(:id, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Id"))
|
131
|
+
ChangeMessageVisibilityBatchResultEntry.struct_class = Types::ChangeMessageVisibilityBatchResultEntry
|
132
|
+
|
133
|
+
ChangeMessageVisibilityBatchResultEntryList.member = Shapes::ShapeRef.new(shape: ChangeMessageVisibilityBatchResultEntry, location_name: "ChangeMessageVisibilityBatchResultEntry")
|
134
|
+
|
135
|
+
ChangeMessageVisibilityRequest.add_member(:queue_url, Shapes::ShapeRef.new(shape: String, required: true, location_name: "QueueUrl"))
|
136
|
+
ChangeMessageVisibilityRequest.add_member(:receipt_handle, Shapes::ShapeRef.new(shape: String, required: true, location_name: "ReceiptHandle"))
|
137
|
+
ChangeMessageVisibilityRequest.add_member(:visibility_timeout, Shapes::ShapeRef.new(shape: Integer, required: true, location_name: "VisibilityTimeout"))
|
138
|
+
ChangeMessageVisibilityRequest.struct_class = Types::ChangeMessageVisibilityRequest
|
139
|
+
|
140
|
+
CreateQueueRequest.add_member(:queue_name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "QueueName"))
|
141
|
+
CreateQueueRequest.add_member(:attributes, Shapes::ShapeRef.new(shape: QueueAttributeMap, location_name: "Attribute"))
|
142
|
+
CreateQueueRequest.struct_class = Types::CreateQueueRequest
|
143
|
+
|
144
|
+
CreateQueueResult.add_member(:queue_url, Shapes::ShapeRef.new(shape: String, location_name: "QueueUrl"))
|
145
|
+
CreateQueueResult.struct_class = Types::CreateQueueResult
|
146
|
+
|
147
|
+
DeleteMessageBatchRequest.add_member(:queue_url, Shapes::ShapeRef.new(shape: String, required: true, location_name: "QueueUrl"))
|
148
|
+
DeleteMessageBatchRequest.add_member(:entries, Shapes::ShapeRef.new(shape: DeleteMessageBatchRequestEntryList, required: true, location_name: "Entries"))
|
149
|
+
DeleteMessageBatchRequest.struct_class = Types::DeleteMessageBatchRequest
|
150
|
+
|
151
|
+
DeleteMessageBatchRequestEntry.add_member(:id, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Id"))
|
152
|
+
DeleteMessageBatchRequestEntry.add_member(:receipt_handle, Shapes::ShapeRef.new(shape: String, required: true, location_name: "ReceiptHandle"))
|
153
|
+
DeleteMessageBatchRequestEntry.struct_class = Types::DeleteMessageBatchRequestEntry
|
154
|
+
|
155
|
+
DeleteMessageBatchRequestEntryList.member = Shapes::ShapeRef.new(shape: DeleteMessageBatchRequestEntry, location_name: "DeleteMessageBatchRequestEntry")
|
156
|
+
|
157
|
+
DeleteMessageBatchResult.add_member(:successful, Shapes::ShapeRef.new(shape: DeleteMessageBatchResultEntryList, required: true, location_name: "Successful"))
|
158
|
+
DeleteMessageBatchResult.add_member(:failed, Shapes::ShapeRef.new(shape: BatchResultErrorEntryList, required: true, location_name: "Failed"))
|
159
|
+
DeleteMessageBatchResult.struct_class = Types::DeleteMessageBatchResult
|
160
|
+
|
161
|
+
DeleteMessageBatchResultEntry.add_member(:id, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Id"))
|
162
|
+
DeleteMessageBatchResultEntry.struct_class = Types::DeleteMessageBatchResultEntry
|
163
|
+
|
164
|
+
DeleteMessageBatchResultEntryList.member = Shapes::ShapeRef.new(shape: DeleteMessageBatchResultEntry, location_name: "DeleteMessageBatchResultEntry")
|
165
|
+
|
166
|
+
DeleteMessageRequest.add_member(:queue_url, Shapes::ShapeRef.new(shape: String, required: true, location_name: "QueueUrl"))
|
167
|
+
DeleteMessageRequest.add_member(:receipt_handle, Shapes::ShapeRef.new(shape: String, required: true, location_name: "ReceiptHandle"))
|
168
|
+
DeleteMessageRequest.struct_class = Types::DeleteMessageRequest
|
169
|
+
|
170
|
+
DeleteQueueRequest.add_member(:queue_url, Shapes::ShapeRef.new(shape: String, required: true, location_name: "QueueUrl"))
|
171
|
+
DeleteQueueRequest.struct_class = Types::DeleteQueueRequest
|
172
|
+
|
173
|
+
GetQueueAttributesRequest.add_member(:queue_url, Shapes::ShapeRef.new(shape: String, required: true, location_name: "QueueUrl"))
|
174
|
+
GetQueueAttributesRequest.add_member(:attribute_names, Shapes::ShapeRef.new(shape: AttributeNameList, location_name: "AttributeNames"))
|
175
|
+
GetQueueAttributesRequest.struct_class = Types::GetQueueAttributesRequest
|
176
|
+
|
177
|
+
GetQueueAttributesResult.add_member(:attributes, Shapes::ShapeRef.new(shape: QueueAttributeMap, location_name: "Attribute"))
|
178
|
+
GetQueueAttributesResult.struct_class = Types::GetQueueAttributesResult
|
179
|
+
|
180
|
+
GetQueueUrlRequest.add_member(:queue_name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "QueueName"))
|
181
|
+
GetQueueUrlRequest.add_member(:queue_owner_aws_account_id, Shapes::ShapeRef.new(shape: String, location_name: "QueueOwnerAWSAccountId"))
|
182
|
+
GetQueueUrlRequest.struct_class = Types::GetQueueUrlRequest
|
183
|
+
|
184
|
+
GetQueueUrlResult.add_member(:queue_url, Shapes::ShapeRef.new(shape: String, location_name: "QueueUrl"))
|
185
|
+
GetQueueUrlResult.struct_class = Types::GetQueueUrlResult
|
186
|
+
|
187
|
+
ListDeadLetterSourceQueuesRequest.add_member(:queue_url, Shapes::ShapeRef.new(shape: String, required: true, location_name: "QueueUrl"))
|
188
|
+
ListDeadLetterSourceQueuesRequest.struct_class = Types::ListDeadLetterSourceQueuesRequest
|
189
|
+
|
190
|
+
ListDeadLetterSourceQueuesResult.add_member(:queue_urls, Shapes::ShapeRef.new(shape: QueueUrlList, required: true, location_name: "queueUrls"))
|
191
|
+
ListDeadLetterSourceQueuesResult.struct_class = Types::ListDeadLetterSourceQueuesResult
|
192
|
+
|
193
|
+
ListQueuesRequest.add_member(:queue_name_prefix, Shapes::ShapeRef.new(shape: String, location_name: "QueueNamePrefix"))
|
194
|
+
ListQueuesRequest.struct_class = Types::ListQueuesRequest
|
195
|
+
|
196
|
+
ListQueuesResult.add_member(:queue_urls, Shapes::ShapeRef.new(shape: QueueUrlList, location_name: "QueueUrls"))
|
197
|
+
ListQueuesResult.struct_class = Types::ListQueuesResult
|
198
|
+
|
199
|
+
Message.add_member(:message_id, Shapes::ShapeRef.new(shape: String, location_name: "MessageId"))
|
200
|
+
Message.add_member(:receipt_handle, Shapes::ShapeRef.new(shape: String, location_name: "ReceiptHandle"))
|
201
|
+
Message.add_member(:md5_of_body, Shapes::ShapeRef.new(shape: String, location_name: "MD5OfBody"))
|
202
|
+
Message.add_member(:body, Shapes::ShapeRef.new(shape: String, location_name: "Body"))
|
203
|
+
Message.add_member(:attributes, Shapes::ShapeRef.new(shape: MessageSystemAttributeMap, location_name: "Attribute"))
|
204
|
+
Message.add_member(:md5_of_message_attributes, Shapes::ShapeRef.new(shape: String, location_name: "MD5OfMessageAttributes"))
|
205
|
+
Message.add_member(:message_attributes, Shapes::ShapeRef.new(shape: MessageBodyAttributeMap, location_name: "MessageAttribute"))
|
206
|
+
Message.struct_class = Types::Message
|
207
|
+
|
208
|
+
MessageAttributeNameList.member = Shapes::ShapeRef.new(shape: MessageAttributeName, location_name: "MessageAttributeName")
|
209
|
+
|
210
|
+
MessageAttributeValue.add_member(:string_value, Shapes::ShapeRef.new(shape: String, location_name: "StringValue"))
|
211
|
+
MessageAttributeValue.add_member(:binary_value, Shapes::ShapeRef.new(shape: Binary, location_name: "BinaryValue"))
|
212
|
+
MessageAttributeValue.add_member(:string_list_values, Shapes::ShapeRef.new(shape: StringList, location_name: "StringListValue"))
|
213
|
+
MessageAttributeValue.add_member(:binary_list_values, Shapes::ShapeRef.new(shape: BinaryList, location_name: "BinaryListValue"))
|
214
|
+
MessageAttributeValue.add_member(:data_type, Shapes::ShapeRef.new(shape: String, required: true, location_name: "DataType"))
|
215
|
+
MessageAttributeValue.struct_class = Types::MessageAttributeValue
|
216
|
+
|
217
|
+
MessageBodyAttributeMap.key = Shapes::ShapeRef.new(shape: String, location_name: "Name")
|
218
|
+
MessageBodyAttributeMap.value = Shapes::ShapeRef.new(shape: MessageAttributeValue, location_name: "Value")
|
219
|
+
|
220
|
+
MessageList.member = Shapes::ShapeRef.new(shape: Message, location_name: "Message")
|
221
|
+
|
222
|
+
MessageSystemAttributeMap.key = Shapes::ShapeRef.new(shape: MessageSystemAttributeName, location_name: "Name")
|
223
|
+
MessageSystemAttributeMap.value = Shapes::ShapeRef.new(shape: String, location_name: "Value")
|
224
|
+
|
225
|
+
PurgeQueueRequest.add_member(:queue_url, Shapes::ShapeRef.new(shape: String, required: true, location_name: "QueueUrl"))
|
226
|
+
PurgeQueueRequest.struct_class = Types::PurgeQueueRequest
|
227
|
+
|
228
|
+
QueueAttributeMap.key = Shapes::ShapeRef.new(shape: QueueAttributeName, location_name: "Name")
|
229
|
+
QueueAttributeMap.value = Shapes::ShapeRef.new(shape: String, location_name: "Value")
|
230
|
+
|
231
|
+
QueueUrlList.member = Shapes::ShapeRef.new(shape: String, location_name: "QueueUrl")
|
232
|
+
|
233
|
+
ReceiveMessageRequest.add_member(:queue_url, Shapes::ShapeRef.new(shape: String, required: true, location_name: "QueueUrl"))
|
234
|
+
ReceiveMessageRequest.add_member(:attribute_names, Shapes::ShapeRef.new(shape: AttributeNameList, location_name: "AttributeNames"))
|
235
|
+
ReceiveMessageRequest.add_member(:message_attribute_names, Shapes::ShapeRef.new(shape: MessageAttributeNameList, location_name: "MessageAttributeNames"))
|
236
|
+
ReceiveMessageRequest.add_member(:max_number_of_messages, Shapes::ShapeRef.new(shape: Integer, location_name: "MaxNumberOfMessages"))
|
237
|
+
ReceiveMessageRequest.add_member(:visibility_timeout, Shapes::ShapeRef.new(shape: Integer, location_name: "VisibilityTimeout"))
|
238
|
+
ReceiveMessageRequest.add_member(:wait_time_seconds, Shapes::ShapeRef.new(shape: Integer, location_name: "WaitTimeSeconds"))
|
239
|
+
ReceiveMessageRequest.add_member(:receive_request_attempt_id, Shapes::ShapeRef.new(shape: String, location_name: "ReceiveRequestAttemptId"))
|
240
|
+
ReceiveMessageRequest.struct_class = Types::ReceiveMessageRequest
|
241
|
+
|
242
|
+
ReceiveMessageResult.add_member(:messages, Shapes::ShapeRef.new(shape: MessageList, location_name: "Messages"))
|
243
|
+
ReceiveMessageResult.struct_class = Types::ReceiveMessageResult
|
244
|
+
|
245
|
+
RemovePermissionRequest.add_member(:queue_url, Shapes::ShapeRef.new(shape: String, required: true, location_name: "QueueUrl"))
|
246
|
+
RemovePermissionRequest.add_member(:label, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Label"))
|
247
|
+
RemovePermissionRequest.struct_class = Types::RemovePermissionRequest
|
248
|
+
|
249
|
+
SendMessageBatchRequest.add_member(:queue_url, Shapes::ShapeRef.new(shape: String, required: true, location_name: "QueueUrl"))
|
250
|
+
SendMessageBatchRequest.add_member(:entries, Shapes::ShapeRef.new(shape: SendMessageBatchRequestEntryList, required: true, location_name: "Entries"))
|
251
|
+
SendMessageBatchRequest.struct_class = Types::SendMessageBatchRequest
|
252
|
+
|
253
|
+
SendMessageBatchRequestEntry.add_member(:id, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Id"))
|
254
|
+
SendMessageBatchRequestEntry.add_member(:message_body, Shapes::ShapeRef.new(shape: String, required: true, location_name: "MessageBody"))
|
255
|
+
SendMessageBatchRequestEntry.add_member(:delay_seconds, Shapes::ShapeRef.new(shape: Integer, location_name: "DelaySeconds"))
|
256
|
+
SendMessageBatchRequestEntry.add_member(:message_attributes, Shapes::ShapeRef.new(shape: MessageBodyAttributeMap, location_name: "MessageAttribute"))
|
257
|
+
SendMessageBatchRequestEntry.add_member(:message_deduplication_id, Shapes::ShapeRef.new(shape: String, location_name: "MessageDeduplicationId"))
|
258
|
+
SendMessageBatchRequestEntry.add_member(:message_group_id, Shapes::ShapeRef.new(shape: String, location_name: "MessageGroupId"))
|
259
|
+
SendMessageBatchRequestEntry.struct_class = Types::SendMessageBatchRequestEntry
|
260
|
+
|
261
|
+
SendMessageBatchRequestEntryList.member = Shapes::ShapeRef.new(shape: SendMessageBatchRequestEntry, location_name: "SendMessageBatchRequestEntry")
|
262
|
+
|
263
|
+
SendMessageBatchResult.add_member(:successful, Shapes::ShapeRef.new(shape: SendMessageBatchResultEntryList, required: true, location_name: "Successful"))
|
264
|
+
SendMessageBatchResult.add_member(:failed, Shapes::ShapeRef.new(shape: BatchResultErrorEntryList, required: true, location_name: "Failed"))
|
265
|
+
SendMessageBatchResult.struct_class = Types::SendMessageBatchResult
|
266
|
+
|
267
|
+
SendMessageBatchResultEntry.add_member(:id, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Id"))
|
268
|
+
SendMessageBatchResultEntry.add_member(:message_id, Shapes::ShapeRef.new(shape: String, required: true, location_name: "MessageId"))
|
269
|
+
SendMessageBatchResultEntry.add_member(:md5_of_message_body, Shapes::ShapeRef.new(shape: String, required: true, location_name: "MD5OfMessageBody"))
|
270
|
+
SendMessageBatchResultEntry.add_member(:md5_of_message_attributes, Shapes::ShapeRef.new(shape: String, location_name: "MD5OfMessageAttributes"))
|
271
|
+
SendMessageBatchResultEntry.add_member(:sequence_number, Shapes::ShapeRef.new(shape: String, location_name: "SequenceNumber"))
|
272
|
+
SendMessageBatchResultEntry.struct_class = Types::SendMessageBatchResultEntry
|
273
|
+
|
274
|
+
SendMessageBatchResultEntryList.member = Shapes::ShapeRef.new(shape: SendMessageBatchResultEntry, location_name: "SendMessageBatchResultEntry")
|
275
|
+
|
276
|
+
SendMessageRequest.add_member(:queue_url, Shapes::ShapeRef.new(shape: String, required: true, location_name: "QueueUrl"))
|
277
|
+
SendMessageRequest.add_member(:message_body, Shapes::ShapeRef.new(shape: String, required: true, location_name: "MessageBody"))
|
278
|
+
SendMessageRequest.add_member(:delay_seconds, Shapes::ShapeRef.new(shape: Integer, location_name: "DelaySeconds"))
|
279
|
+
SendMessageRequest.add_member(:message_attributes, Shapes::ShapeRef.new(shape: MessageBodyAttributeMap, location_name: "MessageAttribute"))
|
280
|
+
SendMessageRequest.add_member(:message_deduplication_id, Shapes::ShapeRef.new(shape: String, location_name: "MessageDeduplicationId"))
|
281
|
+
SendMessageRequest.add_member(:message_group_id, Shapes::ShapeRef.new(shape: String, location_name: "MessageGroupId"))
|
282
|
+
SendMessageRequest.struct_class = Types::SendMessageRequest
|
283
|
+
|
284
|
+
SendMessageResult.add_member(:md5_of_message_body, Shapes::ShapeRef.new(shape: String, location_name: "MD5OfMessageBody"))
|
285
|
+
SendMessageResult.add_member(:md5_of_message_attributes, Shapes::ShapeRef.new(shape: String, location_name: "MD5OfMessageAttributes"))
|
286
|
+
SendMessageResult.add_member(:message_id, Shapes::ShapeRef.new(shape: String, location_name: "MessageId"))
|
287
|
+
SendMessageResult.add_member(:sequence_number, Shapes::ShapeRef.new(shape: String, location_name: "SequenceNumber"))
|
288
|
+
SendMessageResult.struct_class = Types::SendMessageResult
|
289
|
+
|
290
|
+
SetQueueAttributesRequest.add_member(:queue_url, Shapes::ShapeRef.new(shape: String, required: true, location_name: "QueueUrl"))
|
291
|
+
SetQueueAttributesRequest.add_member(:attributes, Shapes::ShapeRef.new(shape: QueueAttributeMap, required: true, location_name: "Attribute"))
|
292
|
+
SetQueueAttributesRequest.struct_class = Types::SetQueueAttributesRequest
|
293
|
+
|
294
|
+
StringList.member = Shapes::ShapeRef.new(shape: String, location_name: "StringListValue")
|
295
|
+
|
296
|
+
|
297
|
+
# @api private
|
298
|
+
API = Seahorse::Model::Api.new.tap do |api|
|
299
|
+
|
300
|
+
api.version = "2012-11-05"
|
301
|
+
|
302
|
+
api.metadata = {
|
303
|
+
"endpointPrefix" => "sqs",
|
304
|
+
"errorPrefix" => "AWS.SimpleQueueService.",
|
305
|
+
"protocol" => "query",
|
306
|
+
"serviceFullName" => "Amazon Simple Queue Service",
|
307
|
+
"signatureVersion" => "v4",
|
308
|
+
"xmlNamespace" => "http://queue.amazonaws.com/doc/2012-11-05/",
|
309
|
+
}
|
310
|
+
|
311
|
+
api.add_operation(:add_permission, Seahorse::Model::Operation.new.tap do |o|
|
312
|
+
o.name = "AddPermission"
|
313
|
+
o.http_method = "POST"
|
314
|
+
o.http_request_uri = "/"
|
315
|
+
o.input = Shapes::ShapeRef.new(shape: AddPermissionRequest)
|
316
|
+
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
317
|
+
o.errors << Shapes::ShapeRef.new(shape: OverLimit)
|
318
|
+
end)
|
319
|
+
|
320
|
+
api.add_operation(:change_message_visibility, Seahorse::Model::Operation.new.tap do |o|
|
321
|
+
o.name = "ChangeMessageVisibility"
|
322
|
+
o.http_method = "POST"
|
323
|
+
o.http_request_uri = "/"
|
324
|
+
o.input = Shapes::ShapeRef.new(shape: ChangeMessageVisibilityRequest)
|
325
|
+
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
326
|
+
o.errors << Shapes::ShapeRef.new(shape: MessageNotInflight)
|
327
|
+
o.errors << Shapes::ShapeRef.new(shape: ReceiptHandleIsInvalid)
|
328
|
+
end)
|
329
|
+
|
330
|
+
api.add_operation(:change_message_visibility_batch, Seahorse::Model::Operation.new.tap do |o|
|
331
|
+
o.name = "ChangeMessageVisibilityBatch"
|
332
|
+
o.http_method = "POST"
|
333
|
+
o.http_request_uri = "/"
|
334
|
+
o.input = Shapes::ShapeRef.new(shape: ChangeMessageVisibilityBatchRequest)
|
335
|
+
o.output = Shapes::ShapeRef.new(shape: ChangeMessageVisibilityBatchResult)
|
336
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyEntriesInBatchRequest)
|
337
|
+
o.errors << Shapes::ShapeRef.new(shape: EmptyBatchRequest)
|
338
|
+
o.errors << Shapes::ShapeRef.new(shape: BatchEntryIdsNotDistinct)
|
339
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidBatchEntryId)
|
340
|
+
end)
|
341
|
+
|
342
|
+
api.add_operation(:create_queue, Seahorse::Model::Operation.new.tap do |o|
|
343
|
+
o.name = "CreateQueue"
|
344
|
+
o.http_method = "POST"
|
345
|
+
o.http_request_uri = "/"
|
346
|
+
o.input = Shapes::ShapeRef.new(shape: CreateQueueRequest)
|
347
|
+
o.output = Shapes::ShapeRef.new(shape: CreateQueueResult)
|
348
|
+
o.errors << Shapes::ShapeRef.new(shape: QueueDeletedRecently)
|
349
|
+
o.errors << Shapes::ShapeRef.new(shape: QueueNameExists)
|
350
|
+
end)
|
351
|
+
|
352
|
+
api.add_operation(:delete_message, Seahorse::Model::Operation.new.tap do |o|
|
353
|
+
o.name = "DeleteMessage"
|
354
|
+
o.http_method = "POST"
|
355
|
+
o.http_request_uri = "/"
|
356
|
+
o.input = Shapes::ShapeRef.new(shape: DeleteMessageRequest)
|
357
|
+
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
358
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidIdFormat)
|
359
|
+
o.errors << Shapes::ShapeRef.new(shape: ReceiptHandleIsInvalid)
|
360
|
+
end)
|
361
|
+
|
362
|
+
api.add_operation(:delete_message_batch, Seahorse::Model::Operation.new.tap do |o|
|
363
|
+
o.name = "DeleteMessageBatch"
|
364
|
+
o.http_method = "POST"
|
365
|
+
o.http_request_uri = "/"
|
366
|
+
o.input = Shapes::ShapeRef.new(shape: DeleteMessageBatchRequest)
|
367
|
+
o.output = Shapes::ShapeRef.new(shape: DeleteMessageBatchResult)
|
368
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyEntriesInBatchRequest)
|
369
|
+
o.errors << Shapes::ShapeRef.new(shape: EmptyBatchRequest)
|
370
|
+
o.errors << Shapes::ShapeRef.new(shape: BatchEntryIdsNotDistinct)
|
371
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidBatchEntryId)
|
372
|
+
end)
|
373
|
+
|
374
|
+
api.add_operation(:delete_queue, Seahorse::Model::Operation.new.tap do |o|
|
375
|
+
o.name = "DeleteQueue"
|
376
|
+
o.http_method = "POST"
|
377
|
+
o.http_request_uri = "/"
|
378
|
+
o.input = Shapes::ShapeRef.new(shape: DeleteQueueRequest)
|
379
|
+
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
380
|
+
end)
|
381
|
+
|
382
|
+
api.add_operation(:get_queue_attributes, Seahorse::Model::Operation.new.tap do |o|
|
383
|
+
o.name = "GetQueueAttributes"
|
384
|
+
o.http_method = "POST"
|
385
|
+
o.http_request_uri = "/"
|
386
|
+
o.input = Shapes::ShapeRef.new(shape: GetQueueAttributesRequest)
|
387
|
+
o.output = Shapes::ShapeRef.new(shape: GetQueueAttributesResult)
|
388
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidAttributeName)
|
389
|
+
end)
|
390
|
+
|
391
|
+
api.add_operation(:get_queue_url, Seahorse::Model::Operation.new.tap do |o|
|
392
|
+
o.name = "GetQueueUrl"
|
393
|
+
o.http_method = "POST"
|
394
|
+
o.http_request_uri = "/"
|
395
|
+
o.input = Shapes::ShapeRef.new(shape: GetQueueUrlRequest)
|
396
|
+
o.output = Shapes::ShapeRef.new(shape: GetQueueUrlResult)
|
397
|
+
o.errors << Shapes::ShapeRef.new(shape: QueueDoesNotExist)
|
398
|
+
end)
|
399
|
+
|
400
|
+
api.add_operation(:list_dead_letter_source_queues, Seahorse::Model::Operation.new.tap do |o|
|
401
|
+
o.name = "ListDeadLetterSourceQueues"
|
402
|
+
o.http_method = "POST"
|
403
|
+
o.http_request_uri = "/"
|
404
|
+
o.input = Shapes::ShapeRef.new(shape: ListDeadLetterSourceQueuesRequest)
|
405
|
+
o.output = Shapes::ShapeRef.new(shape: ListDeadLetterSourceQueuesResult)
|
406
|
+
o.errors << Shapes::ShapeRef.new(shape: QueueDoesNotExist)
|
407
|
+
end)
|
408
|
+
|
409
|
+
api.add_operation(:list_queues, Seahorse::Model::Operation.new.tap do |o|
|
410
|
+
o.name = "ListQueues"
|
411
|
+
o.http_method = "POST"
|
412
|
+
o.http_request_uri = "/"
|
413
|
+
o.input = Shapes::ShapeRef.new(shape: ListQueuesRequest)
|
414
|
+
o.output = Shapes::ShapeRef.new(shape: ListQueuesResult)
|
415
|
+
end)
|
416
|
+
|
417
|
+
api.add_operation(:purge_queue, Seahorse::Model::Operation.new.tap do |o|
|
418
|
+
o.name = "PurgeQueue"
|
419
|
+
o.http_method = "POST"
|
420
|
+
o.http_request_uri = "/"
|
421
|
+
o.input = Shapes::ShapeRef.new(shape: PurgeQueueRequest)
|
422
|
+
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
423
|
+
o.errors << Shapes::ShapeRef.new(shape: QueueDoesNotExist)
|
424
|
+
o.errors << Shapes::ShapeRef.new(shape: PurgeQueueInProgress)
|
425
|
+
end)
|
426
|
+
|
427
|
+
api.add_operation(:receive_message, Seahorse::Model::Operation.new.tap do |o|
|
428
|
+
o.name = "ReceiveMessage"
|
429
|
+
o.http_method = "POST"
|
430
|
+
o.http_request_uri = "/"
|
431
|
+
o.input = Shapes::ShapeRef.new(shape: ReceiveMessageRequest)
|
432
|
+
o.output = Shapes::ShapeRef.new(shape: ReceiveMessageResult)
|
433
|
+
o.errors << Shapes::ShapeRef.new(shape: OverLimit)
|
434
|
+
end)
|
435
|
+
|
436
|
+
api.add_operation(:remove_permission, Seahorse::Model::Operation.new.tap do |o|
|
437
|
+
o.name = "RemovePermission"
|
438
|
+
o.http_method = "POST"
|
439
|
+
o.http_request_uri = "/"
|
440
|
+
o.input = Shapes::ShapeRef.new(shape: RemovePermissionRequest)
|
441
|
+
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
442
|
+
end)
|
443
|
+
|
444
|
+
api.add_operation(:send_message, Seahorse::Model::Operation.new.tap do |o|
|
445
|
+
o.name = "SendMessage"
|
446
|
+
o.http_method = "POST"
|
447
|
+
o.http_request_uri = "/"
|
448
|
+
o.input = Shapes::ShapeRef.new(shape: SendMessageRequest)
|
449
|
+
o.output = Shapes::ShapeRef.new(shape: SendMessageResult)
|
450
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidMessageContents)
|
451
|
+
o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperation)
|
452
|
+
end)
|
453
|
+
|
454
|
+
api.add_operation(:send_message_batch, Seahorse::Model::Operation.new.tap do |o|
|
455
|
+
o.name = "SendMessageBatch"
|
456
|
+
o.http_method = "POST"
|
457
|
+
o.http_request_uri = "/"
|
458
|
+
o.input = Shapes::ShapeRef.new(shape: SendMessageBatchRequest)
|
459
|
+
o.output = Shapes::ShapeRef.new(shape: SendMessageBatchResult)
|
460
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyEntriesInBatchRequest)
|
461
|
+
o.errors << Shapes::ShapeRef.new(shape: EmptyBatchRequest)
|
462
|
+
o.errors << Shapes::ShapeRef.new(shape: BatchEntryIdsNotDistinct)
|
463
|
+
o.errors << Shapes::ShapeRef.new(shape: BatchRequestTooLong)
|
464
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidBatchEntryId)
|
465
|
+
o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperation)
|
466
|
+
end)
|
467
|
+
|
468
|
+
api.add_operation(:set_queue_attributes, Seahorse::Model::Operation.new.tap do |o|
|
469
|
+
o.name = "SetQueueAttributes"
|
470
|
+
o.http_method = "POST"
|
471
|
+
o.http_request_uri = "/"
|
472
|
+
o.input = Shapes::ShapeRef.new(shape: SetQueueAttributesRequest)
|
473
|
+
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
474
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidAttributeName)
|
475
|
+
end)
|
476
|
+
end
|
477
|
+
|
478
|
+
end
|
479
|
+
end
|
480
|
+
end
|