ELBProxy / Client / create_proxy
create_proxy¶
- ELBProxy.Client.create_proxy(**kwargs)¶
Creates a proxy. A proxy is a fully managed, Envoy-based proxy that runs your Envoy configuration on Amazon EC2 instances inside your own virtual private cloud (VPC). AWS provisions and scales the proxy, upgrades the Envoy version, patches the operating system, and monitors its health.
See also: AWS API Documentation
Request Syntax
response = client.create_proxy( name='string', type='envoy', proxyVersion='string', roleArn='string', configuration={ 'configurationFile': { 'configurationBytes': b'bytes' }, 'configurationArchive': { 'configurationBytes': b'bytes' } }, networkConfiguration={ 'ipConfiguration': { 'ipAddressingConfiguration': { 'ipv4Addressability': 'off'|'internet-facing'|'internal', 'ipv6Addressability': 'off'|'internet-facing'|'internal' } }, 'vpcConfiguration': { 'subnets': [ { 'subnetId': 'string' }, ], 'securityGroups': [ { 'securityGroupId': 'string' }, ] } }, attributes=[ { 'key': 'string', 'value': 'string' }, ], customerKmsKeyArn='string', tags={ 'string': 'string' }, clientToken='string' )
- Parameters:
name (string) –
[REQUIRED]
The name of the proxy. The name must be unique within your account for the Region. The valid characters are a-z, 0-9, and hyphens (-). You can’t use a hyphen as the first or last character.
type (string) –
[REQUIRED]
The type of proxy.
proxyVersion (string) –
[REQUIRED]
The version of the proxy software, in
major.minorformat.roleArn (string) –
[REQUIRED]
The Amazon Resource Name (ARN) of the IAM role that provides permissions to the code that your Envoy configuration runs on the proxy, such as filters and extensions. These are the permissions that this code needs when it calls AWS services.
configuration (dict) –
[REQUIRED]
The configuration for the proxy.
configurationFile (dict) –
The configuration file for the proxy.
configurationBytes (bytes) – [REQUIRED]
The contents of the configuration file.
configurationArchive (dict) –
The configuration archive for the proxy. This is a bundle of the files referenced by the configuration file.
configurationBytes (bytes) – [REQUIRED]
The contents of the configuration archive.
networkConfiguration (dict) –
[REQUIRED]
The network configuration for the proxy.
ipConfiguration (dict) – [REQUIRED]
The IP configuration for the proxy.
ipAddressingConfiguration (dict) – [REQUIRED]
The IP addressing configuration for the proxy.
ipv4Addressability (string) – [REQUIRED]
The IPv4 addressability setting for the proxy.
ipv6Addressability (string) – [REQUIRED]
The IPv6 addressability setting for the proxy.
vpcConfiguration (dict) – [REQUIRED]
The VPC configuration for the proxy.
subnets (list) – [REQUIRED]
The subnets used by the proxy.
(dict) –
The details of a subnet.
subnetId (string) – [REQUIRED]
The ID of the subnet.
securityGroups (list) – [REQUIRED]
The security groups used by the proxy.
(dict) –
The details of a security group.
securityGroupId (string) – [REQUIRED]
The ID of the security group.
attributes (list) –
The attributes for the proxy. Attributes can be changed after creation. Attributes that you don’t specify are set to their default values.
(dict) –
A key-value attribute for a proxy.
key (string) – [REQUIRED]
The key of the attribute.
value (string) – [REQUIRED]
The value of the attribute.
customerKmsKeyArn (string) – The Amazon Resource Name (ARN) of the customer managed KMS key used to encrypt the proxy’s configuration content. If you don’t specify a key, the default service-owned key is used.
tags (dict) –
The tags for the proxy.
(string) –
The key of a tag.
(string) –
The value of a tag.
clientToken (string) –
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
This field is autopopulated if not provided.
- Return type:
dict
- Returns:
Response Syntax
{ 'arn': 'string', 'name': 'string', 'type': 'envoy', 'proxyVersion': 'string', 'dnsName': 'string', 'roleArn': 'string', 'networkConfiguration': { 'ipConfiguration': { 'ipAddressingConfiguration': { 'ipv4Addressability': 'off'|'internet-facing'|'internal', 'ipv6Addressability': 'off'|'internet-facing'|'internal' } }, 'vpcConfiguration': { 'vpcId': 'string', 'availabilityZones': [ { 'subnetId': 'string', 'zoneId': 'string', 'zoneName': 'string' }, ], 'securityGroups': [ { 'securityGroupId': 'string' }, ] } }, 'status': { 'code': 'action-required'|'active'|'create-failed'|'create-in-progress'|'deleted'|'delete-in-progress'|'update-in-progress'|'cancel-update-in-progress', 'reasons': [ { 'code': 'string', 'target': 'string', 'message': 'string' }, ] }, 'configurationMetadata': { 'configFileHash': 'string', 'configArchiveHash': 'string', 'configFileLastUpdatedAt': datetime(2015, 1, 1), 'configArchiveLastUpdatedAt': datetime(2015, 1, 1) }, 'createdAt': datetime(2015, 1, 1), 'customerKmsKeyArn': 'string' }
Response Structure
(dict) –
Common Proxy details response mixin
arn (string) –
The Amazon Resource Name (ARN) of the proxy.
name (string) –
The name of the proxy.
type (string) –
The type of proxy.
proxyVersion (string) –
The version of the proxy software.
dnsName (string) –
The DNS name of the proxy.
roleArn (string) –
The Amazon Resource Name (ARN) of the IAM role that provides permissions to the code that your Envoy configuration runs on the proxy, such as filters and extensions. These are the permissions that this code needs when it calls AWS services.
networkConfiguration (dict) –
The network configuration for the proxy.
ipConfiguration (dict) –
The IP configuration for the proxy.
ipAddressingConfiguration (dict) –
The IP addressing configuration for the proxy.
ipv4Addressability (string) –
The IPv4 addressability setting for the proxy.
ipv6Addressability (string) –
The IPv6 addressability setting for the proxy.
vpcConfiguration (dict) –
The VPC configuration for the proxy.
vpcId (string) –
The ID of the VPC.
availabilityZones (list) –
The Availability Zones used by the proxy.
(dict) –
A subnet and its associated Availability Zone.
subnetId (string) –
The ID of the subnet.
zoneId (string) –
The ID of the Availability Zone.
zoneName (string) –
The name of the Availability Zone (for example,
us-east-1a).
securityGroups (list) –
The security groups used by the proxy.
(dict) –
The details of a security group.
securityGroupId (string) –
The ID of the security group.
status (dict) –
The status of the proxy.
code (string) –
The status code of the proxy.
reasons (list) –
The reasons for the current status of the proxy.
(dict) –
A reason for the current status of a proxy.
code (string) –
The status reason code.
target (string) –
The target resource of the status reason.
message (string) –
The status reason message.
configurationMetadata (dict) –
The configuration metadata for the proxy.
configFileHash (string) –
The SHA-256 hash of the configuration file.
configArchiveHash (string) –
The SHA-256 hash of the configuration archive. This value is absent when the proxy does not have a configuration archive.
configFileLastUpdatedAt (datetime) –
The date and time that the configuration file was last updated.
configArchiveLastUpdatedAt (datetime) –
The date and time that the configuration archive was last updated.
createdAt (datetime) –
The date and time that the proxy was created.
customerKmsKeyArn (string) –
The Amazon Resource Name (ARN) of the customer managed KMS key used to encrypt the proxy’s configuration content. This value is absent when the proxy uses the default service-owned key.
Exceptions