Skip to content

Latest commit

 

History

History
651 lines (360 loc) · 10.5 KB

File metadata and controls

651 lines (360 loc) · 10.5 KB

README

@cloudcomponents/cdk-stripe-webhook

@cloudcomponents/cdk-stripe-webhook

Table of contents

Classes

Interfaces

Stripe Event Bus Producer

@cloudcomponents/cdk-stripe-webhook / StripeEventBusProducer

Class: StripeEventBusProducer

Hierarchy

  • Construct

    StripeEventBusProducer

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new StripeEventBusProducer(scope, id, props)

Parameters

Name Type
scope Construct
id string
props StripeEventBusProducerProps

Overrides

Construct.constructor

Properties

node

Readonly node: ConstructNode

The construct tree node associated with this construct.

stability stable

Inherited from

Construct.node


url

Readonly url: string

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

Stripe Webhook

@cloudcomponents/cdk-stripe-webhook / StripeWebhook

Class: StripeWebhook

Hierarchy

  • Construct

    StripeWebhook

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new StripeWebhook(scope, id, props)

Parameters

Name Type
scope Construct
id string
props StripeWebhookProps

Overrides

Construct.constructor

Properties

id

Readonly id: string


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

Stripe Event Bus Producer Props

@cloudcomponents/cdk-stripe-webhook / StripeEventBusProducerProps

Interface: StripeEventBusProducerProps

Table of contents

Properties

Properties

endpointSecret

Readonly endpointSecret: SecretKey


eventBus

Optional Readonly eventBus: IEventBus


secretKey

Readonly secretKey: SecretKey


source

Optional Readonly source: string


throttlingBurstLimit

Optional Readonly throttlingBurstLimit: number


throttlingRateLimit

Optional Readonly throttlingRateLimit: number

Stripe Webhook Props

@cloudcomponents/cdk-stripe-webhook / StripeWebhookProps

Interface: StripeWebhookProps

Table of contents

Properties

Properties

description

Optional Readonly description: string


endpointSecretStore

Optional Readonly endpointSecretStore: SecretKeyStore


events

Readonly events: string[]


logLevel

Optional Readonly logLevel: "debug" | "info" | "warning" | "error"


secretKey

Readonly secretKey: string | SecretKey


url

Readonly url: string