aws-sdk-dynamodb 1.84.0 → 1.118.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,114 @@
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 RequestLimitExceeded < ::Aws::Errors::ServiceError
85
+ def message: () -> ::String
86
+ end
87
+ class ResourceInUseException < ::Aws::Errors::ServiceError
88
+ def message: () -> ::String
89
+ end
90
+ class ResourceNotFoundException < ::Aws::Errors::ServiceError
91
+ def message: () -> ::String
92
+ end
93
+ class TableAlreadyExistsException < ::Aws::Errors::ServiceError
94
+ def message: () -> ::String
95
+ end
96
+ class TableInUseException < ::Aws::Errors::ServiceError
97
+ def message: () -> ::String
98
+ end
99
+ class TableNotFoundException < ::Aws::Errors::ServiceError
100
+ def message: () -> ::String
101
+ end
102
+ class TransactionCanceledException < ::Aws::Errors::ServiceError
103
+ def message: () -> ::String
104
+ def cancellation_reasons: () -> ::String
105
+ end
106
+ class TransactionConflictException < ::Aws::Errors::ServiceError
107
+ def message: () -> ::String
108
+ end
109
+ class TransactionInProgressException < ::Aws::Errors::ServiceError
110
+ def message: () -> ::String
111
+ end
112
+ end
113
+ end
114
+ end
data/sig/resource.rbs ADDED
@@ -0,0 +1,206 @@
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
+ ?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
+ ?compute_checksums: bool,
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_min_compression_size_bytes: Integer,
43
+ ?retry_backoff: Proc,
44
+ ?retry_base_delay: Float,
45
+ ?retry_jitter: (:none | :equal | :full | ^(Integer) -> Integer),
46
+ ?retry_limit: Integer,
47
+ ?retry_max_delay: Integer,
48
+ ?retry_mode: ("legacy" | "standard" | "adaptive"),
49
+ ?sdk_ua_app_id: String,
50
+ ?secret_access_key: String,
51
+ ?session_token: String,
52
+ ?sigv4a_signing_region_set: Array[String],
53
+ ?simple_attributes: bool,
54
+ ?simple_json: bool,
55
+ ?stub_responses: untyped,
56
+ ?token_provider: untyped,
57
+ ?use_dualstack_endpoint: bool,
58
+ ?use_fips_endpoint: bool,
59
+ ?validate_params: bool,
60
+ ?endpoint_provider: untyped,
61
+ ?http_proxy: String,
62
+ ?http_open_timeout: (Float | Integer),
63
+ ?http_read_timeout: (Float | Integer),
64
+ ?http_idle_timeout: (Float | Integer),
65
+ ?http_continue_timeout: (Float | Integer),
66
+ ?ssl_timeout: (Float | Integer | nil),
67
+ ?http_wire_trace: bool,
68
+ ?ssl_verify_peer: bool,
69
+ ?ssl_ca_bundle: String,
70
+ ?ssl_ca_directory: String,
71
+ ?ssl_ca_store: String,
72
+ ?on_chunk_received: Proc,
73
+ ?on_chunk_sent: Proc,
74
+ ?raise_response_errors: bool
75
+ ) -> void
76
+ | (?Hash[Symbol, untyped]) -> void
77
+
78
+ def client: () -> Client
79
+
80
+
81
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/DynamoDB/Resource.html#batch_get_item-instance_method
82
+ def batch_get_item: (
83
+ request_items: Hash[::String, {
84
+ keys: Array[
85
+ Hash[::String, untyped],
86
+ ],
87
+ attributes_to_get: Array[::String]?,
88
+ consistent_read: bool?,
89
+ projection_expression: ::String?,
90
+ expression_attribute_names: Hash[::String, ::String]?
91
+ }],
92
+ ?return_consumed_capacity: ("INDEXES" | "TOTAL" | "NONE")
93
+ ) -> Types::BatchGetItemOutput
94
+ | (?Hash[Symbol, untyped]) -> Types::BatchGetItemOutput
95
+
96
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/DynamoDB/Resource.html#batch_write_item-instance_method
97
+ def batch_write_item: (
98
+ request_items: Hash[::String, Array[
99
+ {
100
+ put_request: {
101
+ item: Hash[::String, untyped]
102
+ }?,
103
+ delete_request: {
104
+ key: Hash[::String, untyped]
105
+ }?
106
+ },
107
+ ]],
108
+ ?return_consumed_capacity: ("INDEXES" | "TOTAL" | "NONE"),
109
+ ?return_item_collection_metrics: ("SIZE" | "NONE")
110
+ ) -> Types::BatchWriteItemOutput
111
+ | (?Hash[Symbol, untyped]) -> Types::BatchWriteItemOutput
112
+
113
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/DynamoDB/Resource.html#create_table-instance_method
114
+ def create_table: (
115
+ attribute_definitions: Array[
116
+ {
117
+ attribute_name: ::String,
118
+ attribute_type: ("S" | "N" | "B")
119
+ },
120
+ ],
121
+ table_name: ::String,
122
+ key_schema: Array[
123
+ {
124
+ attribute_name: ::String,
125
+ key_type: ("HASH" | "RANGE")
126
+ },
127
+ ],
128
+ ?local_secondary_indexes: Array[
129
+ {
130
+ index_name: ::String,
131
+ key_schema: Array[
132
+ {
133
+ attribute_name: ::String,
134
+ key_type: ("HASH" | "RANGE")
135
+ },
136
+ ],
137
+ projection: {
138
+ projection_type: ("ALL" | "KEYS_ONLY" | "INCLUDE")?,
139
+ non_key_attributes: Array[::String]?
140
+ }
141
+ },
142
+ ],
143
+ ?global_secondary_indexes: Array[
144
+ {
145
+ index_name: ::String,
146
+ key_schema: Array[
147
+ {
148
+ attribute_name: ::String,
149
+ key_type: ("HASH" | "RANGE")
150
+ },
151
+ ],
152
+ projection: {
153
+ projection_type: ("ALL" | "KEYS_ONLY" | "INCLUDE")?,
154
+ non_key_attributes: Array[::String]?
155
+ },
156
+ provisioned_throughput: {
157
+ read_capacity_units: ::Integer,
158
+ write_capacity_units: ::Integer
159
+ }?,
160
+ on_demand_throughput: {
161
+ max_read_request_units: ::Integer?,
162
+ max_write_request_units: ::Integer?
163
+ }?
164
+ },
165
+ ],
166
+ ?billing_mode: ("PROVISIONED" | "PAY_PER_REQUEST"),
167
+ ?provisioned_throughput: {
168
+ read_capacity_units: ::Integer,
169
+ write_capacity_units: ::Integer
170
+ },
171
+ ?stream_specification: {
172
+ stream_enabled: bool,
173
+ stream_view_type: ("NEW_IMAGE" | "OLD_IMAGE" | "NEW_AND_OLD_IMAGES" | "KEYS_ONLY")?
174
+ },
175
+ ?sse_specification: {
176
+ enabled: bool?,
177
+ sse_type: ("AES256" | "KMS")?,
178
+ kms_master_key_id: ::String?
179
+ },
180
+ ?tags: Array[
181
+ {
182
+ key: ::String,
183
+ value: ::String
184
+ },
185
+ ],
186
+ ?table_class: ("STANDARD" | "STANDARD_INFREQUENT_ACCESS"),
187
+ ?deletion_protection_enabled: bool,
188
+ ?resource_policy: ::String,
189
+ ?on_demand_throughput: {
190
+ max_read_request_units: ::Integer?,
191
+ max_write_request_units: ::Integer?
192
+ }
193
+ ) -> Table
194
+ | (?Hash[Symbol, untyped]) -> Table
195
+
196
+
197
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/DynamoDB/Resource.html#table-instance_method
198
+ def table: (String name) -> Table
199
+
200
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/DynamoDB/Resource.html#tables-instance_method
201
+ def tables: (
202
+ ) -> Table::Collection
203
+ | (?Hash[Symbol, untyped]) -> Table::Collection
204
+ end
205
+ end
206
+ end