Data Source: awsSnsTopic
Use this data source to get the ARN of a topic in AWS Simple Notification Service (SNS). By using this data source, you can reference SNS topics without having to hard code the ARNs as input.
Example Usage
/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as aws from "./.gen/providers/aws";
new aws.dataAwsSnsTopic.DataAwsSnsTopic(this, "example", {
name: "an_example_topic",
});
Argument Reference
name
- (Required) Friendly name of the topic to match.
Attributes Reference
In addition to all arguments above, the following attributes are exported:
arn
- ARN of the found topic, suitable for referencing in other resources that support SNS topics.id
- ARN of the found topic, suitable for referencing in other resources that support SNS topics.