Skip to content

sns: configure the display name for an SNS topic #1

Description

@badmintoncryer

Describe the feature

A feature to configure the display name used as the sender in messages sent from the topic.

トピックから送られるメッセージの送信者として用いられるdisplay nameを設定する機能。

Use Case

I want to specify displayName for the SNS topic.
Cloudformation can configure displayName, but sns.Topic L2 construct cannot do that.

SNSトピックに対してdisplayNameを設定したいです。
CloudformationではdisplayName引数から設定することができますが、現状CDKのsns.Topic L2コンストラクトからは設定することができません。

Proposed Solution

Add displayName to TopicProps and pass it to CfnTopic constructor as the displayName prop.

displayName引数をTopicPropsに追加し、それをCfnTopicコンストラクタのdisplayName引数に渡します。

export interface TopicProps {
  ...,
  readonly displayName?: string // add
}

new CfnTopic(this, 'Resource', {
  ...,
  displayName: props.displayName, // add
})

Other Information

No response

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

CDK version used

2.144.0

Environment details (OS name and version, etc.)

irrelevant

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions