@aws-cdk/aws-ec2
Version:
The CDK Construct Library for AWS::EC2
49 lines (48 loc) • 1.52 kB
TypeScript
import { Resource } from '@aws-cdk/core';
import { Construct } from 'constructs';
import { IClientVpnEndpoint } from './client-vpn-endpoint-types';
/**
* Options for a ClientVpnAuthorizationRule
*/
export interface ClientVpnAuthorizationRuleOptions {
/**
* The IPv4 address range, in CIDR notation, of the network for which access
* is being authorized.
*/
readonly cidr: string;
/**
* The ID of the group to grant access to, for example, the Active Directory
* group or identity provider (IdP) group.
*
* @default - authorize all groups
*/
readonly groupId?: string;
/**
* A brief description of the authorization rule.
*
* @default - no description
*/
readonly description?: string;
}
/**
* Properties for a ClientVpnAuthorizationRule
*/
export interface ClientVpnAuthorizationRuleProps extends ClientVpnAuthorizationRuleOptions {
/**
* The client VPN endpoint to which to add the rule.
* @default clientVpnEndpoint is required
*/
readonly clientVpnEndpoint?: IClientVpnEndpoint;
/**
* The client VPN endpoint to which to add the rule.
* @deprecated Use `clientVpnEndpoint` instead
* @default clientVpnEndpoint is required
*/
readonly clientVpnEndoint?: IClientVpnEndpoint;
}
/**
* A client VPN authorization rule
*/
export declare class ClientVpnAuthorizationRule extends Resource {
constructor(scope: Construct, id: string, props: ClientVpnAuthorizationRuleProps);
}