Skip to content

Latest commit

 

History

History
1863 lines (1038 loc) · 29.4 KB

File metadata and controls

1863 lines (1038 loc) · 29.4 KB

README

@cloudcomponents/cdk-wordpress

@cloudcomponents/cdk-wordpress

Table of contents

Classes

Interfaces

Application

@cloudcomponents/cdk-wordpress / Application

Class: Application

Hierarchy

  • Construct

    ↳ Application

Table of contents

Constructors

Properties

Methods

Constructors

constructor

• new Application(scope, id, props)

Parameters

Name Type
scope Construct
id string
props ApplicationProps

Overrides

Construct.constructor

Properties

cloudFrontHashHeader

• Private Readonly cloudFrontHashHeader: string


distribution

• Readonly distribution: IDistribution


domainName

• Readonly domainName: string


domainZone

• Readonly domainZone: IHostedZone


listener

• Readonly listener: ApplicationListener


node

• Readonly node: ConstructNode

The construct tree node associated with this construct.

stability stable

Inherited from

Construct.node


removalPolicy

• Private Optional Readonly removalPolicy: RemovalPolicy


service

• Readonly service: FargateService


targetGroup

• Readonly targetGroup: ApplicationTargetGroup

Methods

enableStaticContentOffload

▸ enableStaticContentOffload(domainName, certificate): StaticContentOffload

Parameters

Name Type
domainName string
certificate ICertificate

Returns

StaticContentOffload


onPrepare

▸ Protected onPrepare(): void

Perform final modifications before synthesis.

This method can be implemented by derived constructs in order to perform final changes before synthesis. prepare() will be called after child constructs have been prepared.

This is an advanced framework feature. Only use this if you understand the implications.

stability stable

Returns

void

Inherited from

Construct.onPrepare


onSynthesize

▸ Protected onSynthesize(session): void

Allows this construct to emit artifacts into the cloud assembly during synthesis.

This method is usually implemented by framework-level constructs such as Stack and Asset as they participate in synthesizing the cloud assembly.

stability stable

Parameters

Name Type Description
session ISynthesisSession The synthesis session.

Returns

void

Inherited from

Construct.onSynthesize


onValidate

▸ Protected onValidate(): string[]

Validate the current construct.

This method can be implemented by derived constructs in order to perform validation logic. It is called on all constructs before synthesis.

stability stable

Returns

string[]

An array of validation error messages, or an empty array if the construct is valid.

Inherited from

Construct.onValidate


prepare

▸ Protected prepare(): void

Perform final modifications before synthesis.

This method can be implemented by derived constructs in order to perform final changes before synthesis. prepare() will be called after child constructs have been prepared.

This is an advanced framework feature. Only use this if you understand the implications.

stability stable

Returns

void

Inherited from

Construct.prepare


synthesize

▸ Protected synthesize(session): void

Allows this construct to emit artifacts into the cloud assembly during synthesis.

This method is usually implemented by framework-level constructs such as Stack and Asset as they participate in synthesizing the cloud assembly.

stability stable

Parameters

Name Type Description
session ISynthesisSession The synthesis session.

Returns

void

Inherited from

Construct.synthesize


toString

▸ toString(): string

Returns a string representation of this construct.

stability stable

Returns

string

Inherited from

Construct.toString


validate

▸ Protected validate(): string[]

Validate the current construct.

This method can be implemented by derived constructs in order to perform validation logic. It is called on all constructs before synthesis.

stability stable

Returns

string[]

An array of validation error messages, or an empty array if the construct is valid.

Inherited from

Construct.validate


isConstruct

▸ Static isConstruct(x): x is Construct

Return whether the given object is a Construct.

stability stable

Parameters

Name Type
x any

Returns

x is Construct

Inherited from

Construct.isConstruct

Database

@cloudcomponents/cdk-wordpress / Database

Class: Database

Hierarchy

  • Construct

    ↳ Database

Table of contents

Constructors

Properties

Methods

Constructors

constructor

• new Database(scope, id, props)

Parameters

Name Type
scope Construct
id string
props DatabaseProps

Overrides

Construct.constructor

Properties

environment

• Readonly environment: Record<string, string>


instance

• Private Readonly instance: DatabaseInstance


node

• Readonly node: ConstructNode

The construct tree node associated with this construct.

stability stable

Inherited from

Construct.node


secrets

• Readonly secrets: Record<string, Secret>

Methods

allowDefaultPortFrom

▸ allowDefaultPortFrom(other, description?): void

Parameters

Name Type
other IConnectable
description? string

Returns

void


onPrepare

▸ Protected onPrepare(): void

Perform final modifications before synthesis.

This method can be implemented by derived constructs in order to perform final changes before synthesis. prepare() will be called after child constructs have been prepared.

This is an advanced framework feature. Only use this if you understand the implications.

