modify_client_vpn_endpoint
(**kwargs)¶Modifies the specified Client VPN endpoint. Modifying the DNS server resets existing client connections.
See also: AWS API Documentation
Request Syntax
response = client.modify_client_vpn_endpoint(
ClientVpnEndpointId='string',
ServerCertificateArn='string',
ConnectionLogOptions={
'Enabled': True|False,
'CloudwatchLogGroup': 'string',
'CloudwatchLogStream': 'string'
},
DnsServers={
'CustomDnsServers': [
'string',
],
'Enabled': True|False
},
VpnPort=123,
Description='string',
SplitTunnel=True|False,
DryRun=True|False,
SecurityGroupIds=[
'string',
],
VpcId='string',
SelfServicePortal='enabled'|'disabled',
ClientConnectOptions={
'Enabled': True|False,
'LambdaFunctionArn': 'string'
},
SessionTimeoutHours=123,
ClientLoginBannerOptions={
'Enabled': True|False,
'BannerText': 'string'
}
)
[REQUIRED]
The ID of the Client VPN endpoint to modify.
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:
Indicates whether connection logging is enabled.
The name of the CloudWatch Logs log group. Required if connection logging is enabled.
The name of the CloudWatch Logs log stream to which the connection data is published.
Information about the DNS servers to be used by Client VPN connections. A Client VPN endpoint can have up to two DNS servers.
The IPv4 address range, in CIDR notation, of the DNS servers to be used. You can specify up to two DNS servers. Ensure that the DNS servers can be reached by the clients. The specified values overwrite the existing values.
Indicates whether DNS servers should be used. Specify False
to delete the existing DNS servers.
The port number to assign to the Client VPN endpoint for TCP and UDP traffic.
Valid Values: 443
| 1194
Default Value: 443
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 .
DryRunOperation
. Otherwise, it is UnauthorizedOperation
.The IDs of one or more security groups to apply to the target network.
The options for managing connection authorization for new client connections.
Indicates whether client connect options are enabled. The default is false
(not enabled).
The Amazon Resource Name (ARN) of the Lambda function used for connection authorization.
The maximum VPN session duration time in hours.
Valid values: 8 | 10 | 12 | 24
Default value: 24
Options for enabling a customizable text banner that will be displayed on Amazon Web Services provided clients when a VPN session is established.
Enable or disable a customizable text banner that will be displayed on Amazon Web Services provided clients when a VPN session is established.
Valid values: true | false
Default value: false
Customizable text that will be displayed in a banner on Amazon Web Services provided clients when a VPN session is established. UTF-8 encoded characters only. Maximum of 1400 characters.
dict
Response Syntax
{
'Return': True|False
}
Response Structure
(dict) --
Return (boolean) --
Returns true
if the request succeeds; otherwise, it returns an error.