UNPKG

@collaborne/custom-cloudformation-resources

Version:
28 lines (27 loc) 1.26 kB
import { CognitoIdentityServiceProvider } from 'aws-sdk'; import { SchemaType } from '@collaborne/json-schema-to-type'; import { CustomResource, Response } from '../custom-resource'; import { Logger } from '../logger'; declare const SCHEMA: { type: "object"; properties: { UserPoolDomain: { type: "string"; }; UserPoolId: { type: "string"; comment: string; }; }; required: string[]; }; declare type ResourceAttributes = Pick<CognitoIdentityServiceProvider.DomainDescriptionType, 'CloudFrontDistribution'>; export declare class UserPoolDomainAttributes extends CustomResource<ResourceAttributes, typeof SCHEMA> { private cognitoIdp; constructor(logicalResourceId: string, logger: Logger); createResource(physicalResourceId: string, { UserPoolDomain: userPoolDomain }: SchemaType<typeof SCHEMA>): Promise<Response<ResourceAttributes>>; deleteResource(physicalResourceId: string): Promise<Response<ResourceAttributes>>; updateResource(physicalResourceId: string, { UserPoolDomain: userPoolDomain }: SchemaType<typeof SCHEMA>): Promise<Response<ResourceAttributes>>; protected getAttributes(userPoolDomain: string): Promise<ResourceAttributes>; } export {};