aws-sdk-sns 1.66.0 → 1.75.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d668a5ad274277b21610151d036bd3828b480c67c7ecf16638e2e2dabb30e958
4
- data.tar.gz: 70379de3eb0e3a4918f57080f033fa60d97af608b360211828a32389a01ea90c
3
+ metadata.gz: 02b50967a1c68b4200e9328cadc5f8dd99957be380b2bfb21ab6e4f37c69000a
4
+ data.tar.gz: 281b0b2074024a06288f0a4cda76f046641c1b1b8cf7fab6ba3d20fcc9d745a0
5
5
  SHA512:
6
- metadata.gz: b83d0468d94a53270fddf3d12dd857aed7b698aeb4f55917dfd057fe3ec6913f118cd03b2b2b2418ade7611a1ca0c869aa0ad054244265ac7a6ca9901ca52ab9
7
- data.tar.gz: af214e8f312c6b3b26357f33a3e454ea8161180aeaa24c099c6461c5945c119cd4b9efa2e6adf0604bd954545b2d14a0765d48d3dff888222d6235e6924045ab
6
+ metadata.gz: dbff750f1f8fa69cee6bef556a2d94ff2f7a9d4bbed0e713aa119819010f66e37834566ca94c056f37d94ad98e743d893ef07a1f1aeecd693ab307262b1603dc
7
+ data.tar.gz: cf8830e93492ea57255354755a5221c9f528bdad17e3a22545c1635f54cee4193eab3cd4315f968ad766bbc44ae5cc7091dd3c3697522c07506833a988a04795
data/CHANGELOG.md CHANGED
@@ -1,6 +1,51 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.75.0 (2024-05-13)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ 1.74.0 (2024-04-25)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
14
+ 1.73.0 (2024-04-16)
15
+ ------------------
16
+
17
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
18
+
19
+ 1.72.0 (2024-02-16)
20
+ ------------------
21
+
22
+ * Feature - This release marks phone numbers as sensitive inputs.
23
+
24
+ 1.71.0 (2024-01-26)
25
+ ------------------
26
+
27
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
28
+
29
+ 1.70.0 (2023-11-28)
30
+ ------------------
31
+
32
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
33
+
34
+ 1.69.0 (2023-11-22)
35
+ ------------------
36
+
37
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
38
+
39
+ 1.68.0 (2023-10-26)
40
+ ------------------
41
+
42
+ * Feature - Message Archiving and Replay is now supported in Amazon SNS for FIFO topics.
43
+
44
+ 1.67.0 (2023-09-27)
45
+ ------------------
46
+
47
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
48
+
4
49
  1.66.0 (2023-09-19)
5
50
  ------------------
6
51
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.66.0
1
+ 1.75.0
@@ -22,6 +22,7 @@ require 'aws-sdk-core/plugins/endpoint_pattern.rb'
22
22
  require 'aws-sdk-core/plugins/response_paging.rb'
23
23
  require 'aws-sdk-core/plugins/stub_responses.rb'
24
24
  require 'aws-sdk-core/plugins/idempotency_token.rb'
25
+ require 'aws-sdk-core/plugins/invocation_id.rb'
25
26
  require 'aws-sdk-core/plugins/jsonvalue_converter.rb'
26
27
  require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
27
28
  require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
@@ -72,6 +73,7 @@ module Aws::SNS
72
73
  add_plugin(Aws::Plugins::ResponsePaging)
73
74
  add_plugin(Aws::Plugins::StubResponses)
74
75
  add_plugin(Aws::Plugins::IdempotencyToken)
76
+ add_plugin(Aws::Plugins::InvocationId)
75
77
  add_plugin(Aws::Plugins::JsonvalueConverter)
76
78
  add_plugin(Aws::Plugins::ClientMetricsPlugin)
77
79
  add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
@@ -196,10 +198,17 @@ module Aws::SNS
196
198
  # When set to 'true' the request body will not be compressed
