Class: Aws::LambdaCore::Client
- Inherits:
-
Seahorse::Client::Base
- Object
- Seahorse::Client::Base
- Aws::LambdaCore::Client
- Includes:
- ClientStubs
- Defined in:
- lib/aws-sdk-lambdacore/client.rb
Overview
An API client for LambdaCore. To construct a client, you need to configure a ‘:region` and `:credentials`.
client = Aws::LambdaCore::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_network_connector(params = {}) ⇒ Types::CreateNetworkConnectorResponse
Creates a network connector that enables Lambda compute resources to route outbound traffic through your Amazon VPC.
-
#delete_network_connector(params = {}) ⇒ Types::DeleteNetworkConnectorResponse
Initiates deletion of a network connector.
-
#get_network_connector(params = {}) ⇒ Types::GetNetworkConnectorResponse
Retrieves the current configuration, state, and metadata of a network connector.
-
#list_network_connectors(params = {}) ⇒ Types::ListNetworkConnectorsResponse
Returns a paginated list of network connectors in your account for the current Region.
-
#update_network_connector(params = {}) ⇒ Types::UpdateNetworkConnectorResponse
Updates the VPC configuration or operator role of an existing network connector.
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-lambdacore/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.
875 876 877 |
# File 'lib/aws-sdk-lambdacore/client.rb', line 875 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.
878 879 880 |
# File 'lib/aws-sdk-lambdacore/client.rb', line 878 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.
848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 |
# File 'lib/aws-sdk-lambdacore/client.rb', line 848 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::LambdaCore') ) 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-lambdacore' context[:gem_version] = '1.0.0' Seahorse::Client::Request.new(handlers, context) end |
#create_network_connector(params = {}) ⇒ Types::CreateNetworkConnectorResponse
Creates a network connector that enables Lambda compute resources to route outbound traffic through your Amazon VPC. The network connector provisions elastic network interfaces (ENIs) in the subnets you specify, providing a managed network path to private resources such as databases, caches, and internal APIs.
This operation is asynchronous. The network connector starts in ‘PENDING` state while ENIs are provisioned in your VPC (provisioning typically takes up to 10 minutes). Use `GetNetworkConnector` to poll the connector state until it reaches `ACTIVE`. Once active, you can attach the connector to Lambda MicroVMs at run time using the `egressNetworkConnectors` parameter on `RunMicroVm`.
This operation is idempotent when you provide a ‘ClientToken` — if you retry a request that completed successfully using the same client token, the operation returns the existing connector without creating a duplicate.
571 572 573 574 |
# File 'lib/aws-sdk-lambdacore/client.rb', line 571 def create_network_connector(params = {}, = {}) req = build_request(:create_network_connector, params) req.send_request() end |
#delete_network_connector(params = {}) ⇒ Types::DeleteNetworkConnectorResponse
Initiates deletion of a network connector. The connector transitions to ‘DELETING` state while elastic network interfaces are cleaned up asynchronously. After deletion completes, subsequent calls to `GetNetworkConnector` return `ResourceNotFoundException`.
This operation is idempotent — calling delete on a connector that is already deleting or has been deleted succeeds without error. You can delete connectors in ‘ACTIVE` or `FAILED` states. Before deleting a connector, ensure that no Lambda MicroVMs are using it, as they will lose VPC egress connectivity immediately.
625 626 627 628 |
# File 'lib/aws-sdk-lambdacore/client.rb', line 625 def delete_network_connector(params = {}, = {}) req = build_request(:delete_network_connector, params) req.send_request() end |
#get_network_connector(params = {}) ⇒ Types::GetNetworkConnectorResponse
Retrieves the current configuration, state, and metadata of a network connector. The ‘Identifier` parameter accepts the connector ID, name, or full ARN. Use this operation to poll connector state after creation or update, or to inspect the current VPC configuration and any failure reasons.
The response includes the full connector configuration, current state, and — if the connector has been updated — the ‘LastUpdateStatus` and `LastUpdateStatusReasonCode` fields that indicate whether the most recent update succeeded or failed.
693 694 695 696 |
# File 'lib/aws-sdk-lambdacore/client.rb', line 693 def get_network_connector(params = {}, = {}) req = build_request(:get_network_connector, params) req.send_request() end |
#list_network_connectors(params = {}) ⇒ Types::ListNetworkConnectorsResponse
Returns a paginated list of network connectors in your account for the current Region. You can optionally filter results by connector state. Use the ‘Marker` parameter from a previous response to retrieve the next page of results.
Each item in the response includes the connector ARN, name, ID, type, current state, and last modified timestamp. To retrieve full configuration details for a specific connector, use ‘GetNetworkConnector`.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
750 751 752 753 |
# File 'lib/aws-sdk-lambdacore/client.rb', line 750 def list_network_connectors(params = {}, = {}) req = build_request(:list_network_connectors, params) req.send_request() end |
#update_network_connector(params = {}) ⇒ Types::UpdateNetworkConnectorResponse
Updates the VPC configuration or operator role of an existing network connector. You can modify the subnet IDs, security group IDs, network protocol, or operator role. The connector must be in ‘ACTIVE` state to accept updates.
This operation is asynchronous. The connector remains in ‘ACTIVE` state during the update — existing workloads that reference this connector are not disrupted. Use `GetNetworkConnector` to monitor the `LastUpdateStatus` field, which transitions through `InProgress` to `Successful` or `Failed`. If the update fails, the `LastUpdateStatusReasonCode` field provides a specific error code for troubleshooting. This operation is idempotent when you provide a `ClientToken`.
839 840 841 842 |
# File 'lib/aws-sdk-lambdacore/client.rb', line 839 def update_network_connector(params = {}, = {}) req = build_request(:update_network_connector, 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.
868 869 870 |
# File 'lib/aws-sdk-lambdacore/client.rb', line 868 def waiter_names [] end |