SDK for PHP V3

Client: Aws\ELBProxy\ELBProxyClient
Service ID: elb-proxy
Version: 2026-11-20

This page describes the parameters and results for the operations of the Elastic Load Balancing for Envoy (2026-11-20), and shows how to use the Aws\ELBProxy\ELBProxyClient object to call the described operations. This documentation is specific to the 2026-11-20 API version of the service.

Operation Summary

Each of the following operations can be created from a client using $client->getCommand('CommandName'), where "CommandName" is the name of one of the following operations. Note: a command is a value that encapsulates an operation and the parameters used to create an HTTP request.

You can also create and send a command immediately using the magic methods available on a client object: $client->commandName(/* parameters */). You can send the command asynchronously (returning a promise) by appending the word "Async" to the operation name: $client->commandNameAsync(/* parameters */).

AssociateCertificate ( array $params = [] )
Associates an ACM certificate with the specified Proxy.
CreateProxy ( array $params = [] )
Creates a proxy.
DeleteProxy ( array $params = [] )
Deletes a proxy.
DisassociateCertificate ( array $params = [] )
Disassociates an ACM certificate from the specified proxy.
GetProxy ( array $params = [] )
Retrieves information about the specified proxy.
GetProxyAttributes ( array $params = [] )
Retrieves the attributes for the specified proxy.
GetProxyConfigurationContents ( array $params = [] )
Retrieves the configuration file, the configuration archive, or both for the specified proxy.
GetProxyUpdate ( array $params = [] )
Retrieves information about the specified proxy update.
ListCertificateAssociations ( array $params = [] )
Lists the ACM certificate associations for the specified proxy.
ListProxies ( array $params = [] )
Lists the proxies owned by the caller account.
ListProxyUpdates ( array $params = [] )
Lists the updates for the specified proxy, most recently submitted first.
ListProxyVersions ( array $params = [] )
Lists the available proxy versions.
ListTagsForResource ( array $params = [] )
Lists the tags for the specified resource.
TagResource ( array $params = [] )
Adds the specified tags to the specified resource.
UntagResource ( array $params = [] )
Removes the specified tags from the specified resource.
UpdateProxyAttributes ( array $params = [] )
Updates the attributes for the specified proxy.
UpdateProxyConfiguration ( array $params = [] )
Updates the configuration for the specified proxy.
UpdateProxyNetworkConfiguration ( array $params = [] )
Updates the network configuration for the specified proxy.

Paginators

Paginators handle automatically iterating over paginated API results. Paginators are associated with specific API operations, and they accept the parameters that the corresponding API operation accepts. You can get a paginator from a client class using getPaginator($paginatorName, $operationParameters). This client supports the following paginators:

ListCertificateAssociations
ListProxies
ListProxyUpdates
ListProxyVersions

Waiters

Waiters allow you to poll a resource until it enters into a desired state. A waiter has a name used to describe what it does, and is associated with an API operation. When creating a waiter, you can provide the API operation parameters associated with the corresponding operation. Waiters can be accessed using the getWaiter($waiterName, $operationParameters) method of a client object. This client supports the following waiters:

Waiter name API Operation Delay Max Attempts
ProxyActive GetProxy 15 40
ProxyDeleted GetProxy 15 40
ProxyUpdateComplete GetProxyUpdate 5 24

Operations

AssociateCertificate

$result = $client->associateCertificate([/* ... */]);
$promise = $client->associateCertificateAsync([/* ... */]);

Associates an ACM certificate with the specified Proxy.

Parameter Syntax

$result = $client->associateCertificate([
    'certificateIdentifier' => '<string>', // REQUIRED
    'proxyIdentifier' => '<string>', // REQUIRED
]);

Parameter Details

Members
certificateIdentifier
Required: Yes
Type: string

The Amazon Resource Name (ARN) of the ACM certificate.

proxyIdentifier
Required: Yes
Type: string

The Amazon Resource Name (ARN) of the proxy.

Result Syntax

[
    'certificateAssociation' => [
        'certificateArn' => '<string>',
        'createdAt' => <DateTime>,
        'status' => [
            'code' => 'associate-in-progress|active|associate-failed|disassociate-in-progress|disassociated',
            'reasons' => [
                [
                    'code' => '<string>',
                    'message' => '<string>',
                ],
                // ...
            ],
        ],
    ],
]

Result Details

Members
certificateAssociation
Required: Yes
Type: CertificateAssociation structure

The certificate association.

Errors

ServiceQuotaExceededException:

The request would cause a service quota to be exceeded.

ValidationException:

The input does not satisfy the constraints specified by an AWS service.

ResourceNotFoundException:

The request references a resource that does not exist.

ConflictException:

The request conflicts with the current state of the resource.

InternalServerException:

An unexpected error occurred while processing the request.

ThrottlingException:

The limit on the number of requests per second was exceeded.

AccessDeniedException:

The user does not have sufficient access to perform this action.

Examples

Example 1: To associate a certificate with a proxy

The following example associates the specified ACM certificate with the specified proxy.

$result = $client->associateCertificate([
    'certificateIdentifier' => 'arn:aws:acm:us-east-1:123456789012:certificate/12345678-1234-1234-1234-123456789012',
    'proxyIdentifier' => 'arn:aws:elasticloadbalancing:us-east-1:123456789012:proxy/my-proxy:0123456789abcdef',
]);

Result syntax:

[
    'certificateAssociation' => [
        'certificateArn' => 'arn:aws:acm:us-east-1:123456789012:certificate/12345678-1234-1234-1234-123456789012',
        'createdAt' => ,
        'status' => [
            'code' => 'associate-in-progress',
            'reasons' => [
            ],
        ],
    ],
]

CreateProxy

$result = $client->createProxy([/* ... */]);
$promise = $client->createProxyAsync([/* ... */]);

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.

Parameter Syntax

$result = $client->createProxy([
    'attributes' => [
        [
            'key' => '<string>', // REQUIRED
            'value' => '<string>', // REQUIRED
        ],
        // ...
    ],
    'clientToken' => '<string>',
    'configuration' => [ // REQUIRED
        'configurationArchive' => [
            'configurationBytes' => <string || resource || Psr\Http\Message\StreamInterface>, // REQUIRED
        ],
        'configurationFile' => [
            'configurationBytes' => <string || resource || Psr\Http\Message\StreamInterface>, // REQUIRED
        ],
    ],
    'customerKmsKeyArn' => '<string>',
    'name' => '<string>', // REQUIRED
    'networkConfiguration' => [ // REQUIRED
        'ipConfiguration' => [ // REQUIRED
            'ipAddressingConfiguration' => [ // REQUIRED
                'ipv4Addressability' => 'off|internet-facing|internal', // REQUIRED
                'ipv6Addressability' => 'off|internet-facing|internal', // REQUIRED
            ],
        ],
        'vpcConfiguration' => [ // REQUIRED
            'securityGroups' => [ // REQUIRED
                [
                    'securityGroupId' => '<string>', // REQUIRED
                ],
                // ...
            ],
            'subnets' => [ // REQUIRED
                [
                    'subnetId' => '<string>', // REQUIRED
                ],
                // ...
            ],
        ],
    ],
    'proxyVersion' => '<string>', // REQUIRED
    'roleArn' => '<string>', // REQUIRED
    'tags' => ['<string>', ...],
    'type' => 'envoy', // REQUIRED
]);

Parameter Details

Members
attributes
Type: Array of Attribute structures

The attributes for the proxy. Attributes can be changed after creation. Attributes that you don't specify are set to their default values.

clientToken
Type: string

A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.

configuration
Required: Yes
Type: ProxyConfiguration structure

The configuration for the proxy.

customerKmsKeyArn
Type: 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.

name
Required: Yes
Type: string

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.

networkConfiguration
Required: Yes
Type: ProxyNetworkUserConfiguration structure

The network configuration for the proxy.

proxyVersion
Required: Yes
Type: string

The version of the proxy software, in major.minor format.

roleArn
Required: Yes
Type: 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.

tags
Type: Associative array of custom strings keys (TagKey) to strings

The tags for the proxy.

type
Required: Yes
Type: string

The type of proxy.

Result Syntax