stability stable

Returns

void

Inherited from

Construct.onPrepare


onSynthesize

▸ Protected onSynthesize(session): void

Allows this construct to emit artifacts into the cloud assembly during synthesis.

This method is usually implemented by framework-level constructs such as Stack and Asset as they participate in synthesizing the cloud assembly.

stability stable

Parameters

Name Type Description
session ISynthesisSession The synthesis session.

Returns

void

Inherited from

Construct.onSynthesize


onValidate

▸ Protected onValidate(): string[]

Validate the current construct.

This method can be implemented by derived constructs in order to perform validation logic. It is called on all constructs before synthesis.

stability stable

Returns

string[]

An array of validation error messages, or an empty array if the construct is valid.

Inherited from

Construct.onValidate


prepare

▸ Protected prepare(): void

Perform final modifications before synthesis.

This method can be implemented by derived constructs in order to perform final changes before synthesis. prepare() will be called after child constructs have been prepared.

This is an advanced framework feature. Only use this if you understand the implications.

stability stable

Returns

void

Inherited from

Construct.prepare


synthesize

▸ Protected synthesize(session): void

Allows this construct to emit artifacts into the cloud assembly during synthesis.

This method is usually implemented by framework-level constructs such as Stack and Asset as they participate in synthesizing the cloud assembly.

stability stable

Parameters

Name Type Description
session ISynthesisSession The synthesis session.

Returns

void

Inherited from

Construct.synthesize


toString

▸ toString(): string

Returns a string representation of this construct.

stability stable

Returns

string

Inherited from

Construct.toString


validate

▸ Protected validate(): string[]

Validate the current construct.

This method can be implemented by derived constructs in order to perform validation logic. It is called on all constructs before synthesis.

stability stable

Returns

string[]

An array of validation error messages, or an empty array if the construct is valid.

Inherited from

Construct.validate


isConstruct

▸ Static isConstruct(x): x is Construct

Return whether the given object is a Construct.

stability stable

Parameters

Name Type
x any

Returns

x is Construct

Inherited from

Construct.isConstruct

Dns

@cloudcomponents/cdk-wordpress / Dns

Class: Dns

Hierarchy

  • Construct

    ↳ Dns

Table of contents

Constructors

Properties

Methods

Constructors

constructor

• new Dns(scope, id, props)

Parameters

Name Type
scope Construct
id string
props DnsProps

Overrides

Construct.constructor

Properties

node

• Readonly node: ConstructNode

The construct tree node associated with this construct.

stability stable

Inherited from

Construct.node

Methods

onPrepare

▸ Protected onPrepare(): void

Perform final modifications before synthesis.

This method can be implemented by derived constructs in order to perform final changes before synthesis. prepare() will be called after child constructs have been prepared.

This is an advanced framework feature. Only use this if you understand the implications.

stability stable

Returns

void

Inherited from

Construct.onPrepare


onSynthesize

▸ Protected onSynthesize(session): void

Allows this construct to emit artifacts into the cloud assembly during synthesis.

This method is usually implemented by framework-level constructs such as Stack and Asset as they participate in synthesizing the cloud assembly.

stability stable

Parameters

Name Type Description
session ISynthesisSession The synthesis session.

Returns

void

Inherited from

Construct.onSynthesize


onValidate

▸ Protected onValidate(): string[]

Validate the current construct.

This method can be implemented by derived constructs in order to perform validation logic. It is called on all constructs before synthesis.

stability stable

Returns

string[]

An array of validation error messages, or an empty array if the construct is valid.

Inherited from

Construct.onValidate


prepare

▸ Protected prepare(): void

Perform final modifications before synthesis.

This method can be implemented by derived constructs in order to perform final changes before synthesis. prepare() will be called after child constructs have been prepared.

This is an advanced framework feature. Only use this if you understand the implications.

stability stable

Returns

void

Inherited from

Construct.prepare


synthesize

▸ Protected synthesize(session): void

Allows this construct to emit artifacts into the cloud assembly during synthesis.

This method is usually implemented by framework-level constructs such as Stack and Asset as they participate in synthesizing the cloud assembly.

stability stable

Parameters

Name Type Description
session ISynthesisSession The synthesis session.

Returns

void

Inherited from

Construct.synthesize


toString

▸ toString(): string

Returns a string representation of this construct.

stability stable

Returns

string

Inherited from

Construct.toString


validate

▸ Protected validate(): string[]

Validate the current construct.

This method can be implemented by derived constructs in order to perform validation logic. It is called on all constructs before synthesis.

stability stable

Returns

string[]

An array of validation error messages, or an empty array if the construct is valid.

Inherited from

Construct.validate


isConstruct

▸ Static isConstruct(x): x is Construct

Return whether the given object is a Construct.

stability stable

Parameters

Name Type
x any

Returns

x is Construct

Inherited from

