modify_client_vpn_endpoint
¶
modify_client_vpn_endpoint(
*,
config_overrides: Optional[EC2ClientConfig] = None,
client_vpn_endpoint_id: Optional[ClientVpnEndpointId] = None,
server_certificate_arn: Optional[String] = None,
connection_log_options: Optional[ConnectionLogOptions] = None,
dns_servers: Optional[DnsServersOptionsModifyStructure] = None,
vpn_port: Optional[Integer] = None,
description: Optional[String] = None,
split_tunnel: Optional[Boolean] = None,
dry_run: Optional[Boolean] = None,
security_group_ids: Optional[ClientVpnSecurityGroupIdSet] = None,
vpc_id: Optional[VpcId] = None,
self_service_portal: Optional[SelfServicePortal] = None,
client_connect_options: Optional[ClientConnectOptions] = None,
session_timeout_hours: Optional[Integer] = None,
client_login_banner_options: Optional[ClientLoginBannerOptions] = None,
client_route_enforcement_options: Optional[ClientRouteEnforcementOptions] = None,
disconnect_on_session_timeout: Optional[Boolean] = None,
transit_gateway_configuration: Optional[
TransitGatewayConfigurationInputStructure
] = None,
device_posture_options: Optional[DevicePostureOptions] = None,
) -> ModifyClientVpnEndpointResult
Modifies the specified Client VPN endpoint. Modifying the DNS server resets existing client connections.
Parameters:
-
client_vpn_endpoint_id(Optional[ClientVpnEndpointId], default:None) –The ID of the Client VPN endpoint to modify.
-
server_certificate_arn(Optional[String], default:None) –The ARN of the server certificate to be used. The server certificate must be provisioned in Certificate Manager (ACM).
-
connection_log_options(Optional[ConnectionLogOptions], default:None) –Information about the client connection logging options.
If you enable client connection logging, data about client connections is sent to a Cloudwatch Logs log stream. The following information is logged:
-
Client connection requests
-
Client connection results (successful and unsuccessful)
-
Reasons for unsuccessful client connection requests
-
Client connection termination time
-
-
dns_servers(Optional[DnsServersOptionsModifyStructure], default:None) –Information about the DNS servers to be used by Client VPN connections. A Client VPN endpoint can have up to two DNS servers.
-
vpn_port(Optional[Integer], default:None) –The port number to assign to the Client VPN endpoint for TCP and UDP traffic.
Valid Values:
443|1194Default Value:
443 -
description(Optional[String], default:None) –A brief description of the Client VPN endpoint.
-
split_tunnel(Optional[Boolean], default:None) –Indicates whether the VPN is split-tunnel.
For information about split-tunnel VPN endpoints, see Split-tunnel Client VPN endpoint in the Client VPN Administrator Guide.
-
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. -
security_group_ids(Optional[ClientVpnSecurityGroupIdSet], default:None) –The IDs of one or more security groups to apply to the target network.
-
vpc_id(Optional[VpcId], default:None) –The ID of the VPC to associate with the Client VPN endpoint.
-
self_service_portal(Optional[SelfServicePortal], default:None) –Specify whether to enable the self-service portal for the Client VPN endpoint.
-
client_connect_options(Optional[ClientConnectOptions], default:None) –The options for managing connection authorization for new client connections.
-
session_timeout_hours(Optional[Integer], default:None) –The maximum VPN session duration time in hours.
Valid values:
8 | 10 | 12 | 24Default value:
24 -
client_login_banner_options(Optional[ClientLoginBannerOptions], default:None) –Options for enabling a customizable text banner that will be displayed on Amazon Web Services provided clients when a VPN session is established.
-
client_route_enforcement_options(Optional[ClientRouteEnforcementOptions], default:None) –Client route enforcement is a feature of the Client VPN service that helps enforce administrator defined routes on devices connected through the VPN. T his feature helps improve your security posture by ensuring that network traffic originating from a connected client is not inadvertently sent outside the VPN tunnel.
Client route enforcement works by monitoring the route table of a connected device for routing policy changes to the VPN connection. If the feature detects any VPN routing policy modifications, it will automatically force an update to the route table, reverting it back to the expected route configurations.
-
disconnect_on_session_timeout(Optional[Boolean], default:None) –Indicates whether the client VPN session is disconnected after the maximum timeout specified in
sessionTimeoutHoursis reached. Iftrue, users are prompted to reconnect client VPN. Iffalse, client VPN attempts to reconnect automatically. The default value istrue. -
transit_gateway_configuration(Optional[TransitGatewayConfigurationInputStructure], default:None) –The Transit Gateway configuration for the Client VPN endpoint. This option is currently not supported.
-
device_posture_options(Optional[DevicePostureOptions], default:None) –The device posture options for the Client VPN endpoint. Specifying this parameter replaces the entire device posture configuration for the endpoint. To remove all device trust providers, specify an empty list.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_ec2/_services/ec2.py
49325 49326 49327 49328 49329 49330 49331 49332 49333 49334 49335 49336 49337 49338 49339 49340 49341 49342 49343 49344 49345 49346 49347 49348 49349 49350 49351 49352 49353 49354 49355 49356 49357 49358 49359 49360 49361 49362 49363 49364 49365 49366 49367 49368 49369 49370 49371 49372 49373 49374 49375 49376 49377 49378 49379 49380 49381 49382 49383 49384 49385 49386 49387 49388 49389 49390 49391 49392 49393 49394 49395 49396 49397 49398 49399 49400 49401 49402 49403 49404 49405 49406 49407 49408 49409 49410 49411 49412 49413 49414 49415 49416 49417 49418 49419 49420 49421 49422 49423 49424 49425 49426 49427 49428 49429 49430 49431 49432 49433 49434 49435 49436 49437 49438 49439 49440 49441 49442 49443 49444 49445 49446 49447 49448 49449 49450 49451 49452 49453 49454 49455 49456 49457 49458 49459 49460 49461 | |