modify_vpc_endpoint
async
¶
modify_vpc_endpoint(
*,
config_overrides: Optional[AsyncEC2ClientConfig] = None,
dry_run: Optional[Boolean] = None,
vpc_endpoint_id: Optional[VpcEndpointId] = None,
reset_policy: Optional[Boolean] = None,
policy_document: Optional[String] = None,
add_route_table_ids: Optional[VpcEndpointRouteTableIdList] = None,
remove_route_table_ids: Optional[VpcEndpointRouteTableIdList] = None,
add_subnet_ids: Optional[VpcEndpointSubnetIdList] = None,
remove_subnet_ids: Optional[VpcEndpointSubnetIdList] = None,
add_security_group_ids: Optional[VpcEndpointSecurityGroupIdList] = None,
remove_security_group_ids: Optional[VpcEndpointSecurityGroupIdList] = None,
ip_address_type: Optional[IpAddressType] = None,
dns_options: Optional[DnsOptionsSpecification] = None,
private_dns_enabled: Optional[Boolean] = None,
subnet_configurations: Optional[SubnetConfigurationsList] = None,
) -> ModifyVpcEndpointResult
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.
Parameters:
-
dry_run(Optional[Boolean], default:None) –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 isUnauthorizedOperation. -
vpc_endpoint_id(Optional[VpcEndpointId], default:None) –The ID of the endpoint.
-
reset_policy(Optional[Boolean], default:None) –(Gateway endpoint) Specify
trueto reset the policy document to the default policy. The default policy allows full access to the service. -
policy_document(Optional[String], default:None) –(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.
-
add_route_table_ids(Optional[VpcEndpointRouteTableIdList], default:None) –(Gateway endpoint) The IDs of the route tables to associate with the endpoint.
-
remove_route_table_ids(Optional[VpcEndpointRouteTableIdList], default:None) –(Gateway endpoint) The IDs of the route tables to disassociate from the endpoint.
-
add_subnet_ids(Optional[VpcEndpointSubnetIdList], default:None) –(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.
-
remove_subnet_ids(Optional[VpcEndpointSubnetIdList], default:None) –(Interface endpoint) The IDs of the subnets from which to remove the endpoint.
-
add_security_group_ids(Optional[VpcEndpointSecurityGroupIdList], default:None) –(Interface endpoint) The IDs of the security groups to associate with the endpoint network interfaces.
-
remove_security_group_ids(Optional[VpcEndpointSecurityGroupIdList], default:None) –(Interface endpoint) The IDs of the security groups to disassociate from the endpoint network interfaces.
-
ip_address_type(Optional[IpAddressType], default:None) –The IP address type for the endpoint.
-
dns_options(Optional[DnsOptionsSpecification], default:None) –The DNS options for the endpoint.
-
private_dns_enabled(Optional[Boolean], default:None) –(Interface endpoint) Indicates whether a private hosted zone is associated with the VPC.
-
subnet_configurations(Optional[SubnetConfigurationsList], default:None) –The subnet configurations for the endpoint.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_ec2/_services/async_ec2.py
54957 54958 54959 54960 54961 54962 54963 54964 54965 54966 54967 54968 54969 54970 54971 54972 54973 54974 54975 54976 54977 54978 54979 54980 54981 54982 54983 54984 54985 54986 54987 54988 54989 54990 54991 54992 54993 54994 54995 54996 54997 54998 54999 55000 55001 55002 55003 55004 55005 55006 55007 55008 55009 55010 55011 55012 55013 55014 55015 55016 55017 55018 55019 55020 55021 55022 55023 55024 55025 55026 55027 55028 55029 55030 55031 55032 55033 55034 55035 55036 55037 55038 55039 55040 55041 55042 55043 55044 55045 55046 55047 55048 55049 55050 55051 55052 55053 55054 55055 55056 55057 55058 55059 55060 55061 55062 55063 55064 55065 55066 55067 55068 55069 55070 55071 55072 | |