aws-sdk-sns 1.34.0 → 1.39.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 +275 -0
- data/LICENSE.txt +202 -0
- data/VERSION +1 -0
- data/lib/aws-sdk-sns.rb +2 -2
- data/lib/aws-sdk-sns/client.rb +109 -48
- data/lib/aws-sdk-sns/client_api.rb +1 -1
- data/lib/aws-sdk-sns/errors.rb +1 -1
- data/lib/aws-sdk-sns/platform_application.rb +1 -1
- data/lib/aws-sdk-sns/platform_endpoint.rb +1 -1
- data/lib/aws-sdk-sns/resource.rb +19 -11
- data/lib/aws-sdk-sns/subscription.rb +37 -2
- data/lib/aws-sdk-sns/topic.rb +82 -32
- data/lib/aws-sdk-sns/types.rb +142 -46
- metadata +8 -5
data/lib/aws-sdk-sns/topic.rb
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
# WARNING ABOUT GENERATED CODE
|
4
4
|
#
|
5
5
|
# This file is generated. See the contributing guide for more information:
|
6
|
-
# https://github.com/aws/aws-sdk-ruby/blob/
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
7
|
#
|
8
8
|
# WARNING ABOUT GENERATED CODE
|
9
9
|
|
@@ -71,11 +71,33 @@ module Aws::SNS
|
|
71
71
|
#
|
72
72
|
# ^
|
73
73
|
#
|
74
|
+
# The following attributes apply only to [FIFO topics][4]\:
|
75
|
+
#
|
76
|
+
# * `FifoTopic` – When this is set to `true`, a FIFO topic is created.
|
77
|
+
#
|
78
|
+
# * `ContentBasedDeduplication` – Enables content-based deduplication
|
79
|
+
# for FIFO topics.
|
80
|
+
#
|
81
|
+
# * By default, `ContentBasedDeduplication` is set to `false`. If you
|
82
|
+
# create a FIFO topic and this attribute is `false`, you must
|
83
|
+
# specify a value for the `MessageDeduplicationId` parameter for the
|
84
|
+
# [Publish][5] action.
|
85
|
+
#
|
86
|
+
# * When you set `ContentBasedDeduplication` to `true`, Amazon SNS
|
87
|
+
# uses a SHA-256 hash to generate the `MessageDeduplicationId` using
|
88
|
+
# the body of the message (but not the attributes of the message).
|
89
|
+
#
|
90
|
+
# (Optional) To override the generated value, you can specify a
|
91
|
+
# value for the the `MessageDeduplicationId` parameter for the
|
92
|
+
# `Publish` action.
|
93
|
+
#
|
74
94
|
#
|
75
95
|
#
|
76
96
|
# [1]: https://docs.aws.amazon.com/sns/latest/dg/sns-server-side-encryption.html
|
77
97
|
# [2]: https://docs.aws.amazon.com/sns/latest/dg/sns-server-side-encryption.html#sse-key-terms
|
78
98
|
# [3]: https://docs.aws.amazon.com/kms/latest/APIReference/API_DescribeKey.html#API_DescribeKey_RequestParameters
|
99
|
+
# [4]: https://docs.aws.amazon.com/sns/latest/dg/sns-fifo-topics.html
|
100
|
+
# [5]: https://docs.aws.amazon.com/sns/latest/api/API_Publish.html
|
79
101
|
# @return [Hash<String,String>]
|
80
102
|
def attributes
|
81
103
|
data[:attributes]
|
@@ -366,25 +388,31 @@ module Aws::SNS
|
|
366
388
|
#
|
367
389
|
# ^
|
368
390
|
#
|
369
|
-
# The following attribute applies only to FIFO topics
|
391
|
+
# The following attribute applies only to [FIFO topics][4]\:
|
370
392
|
#
|
371
|
-
# * `ContentBasedDeduplication` – Enables content-based deduplication
|
372
|
-
#
|
373
|
-
# `MessageDeduplicationId` using the body of the message (but not the
|
374
|
-
# attributes of the message).
|
393
|
+
# * `ContentBasedDeduplication` – Enables content-based deduplication
|
394
|
+
# for FIFO topics.
|
375
395
|
#
|
376
|
-
#
|
377
|
-
#
|
378
|
-
#
|
396
|
+
# * By default, `ContentBasedDeduplication` is set to `false`. If you
|
397
|
+
# create a FIFO topic and this attribute is `false`, you must
|
398
|
+
# specify a value for the `MessageDeduplicationId` parameter for the
|
399
|
+
# [Publish][5] action.
|
379
400
|
#
|
380
|
-
#
|
381
|
-
#
|
401
|
+
# * When you set `ContentBasedDeduplication` to `true`, Amazon SNS
|
402
|
+
# uses a SHA-256 hash to generate the `MessageDeduplicationId` using
|
403
|
+
# the body of the message (but not the attributes of the message).
|
404
|
+
#
|
405
|
+
# (Optional) To override the generated value, you can specify a
|
406
|
+
# value for the the `MessageDeduplicationId` parameter for the
|
407
|
+
# `Publish` action.
|
382
408
|
#
|
383
409
|
#
|
384
410
|
#
|
385
411
|
# [1]: https://docs.aws.amazon.com/sns/latest/dg/sns-server-side-encryption.html
|
386
412
|
# [2]: https://docs.aws.amazon.com/sns/latest/dg/sns-server-side-encryption.html#sse-key-terms
|
387
413
|
# [3]: https://docs.aws.amazon.com/kms/latest/APIReference/API_DescribeKey.html#API_DescribeKey_RequestParameters
|
414
|
+
# [4]: https://docs.aws.amazon.com/sns/latest/dg/sns-fifo-topics.html
|
415
|
+
# [5]: https://docs.aws.amazon.com/sns/latest/api/API_Publish.html
|
388
416
|
# @option options [String] :attribute_value
|
389
417
|
# The new value for the attribute.
|
390
418
|
# @return [EmptyStructure]
|
@@ -406,7 +434,7 @@ module Aws::SNS
|
|
406
434
|
# })
|
407
435
|
# @param [Hash] options ({})
|
408
436
|
# @option options [required, String] :protocol
|
409
|
-
# The protocol you want to use. Supported protocols include:
|
437
|
+
# The protocol that you want to use. Supported protocols include:
|
410
438
|
#
|
411
439
|
# * `http` – delivery of JSON-encoded message via HTTP POST
|
412
440
|
#
|
@@ -421,35 +449,41 @@ module Aws::SNS
|
|
421
449
|
# * `sqs` – delivery of JSON-encoded message to an Amazon SQS queue
|
422
450
|
#
|
423
451
|
# * `application` – delivery of JSON-encoded message to an EndpointArn
|
424
|
-
# for a mobile app and device
|
452
|
+
# for a mobile app and device
|
425
453
|
#
|
426
|
-
# * `lambda` – delivery of JSON-encoded message to an
|
427
|
-
# function
|
454
|
+
# * `lambda` – delivery of JSON-encoded message to an AWS Lambda
|
455
|
+
# function
|
456
|
+
#
|
457
|
+
# * `firehose` – delivery of JSON-encoded message to an Amazon Kinesis
|
458
|
+
# Data Firehose delivery stream.
|
428
459
|
# @option options [String] :endpoint
|
429
460
|
# The endpoint that you want to receive notifications. Endpoints vary by
|
430
461
|
# protocol:
|
431
462
|
#
|
432
463
|
# * For the `http` protocol, the (public) endpoint is a URL beginning
|
433
|
-
# with `http
|
464
|
+
# with `http://`.
|
434
465
|
#
|
435
466
|
# * For the `https` protocol, the (public) endpoint is a URL beginning
|
436
|
-
# with `https
|
467
|
+
# with `https://`.
|
437
468
|
#
|
438
|
-
# * For the `email` protocol, the endpoint is an email address
|
469
|
+
# * For the `email` protocol, the endpoint is an email address.
|
439
470
|
#
|
440
|
-
# * For the `email-json` protocol, the endpoint is an email address
|
471
|
+
# * For the `email-json` protocol, the endpoint is an email address.
|
441
472
|
#
|
442
473
|
# * For the `sms` protocol, the endpoint is a phone number of an
|
443
|
-
# SMS-enabled device
|
474
|
+
# SMS-enabled device.
|
444
475
|
#
|
445
476
|
# * For the `sqs` protocol, the endpoint is the ARN of an Amazon SQS
|
446
|
-
# queue
|
477
|
+
# queue.
|
447
478
|
#
|
448
479
|
# * For the `application` protocol, the endpoint is the EndpointArn of a
|
449
480
|
# mobile app and device.
|
450
481
|
#
|
451
|
-
# * For the `lambda` protocol, the endpoint is the ARN of an
|
452
|
-
#
|
482
|
+
# * For the `lambda` protocol, the endpoint is the ARN of an AWS Lambda
|
483
|
+
# function.
|
484
|
+
#
|
485
|
+
# * For the `firehose` protocol, the endpoint is the ARN of an Amazon
|
486
|
+
# Kinesis Data Firehose delivery stream.
|
453
487
|
# @option options [Hash<String,String>] :attributes
|
454
488
|
# A map of attributes with their corresponding values.
|
455
489
|
#
|
@@ -474,19 +508,35 @@ module Aws::SNS
|
|
474
508
|
# endpoint is unreachable) or server errors (for example, when the
|
475
509
|
# service that powers the subscribed endpoint becomes unavailable) are
|
476
510
|
# held in the dead-letter queue for further analysis or reprocessing.
|
511
|
+
#
|
512
|
+
# The following attribute applies only to Amazon Kinesis Data Firehose
|
513
|
+
# delivery stream subscriptions:
|
514
|
+
#
|
515
|
+
# * `SubscriptionRoleArn` – The ARN of the IAM role that has the
|
516
|
+
# following:
|
517
|
+
#
|
518
|
+
# * Permission to write to the Kinesis Data Firehose delivery stream
|
519
|
+
#
|
520
|
+
# * Amazon SNS listed as a trusted entity
|
521
|
+
#
|
522
|
+
# Specifying a valid ARN for this attribute is required for Kinesis
|
523
|
+
# Data Firehose delivery stream subscriptions. For more information,
|
524
|
+
# see [Fanout to Kinesis Data Firehose delivery streams][1] in the
|
525
|
+
# *Amazon SNS Developer Guide*.
|
526
|
+
#
|
527
|
+
#
|
528
|
+
#
|
529
|
+
# [1]: https://docs.aws.amazon.com/sns/latest/dg/sns-kinesis-subscriber.html
|
477
530
|
# @option options [Boolean] :return_subscription_arn
|
478
531
|
# Sets whether the response from the `Subscribe` request includes the
|
479
532
|
# subscription ARN, even if the subscription is not yet confirmed.
|
480
533
|
#
|
481
|
-
#
|
482
|
-
#
|
483
|
-
#
|
484
|
-
#
|
485
|
-
#
|
486
|
-
#
|
487
|
-
# confirmation token.
|
488
|
-
#
|
489
|
-
# ^
|
534
|
+
# If you set this parameter to `true`, the response includes the ARN in
|
535
|
+
# all cases, even if the subscription is not yet confirmed. In addition
|
536
|
+
# to the ARN for confirmed subscriptions, the response also includes the
|
537
|
+
# `pending subscription` ARN value for subscriptions that aren't yet
|
538
|
+
# confirmed. A subscription becomes confirmed when the subscriber calls
|
539
|
+
# the `ConfirmSubscription` action with a confirmation token.
|
490
540
|
#
|
491
541
|
#
|
492
542
|
#
|
data/lib/aws-sdk-sns/types.rb
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
# WARNING ABOUT GENERATED CODE
|
4
4
|
#
|
5
5
|
# This file is generated. See the contributing guide for more information:
|
6
|
-
# https://github.com/aws/aws-sdk-ruby/blob/
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
7
|
#
|
8
8
|
# WARNING ABOUT GENERATED CODE
|
9
9
|
|
@@ -352,26 +352,34 @@ module Aws::SNS
|
|
352
352
|
#
|
353
353
|
# ^
|
354
354
|
#
|
355
|
-
# The following
|
355
|
+
# The following attributes apply only to [FIFO topics][4]\:
|
356
356
|
#
|
357
|
-
# * `
|
358
|
-
# Amazon SNS uses a SHA-256 hash to generate the
|
359
|
-
# `MessageDeduplicationId` using the body of the message (but not
|
360
|
-
# the attributes of the message).
|
357
|
+
# * `FifoTopic` – When this is set to `true`, a FIFO topic is created.
|
361
358
|
#
|
362
|
-
# *
|
363
|
-
#
|
364
|
-
# treated as duplicates and only one copy of the message is
|
365
|
-
# delivered.
|
359
|
+
# * `ContentBasedDeduplication` – Enables content-based deduplication
|
360
|
+
# for FIFO topics.
|
366
361
|
#
|
367
|
-
#
|
368
|
-
#
|
362
|
+
# * By default, `ContentBasedDeduplication` is set to `false`. If
|
363
|
+
# you create a FIFO topic and this attribute is `false`, you must
|
364
|
+
# specify a value for the `MessageDeduplicationId` parameter for
|
365
|
+
# the [Publish][5] action.
|
366
|
+
#
|
367
|
+
# * When you set `ContentBasedDeduplication` to `true`, Amazon SNS
|
368
|
+
# uses a SHA-256 hash to generate the `MessageDeduplicationId`
|
369
|
+
# using the body of the message (but not the attributes of the
|
370
|
+
# message).
|
371
|
+
#
|
372
|
+
# (Optional) To override the generated value, you can specify a
|
373
|
+
# value for the the `MessageDeduplicationId` parameter for the
|
374
|
+
# `Publish` action.
|
369
375
|
#
|
370
376
|
#
|
371
377
|
#
|
372
378
|
# [1]: https://docs.aws.amazon.com/sns/latest/dg/sns-server-side-encryption.html
|
373
379
|
# [2]: https://docs.aws.amazon.com/sns/latest/dg/sns-server-side-encryption.html#sse-key-terms
|
374
380
|
# [3]: https://docs.aws.amazon.com/kms/latest/APIReference/API_DescribeKey.html#API_DescribeKey_RequestParameters
|
381
|
+
# [4]: https://docs.aws.amazon.com/sns/latest/dg/sns-fifo-topics.html
|
382
|
+
# [5]: https://docs.aws.amazon.com/sns/latest/api/API_Publish.html
|
375
383
|
# @return [Hash<String,String>]
|
376
384
|
#
|
377
385
|
# @!attribute [rw] tags
|
@@ -726,9 +734,25 @@ module Aws::SNS
|
|
726
734
|
# * `TopicArn` – The topic ARN that the subscription is associated
|
727
735
|
# with.
|
728
736
|
#
|
737
|
+
# The following attribute applies only to Amazon Kinesis Data Firehose
|
738
|
+
# delivery stream subscriptions:
|
739
|
+
#
|
740
|
+
# * `SubscriptionRoleArn` – The ARN of the IAM role that has the
|
741
|
+
# following:
|
742
|
+
#
|
743
|
+
# * Permission to write to the Kinesis Data Firehose delivery stream
|
744
|
+
#
|
745
|
+
# * Amazon SNS listed as a trusted entity
|
746
|
+
#
|
747
|
+
# Specifying a valid ARN for this attribute is required for Kinesis
|
748
|
+
# Data Firehose delivery stream subscriptions. For more information,
|
749
|
+
# see [Fanout to Kinesis Data Firehose delivery streams][2] in the
|
750
|
+
# *Amazon SNS Developer Guide*.
|
751
|
+
#
|
729
752
|
#
|
730
753
|
#
|
731
754
|
# [1]: https://docs.aws.amazon.com/sns/latest/dg/sns-message-filtering.html
|
755
|
+
# [2]: https://docs.aws.amazon.com/sns/latest/dg/sns-kinesis-subscriber.html
|
732
756
|
# @return [Hash<String,String>]
|
733
757
|
#
|
734
758
|
# @see http://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/GetSubscriptionAttributesResponse AWS API Documentation
|
@@ -801,11 +825,34 @@ module Aws::SNS
|
|
801
825
|
#
|
802
826
|
# ^
|
803
827
|
#
|
828
|
+
# The following attributes apply only to [FIFO topics][4]\:
|
829
|
+
#
|
830
|
+
# * `FifoTopic` – When this is set to `true`, a FIFO topic is created.
|
831
|
+
#
|
832
|
+
# * `ContentBasedDeduplication` – Enables content-based deduplication
|
833
|
+
# for FIFO topics.
|
834
|
+
#
|
835
|
+
# * By default, `ContentBasedDeduplication` is set to `false`. If
|
836
|
+
# you create a FIFO topic and this attribute is `false`, you must
|
837
|
+
# specify a value for the `MessageDeduplicationId` parameter for
|
838
|
+
# the [Publish][5] action.
|
839
|
+
#
|
840
|
+
# * When you set `ContentBasedDeduplication` to `true`, Amazon SNS
|
841
|
+
# uses a SHA-256 hash to generate the `MessageDeduplicationId`
|
842
|
+
# using the body of the message (but not the attributes of the
|
843
|
+
# message).
|
844
|
+
#
|
845
|
+
# (Optional) To override the generated value, you can specify a
|
846
|
+
# value for the the `MessageDeduplicationId` parameter for the
|
847
|
+
# `Publish` action.
|
848
|
+
#
|
804
849
|
#
|
805
850
|
#
|
806
851
|
# [1]: https://docs.aws.amazon.com/sns/latest/dg/sns-server-side-encryption.html
|
807
852
|
# [2]: https://docs.aws.amazon.com/sns/latest/dg/sns-server-side-encryption.html#sse-key-terms
|
808
853
|
# [3]: https://docs.aws.amazon.com/kms/latest/APIReference/API_DescribeKey.html#API_DescribeKey_RequestParameters
|
854
|
+
# [4]: https://docs.aws.amazon.com/sns/latest/dg/sns-fifo-topics.html
|
855
|
+
# [5]: https://docs.aws.amazon.com/sns/latest/api/API_Publish.html
|
809
856
|
# @return [Hash<String,String>]
|
810
857
|
#
|
811
858
|
# @see http://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/GetTopicAttributesResponse AWS API Documentation
|
@@ -1275,12 +1322,14 @@ module Aws::SNS
|
|
1275
1322
|
# message body should not be empty or null. All parts of the message
|
1276
1323
|
# attribute, including name, type, and value, are included in the
|
1277
1324
|
# message size restriction, which is currently 256 KB (262,144 bytes).
|
1278
|
-
# For more information, see [
|
1325
|
+
# For more information, see [Amazon SNS message attributes][2] and
|
1326
|
+
# [Publishing to a mobile phone][3] in the *Amazon SNS Developer Guide.*
|
1279
1327
|
#
|
1280
1328
|
#
|
1281
1329
|
#
|
1282
1330
|
# [1]: https://docs.aws.amazon.com/sns/latest/api/API_Publish.html
|
1283
1331
|
# [2]: https://docs.aws.amazon.com/sns/latest/dg/SNSMessageAttributes.html
|
1332
|
+
# [3]: https://docs.aws.amazon.com/sns/latest/dg/sms_publish-to-phone.html
|
1284
1333
|
#
|
1285
1334
|
# @note When making an API call, you may pass MessageAttributeValue
|
1286
1335
|
# data as a hash:
|
@@ -1883,8 +1932,7 @@ module Aws::SNS
|
|
1883
1932
|
# A map of attributes with their corresponding values.
|
1884
1933
|
#
|
1885
1934
|
# The following lists the names, descriptions, and values of the
|
1886
|
-
# special request parameters that
|
1887
|
-
# uses:
|
1935
|
+
# special request parameters that this action uses:
|
1888
1936
|
#
|
1889
1937
|
# * `DeliveryPolicy` – The policy that defines how Amazon SNS retries
|
1890
1938
|
# failed deliveries to HTTP/S endpoints.
|
@@ -1905,6 +1953,25 @@ module Aws::SNS
|
|
1905
1953
|
# when the service that powers the subscribed endpoint becomes
|
1906
1954
|
# unavailable) are held in the dead-letter queue for further
|
1907
1955
|
# analysis or reprocessing.
|
1956
|
+
#
|
1957
|
+
# The following attribute applies only to Amazon Kinesis Data Firehose
|
1958
|
+
# delivery stream subscriptions:
|
1959
|
+
#
|
1960
|
+
# * `SubscriptionRoleArn` – The ARN of the IAM role that has the
|
1961
|
+
# following:
|
1962
|
+
#
|
1963
|
+
# * Permission to write to the Kinesis Data Firehose delivery stream
|
1964
|
+
#
|
1965
|
+
# * Amazon SNS listed as a trusted entity
|
1966
|
+
#
|
1967
|
+
# Specifying a valid ARN for this attribute is required for Kinesis
|
1968
|
+
# Data Firehose delivery stream subscriptions. For more information,
|
1969
|
+
# see [Fanout to Kinesis Data Firehose delivery streams][1] in the
|
1970
|
+
# *Amazon SNS Developer Guide*.
|
1971
|
+
#
|
1972
|
+
#
|
1973
|
+
#
|
1974
|
+
# [1]: https://docs.aws.amazon.com/sns/latest/dg/sns-kinesis-subscriber.html
|
1908
1975
|
# @return [String]
|
1909
1976
|
#
|
1910
1977
|
# @!attribute [rw] attribute_value
|
@@ -1963,26 +2030,32 @@ module Aws::SNS
|
|
1963
2030
|
#
|
1964
2031
|
# ^
|
1965
2032
|
#
|
1966
|
-
# The following attribute applies only to FIFO topics
|
2033
|
+
# The following attribute applies only to [FIFO topics][4]\:
|
1967
2034
|
#
|
1968
|
-
# * `ContentBasedDeduplication` – Enables content-based deduplication
|
1969
|
-
#
|
1970
|
-
# `MessageDeduplicationId` using the body of the message (but not
|
1971
|
-
# the attributes of the message).
|
2035
|
+
# * `ContentBasedDeduplication` – Enables content-based deduplication
|
2036
|
+
# for FIFO topics.
|
1972
2037
|
#
|
1973
|
-
#
|
1974
|
-
#
|
1975
|
-
#
|
1976
|
-
#
|
2038
|
+
# * By default, `ContentBasedDeduplication` is set to `false`. If
|
2039
|
+
# you create a FIFO topic and this attribute is `false`, you must
|
2040
|
+
# specify a value for the `MessageDeduplicationId` parameter for
|
2041
|
+
# the [Publish][5] action.
|
1977
2042
|
#
|
1978
|
-
#
|
1979
|
-
#
|
2043
|
+
# * When you set `ContentBasedDeduplication` to `true`, Amazon SNS
|
2044
|
+
# uses a SHA-256 hash to generate the `MessageDeduplicationId`
|
2045
|
+
# using the body of the message (but not the attributes of the
|
2046
|
+
# message).
|
2047
|
+
#
|
2048
|
+
# (Optional) To override the generated value, you can specify a
|
2049
|
+
# value for the the `MessageDeduplicationId` parameter for the
|
2050
|
+
# `Publish` action.
|
1980
2051
|
#
|
1981
2052
|
#
|
1982
2053
|
#
|
1983
2054
|
# [1]: https://docs.aws.amazon.com/sns/latest/dg/sns-server-side-encryption.html
|
1984
2055
|
# [2]: https://docs.aws.amazon.com/sns/latest/dg/sns-server-side-encryption.html#sse-key-terms
|
1985
2056
|
# [3]: https://docs.aws.amazon.com/kms/latest/APIReference/API_DescribeKey.html#API_DescribeKey_RequestParameters
|
2057
|
+
# [4]: https://docs.aws.amazon.com/sns/latest/dg/sns-fifo-topics.html
|
2058
|
+
# [5]: https://docs.aws.amazon.com/sns/latest/api/API_Publish.html
|
1986
2059
|
# @return [String]
|
1987
2060
|
#
|
1988
2061
|
# @!attribute [rw] attribute_value
|
@@ -2033,7 +2106,7 @@ module Aws::SNS
|
|
2033
2106
|
# @return [String]
|
2034
2107
|
#
|
2035
2108
|
# @!attribute [rw] protocol
|
2036
|
-
# The protocol you want to use. Supported protocols include:
|
2109
|
+
# The protocol that you want to use. Supported protocols include:
|
2037
2110
|
#
|
2038
2111
|
# * `http` – delivery of JSON-encoded message via HTTP POST
|
2039
2112
|
#
|
@@ -2048,10 +2121,13 @@ module Aws::SNS
|
|
2048
2121
|
# * `sqs` – delivery of JSON-encoded message to an Amazon SQS queue
|
2049
2122
|
#
|
2050
2123
|
# * `application` – delivery of JSON-encoded message to an EndpointArn
|
2051
|
-
# for a mobile app and device
|
2124
|
+
# for a mobile app and device
|
2125
|
+
#
|
2126
|
+
# * `lambda` – delivery of JSON-encoded message to an AWS Lambda
|
2127
|
+
# function
|
2052
2128
|
#
|
2053
|
-
# * `
|
2054
|
-
#
|
2129
|
+
# * `firehose` – delivery of JSON-encoded message to an Amazon Kinesis
|
2130
|
+
# Data Firehose delivery stream.
|
2055
2131
|
# @return [String]
|
2056
2132
|
#
|
2057
2133
|
# @!attribute [rw] endpoint
|
@@ -2059,26 +2135,29 @@ module Aws::SNS
|
|
2059
2135
|
# by protocol:
|
2060
2136
|
#
|
2061
2137
|
# * For the `http` protocol, the (public) endpoint is a URL beginning
|
2062
|
-
# with `http
|
2138
|
+
# with `http://`.
|
2063
2139
|
#
|
2064
2140
|
# * For the `https` protocol, the (public) endpoint is a URL beginning
|
2065
|
-
# with `https
|
2141
|
+
# with `https://`.
|
2066
2142
|
#
|
2067
|
-
# * For the `email` protocol, the endpoint is an email address
|
2143
|
+
# * For the `email` protocol, the endpoint is an email address.
|
2068
2144
|
#
|
2069
|
-
# * For the `email-json` protocol, the endpoint is an email address
|
2145
|
+
# * For the `email-json` protocol, the endpoint is an email address.
|
2070
2146
|
#
|
2071
2147
|
# * For the `sms` protocol, the endpoint is a phone number of an
|
2072
|
-
# SMS-enabled device
|
2148
|
+
# SMS-enabled device.
|
2073
2149
|
#
|
2074
2150
|
# * For the `sqs` protocol, the endpoint is the ARN of an Amazon SQS
|
2075
|
-
# queue
|
2151
|
+
# queue.
|
2076
2152
|
#
|
2077
2153
|
# * For the `application` protocol, the endpoint is the EndpointArn of
|
2078
2154
|
# a mobile app and device.
|
2079
2155
|
#
|
2080
|
-
# * For the `lambda` protocol, the endpoint is the ARN of an
|
2156
|
+
# * For the `lambda` protocol, the endpoint is the ARN of an AWS
|
2081
2157
|
# Lambda function.
|
2158
|
+
#
|
2159
|
+
# * For the `firehose` protocol, the endpoint is the ARN of an Amazon
|
2160
|
+
# Kinesis Data Firehose delivery stream.
|
2082
2161
|
# @return [String]
|
2083
2162
|
#
|
2084
2163
|
# @!attribute [rw] attributes
|
@@ -2107,21 +2186,38 @@ module Aws::SNS
|
|
2107
2186
|
# when the service that powers the subscribed endpoint becomes
|
2108
2187
|
# unavailable) are held in the dead-letter queue for further
|
2109
2188
|
# analysis or reprocessing.
|
2189
|
+
#
|
2190
|
+
# The following attribute applies only to Amazon Kinesis Data Firehose
|
2191
|
+
# delivery stream subscriptions:
|
2192
|
+
#
|
2193
|
+
# * `SubscriptionRoleArn` – The ARN of the IAM role that has the
|
2194
|
+
# following:
|
2195
|
+
#
|
2196
|
+
# * Permission to write to the Kinesis Data Firehose delivery stream
|
2197
|
+
#
|
2198
|
+
# * Amazon SNS listed as a trusted entity
|
2199
|
+
#
|
2200
|
+
# Specifying a valid ARN for this attribute is required for Kinesis
|
2201
|
+
# Data Firehose delivery stream subscriptions. For more information,
|
2202
|
+
# see [Fanout to Kinesis Data Firehose delivery streams][1] in the
|
2203
|
+
# *Amazon SNS Developer Guide*.
|
2204
|
+
#
|
2205
|
+
#
|
2206
|
+
#
|
2207
|
+
# [1]: https://docs.aws.amazon.com/sns/latest/dg/sns-kinesis-subscriber.html
|
2110
2208
|
# @return [Hash<String,String>]
|
2111
2209
|
#
|
2112
2210
|
# @!attribute [rw] return_subscription_arn
|
2113
2211
|
# Sets whether the response from the `Subscribe` request includes the
|
2114
2212
|
# subscription ARN, even if the subscription is not yet confirmed.
|
2115
2213
|
#
|
2116
|
-
#
|
2117
|
-
#
|
2118
|
-
#
|
2119
|
-
#
|
2120
|
-
#
|
2121
|
-
#
|
2122
|
-
#
|
2123
|
-
#
|
2124
|
-
# ^
|
2214
|
+
# If you set this parameter to `true`, the response includes the ARN
|
2215
|
+
# in all cases, even if the subscription is not yet confirmed. In
|
2216
|
+
# addition to the ARN for confirmed subscriptions, the response also
|
2217
|
+
# includes the `pending subscription` ARN value for subscriptions that
|
2218
|
+
# aren't yet confirmed. A subscription becomes confirmed when the
|
2219
|
+
# subscriber calls the `ConfirmSubscription` action with a
|
2220
|
+
# confirmation token.
|
2125
2221
|
#
|
2126
2222
|
#
|
2127
2223
|
#
|