[
    'arn' => '<string>',
    'configurationMetadata' => [
        'configArchiveHash' => '<string>',
        'configArchiveLastUpdatedAt' => <DateTime>,
        'configFileHash' => '<string>',
        'configFileLastUpdatedAt' => <DateTime>,
    ],
    'createdAt' => <DateTime>,
    'customerKmsKeyArn' => '<string>',
    'dnsName' => '<string>',
    'name' => '<string>',
    'networkConfiguration' => [
        'ipConfiguration' => [
            'ipAddressingConfiguration' => [
                'ipv4Addressability' => 'off|internet-facing|internal',
                'ipv6Addressability' => 'off|internet-facing|internal',
            ],
        ],
        'vpcConfiguration' => [
            'availabilityZones' => [
                [
                    'subnetId' => '<string>',
                    'zoneId' => '<string>',
                    'zoneName' => '<string>',
                ],
                // ...
            ],
            'securityGroups' => [
                [
                    'securityGroupId' => '<string>',
                ],
                // ...
            ],
            'vpcId' => '<string>',
        ],
    ],
    'proxyVersion' => '<string>',
    'roleArn' => '<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>',
                'message' => '<string>',
                'target' => '<string>',
            ],
            // ...
        ],
    ],
    'type' => 'envoy',
]

Result Details

Members
arn
Type: string

The Amazon Resource Name (ARN) of the proxy.

configurationMetadata
Type: ConfigurationMetadata structure

The configuration metadata for the proxy.

createdAt
Type: timestamp (string|DateTime or anything parsable by strtotime)

The date and time that the proxy was created.

customerKmsKeyArn
Type: 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.

dnsName
Type: string

The DNS name of the proxy.

name
Type: string

The name of the proxy.

networkConfiguration
Type: ProxyNetworkConfiguration structure

The network configuration for the proxy.

proxyVersion
Type: string

The version of the proxy software.

roleArn
Type: 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.

status
Type: ProxyStatus structure

The status of the proxy.

type
Type: string

The type of proxy.

Errors

ServiceQuotaExceededException:

The request would cause a service quota to be exceeded.

ValidationException:

The input does not satisfy the constraints specified by an AWS service.

OperationNotPermittedException:

The requested operation is not permitted.

ConflictException:

The request conflicts with the current state of the resource.

InternalServerException:

An unexpected error occurred while processing the request.

ThrottlingException:

The limit on the number of requests per second was exceeded.

AccessDeniedException:

The user does not have sufficient access to perform this action.

Examples

Example 1: To create a proxy

The following example creates a proxy with the specified name, Envoy version, IAM role, and configuration file. The proxy is internet-facing over IPv4, runs in the specified subnets with the specified security group, and has deletion protection enabled.

$result = $client->createProxy([
    'name' => 'my-proxy',
    'type' => 'envoy',
    'attributes' => [
        [
            'key' => 'deletion_protection.enabled',
            'value' => 'true',
        ],
    ],
    'configuration' => [
        'configurationFile' => [
            'configurationBytes' => <BLOB>,
        ],
    ],
    'networkConfiguration' => [
        'ipConfiguration' => [
            'ipAddressingConfiguration' => [
                'ipv4Addressability' => 'internet-facing',
                'ipv6Addressability' => 'off',
            ],
        ],
        'vpcConfiguration' => [
            'securityGroups' => [
                [
                    'securityGroupId' => 'sg-903004f8',
                ],
            ],
            'subnets' => [
                [
                    'subnetId' => 'subnet-8360a9e7',
                ],
                [
                    'subnetId' => 'subnet-b7d581c0',
                ],
            ],
        ],
    ],
    'proxyVersion' => '1.40',
    'roleArn' => 'arn:aws:iam::123456789012:role/my-proxy-role',
    'tags' => [
        'Environment' => 'production',
    ],
]);

Result syntax:

[
    'name' => 'my-proxy',
    'type' => 'envoy',
    'arn' => 'arn:aws:elasticloadbalancing:us-east-1:123456789012:proxy/my-proxy:0123456789abcdef',
    'configurationMetadata' => [
        'configFileHash' => '6b9dfd96fbb077f7e4cabcb5c1be57761b474afc18499d77b6bd49cfb03b3466',
        'configFileLastUpdatedAt' => ,
    ],
    'createdAt' => ,
    'dnsName' => 'my-proxy-1234567890.elb-proxy.us-east-1.on.aws',
    'networkConfiguration' => [
        'ipConfiguration' => [
            'ipAddressingConfiguration' => [
                'ipv4Addressability' => 'internet-facing',
                'ipv6Addressability' => 'off',
            ],
        ],
        'vpcConfiguration' => [
            'availabilityZones' => [
                [
                    'subnetId' => 'subnet-8360a9e7',
                    'zoneId' => 'use1-az1',
                    'zoneName' => 'us-east-1a',
                ],
                [
                    'subnetId' => 'subnet-b7d581c0',
                    'zoneId' => 'use1-az2',
                    'zoneName' => 'us-east-1b',
                ],
            ],
            'securityGroups' => [
                [
                    'securityGroupId' => 'sg-903004f8',
                ],
            ],
            'vpcId' => 'vpc-1a2b3c4d',
        ],
    ],
    'proxyVersion' => '1.40',
    'roleArn' => 'arn:aws:iam::123456789012:role/my-proxy-role',
    'status' => [
        'code' => 'create-in-progress',
        'reasons' => [
        ],
    ],
]

DeleteProxy

$result = $client->deleteProxy([/* ... */]);
$promise = $client->deleteProxyAsync([/* ... */]);

Deletes a proxy.

Parameter Syntax

$result = $client->deleteProxy([
    'proxyIdentifier' => '<string>', // REQUIRED
]);

Parameter Details

Members
proxyIdentifier
Required: Yes
Type: string

The Amazon Resource Name (ARN) of the proxy.

Result Syntax

[
    'arn' => '<string>',
    'name' => '<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>',
                'message' => '<string>',
                'target' => '<string>',
            ],
            // ...
        ],
    ],
]

Result Details

Members
arn
Required: Yes
Type: string

The Amazon Resource Name (ARN) of the proxy.

name
Required: Yes
Type: string

The name of the proxy.

status
Type: ProxyStatus structure

The status of the proxy.

Errors

ValidationException:

The input does not satisfy the constraints specified by an AWS service.

OperationNotPermittedException:

The requested operation is not permitted.

InternalServerException:

An unexpected error occurred while processing the request.

ThrottlingException:

The limit on the number of requests per second was exceeded.

Examples

Example 1: To delete a proxy

The following example deletes the specified proxy. You must turn off deletion protection before you can delete a proxy.

$result = $client->deleteProxy([
    'proxyIdentifier' => 'arn:aws:elasticloadbalancing:us-east-1:123456789012:proxy/my-proxy:0123456789abcdef',
]);

Result syntax:

[
    'name' => 'my-proxy',
    'arn' => 'arn:aws:elasticloadbalancing:us-east-1:123456789012:proxy/my-proxy:0123456789abcdef',
    'status' => [
        'code' => 'delete-in-progress',
        'reasons' => [
        ],
    ],
]

DisassociateCertificate

$result = $client->disassociateCertificate([/* ... */]);
$promise = $client->disassociateCertificateAsync([/* ... */]);

Disassociates an ACM certificate from the specified proxy.

Parameter Syntax

$result = $client->disassociateCertificate([
    'certificateIdentifier' => '<string>', // REQUIRED
    'proxyIdentifier' => '<string>', // REQUIRED
]);

Parameter Details

Members
certificateIdentifier
Required: Yes
Type: string

The Amazon Resource Name (ARN) of the ACM certificate.

proxyIdentifier
Required: Yes
Type: string

The Amazon Resource Name (ARN) of the proxy.

Result Syntax

[
    'certificateAssociation' => [
        'certificateArn' => '<string>',
        'createdAt' => <DateTime>,
        'status' => [
            'code' => 'associate-in-progress|active|associate-failed|disassociate-in-progress|disassociated',
            'reasons' => [
                [
                    'code' => '<string>',
                    'message' => '<string>',
                ],
                // ...
            ],
        ],
    ],
]

Result Details

Members
certificateAssociation
Required: Yes
Type: CertificateAssociation structure

The certificate association.

Errors

ValidationException:

The input does not satisfy the constraints specified by an AWS service.

ResourceNotFoundException:

The request references a resource that does not exist.

ConflictException:

The request conflicts with the current state of the resource.

InternalServerException:

An unexpected error occurred while processing the request.

ThrottlingException:

The limit on the number of requests per second was exceeded.

AccessDeniedException:

The user does not have sufficient access to perform this action.

Examples

Example 1: To disassociate a certificate from a proxy

