UNPKG

cdk-amazon-chime-resources

Version:

![Experimental](https://img.shields.io/badge/experimental-important.svg?style=for-the-badge)

26 lines (25 loc) 1.1 kB
import { CustomResource, ResourceProps } from 'aws-cdk-lib'; import { IFunction } from 'aws-cdk-lib/aws-lambda'; import { AwsCustomResource } from 'aws-cdk-lib/custom-resources'; import { Construct } from 'constructs'; export interface PSTNResourceProps extends ResourceProps { readonly properties: { [propname: string]: any; }; readonly resourceType: 'PhoneNumber' | 'VoiceConnector' | 'SMA' | 'SMALogging' | 'SMAAlexaSkill' | 'SMARule' | 'PhoneAssociation' | 'VoiceProfileDomain'; readonly uid: string; } export declare class PSTNResources extends Construct { readonly lambda: IFunction; readonly pstnCustomResource: CustomResource; constructor(scope: Construct, id: string, props: PSTNResourceProps); private ensureLambda; } export interface PhoneAssociationProps extends ResourceProps { readonly voiceConnectorId: string; readonly e164PhoneNumber: string; } export declare class PhoneAssociation extends Construct { readonly phoneAssociationResource: AwsCustomResource; constructor(scope: Construct, id: string, props: PhoneAssociationProps); }