aws-sdk-sns 1.67.0 → 1.68.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: 9921dae7e901f6b92f15023790a9271ce4786617dbe76fb9fd20bf4673469e96
4
+ data.tar.gz: 4b26178549f466b6413f000ec5bf94be88dc2e0d98524160af8518d1b6e5a9d2
5
5
  SHA512:
6
- metadata.gz: e7f82aa3d7ab76be01061900c5cdebe4f34c4903ca0da09c744ee870e7f3d87ee32e173be480928578aea4ed144fd3a68b1c9f96fc573fe84681dfa5e17e6aa9
7
- data.tar.gz: 64350c634990f8fbc01e43adc2f54c23408e74b54a93c601a8f8e41203baae2b5a89cdee2c5bfadd4dc98f551f61f9e9b0264e7da72b88352b0e05c6bce27881
6
+ metadata.gz: 29464138a933236adc6676319da114bdc9a52aa3855e04b7af2af7f6d5d7faf3c752be59e0bb08f616b561fc54f770dbf8c65e82256ba4313f02468a2bd7e485
7
+ data.tar.gz: fce3141eb1f7e682a5aa322718475f2e4f51ab2251beb901fa89809f531b221d19c9d1f7231ee3a2a71eebcb447dfaf7afd455f87aa2fb7d684046d13af45c89
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.68.0 (2023-10-26)
5
+ ------------------
6
+
7
+ * Feature - Message Archiving and Replay is now supported in Amazon SNS for FIFO topics.
8
+
4
9
  1.67.0 (2023-09-27)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.67.0
1
+ 1.68.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.68.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.68.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.68.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-10-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core