The following example disassociates the specified ACM certificate from the specified proxy.

$result = $client->disassociateCertificate([
    'certificateIdentifier' => 'arn:aws:acm:us-east-1:123456789012:certificate/12345678-1234-1234-1234-123456789012',
    'proxyIdentifier' => 'arn:aws:elasticloadbalancing:us-east-1:123456789012:proxy/my-proxy:0123456789abcdef',
]);

Result syntax:

[
    'certificateAssociation' => [
        'certificateArn' => 'arn:aws:acm:us-east-1:123456789012:certificate/12345678-1234-1234-1234-123456789012',
        'createdAt' => ,
        'status' => [
            'code' => 'disassociate-in-progress',
            'reasons' => [
            ],
        ],
    ],
]

GetProxy

$result = $client->getProxy([/* ... */]);
$promise = $client->getProxyAsync([/* ... */]);

Retrieves information about the specified proxy.

Parameter Syntax

$result = $client->getProxy([
    'proxyIdentifier' => '<string>', // REQUIRED
]);

Parameter Details

Members
proxyIdentifier
Required: Yes
Type: string

The Amazon Resource Name (ARN) of the proxy.

Result Syntax

[
    'arn' => '<string>',
    'configurationMetadata' => [
        'configArchiveHash' => '<string>',
        'configArchiveLastUpdatedAt' => <DateTime>,
        'configFileHash' => '<string>',
        'configFileLastUpdatedAt' => <DateTime>,
    ],
    'createdAt' => <DateTime>,
    'customerKmsKeyArn' => '<string>',
    'dnsName' => '<string>',
    'name' => '<string>',
    'networkConfiguration' => [
        'ipConfiguration' => [
            'ipAddressingConfiguration' => [
                'ipv4Addressability' => 'off|internet-facing|internal',
                'ipv6Addressability' => 'off|internet-facing|internal',
            ],
        ],
        'vpcConfiguration' => [
            'availabilityZones' => [
                [
                    'subnetId' => '<string>',
                    'zoneId' => '<string>',
                    'zoneName' => '<string>',
                ],
                // ...
            ],
            'securityGroups' => [
                [
                    'securityGroupId' => '<string>',
                ],
                // ...
            ],
            'vpcId' => '<string>',
        ],
    ],
    'proxyVersion' => '<string>',
    'roleArn' => '<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>',
                'message' => '<string>',
                'target' => '<string>',
            ],
            // ...
        ],
    ],
    'type' => 'envoy',
]

Result Details

Members
arn
Type: string

The Amazon Resource Name (ARN) of the proxy.

configurationMetadata
Type: ConfigurationMetadata structure

The configuration metadata for the proxy.

createdAt
Type: timestamp (string|DateTime or anything parsable by strtotime)

The date and time that the proxy was created.

customerKmsKeyArn
Type: 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.

dnsName
Type: string

The DNS name of the proxy.

name
Type: string

The name of the proxy.

networkConfiguration
Type: ProxyNetworkConfiguration structure

The network configuration for the proxy.

proxyVersion
Type: string

The version of the proxy software.

roleArn
Type: 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.

status
Type: ProxyStatus structure

The status of the proxy.

type
Type: string

The type of proxy.

Errors

ValidationException:

The input does not satisfy the constraints specified by an AWS service.

ResourceNotFoundException:

The request references a resource that does not exist.

InternalServerException:

An unexpected error occurred while processing the request.

ThrottlingException:

The limit on the number of requests per second was exceeded.

Examples

Example 1: To get information about a proxy

The following example gets information about the specified proxy.

$result = $client->getProxy([
    'proxyIdentifier' => 'arn:aws:elasticloadbalancing:us-east-1:123456789012:proxy/my-proxy:0123456789abcdef',
]);

Result syntax:

[
    'name' => 'my-proxy',
    'type' => 'envoy',
    'arn' => 'arn:aws:elasticloadbalancing:us-east-1:123456789012:proxy/my-proxy:0123456789abcdef',
    'configurationMetadata' => [
        'configFileHash' => '6b9dfd96fbb077f7e4cabcb5c1be57761b474afc18499d77b6bd49cfb03b3466',
        'configFileLastUpdatedAt' => ,
    ],
    'createdAt' => ,
    'dnsName' => 'my-proxy-1234567890.elb-proxy.us-east-1.on.aws',
    'networkConfiguration' => [
        'ipConfiguration' => [
            'ipAddressingConfiguration' => [
                'ipv4Addressability' => 'internet-facing',
                'ipv6Addressability' => 'off',
            ],
        ],
        'vpcConfiguration' => [
            'availabilityZones' => [
                [
                    'subnetId' => 'subnet-8360a9e7',
                    'zoneId' => 'use1-az1',
                    'zoneName' => 'us-east-1a',
                ],
                [
                    'subnetId' => 'subnet-b7d581c0',
                    'zoneId' => 'use1-az2',
                    'zoneName' => 'us-east-1b',
                ],
            ],
            'securityGroups' => [
                [
                    'securityGroupId' => 'sg-903004f8',
                ],
            ],
            'vpcId' => 'vpc-1a2b3c4d',
        ],
    ],
    'proxyVersion' => '1.40',
    'roleArn' => 'arn:aws:iam::123456789012:role/my-proxy-role',
    'status' => [
        'code' => 'active',
        'reasons' => [
        ],
    ],
]

GetProxyAttributes

$result = $client->getProxyAttributes([/* ... */]);
$promise = $client->getProxyAttributesAsync([/* ... */]);

Retrieves the attributes for the specified proxy.

Parameter Syntax

$result = $client->getProxyAttributes([
    'proxyIdentifier' => '<string>', // REQUIRED
]);

Parameter Details

Members
proxyIdentifier
Required: Yes
Type: string

The Amazon Resource Name (ARN) of the proxy.

Result Syntax

[
    'attributes' => [
        [
            'defaultValue' => '<string>',
            'key' => '<string>',
            'value' => '<string>',
        ],
        // ...
    ],
]

Result Details

Members
attributes
Type: Array of AttributeDetails structures

The attributes for the proxy.

Errors

ValidationException:

The input does not satisfy the constraints specified by an AWS service.

ResourceNotFoundException:

The request references a resource that does not exist.

InternalServerException:

An unexpected error occurred while processing the request.

ThrottlingException:

The limit on the number of requests per second was exceeded.

Examples

Example 1: To get the attributes for a proxy

The following example gets the attributes for the specified proxy. The output includes the default value of each attribute that you can update.

$result = $client->getProxyAttributes([
    'proxyIdentifier' => 'arn:aws:elasticloadbalancing:us-east-1:123456789012:proxy/my-proxy:0123456789abcdef',
]);

Result syntax:

[
    'attributes' => [
        [
            'key' => 'ddos_protection.syn_cookie.mode',
            'value' => 'reactive',
            'defaultValue' => 'reactive',
        ],
        [
            'key' => 'deletion_protection.enabled',
            'value' => 'true',
            'defaultValue' => 'false',
        ],
        [
            'key' => 'envoy.component_log_level',
            'value' => '',
            'defaultValue' => '',
        ],
        [
            'key' => 'envoy.log_level',
            'value' => 'warn',
            'defaultValue' => 'warn',
        ],
        [
            'key' => 'waf.fail_open.enabled',
            'value' => 'false',
            'defaultValue' => 'false',
        ],
        [
            'key' => 'waf.web_acl_arn',
            'value' => '',
        ],
    ],
]

GetProxyConfigurationContents

$result = $client->getProxyConfigurationContents([/* ... */]);
$promise = $client->getProxyConfigurationContentsAsync([/* ... */]);

Retrieves the configuration file, the configuration archive, or both for the specified proxy. This operation is separate from GetProxy so that you can grant access to proxy metadata without granting access to the configuration content.

Parameter Syntax

$result = $client->getProxyConfigurationContents([
    'includeConfigArchive' => true || false,
    'includeConfigFile' => true || false,
    'proxyIdentifier' => '<string>', // REQUIRED
]);

Parameter Details

Members
includeConfigArchive
Type: boolean

Indicates whether to include the configuration archive contents in the response. The default is false.

includeConfigFile
Type: boolean

Indicates whether to include the configuration file contents in the response. The default is false.

proxyIdentifier
Required: Yes
Type: string

The Amazon Resource Name (ARN) of the proxy.

Result Syntax

