aws-sdk-sns 1.67.0 → 1.69.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e7294d1cc77c836961ba92471feccd925356d9e7d29296ca8655ba244c5b3a29
4
- data.tar.gz: 13957acdc1ad4197e9e4f1a55af91b519f450bef930da96ef8692577d6caf75c
3
+ metadata.gz: a35d1f2a356842c397cf33306ee91700c5bc71c90b31a0994aa04d54353ba260
4
+ data.tar.gz: ccff1f65a8b0723adbfb1bb07737d78fe25ad3c21f7f6be67aad692117f2a123
5
5
  SHA512:
6
- metadata.gz: e7f82aa3d7ab76be01061900c5cdebe4f34c4903ca0da09c744ee870e7f3d87ee32e173be480928578aea4ed144fd3a68b1c9f96fc573fe84681dfa5e17e6aa9
7
- data.tar.gz: 64350c634990f8fbc01e43adc2f54c23408e74b54a93c601a8f8e41203baae2b5a89cdee2c5bfadd4dc98f551f61f9e9b0264e7da72b88352b0e05c6bce27881
6
+ metadata.gz: 1b8d2a5e8dd67b74f0dfbd7116fa8c19d755ceae121f9e620d9f263534179467f27443a1c36c531c10c8c41fc09c2994950d5b03dff7bfaa55301503e5e8a491
7
+ data.tar.gz: f93c18cc782a9839593d70b24ff7ae95e06d2c7cb70ecd76db9dc8271200b5a6fbc82953f9f0f234d413567d1e455e15cf6663bd6cc4f75c6f86beddfcc2ca9b
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.69.0 (2023-11-22)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ 1.68.0 (2023-10-26)
10
+ ------------------
11
+
12
+ * Feature - Message Archiving and Replay is now supported in Amazon SNS for FIFO topics.
13
+
4
14
  1.67.0 (2023-09-27)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.67.0
1
+ 1.69.0
@@ -770,7 +770,13 @@ module Aws::SNS
770
770
  #
771
771
  # The following attributes apply only to [FIFO topics][4]:
772
772
  #
773
- # * `FifoTopic` – When this is set to `true`, a FIFO topic is created.
773
+ # * `ArchivePolicy` – Adds or updates an inline policy document to
774
+ # archive messages stored in the specified Amazon SNS topic.
775
+ #
776
+ # * `BeginningArchiveTime` – The earliest starting point at which a
777
+ # message in the topic’s archive can be replayed from. This point in
778
+ # time is based on the configured message retention period set by the
779
+ # topic’s message archiving policy.
774
780
  #
775
781
  # * `ContentBasedDeduplication` – Enables content-based deduplication
776
782
  # for FIFO topics.
@@ -2558,7 +2564,7 @@ module Aws::SNS
2558
2564
  # `ConfirmSubscription` action to confirm the subscription.
2559
2565
  #
2560
2566
  # You call the `ConfirmSubscription` action with the token from the
2561
- # subscription response. Confirmation tokens are valid for three days.
2567
+ # subscription response. Confirmation tokens are valid for two days.
2562
2568
  #
2563
2569
  # This action is throttled at 100 transactions per second (TPS).
2564
2570
  #
@@ -2665,9 +2671,31 @@ module Aws::SNS
2665
2671
  # see [Fanout to Kinesis Data Firehose delivery streams][1] in the
2666
2672
  # *Amazon SNS Developer Guide*.
2667
2673
  #
2674
+ # The following attributes apply only to [FIFO topics][2]:
2675
+ #
2676
+ # * `ReplayPolicy` – Adds or updates an inline policy document for a
2677
+ # subscription to replay messages stored in the specified Amazon SNS
2678
+ # topic.
2679
+ #
2680
+ # * `ReplayStatus` – Retrieves the status of the subscription message
2681
+ # replay, which can be one of the following:
2682
+ #
2683
+ # * `Completed` – The replay has successfully redelivered all
2684
+ # messages, and is now delivering newly published messages. If an
2685
+ # ending point was specified in the `ReplayPolicy` then the
2686
+ # subscription will no longer receive newly published messages.
2687
+ #
2688
+ # * `In progress` – The replay is currently replaying the selected
2689
+ # messages.
2690
+ #
2691
+ # * `Failed` – The replay was unable to complete.
2692
+ #
2693
+ # * `Pending` – The default state while the replay initiates.
2694
+ #
2668
2695
  #
