CfnClientVpnEndpointPropsMixin
- class aws_cdk.mixins_preview.aws_ec2.mixins.CfnClientVpnEndpointPropsMixin(props, *, strategy=None)
Bases:
MixinSpecifies 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.
- See:
- CloudformationResource:
AWS::EC2::ClientVpnEndpoint
- Mixin:
true
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview import mixins from aws_cdk.mixins_preview.aws_ec2 import mixins as ec2_mixins cfn_client_vpn_endpoint_props_mixin = ec2_mixins.CfnClientVpnEndpointPropsMixin(ec2_mixins.CfnClientVpnEndpointMixinProps( authentication_options=[ec2_mixins.CfnClientVpnEndpointPropsMixin.ClientAuthenticationRequestProperty( active_directory=ec2_mixins.CfnClientVpnEndpointPropsMixin.DirectoryServiceAuthenticationRequestProperty( directory_id="directoryId" ), federated_authentication=ec2_mixins.CfnClientVpnEndpointPropsMixin.FederatedAuthenticationRequestProperty( saml_provider_arn="samlProviderArn", self_service_saml_provider_arn="selfServiceSamlProviderArn" ), mutual_authentication=ec2_mixins.CfnClientVpnEndpointPropsMixin.CertificateAuthenticationRequestProperty( client_root_certificate_chain_arn="clientRootCertificateChainArn" ), type="type" )], client_cidr_block="clientCidrBlock", client_connect_options=ec2_mixins.CfnClientVpnEndpointPropsMixin.ClientConnectOptionsProperty( enabled=False, lambda_function_arn="lambdaFunctionArn" ), client_login_banner_options=ec2_mixins.CfnClientVpnEndpointPropsMixin.ClientLoginBannerOptionsProperty( banner_text="bannerText", enabled=False ), client_route_enforcement_options=ec2_mixins.CfnClientVpnEndpointPropsMixin.ClientRouteEnforcementOptionsProperty( enforced=False ), connection_log_options=ec2_mixins.CfnClientVpnEndpointPropsMixin.ConnectionLogOptionsProperty( cloudwatch_log_group="cloudwatchLogGroup", cloudwatch_log_stream="cloudwatchLogStream", enabled=False ), description="description", disconnect_on_session_timeout=False, dns_servers=["dnsServers"], security_group_ids=["securityGroupIds"], self_service_portal="selfServicePortal", server_certificate_arn="serverCertificateArn", session_timeout_hours=123, split_tunnel=False, tag_specifications=[ec2_mixins.CfnClientVpnEndpointPropsMixin.TagSpecificationProperty( resource_type="resourceType", tags=[CfnTag( key="key", value="value" )] )], transport_protocol="transportProtocol", vpc_id="vpcId", vpn_port=123 ), strategy=mixins.PropertyMergeStrategy.OVERRIDE )
Create a mixin to apply properties to
AWS::EC2::ClientVpnEndpoint.- Parameters:
props (
Union[CfnClientVpnEndpointMixinProps,Dict[str,Any]]) – L1 properties to apply.strategy (
Optional[PropertyMergeStrategy]) – (experimental) Strategy for merging nested properties. Default: - PropertyMergeStrategy.MERGE
Methods
- apply_to(construct)
Apply the mixin properties to the construct.
- Parameters:
construct (
IConstruct)- Return type:
- supports(construct)
Check if this mixin supports the given construct.
- Parameters:
construct (
IConstruct)- Return type:
bool
Attributes
- CFN_PROPERTY_KEYS = ['authenticationOptions', 'clientCidrBlock', 'clientConnectOptions', 'clientLoginBannerOptions', 'clientRouteEnforcementOptions', 'connectionLogOptions', 'description', 'disconnectOnSessionTimeout', 'dnsServers', 'securityGroupIds', 'selfServicePortal', 'serverCertificateArn', 'sessionTimeoutHours', 'splitTunnel', 'tagSpecifications', 'transportProtocol', 'vpcId', 'vpnPort']
Static Methods
- classmethod is_mixin(x)
(experimental) Checks if
xis a Mixin.- Parameters:
x (
Any) – Any object.- Return type:
bool- Returns:
true if
xis an object created from a class which extendsMixin.- Stability:
experimental
CertificateAuthenticationRequestProperty
- class CfnClientVpnEndpointPropsMixin.CertificateAuthenticationRequestProperty(*, client_root_certificate_chain_arn=None)
Bases:
objectInformation about the client certificate to be used for authentication.
- Parameters:
client_root_certificate_chain_arn (
Optional[str]) – The ARN of the client certificate. The certificate must be signed by a certificate authority (CA) and it must be provisioned in Certificate Manager (ACM).- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_ec2 import mixins as ec2_mixins certificate_authentication_request_property = ec2_mixins.CfnClientVpnEndpointPropsMixin.CertificateAuthenticationRequestProperty( client_root_certificate_chain_arn="clientRootCertificateChainArn" )
Attributes
- client_root_certificate_chain_arn
The ARN of the client certificate.
The certificate must be signed by a certificate authority (CA) and it must be provisioned in Certificate Manager (ACM).
ClientAuthenticationRequestProperty
- class CfnClientVpnEndpointPropsMixin.ClientAuthenticationRequestProperty(*, active_directory=None, federated_authentication=None, mutual_authentication=None, type=None)
Bases:
objectDescribes the authentication method to be used by a Client VPN endpoint.
For more information, see Authentication in the AWS Client VPN Administrator Guide .
- Parameters:
active_directory (
Union[IResolvable,DirectoryServiceAuthenticationRequestProperty,Dict[str,Any],None]) – Information about the Active Directory to be used, if applicable. You must provide this information if Type isdirectory-service-authentication.federated_authentication (
Union[IResolvable,FederatedAuthenticationRequestProperty,Dict[str,Any],None]) – Information about the IAM SAML identity provider, if applicable.mutual_authentication (
Union[IResolvable,CertificateAuthenticationRequestProperty,Dict[str,Any],None]) – Information about the authentication certificates to be used, if applicable. You must provide this information if Type iscertificate-authentication.type (
Optional[str]) – The type of client authentication to be used.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_ec2 import mixins as ec2_mixins client_authentication_request_property = ec2_mixins.CfnClientVpnEndpointPropsMixin.ClientAuthenticationRequestProperty( active_directory=ec2_mixins.CfnClientVpnEndpointPropsMixin.DirectoryServiceAuthenticationRequestProperty( directory_id="directoryId" ), federated_authentication=ec2_mixins.CfnClientVpnEndpointPropsMixin.FederatedAuthenticationRequestProperty( saml_provider_arn="samlProviderArn", self_service_saml_provider_arn="selfServiceSamlProviderArn" ), mutual_authentication=ec2_mixins.CfnClientVpnEndpointPropsMixin.CertificateAuthenticationRequestProperty( client_root_certificate_chain_arn="clientRootCertificateChainArn" ), type="type" )
Attributes
- active_directory
Information about the Active Directory to be used, if applicable.
You must provide this information if Type is
directory-service-authentication.
- federated_authentication
Information about the IAM SAML identity provider, if applicable.
- mutual_authentication
Information about the authentication certificates to be used, if applicable.
You must provide this information if Type is
certificate-authentication.
- type
The type of client authentication to be used.
ClientConnectOptionsProperty
- class CfnClientVpnEndpointPropsMixin.ClientConnectOptionsProperty(*, enabled=None, lambda_function_arn=None)
Bases:
objectIndicates whether client connect options are enabled.
The default is
false(not enabled).- Parameters:
enabled (
Union[bool,IResolvable,None]) – Indicates whether client connect options are enabled. The default isfalse(not enabled).lambda_function_arn (
Optional[str]) – The Amazon Resource Name (ARN) of the AWS Lambda function used for connection authorization.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_ec2 import mixins as ec2_mixins client_connect_options_property = ec2_mixins.CfnClientVpnEndpointPropsMixin.ClientConnectOptionsProperty( enabled=False, lambda_function_arn="lambdaFunctionArn" )
Attributes
- enabled
Indicates whether client connect options are enabled.
The default is
false(not enabled).
- lambda_function_arn
The Amazon Resource Name (ARN) of the AWS Lambda function used for connection authorization.
ClientRouteEnforcementOptionsProperty
- class CfnClientVpnEndpointPropsMixin.ClientRouteEnforcementOptionsProperty(*, enforced=None)
Bases:
objectClient Route Enforcement is a feature of Client VPN that helps enforce administrator defined routes on devices connected through the VPN.
This 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.
- Parameters:
enforced (
Union[bool,IResolvable,None]) – Enable or disable Client Route Enforcement. The state can either betrue(enabled) orfalse(disabled). The default isfalse. Valid values:true | falseDefault value:false- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_ec2 import mixins as ec2_mixins client_route_enforcement_options_property = ec2_mixins.CfnClientVpnEndpointPropsMixin.ClientRouteEnforcementOptionsProperty( enforced=False )
Attributes
- enforced
Enable or disable Client Route Enforcement.
The state can either be
true(enabled) orfalse(disabled). The default isfalse.Valid values:
true | falseDefault value:
false
ConnectionLogOptionsProperty
- class CfnClientVpnEndpointPropsMixin.ConnectionLogOptionsProperty(*, cloudwatch_log_group=None, cloudwatch_log_stream=None, enabled=None)
Bases:
objectDescribes the client connection logging options for the Client VPN endpoint.
- Parameters:
cloudwatch_log_group (
Optional[str]) – The name of the CloudWatch Logs log group. Required if connection logging is enabled.cloudwatch_log_stream (
Optional[str]) – The name of the CloudWatch Logs log stream to which the connection data is published.enabled (
Union[bool,IResolvable,None]) – Indicates whether connection logging is enabled.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_ec2 import mixins as ec2_mixins connection_log_options_property = ec2_mixins.CfnClientVpnEndpointPropsMixin.ConnectionLogOptionsProperty( cloudwatch_log_group="cloudwatchLogGroup", cloudwatch_log_stream="cloudwatchLogStream", enabled=False )
Attributes
- cloudwatch_log_group
The name of the CloudWatch Logs log group.
Required if connection logging is enabled.
- cloudwatch_log_stream
The name of the CloudWatch Logs log stream to which the connection data is published.
- enabled
Indicates whether connection logging is enabled.
DirectoryServiceAuthenticationRequestProperty
- class CfnClientVpnEndpointPropsMixin.DirectoryServiceAuthenticationRequestProperty(*, directory_id=None)
Bases:
objectDescribes the Active Directory to be used for client authentication.
- Parameters:
directory_id (
Optional[str]) – The ID of the Active Directory to be used for authentication.- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_ec2 import mixins as ec2_mixins directory_service_authentication_request_property = ec2_mixins.CfnClientVpnEndpointPropsMixin.DirectoryServiceAuthenticationRequestProperty( directory_id="directoryId" )
Attributes
- directory_id
The ID of the Active Directory to be used for authentication.
FederatedAuthenticationRequestProperty
- class CfnClientVpnEndpointPropsMixin.FederatedAuthenticationRequestProperty(*, saml_provider_arn=None, self_service_saml_provider_arn=None)
Bases:
objectThe IAM SAML identity provider used for federated authentication.
- Parameters:
saml_provider_arn (
Optional[str]) – The Amazon Resource Name (ARN) of the IAM SAML identity provider.self_service_saml_provider_arn (
Optional[str]) – The Amazon Resource Name (ARN) of the IAM SAML identity provider for the self-service portal.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_ec2 import mixins as ec2_mixins federated_authentication_request_property = ec2_mixins.CfnClientVpnEndpointPropsMixin.FederatedAuthenticationRequestProperty( saml_provider_arn="samlProviderArn", self_service_saml_provider_arn="selfServiceSamlProviderArn" )
Attributes
- saml_provider_arn
The Amazon Resource Name (ARN) of the IAM SAML identity provider.
- self_service_saml_provider_arn
The Amazon Resource Name (ARN) of the IAM SAML identity provider for the self-service portal.