GradientEdge CDK Utils
    Preparing search index...

    Provides operations on AWS

    • A new instance of this class is injected into CommonConstruct constructor.
    • If a custom construct extends CommonConstruct, an instance is available within the context.
    import { CommonConstruct } from '@gradientedge/cdk-utils'

    class CustomConstruct extends CommonConstruct {
    constructor(parent: Construct, id: string, props: common.CommonStackProps) {
    super(parent, id, props)
    this.props = props
    this.cloudFrontManager.createCloudFrontDistribution(
    'MyDistribution',
    this,
    siteBucket,
    logBucket,
    originAccessIdentity,
    certificate
    )
    }
    }
    Index

    Constructors

    Methods

    • Method to create a CloudFront distribution with HTTP Origin

      Parameters

      • id: string

        scoped id of the resource

      • scope: CommonConstruct

        scope in which this resource is defined

      • props: DistributionProps

        distribution properties

      • origin: HttpOrigin
      • domainNames: string[]
      • OptionallogBucket: IBucket
      • Optionalcertificate: ICertificate
      • OptionaldefaultFunctionAssociations: FunctionAssociation[]
      • OptionalresponseHeadersPolicy: IResponseHeadersPolicyRef

      Returns Distribution

    • Method to create a CloudFront distribution with S3 Origin

      Parameters

      • id: string

        scoped id of the resource

      • scope: CommonConstruct

        scope in which this resource is defined

      • props: DistributionProps

        distribution properties

      • siteBucket: IBucket
      • OptionallogBucket: IBucket
      • Optionaloai: OriginAccessIdentity
      • Optionalcertificate: ICertificate
      • Optionalaliases: string[]
      • OptionaldefaultFunctionAssociations: FunctionAssociation[]

      Returns Distribution

    • Parameters

      • id: string

        scoped id of the resource

      • scope: CommonConstruct

        scope in which this resource is defined

      • props: LambdaEdgeProps

        lambda@edge properties

      • layers: ILayerVersion[]
      • code: AssetCode
      • role: Role
      • Optionalenvironment: any
      • Optionalvpc: IVpc
      • OptionalsecurityGroups: ISecurityGroup[]
      • OptionalaccessPoint: IAccessPoint
      • OptionalmountPath: string

      Returns EdgeFunction