Construct.isConstruct

Efs Volume

@cloudcomponents/cdk-wordpress / EfsVolume

Class: EfsVolume

Hierarchy

  • Construct

    ↳ EfsVolume

Table of contents

Constructors

Properties

Methods

Constructors

constructor

• new EfsVolume(scope, id, props)

Parameters

Name Type
scope Construct
id string
props EfsVolumeProps

Overrides

Construct.constructor

Properties

efsVolumeConfiguration

• Readonly efsVolumeConfiguration: EfsVolumeConfiguration


fileSystem

• Private Readonly fileSystem: FileSystem


name

• Readonly name: string


node

• Readonly node: ConstructNode

The construct tree node associated with this construct.

stability stable

Inherited from

Construct.node

Methods

allowDefaultPortFrom

▸ allowDefaultPortFrom(other, description?): void

Parameters

Name Type
other IConnectable
description? string

Returns

void


onPrepare

▸ Protected onPrepare(): void

Perform final modifications before synthesis.

This method can be implemented by derived constructs in order to perform final changes before synthesis. prepare() will be called after child constructs have been prepared.

This is an advanced framework feature. Only use this if you understand the implications.

stability stable

Returns

void

Inherited from

Construct.onPrepare


onSynthesize

▸ Protected onSynthesize(session): void

Allows this construct to emit artifacts into the cloud assembly during synthesis.

This method is usually implemented by framework-level constructs such as Stack and Asset as they participate in synthesizing the cloud assembly.

stability stable

Parameters

Name Type Description
session ISynthesisSession The synthesis session.

Returns

void

Inherited from

Construct.onSynthesize


onValidate

▸ Protected onValidate(): string[]

Validate the current construct.

This method can be implemented by derived constructs in order to perform validation logic. It is called on all constructs before synthesis.

stability stable

Returns

string[]

An array of validation error messages, or an empty array if the construct is valid.

Inherited from

Construct.onValidate


prepare

▸ Protected prepare(): void

Perform final modifications before synthesis.

This method can be implemented by derived constructs in order to perform final changes before synthesis. prepare() will be called after child constructs have been prepared.

This is an advanced framework feature. Only use this if you understand the implications.

stability stable

Returns

void

Inherited from

Construct.prepare


synthesize

▸ Protected synthesize(session): void

Allows this construct to emit artifacts into the cloud assembly during synthesis.

This method is usually implemented by framework-level constructs such as Stack and Asset as they participate in synthesizing the cloud assembly.

stability stable

Parameters

Name Type Description
session ISynthesisSession The synthesis session.

Returns

void

Inherited from

Construct.synthesize


toString

▸ toString(): string

Returns a string representation of this construct.

stability stable

Returns

string

Inherited from

Construct.toString


validate

▸ Protected validate(): string[]

Validate the current construct.

This method can be implemented by derived constructs in order to perform validation logic. It is called on all constructs before synthesis.

stability stable

Returns

string[]

An array of validation error messages, or an empty array if the construct is valid.

Inherited from

Construct.validate


isConstruct

▸ Static isConstruct(x): x is Construct

Return whether the given object is a Construct.

stability stable

Parameters

Name Type
x any

Returns

x is Construct

Inherited from

Construct.isConstruct

Wordpress

@cloudcomponents/cdk-wordpress / Wordpress

Class: Wordpress

Hierarchy

  • Construct

    ↳ Wordpress

Table of contents

Constructors

Properties

Methods

Constructors

constructor

• new Wordpress(scope, id, props)

Parameters

Name Type
scope Construct
id string
props WordpressProps

Overrides

Construct.constructor

Properties

application

• Readonly application: Application


database

• Readonly database: Database


node

• Readonly node: ConstructNode

The construct tree node associated with this construct.

stability stable

Inherited from

Construct.node


staticContentOffload

• Optional Readonly staticContentOffload: StaticContentOffload


volume

• Readonly volume: EfsVolume

Methods

onPrepare

▸ Protected onPrepare(): void

Perform final modifications before synthesis.

This method can be implemented by derived constructs in order to perform final changes before synthesis. prepare() will be called after child constructs have been prepared.

This is an advanced framework feature. Only use this if you understand the implications.

stability stable

Returns

void

Inherited from

Construct.onPrepare


onSynthesize

▸ Protected onSynthesize(session): void

Allows this construct to emit artifacts into the cloud assembly during synthesis.

This method is usually implemented by framework-level constructs such as Stack and Asset as they participate in synthesizing the cloud assembly.

stability stable

Parameters

Name Type Description
session ISynthesisSession The synthesis session.

Returns

void

Inherited from

Construct.onSynthesize


onValidate

▸ Protected onValidate(): string[]

Validate the current construct.

This method can be implemented by derived constructs in order to perform validation logic. It is called on all constructs before synthesis.

