aws-sdk-lambdamicrovms 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.
@@ -0,0 +1,61 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+
11
+ require 'aws-sdk-core'
12
+ require 'aws-sigv4'
13
+
14
+ Aws::Plugins::GlobalConfiguration.add_identifier(:lambdamicrovms)
15
+
16
+ # This module provides support for Lambda MicroVMs. This module is available in the
17
+ # `aws-sdk-lambdamicrovms` gem.
18
+ #
19
+ # # Client
20
+ #
21
+ # The {Client} class provides one method for each API operation. Operation
22
+ # methods each accept a hash of request parameters and return a response
23
+ # structure.
24
+ #
25
+ # lambda_microvms = Aws::LambdaMicrovms::Client.new
26
+ # resp = lambda_microvms.create_microvm_auth_token(params)
27
+ #
28
+ # See {Client} for more information.
29
+ #
30
+ # # Errors
31
+ #
32
+ # Errors returned from Lambda MicroVMs are defined in the
33
+ # {Errors} module and all extend {Errors::ServiceError}.
34
+ #
35
+ # begin
36
+ # # do stuff
37
+ # rescue Aws::LambdaMicrovms::Errors::ServiceError
38
+ # # rescues all Lambda MicroVMs API errors
39
+ # end
40
+ #
41
+ # See {Errors} for more information.
42
+ #
43
+ # @!group service
44
+ module Aws::LambdaMicrovms
45
+ autoload :Types, 'aws-sdk-lambdamicrovms/types'
46
+ autoload :ClientApi, 'aws-sdk-lambdamicrovms/client_api'
47
+ module Plugins
48
+ autoload :Endpoints, 'aws-sdk-lambdamicrovms/plugins/endpoints.rb'
49
+ end
50
+ autoload :Client, 'aws-sdk-lambdamicrovms/client'
51
+ autoload :Errors, 'aws-sdk-lambdamicrovms/errors'
52
+ autoload :Resource, 'aws-sdk-lambdamicrovms/resource'
53
+ autoload :EndpointParameters, 'aws-sdk-lambdamicrovms/endpoint_parameters'
54
+ autoload :EndpointProvider, 'aws-sdk-lambdamicrovms/endpoint_provider'
55
+ autoload :Endpoints, 'aws-sdk-lambdamicrovms/endpoints'
56
+
57
+ GEM_VERSION = '1.0.0'
58
+
59
+ end
60
+
61
+ require_relative 'aws-sdk-lambdamicrovms/customizations'
data/sig/client.rbs ADDED
@@ -0,0 +1,535 @@
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 LambdaMicrovms
10
+ class Client < ::Seahorse::Client::Base
11
+ include ::Aws::ClientStubs
12
+
13
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/LambdaMicrovms/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_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_checksum_calculation: String,
44
+ ?request_min_compression_size_bytes: Integer,
45
+ ?response_checksum_validation: String,
46
+ ?retry_backoff: Proc,
47
+ ?retry_base_delay: Float,
48
+ ?retry_jitter: (:none | :equal | :full | ^(Integer) -> Integer),
49
+ ?retry_limit: Integer,
50
+ ?retry_max_delay: Integer,
51
+ ?retry_mode: ("legacy" | "standard" | "adaptive"),
52
+ ?sdk_ua_app_id: String,
53
+ ?secret_access_key: String,
54
+ ?session_token: String,
55
+ ?sigv4a_signing_region_set: Array[String],
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
+ ?endpoint_provider: untyped,
63
+ ?http_proxy: String,
64
+ ?http_open_timeout: (Float | Integer),
65
+ ?http_read_timeout: (Float | Integer),
66
+ ?http_idle_timeout: (Float | Integer),
67
+ ?http_continue_timeout: (Float | Integer),
68
+ ?ssl_timeout: (Float | Integer | nil),
69
+ ?http_wire_trace: bool,
70
+ ?ssl_verify_peer: bool,
71
+ ?ssl_ca_bundle: String,
72
+ ?ssl_ca_directory: String,
73
+ ?ssl_ca_store: String,
74
+ ?on_chunk_received: Proc,
75
+ ?on_chunk_sent: Proc,
76
+ ?raise_response_errors: bool
77
+ ) -> instance
78
+ | (?Hash[Symbol, untyped]) -> instance
79
+
80
+
81
+ interface _CreateMicrovmAuthTokenResponseSuccess
82
+ include ::Seahorse::Client::_ResponseSuccess[Types::CreateMicrovmAuthTokenResponse]
83
+ def auth_token: () -> ::Hash[::String, ::String]
84
+ end
85
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/LambdaMicrovms/Client.html#create_microvm_auth_token-instance_method
86
+ def create_microvm_auth_token: (
87
+ microvm_identifier: ::String,
88
+ expiration_in_minutes: ::Integer,
89
+ allowed_ports: Array[
90
+ {
91
+ port: ::Integer?,
92
+ range: {
93
+ start_port: ::Integer,
94
+ end_port: ::Integer
95
+ }?,
96
+ all_ports: {
97
+ }?
98
+ }
99
+ ]
100
+ ) -> _CreateMicrovmAuthTokenResponseSuccess
101
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateMicrovmAuthTokenResponseSuccess
102
+
103
+ interface _CreateMicrovmImageResponseSuccess
104
+ include ::Seahorse::Client::_ResponseSuccess[Types::CreateMicrovmImageResponse]
105
+ def image_arn: () -> ::String
106
+ def name: () -> ::String
107
+ def state: () -> ("CREATING" | "CREATED" | "CREATE_FAILED" | "UPDATING" | "UPDATED" | "UPDATE_FAILED" | "DELETING" | "DELETE_FAILED" | "DELETED")
108
+ def latest_active_image_version: () -> ::String
109
+ def latest_failed_image_version: () -> ::String
110
+ def created_at: () -> ::Time
111
+ def base_image_arn: () -> ::String
112
+ def base_image_version: () -> ::String
113
+ def build_role_arn: () -> ::String
114
+ def description: () -> ::String
115
+ def code_artifact: () -> Types::CodeArtifact
116
+ def logging: () -> Types::Logging
117
+ def egress_network_connectors: () -> ::Array[::String]
118
+ def cpu_configurations: () -> ::Array[Types::CpuConfiguration]
119
+ def resources: () -> ::Array[Types::Resources]
120
+ def additional_os_capabilities: () -> ::Array[("ALL")]
121
+ def hooks: () -> Types::Hooks
122
+ def environment_variables: () -> ::Hash[::String, ::String]
123
+ def tags: () -> ::Hash[::String, ::String]
124
+ def updated_at: () -> ::Time
125
+ def image_version: () -> ::String
126
+ end
127
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/LambdaMicrovms/Client.html#create_microvm_image-instance_method
128
+ def create_microvm_image: (
129
+ base_image_arn: ::String,
130
+ ?base_image_version: ::String,
131
+ build_role_arn: ::String,
132
+ ?description: ::String,
133
+ code_artifact: {
134
+ uri: ::String?
135
+ },
136
+ ?logging: Params::logging,
137
+ ?egress_network_connectors: Array[::String],
138
+ ?cpu_configurations: Array[
139
+ {
140
+ architecture: ("ARM_64")
141
+ }
142
+ ],
143
+ ?resources: Array[
144
+ {
145
+ minimum_memory_in_mi_b: ::Integer
146
+ }
147
+ ],
148
+ ?additional_os_capabilities: Array[("ALL")],
149
+ ?hooks: Params::hooks,
150
+ ?environment_variables: Hash[::String, ::String],
151
+ name: ::String,
152
+ ?tags: Hash[::String, ::String],
153
+ ?client_token: ::String
154
+ ) -> _CreateMicrovmImageResponseSuccess
155
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateMicrovmImageResponseSuccess
156
+
157
+ interface _CreateMicrovmShellAuthTokenResponseSuccess
158
+ include ::Seahorse::Client::_ResponseSuccess[Types::CreateMicrovmShellAuthTokenResponse]
159
+ def auth_token: () -> ::Hash[::String, ::String]
160
+ end
161
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/LambdaMicrovms/Client.html#create_microvm_shell_auth_token-instance_method
162
+ def create_microvm_shell_auth_token: (
163
+ microvm_identifier: ::String,
164
+ expiration_in_minutes: ::Integer
165
+ ) -> _CreateMicrovmShellAuthTokenResponseSuccess
166
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateMicrovmShellAuthTokenResponseSuccess
167
+
168
+ interface _DeleteMicrovmImageResponseSuccess
169
+ include ::Seahorse::Client::_ResponseSuccess[Types::DeleteMicrovmImageOutput]
170
+ def image_identifier: () -> ::String
171
+ def state: () -> ("CREATING" | "CREATED" | "CREATE_FAILED" | "UPDATING" | "UPDATED" | "UPDATE_FAILED" | "DELETING" | "DELETE_FAILED" | "DELETED")
172
+ end
173
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/LambdaMicrovms/Client.html#delete_microvm_image-instance_method
174
+ def delete_microvm_image: (
175
+ image_identifier: ::String
176
+ ) -> _DeleteMicrovmImageResponseSuccess
177
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteMicrovmImageResponseSuccess
178
+
179
+ interface _DeleteMicrovmImageVersionResponseSuccess
180
+ include ::Seahorse::Client::_ResponseSuccess[Types::DeleteMicrovmImageVersionOutput]
181
+ def image_identifier: () -> ::String
182
+ def image_version: () -> ::String
183
+ def state: () -> ("PENDING" | "IN_PROGRESS" | "SUCCESSFUL" | "FAILED" | "DELETING" | "DELETED" | "DELETE_FAILED")
184
+ end
185
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/LambdaMicrovms/Client.html#delete_microvm_image_version-instance_method
186
+ def delete_microvm_image_version: (
187
+ image_identifier: ::String,
188
+ image_version: ::String
189
+ ) -> _DeleteMicrovmImageVersionResponseSuccess
190
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteMicrovmImageVersionResponseSuccess
191
+
192
+ interface _GetMicrovmResponseSuccess
193
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetMicrovmResponse]
194
+ def microvm_id: () -> ::String
195
+ def state: () -> ("PENDING" | "RUNNING" | "SUSPENDING" | "SUSPENDED" | "TERMINATING" | "TERMINATED")
196
+ def endpoint: () -> ::String
197
+ def image_arn: () -> ::String
198
+ def image_version: () -> ::String
199
+ def execution_role_arn: () -> ::String
200
+ def idle_policy: () -> Types::IdlePolicy
201
+ def maximum_duration_in_seconds: () -> ::Integer
202
+ def started_at: () -> ::Time
203
+ def terminated_at: () -> ::Time
204
+ def state_reason: () -> ::String
205
+ def ingress_network_connectors: () -> ::Array[::String]
206
+ def egress_network_connectors: () -> ::Array[::String]
207
+ end
208
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/LambdaMicrovms/Client.html#get_microvm-instance_method
209
+ def get_microvm: (
210
+ microvm_identifier: ::String
211
+ ) -> _GetMicrovmResponseSuccess
212
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetMicrovmResponseSuccess
213
+
214
+ interface _GetMicrovmImageResponseSuccess
215
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetMicrovmImageOutput]
216
+ def image_arn: () -> ::String
217
+ def name: () -> ::String
218
+ def state: () -> ("CREATING" | "CREATED" | "CREATE_FAILED" | "UPDATING" | "UPDATED" | "UPDATE_FAILED" | "DELETING" | "DELETE_FAILED" | "DELETED")
219
+ def latest_active_image_version: () -> ::String
220
+ def latest_failed_image_version: () -> ::String
221
+ def created_at: () -> ::Time
222
+ def tags: () -> ::Hash[::String, ::String]
223
+ def updated_at: () -> ::Time
224
+ end
225
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/LambdaMicrovms/Client.html#get_microvm_image-instance_method
226
+ def get_microvm_image: (
227
+ image_identifier: ::String
228
+ ) -> _GetMicrovmImageResponseSuccess
229
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetMicrovmImageResponseSuccess
230
+
231
+ interface _GetMicrovmImageBuildResponseSuccess
232
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetMicrovmImageBuildOutput]
233
+ def image_arn: () -> ::String
234
+ def image_version: () -> ::String
235
+ def build_id: () -> ::String
236
+ def build_state: () -> ("PENDING" | "IN_PROGRESS" | "SUCCESSFUL" | "FAILED")
237
+ def architecture: () -> ("ARM_64")
238
+ def chipset: () -> ("GRAVITON")
239
+ def chipset_generation: () -> ::String
240
+ def state_reason: () -> ::String
241
+ def created_at: () -> ::Time
242
+ def snapshot_build: () -> Types::SnapshotBuild
243
+ end
244
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/LambdaMicrovms/Client.html#get_microvm_image_build-instance_method
245
+ def get_microvm_image_build: (
246
+ image_identifier: ::String,
247
+ image_version: ::String,
248
+ build_id: ::String
249
+ ) -> _GetMicrovmImageBuildResponseSuccess
250
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetMicrovmImageBuildResponseSuccess
251
+
252
+ interface _GetMicrovmImageVersionResponseSuccess
253
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetMicrovmImageVersionOutput]
254
+ def base_image_arn: () -> ::String
255
+ def base_image_version: () -> ::String
256
+ def build_role_arn: () -> ::String
257
+ def description: () -> ::String
258
+ def code_artifact: () -> Types::CodeArtifact
259
+ def logging: () -> Types::Logging
260
+ def egress_network_connectors: () -> ::Array[::String]
261
+ def cpu_configurations: () -> ::Array[Types::CpuConfiguration]
262
+ def resources: () -> ::Array[Types::Resources]
263
+ def additional_os_capabilities: () -> ::Array[("ALL")]
264
+ def hooks: () -> Types::Hooks
265
+ def environment_variables: () -> ::Hash[::String, ::String]
266
+ def image_arn: () -> ::String
267
+ def image_version: () -> ::String
268
+ def state: () -> ("PENDING" | "IN_PROGRESS" | "SUCCESSFUL" | "FAILED" | "DELETING" | "DELETED" | "DELETE_FAILED")
269
+ def status: () -> ("ACTIVE" | "INACTIVE")
270
+ def created_at: () -> ::Time
271
+ def updated_at: () -> ::Time
272
+ def state_reason: () -> ::String
273
+ def tags: () -> ::Hash[::String, ::String]
274
+ end
275
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/LambdaMicrovms/Client.html#get_microvm_image_version-instance_method
276
+ def get_microvm_image_version: (
277
+ image_identifier: ::String,
278
+ image_version: ::String
279
+ ) -> _GetMicrovmImageVersionResponseSuccess
280
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetMicrovmImageVersionResponseSuccess
281
+
282
+ interface _ListManagedMicrovmImageVersionsResponseSuccess
283
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListManagedMicrovmImageVersionsOutput]
284
+ def next_token: () -> ::String
285
+ def items: () -> ::Array[Types::ManagedMicrovmImageVersion]
286
+ end
287
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/LambdaMicrovms/Client.html#list_managed_microvm_image_versions-instance_method
288
+ def list_managed_microvm_image_versions: (
289
+ ?max_results: ::Integer,
290
+ ?next_token: ::String,
291
+ image_identifier: ::String
292
+ ) -> _ListManagedMicrovmImageVersionsResponseSuccess
293
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListManagedMicrovmImageVersionsResponseSuccess
294
+
295
+ interface _ListManagedMicrovmImagesResponseSuccess
296
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListManagedMicrovmImagesOutput]
297
+ def next_token: () -> ::String
298
+ def items: () -> ::Array[Types::ManagedMicrovmImageSummary]
299
+ end
300
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/LambdaMicrovms/Client.html#list_managed_microvm_images-instance_method
301
+ def list_managed_microvm_images: (
302
+ ?max_results: ::Integer,
303
+ ?next_token: ::String
304
+ ) -> _ListManagedMicrovmImagesResponseSuccess
305
+ | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListManagedMicrovmImagesResponseSuccess
306
+
307
+ interface _ListMicrovmImageBuildsResponseSuccess
308
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListMicrovmImageBuildsOutput]
309
+ def next_token: () -> ::String
310
+ def items: () -> ::Array[Types::MicrovmImageBuildSummary]
311
+ end
312
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/LambdaMicrovms/Client.html#list_microvm_image_builds-instance_method
313
+ def list_microvm_image_builds: (
314
+ ?max_results: ::Integer,
315
+ ?next_token: ::String,
316
+ image_identifier: ::String,
317
+ image_version: ::String,
318
+ ?architecture: ("ARM_64"),
319
+ ?chipset: ("GRAVITON"),
320
+ ?chipset_generation: ::String
321
+ ) -> _ListMicrovmImageBuildsResponseSuccess
322
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListMicrovmImageBuildsResponseSuccess
323
+
324
+ interface _ListMicrovmImageVersionsResponseSuccess
325
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListMicrovmImageVersionsOutput]
326
+ def next_token: () -> ::String
327
+ def items: () -> ::Array[Types::MicrovmImageVersionSummary]
328
+ end
329
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/LambdaMicrovms/Client.html#list_microvm_image_versions-instance_method
330
+ def list_microvm_image_versions: (
331
+ ?max_results: ::Integer,
332
+ ?next_token: ::String,
333
+ image_identifier: ::String
334
+ ) -> _ListMicrovmImageVersionsResponseSuccess
335
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListMicrovmImageVersionsResponseSuccess
336
+
337
+ interface _ListMicrovmImagesResponseSuccess
338
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListMicrovmImagesResponse]
339
+ def next_token: () -> ::String
340
+ def items: () -> ::Array[Types::MicrovmImageSummary]
341
+ end
342
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/LambdaMicrovms/Client.html#list_microvm_images-instance_method
343
+ def list_microvm_images: (
344
+ ?max_results: ::Integer,
345
+ ?next_token: ::String,
346
+ ?name_filter: ::String
347
+ ) -> _ListMicrovmImagesResponseSuccess
348
+ | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListMicrovmImagesResponseSuccess
349
+
350
+ interface _ListMicrovmsResponseSuccess
351
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListMicrovmsResponse]
352
+ def next_token: () -> ::String
353
+ def items: () -> ::Array[Types::MicrovmItem]
354
+ end
355
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/LambdaMicrovms/Client.html#list_microvms-instance_method
356
+ def list_microvms: (
357
+ ?max_results: ::Integer,
358
+ ?next_token: ::String,
359
+ ?image_identifier: ::String,
360
+ ?image_version: ::String
361
+ ) -> _ListMicrovmsResponseSuccess
362
+ | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListMicrovmsResponseSuccess
363
+
364
+ interface _ListTagsResponseSuccess
365
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListTagsResponse]
366
+ def tags: () -> ::Hash[::String, ::String]
367
+ end
368
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/LambdaMicrovms/Client.html#list_tags-instance_method
369
+ def list_tags: (
370
+ resource: ::String
371
+ ) -> _ListTagsResponseSuccess
372
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListTagsResponseSuccess
373
+
374
+ interface _ResumeMicrovmResponseSuccess
375
+ include ::Seahorse::Client::_ResponseSuccess[Types::ResumeMicrovmResponse]
376
+ end
377
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/LambdaMicrovms/Client.html#resume_microvm-instance_method
378
+ def resume_microvm: (
379
+ microvm_identifier: ::String
380
+ ) -> _ResumeMicrovmResponseSuccess
381
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ResumeMicrovmResponseSuccess
382
+
383
+ interface _RunMicrovmResponseSuccess
384
+ include ::Seahorse::Client::_ResponseSuccess[Types::RunMicrovmResponse]
385
+ def microvm_id: () -> ::String
386
+ def state: () -> ("PENDING" | "RUNNING" | "SUSPENDING" | "SUSPENDED" | "TERMINATING" | "TERMINATED")
387
+ def endpoint: () -> ::String
388
+ def image_arn: () -> ::String
389
+ def image_version: () -> ::String
390
+ def execution_role_arn: () -> ::String
391
+ def idle_policy: () -> Types::IdlePolicy
392
+ def maximum_duration_in_seconds: () -> ::Integer
393
+ def started_at: () -> ::Time
394
+ def terminated_at: () -> ::Time
395
+ def state_reason: () -> ::String
396
+ def ingress_network_connectors: () -> ::Array[::String]
397
+ def egress_network_connectors: () -> ::Array[::String]
398
+ end
399
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/LambdaMicrovms/Client.html#run_microvm-instance_method
400
+ def run_microvm: (
401
+ ?ingress_network_connectors: Array[::String],
402
+ ?egress_network_connectors: Array[::String],
403
+ image_identifier: ::String,
404
+ ?image_version: ::String,
405
+ ?execution_role_arn: ::String,
406
+ ?idle_policy: {
407
+ max_idle_duration_seconds: ::Integer,
408
+ suspended_duration_seconds: ::Integer,
409
+ auto_resume_enabled: bool
410
+ },
411
+ ?logging: Params::logging,
412
+ ?run_hook_payload: ::String,
413
+ ?maximum_duration_in_seconds: ::Integer,
414
+ ?client_token: ::String
415
+ ) -> _RunMicrovmResponseSuccess
416
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _RunMicrovmResponseSuccess
417
+
418
+ interface _SuspendMicrovmResponseSuccess
419
+ include ::Seahorse::Client::_ResponseSuccess[Types::SuspendMicrovmResponse]
420
+ end
421
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/LambdaMicrovms/Client.html#suspend_microvm-instance_method
422
+ def suspend_microvm: (
423
+ microvm_identifier: ::String
424
+ ) -> _SuspendMicrovmResponseSuccess
425
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _SuspendMicrovmResponseSuccess
426
+
427
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/LambdaMicrovms/Client.html#tag_resource-instance_method
428
+ def tag_resource: (
429
+ resource: ::String,
430
+ tags: Hash[::String, ::String]
431
+ ) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
432
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
433
+
434
+ interface _TerminateMicrovmResponseSuccess
435
+ include ::Seahorse::Client::_ResponseSuccess[Types::TerminateMicrovmResponse]
436
+ end
437
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/LambdaMicrovms/Client.html#terminate_microvm-instance_method
438
+ def terminate_microvm: (
439
+ microvm_identifier: ::String
440
+ ) -> _TerminateMicrovmResponseSuccess
441
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _TerminateMicrovmResponseSuccess
442
+
443
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/LambdaMicrovms/Client.html#untag_resource-instance_method
444
+ def untag_resource: (
445
+ resource: ::String,
446
+ tag_keys: Array[::String]
447
+ ) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
448
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
449
+
450
+ interface _UpdateMicrovmImageResponseSuccess
451
+ include ::Seahorse::Client::_ResponseSuccess[Types::UpdateMicrovmImageResponse]
452
+ def image_arn: () -> ::String
453
+ def name: () -> ::String
454
+ def state: () -> ("CREATING" | "CREATED" | "CREATE_FAILED" | "UPDATING" | "UPDATED" | "UPDATE_FAILED" | "DELETING" | "DELETE_FAILED" | "DELETED")
455
+ def latest_active_image_version: () -> ::String
456
+ def latest_failed_image_version: () -> ::String
457
+ def created_at: () -> ::Time
458
+ def base_image_arn: () -> ::String
459
+ def base_image_version: () -> ::String
460
+ def build_role_arn: () -> ::String
461
+ def description: () -> ::String
462
+ def code_artifact: () -> Types::CodeArtifact
463
+ def logging: () -> Types::Logging
464
+ def egress_network_connectors: () -> ::Array[::String]
465
+ def cpu_configurations: () -> ::Array[Types::CpuConfiguration]
466
+ def resources: () -> ::Array[Types::Resources]
467
+ def additional_os_capabilities: () -> ::Array[("ALL")]
468
+ def hooks: () -> Types::Hooks
469
+ def environment_variables: () -> ::Hash[::String, ::String]
470
+ def updated_at: () -> ::Time
471
+ def image_version: () -> ::String
472
+ end
473
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/LambdaMicrovms/Client.html#update_microvm_image-instance_method
474
+ def update_microvm_image: (
475
+ base_image_arn: ::String,
476
+ ?base_image_version: ::String,
477
+ build_role_arn: ::String,
478
+ ?description: ::String,
479
+ code_artifact: {
480
+ uri: ::String?
481
+ },
482
+ ?logging: Params::logging,
483
+ ?egress_network_connectors: Array[::String],
484
+ ?cpu_configurations: Array[
485
+ {
486
+ architecture: ("ARM_64")
487
+ }
488
+ ],
489
+ ?resources: Array[
490
+ {
491
+ minimum_memory_in_mi_b: ::Integer
492
+ }
493
+ ],
494
+ ?additional_os_capabilities: Array[("ALL")],
495
+ ?hooks: Params::hooks,
496
+ ?environment_variables: Hash[::String, ::String],
497
+ image_identifier: ::String,
498
+ ?client_token: ::String
499
+ ) -> _UpdateMicrovmImageResponseSuccess
500
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateMicrovmImageResponseSuccess
501
+
502
+ interface _UpdateMicrovmImageVersionResponseSuccess
503
+ include ::Seahorse::Client::_ResponseSuccess[Types::UpdateMicrovmImageVersionResponse]
504
+ def base_image_arn: () -> ::String
505
+ def base_image_version: () -> ::String
506
+ def build_role_arn: () -> ::String
507
+ def description: () -> ::String
508
+ def code_artifact: () -> Types::CodeArtifact
509
+ def logging: () -> Types::Logging
510
+ def egress_network_connectors: () -> ::Array[::String]
511
+ def cpu_configurations: () -> ::Array[Types::CpuConfiguration]
512
+ def resources: () -> ::Array[Types::Resources]
513
+ def additional_os_capabilities: () -> ::Array[("ALL")]
514
+ def hooks: () -> Types::Hooks
515
+ def environment_variables: () -> ::Hash[::String, ::String]
516
+ def image_arn: () -> ::String
517
+ def image_version: () -> ::String
518
+ def state: () -> ("PENDING" | "IN_PROGRESS" | "SUCCESSFUL" | "FAILED" | "DELETING" | "DELETED" | "DELETE_FAILED")
519
+ def status: () -> ("ACTIVE" | "INACTIVE")
520
+ def created_at: () -> ::Time
521
+ def updated_at: () -> ::Time
522
+ def state_reason: () -> ::String
523
+ def tags: () -> ::Hash[::String, ::String]
524
+ end
525
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/LambdaMicrovms/Client.html#update_microvm_image_version-instance_method
526
+ def update_microvm_image_version: (
527
+ image_identifier: ::String,
528
+ image_version: ::String,
529
+ status: ("ACTIVE" | "INACTIVE")
530
+ ) -> _UpdateMicrovmImageVersionResponseSuccess
531
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateMicrovmImageVersionResponseSuccess
532
+ end
533
+ end
534
+ end
535
+
data/sig/errors.rbs ADDED
@@ -0,0 +1,65 @@
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 LambdaMicrovms
10
+ module Errors
11
+ class ServiceError < ::Aws::Errors::ServiceError
12
+ end
13
+
14
+ class AccessDeniedException < ::Aws::Errors::ServiceError
15
+ def message: () -> ::String
16
+ end
17
+ class ConflictException < ::Aws::Errors::ServiceError
18
+ def message: () -> ::String
19
+ def resource_id: () -> ::String
20
+ def resource_type: () -> ::String
21
+ end
22
+ class InternalServerException < ::Aws::Errors::ServiceError
23
+ def message: () -> ::String
24
+ def retry_after_seconds: () -> ::String
25
+ end
26
+ class InvalidParameterValueException < ::Aws::Errors::ServiceError
27
+ def type: () -> ::String
28
+ def message: () -> ::String
29
+ end
30
+ class ResourceConflictException < ::Aws::Errors::ServiceError
31
+ def type: () -> ::String
32
+ def message: () -> ::String
33
+ end
34
+ class ResourceNotFoundException < ::Aws::Errors::ServiceError
35
+ def message: () -> ::String
36
+ def resource_type: () -> ::String
37
+ def resource_id: () -> ::String
38
+ end
39
+ class ServiceException < ::Aws::Errors::ServiceError
40
+ def type: () -> ::String
41
+ def message: () -> ::String
42
+ end
43
+ class ServiceQuotaExceededException < ::Aws::Errors::ServiceError
44
+ def message: () -> ::String
45
+ def resource_id: () -> ::String
46
+ def resource_type: () -> ::String
47
+ def service_code: () -> ::String
48
+ def quota_code: () -> ::String
49
+ end
50
+ class ThrottlingException < ::Aws::Errors::ServiceError
51
+ def message: () -> ::String
52
+ def service_code: () -> ::String
53
+ def quota_code: () -> ::String
54
+ def retry_after_seconds: () -> ::String
55
+ end
56
+ class TooManyRequestsException < ::Aws::Errors::ServiceError
57
+ def type: () -> ::String
58
+ def message: () -> ::String
59
+ end
60
+ class ValidationException < ::Aws::Errors::ServiceError
61
+ def message: () -> ::String
62
+ end
63
+ end
64
+ end
65
+ end