aws-sdk-opensearchmemory 1.0.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/client.rbs ADDED
@@ -0,0 +1,451 @@
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 OpenSearchMemory
10
+ class Client < ::Seahorse::Client::Base
11
+ include ::Aws::ClientStubs
12
+
13
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/OpenSearchMemory/Client.html#initialize-instance_method
14
+ def self.new: (
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
+ ?auth_scheme_preference: Array[String],
22
+ ?client_side_monitoring: bool,
23
+ ?client_side_monitoring_client_id: String,
24
+ ?client_side_monitoring_host: String,
25
+ ?client_side_monitoring_port: Integer,
26
+ ?client_side_monitoring_publisher: untyped,
27
+ ?convert_params: bool,
28
+ ?correct_clock_skew: bool,
29
+ ?defaults_mode: String,
30
+ ?disable_clock_skew_correction: bool,
31
+ ?disable_host_prefix_injection: bool,
32
+ ?disable_request_compression: bool,
33
+ ?endpoint: String,
34
+ ?endpoint_cache_max_entries: Integer,
35
+ ?endpoint_cache_max_threads: Integer,
36
+ ?endpoint_cache_poll_interval: Integer,
37
+ ?endpoint_discovery: bool,
38
+ ?ignore_configured_endpoint_urls: bool,
39
+ ?log_formatter: untyped,
40
+ ?log_level: Symbol,
41
+ ?logger: untyped,
42
+ ?max_attempts: Integer,
43
+ ?profile: String,
44
+ ?request_checksum_calculation: String,
45
+ ?request_min_compression_size_bytes: Integer,
46
+ ?response_checksum_validation: String,
47
+ ?retry_backoff: Proc,
48
+ ?retry_base_delay: Float,
49
+ ?retry_jitter: (:none | :equal | :full | ^(Integer) -> Integer),
50
+ ?retry_limit: Integer,
51
+ ?retry_max_delay: Integer,
52
+ ?retry_mode: ("legacy" | "standard" | "adaptive"),
53
+ ?sdk_ua_app_id: String,
54
+ ?secret_access_key: String,
55
+ ?session_token: String,
56
+ ?sigv4a_signing_region_set: Array[String],
57
+ ?simple_json: bool,
58
+ ?stub_responses: untyped,
59
+ ?telemetry_provider: Aws::Telemetry::TelemetryProviderBase,
60
+ ?token_provider: untyped,
61
+ ?use_dualstack_endpoint: bool,
62
+ ?use_fips_endpoint: bool,
63
+ ?validate_params: bool,
64
+ ?endpoint_provider: untyped,
65
+ ?http_proxy: String,
66
+ ?http_open_timeout: (Float | Integer),
67
+ ?http_read_timeout: (Float | Integer),
68
+ ?http_idle_timeout: (Float | Integer),
69
+ ?http_continue_timeout: (Float | Integer),
70
+ ?ssl_timeout: (Float | Integer | nil),
71
+ ?http_wire_trace: bool,
72
+ ?ssl_verify_peer: bool,
73
+ ?ssl_ca_bundle: String,
74
+ ?ssl_ca_directory: String,
75
+ ?ssl_ca_store: String,
76
+ ?on_chunk_received: Proc,
77
+ ?on_chunk_sent: Proc,
78
+ ?raise_response_errors: bool
79
+ ) -> instance
80
+ | (?Hash[Symbol, untyped]) -> instance
81
+
82
+
83
+ interface _BatchGetEventResponseSuccess
84
+ include ::Seahorse::Client::_ResponseSuccess[Types::BatchGetEventOutput]
85
+ def events: () -> ::Array[Types::Event]
86
+ def errors: () -> ::Array[Types::BatchGetEventError]
87
+ end
88
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/OpenSearchMemory/Client.html#batch_get_event-instance_method
89
+ def batch_get_event: (
90
+ space_id: ::String,
91
+ ?actor_id: ::String,
92
+ ?session_id: ::String,
93
+ event_ids: Array[::String]
94
+ ) -> _BatchGetEventResponseSuccess
95
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _BatchGetEventResponseSuccess
96
+
97
+ interface _CreateEventResponseSuccess
98
+ include ::Seahorse::Client::_ResponseSuccess[Types::CreateEventOutput]
99
+ def event: () -> Types::EventDetail
100
+ end
101
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/OpenSearchMemory/Client.html#create_event-instance_method
102
+ def create_event: (
103
+ space_id: ::String,
104
+ actor_id: ::String,
105
+ ?session_id: ::String,
106
+ ?event_timestamp: ::Time,
107
+ payload: {
108
+ conversational: {
109
+ unified: {
110
+ source: {
111
+ object: {
112
+ messages: Array[
113
+ {
114
+ role: ("USER" | "ASSISTANT" | "SYSTEM"),
115
+ content: {
116
+ text: ::String
117
+ }
118
+ }
119
+ ]
120
+ }?
121
+ }
122
+ }?
123
+ }?,
124
+ structured_data: {
125
+ source: {
126
+ json: {
127
+ }?
128
+ }
129
+ }?,
130
+ blob: {
131
+ content_type: ("application/pdf" | "image/png" | "image/jpeg"),
132
+ source: {
133
+ s3_location: {
134
+ uri: ::String
135
+ }?
136
+ }
137
+ }?
138
+ },
139
+ ?metadata: Hash[::String, ::String],
140
+ ?client_token: ::String,
141
+ ?infer: bool
142
+ ) -> _CreateEventResponseSuccess
143
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateEventResponseSuccess
144
+
145
+ interface _CreateMemoryResponseSuccess
146
+ include ::Seahorse::Client::_ResponseSuccess[Types::CreateMemoryOutput]
147
+ def memory: () -> Types::CreateMemoryDetail
148
+ end
149
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/OpenSearchMemory/Client.html#create_memory-instance_method
150
+ def create_memory: (
151
+ space_id: ::String,
152
+ name: ::String,
153
+ content: ::String,
154
+ actor_id: ::String,
155
+ ?session_id: ::String,
156
+ ?metadata: Hash[::String, ::String],
157
+ ?client_token: ::String
158
+ ) -> _CreateMemoryResponseSuccess
159
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateMemoryResponseSuccess
160
+
161
+ interface _CreateSpaceResponseSuccess
162
+ include ::Seahorse::Client::_ResponseSuccess[Types::CreateSpaceResponse]
163
+ def space_id: () -> ::String
164
+ def arn: () -> ::String
165
+ def name: () -> ::String
166
+ def status: () -> ("CREATING" | "ACTIVE" | "UPDATING" | "DELETING" | "DELETED" | "FAILED")
167
+ def created_at: () -> ::Time
168
+ end
169
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/OpenSearchMemory/Client.html#create_space-instance_method
170
+ def create_space: (
171
+ name: ::String,
172
+ ?memory_strategies: Array[
173
+ Params::memory_strategy
174
+ ],
175
+ ?event_expiry_days: ::Integer,
176
+ ?memory_expiry_days: ::Integer,
177
+ ?extraction_model_id: ::String,
178
+ ?encryption_configuration: {
179
+ kms_key_arn: ::String?
180
+ },
181
+ ?tags: Array[
182
+ {
183
+ key: ::String,
184
+ value: ::String
185
+ }
186
+ ],
187
+ ?client_token: ::String
188
+ ) -> _CreateSpaceResponseSuccess
189
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateSpaceResponseSuccess
190
+
191
+ interface _DeleteEventResponseSuccess
192
+ include ::Seahorse::Client::_ResponseSuccess[Types::DeleteEventOutput]
193
+ def event_id: () -> ::String
194
+ end
195
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/OpenSearchMemory/Client.html#delete_event-instance_method
196
+ def delete_event: (
197
+ space_id: ::String,
198
+ event_id: ::String,
199
+ ?actor_id: ::String,
200
+ ?session_id: ::String
201
+ ) -> _DeleteEventResponseSuccess
202
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteEventResponseSuccess
203
+
204
+ interface _DeleteMemoryResponseSuccess
205
+ include ::Seahorse::Client::_ResponseSuccess[Types::DeleteMemoryOutput]
206
+ def memory_id: () -> ::String
207
+ end
208
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/OpenSearchMemory/Client.html#delete_memory-instance_method
209
+ def delete_memory: (
210
+ space_id: ::String,
211
+ memory_id: ::String,
212
+ ?actor_id: ::String,
213
+ ?strategy_name: ::String
214
+ ) -> _DeleteMemoryResponseSuccess
215
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteMemoryResponseSuccess
216
+
217
+ interface _DeleteSpaceResponseSuccess
218
+ include ::Seahorse::Client::_ResponseSuccess[Types::DeleteSpaceResponse]
219
+ def space_id: () -> ::String
220
+ def status: () -> ("CREATING" | "ACTIVE" | "UPDATING" | "DELETING" | "DELETED" | "FAILED")
221
+ end
222
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/OpenSearchMemory/Client.html#delete_space-instance_method
223
+ def delete_space: (
224
+ space_id: ::String
225
+ ) -> _DeleteSpaceResponseSuccess
226
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteSpaceResponseSuccess
227
+
228
+ interface _GetEventResponseSuccess
229
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetEventOutput]
230
+ def event: () -> Types::Event
231
+ end
232
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/OpenSearchMemory/Client.html#get_event-instance_method
233
+ def get_event: (
234
+ space_id: ::String,
235
+ event_id: ::String,
236
+ ?actor_id: ::String,
237
+ ?session_id: ::String
238
+ ) -> _GetEventResponseSuccess
239
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetEventResponseSuccess
240
+
241
+ interface _GetMemoryResponseSuccess
242
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetMemoryOutput]
243
+ def memory: () -> Types::Memory
244
+ end
245
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/OpenSearchMemory/Client.html#get_memory-instance_method
246
+ def get_memory: (
247
+ space_id: ::String,
248
+ memory_id: ::String,
249
+ ?actor_id: ::String,
250
+ ?strategy_name: ::String
251
+ ) -> _GetMemoryResponseSuccess
252
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetMemoryResponseSuccess
253
+
254
+ interface _GetSpaceResponseSuccess
255
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetSpaceResponse]
256
+ def space_id: () -> ::String
257
+ def arn: () -> ::String
258
+ def name: () -> ::String
259
+ def status: () -> ("CREATING" | "ACTIVE" | "UPDATING" | "DELETING" | "DELETED" | "FAILED")
260
+ def status_reason: () -> ::String
261
+ def created_at: () -> ::Time
262
+ def memory_strategies: () -> ::Array[Types::MemoryStrategy]
263
+ def event_expiry_days: () -> ::Integer
264
+ def memory_expiry_days: () -> ::Integer
265
+ def extraction_model_id: () -> ::String
266
+ def encryption_configuration: () -> Types::EncryptionConfiguration
267
+ end
268
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/OpenSearchMemory/Client.html#get_space-instance_method
269
+ def get_space: (
270
+ space_id: ::String
271
+ ) -> _GetSpaceResponseSuccess
272
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetSpaceResponseSuccess
273
+
274
+ interface _ListEventsResponseSuccess
275
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListEventsOutput]
276
+ def events: () -> ::Array[Types::EventSummary]
277
+ def next_token: () -> ::String
278
+ end
279
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/OpenSearchMemory/Client.html#list_events-instance_method
280
+ def list_events: (
281
+ space_id: ::String,
282
+ actor_id: ::String,
283
+ session_id: ::String,
284
+ ?event_timestamp_before: ::Time,
285
+ ?event_timestamp_after: ::Time,
286
+ ?sort_order: ("ASC" | "DESC"),
287
+ ?metadata_filters: Hash[::String, ::String],
288
+ ?max_results: ::Integer,
289
+ ?next_token: ::String
290
+ ) -> _ListEventsResponseSuccess
291
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListEventsResponseSuccess
292
+
293
+ interface _ListMemoriesResponseSuccess
294
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListMemoriesOutput]
295
+ def memories: () -> ::Array[Types::MemoryListSummary]
296
+ def next_token: () -> ::String
297
+ end
298
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/OpenSearchMemory/Client.html#list_memories-instance_method
299
+ def list_memories: (
300
+ space_id: ::String,
301
+ ?memory_strategies: Array[
302
+ {
303
+ memory_type: ("SEMANTIC" | "SUMMARY" | "CUSTOM"),
304
+ memory_strategy_names: Array[::String]?
305
+ }
306
+ ],
307
+ ?actor_ids: Array[::String],
308
+ ?session_ids: Array[::String],
309
+ ?sort_by: ("CREATED_AT" | "UPDATED_AT"),
310
+ ?sort_order: ("ASC" | "DESC"),
311
+ ?max_results: ::Integer,
312
+ ?next_token: ::String
313
+ ) -> _ListMemoriesResponseSuccess
314
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListMemoriesResponseSuccess
315
+
316
+ interface _ListSpacesResponseSuccess
317
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListSpacesResponse]
318
+ def spaces: () -> ::Array[Types::SpaceSummary]
319
+ def next_token: () -> ::String
320
+ end
321
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/OpenSearchMemory/Client.html#list_spaces-instance_method
322
+ def list_spaces: (
323
+ ?max_results: ::Integer,
324
+ ?next_token: ::String
325
+ ) -> _ListSpacesResponseSuccess
326
+ | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListSpacesResponseSuccess
327
+
328
+ interface _ListTagsForResourceResponseSuccess
329
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListTagsForResourceResponse]
330
+ def tags: () -> ::Array[Types::Tag]
331
+ end
332
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/OpenSearchMemory/Client.html#list_tags_for_resource-instance_method
333
+ def list_tags_for_resource: (
334
+ resource_arn: ::String
335
+ ) -> _ListTagsForResourceResponseSuccess
336
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListTagsForResourceResponseSuccess
337
+
338
+ interface _SearchEventsResponseSuccess
339
+ include ::Seahorse::Client::_ResponseSuccess[Types::SearchEventsOutput]
340
+ def events: () -> ::Array[Types::EventSearchSummary]
341
+ def next_token: () -> ::String
342
+ end
343
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/OpenSearchMemory/Client.html#search_events-instance_method
344
+ def search_events: (
345
+ space_id: ::String,
346
+ actor_id: ::String,
347
+ ?session_ids: Array[::String],
348
+ query: {
349
+ },
350
+ ?sort: {
351
+ },
352
+ ?max_results: ::Integer,
353
+ ?next_token: ::String
354
+ ) -> _SearchEventsResponseSuccess
355
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _SearchEventsResponseSuccess
356
+
357
+ interface _SearchMemoriesResponseSuccess
358
+ include ::Seahorse::Client::_ResponseSuccess[Types::SearchMemoriesOutput]
359
+ def memories: () -> ::Array[Types::MemorySearchSummary]
360
+ def next_token: () -> ::String
361
+ end
362
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/OpenSearchMemory/Client.html#search_memories-instance_method
363
+ def search_memories: (
364
+ space_id: ::String,
365
+ ?memory_strategies: Array[
366
+ {
367
+ memory_type: ("SEMANTIC" | "SUMMARY" | "CUSTOM"),
368
+ memory_strategy_names: Array[::String]?
369
+ }
370
+ ],
371
+ actor_id: ::String,
372
+ query: {
373
+ },
374
+ ?sort: {
375
+ },
376
+ ?max_results: ::Integer,
377
+ ?next_token: ::String
378
+ ) -> _SearchMemoriesResponseSuccess
379
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _SearchMemoriesResponseSuccess
380
+
381
+ interface _TagResourceResponseSuccess
382
+ include ::Seahorse::Client::_ResponseSuccess[Types::TagResourceResponse]
383
+ end
384
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/OpenSearchMemory/Client.html#tag_resource-instance_method
385
+ def tag_resource: (
386
+ resource_arn: ::String,
387
+ tags: Array[
388
+ {
389
+ key: ::String,
390
+ value: ::String
391
+ }
392
+ ]
393
+ ) -> _TagResourceResponseSuccess
394
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _TagResourceResponseSuccess
395
+
396
+ interface _UntagResourceResponseSuccess
397
+ include ::Seahorse::Client::_ResponseSuccess[Types::UntagResourceResponse]
398
+ end
399
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/OpenSearchMemory/Client.html#untag_resource-instance_method
400
+ def untag_resource: (
401
+ resource_arn: ::String,
402
+ tag_keys: Array[::String]
403
+ ) -> _UntagResourceResponseSuccess
404
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UntagResourceResponseSuccess
405
+
406
+ interface _UpdateMemoryResponseSuccess
407
+ include ::Seahorse::Client::_ResponseSuccess[Types::UpdateMemoryOutput]
408
+ def memory: () -> Types::Memory
409
+ end
410
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/OpenSearchMemory/Client.html#update_memory-instance_method
411
+ def update_memory: (
412
+ space_id: ::String,
413
+ memory_id: ::String,
414
+ ?content: ::String,
415
+ ?metadata: Hash[::String, ::String],
416
+ ?metadata_mode: ("REPLACE" | "MERGE"),
417
+ ?actor_id: ::String,
418
+ ?strategy_name: ::String
419
+ ) -> _UpdateMemoryResponseSuccess
420
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateMemoryResponseSuccess
421
+
422
+ interface _UpdateSpaceResponseSuccess
423
+ include ::Seahorse::Client::_ResponseSuccess[Types::UpdateSpaceResponse]
424
+ def space_id: () -> ::String
425
+ def status: () -> ("CREATING" | "ACTIVE" | "UPDATING" | "DELETING" | "DELETED" | "FAILED")
426
+ end
427
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/OpenSearchMemory/Client.html#update_space-instance_method
428
+ def update_space: (
429
+ space_id: ::String,
430
+ ?memory_strategies: Array[
431
+ Params::memory_strategy
432
+ ],
433
+ ?event_expiry_days: ::Integer,
434
+ ?memory_expiry_days: ::Integer,
435
+ ?extraction_model_id: ::String
436
+ ) -> _UpdateSpaceResponseSuccess
437
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateSpaceResponseSuccess
438
+
439
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/OpenSearchMemory/Client.html#wait_until-instance_method
440
+ def wait_until: (:space_active waiter_name,
441
+ space_id: ::String
442
+ ) -> Client::_GetSpaceResponseSuccess
443
+ | (:space_active waiter_name, Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> Client::_GetSpaceResponseSuccess
444
+ | (:space_deleted waiter_name,
445
+ space_id: ::String
446
+ ) -> Client::_GetSpaceResponseSuccess
447
+ | (:space_deleted waiter_name, Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> Client::_GetSpaceResponseSuccess
448
+ end
449
+ end
450
+ end
451
+
data/sig/errors.rbs ADDED
@@ -0,0 +1,46 @@
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 OpenSearchMemory
10
+ module Errors
11
+ class ServiceError < ::Aws::Errors::ServiceError
12
+ end
13
+
14
+ class AccessDeniedException < ServiceError
15
+ def message: () -> ::String
16
+ end
17
+ class ConflictException < ServiceError
18
+ def message: () -> ::String
19
+ def resource_id: () -> ::String
20
+ def resource_type: () -> ::String
21
+ end
22
+ class InternalServerException < ServiceError
23
+ def message: () -> ::String
24
+ end
25
+ class ResourceNotFoundException < ServiceError
26
+ def message: () -> ::String
27
+ def resource_id: () -> ::String
28
+ def resource_type: () -> ::String
29
+ end
30
+ class ServiceQuotaExceededException < ServiceError
31
+ def message: () -> ::String
32
+ def quota_code: () -> ::String
33
+ def service_code: () -> ::String
34
+ end
35
+ class ThrottlingException < ServiceError
36
+ def message: () -> ::String
37
+ def retry_after_seconds: () -> ::String
38
+ end
39
+ class ValidationException < ServiceError
40
+ def message: () -> ::String
41
+ def reason: () -> ::String
42
+ def field_list: () -> ::String
43
+ end
44
+ end
45
+ end
46
+ end
data/sig/params.rbs ADDED
@@ -0,0 +1,30 @@
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 OpenSearchMemory
10
+ module Params
11
+ type memory_strategy_configuration = {
12
+ extraction_prompt: ::String?,
13
+ extract_every_n_messages: ::Integer?,
14
+ extract_every_n_tokens: ::Integer?,
15
+ idle_timeout_seconds: ::Integer?,
16
+ extraction_seed_top_k: ::Integer?,
17
+ extraction_seed_recent_n: ::Integer?,
18
+ consolidation_enabled: bool?
19
+ }
20
+
21
+ type memory_strategy = {
22
+ type: ("SEMANTIC" | "SUMMARY" | "CUSTOM"),
23
+ name: ::String?,
24
+ description: ::String?,
25
+ configuration: Params::memory_strategy_configuration?
26
+ }
27
+
28
+ end
29
+ end
30
+ end
data/sig/resource.rbs ADDED
@@ -0,0 +1,87 @@
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 OpenSearchMemory
10
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/OpenSearchMemory/Resource.html
11
+ class Resource
12
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/OpenSearchMemory/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
+ ?auth_scheme_preference: Array[String],
22
+ ?client_side_monitoring: bool,
23
+ ?client_side_monitoring_client_id: String,
24
+ ?client_side_monitoring_host: String,
25
+ ?client_side_monitoring_port: Integer,
26
+ ?client_side_monitoring_publisher: untyped,
27
+ ?convert_params: bool,
28
+ ?correct_clock_skew: bool,
29
+ ?defaults_mode: String,
30
+ ?disable_clock_skew_correction: bool,
31
+ ?disable_host_prefix_injection: bool,
32
+ ?disable_request_compression: bool,
33
+ ?endpoint: String,
34
+ ?endpoint_cache_max_entries: Integer,
35
+ ?endpoint_cache_max_threads: Integer,
36
+ ?endpoint_cache_poll_interval: Integer,
37
+ ?endpoint_discovery: bool,
38
+ ?ignore_configured_endpoint_urls: bool,
39
+ ?log_formatter: untyped,
40
+ ?log_level: Symbol,
41
+ ?logger: untyped,
42
+ ?max_attempts: Integer,
43
+ ?profile: String,
44
+ ?request_checksum_calculation: String,
45
+ ?request_min_compression_size_bytes: Integer,
46
+ ?response_checksum_validation: String,
47
+ ?retry_backoff: Proc,
48
+ ?retry_base_delay: Float,
49
+ ?retry_jitter: (:none | :equal | :full | ^(Integer) -> Integer),
50
+ ?retry_limit: Integer,
51
+ ?retry_max_delay: Integer,
52
+ ?retry_mode: ("legacy" | "standard" | "adaptive"),
53
+ ?sdk_ua_app_id: String,
54
+ ?secret_access_key: String,
55
+ ?session_token: String,
56
+ ?sigv4a_signing_region_set: Array[String],
57
+ ?simple_json: bool,
58
+ ?stub_responses: untyped,
59
+ ?telemetry_provider: Aws::Telemetry::TelemetryProviderBase,
60
+ ?token_provider: untyped,
61
+ ?use_dualstack_endpoint: bool,
62
+ ?use_fips_endpoint: bool,
63
+ ?validate_params: bool,
64
+ ?endpoint_provider: untyped,
65
+ ?http_proxy: String,
66
+ ?http_open_timeout: (Float | Integer),
67
+ ?http_read_timeout: (Float | Integer),
68
+ ?http_idle_timeout: (Float | Integer),
69
+ ?http_continue_timeout: (Float | Integer),
70
+ ?ssl_timeout: (Float | Integer | nil),
71
+ ?http_wire_trace: bool,
72
+ ?ssl_verify_peer: bool,
73
+ ?ssl_ca_bundle: String,
74
+ ?ssl_ca_directory: String,
75
+ ?ssl_ca_store: String,
76
+ ?on_chunk_received: Proc,
77
+ ?on_chunk_sent: Proc,
78
+ ?raise_response_errors: bool
79
+ ) -> void
80
+ | (?Hash[Symbol, untyped]) -> void
81
+
82
+ def client: () -> Client
83
+
84
+
85
+ end
86
+ end
87
+ end