[
    'configurationArchiveContents' => <string || resource || Psr\Http\Message\StreamInterface>,
    'configurationFileContents' => <string || resource || Psr\Http\Message\StreamInterface>,
    'configurationMetadata' => [
        'configArchiveHash' => '<string>',
        'configArchiveLastUpdatedAt' => <DateTime>,
        'configFileHash' => '<string>',
        'configFileLastUpdatedAt' => <DateTime>,
    ],
    'customerKmsKeyArn' => '<string>',
]

Result Details

Members
configurationArchiveContents
Type: blob (string|resource|Psr\Http\Message\StreamInterface)

The configuration archive contents. Populated only if includeConfigArchive was true.

configurationFileContents
Type: blob (string|resource|Psr\Http\Message\StreamInterface)

The configuration file contents. Populated only if includeConfigFile was true.

configurationMetadata
Type: ConfigurationMetadata structure

The configuration metadata for the proxy.

customerKmsKeyArn
Type: string

CMK ARN used to encrypt the proxy's configuration content

Errors

ValidationException:

The input does not satisfy the constraints specified by an AWS service.

ResourceNotFoundException:

The request references a resource that does not exist.

InternalServerException:

An unexpected error occurred while processing the request.

ThrottlingException:

The limit on the number of requests per second was exceeded.

AccessDeniedException:

The user does not have sufficient access to perform this action.

Examples

Example 1: To get the configuration for a proxy

The following example gets the configuration file for the specified proxy. The configuration archive isn't included.

$result = $client->getProxyConfigurationContents([
    'includeConfigArchive' => ,
    'includeConfigFile' => 1,
    'proxyIdentifier' => 'arn:aws:elasticloadbalancing:us-east-1:123456789012:proxy/my-proxy:0123456789abcdef',
]);

Result syntax:

[
    'configurationFileContents' => <BLOB>,
    'configurationMetadata' => [
        'configFileHash' => '29a5eb3bdf714ff29cc52e1a3723894b9f746416e1e541fddfad0a3963aed98c',
        'configFileLastUpdatedAt' => ,
    ],
]

GetProxyUpdate

$result = $client->getProxyUpdate([/* ... */]);
$promise = $client->getProxyUpdateAsync([/* ... */]);

Retrieves information about the specified proxy update.

Parameter Syntax

$result = $client->getProxyUpdate([
    'proxyIdentifier' => '<string>', // REQUIRED
    'updateIdentifier' => '<string>', // REQUIRED
]);

Parameter Details

Members
proxyIdentifier
Required: Yes
Type: string

The Amazon Resource Name (ARN) of the proxy.

updateIdentifier
Required: Yes
Type: string

The ID of the update.

Result Syntax

[
    'completedAt' => <DateTime>,
    'details' => [
        'configuration' => [
            'newConfigurationMetadata' => [
                'configArchiveHash' => '<string>',
                'configArchiveLastUpdatedAt' => <DateTime>,
                'configFileHash' => '<string>',
                'configFileLastUpdatedAt' => <DateTime>,
            ],
        ],
    ],
    'proxyArn' => '<string>',
    'state' => [
        'propagationStatus' => 'in-progress|complete|skipped|failed|cancelled',
        'reasons' => ['<string>', ...],
        'validationStatus' => 'not-validated|valid|invalid',
    ],
    'submittedAt' => <DateTime>,
    'updateId' => '<string>',
    'validatedAt' => <DateTime>,
]

Result Details

Members
completedAt
Type: timestamp (string|DateTime or anything parsable by strtotime)

The date and time that the update's propagation status became complete, failed, or cancelled. This value is absent while the update is in-progress or skipped.

details
Required: Yes
Type: ProxyUpdateDetails structure

Details about the update.

proxyArn
Required: Yes
Type: string

The Amazon Resource Name (ARN) of the proxy.

state
Required: Yes
Type: ProxyUpdateState structure

The state of the update.

submittedAt
Required: Yes
Type: timestamp (string|DateTime or anything parsable by strtotime)

The date and time that the update was submitted.

updateId
Required: Yes
Type: string

The ID of the update.

validatedAt
Type: timestamp (string|DateTime or anything parsable by strtotime)

The date and time that the update was first successfully applied to a proxy node. This value is absent until the update is valid.

Errors

ValidationException:

The input does not satisfy the constraints specified by an AWS service.

ResourceNotFoundException:

The request references a resource that does not exist.

InternalServerException:

An unexpected error occurred while processing the request.

ThrottlingException:

The limit on the number of requests per second was exceeded.

AccessDeniedException:

The user does not have sufficient access to perform this action.

Examples

Example 1: To get information about a proxy update

The following example gets information about the specified update for the specified proxy. The configuration is valid and was applied to all proxy nodes.

$result = $client->getProxyUpdate([
    'proxyIdentifier' => 'arn:aws:elasticloadbalancing:us-east-1:123456789012:proxy/my-proxy:0123456789abcdef',
    'updateIdentifier' => 'a1b2c3d4-5678-90ab-cdef-EXAMPLE11111',
]);

Result syntax:

[
    'completedAt' => ,
    'details' => [
        'configuration' => [
            'newConfigurationMetadata' => [
                'configFileHash' => '29a5eb3bdf714ff29cc52e1a3723894b9f746416e1e541fddfad0a3963aed98c',
                'configFileLastUpdatedAt' => ,
            ],
        ],
    ],
    'proxyArn' => 'arn:aws:elasticloadbalancing:us-east-1:123456789012:proxy/my-proxy:0123456789abcdef',
    'state' => [
        'propagationStatus' => 'complete',
        'validationStatus' => 'valid',
    ],
    'submittedAt' => ,
    'updateId' => 'a1b2c3d4-5678-90ab-cdef-EXAMPLE11111',
    'validatedAt' => ,
]

ListCertificateAssociations

$result = $client->listCertificateAssociations([/* ... */]);
$promise = $client->listCertificateAssociationsAsync([/* ... */]);

Lists the ACM certificate associations for the specified proxy.

Parameter Syntax

$result = $client->listCertificateAssociations([
    'maxResults' => <integer>,
    'nextToken' => '<string>',
    'proxyIdentifier' => '<string>', // REQUIRED
]);

Parameter Details

Members
maxResults
Type: int

The maximum number of results to return.

nextToken
Type: string

A pagination token for the next page of results.

proxyIdentifier
Required: Yes
Type: string

The Amazon Resource Name (ARN) of the proxy.

Result Syntax

[
    'items' => [
        [
            'certificateArn' => '<string>',
            'createdAt' => <DateTime>,
            'status' => [
                'code' => 'associate-in-progress|active|associate-failed|disassociate-in-progress|disassociated',
                'reasons' => [
                    [
                        'code' => '<string>',
                        'message' => '<string>',
                    ],
                    // ...
                ],
            ],
        ],
        // ...
    ],
    'nextToken' => '<string>',
]

Result Details

Members
items
Required: Yes
Type: Array of CertificateAssociation structures

Information about the certificate associations.

nextToken
Type: string

If there are additional results, a pagination token for the next page of results.

Errors

ValidationException:

The input does not satisfy the constraints specified by an AWS service.

ResourceNotFoundException:

The request references a resource that does not exist.

InternalServerException:

An unexpected error occurred while processing the request.

ThrottlingException:

The limit on the number of requests per second was exceeded.

AccessDeniedException:

The user does not have sufficient access to perform this action.

Examples

Example 1: To list the certificate associations for a proxy

The following example lists the ACM certificates associated with the specified proxy.

$result = $client->listCertificateAssociations([
    'proxyIdentifier' => 'arn:aws:elasticloadbalancing:us-east-1:123456789012:proxy/my-proxy:0123456789abcdef',
]);

Result syntax:

[
    'items' => [
        [
            'certificateArn' => 'arn:aws:acm:us-east-1:123456789012:certificate/12345678-1234-1234-1234-123456789012',
            'createdAt' => ,
            'status' => [
                'code' => 'active',
                'reasons' => [
                ],
            ],
        ],
    ],
]

ListProxies

$result = $client->listProxies([/* ... */]);
$promise = $client->listProxiesAsync([/* ... */]);

Lists the proxies owned by the caller account.

Parameter Syntax

$result = $client->listProxies([
    'maxResults' => <integer>,
    'nextToken' => '<string>',
]);

Parameter Details

Members
maxResults
Type: int

The maximum number of results to return.

nextToken
Type: string

A pagination token for the next page of results.

Result Syntax

