aws-sdk-sqs 1.60.0 → 1.93.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,110 @@
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
+ ?account_id: String,
19
+ ?active_endpoint_cache: bool,
20
+ ?adaptive_retry_wait_to_fill: bool,
21
+ ?client_side_monitoring: bool,
22
+ ?client_side_monitoring_client_id: String,
23
+ ?client_side_monitoring_host: String,
24
+ ?client_side_monitoring_port: Integer,
25
+ ?client_side_monitoring_publisher: untyped,
26
+ ?convert_params: bool,
27
+ ?correct_clock_skew: bool,
28
+ ?defaults_mode: String,
29
+ ?disable_host_prefix_injection: bool,
30
+ ?disable_request_compression: bool,
31
+ ?endpoint: String,
32
+ ?endpoint_cache_max_entries: Integer,
33
+ ?endpoint_cache_max_threads: Integer,
34
+ ?endpoint_cache_poll_interval: Integer,
35
+ ?endpoint_discovery: bool,
36
+ ?ignore_configured_endpoint_urls: bool,
37
+ ?log_formatter: untyped,
38
+ ?log_level: Symbol,
39
+ ?logger: untyped,
40
+ ?max_attempts: Integer,
41
+ ?profile: String,
42
+ ?request_checksum_calculation: String,
43
+ ?request_min_compression_size_bytes: Integer,
44
+ ?response_checksum_validation: String,
45
+ ?retry_backoff: Proc,
46
+ ?retry_base_delay: Float,
47
+ ?retry_jitter: (:none | :equal | :full | ^(Integer) -> Integer),
48
+ ?retry_limit: Integer,
49
+ ?retry_max_delay: Integer,
50
+ ?retry_mode: ("legacy" | "standard" | "adaptive"),
51
+ ?sdk_ua_app_id: String,
52
+ ?secret_access_key: String,
53
+ ?session_token: String,
54
+ ?sigv4a_signing_region_set: Array[String],
55
+ ?simple_json: bool,
56
+ ?stub_responses: untyped,
57
+ ?telemetry_provider: Aws::Telemetry::TelemetryProviderBase,
58
+ ?token_provider: untyped,
59
+ ?use_dualstack_endpoint: bool,
60
+ ?use_fips_endpoint: bool,
61
+ ?validate_params: bool,
62
+ ?verify_checksums: bool,
63
+ ?endpoint_provider: untyped,
64
+ ?http_proxy: String,
65
+ ?http_open_timeout: (Float | Integer),
66
+ ?http_read_timeout: (Float | Integer),
67
+ ?http_idle_timeout: (Float | Integer),
68
+ ?http_continue_timeout: (Float | Integer),
69
+ ?ssl_timeout: (Float | Integer | nil),
70
+ ?http_wire_trace: bool,
71
+ ?ssl_verify_peer: bool,
72
+ ?ssl_ca_bundle: String,
73
+ ?ssl_ca_directory: String,
74
+ ?ssl_ca_store: String,
75
+ ?on_chunk_received: Proc,
76
+ ?on_chunk_sent: Proc,
77
+ ?raise_response_errors: bool
78
+ ) -> void
79
+ | (?Hash[Symbol, untyped]) -> void
80
+
81
+ def client: () -> Client
82
+
83
+
84
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SQS/Resource.html#create_queue-instance_method
85
+ def create_queue: (
86
+ queue_name: ::String,
87
+ ?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],
88
+ ?tags: Hash[::String, ::String]
89
+ ) -> Queue
90
+ | (?Hash[Symbol, untyped]) -> Queue
91
+
92
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SQS/Resource.html#get_queue_by_name-instance_method
93
+ def get_queue_by_name: (
94
+ queue_name: ::String,
95
+ ?queue_owner_aws_account_id: ::String
96
+ ) -> Queue
97
+ | (?Hash[Symbol, untyped]) -> Queue
98
+
99
+
100
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SQS/Resource.html#queue-instance_method
101
+ def queue: (String url) -> Queue
102
+
103
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SQS/Resource.html#queues-instance_method
104
+ def queues: (
105
+ ?queue_name_prefix: ::String
106
+ ) -> Queue::Collection
107
+ | (?Hash[Symbol, untyped]) -> Queue::Collection
108
+ end
109
+ end
110
+ end