2669
2696
  #
2670
2697
  # [1]: https://docs.aws.amazon.com/sns/latest/dg/sns-firehose-as-subscriber.html
2698
+ # [2]: https://docs.aws.amazon.com/sns/latest/dg/sns-fifo-topics.html
2671
2699
  #
2672
2700
  # @option params [Boolean] :return_subscription_arn
2673
2701
  # Sets whether the response from the `Subscribe` request includes the
@@ -2889,7 +2917,7 @@ module Aws::SNS
2889
2917
  params: params,
2890
2918
  config: config)
2891
2919
  context[:gem_name] = 'aws-sdk-sns'
2892
- context[:gem_version] = '1.67.0'
2920
+ context[:gem_version] = '1.69.0'
2893
2921
  Seahorse::Client::Request.new(handlers, context)
2894
2922
  end
2895
2923
 
@@ -64,6 +64,7 @@ module Aws::SNS
64
64
  InvalidParameterException = Shapes::StructureShape.new(name: 'InvalidParameterException')
65
65
  InvalidParameterValueException = Shapes::StructureShape.new(name: 'InvalidParameterValueException')
66
66
  InvalidSecurityException = Shapes::StructureShape.new(name: 'InvalidSecurityException')
67
+ InvalidStateException = Shapes::StructureShape.new(name: 'InvalidStateException')
67
68
  Iso2CountryCode = Shapes::StringShape.new(name: 'Iso2CountryCode')
68
69
  KMSAccessDeniedException = Shapes::StructureShape.new(name: 'KMSAccessDeniedException')
69
70
  KMSDisabledException = Shapes::StructureShape.new(name: 'KMSDisabledException')
@@ -122,6 +123,7 @@ module Aws::SNS
122
123
  PublishResponse = Shapes::StructureShape.new(name: 'PublishResponse')
123
124
  PutDataProtectionPolicyInput = Shapes::StructureShape.new(name: 'PutDataProtectionPolicyInput')
124
125
  RemovePermissionInput = Shapes::StructureShape.new(name: 'RemovePermissionInput')
126
+ ReplayLimitExceededException = Shapes::StructureShape.new(name: 'ReplayLimitExceededException')
125
127
  ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
126
128
  RouteType = Shapes::StringShape.new(name: 'RouteType')
127
129
  SMSSandboxPhoneNumber = Shapes::StructureShape.new(name: 'SMSSandboxPhoneNumber')
@@ -345,6 +347,9 @@ module Aws::SNS
345
347
  InvalidSecurityException.add_member(:message, Shapes::ShapeRef.new(shape: string, location_name: "message"))
346
348
  InvalidSecurityException.struct_class = Types::InvalidSecurityException
347
349
 
350
+ InvalidStateException.add_member(:message, Shapes::ShapeRef.new(shape: string, location_name: "message"))
351
+ InvalidStateException.struct_class = Types::InvalidStateException
352
+
348
353
  KMSAccessDeniedException.add_member(:message, Shapes::ShapeRef.new(shape: string, location_name: "message"))
349
354
  KMSAccessDeniedException.struct_class = Types::KMSAccessDeniedException
350
355
 
@@ -527,6 +532,9 @@ module Aws::SNS
527
532
  RemovePermissionInput.add_member(:label, Shapes::ShapeRef.new(shape: label, required: true, location_name: "Label"))
528
533
  RemovePermissionInput.struct_class = Types::RemovePermissionInput
529
534
 
535
+ ReplayLimitExceededException.add_member(:message, Shapes::ShapeRef.new(shape: string, location_name: "message"))
536
+ ReplayLimitExceededException.struct_class = Types::ReplayLimitExceededException
537
+
530
538
  ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: string, location_name: "message"))
531
539
  ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
532
540
 
@@ -703,6 +711,7 @@ module Aws::SNS
703
711
  o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
704
712
  o.errors << Shapes::ShapeRef.new(shape: AuthorizationErrorException)
705
713
  o.errors << Shapes::ShapeRef.new(shape: FilterPolicyLimitExceededException)