[
    'items' => [
        [
            'arn' => '<string>',
            'createdAt' => <DateTime>,
            'dnsName' => '<string>',
            'name' => '<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>',
                        'message' => '<string>',
                        'target' => '<string>',
                    ],
                    // ...
                ],
            ],
            'type' => 'envoy',
            'vpcId' => '<string>',
        ],
        // ...
    ],
    'nextToken' => '<string>',
]

Result Details

Members
items
Required: Yes
Type: Array of ProxySummary structures

Information about the proxies.

nextToken
Type: string

If there are additional results, a pagination token for the next page of results.

Errors

ValidationException:

The input does not satisfy the constraints specified by an AWS service.

InternalServerException:

An unexpected error occurred while processing the request.

ThrottlingException:

The limit on the number of requests per second was exceeded.

Examples

Example 1: To list your proxies

The following example lists the proxies owned by the calling account.

$result = $client->listProxies([
]);

Result syntax:

[
    'items' => [
        [
            'name' => 'my-proxy',
            'type' => 'envoy',
            'arn' => 'arn:aws:elasticloadbalancing:us-east-1:123456789012:proxy/my-proxy:0123456789abcdef',
            'createdAt' => ,
            'dnsName' => 'my-proxy-1234567890.elb-proxy.us-east-1.on.aws',
            'status' => [
                'code' => 'active',
                'reasons' => [
                ],
            ],
            'vpcId' => 'vpc-1a2b3c4d',
        ],
    ],
]

ListProxyUpdates

$result = $client->listProxyUpdates([/* ... */]);
$promise = $client->listProxyUpdatesAsync([/* ... */]);

Lists the updates for the specified proxy, most recently submitted first.

Parameter Syntax

$result = $client->listProxyUpdates([
    'maxResults' => <integer>,
    'nextToken' => '<string>',
    'proxyIdentifier' => '<string>', // REQUIRED
]);

Parameter Details

Members
maxResults
Type: int

The maximum number of results to return.

nextToken
Type: string

A pagination token for the next page of results.

proxyIdentifier
Required: Yes
Type: string

The Amazon Resource Name (ARN) of the proxy.

Result Syntax

[
    'items' => [
        [
            'completedAt' => <DateTime>,
            'propagationStatus' => 'in-progress|complete|skipped|failed|cancelled',
            'submittedAt' => <DateTime>,
            'type' => 'update-proxy-configuration',
            'updateId' => '<string>',
            'validatedAt' => <DateTime>,
            'validationStatus' => 'not-validated|valid|invalid',
        ],
        // ...
    ],
    'nextToken' => '<string>',
]

Result Details

Members
items
Required: Yes
Type: Array of ProxyUpdateSummary structures

Information about the updates for the proxy.

nextToken
Type: string

If there are additional results, a pagination token for the next page of results.

Errors

ValidationException:

The input does not satisfy the constraints specified by an AWS service.

ResourceNotFoundException:

The request references a resource that does not exist.

InternalServerException:

An unexpected error occurred while processing the request.

ThrottlingException:

The limit on the number of requests per second was exceeded.

AccessDeniedException:

The user does not have sufficient access to perform this action.

Examples

Example 1: To list the updates for a proxy

The following example lists the updates for the specified proxy.

$result = $client->listProxyUpdates([
    'proxyIdentifier' => 'arn:aws:elasticloadbalancing:us-east-1:123456789012:proxy/my-proxy:0123456789abcdef',
]);

Result syntax:

[
    'items' => [
        [
            'type' => 'update-proxy-configuration',
            'completedAt' => ,
            'propagationStatus' => 'complete',
            'submittedAt' => ,
            'updateId' => 'a1b2c3d4-5678-90ab-cdef-EXAMPLE11111',
            'validatedAt' => ,
            'validationStatus' => 'valid',
        ],
    ],
]

ListProxyVersions

$result = $client->listProxyVersions([/* ... */]);
$promise = $client->listProxyVersionsAsync([/* ... */]);

Lists the available proxy versions.

Parameter Syntax

$result = $client->listProxyVersions([
    'maxResults' => <integer>,
    'nextToken' => '<string>',
    'type' => 'envoy', // REQUIRED
]);

Parameter Details

Members
maxResults
Type: int

The maximum number of results to return.

nextToken
Type: string

A pagination token for the next page of results.

type
Required: Yes
Type: string

The type of proxy.

Result Syntax

[
    'items' => [
        [
            'type' => 'envoy',
            'version' => '<string>',
        ],
        // ...
    ],
    'nextToken' => '<string>',
]

Result Details

Members
items
Required: Yes
Type: Array of ProxyVersionSummary structures

Information about the proxy versions.

nextToken
Type: string

If there are additional results, a pagination token for the next page of results.

Errors

ValidationException:

The input does not satisfy the constraints specified by an AWS service.

InternalServerException:

An unexpected error occurred while processing the request.

ThrottlingException:

The limit on the number of requests per second was exceeded.

Examples

Example 1: To list the proxy versions

The following example lists the Envoy versions that you can specify when you create a proxy or update its version.

$result = $client->listProxyVersions([
    'type' => 'envoy',
]);

Result syntax:

[
    'items' => [
        [
            'version' => '1.40',
            'type' => 'envoy',
        ],
        [
            'version' => '1.41',
            'type' => 'envoy',
        ],
    ],
]

ListTagsForResource

$result = $client->listTagsForResource([/* ... */]);
$promise = $client->listTagsForResourceAsync([/* ... */]);

Lists the tags for the specified resource.

Parameter Syntax

$result = $client->listTagsForResource([
    'resourceArn' => '<string>', // REQUIRED
]);

Parameter Details

Members
resourceArn
Required: Yes
Type: string

The Amazon Resource Name (ARN) of the resource.

Result Syntax

[
    'tags' => ['<string>', ...],
]

Result Details

Members
tags
Type: Associative array of custom strings keys (TagKey) to strings

The tags for the resource.

Errors

ValidationException:

The input does not satisfy the constraints specified by an AWS service.

ResourceNotFoundException:

The request references a resource that does not exist.

InternalServerException:

An unexpected error occurred while processing the request.

ThrottlingException:

The limit on the number of requests per second was exceeded.

Examples

Example 1: To list the tags for a proxy

The following example lists the tags for the specified proxy.

$result = $client->listTagsForResource([
    'resourceArn' => 'arn:aws:elasticloadbalancing:us-east-1:123456789012:proxy/my-proxy:0123456789abcdef',
]);

Result syntax:

[
    'tags' => [
        'Environment' => 'production',
        'Team' => 'networking',
    ],
]

TagResource

$result = $client->tagResource([/* ... */]);
$promise = $client->tagResourceAsync([/* ... */]);

Adds the specified tags to the specified resource.

Parameter Syntax

$result = $client->tagResource([
    'resourceArn' => '<string>', // REQUIRED
    'tags' => ['<string>', ...], // REQUIRED
]);

Parameter Details

Members
resourceArn
Required: Yes
Type: string

The Amazon Resource Name (ARN) of the resource.

tags
Required: Yes
Type: Associative array of custom strings keys (TagKey) to strings

The tags for the resource.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

ServiceQuotaExceededException:

The request would cause a service quota to be exceeded.

ValidationException:

The input does not satisfy the constraints specified by an AWS service.

ResourceNotFoundException:

The request references a resource that does not exist.

InternalServerException:

An unexpected error occurred while processing the request.

ThrottlingException:

The limit on the number of requests per second was exceeded.

AccessDeniedException:

The user does not have sufficient access to perform this action.

Examples

Example 1: To add tags to a proxy

The following example adds the specified tags to the specified proxy.

$result = $client->tagResource([
    'resourceArn' => 'arn:aws:elasticloadbalancing:us-east-1:123456789012:proxy/my-proxy:0123456789abcdef',
    'tags' => [
        'Environment' => 'production',
        'Team' => 'networking',
    ],
]);

Result syntax:

[
]

UntagResource

$result = $client->untagResource([/* ... */]);
$promise = $client->untagResourceAsync([/* ... */]);

Removes the specified tags from the specified resource.

Parameter Syntax

$result = $client->untagResource([
    'resourceArn' => '<string>', // REQUIRED
    'tagKeys' => ['<string>', ...], // REQUIRED
]);

Parameter Details

Members
resourceArn
Required: Yes
Type: string

The Amazon Resource Name (ARN) of the resource.

tagKeys
Required: Yes
Type: Array of strings

