aws-sdk-sns 1.42.0 → 1.77.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.
@@ -0,0 +1,64 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing guide for more information:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws
9
+ module SNS
10
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SNS/PlatformApplication.html
11
+ class PlatformApplication
12
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SNS/PlatformApplication.html#initialize-instance_method
13
+ def initialize: (String arn, Hash[Symbol, untyped] options) -> void
14
+ | (arn: String, ?client: Client) -> void
15
+ | (Hash[Symbol, untyped] args) -> void
16
+
17
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SNS/PlatformApplication.html#arn-instance_method
18
+ def arn: () -> String
19
+
20
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SNS/PlatformApplication.html#attributes-instance_method
21
+ def attributes: () -> ::Hash[::String, ::String]
22
+
23
+ def client: () -> Client
24
+
25
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SNS/PlatformApplication.html#load-instance_method
26
+ def load: () -> self
27
+ alias reload load
28
+
29
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SNS/PlatformApplication.html#data-instance_method
30
+ def data: () -> Types::GetPlatformApplicationAttributesResponse
31
+
32
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SNS/PlatformApplication.html#data_loaded?-instance_method
33
+ def data_loaded?: () -> bool
34
+
35
+
36
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SNS/PlatformApplication.html#create_platform_endpoint-instance_method
37
+ def create_platform_endpoint: (
38
+ token: ::String,
39
+ ?custom_user_data: ::String,
40
+ ?attributes: Hash[::String, ::String]
41
+ ) -> PlatformEndpoint
42
+ | (?Hash[Symbol, untyped]) -> PlatformEndpoint
43
+
44
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SNS/PlatformApplication.html#delete-instance_method
45
+ def delete: (
46
+ ) -> ::Aws::EmptyStructure
47
+ | (?Hash[Symbol, untyped]) -> ::Aws::EmptyStructure
48
+
49
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SNS/PlatformApplication.html#set_attributes-instance_method
50
+ def set_attributes: (
51
+ attributes: Hash[::String, ::String]
52
+ ) -> ::Aws::EmptyStructure
53
+ | (?Hash[Symbol, untyped]) -> ::Aws::EmptyStructure
54
+
55
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SNS/PlatformApplication.html#endpoints-instance_method
56
+ def endpoints: (
57
+ ) -> PlatformEndpoint::Collection
58
+ | (?Hash[Symbol, untyped]) -> PlatformEndpoint::Collection
59
+
60
+ class Collection < ::Aws::Resources::Collection[PlatformApplication]
61
+ end
62
+ end
63
+ end
64
+ end
@@ -0,0 +1,68 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing guide for more information:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws
9
+ module SNS
10
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SNS/PlatformEndpoint.html
11
+ class PlatformEndpoint
12
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SNS/PlatformEndpoint.html#initialize-instance_method
13
+ def initialize: (String arn, Hash[Symbol, untyped] options) -> void
14
+ | (arn: String, ?client: Client) -> void
15
+ | (Hash[Symbol, untyped] args) -> void
16
+
17
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SNS/PlatformEndpoint.html#arn-instance_method
18
+ def arn: () -> String
19
+
20
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SNS/PlatformEndpoint.html#attributes-instance_method
21
+ def attributes: () -> ::Hash[::String, ::String]
22
+
23
+ def client: () -> Client
24
+
25
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SNS/PlatformEndpoint.html#load-instance_method
26
+ def load: () -> self
27
+ alias reload load
28
+
29
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SNS/PlatformEndpoint.html#data-instance_method
30
+ def data: () -> Types::GetEndpointAttributesResponse
31
+
32
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SNS/PlatformEndpoint.html#data_loaded?-instance_method
33
+ def data_loaded?: () -> bool
34
+
35
+
36
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SNS/PlatformEndpoint.html#delete-instance_method
37
+ def delete: (
38
+ ) -> ::Aws::EmptyStructure
39
+ | (?Hash[Symbol, untyped]) -> ::Aws::EmptyStructure
40
+
41
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SNS/PlatformEndpoint.html#publish-instance_method
42
+ def publish: (
43
+ ?topic_arn: ::String,
44
+ ?phone_number: ::String,
45
+ message: ::String,
46
+ ?subject: ::String,
47
+ ?message_structure: ::String,
48
+ ?message_attributes: Hash[::String, {
49
+ data_type: ::String,
50
+ string_value: ::String?,
51
+ binary_value: ::String?
52
+ }],
53
+ ?message_deduplication_id: ::String,
54
+ ?message_group_id: ::String
55
+ ) -> Types::PublishResponse
56
+ | (?Hash[Symbol, untyped]) -> Types::PublishResponse
57
+
58
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SNS/PlatformEndpoint.html#set_attributes-instance_method
59
+ def set_attributes: (
60
+ attributes: Hash[::String, ::String]
61
+ ) -> ::Aws::EmptyStructure
62
+ | (?Hash[Symbol, untyped]) -> ::Aws::EmptyStructure
63
+
64
+ class Collection < ::Aws::Resources::Collection[PlatformEndpoint]
65
+ end
66
+ end
67
+ end
68
+ end
data/sig/resource.rbs ADDED
@@ -0,0 +1,128 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing guide for more information:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws
9
+ module SNS
10
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SNS/Resource.html
11
+ class Resource
12
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SNS/Resource.html#initialize-instance_method
13
+ def initialize: (
14
+ ?client: Client,
15
+ ?credentials: untyped,
16
+ ?region: String,
17
+ ?access_key_id: String,
18
+ ?active_endpoint_cache: bool,
19
+ ?adaptive_retry_wait_to_fill: bool,
20
+ ?client_side_monitoring: bool,
21
+ ?client_side_monitoring_client_id: String,
22
+ ?client_side_monitoring_host: String,
23
+ ?client_side_monitoring_port: Integer,
24
+ ?client_side_monitoring_publisher: untyped,
25
+ ?convert_params: bool,
26
+ ?correct_clock_skew: bool,
27
+ ?defaults_mode: String,
28
+ ?disable_host_prefix_injection: bool,
29
+ ?disable_request_compression: bool,
30
+ ?endpoint: String,
31
+ ?endpoint_cache_max_entries: Integer,
32
+ ?endpoint_cache_max_threads: Integer,
33
+ ?endpoint_cache_poll_interval: Integer,
34
+ ?endpoint_discovery: bool,
35
+ ?ignore_configured_endpoint_urls: bool,
36
+ ?log_formatter: untyped,
37
+ ?log_level: Symbol,
38
+ ?logger: untyped,
39
+ ?max_attempts: Integer,
40
+ ?profile: String,
41
+ ?request_min_compression_size_bytes: Integer,
42
+ ?retry_backoff: Proc,
43
+ ?retry_base_delay: Float,
44
+ ?retry_jitter: (:none | :equal | :full | ^(Integer) -> Integer),
45
+ ?retry_limit: Integer,
46
+ ?retry_max_delay: Integer,
47
+ ?retry_mode: ("legacy" | "standard" | "adaptive"),
48
+ ?sdk_ua_app_id: String,
49
+ ?secret_access_key: String,
50
+ ?session_token: String,
51
+ ?stub_responses: untyped,
52
+ ?token_provider: untyped,
53
+ ?use_dualstack_endpoint: bool,
54
+ ?use_fips_endpoint: bool,
55
+ ?validate_params: bool,
56
+ ?endpoint_provider: untyped,
57
+ ?http_proxy: String,
58
+ ?http_open_timeout: (Float | Integer),
59
+ ?http_read_timeout: (Float | Integer),
60
+ ?http_idle_timeout: (Float | Integer),
61
+ ?http_continue_timeout: (Float | Integer),
62
+ ?ssl_timeout: (Float | Integer | nil),
63
+ ?http_wire_trace: bool,
64
+ ?ssl_verify_peer: bool,
65
+ ?ssl_ca_bundle: String,
66
+ ?ssl_ca_directory: String,
67
+ ?ssl_ca_store: String,
68
+ ?on_chunk_received: Proc,
69
+ ?on_chunk_sent: Proc,
70
+ ?raise_response_errors: bool
71
+ ) -> void
72
+ | (?Hash[Symbol, untyped]) -> void
73
+
74
+ def client: () -> Client
75
+
76
+
77
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SNS/Resource.html#create_platform_application-instance_method
78
+ def create_platform_application: (
79
+ name: ::String,
80
+ platform: ::String,
81
+ attributes: Hash[::String, ::String]
82
+ ) -> PlatformApplication
83
+ | (?Hash[Symbol, untyped]) -> PlatformApplication
84
+
85
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SNS/Resource.html#create_topic-instance_method
86
+ def create_topic: (
87
+ name: ::String,
88
+ ?attributes: Hash[::String, ::String],
89
+ ?tags: Array[
90
+ {
91
+ key: ::String,
92
+ value: ::String
93
+ },
94
+ ],
95
+ ?data_protection_policy: ::String
96
+ ) -> Topic
97
+ | (?Hash[Symbol, untyped]) -> Topic
98
+
99
+
100
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SNS/Resource.html#platform_application-instance_method
101
+ def platform_application: (String arn) -> PlatformApplication
102
+
103
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SNS/Resource.html#platform_applications-instance_method
104
+ def platform_applications: (
105
+ ) -> PlatformApplication::Collection
106
+ | (?Hash[Symbol, untyped]) -> PlatformApplication::Collection
107
+
108
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SNS/Resource.html#platform_endpoint-instance_method
109
+ def platform_endpoint: (String arn) -> PlatformEndpoint
110
+
111
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SNS/Resource.html#subscription-instance_method
112
+ def subscription: (String arn) -> Subscription
113
+
114
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SNS/Resource.html#subscriptions-instance_method
115
+ def subscriptions: (
116
+ ) -> Subscription::Collection
117
+ | (?Hash[Symbol, untyped]) -> Subscription::Collection
118
+
119
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SNS/Resource.html#topic-instance_method
120
+ def topic: (String arn) -> Topic
121
+
122
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SNS/Resource.html#topics-instance_method
123
+ def topics: (
124
+ ) -> Topic::Collection
125
+ | (?Hash[Symbol, untyped]) -> Topic::Collection
126
+ end
127
+ end
128
+ end
@@ -0,0 +1,52 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing guide for more information:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws
9
+ module SNS
10
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SNS/Subscription.html
11
+ class Subscription
12
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SNS/Subscription.html#initialize-instance_method
13
+ def initialize: (String arn, Hash[Symbol, untyped] options) -> void
14
+ | (arn: String, ?client: Client) -> void
15
+ | (Hash[Symbol, untyped] args) -> void
16
+
17
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SNS/Subscription.html#arn-instance_method
18
+ def arn: () -> String
19
+
20
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SNS/Subscription.html#attributes-instance_method
21
+ def attributes: () -> ::Hash[::String, ::String]
22
+
23
+ def client: () -> Client
24
+
25
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SNS/Subscription.html#load-instance_method
26
+ def load: () -> self
27
+ alias reload load
28
+
29
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SNS/Subscription.html#data-instance_method
30
+ def data: () -> Types::GetSubscriptionAttributesResponse
31
+
32
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SNS/Subscription.html#data_loaded?-instance_method
33
+ def data_loaded?: () -> bool
34
+
35
+
36
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SNS/Subscription.html#delete-instance_method
37
+ def delete: (
38
+ ) -> ::Aws::EmptyStructure
39
+ | (?Hash[Symbol, untyped]) -> ::Aws::EmptyStructure
40
+
41
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SNS/Subscription.html#set_attributes-instance_method
42
+ def set_attributes: (
43
+ attribute_name: ::String,
44
+ ?attribute_value: ::String
45
+ ) -> ::Aws::EmptyStructure
46
+ | (?Hash[Symbol, untyped]) -> ::Aws::EmptyStructure
47
+
48
+ class Collection < ::Aws::Resources::Collection[Subscription]
49
+ end
50
+ end
51
+ end
52
+ end
data/sig/topic.rbs ADDED
@@ -0,0 +1,104 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing guide for more information:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws
9
+ module SNS
10
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SNS/Topic.html
11
+ class Topic
12
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SNS/Topic.html#initialize-instance_method
13
+ def initialize: (String arn, Hash[Symbol, untyped] options) -> void
14
+ | (arn: String, ?client: Client) -> void
15
+ | (Hash[Symbol, untyped] args) -> void
16
+
17
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SNS/Topic.html#arn-instance_method
18
+ def arn: () -> String
19
+
20
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SNS/Topic.html#attributes-instance_method
21
+ def attributes: () -> ::Hash[::String, ::String]
22
+
23
+ def client: () -> Client
24
+
25
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SNS/Topic.html#load-instance_method
26
+ def load: () -> self
27
+ alias reload load
28
+
29
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SNS/Topic.html#data-instance_method
30
+ def data: () -> Types::GetTopicAttributesResponse
31
+
32
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SNS/Topic.html#data_loaded?-instance_method
33
+ def data_loaded?: () -> bool
34
+
35
+
36
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SNS/Topic.html#add_permission-instance_method
37
+ def add_permission: (
38
+ label: ::String,
39
+ aws_account_id: Array[::String],
40
+ action_name: Array[::String]
41
+ ) -> ::Aws::EmptyStructure
42
+ | (?Hash[Symbol, untyped]) -> ::Aws::EmptyStructure
43
+
44
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SNS/Topic.html#confirm_subscription-instance_method
45
+ def confirm_subscription: (
46
+ token: ::String,
47
+ ?authenticate_on_unsubscribe: ::String
48
+ ) -> Subscription
49
+ | (?Hash[Symbol, untyped]) -> Subscription
50
+
51
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SNS/Topic.html#delete-instance_method
52
+ def delete: (
53
+ ) -> ::Aws::EmptyStructure
54
+ | (?Hash[Symbol, untyped]) -> ::Aws::EmptyStructure
55
+
56
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SNS/Topic.html#publish-instance_method
57
+ def publish: (
58
+ ?target_arn: ::String,
59
+ ?phone_number: ::String,
60
+ message: ::String,
61
+ ?subject: ::String,
62
+ ?message_structure: ::String,
63
+ ?message_attributes: Hash[::String, {
64
+ data_type: ::String,
65
+ string_value: ::String?,
66
+ binary_value: ::String?
67
+ }],
68
+ ?message_deduplication_id: ::String,
69
+ ?message_group_id: ::String
70
+ ) -> Types::PublishResponse
71
+ | (?Hash[Symbol, untyped]) -> Types::PublishResponse
72
+
73
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SNS/Topic.html#remove_permission-instance_method
74
+ def remove_permission: (
75
+ label: ::String
76
+ ) -> ::Aws::EmptyStructure
77
+ | (?Hash[Symbol, untyped]) -> ::Aws::EmptyStructure
78
+
79
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SNS/Topic.html#set_attributes-instance_method
80
+ def set_attributes: (
81
+ attribute_name: ::String,
82
+ ?attribute_value: ::String
83
+ ) -> ::Aws::EmptyStructure
84
+ | (?Hash[Symbol, untyped]) -> ::Aws::EmptyStructure
85
+
86
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SNS/Topic.html#subscribe-instance_method
87
+ def subscribe: (
88
+ protocol: ::String,
89
+ ?endpoint: ::String,
90
+ ?attributes: Hash[::String, ::String],
91
+ ?return_subscription_arn: bool
92
+ ) -> Subscription
93
+ | (?Hash[Symbol, untyped]) -> Subscription
94
+
95
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SNS/Topic.html#subscriptions-instance_method
96
+ def subscriptions: (
97
+ ) -> Subscription::Collection
98
+ | (?Hash[Symbol, untyped]) -> Subscription::Collection
99
+
100
+ class Collection < ::Aws::Resources::Collection[Topic]
101
+ end
102
+ end
103
+ end
104
+ end