Class: Aws::LambdaCore::Client
- Inherits:
-
Seahorse::Client::Base
- Object
- Seahorse::Client::Base
- Aws::LambdaCore::Client
- Includes:
- ClientStubs
- Defined in:
- gems/aws-sdk-lambdacore/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.
See #initialize for a full list of supported configuration options.
Instance Attribute Summary
Attributes inherited from Seahorse::Client::Base
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.
Instance Method Summary collapse
-
#initialize(options) ⇒ Client
constructor
A new instance of Client.
Methods included from ClientStubs
#api_requests, #stub_data, #stub_responses
Methods inherited from Seahorse::Client::Base
add_plugin, api, clear_plugins, define, new, #operation_names, plugins, remove_plugin, set_api, set_plugins
Methods included from Seahorse::Client::HandlerBuilder
#handle, #handle_request, #handle_response
Constructor Details
#initialize(options) ⇒ Client
Returns a new instance of Client.
471 472 473 |
# File 'gems/aws-sdk-lambdacore/lib/aws-sdk-lambdacore/client.rb', line 471 def initialize(*args) super end |
Instance Method Details
#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 'gems/aws-sdk-lambdacore/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 'gems/aws-sdk-lambdacore/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 'gems/aws-sdk-lambdacore/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 'gems/aws-sdk-lambdacore/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 'gems/aws-sdk-lambdacore/lib/aws-sdk-lambdacore/client.rb', line 839 def update_network_connector(params = {}, = {}) req = build_request(:update_network_connector, params) req.send_request() end |