The tag keys of the tags to remove.

Result Syntax

[]

Result Details

The results for this operation are always empty.

Errors

ValidationException:

The input does not satisfy the constraints specified by an AWS service.

ResourceNotFoundException:

The request references a resource that does not exist.

InternalServerException:

An unexpected error occurred while processing the request.

ThrottlingException:

The limit on the number of requests per second was exceeded.

AccessDeniedException:

The user does not have sufficient access to perform this action.

Examples

Example 1: To remove tags from a proxy

The following example removes the specified tags from the specified proxy.

$result = $client->untagResource([
    'resourceArn' => 'arn:aws:elasticloadbalancing:us-east-1:123456789012:proxy/my-proxy:0123456789abcdef',
    'tagKeys' => [
        'Team',
    ],
]);

Result syntax:

[
]

UpdateProxyAttributes

$result = $client->updateProxyAttributes([/* ... */]);
$promise = $client->updateProxyAttributesAsync([/* ... */]);

Updates the attributes for the specified proxy.

Parameter Syntax

$result = $client->updateProxyAttributes([
    'attributes' => [ // REQUIRED
        [
            'key' => '<string>', // REQUIRED
            'value' => '<string>', // REQUIRED
        ],
        // ...
    ],
    'proxyIdentifier' => '<string>', // REQUIRED
]);

Parameter Details

Members
attributes
Required: Yes
Type: Array of Attribute structures

The attributes to update. Attributes that you don't specify are unchanged.

proxyIdentifier
Required: Yes
Type: string

The Amazon Resource Name (ARN) of the proxy.

Result Syntax

[
    'attributes' => [
        [
            'defaultValue' => '<string>',
            'key' => '<string>',
            'value' => '<string>',
        ],
        // ...
    ],
]

Result Details

Members
attributes
Required: Yes
Type: Array of AttributeDetails structures

The attributes for the proxy after the update.

Errors

ValidationException:

The input does not satisfy the constraints specified by an AWS service.

ResourceNotFoundException:

The request references a resource that does not exist.

InternalServerException:

An unexpected error occurred while processing the request.

ThrottlingException:

The limit on the number of requests per second was exceeded.

Examples

Example 1: To enable deletion protection

The following example enables deletion protection for the specified proxy.

$result = $client->updateProxyAttributes([
    'attributes' => [
        [
            'key' => 'deletion_protection.enabled',
            'value' => 'true',
        ],
    ],
    'proxyIdentifier' => 'arn:aws:elasticloadbalancing:us-east-1:123456789012:proxy/my-proxy:0123456789abcdef',
]);

Result syntax:

[
    'attributes' => [
        [
            'key' => 'ddos_protection.syn_cookie.mode',
            'value' => 'reactive',
            'defaultValue' => 'reactive',
        ],
        [
            'key' => 'deletion_protection.enabled',
            'value' => 'true',
            'defaultValue' => 'false',
        ],
        [
            'key' => 'envoy.component_log_level',
            'value' => '',
            'defaultValue' => '',
        ],
        [
            'key' => 'envoy.log_level',
            'value' => 'warn',
            'defaultValue' => 'warn',
        ],
        [
            'key' => 'waf.fail_open.enabled',
            'value' => 'false',
            'defaultValue' => 'false',
        ],
        [
            'key' => 'waf.web_acl_arn',
            'value' => '',
        ],
    ],
]
Example 2: To change the Envoy log level

The following example changes the Envoy log level for the specified proxy to debug.

$result = $client->updateProxyAttributes([
    'attributes' => [
        [
            'key' => 'envoy.log_level',
            'value' => 'debug',
        ],
    ],
    'proxyIdentifier' => 'arn:aws:elasticloadbalancing:us-east-1:123456789012:proxy/my-proxy:0123456789abcdef',
]);

Result syntax:

[
    'attributes' => [
        [
            'key' => 'ddos_protection.syn_cookie.mode',
            'value' => 'reactive',
            'defaultValue' => 'reactive',
        ],
        [
            'key' => 'deletion_protection.enabled',
            'value' => 'false',
            'defaultValue' => 'false',
        ],
        [
            'key' => 'envoy.component_log_level',
            'value' => '',
            'defaultValue' => '',
        ],
        [
            'key' => 'envoy.log_level',
            'value' => 'debug',
            'defaultValue' => 'warn',
        ],
        [
            'key' => 'waf.fail_open.enabled',
            'value' => 'false',
            'defaultValue' => 'false',
        ],
        [
            'key' => 'waf.web_acl_arn',
            'value' => '',
        ],
    ],
]
Example 3: To change the log level for specific Envoy components

The following example changes the log level for the http and router Envoy components on the specified proxy to debug. Components that aren't specified use the log level set by envoy.log_level.

$result = $client->updateProxyAttributes([
    'attributes' => [
        [
            'key' => 'envoy.component_log_level',
            'value' => 'http:debug,router:debug',
        ],
    ],
    'proxyIdentifier' => 'arn:aws:elasticloadbalancing:us-east-1:123456789012:proxy/my-proxy:0123456789abcdef',
]);

Result syntax:

[
    'attributes' => [
        [
            'key' => 'ddos_protection.syn_cookie.mode',
            'value' => 'reactive',
            'defaultValue' => 'reactive',
        ],
        [
            'key' => 'deletion_protection.enabled',
            'value' => 'false',
            'defaultValue' => 'false',
        ],
        [
            'key' => 'envoy.component_log_level',
            'value' => 'http:debug,router:debug',
            'defaultValue' => '',
        ],
        [
            'key' => 'envoy.log_level',
            'value' => 'warn',
            'defaultValue' => 'warn',
        ],
        [
            'key' => 'waf.fail_open.enabled',
            'value' => 'false',
            'defaultValue' => 'false',
        ],
        [
            'key' => 'waf.web_acl_arn',
            'value' => '',
        ],
    ],
]
Example 4: To enable AWS WAF fail open

The following example enables AWS WAF fail open for the specified proxy.

$result = $client->updateProxyAttributes([
    'attributes' => [
        [
            'key' => 'waf.fail_open.enabled',
            'value' => 'true',
        ],
    ],
    'proxyIdentifier' => 'arn:aws:elasticloadbalancing:us-east-1:123456789012:proxy/my-proxy:0123456789abcdef',
]);

Result syntax:

[
    'attributes' => [
        [
            'key' => 'ddos_protection.syn_cookie.mode',
            'value' => 'reactive',
            'defaultValue' => 'reactive',
        ],
        [
            'key' => 'deletion_protection.enabled',
            'value' => 'false',
            'defaultValue' => 'false',
        ],
        [
            'key' => 'envoy.component_log_level',
            'value' => '',
            'defaultValue' => '',
        ],
        [
            'key' => 'envoy.log_level',
            'value' => 'warn',
            'defaultValue' => 'warn',
        ],
        [
            'key' => 'waf.fail_open.enabled',
            'value' => 'true',
            'defaultValue' => 'false',
        ],
        [
            'key' => 'waf.web_acl_arn',
            'value' => '',
        ],
    ],
]

UpdateProxyConfiguration

$result = $client->updateProxyConfiguration([/* ... */]);
$promise = $client->updateProxyConfigurationAsync([/* ... */]);

Updates the configuration for the specified proxy. You can update the configuration file, the configuration archive, or both.

Parameter Syntax

$result = $client->updateProxyConfiguration([
    'configurationArchive' => [
        'configurationBytes' => <string || resource || Psr\Http\Message\StreamInterface>, // REQUIRED
    ],
    'configurationFile' => [
        'configurationBytes' => <string || resource || Psr\Http\Message\StreamInterface>, // REQUIRED
    ],
    'customerKmsKeyArn' => '<string>',
    'proxyIdentifier' => '<string>', // REQUIRED
    'resetConfigurationArchive' => true || false,
    'resetCustomerKmsKeyArn' => true || false,
]);

Parameter Details

Members
configurationArchive
Type: ConfigurationArchive structure

The updated configuration archive for the proxy. If you don't specify a value, the existing configuration archive is unchanged.

configurationFile
Type: ConfigurationFile structure

The updated configuration file for the proxy. If you don't specify a value, the existing configuration file is unchanged.

customerKmsKeyArn
Type: string

The Amazon Resource Name (ARN) of the customer managed KMS key used to encrypt the proxy's configuration content. Specify a new ARN to set or rotate the key. If you don't specify a value, the existing key is unchanged.

