create_client_vpn_endpoint
¶
create_client_vpn_endpoint(
*,
config_overrides: Optional[EC2ClientConfig] = None,
client_cidr_block: Optional[String] = None,
server_certificate_arn: Optional[String] = None,
authentication_options: Optional[ClientVpnAuthenticationRequestList] = None,
connection_log_options: Optional[ConnectionLogOptions] = None,
dns_servers: Optional[ValueStringList] = None,
transport_protocol: Optional[TransportProtocol] = None,
vpn_port: Optional[Integer] = None,
description: Optional[String] = None,
split_tunnel: Optional[Boolean] = None,
dry_run: Optional[Boolean] = None,
client_token: Optional[String] = None,
tag_specifications: Optional[TagSpecificationList] = 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,
endpoint_ip_address_type: Optional[EndpointIpAddressType] = None,
traffic_ip_address_type: Optional[TrafficIpAddressType] = None,
transit_gateway_configuration: Optional[
TransitGatewayConfigurationInputStructure
] = None,
device_posture_options: Optional[DevicePostureOptions] = None,
) -> CreateClientVpnEndpointResult
Creates a Client VPN endpoint. A Client VPN endpoint is the resource you create and configure to enable and manage client VPN sessions. It is the destination endpoint at which all client VPN sessions are terminated.
Parameters:
-
client_cidr_block(Optional[String], default:None) –The IPv4 address range, in CIDR notation, from which to assign client IP addresses. The address range cannot overlap with the local CIDR of the VPC in which the associated subnet is located, or the routes that you add manually. The address range cannot be changed after the Client VPN endpoint has been created. Client CIDR range must have a size of at least /22 and must not be greater than /12.
-
server_certificate_arn(Optional[String], default:None) –The ARN of the server certificate. For more information, see the Certificate Manager User Guide.
-
authentication_options(Optional[ClientVpnAuthenticationRequestList], default:None) –Information about the authentication method to be used to authenticate clients.
-
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[ValueStringList], default:None) –Information about the DNS servers to be used for DNS resolution. A Client VPN endpoint can have up to two DNS servers. If no DNS server is specified, the DNS address configured on the device is used for the DNS server.
-
transport_protocol(Optional[TransportProtocol], default:None) –The transport protocol to be used by the VPN session.
Default value:
udp -
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 split-tunnel is enabled on the Client VPN endpoint.
By default, split-tunnel on a VPN endpoint is disabled.
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. -
client_token(Optional[String], default:None) –Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see Ensuring idempotency.
-
tag_specifications(Optional[TagSpecificationList], default:None) –The tags to apply to the Client VPN endpoint during creation.
-
security_group_ids(Optional[ClientVpnSecurityGroupIdSet], default:None) –The IDs of one or more security groups to apply to the target network. You must also specify the ID of the VPC that contains the security groups.
-
vpc_id(Optional[VpcId], default:None) –The ID of the VPC to associate with the Client VPN endpoint. If no security group IDs are specified in the request, the default security group for the VPC is applied.
-
self_service_portal(Optional[SelfServicePortal], default:None) –Specify whether to enable the self-service portal for the Client VPN endpoint.
Default Value:
enabled -
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. -
endpoint_ip_address_type(Optional[EndpointIpAddressType], default:None) –The IP address type for the Client VPN endpoint. Valid values are
ipv4(default) for IPv4 addressing only,ipv6for IPv6 addressing only, ordual-stackfor both IPv4 and IPv6 addressing. When set todual-stack,clients can connect to the endpoint using either IPv4 or IPv6 addresses.. -
traffic_ip_address_type(Optional[TrafficIpAddressType], default:None) –The IP address type for traffic within the Client VPN tunnel. Valid values are
ipv4(default) for IPv4 traffic only,ipv6for IPv6 addressing only, ordual-stackfor both IPv4 and IPv6 traffic. When set todual-stack, clients can access both IPv4 and IPv6 resources through the VPN . -
transit_gateway_configuration(Optional[TransitGatewayConfigurationInputStructure], default:None) –The Transit Gateway configuration for the Client VPN endpoint. Use this parameter to associate the endpoint with a Transit Gateway instead of a VPC. You cannot specify both
TransitGatewayConfigurationandVpcId/SecurityGroupIds. -
device_posture_options(Optional[DevicePostureOptions], default:None) –The device posture options for the Client VPN endpoint. Use this parameter to specify the device trust providers that the endpoint uses to evaluate the security posture of connecting devices.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_ec2/_services/ec2.py
7526 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539 7540 7541 7542 7543 7544 7545 7546 7547 7548 7549 7550 7551 7552 7553 7554 7555 7556 7557 7558 7559 7560 7561 7562 7563 7564 7565 7566 7567 7568 7569 7570 7571 7572 7573 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602 7603 7604 7605 7606 7607 7608 7609 7610 7611 7612 7613 7614 7615 7616 7617 7618 7619 7620 7621 7622 7623 7624 7625 7626 7627 7628 7629 7630 7631 7632 7633 7634 7635 7636 7637 7638 7639 7640 7641 7642 7643 7644 7645 7646 7647 7648 7649 7650 7651 7652 7653 7654 7655 7656 7657 7658 7659 7660 7661 7662 7663 7664 7665 7666 7667 7668 7669 7670 7671 7672 7673 7674 7675 7676 7677 7678 7679 7680 7681 7682 7683 7684 7685 7686 7687 7688 7689 7690 7691 7692 7693 7694 7695 | |