Class: AWSCDK::EC2::ClientVpnUserBasedAuthentication
- Inherits:
-
Jsii::Object
- Object
- Jsii::Object
- AWSCDK::EC2::ClientVpnUserBasedAuthentication
- Defined in:
- ec2/client_vpn_user_based_authentication.rb
Overview
User-based authentication for a client VPN endpoint.
Class Method Summary collapse
-
.active_directory(directory_id) ⇒ AWSCDK::EC2::ClientVpnUserBasedAuthentication
Active Directory authentication.
-
.federated(saml_provider, self_service_saml_provider = nil) ⇒ AWSCDK::EC2::ClientVpnUserBasedAuthentication
Federated authentication.
- .jsii_overridable_methods ⇒ Object
Instance Method Summary collapse
-
#initialize ⇒ ClientVpnUserBasedAuthentication
constructor
A new instance of ClientVpnUserBasedAuthentication.
-
#render ⇒ Object
Renders the user based authentication.
Constructor Details
#initialize ⇒ ClientVpnUserBasedAuthentication
Returns a new instance of ClientVpnUserBasedAuthentication.
8 9 10 |
# File 'ec2/client_vpn_user_based_authentication.rb', line 8 def initialize Jsii::Object.instance_method(:initialize).bind(self).call end |
Class Method Details
.active_directory(directory_id) ⇒ AWSCDK::EC2::ClientVpnUserBasedAuthentication
Active Directory authentication.
22 23 24 25 |
# File 'ec2/client_vpn_user_based_authentication.rb', line 22 def self.active_directory(directory_id) Jsii::Type.check_type(directory_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "directoryId") Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_ec2.ClientVpnUserBasedAuthentication", "activeDirectory", [directory_id]) end |
.federated(saml_provider, self_service_saml_provider = nil) ⇒ AWSCDK::EC2::ClientVpnUserBasedAuthentication
Federated authentication.
32 33 34 35 36 |
# File 'ec2/client_vpn_user_based_authentication.rb', line 32 def self.federated(saml_provider, self_service_saml_provider = nil) Jsii::Type.check_type(saml_provider, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5pbnRlcmZhY2VzLmF3c19pYW0uSVNBTUxQcm92aWRlclJlZiJ9")), "samlProvider") Jsii::Type.check_type(self_service_saml_provider, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5pbnRlcmZhY2VzLmF3c19pYW0uSVNBTUxQcm92aWRlclJlZiJ9")), "selfServiceSamlProvider") unless self_service_saml_provider.nil? Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_ec2.ClientVpnUserBasedAuthentication", "federated", [saml_provider, self_service_saml_provider]) end |
.jsii_overridable_methods ⇒ Object
12 13 14 15 16 |
# File 'ec2/client_vpn_user_based_authentication.rb', line 12 def self.jsii_overridable_methods { :render => { kind: :method, name: "render", is_optional: false }, } end |
Instance Method Details
#render ⇒ Object
Renders the user based authentication.
41 42 43 |
# File 'ec2/client_vpn_user_based_authentication.rb', line 41 def render() jsii_call_method("render", []) end |