@cdkx/web-application
Version:
Static web application hosting related constructs
35 lines (34 loc) • 1.32 kB
TypeScript
/// <amd-module name="@cdkx/web-application/constructs/web-application.construct" />
import { StringParameter } from '@aws-cdk/aws-ssm';
import { Construct, RemovalPolicy } from '@aws-cdk/core';
import { IHostedZone } from '@aws-cdk/aws-route53';
import { PriceClass } from '@aws-cdk/aws-cloudfront';
import { ICertificate } from '@aws-cdk/aws-certificatemanager';
import { DOMAIN_NAME_REGISTRAR } from '../constants';
import { User } from '@aws-cdk/aws-iam';
export interface IRequestCertificateProps {
domainName: string;
}
export interface IWebApplicationProps {
aliases: string[];
certificate: ICertificate | IRequestCertificateProps;
hostedZone?: IHostedZone;
domainNameRegistrar?: DOMAIN_NAME_REGISTRAR;
defaultRootObject?: string;
errorRootObject?: string;
cloudfrontPriceClass?: PriceClass;
dynamicParameter?: {
applicationUser: User;
parameterName?: string;
initialValue: string;
allowedPattern?: string;
};
/**
* @default orphaned - resources will be orphaned, choose destroy to auto remove on destroy
*/
removalPolicy?: RemovalPolicy;
}
export declare class WebApplication extends Construct {
configParameter: StringParameter | undefined;
constructor(scope: Construct, id: string, props: IWebApplicationProps);
}