modify_client_vpn_endpoint
async
¶
modify_client_vpn_endpoint(
*,
config_overrides: Optional[AsyncEC2ClientConfig] = 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/async_ec2.py
50006 50007 50008 50009 50010 50011 50012 50013 50014 50015 50016 50017 50018 50019 50020 50021 50022 50023 50024 50025 50026 50027 50028 50029 50030 50031 50032 50033 50034 50035 50036 50037 50038 50039 50040 50041 50042 50043 50044 50045 50046 50047 50048 50049 50050 50051 50052 50053 50054 50055 50056 50057 50058 50059 50060 50061 50062 50063 50064 50065 50066 50067 50068 50069 50070 50071 50072 50073 50074 50075 50076 50077 50078 50079 50080 50081 50082 50083 50084 50085 50086 50087 50088 50089 50090 50091 50092 50093 50094 50095 50096 50097 50098 50099 50100 50101 50102 50103 50104 50105 50106 50107 50108 50109 50110 50111 50112 50113 50114 50115 50116 50117 50118 50119 50120 50121 50122 50123 50124 50125 50126 50127 50128 50129 50130 50131 50132 50133 50134 50135 50136 50137 50138 50139 50140 50141 50142 50143 | |