modify_instance_connect_endpoint
¶
modify_instance_connect_endpoint(
*,
config_overrides: Optional[EC2ClientConfig] = 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/ec2.py
50292 50293 50294 50295 50296 50297 50298 50299 50300 50301 50302 50303 50304 50305 50306 50307 50308 50309 50310 50311 50312 50313 50314 50315 50316 50317 50318 50319 50320 50321 50322 50323 50324 50325 50326 50327 50328 50329 50330 50331 50332 50333 50334 50335 50336 50337 50338 50339 50340 50341 50342 50343 50344 50345 50346 50347 50348 50349 50350 50351 50352 50353 50354 50355 50356 | |