197
199
  # for supported operations.
198
200
  #
199
- # @option options [String] :endpoint
200
- # The client endpoint is normally constructed from the `:region`
201
- # option. You should only configure an `:endpoint` when connecting
202
- # to test or custom endpoints. This should be a valid HTTP(S) URI.
201
+ # @option options [String, URI::HTTPS, URI::HTTP] :endpoint
202
+ # Normally you should not configure the `:endpoint` option
203
+ # directly. This is normally constructed from the `:region`
204
+ # option. Configuring `:endpoint` is normally reserved for
205
+ # connecting to test or custom endpoints. The endpoint should
206
+ # be a URI formatted like:
207
+ #
208
+ # 'http://example.com'
209
+ # 'https://example.com'
210
+ # 'http://example.com:123'
211
+ #
203
212
  #
204
213
  # @option options [Integer] :endpoint_cache_max_entries (1000)
205
214
  # Used for the maximum size limit of the LRU cache storing endpoints data
@@ -292,8 +301,9 @@ module Aws::SNS
292
301
  #
293
302
  # @option options [String] :sdk_ua_app_id
294
303
  # A unique and opaque application ID that is appended to the
295
- # User-Agent header as app/<sdk_ua_app_id>. It should have a
296
- # maximum length of 50.
304
+ # User-Agent header as app/sdk_ua_app_id. It should have a
305
+ # maximum length of 50. This variable is sourced from environment
306
+ # variable AWS_SDK_UA_APP_ID or the shared config profile attribute sdk_ua_app_id.
297
307
  #
298
308
  # @option options [String] :secret_access_key
299
309
  #
@@ -337,50 +347,65 @@ module Aws::SNS
337
347
  # @option options [Aws::SNS::EndpointProvider] :endpoint_provider
338
348
  # The endpoint provider used to resolve endpoints. Any object that responds to `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to `Aws::SNS::EndpointParameters`
339
349
  #
340
- # @option options [URI::HTTP,String] :http_proxy A proxy to send
341
- # requests through. Formatted like 'http://proxy.com:123'.
342
- #
343
- # @option options [Float] :http_open_timeout (15) The number of
344
- # seconds to wait when opening a HTTP session before raising a
345
- # `Timeout::Error`.
346
- #
347
- # @option options [Float] :http_read_timeout (60) The default
348
- # number of seconds to wait for response data. This value can
349
- # safely be set per-request on the session.
350
- #
351
- # @option options [Float] :http_idle_timeout (5) The number of
352
- # seconds a connection is allowed to sit idle before it is
353
- # considered stale. Stale connections are closed and removed
354
- # from the pool before making a request.
355
- #
356
- # @option options [Float] :http_continue_timeout (1) The number of
357
- # seconds to wait for a 100-continue response before sending the
358
- # request body. This option has no effect unless the request has
359
- # "Expect" header set to "100-continue". Defaults to `nil` which
360
- # disables this behaviour. This value can safely be set per
361
- # request on the session.
362
- #
363
- # @option options [Float] :ssl_timeout (nil) Sets the SSL timeout
364
- # in seconds.
350
+ # @option options [Float] :http_continue_timeout (1)
351
+ # The number of seconds to wait for a 100-continue response before sending the
352
+ # request body. This option has no effect unless the request has "Expect"
353
+ # header set to "100-continue". Defaults to `nil` which disables this
354
+ # behaviour. This value can safely be set per request on the session.
355
+ #
356
+ # @option options [Float] :http_idle_timeout (5)
357
+ # The number of seconds a connection is allowed to sit idle before it
358
+ # is considered stale. Stale connections are closed and removed from the
359
+ # pool before making a request.
360
+ #
361
+ # @option options [Float] :http_open_timeout (15)
362
+ # The default number of seconds to wait for response data.
363
+ # This value can safely be set per-request on the session.
364
+ #
365
+ # @option options [URI::HTTP,String] :http_proxy
366
+ # A proxy to send requests through. Formatted like 'http://proxy.com:123'.
367
+ #
368
+ # @option options [Float] :http_read_timeout (60)
369
+ # The default number of seconds to wait for response data.
370
+ # This value can safely be set per-request on the session.
371
+ #
372
+ # @option options [Boolean] :http_wire_trace (false)
373
+ # When `true`, HTTP debug output will be sent to the `:logger`.
374
+ #
375
+ # @option options [Proc] :on_chunk_received
376
+ # When a Proc object is provided, it will be used as callback when each chunk
377
+ # of the response body is received. It provides three arguments: the chunk,
378
+ # the number of bytes received, and the total number of
379
+ # bytes in the response (or nil if the server did not send a `content-length`).
380
+ #
381
+ # @option options [Proc] :on_chunk_sent
382
+ # When a Proc object is provided, it will be used as callback when each chunk
383
+ # of the request body is sent. It provides three arguments: the chunk,
384
+ # the number of bytes read from the body, and the total number of
385
+ # bytes in the body.
386
+ #
387
+ # @option options [Boolean] :raise_response_errors (true)
388
+ # When `true`, response errors are raised.
389
+ #
390
+ # @option options [String] :ssl_ca_bundle
391
+ # Full path to the SSL certificate authority bundle file that should be used when
392
+ # verifying peer certificates. If you do not pass `:ssl_ca_bundle` or
393
+ # `:ssl_ca_directory` the the system default will be used if available.
394
+ #
395
+ # @option options [String] :ssl_ca_directory
396
+ # Full path of the directory that contains the unbundled SSL certificate
397
+ # authority files for verifying peer certificates. If you do
398
+ # not pass `:ssl_ca_bundle` or `:ssl_ca_directory` the the system
399
+ # default will be used if available.
365
400
  #
366
- # @option options [Boolean] :http_wire_trace (false) When `true`,
367
- # HTTP debug output will be sent to the `:logger`.
401
+ # @option options [String] :ssl_ca_store
402
+ # Sets the X509::Store to verify peer certificate.
368
403
  #
369
- # @option options [Boolean] :ssl_verify_peer (true) When `true`,
370
- # SSL peer certificates are verified when establishing a
371
- # connection.
404
+ # @option options [Float] :ssl_timeout
405
+ # Sets the SSL timeout in seconds
372
406
  #
373
- # @option options [String] :ssl_ca_bundle Full path to the SSL
374
- # certificate authority bundle file that should be used when
375
- # verifying peer certificates. If you do not pass
376
- # `:ssl_ca_bundle` or `:ssl_ca_directory` the the system default
377
- # will be used if available.
378
- #
379
- # @option options [String] :ssl_ca_directory Full path of the
380
- # directory that contains the unbundled SSL certificate
381
- # authority files for verifying peer certificates. If you do
382
- # not pass `:ssl_ca_bundle` or `:ssl_ca_directory` the the
383
- # system default will be used if available.
407
+ # @option options [Boolean] :ssl_verify_peer (true)
408
+ # When `true`, SSL peer certificates are verified when establishing a connection.
384
409
  #
385
410
  def initialize(*args)
386
411
  super
@@ -535,8 +560,15 @@ module Aws::SNS
535
560
  # `PlatformPrincipal` is `signing key ID` and `PlatformCredential` is
536
561
  # `signing key`.
537
562
  #
538
- # * For `GCM` (Firebase Cloud Messaging), there is no
539
- # `PlatformPrincipal` and the `PlatformCredential` is `API key`.
563
+ # * For GCM (Firebase Cloud Messaging) using key credentials, there is
564
+ # no `PlatformPrincipal`. The `PlatformCredential` is `API key`.
565
+ #
566
+ # * For GCM (Firebase Cloud Messaging) using token credentials, there is
567
+ # no `PlatformPrincipal`. The `PlatformCredential` is a JSON formatted
568
+ # private key file. When using the Amazon Web Services CLI, the file
569
+ # must be in string format and special characters must be ignored. To
570
+ # format the file correctly, Amazon SNS recommends using the following
571
+ # command: `` SERVICE_JSON=`jq @json <<< cat service.json` ``.
540
572
  #
