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_connector_versions(params = {}) ⇒ Types::ListNetworkConnectorVersionsResponse
Returns a paginated list of the versions 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 supported Lambda compute resources — such as
MicroVMs and WebFunctions — at run time. For how to attach a
connector, see the documentation for the specific compute type.
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.
576 577 578 579 |
# File 'gems/aws-sdk-lambdacore/lib/aws-sdk-lambdacore/client.rb', line 576 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 compute resources are using it, as
they will lose VPC egress connectivity immediately.
Deleting with an unqualified identifier removes the connector and all of its versions. To remove a single historical version, supply its version-qualified ARN; the connector and its remaining versions are unaffected. You can't delete the latest version on its own — delete the connector to remove it.
644 645 646 647 |
# File 'gems/aws-sdk-lambdacore/lib/aws-sdk-lambdacore/client.rb', line 644 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.
721 722 723 724 |
# File 'gems/aws-sdk-lambdacore/lib/aws-sdk-lambdacore/client.rb', line 721 def get_network_connector(params = {}, = {}) req = build_request(:get_network_connector, params) req.send_request() end |
#list_network_connector_versions(params = {}) ⇒ Types::ListNetworkConnectorVersionsResponse
Returns a paginated list of the versions of a network connector. Each
configuration update creates a new immutable version; this operation
lists those versions for the connector you specify. You can optionally
filter results by version state. Use the Marker parameter from a
previous response to retrieve the next page of results.
Each item in the response includes the version-qualified ARN, version
number, current state, and last modified timestamp for that version.
To retrieve the current (latest) configuration of the connector, use
GetNetworkConnector; to inspect a specific version, call
GetNetworkConnector with a version-qualified identifier.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
790 791 792 793 |
# File 'gems/aws-sdk-lambdacore/lib/aws-sdk-lambdacore/client.rb', line 790 def list_network_connector_versions(params = {}, = {}) req = build_request(:list_network_connector_versions, 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.
849 850 851 852 |
# File 'gems/aws-sdk-lambdacore/lib/aws-sdk-lambdacore/client.rb', line 849 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.
Each successful configuration change creates a new immutable version.
A connector can have a limited number of versions; once that limit is
reached, further updates fail with
NetworkConnectorLimitExceededException until you delete older
versions.
948 949 950 951 |
# File 'gems/aws-sdk-lambdacore/lib/aws-sdk-lambdacore/client.rb', line 948 def update_network_connector(params = {}, = {}) req = build_request(:update_network_connector, params) req.send_request() end |