aws-sdk-dynamodb 1.93.0 → 1.110.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +92 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-dynamodb/client.rb +778 -279
- data/lib/aws-sdk-dynamodb/client_api.rb +195 -34
- data/lib/aws-sdk-dynamodb/customizations/client.rb +5 -3
- data/lib/aws-sdk-dynamodb/endpoint_provider.rb +2 -2
- data/lib/aws-sdk-dynamodb/endpoints.rb +56 -0
- data/lib/aws-sdk-dynamodb/errors.rb +16 -0
- data/lib/aws-sdk-dynamodb/plugins/endpoints.rb +12 -2
- data/lib/aws-sdk-dynamodb/plugins/simple_attributes.rb +21 -7
- data/lib/aws-sdk-dynamodb/resource.rb +44 -14
- data/lib/aws-sdk-dynamodb/table.rb +48 -16
- data/lib/aws-sdk-dynamodb/types.rb +677 -105
- data/lib/aws-sdk-dynamodb.rb +1 -1
- data/sig/client.rbs +1494 -0
- data/sig/errors.rbs +114 -0
- data/sig/resource.rbs +205 -0
- data/sig/table.rbs +359 -0
- data/sig/types.rbs +1811 -0
- data/sig/waiters.rbs +33 -0
- metadata +15 -9
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,205 @@
|
|
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
|
+
?simple_attributes: bool,
|
53
|
+
?simple_json: bool,
|
54
|
+
?stub_responses: untyped,
|
55
|
+
?token_provider: untyped,
|
56
|
+
?use_dualstack_endpoint: bool,
|
57
|
+
?use_fips_endpoint: bool,
|
58
|
+
?validate_params: 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/DynamoDB/Resource.html#batch_get_item-instance_method
|
81
|
+
def batch_get_item: (
|
82
|
+
request_items: Hash[::String, {
|
83
|
+
keys: Array[
|
84
|
+
Hash[::String, untyped],
|
85
|
+
],
|
86
|
+
attributes_to_get: Array[::String]?,
|
87
|
+
consistent_read: bool?,
|
88
|
+
projection_expression: ::String?,
|
89
|
+
expression_attribute_names: Hash[::String, ::String]?
|
90
|
+
}],
|
91
|
+
?return_consumed_capacity: ("INDEXES" | "TOTAL" | "NONE")
|
92
|
+
) -> Types::BatchGetItemOutput
|
93
|
+
| (?Hash[Symbol, untyped]) -> Types::BatchGetItemOutput
|
94
|
+
|
95
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/DynamoDB/Resource.html#batch_write_item-instance_method
|
96
|
+
def batch_write_item: (
|
97
|
+
request_items: Hash[::String, Array[
|
98
|
+
{
|
99
|
+
put_request: {
|
100
|
+
item: Hash[::String, untyped]
|
101
|
+
}?,
|
102
|
+
delete_request: {
|
103
|
+
key: Hash[::String, untyped]
|
104
|
+
}?
|
105
|
+
},
|
106
|
+
]],
|
107
|
+
?return_consumed_capacity: ("INDEXES" | "TOTAL" | "NONE"),
|
108
|
+
?return_item_collection_metrics: ("SIZE" | "NONE")
|
109
|
+
) -> Types::BatchWriteItemOutput
|
110
|
+
| (?Hash[Symbol, untyped]) -> Types::BatchWriteItemOutput
|
111
|
+
|
112
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/DynamoDB/Resource.html#create_table-instance_method
|
113
|
+
def create_table: (
|
114
|
+
attribute_definitions: Array[
|
115
|
+
{
|
116
|
+
attribute_name: ::String,
|
117
|
+
attribute_type: ("S" | "N" | "B")
|
118
|
+
},
|
119
|
+
],
|
120
|
+
table_name: ::String,
|
121
|
+
key_schema: Array[
|
122
|
+
{
|
123
|
+
attribute_name: ::String,
|
124
|
+
key_type: ("HASH" | "RANGE")
|
125
|
+
},
|
126
|
+
],
|
127
|
+
?local_secondary_indexes: Array[
|
128
|
+
{
|
129
|
+
index_name: ::String,
|
130
|
+
key_schema: Array[
|
131
|
+
{
|
132
|
+
attribute_name: ::String,
|
133
|
+
key_type: ("HASH" | "RANGE")
|
134
|
+
},
|
135
|
+
],
|
136
|
+
projection: {
|
137
|
+
projection_type: ("ALL" | "KEYS_ONLY" | "INCLUDE")?,
|
138
|
+
non_key_attributes: Array[::String]?
|
139
|
+
}
|
140
|
+
},
|
141
|
+
],
|
142
|
+
?global_secondary_indexes: Array[
|
143
|
+
{
|
144
|
+
index_name: ::String,
|
145
|
+
key_schema: Array[
|
146
|
+
{
|
147
|
+
attribute_name: ::String,
|
148
|
+
key_type: ("HASH" | "RANGE")
|
149
|
+
},
|
150
|
+
],
|
151
|
+
projection: {
|
152
|
+
projection_type: ("ALL" | "KEYS_ONLY" | "INCLUDE")?,
|
153
|
+
non_key_attributes: Array[::String]?
|
154
|
+
},
|
155
|
+
provisioned_throughput: {
|
156
|
+
read_capacity_units: ::Integer,
|
157
|
+
write_capacity_units: ::Integer
|
158
|
+
}?,
|
159
|
+
on_demand_throughput: {
|
160
|
+
max_read_request_units: ::Integer?,
|
161
|
+
max_write_request_units: ::Integer?
|
162
|
+
}?
|
163
|
+
},
|
164
|
+
],
|
165
|
+
?billing_mode: ("PROVISIONED" | "PAY_PER_REQUEST"),
|
166
|
+
?provisioned_throughput: {
|
167
|
+
read_capacity_units: ::Integer,
|
168
|
+
write_capacity_units: ::Integer
|
169
|
+
},
|
170
|
+
?stream_specification: {
|
171
|
+
stream_enabled: bool,
|
172
|
+
stream_view_type: ("NEW_IMAGE" | "OLD_IMAGE" | "NEW_AND_OLD_IMAGES" | "KEYS_ONLY")?
|
173
|
+
},
|
174
|
+
?sse_specification: {
|
175
|
+
enabled: bool?,
|
176
|
+
sse_type: ("AES256" | "KMS")?,
|
177
|
+
kms_master_key_id: ::String?
|
178
|
+
},
|
179
|
+
?tags: Array[
|
180
|
+
{
|
181
|
+
key: ::String,
|
182
|
+
value: ::String
|
183
|
+
},
|
184
|
+
],
|
185
|
+
?table_class: ("STANDARD" | "STANDARD_INFREQUENT_ACCESS"),
|
186
|
+
?deletion_protection_enabled: bool,
|
187
|
+
?resource_policy: ::String,
|
188
|
+
?on_demand_throughput: {
|
189
|
+
max_read_request_units: ::Integer?,
|
190
|
+
max_write_request_units: ::Integer?
|
191
|
+
}
|
192
|
+
) -> Table
|
193
|
+
| (?Hash[Symbol, untyped]) -> Table
|
194
|
+
|
195
|
+
|
196
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/DynamoDB/Resource.html#table-instance_method
|
197
|
+
def table: (String name) -> Table
|
198
|
+
|
199
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/DynamoDB/Resource.html#tables-instance_method
|
200
|
+
def tables: (
|
201
|
+
) -> Table::Collection
|
202
|
+
| (?Hash[Symbol, untyped]) -> Table::Collection
|
203
|
+
end
|
204
|
+
end
|
205
|
+
end
|