@larsfronius/commercetools-cdk-constructs
TypeScript icon, indicating that this package has built-in type declarations

0.0.9 • Public • Published

Commercetools CDK Constructs

Implemented resource types:

  • Subscriptions

Usage

const eventBus = new EventBus(this, 'EventBus')
new CommercetoolsSubscription(this, 'CTToEventBusSubscription', {
    messages: [{
        resourceTypeId: "product",
        types: [ ]
    }],
    changes: [],
    projectKey: props.ctProjektKey,
    secret: Secret.fromSecretNameV2(this, 'CTSecret', `/ct/${props.envName}/commercetools-subscription-mgmt`),
    target: new EventbridgeSubscriptionTarget(this.eventBus)
})

the secret format the custom resource expects is in the format of

{
  "CT_CLIENT_ID": "foo",
  "CT_CLIENT_SECRET": "bar"
}

Readme

Keywords

Package Sidebar

Install

npm i @larsfronius/commercetools-cdk-constructs

Weekly Downloads

0

Version

0.0.9

License

Apache-2.0

Unpacked Size

2.35 MB

Total Files

16

Last publish

Collaborators

  • larsfronius