update_vpc_endpoint

ElasticsearchService.Client.update_vpc_endpoint(**kwargs)

Modifies an Amazon OpenSearch Service-managed interface VPC endpoint.

See also: AWS API Documentation

Request Syntax

response = client.update_vpc_endpoint(
    VpcEndpointId='string',
    VpcOptions={
        'SubnetIds': [
            'string',
        ],
        'SecurityGroupIds': [
            'string',
        ]
    }
)
Parameters
  • VpcEndpointId (string) --

    [REQUIRED]

    Unique identifier of the VPC endpoint to be updated.

  • VpcOptions (dict) --

    [REQUIRED]

    The security groups and/or subnets to add, remove, or modify.

    • SubnetIds (list) --

      Specifies the subnets for VPC endpoint.

      • (string) --
    • SecurityGroupIds (list) --

      Specifies the security groups for VPC endpoint.

      • (string) --
Return type

dict

Returns

Response Syntax

{
    'VpcEndpoint': {
        'VpcEndpointId': 'string',
        'VpcEndpointOwner': 'string',
        'DomainArn': 'string',
        'VpcOptions': {
            'VPCId': 'string',
            'SubnetIds': [
                'string',
            ],
            'AvailabilityZones': [
                'string',
            ],
            'SecurityGroupIds': [
                'string',
            ]
        },
        'Status': 'CREATING'|'CREATE_FAILED'|'ACTIVE'|'UPDATING'|'UPDATE_FAILED'|'DELETING'|'DELETE_FAILED',
        'Endpoint': 'string'
    }
}

Response Structure

  • (dict) --

    Contains the configuration and status of the VPC endpoint being updated.

    • VpcEndpoint (dict) --

      The endpoint to be updated.

      • VpcEndpointId (string) --

        The unique identifier of the endpoint.

      • VpcEndpointOwner (string) --

        The creator of the endpoint.

      • DomainArn (string) --

        The Amazon Resource Name (ARN) of the domain associated with the endpoint.

      • VpcOptions (dict) --

        Options to specify the subnets and security groups for an Amazon OpenSearch Service VPC endpoint.

        • VPCId (string) --

          The VPC Id for the Elasticsearch domain. Exists only if the domain was created with VPCOptions.

        • SubnetIds (list) --

          Specifies the subnets for VPC endpoint.

          • (string) --
        • AvailabilityZones (list) --

          The availability zones for the Elasticsearch domain. Exists only if the domain was created with VPCOptions.

          • (string) --
        • SecurityGroupIds (list) --

          Specifies the security groups for VPC endpoint.

          • (string) --
      • Status (string) --

        The current status of the endpoint.

      • Endpoint (string) --

        The connection endpoint ID for connecting to the domain.

Exceptions

  • ElasticsearchService.Client.exceptions.ResourceNotFoundException
  • ElasticsearchService.Client.exceptions.DisabledOperationException
  • ElasticsearchService.Client.exceptions.InternalException
  • ElasticsearchService.Client.exceptions.ValidationException
  • ElasticsearchService.Client.exceptions.ConflictException
  • ElasticsearchService.Client.exceptions.BaseException