CommercetoolsSubscription
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) }).
import { CommercetoolsSubscription } from '@larsfronius/commercetools-cdk-constructs'
new CommercetoolsSubscription ( scope : Construct , id : string , props : ICommercetoolsSubscriptionProps )
public readonly id : Reference ;
public readonly version: Reference ;
eventBridgeSourceOptional
public readonly eventBridgeSource: Reference ;
import { EventBridgeDestination } from '@larsfronius/commercetools-cdk-constructs'
const eventBridgeDestination : EventBridgeDestination = { ... }
Name
Type
Description
accountId*
string
No description.
region*
string
No description.
type*
string
No description.
public readonly accountId: string ;
public readonly region: string ;
public readonly type : string ;
import { SnsDestination } from '@larsfronius/commercetools-cdk-constructs'
const snsDestination : SnsDestination = { ... }
public readonly accessKey: string ;
public readonly accessSecret: string ;
public readonly topicArn: string ;
public readonly type : string ;
import { SqsDestination } from '@larsfronius/commercetools-cdk-constructs'
const sqsDestination : SqsDestination = { ... }
public readonly accessKey: string ;
public readonly accessSecret: string ;
public readonly queueUrl: string ;
public readonly region: string ;
public readonly type : string ;
EventbridgeSubscriptionTarget
import { EventbridgeSubscriptionTarget } from '@larsfronius/commercetools-cdk-constructs'
new EventbridgeSubscriptionTarget ( eventbus ?: IEventBus )
public getDestination ( scope : Construct )
public postSubscription ( subscription : CommercetoolsSubscription )
public readonly eventBus: IEventBus ;
import { SnsSubscriptionTarget } from '@larsfronius/commercetools-cdk-constructs'
new SnsSubscriptionTarget ( topic ?: ITopic )
public getDestination ( scope : Construct )
public readonly snsTopic: ITopic ;
import { SQSSubscriptionTarget } from '@larsfronius/commercetools-cdk-constructs'
new SQSSubscriptionTarget ( queue ?: IQueue )
public getDestination ( scope : Construct )
public readonly queue : IQueue ;
ICommercetoolsChangeSubscription
public readonly resourceTypeId: string ;
ICommercetoolsMessageSubscription
public readonly resourceTypeId: string ;
public readonly types : string [ ] ;
ICommercetoolsSubscriptionProps
public readonly changes: ICommercetoolsChangeSubscription [ ] ;
public readonly messages: ICommercetoolsMessageSubscription [ ] ;
public readonly projectKey: string ;
public readonly secret: ISecret ;
public readonly target : ICommercetoolsSubscriptionTarget ;
target is one of EventbridgeSubscriptionTarget, SQSSubscriptionTarget or SnsSubscriptionTarget.
public readonly baseUri: string ;
baseUri is the base URI of your commercetools instance.
Defaults to 'https://api.europe-west1.gcp.commercetools.com '
public readonly oAuthUri: string ;
oAuthUri is the oauth URI of your commercetools instance.
Defaults to 'https://auth.europe-west1.gcp.commercetools.com '
ICommercetoolsSubscriptionTarget
public getDestination ( scope : Construct )
public postSubscription ( subscription : CommercetoolsSubscription )