proxyIdentifier
Required: Yes
Type: string

The Amazon Resource Name (ARN) of the proxy.

resetConfigurationArchive
Type: boolean

Indicates whether to remove the configuration archive from the proxy.

resetCustomerKmsKeyArn
Type: boolean

Indicates whether to remove the customer managed KMS key from the proxy and use the default service-owned key.

Result Syntax

[
    'configurationMetadata' => [
        'configArchiveHash' => '<string>',
        'configArchiveLastUpdatedAt' => <DateTime>,
        'configFileHash' => '<string>',
        'configFileLastUpdatedAt' => <DateTime>,
    ],
    'customerKmsKeyArn' => '<string>',
    'updateId' => '<string>',
]

Result Details

Members
configurationMetadata
Required: Yes
Type: ConfigurationMetadata structure

The configuration metadata for the proxy after the update.

customerKmsKeyArn
Type: string

The Amazon Resource Name (ARN) of the customer managed KMS key used to encrypt the proxy's configuration content after the update. This value is absent when the proxy uses the default service-owned key.

updateId
Type: string

The ID of the update that was submitted.

Errors

ValidationException:

The input does not satisfy the constraints specified by an AWS service.

PriorRequestNotCompletedException:

The request could not be completed because a prior request has not yet completed.

ResourceNotFoundException:

The request references a resource that does not exist.

InternalServerException:

An unexpected error occurred while processing the request.

ThrottlingException:

The limit on the number of requests per second was exceeded.

AccessDeniedException:

The user does not have sufficient access to perform this action.

Examples

Example 1: To update the configuration for a proxy

The following example replaces the configuration file for the specified proxy. You can use the update ID in the output to track the progress of the update.

$result = $client->updateProxyConfiguration([
    'configurationFile' => [
        'configurationBytes' => <BLOB>,
    ],
    'proxyIdentifier' => 'arn:aws:elasticloadbalancing:us-east-1:123456789012:proxy/my-proxy:0123456789abcdef',
]);

Result syntax:

[
    'configurationMetadata' => [
        'configFileHash' => '29a5eb3bdf714ff29cc52e1a3723894b9f746416e1e541fddfad0a3963aed98c',
        'configFileLastUpdatedAt' => ,
    ],
    'updateId' => 'a1b2c3d4-5678-90ab-cdef-EXAMPLE11111',
]

UpdateProxyNetworkConfiguration

$result = $client->updateProxyNetworkConfiguration([/* ... */]);
$promise = $client->updateProxyNetworkConfigurationAsync([/* ... */]);

Updates the network configuration for the specified proxy.

Parameter Syntax

$result = $client->updateProxyNetworkConfiguration([
    'proxyIdentifier' => '<string>', // REQUIRED
    'vpcConfiguration' => [ // REQUIRED
        'securityGroups' => [
            [
                'securityGroupId' => '<string>', // REQUIRED
            ],
            // ...
        ],
        'subnets' => [
            [
                'subnetId' => '<string>', // REQUIRED
            ],
            // ...
        ],
    ],
]);

Parameter Details

Members
proxyIdentifier
Required: Yes
Type: string

The Amazon Resource Name (ARN) of the proxy.

vpcConfiguration
Required: Yes
Type: UpdateProxyVpcConfiguration structure

The updated VPC configuration for the proxy.

Result Syntax

[
    'arn' => '<string>',
    'configurationMetadata' => [
        'configArchiveHash' => '<string>',
        'configArchiveLastUpdatedAt' => <DateTime>,
        'configFileHash' => '<string>',
        'configFileLastUpdatedAt' => <DateTime>,
    ],
    'createdAt' => <DateTime>,
    'customerKmsKeyArn' => '<string>',
    'dnsName' => '<string>',
    'name' => '<string>',
    'networkConfiguration' => [
        'ipConfiguration' => [
            'ipAddressingConfiguration' => [
                'ipv4Addressability' => 'off|internet-facing|internal',
                'ipv6Addressability' => 'off|internet-facing|internal',
            ],
        ],
        'vpcConfiguration' => [
            'availabilityZones' => [
                [
                    'subnetId' => '<string>',
                    'zoneId' => '<string>',
                    'zoneName' => '<string>',
                ],
                // ...
            ],
            'securityGroups' => [
                [
                    'securityGroupId' => '<string>',
                ],
                // ...
            ],
            'vpcId' => '<string>',
        ],
    ],
    'proxyVersion' => '<string>',
    'roleArn' => '<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>',
                'message' => '<string>',
                'target' => '<string>',
            ],
            // ...
        ],
    ],
    'type' => 'envoy',
]

Result Details

Members
arn
Type: string

The Amazon Resource Name (ARN) of the proxy.

configurationMetadata
Type: ConfigurationMetadata structure

The configuration metadata for the proxy.

createdAt
Type: timestamp (string|DateTime or anything parsable by strtotime)

The date and time that the proxy was created.

customerKmsKeyArn
Type: 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.

dnsName
Type: string

The DNS name of the proxy.

name
Type: string

The name of the proxy.

networkConfiguration
Type: ProxyNetworkConfiguration structure

The network configuration for the proxy.

proxyVersion
Type: string

The version of the proxy software.

roleArn
Type: 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.

status
Type: ProxyStatus structure

The status of the proxy.

type
Type: string

The type of proxy.

Errors

ValidationException:

The input does not satisfy the constraints specified by an AWS service.

ResourceNotFoundException:

The request references a resource that does not exist.

InternalServerException:

An unexpected error occurred while processing the request.

ThrottlingException:

The limit on the number of requests per second was exceeded.

AccessDeniedException:

The user does not have sufficient access to perform this action.

Examples

Example 1: To update the network configuration for a proxy

The following example replaces the security groups for the specified proxy. The subnets don't change.

$result = $client->updateProxyNetworkConfiguration([
    'proxyIdentifier' => 'arn:aws:elasticloadbalancing:us-east-1:123456789012:proxy/my-proxy:0123456789abcdef',
    'vpcConfiguration' => [
        'securityGroups' => [
            [
                'securityGroupId' => 'sg-1a2b3c4d',
            ],
        ],
    ],
]);

Result syntax:

[
    'name' => 'my-proxy',
    'type' => 'envoy',
    'arn' => 'arn:aws:elasticloadbalancing:us-east-1:123456789012:proxy/my-proxy:0123456789abcdef',
    'createdAt' => ,
    'dnsName' => 'my-proxy-1234567890.elb-proxy.us-east-1.on.aws',
    'networkConfiguration' => [
        'ipConfiguration' => [
            'ipAddressingConfiguration' => [
                'ipv4Addressability' => 'internet-facing',
                'ipv6Addressability' => 'off',
            ],
        ],
        'vpcConfiguration' => [
            'availabilityZones' => [
                [
                    'subnetId' => 'subnet-8360a9e7',
                    'zoneId' => 'use1-az1',
                    'zoneName' => 'us-east-1a',
                ],
                [
                    'subnetId' => 'subnet-b7d581c0',
                    'zoneId' => 'use1-az2',
                    'zoneName' => 'us-east-1b',
                ],
            ],
            'securityGroups' => [
                [
                    'securityGroupId' => 'sg-1a2b3c4d',
                ],
            ],
            'vpcId' => 'vpc-1a2b3c4d',
        ],
    ],
    'proxyVersion' => '1.40',
    'roleArn' => 'arn:aws:iam::123456789012:role/my-proxy-role',
    'status' => [
        'code' => 'active',
        'reasons' => [
        ],
    ],
]

Shapes

AccessDeniedException

Description

The user does not have sufficient access to perform this action.

Members
message
Required: Yes
Type: string

Description of the error

Attribute

Description

A key-value attribute for a proxy.

Members
key
Required: Yes
Type: string

The key of the attribute.

value
Required: Yes
Type: string

The value of the attribute.

AttributeDetails

Description

A key-value attribute for a proxy, including its default value.

Members
defaultValue
Type: string

The default value of the attribute.

key
Required: Yes
Type: string

The key of the attribute.

value
Required: Yes
Type: string

The value of the attribute.

CertificateAssociation

Description

An association between an ACM certificate and a proxy.

Members
certificateArn
Required: Yes
Type: string

The Amazon Resource Name (ARN) of the ACM certificate.

createdAt
Type: timestamp (string|DateTime or anything parsable by strtotime)

The date and time that the association was created.

status
Required: Yes
Type: CertificateAssociationStatus structure

