Interface CpRestApiProps

CloudKitect Rest Api Pattern Properties

interface CpRestApiProps {
    CpApiGatewayWafProps?: CcApiGatewayWafProps;
    cpAccessLogsBucket?: CcBucket;
    cpApiGatewayCachePolicy?: CachePolicy;
    cpApiGatewayOriginRequestPolicy?: OriginRequestPolicy;
    cpApiProps?: CcRestApiProps;
    cpCloudFrontSecret?: Secret;
    cpCloudfrontAllowedMethods?: AllowedMethods;
    cpCloudfrontWafProps?: CcCloudfrontWafProps;
    cpDistributionProps?: CcDistributionProps;
    cpDomainName: string;
    cpFallbackOrigin?: IOrigin;
    cpHostedZone?: IHostedZone;
    cpSubDomain?: string;
}

Properties

CpApiGatewayWafProps?: CcApiGatewayWafProps

Api Gateway WAF properties to override defaults

Default

A new WAF is created that checks X-Origin-Verify header
cpAccessLogsBucket?: CcBucket

Access Logs Bucket to override defaults

Default

No access logs are written
cpApiGatewayCachePolicy?: CachePolicy

API Gateway Cache Policy to override defaults

Default

A new cache policy is generated
cpApiGatewayOriginRequestPolicy?: OriginRequestPolicy

API Gateway Origin Request Policy to override defaults

Default

A new request policy is generated
cpApiProps?: CcRestApiProps

Rest API properties to override defaults

cpCloudFrontSecret?: Secret

CLoudFront secret to use with X-Origin-Verify header

Default

Secret is generated and stored in SSM
cpCloudfrontAllowedMethods?: AllowedMethods

CloudFront allowed methods to override defaults

Default

AllowedMethods.ALLOW_ALL
cpCloudfrontWafProps?: CcCloudfrontWafProps

CloudFront WAF properties to override defaults

cpDistributionProps?: CcDistributionProps

CloudFront Distribution properties to override defaults

cpDomainName: string

Domain name, if domain name is not provided then cpZoneName is used as domain name

cpFallbackOrigin?: IOrigin

Specify fallback origin

Default

https://www.domainName/error.html
cpHostedZone?: IHostedZone
cpSubDomain?: string

Sub domain e.g. api.

Default

api

Generated using TypeDoc