45 lines
1.4 KiB
TypeScript
45 lines
1.4 KiB
TypeScript
import type { Construct } from 'constructs';
|
|
import type { IClientVpnEndpointRef } from './ec2.generated';
|
|
import { Resource } from '../../core';
|
|
/**
|
|
* 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?: IClientVpnEndpointRef;
|
|
}
|
|
/**
|
|
* A client VPN authorization rule
|
|
*/
|
|
export declare class ClientVpnAuthorizationRule extends Resource {
|
|
/** Uniquely identifies this class. */
|
|
static readonly PROPERTY_INJECTION_ID: string;
|
|
constructor(scope: Construct, id: string, props: ClientVpnAuthorizationRuleProps);
|
|
}
|