541
573
  # * For `MPNS`, `PlatformPrincipal` is `TLS certificate` and
542
574
  # `PlatformCredential` is `private key`.
@@ -558,7 +590,8 @@ module Aws::SNS
558
590
  # (Firebase Cloud Messaging).
559
591
  #
560
592
  # @option params [required, Hash<String,String>] :attributes
561
- # For a list of attributes, see [SetPlatformApplicationAttributes][1].
593
+ # For a list of attributes, see [ `SetPlatformApplicationAttributes`
594
+ # ][1].
562
595
  #
563
596
  #
564
597
  #
@@ -614,8 +647,8 @@ module Aws::SNS
614
647
  # [2]: https://docs.aws.amazon.com/sns/latest/dg/SNSMobilePushBaiduEndpoint.html
615
648
  #
616
649
  # @option params [required, String] :platform_application_arn
617
- # PlatformApplicationArn returned from CreatePlatformApplication is used
618
- # to create a an endpoint.
650
+ # `PlatformApplicationArn` returned from CreatePlatformApplication is
651
+ # used to create a an endpoint.
619
652
  #
620
653
  # @option params [required, String] :token
621
654
  # Unique identifier created by the notification service for an app on a
@@ -630,7 +663,7 @@ module Aws::SNS
630
663
  # not use this data. The data must be in UTF-8 format and less than 2KB.
631
664
  #
632
665
  # @option params [Hash<String,String>] :attributes
633
- # For a list of attributes, see [SetEndpointAttributes][1].
666
+ # For a list of attributes, see [ `SetEndpointAttributes` ][1].
634
667
  #
635
668
  #
636
669
  #
@@ -770,7 +803,13 @@ module Aws::SNS
770
803
  #
771
804
  # The following attributes apply only to [FIFO topics][4]:
772
805
  #
773
- # * `FifoTopic` – When this is set to `true`, a FIFO topic is created.
806
+ # * `ArchivePolicy` – Adds or updates an inline policy document to
807
+ # archive messages stored in the specified Amazon SNS topic.
808
+ #
809
+ # * `BeginningArchiveTime` – The earliest starting point at which a
810
+ # message in the topic’s archive can be replayed from. This point in
811
+ # time is based on the configured message retention period set by the
812
+ # topic’s message archiving policy.
774
813
  #
775
814
  # * `ContentBasedDeduplication` – Enables content-based deduplication
776
815
  # for FIFO topics.
@@ -858,7 +897,7 @@ module Aws::SNS
858
897
  # [1]: https://docs.aws.amazon.com/sns/latest/dg/SNSMobilePush.html
859
898
  #
860
899
  # @option params [required, String] :endpoint_arn
861
- # EndpointArn of endpoint to delete.
900
+ # `EndpointArn` of endpoint to delete.
862
901
  #
863
902
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
864
903
  #
@@ -887,7 +926,7 @@ module Aws::SNS
887
926
  # [1]: https://docs.aws.amazon.com/sns/latest/dg/SNSMobilePush.html
888
927
  #
889
928
  # @option params [required, String] :platform_application_arn
890
- # PlatformApplicationArn of platform application object to delete.
929
+ # `PlatformApplicationArn` of platform application object to delete.
891
930
  #
892
931
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
893
932
  #
@@ -1014,7 +1053,7 @@ module Aws::SNS
1014
1053
  # [1]: https://docs.aws.amazon.com/sns/latest/dg/SNSMobilePush.html
1015
1054
  #
1016
1055
  # @option params [required, String] :endpoint_arn