714
+ o.errors << Shapes::ShapeRef.new(shape: ReplayLimitExceededException)
706
715
  end)
707
716
 
708
717
  api.add_operation(:create_platform_application, Seahorse::Model::Operation.new.tap do |o|
@@ -802,6 +811,7 @@ module Aws::SNS
802
811
  o.input = Shapes::ShapeRef.new(shape: DeleteTopicInput)
803
812
  o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
804
813
  o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
814
+ o.errors << Shapes::ShapeRef.new(shape: InvalidStateException)
805
815
  o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
806
816
  o.errors << Shapes::ShapeRef.new(shape: AuthorizationErrorException)
807
817
  o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
@@ -1177,6 +1187,7 @@ module Aws::SNS
1177
1187
  o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
1178
1188
  o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
1179
1189
  o.errors << Shapes::ShapeRef.new(shape: FilterPolicyLimitExceededException)
1190
+ o.errors << Shapes::ShapeRef.new(shape: ReplayLimitExceededException)
1180
1191
  o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
1181
1192
  o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
1182
1193
  o.errors << Shapes::ShapeRef.new(shape: AuthorizationErrorException)
@@ -1203,6 +1214,7 @@ module Aws::SNS
1203
1214
  o.output = Shapes::ShapeRef.new(shape: SubscribeResponse)
1204
1215
  o.errors << Shapes::ShapeRef.new(shape: SubscriptionLimitExceededException)
1205
1216
  o.errors << Shapes::ShapeRef.new(shape: FilterPolicyLimitExceededException)
1217
+ o.errors << Shapes::ShapeRef.new(shape: ReplayLimitExceededException)
1206
1218
  o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
1207
1219
  o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
1208
1220
  o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
@@ -32,7 +32,7 @@ module Aws::SNS
32
32
  raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
33
33
  end
34
34
  if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
35
- if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
35
+ if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
36
36
  if Aws::Endpoints::Matchers.string_equals?(region, "us-gov-east-1")
37
37
  return Aws::Endpoints::Endpoint.new(url: "https://sns.us-gov-east-1.amazonaws.com", headers: {}, properties: {})
38
38
  end
@@ -39,6 +39,7 @@ module Aws::SNS
39
39
  # * {InvalidParameterException}
40
40
  # * {InvalidParameterValueException}
41
41
  # * {InvalidSecurityException}
42
+ # * {InvalidStateException}
42
43
  # * {KMSAccessDeniedException}
43
44
  # * {KMSDisabledException}
44
45
  # * {KMSInvalidStateException}
@@ -48,6 +49,7 @@ module Aws::SNS
48
49
  # * {NotFoundException}
49
50
  # * {OptedOutException}
50
51
  # * {PlatformApplicationDisabledException}
52
+ # * {ReplayLimitExceededException}
51
53
  # * {ResourceNotFoundException}
52
54
  # * {StaleTagException}
53
55
  # * {SubscriptionLimitExceededException}
@@ -246,6 +248,21 @@ module Aws::SNS
246
248
  end
247
249
  end
248
250
 
251
+ class InvalidStateException < ServiceError
252
+
253
+ # @param [Seahorse::Client::RequestContext] context
254
+ # @param [String] message
255
+ # @param [Aws::SNS::Types::InvalidStateException] data
256
+ def initialize(context, message, data = Aws::EmptyStructure.new)
257
+ super(context, message, data)
258
+ end
259
+
260
+ # @return [String]
261
+ def message
262
+ @message || @data[:message]
263
+ end
264
+ end
265
+
249
266
  class KMSAccessDeniedException < ServiceError
250
267
 
251
268
  # @param [Seahorse::Client::RequestContext] context
@@ -381,6 +398,21 @@ module Aws::SNS
381
398
  end
382
399
  end
383
400
 
401
+ class ReplayLimitExceededException < ServiceError
402
+
403
+ # @param [Seahorse::Client::RequestContext] context
404
+ # @param [String] message
405
+ # @param [Aws::SNS::Types::ReplayLimitExceededException] data
406
+ def initialize(context, message, data = Aws::EmptyStructure.new)
407
+ super(context, message, data)
408
+ end
409
+
410
+ # @return [String]
411
+ def message
412
+ @message || @data[:message]
413
+ end
414
+ end
415
+
384
416
  class ResourceNotFoundException < ServiceError
385
417
 
386
418
  # @param [Seahorse::Client::RequestContext] context
@@ -136,7 +136,13 @@ module Aws::SNS
136
136
  #
137
137
  # The following attributes apply only to [FIFO topics][4]:
138
138
  #
139
- # * `FifoTopic` – When this is set to `true`, a FIFO topic is created.
139
+ # * `ArchivePolicy` – Adds or updates an inline policy document to
140
+ # archive messages stored in the specified Amazon SNS topic.
141
+ #
142
+ # * `BeginningArchiveTime` – The earliest starting point at which a
143
+ # message in the topic’s archive can be replayed from. This point in
144
+ # time is based on the configured message retention period set by the
145
+ # topic’s message archiving policy.
140
146
  #
141
147
  # * `ContentBasedDeduplication` – Enables content-based deduplication
142
148
  # for FIFO topics.
@@ -678,9 +678,31 @@ module Aws::SNS
678
678
  # see [Fanout to Kinesis Data Firehose delivery streams][1] in the
679
679
  # *Amazon SNS Developer Guide*.
680
680
  #
681
+ # The following attributes apply only to [FIFO topics][2]:
682
+ #
683
+ # * `ReplayPolicy` – Adds or updates an inline policy document for a
684
+ # subscription to replay messages stored in the specified Amazon SNS
685
+ # topic.
686
+ #
687
+ # * `ReplayStatus` – Retrieves the status of the subscription message
688
+ # replay, which can be one of the following:
689
+ #
690
+ # * `Completed` – The replay has successfully redelivered all
691
+ # messages, and is now delivering newly published messages. If an
692
+ # ending point was specified in the `ReplayPolicy` then the
693
+ # subscription will no longer receive newly published messages.
694
+ #
695
+ # * `In progress` – The replay is currently replaying the selected
696
+ # messages.
697
+ #
698
+ # * `Failed` – The replay was unable to complete.
699
+ #
700
+ # * `Pending` – The default state while the replay initiates.
701
+ #
681
702
  #
682
703
  #
683
704
  # [1]: https://docs.aws.amazon.com/sns/latest/dg/sns-firehose-as-subscriber.html
705
+ # [2]: https://docs.aws.amazon.com/sns/latest/dg/sns-fifo-topics.html
684
706
  # @option options [Boolean] :return_subscription_arn
685
707
  # Sets whether the response from the `Subscribe` request includes the
686
708
  # subscription ARN, even if the subscription is not yet confirmed.
@@ -384,7 +384,13 @@ module Aws::SNS
384
384
  #
385
385
  # The following attributes apply only to [FIFO topics][4]:
386
386
  #
387
- # * `FifoTopic` – When this is set to `true`, a FIFO topic is created.
387
+ # * `ArchivePolicy` – Adds or updates an inline policy document to
388
+ # archive messages stored in the specified Amazon SNS topic.
389
+ #
390
+ # * `BeginningArchiveTime` – The earliest starting point at which a
391
+ # message in the topic’s archive can be replayed from. This point in
392
+ # time is based on the configured message retention period set by
393
+ # the topic’s message archiving policy.
388
394
  #
389
395
  # * `ContentBasedDeduplication` – Enables content-based deduplication
390
396
  # for FIFO topics.
@@ -1042,6 +1048,20 @@ module Aws::SNS
1042
1048
  include Aws::Structure
1043
1049
  end
1044
1050
 
1051
+ # Indicates that the specified state is not a valid state for an event
1052
+ # source.
1053
+ #
1054
+ # @!attribute [rw] message
1055
+ # @return [String]
1056
+ #
1057
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/InvalidStateException AWS API Documentation
1058
+ #
1059
+ class InvalidStateException < Struct.new(
1060
+ :message)
1061
+ SENSITIVE = []
1062
+ include Aws::Structure
1063
+ end
1064
+
1045
1065
  # The ciphertext references a key that doesn't exist or that you don't
1046
1066
  # have access to.
1047
1067
  #
@@ -1056,8 +1076,8 @@ module Aws::SNS
1056
1076
  include Aws::Structure
1057
1077
  end
1058
1078
 
1059
- # The request was rejected because the specified customer master key
1060
- # (CMK) isn't enabled.
1079
+ # The request was rejected because the specified Amazon Web Services KMS
1080
+ # key isn't enabled.
1061
1081
  #
1062
1082
  # @!attribute [rw] message
1063
1083
  # @return [String]
@@ -1071,9 +1091,9 @@ module Aws::SNS
1071
1091
  end
1072
1092
 
1073
1093
  # The request was rejected because the state of the specified resource
1074
- # isn't valid for this request. For more information, see [How Key
1075
- # State Affects Use of a Customer Master Key][1] in the *Key Management
1076
- # Service Developer Guide*.
1094
+ # isn't valid for this request. For more information, see [Key states
1095
+ # of Amazon Web Services KMS keys][1] in the *Key Management Service
1096
+ # Developer Guide*.
1077
1097
  #
1078
1098
  #
1079
1099
  #
@@ -2079,6 +2099,20 @@ module Aws::SNS
2079
2099
  include Aws::Structure
2080
2100
  end
2081
2101
 
2102
+ # Indicates that the request parameter has exceeded the maximum number
2103
+ # of concurrent message replays.
2104
+ #
2105
+ # @!attribute [rw] message
2106
+ # @return [String]
2107
+ #
2108
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/ReplayLimitExceededException AWS API Documentation
2109
+ #
2110
+ class ReplayLimitExceededException < Struct.new(
2111
+ :message)
2112
+ SENSITIVE = []
2113
+ include Aws::Structure
2114
+ end
2115
+
2082
2116
  # Can’t perform the action on the specified resource. Make sure that the
2083
2117
  # resource exists.
2084
2118
  #
@@ -2723,9 +2757,31 @@ module Aws::SNS
2723
2757
  # see [Fanout to Kinesis Data Firehose delivery streams][1] in the
2724
2758
  # *Amazon SNS Developer Guide*.
2725
2759
  #
2760
+ # The following attributes apply only to [FIFO topics][2]:
2761
+ #
2762
+ # * `ReplayPolicy` – Adds or updates an inline policy document for a
2763
+ # subscription to replay messages stored in the specified Amazon SNS
2764
+ # topic.
2765
+ #
2766
+ # * `ReplayStatus` – Retrieves the status of the subscription message
2767
+ # replay, which can be one of the following:
2768
+ #
2769
+ # * `Completed` – The replay has successfully redelivered all
2770
+ # messages, and is now delivering newly published messages. If an
2771
+ # ending point was specified in the `ReplayPolicy` then the
2772
+ # subscription will no longer receive newly published messages.
2773
+ #
2774
+ # * `In progress` – The replay is currently replaying the selected
2775
+ # messages.
2776
+ #
2777
+ # * `Failed` – The replay was unable to complete.
2778
+ #
2779
+ # * `Pending` – The default state while the replay initiates.
2780
+ #
2726
2781
  #
2727
2782
  #
2728
2783
  # [1]: https://docs.aws.amazon.com/sns/latest/dg/sns-firehose-as-subscriber.html
2784
+ # [2]: https://docs.aws.amazon.com/sns/latest/dg/sns-fifo-topics.html
2729
2785
  # @return [Hash<String,String>]
2730
2786
  #
2731
2787
  # @!attribute [rw] return_subscription_arn
data/lib/aws-sdk-sns.rb CHANGED
@@ -56,6 +56,6 @@ require_relative 'aws-sdk-sns/customizations'
56
56
  # @!group service
57
57
  module Aws::SNS
58
58
 
59
- GEM_VERSION = '1.67.0'
59
+ GEM_VERSION = '1.69.0'
60
60
 
61
61
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-sns
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.67.0
4
+ version: 1.69.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-09-27 00:00:00.000000000 Z
11
+ date: 2023-11-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '3'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 3.184.0
22
+ version: 3.188.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '3'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 3.184.0
32
+ version: 3.188.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -85,7 +85,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
85
85
  requirements:
86
86
  - - ">="
87
87
  - !ruby/object:Gem::Version
88
- version: '2.3'
88
+ version: '2.5'
89
89
  required_rubygems_version: !ruby/object:Gem::Requirement
90
90
  requirements:
91
91
  - - ">="