aws-sdk-dynamodb 1.96.0 → 1.132.0

Sign up to get free protection for your applications and to get access to all the features.
data/sig/errors.rbs ADDED
@@ -0,0 +1,117 @@
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 DynamoDB
10
+ module Errors
11
+ class ServiceError < ::Aws::Errors::ServiceError
12
+ end
13
+
14
+ class BackupInUseException < ::Aws::Errors::ServiceError
15
+ def message: () -> ::String
16
+ end
17
+ class BackupNotFoundException < ::Aws::Errors::ServiceError
18
+ def message: () -> ::String
19
+ end
20
+ class ConditionalCheckFailedException < ::Aws::Errors::ServiceError
21
+ def message: () -> ::String
22
+ def item: () -> ::String
23
+ end
24
+ class ContinuousBackupsUnavailableException < ::Aws::Errors::ServiceError
25
+ def message: () -> ::String
26
+ end
27
+ class DuplicateItemException < ::Aws::Errors::ServiceError
28
+ def message: () -> ::String
29
+ end
30
+ class ExportConflictException < ::Aws::Errors::ServiceError
31
+ def message: () -> ::String
32
+ end
33
+ class ExportNotFoundException < ::Aws::Errors::ServiceError
34
+ def message: () -> ::String
35
+ end
36
+ class GlobalTableAlreadyExistsException < ::Aws::Errors::ServiceError
37
+ def message: () -> ::String
38
+ end
39
+ class GlobalTableNotFoundException < ::Aws::Errors::ServiceError
40
+ def message: () -> ::String
41
+ end
42
+ class IdempotentParameterMismatchException < ::Aws::Errors::ServiceError
43
+ def message: () -> ::String
44
+ end
45
+ class ImportConflictException < ::Aws::Errors::ServiceError
46
+ def message: () -> ::String
47
+ end
48
+ class ImportNotFoundException < ::Aws::Errors::ServiceError
49
+ def message: () -> ::String
50
+ end
51
+ class IndexNotFoundException < ::Aws::Errors::ServiceError
52
+ def message: () -> ::String
53
+ end
54
+ class InternalServerError < ::Aws::Errors::ServiceError
55
+ def message: () -> ::String
56
+ end
57
+ class InvalidExportTimeException < ::Aws::Errors::ServiceError
58
+ def message: () -> ::String
59
+ end
60
+ class InvalidRestoreTimeException < ::Aws::Errors::ServiceError
61
+ def message: () -> ::String
62
+ end
63
+ class ItemCollectionSizeLimitExceededException < ::Aws::Errors::ServiceError
64
+ def message: () -> ::String
65
+ end
66
+ class LimitExceededException < ::Aws::Errors::ServiceError
67
+ def message: () -> ::String
68
+ end
69
+ class PointInTimeRecoveryUnavailableException < ::Aws::Errors::ServiceError
70
+ def message: () -> ::String
71
+ end
72
+ class PolicyNotFoundException < ::Aws::Errors::ServiceError
73
+ def message: () -> ::String
74
+ end
75
+ class ProvisionedThroughputExceededException < ::Aws::Errors::ServiceError
76
+ def message: () -> ::String
77
+ end
78
+ class ReplicaAlreadyExistsException < ::Aws::Errors::ServiceError
79
+ def message: () -> ::String
80
+ end
81
+ class ReplicaNotFoundException < ::Aws::Errors::ServiceError
82
+ def message: () -> ::String
83
+ end
84
+ class ReplicatedWriteConflictException < ::Aws::Errors::ServiceError
85
+ def message: () -> ::String
86
+ end
87
+ class RequestLimitExceeded < ::Aws::Errors::ServiceError
88
+ def message: () -> ::String
89
+ end
90
+ class ResourceInUseException < ::Aws::Errors::ServiceError
91
+ def message: () -> ::String
92
+ end
93
+ class ResourceNotFoundException < ::Aws::Errors::ServiceError
94
+ def message: () -> ::String
95
+ end
96
+ class TableAlreadyExistsException < ::Aws::Errors::ServiceError
97
+ def message: () -> ::String
98
+ end
99
+ class TableInUseException < ::Aws::Errors::ServiceError
100
+ def message: () -> ::String
101
+ end
102
+ class TableNotFoundException < ::Aws::Errors::ServiceError
103
+ def message: () -> ::String
104
+ end
105
+ class TransactionCanceledException < ::Aws::Errors::ServiceError
106
+ def message: () -> ::String
107
+ def cancellation_reasons: () -> ::String
108
+ end
109
+ class TransactionConflictException < ::Aws::Errors::ServiceError
110
+ def message: () -> ::String
111
+ end
112
+ class TransactionInProgressException < ::Aws::Errors::ServiceError
113
+ def message: () -> ::String
114
+ end
115
+ end
116
+ end
117
+ end
data/sig/resource.rbs ADDED
@@ -0,0 +1,217 @@
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 DynamoDB
10
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/DynamoDB/Resource.html
11
+ class Resource
12
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/DynamoDB/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
+ ?compute_checksums: bool,
27
+ ?convert_params: bool,
28
+ ?correct_clock_skew: bool,
29
+ ?defaults_mode: String,
30
+ ?disable_host_prefix_injection: bool,
31
+ ?disable_request_compression: bool,
32
+ ?endpoint: String,
33
+ ?endpoint_cache_max_entries: Integer,
34
+ ?endpoint_cache_max_threads: Integer,
35
+ ?endpoint_cache_poll_interval: Integer,
36
+ ?endpoint_discovery: bool,
37
+ ?ignore_configured_endpoint_urls: bool,
38
+ ?log_formatter: untyped,
39
+ ?log_level: Symbol,
40
+ ?logger: untyped,
41
+ ?max_attempts: Integer,
42
+ ?profile: String,
43
+ ?request_min_compression_size_bytes: Integer,
44
+ ?retry_backoff: Proc,
45
+ ?retry_base_delay: Float,
46
+ ?retry_jitter: (:none | :equal | :full | ^(Integer) -> Integer),
47
+ ?retry_limit: Integer,
48
+ ?retry_max_delay: Integer,
49
+ ?retry_mode: ("legacy" | "standard" | "adaptive"),
50
+ ?sdk_ua_app_id: String,
51
+ ?secret_access_key: String,
52
+ ?session_token: String,
53
+ ?sigv4a_signing_region_set: Array[String],
54
+ ?simple_attributes: bool,
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
+ ?account_id_endpoint_mode: String,
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/DynamoDB/Resource.html#batch_get_item-instance_method
85
+ def batch_get_item: (
86
+ request_items: Hash[::String, {
87
+ keys: Array[
88
+ Hash[::String, untyped],
89
+ ],
90
+ attributes_to_get: Array[::String]?,
91
+ consistent_read: bool?,
92
+ projection_expression: ::String?,
93
+ expression_attribute_names: Hash[::String, ::String]?
94
+ }],
95
+ ?return_consumed_capacity: ("INDEXES" | "TOTAL" | "NONE")
96
+ ) -> Types::BatchGetItemOutput
97
+ | (?Hash[Symbol, untyped]) -> Types::BatchGetItemOutput
98
+
99
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/DynamoDB/Resource.html#batch_write_item-instance_method
100
+ def batch_write_item: (
101
+ request_items: Hash[::String, Array[
102
+ {
103
+ put_request: {
104
+ item: Hash[::String, untyped]
105
+ }?,
106
+ delete_request: {
107
+ key: Hash[::String, untyped]
108
+ }?
109
+ },
110
+ ]],
111
+ ?return_consumed_capacity: ("INDEXES" | "TOTAL" | "NONE"),
112
+ ?return_item_collection_metrics: ("SIZE" | "NONE")
113
+ ) -> Types::BatchWriteItemOutput
114
+ | (?Hash[Symbol, untyped]) -> Types::BatchWriteItemOutput
115
+
116
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/DynamoDB/Resource.html#create_table-instance_method
117
+ def create_table: (
118
+ attribute_definitions: Array[
119
+ {
120
+ attribute_name: ::String,
121
+ attribute_type: ("S" | "N" | "B")
122
+ },
123
+ ],
124
+ table_name: ::String,
125
+ key_schema: Array[
126
+ {
127
+ attribute_name: ::String,
128
+ key_type: ("HASH" | "RANGE")
129
+ },
130
+ ],
131
+ ?local_secondary_indexes: Array[
132
+ {
133
+ index_name: ::String,
134
+ key_schema: Array[
135
+ {
136
+ attribute_name: ::String,
137
+ key_type: ("HASH" | "RANGE")
138
+ },
139
+ ],
140
+ projection: {
141
+ projection_type: ("ALL" | "KEYS_ONLY" | "INCLUDE")?,
142
+ non_key_attributes: Array[::String]?
143
+ }
144
+ },
145
+ ],
146
+ ?global_secondary_indexes: Array[
147
+ {
148
+ index_name: ::String,
149
+ key_schema: Array[
150
+ {
151
+ attribute_name: ::String,
152
+ key_type: ("HASH" | "RANGE")
153
+ },
154
+ ],
155
+ projection: {
156
+ projection_type: ("ALL" | "KEYS_ONLY" | "INCLUDE")?,
157
+ non_key_attributes: Array[::String]?
158
+ },
159
+ provisioned_throughput: {
160
+ read_capacity_units: ::Integer,
161
+ write_capacity_units: ::Integer
162
+ }?,
163
+ on_demand_throughput: {
164
+ max_read_request_units: ::Integer?,
165
+ max_write_request_units: ::Integer?
166
+ }?,
167
+ warm_throughput: {
168
+ read_units_per_second: ::Integer?,
169
+ write_units_per_second: ::Integer?
170
+ }?
171
+ },
172
+ ],
173
+ ?billing_mode: ("PROVISIONED" | "PAY_PER_REQUEST"),
174
+ ?provisioned_throughput: {
175
+ read_capacity_units: ::Integer,
176
+ write_capacity_units: ::Integer
177
+ },
178
+ ?stream_specification: {
179
+ stream_enabled: bool,
180
+ stream_view_type: ("NEW_IMAGE" | "OLD_IMAGE" | "NEW_AND_OLD_IMAGES" | "KEYS_ONLY")?
181
+ },
182
+ ?sse_specification: {
183
+ enabled: bool?,
184
+ sse_type: ("AES256" | "KMS")?,
185
+ kms_master_key_id: ::String?
186
+ },
187
+ ?tags: Array[
188
+ {
189
+ key: ::String,
190
+ value: ::String
191
+ },
192
+ ],
193
+ ?table_class: ("STANDARD" | "STANDARD_INFREQUENT_ACCESS"),
194
+ ?deletion_protection_enabled: bool,
195
+ ?warm_throughput: {
196
+ read_units_per_second: ::Integer?,
197
+ write_units_per_second: ::Integer?
198
+ },
199
+ ?resource_policy: ::String,
200
+ ?on_demand_throughput: {
201
+ max_read_request_units: ::Integer?,
202
+ max_write_request_units: ::Integer?
203
+ }
204
+ ) -> Table
205
+ | (?Hash[Symbol, untyped]) -> Table
206
+
207
+
208
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/DynamoDB/Resource.html#table-instance_method
209
+ def table: (String name) -> Table
210
+
211
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/DynamoDB/Resource.html#tables-instance_method
212
+ def tables: (
213
+ ) -> Table::Collection
214
+ | (?Hash[Symbol, untyped]) -> Table::Collection
215
+ end
216
+ end
217
+ end