1017
- # EndpointArn for GetEndpointAttributes input.
1056
+ # `EndpointArn` for `GetEndpointAttributes` input.
1018
1057
  #
1019
1058
  # @return [Types::GetEndpointAttributesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1020
1059
  #
@@ -1050,7 +1089,7 @@ module Aws::SNS
1050
1089
  # [1]: https://docs.aws.amazon.com/sns/latest/dg/SNSMobilePush.html
1051
1090
  #
1052
1091
  # @option params [required, String] :platform_application_arn
1053
- # PlatformApplicationArn for GetPlatformApplicationAttributesInput.
1092
+ # `PlatformApplicationArn` for GetPlatformApplicationAttributesInput.
1054
1093
  #
1055
1094
  # @return [Types::GetPlatformApplicationAttributesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1056
1095
  #
@@ -1229,12 +1268,12 @@ module Aws::SNS
1229
1268
  # [1]: https://docs.aws.amazon.com/sns/latest/dg/SNSMobilePush.html
1230
1269
  #
1231
1270
  # @option params [required, String] :platform_application_arn
1232
- # PlatformApplicationArn for ListEndpointsByPlatformApplicationInput
1271
+ # `PlatformApplicationArn` for `ListEndpointsByPlatformApplicationInput`
1233
1272
  # action.
1234
1273
  #
1235
1274
  # @option params [String] :next_token
1236
- # NextToken string is used when calling
1237
- # ListEndpointsByPlatformApplication action to retrieve additional
1275
+ # `NextToken` string is used when calling
1276
+ # `ListEndpointsByPlatformApplication` action to retrieve additional
1238
1277
  # records that are available after the first page results.
1239
1278
  #
1240
1279
  # @return [Types::ListEndpointsByPlatformApplicationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
@@ -1380,9 +1419,9 @@ module Aws::SNS
1380
1419
  # [1]: https://docs.aws.amazon.com/sns/latest/dg/SNSMobilePush.html
1381
1420
  #
1382
1421
  # @option params [String] :next_token
1383
- # NextToken string is used when calling ListPlatformApplications action
1384
- # to retrieve additional records that are available after the first page
1385
- # results.
1422
+ # `NextToken` string is used when calling `ListPlatformApplications`
1423
+ # action to retrieve additional records that are available after the
1424
+ # first page results.
1386
1425
  #
1387
1426
  # @return [Types::ListPlatformApplicationsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1388
1427
  #
@@ -1823,7 +1862,7 @@ module Aws::SNS
1823
1862
  # resp = client.publish({
1824
1863
  # topic_arn: "topicARN",
1825
1864
  # target_arn: "String",
1826
- # phone_number: "String",
1865
+ # phone_number: "PhoneNumber",
1827
1866
  # message: "message", # required
1828
1867
  # subject: "subject",
1829
1868
  # message_structure: "messageStructure",
@@ -2019,7 +2058,7 @@ module Aws::SNS
2019
2058
  # [1]: https://docs.aws.amazon.com/sns/latest/dg/SNSMobilePush.html
2020
2059
  #
2021
2060
  # @option params [required, String] :endpoint_arn
2022
- # EndpointArn used for SetEndpointAttributes action.
2061
+ # EndpointArn used for `SetEndpointAttributes` action.
2023
2062
  #
2024
2063
  # @option params [required, Hash<String,String>] :attributes
2025
2064
  # A map of the endpoint attributes. Attributes in this map include the
@@ -2072,7 +2111,8 @@ module Aws::SNS
2072
2111
  # [2]: https://docs.aws.amazon.com/sns/latest/dg/sns-msg-status.html
2073
2112
  #
2074
2113
  # @option params [required, String] :platform_application_arn
2075
- # PlatformApplicationArn for SetPlatformApplicationAttributes action.
2114
+ # `PlatformApplicationArn` for `SetPlatformApplicationAttributes`
2115
+ # action.
2076
2116
  #
