Interface IClientVpnAuthorizationRuleOptions
Options for a ClientVpnAuthorizationRule.
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.AWS.EC2.dll
Syntax (csharp)
public interface IClientVpnAuthorizationRuleOptions
Syntax (vb)
Public Interface IClientVpnAuthorizationRuleOptions
Remarks
ExampleMetadata: fixture=client-vpn infused
Examples
var endpoint = vpc.AddClientVpnEndpoint("Endpoint", new ClientVpnEndpointOptions {
Cidr = "10.100.0.0/16",
ServerCertificateArn = "arn:aws:acm:us-east-1:123456789012:certificate/server-certificate-id",
UserBasedAuthentication = ClientVpnUserBasedAuthentication.Federated(samlProvider),
AuthorizeAllUsersToVpcCidr = false
});
endpoint.AddAuthorizationRule("Rule", new ClientVpnAuthorizationRuleOptions {
Cidr = "10.0.10.0/32",
GroupId = "group-id"
});
Synopsis
Properties
Cidr | The IPv4 address range, in CIDR notation, of the network for which access is being authorized. |
Description | A brief description of the authorization rule. |
GroupId | The ID of the group to grant access to, for example, the Active Directory group or identity provider (IdP) group. |
Properties
Cidr
The IPv4 address range, in CIDR notation, of the network for which access is being authorized.
string Cidr { get; }
Property Value
System.String
Description
A brief description of the authorization rule.
virtual string Description { get; }
Property Value
System.String
Remarks
Default: - no description
GroupId
The ID of the group to grant access to, for example, the Active Directory group or identity provider (IdP) group.
virtual string GroupId { get; }
Property Value
System.String
Remarks
Default: - authorize all groups