stability stable

Returns

string[]

An array of validation error messages, or an empty array if the construct is valid.

Inherited from

Construct.onValidate


prepare

▸ Protected prepare(): void

Perform final modifications before synthesis.

This method can be implemented by derived constructs in order to perform final changes before synthesis. prepare() will be called after child constructs have been prepared.

This is an advanced framework feature. Only use this if you understand the implications.

stability stable

Returns

void

Inherited from

Construct.prepare


synthesize

▸ Protected synthesize(session): void

Allows this construct to emit artifacts into the cloud assembly during synthesis.

This method is usually implemented by framework-level constructs such as Stack and Asset as they participate in synthesizing the cloud assembly.

stability stable

Parameters

Name Type Description
session ISynthesisSession The synthesis session.

Returns

void

Inherited from

Construct.synthesize


toString

▸ toString(): string

Returns a string representation of this construct.

stability stable

Returns

string

Inherited from

Construct.toString


validate

▸ Protected validate(): string[]

Validate the current construct.

This method can be implemented by derived constructs in order to perform validation logic. It is called on all constructs before synthesis.

stability stable

Returns

string[]

An array of validation error messages, or an empty array if the construct is valid.

Inherited from

Construct.validate


isConstruct

▸ Static isConstruct(x): x is Construct

Return whether the given object is a Construct.

stability stable

Parameters

Name Type
x any

Returns

x is Construct

Inherited from

Construct.isConstruct

Application Props

@cloudcomponents/cdk-wordpress / ApplicationProps

Interface: ApplicationProps

Table of contents

Properties

Properties

certificate

• Readonly certificate: ICertificate


cloudFrontHashHeader

• Optional Readonly cloudFrontHashHeader: string


database

• Readonly database: Database


domainName

• Readonly domainName: string


domainZone

• Readonly domainZone: IHostedZone


environment

• Optional Readonly environment: Record<string, string>


image

• Optional Readonly image: ContainerImage


logDriver

• Optional Readonly logDriver: LogDriver


memoryLimitMiB

• Optional Readonly memoryLimitMiB: number


removalPolicy

• Optional Readonly removalPolicy: RemovalPolicy


secrets

• Optional Readonly secrets: Record<string, Secret>


serviceName

• Optional Readonly serviceName: string


volume

• Readonly volume: EfsVolume


vpc

• Readonly vpc: IVpc

Database Props

@cloudcomponents/cdk-wordpress / DatabaseProps

Interface: DatabaseProps

Table of contents

Properties

Properties

allocatedStorage

• Optional Readonly allocatedStorage: number


databaseName

• Optional Readonly databaseName: string


engine

• Optional Readonly engine: IInstanceEngine


instanceType

• Optional Readonly instanceType: InstanceType


removalPolicy

• Optional Readonly removalPolicy: RemovalPolicy


vpc

• Readonly vpc: IVpc

Dns Props

@cloudcomponents/cdk-wordpress / DnsProps

Interface: DnsProps

Table of contents

Properties

Properties

distribution

• Readonly distribution: IDistribution


domainName

• Readonly domainName: string


domainZone

• Readonly domainZone: IHostedZone

Efs Volume Props

@cloudcomponents/cdk-wordpress / EfsVolumeProps

Interface: EfsVolumeProps

Table of contents

Properties

Properties

name

• Optional Readonly name: string


removalPolicy

• Optional Readonly removalPolicy: RemovalPolicy


vpc

• Readonly vpc: IVpc

Static Content Offload

@cloudcomponents/cdk-wordpress / StaticContentOffload

Interface: StaticContentOffload

Table of contents

Properties

Properties

distribution

• Readonly distribution: IDistribution


domainName

• Readonly domainName: string

Wordpress Props

@cloudcomponents/cdk-wordpress / WordpressProps

Interface: WordpressProps

Table of contents

Properties

Properties

backupPlan

• Optional Readonly backupPlan: BackupPlan


cloudFrontHashHeader

• Optional Readonly cloudFrontHashHeader: string


database

• Optional Readonly database: Database


domainName

• Readonly domainName: string


domainZone

• Readonly domainZone: IHostedZone


environment

• Optional Readonly environment: Record<string, string>


image

• Optional Readonly image: ContainerImage


logDriver

• Optional Readonly logDriver: LogDriver


memoryLimitMiB

• Optional Readonly memoryLimitMiB: number


offloadStaticContent

• Optional Readonly offloadStaticContent: boolean


removalPolicy

• Optional Readonly removalPolicy: RemovalPolicy


secrets

• Optional Readonly secrets: Record<string, Secret>


serviceName

• Optional Readonly serviceName: string


subjectAlternativeNames

• Optional Readonly subjectAlternativeNames: string[]


volume

• Optional Readonly volume: EfsVolume


vpc

• Optional Readonly vpc: IVpc