AmplifyGen3 / Client / create_network_connector

create_network_connector

AmplifyGen3.Client.create_network_connector(**kwargs)

Creates a network connector that provides a Gen 3 app with access to a virtual private cloud (VPC).

See also: AWS API Documentation

Request Syntax

response = client.create_network_connector(
    NetworkConnectorName='string',
    SubnetIds=[
        'string',
    ],
    SecurityGroupIds=[
        'string',
    ],
    NetworkConnectorRoleArn='string',
    Tags={
        'string': 'string'
    }
)
Parameters:
  • NetworkConnectorName (string) –

    [REQUIRED]

    The name of the network connector.

  • SubnetIds (list) –

    [REQUIRED]

    The IDs of the subnets for the network connector. The network connector uses the virtual private cloud (VPC) that the subnets belong to.

    • (string) –

  • SecurityGroupIds (list) –

    [REQUIRED]

    The IDs of the security groups for the network connector.

    • (string) –

  • NetworkConnectorRoleArn (string) –

    [REQUIRED]

    The Amazon Resource Name (ARN) of the IAM role for the network connector.

  • Tags (dict) –

    The tags to apply to the resource.

    • (string) –

      • (string) –

Return type:

dict

Returns:

Response Syntax

{
    'Status': 'CREATING'|'ACTIVE'|'CREATE_FAILED'|'UPDATING'|'UPDATE_FAILED'|'DELETING'|'DELETE_FAILED'
}

Response Structure

  • (dict) –

    • Status (string) –

      The status of the network connector.

Exceptions

  • AmplifyGen3.Client.exceptions.ServiceQuotaExceededException

  • AmplifyGen3.Client.exceptions.ThrottlingException

  • AmplifyGen3.Client.exceptions.AccessDeniedException

  • AmplifyGen3.Client.exceptions.ValidationException

  • AmplifyGen3.Client.exceptions.ConflictException

  • AmplifyGen3.Client.exceptions.InternalServerException