LambdaCore / Client / get_network_connector
get_network_connector¶
- LambdaCore.Client.get_network_connector(**kwargs)¶
Retrieves the current configuration, state, and metadata of a network connector. The
Identifierparameter 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
LastUpdateStatusandLastUpdateStatusReasonCodefields that indicate whether the most recent update succeeded or failed.See also: AWS API Documentation
Request Syntax
response = client.get_network_connector( Identifier='string' )
- Parameters:
Identifier (string) –
[REQUIRED]
A flexible identifier that accepts a network connector ID, name, or ARN
- Return type:
dict
- Returns:
Response Syntax
{ 'Arn': 'string', 'Name': 'string', 'Id': 'string', 'Version': 123, 'Configuration': { 'VpcEgressConfiguration': { 'SubnetIds': [ 'string', ], 'SecurityGroupIds': [ 'string', ], 'NetworkProtocol': 'IPv4'|'DualStack', 'AssociatedComputeResourceTypes': [ 'MicroVm', ] } }, 'OperatorRole': 'string', 'State': 'PENDING'|'ACTIVE'|'INACTIVE'|'FAILED'|'DELETING'|'DELETE_FAILED', 'StateReason': 'string', 'StateReasonCode': 'DisallowedByVpcEncryptionControl'|'Ec2RequestLimitExceeded'|'InsufficientRolePermissions'|'InternalError'|'InvalidSecurityGroup'|'InvalidSubnet'|'SubnetOutOfIPAddresses', 'LastUpdateStatus': 'Successful'|'Failed'|'InProgress', 'LastUpdateStatusReason': 'string', 'LastUpdateStatusReasonCode': 'DisallowedByVpcEncryptionControl'|'Ec2RequestLimitExceeded'|'InsufficientRolePermissions'|'InternalError'|'InvalidSecurityGroup'|'InvalidSubnet'|'SubnetOutOfIPAddresses', 'LastModified': datetime(2015, 1, 1) }
Response Structure
(dict) –
Arn (string) –
The Amazon Resource Name (ARN) of the network connector.
Name (string) –
The name of the network connector.
Id (string) –
The unique identifier for a network connector, assigned by the service at creation time
Version (integer) –
The version number of the connector configuration, incremented on each update.
Configuration (dict) –
The network configuration of the connector, including VPC subnets and security groups.
Note
This is a Tagged Union structure. Only one of the following top level keys will be set:
VpcEgressConfiguration. If a client receives an unknown member it will setSDK_UNKNOWN_MEMBERas the top level key, which maps to the name or tag of the unknown member. The structure ofSDK_UNKNOWN_MEMBERis as follows:'SDK_UNKNOWN_MEMBER': {'name': 'UnknownMemberName'}
VpcEgressConfiguration (dict) –
Configuration for a VPC egress network connector. Specifies the subnets, security groups, and network protocol for routing outbound traffic through your VPC.
SubnetIds (list) –
The IDs of the VPC subnets where Lambda provisions elastic network interfaces (ENIs). Specify 1 to 16 subnets. All subnets must be in the same VPC.
(string) –
SecurityGroupIds (list) –
The IDs of the VPC security groups to attach to the ENIs. Specify 0 to 5 security groups. All security groups must be in the same VPC as the subnets.
(string) –
NetworkProtocol (string) –
The network protocol for the connector. Specify
IPv4for IPv4-only networking, orDualStackfor both IPv4 and IPv6.AssociatedComputeResourceTypes (list) –
The types of Lambda compute resources that can use this connector. Currently, only
MicroVmis supported.(string) –
OperatorRole (string) –
The ARN of the IAM role that Lambda uses to manage the underlying ENI resources for this connector.
State (string) –
The current state of the network connector.
StateReason (string) –
A human-readable explanation of the current state, populated when the state is
FAILEDorDELETE_FAILED.StateReasonCode (string) –
A machine-readable code indicating the reason for the current state. Use this for programmatic error handling.
LastUpdateStatus (string) –
The status of the most recent update operation (
Successful,Failed, orInProgress).LastUpdateStatusReason (string) –
A human-readable explanation of the last update status.
LastUpdateStatusReasonCode (string) –
A machine-readable code indicating the reason for the last update status. Use this for programmatic error handling.
LastModified (datetime) –
The date and time when the connector configuration was last modified.
Exceptions
LambdaCore.Client.exceptions.InvalidParameterValueExceptionLambdaCore.Client.exceptions.ServiceExceptionLambdaCore.Client.exceptions.TooManyRequestsExceptionLambdaCore.Client.exceptions.ResourceNotFoundException