Class: Aws::LambdaMicrovms::Client
- Inherits:
-
Seahorse::Client::Base
- Object
- Seahorse::Client::Base
- Aws::LambdaMicrovms::Client
- Includes:
- ClientStubs
- Defined in:
- lib/aws-sdk-lambdamicrovms/client.rb,
sig/client.rbs
Overview
An API client for LambdaMicrovms. To construct a client, you need to configure a :region and :credentials.
client = Aws::LambdaMicrovms::Client.new(
region: region_name,
credentials: credentials,
# ...
)
For details on configuring region and credentials see the developer guide.
See #initialize for a full list of supported configuration options.
Defined Under Namespace
Modules: _CreateMicrovmAuthTokenResponseSuccess, _CreateMicrovmImageResponseSuccess, _CreateMicrovmShellAuthTokenResponseSuccess, _DeleteMicrovmImageResponseSuccess, _DeleteMicrovmImageVersionResponseSuccess, _GetMicrovmImageBuildResponseSuccess, _GetMicrovmImageResponseSuccess, _GetMicrovmImageVersionResponseSuccess, _GetMicrovmResponseSuccess, _ListManagedMicrovmImageVersionsResponseSuccess, _ListManagedMicrovmImagesResponseSuccess, _ListMicrovmImageBuildsResponseSuccess, _ListMicrovmImageVersionsResponseSuccess, _ListMicrovmImagesResponseSuccess, _ListMicrovmsResponseSuccess, _ListTagsResponseSuccess, _ResumeMicrovmResponseSuccess, _RunMicrovmResponseSuccess, _SuspendMicrovmResponseSuccess, _TerminateMicrovmResponseSuccess, _UpdateMicrovmImageResponseSuccess, _UpdateMicrovmImageVersionResponseSuccess
Class Attribute Summary collapse
- .identifier ⇒ Object readonly private
API Operations collapse
-
#create_microvm_auth_token(params = {}) ⇒ Types::CreateMicrovmAuthTokenResponse
Creates an authentication token for accessing a running MicroVM.
-
#create_microvm_image(params = {}) ⇒ Types::CreateMicrovmImageResponse
Creates a MicroVM image from the specified code artifact and base image.
-
#create_microvm_shell_auth_token(params = {}) ⇒ Types::CreateMicrovmShellAuthTokenResponse
Creates a shell authentication token for interactive shell access to a running MicroVM.
-
#delete_microvm_image(params = {}) ⇒ Types::DeleteMicrovmImageOutput
Deletes a MicroVM image.
-
#delete_microvm_image_version(params = {}) ⇒ Types::DeleteMicrovmImageVersionOutput
Deletes a specific version of a MicroVM image.
-
#get_microvm(params = {}) ⇒ Types::GetMicrovmResponse
Retrieves the details of a specific MicroVM, including its state, endpoint, image information, and configuration.
-
#get_microvm_image(params = {}) ⇒ Types::GetMicrovmImageOutput
Retrieves the details of a MicroVM image, including its state, versions, and configuration.
-
#get_microvm_image_build(params = {}) ⇒ Types::GetMicrovmImageBuildOutput
Retrieves the details of a specific MicroVM image build, including its state, target architecture, and snapshot information.
-
#get_microvm_image_version(params = {}) ⇒ Types::GetMicrovmImageVersionOutput
Retrieves the details of a specific version of a MicroVM image, including its configuration, state, and build information.
-
#list_managed_microvm_image_versions(params = {}) ⇒ Types::ListManagedMicrovmImageVersionsOutput
Lists versions of a managed MicroVM image.
-
#list_managed_microvm_images(params = {}) ⇒ Types::ListManagedMicrovmImagesOutput
Lists AWS managed MicroVM images available for use as base images.
-
#list_microvm_image_builds(params = {}) ⇒ Types::ListMicrovmImageBuildsOutput
Lists builds for a MicroVM image version with optional filtering by architecture and chipset.
-
#list_microvm_image_versions(params = {}) ⇒ Types::ListMicrovmImageVersionsOutput
Lists versions of a MicroVM image.
-
#list_microvm_images(params = {}) ⇒ Types::ListMicrovmImagesResponse
Lists MicroVM images in the account with optional name filtering.
-
#list_microvms(params = {}) ⇒ Types::ListMicrovmsResponse
Lists MicroVMs in the account with optional filtering by image and version.
-
#list_tags(params = {}) ⇒ Types::ListTagsResponse
Lists the tags associated with a Lambda MicroVM resource.
-
#resume_microvm(params = {}) ⇒ Struct
Resumes a suspended MicroVM, restoring it to RUNNING state with all state intact.
-
#run_microvm(params = {}) ⇒ Types::RunMicrovmResponse
Runs a new MicroVM from the specified image.
-
#suspend_microvm(params = {}) ⇒ Struct
Suspends a running MicroVM, preserving its full memory and disk state.
-
#tag_resource(params = {}) ⇒ Struct
Adds tags to a Lambda MicroVM resource.
-
#terminate_microvm(params = {}) ⇒ Struct
Terminates a MicroVM.
-
#untag_resource(params = {}) ⇒ Struct
Removes tags from a Lambda MicroVM resource.
-
#update_microvm_image(params = {}) ⇒ Types::UpdateMicrovmImageResponse
Updates the configuration of a MicroVM image and triggers a new version build.
-
#update_microvm_image_version(params = {}) ⇒ Types::UpdateMicrovmImageVersionResponse
Updates the status of a specific MicroVM image version.
Class Method Summary collapse
- .errors_module ⇒ Object private
- .new ⇒ Object
Instance Method Summary collapse
- #build_request(operation_name, params = {}) ⇒ Object private
-
#initialize(options) ⇒ Client
constructor
A new instance of Client.
- #waiter_names ⇒ Object deprecated private Deprecated.
Constructor Details
#initialize(options) ⇒ Client
Returns a new instance of Client.
471 472 473 |
# File 'lib/aws-sdk-lambdamicrovms/client.rb', line 471 def initialize(*args) super end |
Class Attribute Details
.identifier ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
2001 2002 2003 |
# File 'lib/aws-sdk-lambdamicrovms/client.rb', line 2001 def identifier @identifier end |
Class Method Details
.errors_module ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
2004 2005 2006 |
# File 'lib/aws-sdk-lambdamicrovms/client.rb', line 2004 def errors_module Errors end |
.new ⇒ Object
14 |
# File 'sig/client.rbs', line 14
def self.new: (
|
Instance Method Details
#build_request(operation_name, params = {}) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 |
# File 'lib/aws-sdk-lambdamicrovms/client.rb', line 1974 def build_request(operation_name, params = {}) handlers = @handlers.for(operation_name) tracer = config.telemetry_provider.tracer_provider.tracer( Aws::Telemetry.module_to_tracer_name('Aws::LambdaMicrovms') ) context = Seahorse::Client::RequestContext.new( operation_name: operation_name, operation: config.api.operation(operation_name), client: self, params: params, config: config, tracer: tracer ) context[:gem_name] = 'aws-sdk-lambdamicrovms' context[:gem_version] = '1.1.0' Seahorse::Client::Request.new(handlers, context) end |
#create_microvm_auth_token(params = {}) ⇒ Types::CreateMicrovmAuthTokenResponse
Creates an authentication token for accessing a running MicroVM. The token grants access to the specified ports on the MicroVM endpoint.
86 |
# File 'sig/client.rbs', line 86
def create_microvm_auth_token: (
|
#create_microvm_image(params = {}) ⇒ Types::CreateMicrovmImageResponse
Creates a MicroVM image from the specified code artifact and base image. The build is asynchronous — the image transitions from CREATING to CREATED on success, or CREATE_FAILED on failure. Use GetMicrovmImage to poll for completion.
128 |
# File 'sig/client.rbs', line 128
def create_microvm_image: (
|
#create_microvm_shell_auth_token(params = {}) ⇒ Types::CreateMicrovmShellAuthTokenResponse
Creates a shell authentication token for interactive shell access to a running MicroVM. The MicroVM must have been run with the SHELL_INGRESS network connector attached.
162 |
# File 'sig/client.rbs', line 162
def create_microvm_shell_auth_token: (
|
#delete_microvm_image(params = {}) ⇒ Types::DeleteMicrovmImageOutput
Deletes a MicroVM image. This operation is idempotent; deleting an image that has already been deleted succeeds without error.
174 |
# File 'sig/client.rbs', line 174
def delete_microvm_image: (
|
#delete_microvm_image_version(params = {}) ⇒ Types::DeleteMicrovmImageVersionOutput
Deletes a specific version of a MicroVM image. This operation is idempotent; deleting a version that has already been deleted succeeds without error.
186 |
# File 'sig/client.rbs', line 186
def delete_microvm_image_version: (
|
#get_microvm(params = {}) ⇒ Types::GetMicrovmResponse
Retrieves the details of a specific MicroVM, including its state, endpoint, image information, and configuration. The state field is eventually consistent — determine readiness by connecting to the endpoint.
209 |
# File 'sig/client.rbs', line 209
def get_microvm: (
|
#get_microvm_image(params = {}) ⇒ Types::GetMicrovmImageOutput
Retrieves the details of a MicroVM image, including its state, versions, and configuration.
226 |
# File 'sig/client.rbs', line 226
def get_microvm_image: (
|
#get_microvm_image_build(params = {}) ⇒ Types::GetMicrovmImageBuildOutput
Retrieves the details of a specific MicroVM image build, including its state, target architecture, and snapshot information.
245 |
# File 'sig/client.rbs', line 245
def get_microvm_image_build: (
|
#get_microvm_image_version(params = {}) ⇒ Types::GetMicrovmImageVersionOutput
Retrieves the details of a specific version of a MicroVM image, including its configuration, state, and build information.
276 |
# File 'sig/client.rbs', line 276
def get_microvm_image_version: (
|
#list_managed_microvm_image_versions(params = {}) ⇒ Types::ListManagedMicrovmImageVersionsOutput
Lists versions of a managed MicroVM image. We recommend using pagination to ensure that the operation returns quickly and successfully.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
288 |
# File 'sig/client.rbs', line 288
def list_managed_microvm_image_versions: (
|
#list_managed_microvm_images(params = {}) ⇒ Types::ListManagedMicrovmImagesOutput
Lists AWS managed MicroVM images available for use as base images. We recommend using pagination to ensure that the operation returns quickly and successfully.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
301 |
# File 'sig/client.rbs', line 301
def list_managed_microvm_images: (
|
#list_microvm_image_builds(params = {}) ⇒ Types::ListMicrovmImageBuildsOutput
Lists builds for a MicroVM image version with optional filtering by architecture and chipset. We recommend using pagination to ensure that the operation returns quickly and successfully.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
313 |
# File 'sig/client.rbs', line 313
def list_microvm_image_builds: (
|
#list_microvm_image_versions(params = {}) ⇒ Types::ListMicrovmImageVersionsOutput
Lists versions of a MicroVM image. We recommend using pagination to ensure that the operation returns quickly and successfully.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
330 |
# File 'sig/client.rbs', line 330
def list_microvm_image_versions: (
|
#list_microvm_images(params = {}) ⇒ Types::ListMicrovmImagesResponse
Lists MicroVM images in the account with optional name filtering. We recommend using pagination to ensure that the operation returns quickly and successfully.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
343 |
# File 'sig/client.rbs', line 343
def list_microvm_images: (
|
#list_microvms(params = {}) ⇒ Types::ListMicrovmsResponse
Lists MicroVMs in the account with optional filtering by image and version. We recommend using pagination to ensure that the operation returns quickly and successfully.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
356 |
# File 'sig/client.rbs', line 356
def list_microvms: (
|
#list_tags(params = {}) ⇒ Types::ListTagsResponse
Lists the tags associated with a Lambda MicroVM resource.
369 |
# File 'sig/client.rbs', line 369
def list_tags: (
|
#resume_microvm(params = {}) ⇒ Struct
Resumes a suspended MicroVM, restoring it to RUNNING state with all state intact. The MicroVM must be in SUSPENDED state.
378 |
# File 'sig/client.rbs', line 378
def resume_microvm: (
|
#run_microvm(params = {}) ⇒ Types::RunMicrovmResponse
Runs a new MicroVM from the specified image. The MicroVM starts in PENDING state and transitions to RUNNING once provisioning completes. To connect, generate an authentication token using CreateMicrovmAuthToken.
400 |
# File 'sig/client.rbs', line 400
def run_microvm: (
|
#suspend_microvm(params = {}) ⇒ Struct
Suspends a running MicroVM, preserving its full memory and disk state. The MicroVM transitions through SUSPENDING to SUSPENDED. To restore, call ResumeMicrovm or send traffic to the endpoint if autoResumeEnabled is true.
422 |
# File 'sig/client.rbs', line 422
def suspend_microvm: (
|
#tag_resource(params = {}) ⇒ Struct
Adds tags to a Lambda MicroVM resource.
428 |
# File 'sig/client.rbs', line 428
def tag_resource: (
|
#terminate_microvm(params = {}) ⇒ Struct
Terminates a MicroVM. This operation is idempotent; terminating a MicroVM that has already been terminated succeeds without error.
438 |
# File 'sig/client.rbs', line 438
def terminate_microvm: (
|
#untag_resource(params = {}) ⇒ Struct
Removes tags from a Lambda MicroVM resource.
444 |
# File 'sig/client.rbs', line 444
def untag_resource: (
|
#update_microvm_image(params = {}) ⇒ Types::UpdateMicrovmImageResponse
Updates the configuration of a MicroVM image and triggers a new version build. This operation uses PUT semantics — all required fields (codeArtifact, baseImageArn, buildRoleArn) must be provided with every request.
474 |
# File 'sig/client.rbs', line 474
def update_microvm_image: (
|
#update_microvm_image_version(params = {}) ⇒ Types::UpdateMicrovmImageVersionResponse
Updates the status of a specific MicroVM image version.
526 |
# File 'sig/client.rbs', line 526
def update_microvm_image_version: (
|
#waiter_names ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
1994 1995 1996 |
# File 'lib/aws-sdk-lambdamicrovms/client.rb', line 1994 def waiter_names [] end |