aws-sdk-sns 1.45.0 → 1.48.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +20 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-sns/client.rb +223 -84
- data/lib/aws-sdk-sns/client_api.rb +89 -0
- data/lib/aws-sdk-sns/errors.rb +80 -0
- data/lib/aws-sdk-sns/message_verifier.rb +11 -1
- data/lib/aws-sdk-sns/platform_application.rb +44 -7
- data/lib/aws-sdk-sns/platform_endpoint.rb +3 -3
- data/lib/aws-sdk-sns/subscription.rb +2 -1
- data/lib/aws-sdk-sns/topic.rb +8 -7
- data/lib/aws-sdk-sns/types.rb +433 -38
- data/lib/aws-sdk-sns.rb +1 -1
- metadata +4 -4
@@ -17,6 +17,10 @@ module Aws::SNS
|
|
17
17
|
AddPermissionInput = Shapes::StructureShape.new(name: 'AddPermissionInput')
|
18
18
|
AmazonResourceName = Shapes::StringShape.new(name: 'AmazonResourceName')
|
19
19
|
AuthorizationErrorException = Shapes::StructureShape.new(name: 'AuthorizationErrorException')
|
20
|
+
BatchEntryIdsNotDistinctException = Shapes::StructureShape.new(name: 'BatchEntryIdsNotDistinctException')
|
21
|
+
BatchRequestTooLongException = Shapes::StructureShape.new(name: 'BatchRequestTooLongException')
|
22
|
+
BatchResultErrorEntry = Shapes::StructureShape.new(name: 'BatchResultErrorEntry')
|
23
|
+
BatchResultErrorEntryList = Shapes::ListShape.new(name: 'BatchResultErrorEntryList')
|
20
24
|
Binary = Shapes::BlobShape.new(name: 'Binary')
|
21
25
|
CheckIfPhoneNumberIsOptedOutInput = Shapes::StructureShape.new(name: 'CheckIfPhoneNumberIsOptedOutInput')
|
22
26
|
CheckIfPhoneNumberIsOptedOutResponse = Shapes::StructureShape.new(name: 'CheckIfPhoneNumberIsOptedOutResponse')
|
@@ -37,6 +41,7 @@ module Aws::SNS
|
|
37
41
|
DeleteSMSSandboxPhoneNumberInput = Shapes::StructureShape.new(name: 'DeleteSMSSandboxPhoneNumberInput')
|
38
42
|
DeleteSMSSandboxPhoneNumberResult = Shapes::StructureShape.new(name: 'DeleteSMSSandboxPhoneNumberResult')
|
39
43
|
DeleteTopicInput = Shapes::StructureShape.new(name: 'DeleteTopicInput')
|
44
|
+
EmptyBatchRequestException = Shapes::StructureShape.new(name: 'EmptyBatchRequestException')
|
40
45
|
Endpoint = Shapes::StructureShape.new(name: 'Endpoint')
|
41
46
|
EndpointDisabledException = Shapes::StructureShape.new(name: 'EndpointDisabledException')
|
42
47
|
FilterPolicyLimitExceededException = Shapes::StructureShape.new(name: 'FilterPolicyLimitExceededException')
|
@@ -53,6 +58,7 @@ module Aws::SNS
|
|
53
58
|
GetTopicAttributesInput = Shapes::StructureShape.new(name: 'GetTopicAttributesInput')
|
54
59
|
GetTopicAttributesResponse = Shapes::StructureShape.new(name: 'GetTopicAttributesResponse')
|
55
60
|
InternalErrorException = Shapes::StructureShape.new(name: 'InternalErrorException')
|
61
|
+
InvalidBatchEntryIdException = Shapes::StructureShape.new(name: 'InvalidBatchEntryIdException')
|
56
62
|
InvalidParameterException = Shapes::StructureShape.new(name: 'InvalidParameterException')
|
57
63
|
InvalidParameterValueException = Shapes::StructureShape.new(name: 'InvalidParameterValueException')
|
58
64
|
InvalidSecurityException = Shapes::StructureShape.new(name: 'InvalidSecurityException')
|
@@ -104,6 +110,12 @@ module Aws::SNS
|
|
104
110
|
PhoneNumberString = Shapes::StringShape.new(name: 'PhoneNumberString')
|
105
111
|
PlatformApplication = Shapes::StructureShape.new(name: 'PlatformApplication')
|
106
112
|
PlatformApplicationDisabledException = Shapes::StructureShape.new(name: 'PlatformApplicationDisabledException')
|
113
|
+
PublishBatchInput = Shapes::StructureShape.new(name: 'PublishBatchInput')
|
114
|
+
PublishBatchRequestEntry = Shapes::StructureShape.new(name: 'PublishBatchRequestEntry')
|
115
|
+
PublishBatchRequestEntryList = Shapes::ListShape.new(name: 'PublishBatchRequestEntryList')
|
116
|
+
PublishBatchResponse = Shapes::StructureShape.new(name: 'PublishBatchResponse')
|
117
|
+
PublishBatchResultEntry = Shapes::StructureShape.new(name: 'PublishBatchResultEntry')
|
118
|
+
PublishBatchResultEntryList = Shapes::ListShape.new(name: 'PublishBatchResultEntryList')
|
107
119
|
PublishInput = Shapes::StructureShape.new(name: 'PublishInput')
|
108
120
|
PublishResponse = Shapes::StructureShape.new(name: 'PublishResponse')
|
109
121
|
RemovePermissionInput = Shapes::StructureShape.new(name: 'RemovePermissionInput')
|
@@ -137,6 +149,7 @@ module Aws::SNS
|
|
137
149
|
TagValue = Shapes::StringShape.new(name: 'TagValue')
|
138
150
|
ThrottledException = Shapes::StructureShape.new(name: 'ThrottledException')
|
139
151
|
Timestamp = Shapes::TimestampShape.new(name: 'Timestamp')
|
152
|
+
TooManyEntriesInBatchRequestException = Shapes::StructureShape.new(name: 'TooManyEntriesInBatchRequestException')
|
140
153
|
Topic = Shapes::StructureShape.new(name: 'Topic')
|
141
154
|
TopicAttributesMap = Shapes::MapShape.new(name: 'TopicAttributesMap')
|
142
155
|
TopicLimitExceededException = Shapes::StructureShape.new(name: 'TopicLimitExceededException')
|
@@ -181,6 +194,20 @@ module Aws::SNS
|
|
181
194
|
AuthorizationErrorException.add_member(:message, Shapes::ShapeRef.new(shape: string, location_name: "message"))
|
182
195
|
AuthorizationErrorException.struct_class = Types::AuthorizationErrorException
|
183
196
|
|
197
|
+
BatchEntryIdsNotDistinctException.add_member(:message, Shapes::ShapeRef.new(shape: string, location_name: "message"))
|
198
|
+
BatchEntryIdsNotDistinctException.struct_class = Types::BatchEntryIdsNotDistinctException
|
199
|
+
|
200
|
+
BatchRequestTooLongException.add_member(:message, Shapes::ShapeRef.new(shape: string, location_name: "message"))
|
201
|
+
BatchRequestTooLongException.struct_class = Types::BatchRequestTooLongException
|
202
|
+
|
203
|
+
BatchResultErrorEntry.add_member(:id, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Id"))
|
204
|
+
BatchResultErrorEntry.add_member(:code, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Code"))
|
205
|
+
BatchResultErrorEntry.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "Message"))
|
206
|
+
BatchResultErrorEntry.add_member(:sender_fault, Shapes::ShapeRef.new(shape: boolean, required: true, location_name: "SenderFault"))
|
207
|
+
BatchResultErrorEntry.struct_class = Types::BatchResultErrorEntry
|
208
|
+
|
209
|
+
BatchResultErrorEntryList.member = Shapes::ShapeRef.new(shape: BatchResultErrorEntry)
|
210
|
+
|
184
211
|
CheckIfPhoneNumberIsOptedOutInput.add_member(:phone_number, Shapes::ShapeRef.new(shape: PhoneNumber, required: true, location_name: "phoneNumber"))
|
185
212
|
CheckIfPhoneNumberIsOptedOutInput.struct_class = Types::CheckIfPhoneNumberIsOptedOutInput
|
186
213
|
|
@@ -245,6 +272,9 @@ module Aws::SNS
|
|
245
272
|
DeleteTopicInput.add_member(:topic_arn, Shapes::ShapeRef.new(shape: topicARN, required: true, location_name: "TopicArn"))
|
246
273
|
DeleteTopicInput.struct_class = Types::DeleteTopicInput
|
247
274
|
|
275
|
+
EmptyBatchRequestException.add_member(:message, Shapes::ShapeRef.new(shape: string, location_name: "message"))
|
276
|
+
EmptyBatchRequestException.struct_class = Types::EmptyBatchRequestException
|
277
|
+
|
248
278
|
Endpoint.add_member(:endpoint_arn, Shapes::ShapeRef.new(shape: String, location_name: "EndpointArn"))
|
249
279
|
Endpoint.add_member(:attributes, Shapes::ShapeRef.new(shape: MapStringToString, location_name: "Attributes"))
|
250
280
|
Endpoint.struct_class = Types::Endpoint
|
@@ -293,6 +323,9 @@ module Aws::SNS
|
|
293
323
|
InternalErrorException.add_member(:message, Shapes::ShapeRef.new(shape: string, location_name: "message"))
|
294
324
|
InternalErrorException.struct_class = Types::InternalErrorException
|
295
325
|
|
326
|
+
InvalidBatchEntryIdException.add_member(:message, Shapes::ShapeRef.new(shape: string, location_name: "message"))
|
327
|
+
InvalidBatchEntryIdException.struct_class = Types::InvalidBatchEntryIdException
|
328
|
+
|
296
329
|
InvalidParameterException.add_member(:message, Shapes::ShapeRef.new(shape: string, location_name: "message"))
|
297
330
|
InvalidParameterException.struct_class = Types::InvalidParameterException
|
298
331
|
|
@@ -435,6 +468,32 @@ module Aws::SNS
|
|
435
468
|
PlatformApplicationDisabledException.add_member(:message, Shapes::ShapeRef.new(shape: string, location_name: "message"))
|
436
469
|
PlatformApplicationDisabledException.struct_class = Types::PlatformApplicationDisabledException
|
437
470
|
|
471
|
+
PublishBatchInput.add_member(:topic_arn, Shapes::ShapeRef.new(shape: topicARN, required: true, location_name: "TopicArn"))
|
472
|
+
PublishBatchInput.add_member(:publish_batch_request_entries, Shapes::ShapeRef.new(shape: PublishBatchRequestEntryList, required: true, location_name: "PublishBatchRequestEntries"))
|
473
|
+
PublishBatchInput.struct_class = Types::PublishBatchInput
|
474
|
+
|
475
|
+
PublishBatchRequestEntry.add_member(:id, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Id"))
|
476
|
+
PublishBatchRequestEntry.add_member(:message, Shapes::ShapeRef.new(shape: message, required: true, location_name: "Message"))
|
477
|
+
PublishBatchRequestEntry.add_member(:subject, Shapes::ShapeRef.new(shape: subject, location_name: "Subject"))
|
478
|
+
PublishBatchRequestEntry.add_member(:message_structure, Shapes::ShapeRef.new(shape: messageStructure, location_name: "MessageStructure"))
|
479
|
+
PublishBatchRequestEntry.add_member(:message_attributes, Shapes::ShapeRef.new(shape: MessageAttributeMap, location_name: "MessageAttributes"))
|
480
|
+
PublishBatchRequestEntry.add_member(:message_deduplication_id, Shapes::ShapeRef.new(shape: String, location_name: "MessageDeduplicationId"))
|
481
|
+
PublishBatchRequestEntry.add_member(:message_group_id, Shapes::ShapeRef.new(shape: String, location_name: "MessageGroupId"))
|
482
|
+
PublishBatchRequestEntry.struct_class = Types::PublishBatchRequestEntry
|
483
|
+
|
484
|
+
PublishBatchRequestEntryList.member = Shapes::ShapeRef.new(shape: PublishBatchRequestEntry)
|
485
|
+
|
486
|
+
PublishBatchResponse.add_member(:successful, Shapes::ShapeRef.new(shape: PublishBatchResultEntryList, location_name: "Successful"))
|
487
|
+
PublishBatchResponse.add_member(:failed, Shapes::ShapeRef.new(shape: BatchResultErrorEntryList, location_name: "Failed"))
|
488
|
+
PublishBatchResponse.struct_class = Types::PublishBatchResponse
|
489
|
+
|
490
|
+
PublishBatchResultEntry.add_member(:id, Shapes::ShapeRef.new(shape: String, location_name: "Id"))
|
491
|
+
PublishBatchResultEntry.add_member(:message_id, Shapes::ShapeRef.new(shape: messageId, location_name: "MessageId"))
|
492
|
+
PublishBatchResultEntry.add_member(:sequence_number, Shapes::ShapeRef.new(shape: String, location_name: "SequenceNumber"))
|
493
|
+
PublishBatchResultEntry.struct_class = Types::PublishBatchResultEntry
|
494
|
+
|
495
|
+
PublishBatchResultEntryList.member = Shapes::ShapeRef.new(shape: PublishBatchResultEntry)
|
496
|
+
|
438
497
|
PublishInput.add_member(:topic_arn, Shapes::ShapeRef.new(shape: topicARN, location_name: "TopicArn"))
|
439
498
|
PublishInput.add_member(:target_arn, Shapes::ShapeRef.new(shape: String, location_name: "TargetArn"))
|
440
499
|
PublishInput.add_member(:phone_number, Shapes::ShapeRef.new(shape: String, location_name: "PhoneNumber"))
|
@@ -537,6 +596,9 @@ module Aws::SNS
|
|
537
596
|
ThrottledException.add_member(:message, Shapes::ShapeRef.new(shape: string, location_name: "message"))
|
538
597
|
ThrottledException.struct_class = Types::ThrottledException
|
539
598
|
|
599
|
+
TooManyEntriesInBatchRequestException.add_member(:message, Shapes::ShapeRef.new(shape: string, location_name: "message"))
|
600
|
+
TooManyEntriesInBatchRequestException.struct_class = Types::TooManyEntriesInBatchRequestException
|
601
|
+
|
540
602
|
Topic.add_member(:topic_arn, Shapes::ShapeRef.new(shape: topicARN, location_name: "TopicArn"))
|
541
603
|
Topic.struct_class = Types::Topic
|
542
604
|
|
@@ -990,6 +1052,33 @@ module Aws::SNS
|
|
990
1052
|
o.errors << Shapes::ShapeRef.new(shape: InvalidSecurityException)
|
991
1053
|
end)
|
992
1054
|
|
1055
|
+
api.add_operation(:publish_batch, Seahorse::Model::Operation.new.tap do |o|
|
1056
|
+
o.name = "PublishBatch"
|
1057
|
+
o.http_method = "POST"
|
1058
|
+
o.http_request_uri = "/"
|
1059
|
+
o.input = Shapes::ShapeRef.new(shape: PublishBatchInput)
|
1060
|
+
o.output = Shapes::ShapeRef.new(shape: PublishBatchResponse)
|
1061
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
1062
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
|
1063
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
|
1064
|
+
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
|
1065
|
+
o.errors << Shapes::ShapeRef.new(shape: EndpointDisabledException)
|
1066
|
+
o.errors << Shapes::ShapeRef.new(shape: PlatformApplicationDisabledException)
|
1067
|
+
o.errors << Shapes::ShapeRef.new(shape: AuthorizationErrorException)
|
1068
|
+
o.errors << Shapes::ShapeRef.new(shape: BatchEntryIdsNotDistinctException)
|
1069
|
+
o.errors << Shapes::ShapeRef.new(shape: BatchRequestTooLongException)
|
1070
|
+
o.errors << Shapes::ShapeRef.new(shape: EmptyBatchRequestException)
|
1071
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidBatchEntryIdException)
|
1072
|
+
o.errors << Shapes::ShapeRef.new(shape: TooManyEntriesInBatchRequestException)
|
1073
|
+
o.errors << Shapes::ShapeRef.new(shape: KMSDisabledException)
|
1074
|
+
o.errors << Shapes::ShapeRef.new(shape: KMSInvalidStateException)
|
1075
|
+
o.errors << Shapes::ShapeRef.new(shape: KMSNotFoundException)
|
1076
|
+
o.errors << Shapes::ShapeRef.new(shape: KMSOptInRequired)
|
1077
|
+
o.errors << Shapes::ShapeRef.new(shape: KMSThrottlingException)
|
1078
|
+
o.errors << Shapes::ShapeRef.new(shape: KMSAccessDeniedException)
|
1079
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidSecurityException)
|
1080
|
+
end)
|
1081
|
+
|
993
1082
|
api.add_operation(:remove_permission, Seahorse::Model::Operation.new.tap do |o|
|
994
1083
|
o.name = "RemovePermission"
|
995
1084
|
o.http_method = "POST"
|
data/lib/aws-sdk-sns/errors.rb
CHANGED
@@ -28,10 +28,14 @@ module Aws::SNS
|
|
28
28
|
#
|
29
29
|
# ## Error Classes
|
30
30
|
# * {AuthorizationErrorException}
|
31
|
+
# * {BatchEntryIdsNotDistinctException}
|
32
|
+
# * {BatchRequestTooLongException}
|
31
33
|
# * {ConcurrentAccessException}
|
34
|
+
# * {EmptyBatchRequestException}
|
32
35
|
# * {EndpointDisabledException}
|
33
36
|
# * {FilterPolicyLimitExceededException}
|
34
37
|
# * {InternalErrorException}
|
38
|
+
# * {InvalidBatchEntryIdException}
|
35
39
|
# * {InvalidParameterException}
|
36
40
|
# * {InvalidParameterValueException}
|
37
41
|
# * {InvalidSecurityException}
|
@@ -50,6 +54,7 @@ module Aws::SNS
|
|
50
54
|
# * {TagLimitExceededException}
|
51
55
|
# * {TagPolicyException}
|
52
56
|
# * {ThrottledException}
|
57
|
+
# * {TooManyEntriesInBatchRequestException}
|
53
58
|
# * {TopicLimitExceededException}
|
54
59
|
# * {UserErrorException}
|
55
60
|
# * {ValidationException}
|
@@ -76,6 +81,36 @@ module Aws::SNS
|
|
76
81
|
end
|
77
82
|
end
|
78
83
|
|
84
|
+
class BatchEntryIdsNotDistinctException < ServiceError
|
85
|
+
|
86
|
+
# @param [Seahorse::Client::RequestContext] context
|
87
|
+
# @param [String] message
|
88
|
+
# @param [Aws::SNS::Types::BatchEntryIdsNotDistinctException] data
|
89
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
90
|
+
super(context, message, data)
|
91
|
+
end
|
92
|
+
|
93
|
+
# @return [String]
|
94
|
+
def message
|
95
|
+
@message || @data[:message]
|
96
|
+
end
|
97
|
+
end
|
98
|
+
|
99
|
+
class BatchRequestTooLongException < ServiceError
|
100
|
+
|
101
|
+
# @param [Seahorse::Client::RequestContext] context
|
102
|
+
# @param [String] message
|
103
|
+
# @param [Aws::SNS::Types::BatchRequestTooLongException] data
|
104
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
105
|
+
super(context, message, data)
|
106
|
+
end
|
107
|
+
|
108
|
+
# @return [String]
|
109
|
+
def message
|
110
|
+
@message || @data[:message]
|
111
|
+
end
|
112
|
+
end
|
113
|
+
|
79
114
|
class ConcurrentAccessException < ServiceError
|
80
115
|
|
81
116
|
# @param [Seahorse::Client::RequestContext] context
|
@@ -91,6 +126,21 @@ module Aws::SNS
|
|
91
126
|
end
|
92
127
|
end
|
93
128
|
|
129
|
+
class EmptyBatchRequestException < ServiceError
|
130
|
+
|
131
|
+
# @param [Seahorse::Client::RequestContext] context
|
132
|
+
# @param [String] message
|
133
|
+
# @param [Aws::SNS::Types::EmptyBatchRequestException] data
|
134
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
135
|
+
super(context, message, data)
|
136
|
+
end
|
137
|
+
|
138
|
+
# @return [String]
|
139
|
+
def message
|
140
|
+
@message || @data[:message]
|
141
|
+
end
|
142
|
+
end
|
143
|
+
|
94
144
|
class EndpointDisabledException < ServiceError
|
95
145
|
|
96
146
|
# @param [Seahorse::Client::RequestContext] context
|
@@ -136,6 +186,21 @@ module Aws::SNS
|
|
136
186
|
end
|
137
187
|
end
|
138
188
|
|
189
|
+
class InvalidBatchEntryIdException < ServiceError
|
190
|
+
|
191
|
+
# @param [Seahorse::Client::RequestContext] context
|
192
|
+
# @param [String] message
|
193
|
+
# @param [Aws::SNS::Types::InvalidBatchEntryIdException] data
|
194
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
195
|
+
super(context, message, data)
|
196
|
+
end
|
197
|
+
|
198
|
+
# @return [String]
|
199
|
+
def message
|
200
|
+
@message || @data[:message]
|
201
|
+
end
|
202
|
+
end
|
203
|
+
|
139
204
|
class InvalidParameterException < ServiceError
|
140
205
|
|
141
206
|
# @param [Seahorse::Client::RequestContext] context
|
@@ -406,6 +471,21 @@ module Aws::SNS
|
|
406
471
|
end
|
407
472
|
end
|
408
473
|
|
474
|
+
class TooManyEntriesInBatchRequestException < ServiceError
|
475
|
+
|
476
|
+
# @param [Seahorse::Client::RequestContext] context
|
477
|
+
# @param [String] message
|
478
|
+
# @param [Aws::SNS::Types::TooManyEntriesInBatchRequestException] data
|
479
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
480
|
+
super(context, message, data)
|
481
|
+
end
|
482
|
+
|
483
|
+
# @return [String]
|
484
|
+
def message
|
485
|
+
@message || @data[:message]
|
486
|
+
end
|
487
|
+
end
|
488
|
+
|
409
489
|
class TopicLimitExceededException < ServiceError
|
410
490
|
|
411
491
|
# @param [Seahorse::Client::RequestContext] context
|
@@ -123,7 +123,9 @@ module Aws
|
|
123
123
|
|
124
124
|
def download_pem(uri)
|
125
125
|
verify_uri!(uri)
|
126
|
-
https_get(uri)
|
126
|
+
pem = https_get(uri)
|
127
|
+
verify_pem_format!(pem)
|
128
|
+
pem
|
127
129
|
end
|
128
130
|
|
129
131
|
def verify_uri!(uri)
|
@@ -153,6 +155,14 @@ module Aws
|
|
153
155
|
end
|
154
156
|
end
|
155
157
|
|
158
|
+
def verify_pem_format!(pem)
|
159
|
+
cert_regex = /\A[\s]*-----BEGIN [A-Z]+-----\n[A-Za-z\d+\/\n]+[=]{0,2}\n-----END [A-Z]+-----[\s]*\Z/
|
160
|
+
unless pem =~ cert_regex
|
161
|
+
msg = 'The certificate does not match expected X509 PEM format.'
|
162
|
+
raise VerificationError, msg
|
163
|
+
end
|
164
|
+
end
|
165
|
+
|
156
166
|
def https_get(uri, failed_attempts = 0)
|
157
167
|
args = []
|
158
168
|
args << uri.host
|
@@ -36,6 +36,15 @@ module Aws::SNS
|
|
36
36
|
|
37
37
|
# Attributes include the following:
|
38
38
|
#
|
39
|
+
# * `AppleCertificateExpiryDate` – The expiry date of the SSL
|
40
|
+
# certificate used to configure certificate-based authentication.
|
41
|
+
#
|
42
|
+
# * `ApplePlatformTeamID` – The Apple developer account ID used to
|
43
|
+
# configure token-based authentication.
|
44
|
+
#
|
45
|
+
# * `ApplePlatformBundleID` – The app identifier used to configure
|
46
|
+
# token-based authentication.
|
47
|
+
#
|
39
48
|
# * `EventEndpointCreated` – Topic ARN to which EndpointCreated event
|
40
49
|
# notifications should be sent.
|
41
50
|
#
|
@@ -150,15 +159,34 @@ module Aws::SNS
|
|
150
159
|
# include the following:
|
151
160
|
#
|
152
161
|
# * `PlatformCredential` – The credential received from the notification
|
153
|
-
# service.
|
154
|
-
#
|
155
|
-
#
|
156
|
-
#
|
162
|
+
# service.
|
163
|
+
#
|
164
|
+
# * For ADM, `PlatformCredential`is client secret.
|
165
|
+
#
|
166
|
+
# * For Apple Services using certificate credentials,
|
167
|
+
# `PlatformCredential` is private key.
|
168
|
+
#
|
169
|
+
# * For Apple Services using token credentials, `PlatformCredential`
|
170
|
+
# is signing key.
|
171
|
+
#
|
172
|
+
# * For GCM (Firebase Cloud Messaging), `PlatformCredential` is API
|
173
|
+
# key.
|
174
|
+
# ^
|
157
175
|
#
|
158
176
|
# * `PlatformPrincipal` – The principal received from the notification
|
159
|
-
# service.
|
160
|
-
#
|
161
|
-
#
|
177
|
+
# service.
|
178
|
+
#
|
179
|
+
# * For ADM, `PlatformPrincipal`is client id.
|
180
|
+
#
|
181
|
+
# * For Apple Services using certificate credentials,
|
182
|
+
# `PlatformPrincipal` is SSL certificate.
|
183
|
+
#
|
184
|
+
# * For Apple Services using token credentials, `PlatformPrincipal` is
|
185
|
+
# signing key ID.
|
186
|
+
#
|
187
|
+
# * For GCM (Firebase Cloud Messaging), there is no
|
188
|
+
# `PlatformPrincipal`.
|
189
|
+
# ^
|
162
190
|
#
|
163
191
|
# * `EventEndpointCreated` – Topic ARN to which `EndpointCreated` event
|
164
192
|
# notifications are sent.
|
@@ -181,6 +209,15 @@ module Aws::SNS
|
|
181
209
|
#
|
182
210
|
# * `SuccessFeedbackSampleRate` – Sample rate percentage (0-100) of
|
183
211
|
# successfully delivered messages.
|
212
|
+
#
|
213
|
+
# The following attributes only apply to `APNs` token-based
|
214
|
+
# authentication:
|
215
|
+
#
|
216
|
+
# * `ApplePlatformTeamID` – The identifier that's assigned to your
|
217
|
+
# Apple developer account team.
|
218
|
+
#
|
219
|
+
# * `ApplePlatformBundleID` – The bundle identifier that's assigned to
|
220
|
+
# your iOS app.
|
184
221
|
# @return [EmptyStructure]
|
185
222
|
def set_attributes(options = {})
|
186
223
|
options = options.merge(platform_application_arn: @arn)
|
@@ -220,7 +220,7 @@ module Aws::SNS
|
|
220
220
|
# @option options [String] :message_deduplication_id
|
221
221
|
# This parameter applies only to FIFO (first-in-first-out) topics. The
|
222
222
|
# `MessageDeduplicationId` can contain up to 128 alphanumeric characters
|
223
|
-
# (a-z, A-Z, 0-9) and punctuation ``
|
223
|
+
# `(a-z, A-Z, 0-9)` and punctuation ``
|
224
224
|
# (!"#$%&'()*+,-./:;<=>?@[\]^_`\{|\}~) ``.
|
225
225
|
#
|
226
226
|
# Every message must have a unique `MessageDeduplicationId`, which is a
|
@@ -234,8 +234,8 @@ module Aws::SNS
|
|
234
234
|
# `MessageDeduplicationId` overrides the generated one.
|
235
235
|
# @option options [String] :message_group_id
|
236
236
|
# This parameter applies only to FIFO (first-in-first-out) topics. The
|
237
|
-
# `MessageGroupId` can contain up to 128 alphanumeric characters (a-z,
|
238
|
-
# A-Z, 0-9) and punctuation `` (!"#$%&'()*+,-./:;<=>?@[\]^_`\{|\}~) ``.
|
237
|
+
# `MessageGroupId` can contain up to 128 alphanumeric characters `(a-z,
|
238
|
+
# A-Z, 0-9)` and punctuation `` (!"#$%&'()*+,-./:;<=>?@[\]^_`\{|\}~) ``.
|
239
239
|
#
|
240
240
|
# The `MessageGroupId` is a tag that specifies that a message belongs to
|
241
241
|
# a specific message group. Messages that belong to the same message
|
@@ -51,7 +51,8 @@ module Aws::SNS
|
|
51
51
|
# subscription. For more information, see [Amazon SNS Message
|
52
52
|
# Filtering][1] in the *Amazon SNS Developer Guide*.
|
53
53
|
#
|
54
|
-
# * `Owner` – The account ID of the subscription's
|
54
|
+
# * `Owner` – The Amazon Web Services account ID of the subscription's
|
55
|
+
# owner.
|
55
56
|
#
|
56
57
|
# * `PendingConfirmation` – `true` if the subscription hasn't been
|
57
58
|
# confirmed. To confirm a pending subscription, call the
|
data/lib/aws-sdk-sns/topic.rb
CHANGED
@@ -43,7 +43,7 @@ module Aws::SNS
|
|
43
43
|
# * `DisplayName` – The human-readable name used in the `From` field for
|
44
44
|
# notifications to `email` and `email-json` endpoints.
|
45
45
|
#
|
46
|
-
# * `Owner` – The account ID of the topic's owner.
|
46
|
+
# * `Owner` – The Amazon Web Services account ID of the topic's owner.
|
47
47
|
#
|
48
48
|
# * `Policy` – The JSON serialization of the topic's access control
|
49
49
|
# policy.
|
@@ -151,9 +151,10 @@ module Aws::SNS
|
|
151
151
|
# @option options [required, String] :label
|
152
152
|
# A unique identifier for the new policy statement.
|
153
153
|
# @option options [required, Array<String>] :aws_account_id
|
154
|
-
# The account IDs of the users (principals) who will
|
155
|
-
# the specified actions. The users must have
|
156
|
-
# be signed up for this
|
154
|
+
# The Amazon Web Services account IDs of the users (principals) who will
|
155
|
+
# be given access to the specified actions. The users must have Amazon
|
156
|
+
# Web Services account, but do not need to be signed up for this
|
157
|
+
# service.
|
157
158
|
# @option options [required, Array<String>] :action_name
|
158
159
|
# The action you want to allow for the specified principal(s).
|
159
160
|
#
|
@@ -313,7 +314,7 @@ module Aws::SNS
|
|
313
314
|
# @option options [String] :message_deduplication_id
|
314
315
|
# This parameter applies only to FIFO (first-in-first-out) topics. The
|
315
316
|
# `MessageDeduplicationId` can contain up to 128 alphanumeric characters
|
316
|
-
# (a-z, A-Z, 0-9) and punctuation ``
|
317
|
+
# `(a-z, A-Z, 0-9)` and punctuation ``
|
317
318
|
# (!"#$%&'()*+,-./:;<=>?@[\]^_`\{|\}~) ``.
|
318
319
|
#
|
319
320
|
# Every message must have a unique `MessageDeduplicationId`, which is a
|
@@ -327,8 +328,8 @@ module Aws::SNS
|
|
327
328
|
# `MessageDeduplicationId` overrides the generated one.
|
328
329
|
# @option options [String] :message_group_id
|
329
330
|
# This parameter applies only to FIFO (first-in-first-out) topics. The
|
330
|
-
# `MessageGroupId` can contain up to 128 alphanumeric characters (a-z,
|
331
|
-
# A-Z, 0-9) and punctuation `` (!"#$%&'()*+,-./:;<=>?@[\]^_`\{|\}~) ``.
|
331
|
+
# `MessageGroupId` can contain up to 128 alphanumeric characters `(a-z,
|
332
|
+
# A-Z, 0-9)` and punctuation `` (!"#$%&'()*+,-./:;<=>?@[\]^_`\{|\}~) ``.
|
332
333
|
#
|
333
334
|
# The `MessageGroupId` is a tag that specifies that a message belongs to
|
334
335
|
# a specific message group. Messages that belong to the same message
|