aws-sdk-sqs 1.5.0 → 1.80.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.
data/sig/queue.rbs ADDED
@@ -0,0 +1,164 @@
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 SQS
10
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SQS/Queue.html
11
+ class Queue
12
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SQS/Queue.html#initialize-instance_method
13
+ def initialize: (String url, Hash[Symbol, untyped] options) -> void
14
+ | (url: String, ?client: Client) -> void
15
+ | (Hash[Symbol, untyped] args) -> void
16
+
17
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SQS/Queue.html#url-instance_method
18
+ def url: () -> String
19
+
20
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SQS/Queue.html#attributes-instance_method
21
+ def attributes: () -> ::Hash[("All" | "Policy" | "VisibilityTimeout" | "MaximumMessageSize" | "MessageRetentionPeriod" | "ApproximateNumberOfMessages" | "ApproximateNumberOfMessagesNotVisible" | "CreatedTimestamp" | "LastModifiedTimestamp" | "QueueArn" | "ApproximateNumberOfMessagesDelayed" | "DelaySeconds" | "ReceiveMessageWaitTimeSeconds" | "RedrivePolicy" | "FifoQueue" | "ContentBasedDeduplication" | "KmsMasterKeyId" | "KmsDataKeyReusePeriodSeconds" | "DeduplicationScope" | "FifoThroughputLimit" | "RedriveAllowPolicy" | "SqsManagedSseEnabled"), ::String]
22
+
23
+ def client: () -> Client
24
+
25
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SQS/Queue.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/SQS/Queue.html#data-instance_method
30
+ def data: () -> Types::GetQueueAttributesResult
31
+
32
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SQS/Queue.html#data_loaded?-instance_method
33
+ def data_loaded?: () -> bool
34
+
35
+
36
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SQS/Queue.html#add_permission-instance_method
37
+ def add_permission: (
38
+ label: ::String,
39
+ aws_account_ids: Array[::String],
40
+ actions: Array[::String]
41
+ ) -> ::Aws::EmptyStructure
42
+ | (?Hash[Symbol, untyped]) -> ::Aws::EmptyStructure
43
+
44
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SQS/Queue.html#change_message_visibility_batch-instance_method
45
+ def change_message_visibility_batch: (
46
+ entries: Array[
47
+ {
48
+ id: ::String,
49
+ receipt_handle: ::String,
50
+ visibility_timeout: ::Integer?
51
+ },
52
+ ]
53
+ ) -> Types::ChangeMessageVisibilityBatchResult
54
+ | (?Hash[Symbol, untyped]) -> Types::ChangeMessageVisibilityBatchResult
55
+
56
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SQS/Queue.html#delete-instance_method
57
+ def delete: (
58
+ ) -> ::Aws::EmptyStructure
59
+ | (?Hash[Symbol, untyped]) -> ::Aws::EmptyStructure
60
+
61
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SQS/Queue.html#delete_messages-instance_method
62
+ def delete_messages: (
63
+ entries: Array[
64
+ {
65
+ id: ::String,
66
+ receipt_handle: ::String
67
+ },
68
+ ]
69
+ ) -> Types::DeleteMessageBatchResult
70
+ | (?Hash[Symbol, untyped]) -> Types::DeleteMessageBatchResult
71
+
72
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SQS/Queue.html#purge-instance_method
73
+ def purge: (
74
+ ) -> ::Aws::EmptyStructure
75
+ | (?Hash[Symbol, untyped]) -> ::Aws::EmptyStructure
76
+
77
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SQS/Queue.html#receive_messages-instance_method
78
+ def receive_messages: (
79
+ ?attribute_names: Array[("All" | "Policy" | "VisibilityTimeout" | "MaximumMessageSize" | "MessageRetentionPeriod" | "ApproximateNumberOfMessages" | "ApproximateNumberOfMessagesNotVisible" | "CreatedTimestamp" | "LastModifiedTimestamp" | "QueueArn" | "ApproximateNumberOfMessagesDelayed" | "DelaySeconds" | "ReceiveMessageWaitTimeSeconds" | "RedrivePolicy" | "FifoQueue" | "ContentBasedDeduplication" | "KmsMasterKeyId" | "KmsDataKeyReusePeriodSeconds" | "DeduplicationScope" | "FifoThroughputLimit" | "RedriveAllowPolicy" | "SqsManagedSseEnabled")],
80
+ ?message_system_attribute_names: Array[("All" | "SenderId" | "SentTimestamp" | "ApproximateReceiveCount" | "ApproximateFirstReceiveTimestamp" | "SequenceNumber" | "MessageDeduplicationId" | "MessageGroupId" | "AWSTraceHeader" | "DeadLetterQueueSourceArn")],
81
+ ?message_attribute_names: Array[::String],
82
+ ?max_number_of_messages: ::Integer,
83
+ ?visibility_timeout: ::Integer,
84
+ ?wait_time_seconds: ::Integer,
85
+ ?receive_request_attempt_id: ::String
86
+ ) -> Message::Collection
87
+ | (?Hash[Symbol, untyped]) -> Message::Collection
88
+
89
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SQS/Queue.html#remove_permission-instance_method
90
+ def remove_permission: (
91
+ label: ::String
92
+ ) -> ::Aws::EmptyStructure
93
+ | (?Hash[Symbol, untyped]) -> ::Aws::EmptyStructure
94
+
95
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SQS/Queue.html#send_message-instance_method
96
+ def send_message: (
97
+ message_body: ::String,
98
+ ?delay_seconds: ::Integer,
99
+ ?message_attributes: Hash[::String, {
100
+ string_value: ::String?,
101
+ binary_value: ::String?,
102
+ string_list_values: Array[::String]?,
103
+ binary_list_values: Array[::String]?,
104
+ data_type: ::String
105
+ }],
106
+ ?message_system_attributes: Hash[("AWSTraceHeader"), {
107
+ string_value: ::String?,
108
+ binary_value: ::String?,
109
+ string_list_values: Array[::String]?,
110
+ binary_list_values: Array[::String]?,
111
+ data_type: ::String
112
+ }],
113
+ ?message_deduplication_id: ::String,
114
+ ?message_group_id: ::String
115
+ ) -> Types::SendMessageResult
116
+ | (?Hash[Symbol, untyped]) -> Types::SendMessageResult
117
+
118
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SQS/Queue.html#send_messages-instance_method
119
+ def send_messages: (
120
+ entries: Array[
121
+ {
122
+ id: ::String,
123
+ message_body: ::String,
124
+ delay_seconds: ::Integer?,
125
+ message_attributes: Hash[::String, {
126
+ string_value: ::String?,
127
+ binary_value: ::String?,
128
+ string_list_values: Array[::String]?,
129
+ binary_list_values: Array[::String]?,
130
+ data_type: ::String
131
+ }]?,
132
+ message_system_attributes: Hash[("AWSTraceHeader"), {
133
+ string_value: ::String?,
134
+ binary_value: ::String?,
135
+ string_list_values: Array[::String]?,
136
+ binary_list_values: Array[::String]?,
137
+ data_type: ::String
138
+ }]?,
139
+ message_deduplication_id: ::String?,
140
+ message_group_id: ::String?
141
+ },
142
+ ]
143
+ ) -> Types::SendMessageBatchResult
144
+ | (?Hash[Symbol, untyped]) -> Types::SendMessageBatchResult
145
+
146
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SQS/Queue.html#set_attributes-instance_method
147
+ def set_attributes: (
148
+ attributes: Hash[("All" | "Policy" | "VisibilityTimeout" | "MaximumMessageSize" | "MessageRetentionPeriod" | "ApproximateNumberOfMessages" | "ApproximateNumberOfMessagesNotVisible" | "CreatedTimestamp" | "LastModifiedTimestamp" | "QueueArn" | "ApproximateNumberOfMessagesDelayed" | "DelaySeconds" | "ReceiveMessageWaitTimeSeconds" | "RedrivePolicy" | "FifoQueue" | "ContentBasedDeduplication" | "KmsMasterKeyId" | "KmsDataKeyReusePeriodSeconds" | "DeduplicationScope" | "FifoThroughputLimit" | "RedriveAllowPolicy" | "SqsManagedSseEnabled"), ::String]
149
+ ) -> ::Aws::EmptyStructure
150
+ | (?Hash[Symbol, untyped]) -> ::Aws::EmptyStructure
151
+
152
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SQS/Queue.html#dead_letter_source_queues-instance_method
153
+ def dead_letter_source_queues: (
154
+ ) -> Queue::Collection
155
+ | (?Hash[Symbol, untyped]) -> Queue::Collection
156
+
157
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SQS/Queue.html#message-instance_method
158
+ def message: (String receipt_handle) -> Message
159
+
160
+ class Collection < ::Aws::Resources::Collection[Queue]
161
+ end
162
+ end
163
+ end
164
+ end
data/sig/resource.rbs ADDED
@@ -0,0 +1,106 @@
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 SQS
10
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SQS/Resource.html
11
+ class Resource
12
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SQS/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
+ ?sigv4a_signing_region_set: Array[String],
52
+ ?simple_json: bool,
53
+ ?stub_responses: untyped,
54
+ ?token_provider: untyped,
55
+ ?use_dualstack_endpoint: bool,
56
+ ?use_fips_endpoint: bool,
57
+ ?validate_params: bool,
58
+ ?verify_checksums: bool,
59
+ ?endpoint_provider: untyped,
60
+ ?http_proxy: String,
61
+ ?http_open_timeout: (Float | Integer),
62
+ ?http_read_timeout: (Float | Integer),
63
+ ?http_idle_timeout: (Float | Integer),
64
+ ?http_continue_timeout: (Float | Integer),
65
+ ?ssl_timeout: (Float | Integer | nil),
66
+ ?http_wire_trace: bool,
67
+ ?ssl_verify_peer: bool,
68
+ ?ssl_ca_bundle: String,
69
+ ?ssl_ca_directory: String,
70
+ ?ssl_ca_store: String,
71
+ ?on_chunk_received: Proc,
72
+ ?on_chunk_sent: Proc,
73
+ ?raise_response_errors: bool
74
+ ) -> void
75
+ | (?Hash[Symbol, untyped]) -> void
76
+
77
+ def client: () -> Client
78
+
79
+
80
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SQS/Resource.html#create_queue-instance_method
81
+ def create_queue: (
82
+ queue_name: ::String,
83
+ ?attributes: Hash[("All" | "Policy" | "VisibilityTimeout" | "MaximumMessageSize" | "MessageRetentionPeriod" | "ApproximateNumberOfMessages" | "ApproximateNumberOfMessagesNotVisible" | "CreatedTimestamp" | "LastModifiedTimestamp" | "QueueArn" | "ApproximateNumberOfMessagesDelayed" | "DelaySeconds" | "ReceiveMessageWaitTimeSeconds" | "RedrivePolicy" | "FifoQueue" | "ContentBasedDeduplication" | "KmsMasterKeyId" | "KmsDataKeyReusePeriodSeconds" | "DeduplicationScope" | "FifoThroughputLimit" | "RedriveAllowPolicy" | "SqsManagedSseEnabled"), ::String],
84
+ ?tags: Hash[::String, ::String]
85
+ ) -> Queue
86
+ | (?Hash[Symbol, untyped]) -> Queue
87
+
88
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SQS/Resource.html#get_queue_by_name-instance_method
89
+ def get_queue_by_name: (
90
+ queue_name: ::String,
91
+ ?queue_owner_aws_account_id: ::String
92
+ ) -> Queue
93
+ | (?Hash[Symbol, untyped]) -> Queue
94
+
95
+
96
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SQS/Resource.html#queue-instance_method
97
+ def queue: (String url) -> Queue
98
+
99
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SQS/Resource.html#queues-instance_method
100
+ def queues: (
101
+ ?queue_name_prefix: ::String
102
+ ) -> Queue::Collection
103
+ | (?Hash[Symbol, untyped]) -> Queue::Collection
104
+ end
105
+ end
106
+ end