2077
2117
  # @option params [required, Hash<String,String>] :attributes
2078
2118
  # A map of the platform application attributes. Attributes in this map
@@ -2089,8 +2129,16 @@ module Aws::SNS
2089
2129
  # * For Apple Services using token credentials, `PlatformCredential`
2090
2130
  # is signing key.
2091
2131
  #
2092
- # * For GCM (Firebase Cloud Messaging), `PlatformCredential` is API
2093
- # key.
2132
+ # * For GCM (Firebase Cloud Messaging) using key credentials, there is
2133
+ # no `PlatformPrincipal`. The `PlatformCredential` is `API key`.
2134
+ #
2135
+ # * For GCM (Firebase Cloud Messaging) using token credentials, there
2136
+ # is no `PlatformPrincipal`. The `PlatformCredential` is a JSON
2137
+ # formatted private key file. When using the Amazon Web Services
2138
+ # CLI, the file must be in string format and special characters must
2139
+ # be ignored. To format the file correctly, Amazon SNS recommends
2140
+ # using the following command: `` SERVICE_JSON=`jq @json <<< cat
2141
+ # service.json` ``.
2094
2142
  # ^
2095
2143
  #
2096
2144
  # * `PlatformPrincipal` – The principal received from the notification
@@ -2558,7 +2606,7 @@ module Aws::SNS
2558
2606
  # `ConfirmSubscription` action to confirm the subscription.
2559
2607
  #
2560
2608
  # You call the `ConfirmSubscription` action with the token from the
2561
- # subscription response. Confirmation tokens are valid for three days.
2609
+ # subscription response. Confirmation tokens are valid for two days.
2562
2610
  #
2563
2611
  # This action is throttled at 100 transactions per second (TPS).
2564
2612
  #
@@ -2665,9 +2713,31 @@ module Aws::SNS
2665
2713
  # see [Fanout to Kinesis Data Firehose delivery streams][1] in the
2666
2714
  # *Amazon SNS Developer Guide*.
2667
2715
  #
2716
+ # The following attributes apply only to [FIFO topics][2]:
2717
+ #
2718
+ # * `ReplayPolicy` – Adds or updates an inline policy document for a
2719
+ # subscription to replay messages stored in the specified Amazon SNS
2720
+ # topic.
2721
+ #
2722
+ # * `ReplayStatus` – Retrieves the status of the subscription message
2723
+ # replay, which can be one of the following:
2724
+ #
2725
+ # * `Completed` – The replay has successfully redelivered all
2726
+ # messages, and is now delivering newly published messages. If an
2727
+ # ending point was specified in the `ReplayPolicy` then the
2728
+ # subscription will no longer receive newly published messages.
2729
+ #
2730
+ # * `In progress` – The replay is currently replaying the selected
2731
+ # messages.
2732
+ #
2733
+ # * `Failed` – The replay was unable to complete.
2734
+ #
2735
+ # * `Pending` – The default state while the replay initiates.
2736
+ #
2668
2737
  #
2669
2738
  #
2670
2739
  # [1]: https://docs.aws.amazon.com/sns/latest/dg/sns-firehose-as-subscriber.html
2740
+ # [2]: https://docs.aws.amazon.com/sns/latest/dg/sns-fifo-topics.html
2671
2741
  #
2672
2742
  # @option params [Boolean] :return_subscription_arn
2673
2743
  # Sets whether the response from the `Subscribe` request includes the
@@ -2889,7 +2959,7 @@ module Aws::SNS
2889
2959
  params: params,
2890
2960
  config: config)
2891
2961
  context[:gem_name] = 'aws-sdk-sns'
2892
- context[:gem_version] = '1.66.0'
2962
+ context[:gem_version] = '1.75.0'
2893
2963
  Seahorse::Client::Request.new(handlers, context)
2894
2964
  end
2895
2965