modify_instance_connect_endpoint
async
¶
modify_instance_connect_endpoint(
*,
config_overrides: Optional[AsyncEC2ClientConfig] = None,
dry_run: Optional[Boolean] = None,
instance_connect_endpoint_id: Optional[InstanceConnectEndpointId] = None,
ip_address_type: Optional[IpAddressType] = None,
security_group_ids: Optional[SecurityGroupIdStringListRequest] = None,
preserve_client_ip: Optional[Boolean] = None,
) -> ModifyInstanceConnectEndpointResult
Modifies the specified EC2 Instance Connect Endpoint.
For more information, see Modify an EC2 Instance Connect Endpoint in the Amazon EC2 User Guide.
Parameters:
-
dry_run(Optional[Boolean], default:None) –Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. If you have the required permissions, the error response is
DryRunOperation. Otherwise, it isUnauthorizedOperation. -
instance_connect_endpoint_id(Optional[InstanceConnectEndpointId], default:None) –The ID of the EC2 Instance Connect Endpoint to modify.
-
ip_address_type(Optional[IpAddressType], default:None) –The new IP address type for the EC2 Instance Connect Endpoint.
PreserveClientIpis only supported on IPv4 EC2 Instance Connect Endpoints. To usePreserveClientIp, the value forIpAddressTypemust beipv4. -
security_group_ids(Optional[SecurityGroupIdStringListRequest], default:None) –Changes the security groups for the EC2 Instance Connect Endpoint. The new set of groups you specify replaces the current set. You must specify at least one group, even if it's just the default security group in the VPC. You must specify the ID of the security group, not the name.
-
preserve_client_ip(Optional[Boolean], default:None) –Indicates whether the client IP address is preserved as the source when you connect to a resource. The following are the possible values.
-
true- Use the IP address of the client. Your instance must have an IPv4 address. -
false- Use the IP address of the network interface.
-
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_ec2/_services/async_ec2.py
50989 50990 50991 50992 50993 50994 50995 50996 50997 50998 50999 51000 51001 51002 51003 51004 51005 51006 51007 51008 51009 51010 51011 51012 51013 51014 51015 51016 51017 51018 51019 51020 51021 51022 51023 51024 51025 51026 51027 51028 51029 51030 51031 51032 51033 51034 51035 51036 51037 51038 51039 51040 51041 51042 51043 51044 51045 51046 51047 51048 51049 51050 51051 51052 51053 51054 | |