modify_vpc_endpoint

modify_vpc_endpoint(**kwargs)

Modifies attributes of a specified VPC endpoint. The attributes that you can modify depend on the type of VPC endpoint (interface, gateway, or Gateway Load Balancer). For more information, see the Amazon Web Services PrivateLink Guide.

See also: AWS API Documentation

Request Syntax

response = client.modify_vpc_endpoint(
    DryRun=True|False,
    VpcEndpointId='string',
    ResetPolicy=True|False,
    PolicyDocument='string',
    AddRouteTableIds=[
        'string',
    ],
    RemoveRouteTableIds=[
        'string',
    ],
    AddSubnetIds=[
        'string',
    ],
    RemoveSubnetIds=[
        'string',
    ],
    AddSecurityGroupIds=[
        'string',
    ],
    RemoveSecurityGroupIds=[
        'string',
    ],
    IpAddressType='ipv4'|'dualstack'|'ipv6',
    DnsOptions={
        'DnsRecordIpType': 'ipv4'|'dualstack'|'ipv6'|'service-defined'
    },
    PrivateDnsEnabled=True|False
)
Parameters
  • DryRun (boolean) -- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation . Otherwise, it is UnauthorizedOperation .
  • VpcEndpointId (string) --

    [REQUIRED]

    The ID of the endpoint.

  • ResetPolicy (boolean) -- (Gateway endpoint) Specify true to reset the policy document to the default policy. The default policy allows full access to the service.
  • PolicyDocument (string) -- (Interface and gateway endpoints) A policy to attach to the endpoint that controls access to the service. The policy must be in valid JSON format.
  • AddRouteTableIds (list) --

    (Gateway endpoint) The IDs of the route tables to associate with the endpoint.

    • (string) --
  • RemoveRouteTableIds (list) --

    (Gateway endpoint) The IDs of the route tables to disassociate from the endpoint.

    • (string) --
  • AddSubnetIds (list) --

    (Interface and Gateway Load Balancer endpoints) The IDs of the subnets in which to serve the endpoint. For a Gateway Load Balancer endpoint, you can specify only one subnet.

    • (string) --
  • RemoveSubnetIds (list) --

    (Interface endpoint) The IDs of the subnets from which to remove the endpoint.

    • (string) --
  • AddSecurityGroupIds (list) --

    (Interface endpoint) The IDs of the security groups to associate with the network interface.

    • (string) --
  • RemoveSecurityGroupIds (list) --

    (Interface endpoint) The IDs of the security groups to disassociate from the network interface.

    • (string) --
  • IpAddressType (string) -- The IP address type for the endpoint.
  • DnsOptions (dict) --

    The DNS options for the endpoint.

    • DnsRecordIpType (string) --

      The DNS records created for the endpoint.

  • PrivateDnsEnabled (boolean) -- (Interface endpoint) Indicates whether a private hosted zone is associated with the VPC.
Return type

dict

Returns

Response Syntax

{
    'Return': True|False
}

Response Structure

  • (dict) --

    • Return (boolean) --

      Returns true if the request succeeds; otherwise, it returns an error.