The status of the association.

CertificateAssociationStatus

Description

The status of a certificate association.

Members
code
Required: Yes
Type: string

The status code of the association.

reasons
Required: Yes
Type: Array of CertificateAssociationStatusReason structures

The reasons for the current status of the association.

CertificateAssociationStatusReason

Description

A reason for the current status of a certificate association.

Members
code
Required: Yes
Type: string

The status reason code.

message
Type: string

The status reason message.

ConfigurationArchive

Description

The configuration archive for a proxy. This is a bundle of the files referenced by the configuration file.

Members
configurationBytes
Required: Yes
Type: blob (string|resource|Psr\Http\Message\StreamInterface)

The contents of the configuration archive.

ConfigurationFile

Description

The configuration file for a proxy.

Members
configurationBytes
Required: Yes
Type: blob (string|resource|Psr\Http\Message\StreamInterface)

The contents of the configuration file.

ConfigurationMetadata

Description

The configuration metadata for a proxy.

Members
configArchiveHash
Type: string

The SHA-256 hash of the configuration archive. This value is absent when the proxy does not have a configuration archive.

configArchiveLastUpdatedAt
Type: timestamp (string|DateTime or anything parsable by strtotime)

The date and time that the configuration archive was last updated.

configFileHash
Type: string

The SHA-256 hash of the configuration file.

configFileLastUpdatedAt
Type: timestamp (string|DateTime or anything parsable by strtotime)

The date and time that the configuration file was last updated.

ConflictException

Description

The request conflicts with the current state of the resource.

Members
message
Required: Yes
Type: string

Description of the error

InternalServerException

Description

An unexpected error occurred while processing the request.

Members
message
Required: Yes
Type: string

Description of the error

OperationNotPermittedException

Description

The requested operation is not permitted.

Members
message
Required: Yes
Type: string

Description of the error

PriorRequestNotCompletedException

Description

The request could not be completed because a prior request has not yet completed.

Members
message
Required: Yes
Type: string

Description of the error

ProxyConfiguration

Description

The configuration for a proxy.

Members
configurationArchive
Type: ConfigurationArchive structure

The configuration archive for the proxy. This is a bundle of the files referenced by the configuration file.

configurationFile
Type: ConfigurationFile structure

The configuration file for the proxy.

ProxyConfigurationUpdateDetails

Description

Details about an update to a proxy's configuration.

Members
newConfigurationMetadata
Type: ConfigurationMetadata structure

The configuration metadata for the configuration that was submitted with this update.

ProxyIpAddressingConfiguration

Description

The IP addressing configuration for a proxy.

Members
ipv4Addressability
Required: Yes
Type: string

The IPv4 addressability setting for the proxy.

ipv6Addressability
Required: Yes
Type: string

The IPv6 addressability setting for the proxy.

ProxyIpConfiguration

Description

The IP configuration for a proxy.

Members
ipAddressingConfiguration
Required: Yes
Type: ProxyIpAddressingConfiguration structure

The IP addressing configuration for the proxy.

ProxyNetworkConfiguration

Description

The network configuration for a proxy.

Members
ipConfiguration
Required: Yes
Type: ProxyIpConfiguration structure

The IP configuration for the proxy.

vpcConfiguration
Required: Yes
Type: ProxyVpcConfiguration structure

The VPC configuration for the proxy.

ProxyNetworkUserConfiguration

Description

The network configuration for a proxy, used by mutating operations.

Members
ipConfiguration
Required: Yes
Type: ProxyIpConfiguration structure

The IP configuration for the proxy.

vpcConfiguration
Required: Yes
Type: ProxyVpcUserConfiguration structure

The VPC configuration for the proxy.

ProxyStatus

Description

The status of a proxy.

Members
code
Required: Yes
Type: string

The status code of the proxy.

reasons
Required: Yes
Type: Array of ProxyStatusReason structures

The reasons for the current status of the proxy.

ProxyStatusReason

Description

A reason for the current status of a proxy.

Members
code
Required: Yes
Type: string

The status reason code.

message
Type: string

The status reason message.

target
Type: string

The target resource of the status reason.

ProxySummary

Description

Summary information about a proxy.

Members
arn
Type: string

The Amazon Resource Name (ARN) of the proxy.

createdAt
Type: timestamp (string|DateTime or anything parsable by strtotime)

The date and time that the proxy was created.

dnsName
Type: string

The DNS name of the proxy.

name
Type: string

The name of the proxy.

status
Type: ProxyStatus structure

The status of the proxy.

type
Type: string

The type of proxy.

vpcId
Type: string

The ID of the VPC.

ProxyUpdateDetails

Description

Details about a proxy update.

Members
configuration

Details about an update to the proxy's configuration.

ProxyUpdateState

Description

The state of a proxy update.

Members
propagationStatus
Required: Yes
Type: string

Whether the configuration submitted with the update was applied to all proxy nodes.

reasons
Type: Array of strings

The reasons for the current state of the update.

validationStatus
Required: Yes
Type: string

Whether the configuration submitted with the update works. An update is valid once it is successfully applied to at least one proxy node.

ProxyUpdateSummary

Description

Summary information about a proxy update.

Members
completedAt
Type: timestamp (string|DateTime or anything parsable by strtotime)

The date and time that the update's propagation status became complete, failed, or cancelled. This value is absent while the update is in-progress or skipped.

propagationStatus
Required: Yes
Type: string

Whether the configuration submitted with the update was applied to all proxy nodes.

submittedAt
Required: Yes
Type: timestamp (string|DateTime or anything parsable by strtotime)

The date and time that the update was submitted.

type
Required: Yes
Type: string

The type of the update.

updateId
Required: Yes
Type: string

The ID of the update.

validatedAt
Type: timestamp (string|DateTime or anything parsable by strtotime)

The date and time that the update was first successfully applied to a proxy node. This value is absent until the update is valid.

validationStatus
Required: Yes
Type: string

Whether the configuration submitted with the update works.

ProxyVersionSummary

Description

Information about a proxy version.

Members
type
Required: Yes
Type: string

The type of proxy.

version
Required: Yes
Type: string

The version of the proxy software, in major.minor format.

ProxyVpcConfiguration

Description

The VPC configuration for a proxy.

Members
availabilityZones
Required: Yes
Type: Array of SubnetAndZone structures

The Availability Zones used by the proxy.

securityGroups
Required: Yes
Type: Array of SecurityGroupDetails structures

The security groups used by the proxy.

vpcId
Type: string

The ID of the VPC.

ProxyVpcUserConfiguration

Description

The VPC configuration for a proxy, used by mutating operations.

Members
securityGroups
Required: Yes
Type: Array of SecurityGroupDetails structures

The security groups used by the proxy.

subnets
Required: Yes
Type: Array of SubnetDetails structures

The subnets used by the proxy.

ResourceNotFoundException

Description

The request references a resource that does not exist.

Members
message
Required: Yes
Type: string

Description of the error

SecurityGroupDetails

Description

The details of a security group.

Members
securityGroupId
Required: Yes
Type: string

The ID of the security group.

ServiceQuotaExceededException

Description

The request would cause a service quota to be exceeded.

Members
message
Required: Yes
Type: string

Description of the error

quotaCode
Type: string

The ID of the service quota that was exceeded.

resourceId
Type: string

The ID of the resource that caused the service quota to be exceeded.

resourceType
Type: string

The type of the resource that caused the service quota to be exceeded.

serviceCode
Type: string

The code of the service associated with the exceeded quota.

SubnetAndZone

Description

A subnet and its associated Availability Zone.

Members
subnetId
Required: Yes
Type: string

The ID of the subnet.

zoneId
Required: Yes
Type: string

The ID of the Availability Zone.

zoneName
Type: string

The name of the Availability Zone (for example, us-east-1a).

SubnetDetails

Description

The details of a subnet.

Members
subnetId
Required: Yes
Type: string

The ID of the subnet.

ThrottlingException

Description

The limit on the number of requests per second was exceeded.

Members
message
Required: Yes
Type: string

Description of the error

UpdateProxyVpcConfiguration

Description

The updated VPC configuration for a proxy. You must provide at least one of subnets or securityGroups.

Members
securityGroups
Type: Array of SecurityGroupDetails structures

The updated security groups for the proxy.

subnets
Type: Array of SubnetDetails structures

The updated subnets for the proxy.

ValidationException

Description

The input does not satisfy the constraints specified by an AWS service.

Members
message
Type: string