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
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](/sdk-for-ruby/v3/developer-guide/setup-config.html).
See #initialize for a full list of supported configuration options.
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
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 |
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.0.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.
522 523 524 525 |
# File 'lib/aws-sdk-lambdamicrovms/client.rb', line 522 def create_microvm_auth_token(params = {}, = {}) req = build_request(:create_microvm_auth_token, params) req.send_request() end |
#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.
722 723 724 725 |
# File 'lib/aws-sdk-lambdamicrovms/client.rb', line 722 def create_microvm_image(params = {}, = {}) req = build_request(:create_microvm_image, params) req.send_request() end |
#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.
757 758 759 760 |
# File 'lib/aws-sdk-lambdamicrovms/client.rb', line 757 def create_microvm_shell_auth_token(params = {}, = {}) req = build_request(:create_microvm_shell_auth_token, params) req.send_request() end |
#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.
788 789 790 791 |
# File 'lib/aws-sdk-lambdamicrovms/client.rb', line 788 def delete_microvm_image(params = {}, = {}) req = build_request(:delete_microvm_image, params) req.send_request() end |
#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.
826 827 828 829 |
# File 'lib/aws-sdk-lambdamicrovms/client.rb', line 826 def delete_microvm_image_version(params = {}, = {}) req = build_request(:delete_microvm_image_version, params) req.send_request() end |
#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.
885 886 887 888 |
# File 'lib/aws-sdk-lambdamicrovms/client.rb', line 885 def get_microvm(params = {}, = {}) req = build_request(:get_microvm, params) req.send_request() end |
#get_microvm_image(params = {}) ⇒ Types::GetMicrovmImageOutput
Retrieves the details of a MicroVM image, including its state, versions, and configuration.
929 930 931 932 |
# File 'lib/aws-sdk-lambdamicrovms/client.rb', line 929 def get_microvm_image(params = {}, = {}) req = build_request(:get_microvm_image, params) req.send_request() end |
#get_microvm_image_build(params = {}) ⇒ Types::GetMicrovmImageBuildOutput
Retrieves the details of a specific MicroVM image build, including its state, target architecture, and snapshot information.
986 987 988 989 |
# File 'lib/aws-sdk-lambdamicrovms/client.rb', line 986 def get_microvm_image_build(params = {}, = {}) req = build_request(:get_microvm_image_build, params) req.send_request() end |
#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.
1076 1077 1078 1079 |
# File 'lib/aws-sdk-lambdamicrovms/client.rb', line 1076 def get_microvm_image_version(params = {}, = {}) req = build_request(:get_microvm_image_version, params) req.send_request() end |
#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.
1124 1125 1126 1127 |
# File 'lib/aws-sdk-lambdamicrovms/client.rb', line 1124 def list_managed_microvm_image_versions(params = {}, = {}) req = build_request(:list_managed_microvm_image_versions, params) req.send_request() end |
#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.
1166 1167 1168 1169 |
# File 'lib/aws-sdk-lambdamicrovms/client.rb', line 1166 def list_managed_microvm_images(params = {}, = {}) req = build_request(:list_managed_microvm_images, params) req.send_request() end |
#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.
1234 1235 1236 1237 |
# File 'lib/aws-sdk-lambdamicrovms/client.rb', line 1234 def list_microvm_image_builds(params = {}, = {}) req = build_request(:list_microvm_image_builds, params) req.send_request() end |
#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.
1316 1317 1318 1319 |
# File 'lib/aws-sdk-lambdamicrovms/client.rb', line 1316 def list_microvm_image_versions(params = {}, = {}) req = build_request(:list_microvm_image_versions, params) req.send_request() end |
#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.
1365 1366 1367 1368 |
# File 'lib/aws-sdk-lambdamicrovms/client.rb', line 1365 def list_microvm_images(params = {}, = {}) req = build_request(:list_microvm_images, params) req.send_request() end |
#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.
1418 1419 1420 1421 |
# File 'lib/aws-sdk-lambdamicrovms/client.rb', line 1418 def list_microvms(params = {}, = {}) req = build_request(:list_microvms, params) req.send_request() end |
#list_tags(params = {}) ⇒ Types::ListTagsResponse
Lists the tags associated with a Lambda MicroVM resource.
1447 1448 1449 1450 |
# File 'lib/aws-sdk-lambdamicrovms/client.rb', line 1447 def (params = {}, = {}) req = build_request(:list_tags, params) req.send_request() end |
#resume_microvm(params = {}) ⇒ Struct
Resumes a suspended MicroVM, restoring it to RUNNING state with all state intact. The MicroVM must be in SUSPENDED state.
1470 1471 1472 1473 |
# File 'lib/aws-sdk-lambdamicrovms/client.rb', line 1470 def resume_microvm(params = {}, = {}) req = build_request(:resume_microvm, params) req.send_request() end |
#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.
1586 1587 1588 1589 |
# File 'lib/aws-sdk-lambdamicrovms/client.rb', line 1586 def run_microvm(params = {}, = {}) req = build_request(:run_microvm, params) req.send_request() end |
#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.
1611 1612 1613 1614 |
# File 'lib/aws-sdk-lambdamicrovms/client.rb', line 1611 def suspend_microvm(params = {}, = {}) req = build_request(:suspend_microvm, params) req.send_request() end |
#tag_resource(params = {}) ⇒ Struct
Adds tags to a Lambda MicroVM resource.
1639 1640 1641 1642 |
# File 'lib/aws-sdk-lambdamicrovms/client.rb', line 1639 def tag_resource(params = {}, = {}) req = build_request(:tag_resource, params) req.send_request() end |
#terminate_microvm(params = {}) ⇒ Struct
Terminates a MicroVM. This operation is idempotent; terminating a MicroVM that has already been terminated succeeds without error.
1662 1663 1664 1665 |
# File 'lib/aws-sdk-lambdamicrovms/client.rb', line 1662 def terminate_microvm(params = {}, = {}) req = build_request(:terminate_microvm, params) req.send_request() end |
#untag_resource(params = {}) ⇒ Struct
Removes tags from a Lambda MicroVM resource.
1688 1689 1690 1691 |
# File 'lib/aws-sdk-lambdamicrovms/client.rb', line 1688 def untag_resource(params = {}, = {}) req = build_request(:untag_resource, params) req.send_request() end |
#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.
1872 1873 1874 1875 |
# File 'lib/aws-sdk-lambdamicrovms/client.rb', line 1872 def update_microvm_image(params = {}, = {}) req = build_request(:update_microvm_image, params) req.send_request() end |
#update_microvm_image_version(params = {}) ⇒ Types::UpdateMicrovmImageVersionResponse
Updates the status of a specific MicroVM image version.
1965 1966 1967 1968 |
# File 'lib/aws-sdk-lambdamicrovms/client.rb', line 1965 def update_microvm_image_version(params = {}, = {}) req = build_request(:update_microvm_image_version, params) req.send_request() end |
#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 |