Skip to content

Commit

Permalink
add attibute
Browse files Browse the repository at this point in the history
  • Loading branch information
msambol committed Mar 19, 2024
1 parent 1730cd4 commit 0f3a23d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/aws-cdk-lib/aws-sns/lib/topic-base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,14 @@ export interface ITopic extends IResource, notifications.INotificationRuleTarget
*/
readonly fifo: boolean;

/**
* Corresponds to the hashing algorithm used while creating the signature of the notifications,
* subscription confirmations, or unsubscribe confirmation messages sent by Amazon SNS.
*
* @attribute
*/
readonly signatureVersion?: string;

/**
* Subscribe some endpoint to this topic
*/
Expand Down Expand Up @@ -71,6 +79,8 @@ export abstract class TopicBase extends Resource implements ITopic {

public abstract readonly contentBasedDeduplication: boolean;

public abstract readonly signatureVersion?: string;

/**
* Controls automatic creation of policy objects.
*
Expand Down
1 change: 1 addition & 0 deletions packages/aws-cdk-lib/aws-sns/lib/topic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ export class Topic extends TopicBase {
public readonly topicName = Stack.of(scope).splitArn(topicArn, ArnFormat.NO_RESOURCE_NAME).resource;
public readonly fifo = this.topicName.endsWith('.fifo');
public readonly contentBasedDeduplication = false;
public readonly signatureVersion = '1';
protected autoCreatePolicy: boolean = false;
}

Expand Down

0 comments on commit 0f3a23d

Please sign in to comment.