Files
opentf/website/source/docs/providers/aws/d/sns_topic.html.markdown
Clint a3ae38d1bb docs: Update AWS Data Source docs to have HCL formatted examples (#13467)
* docs: update AWS examples. Disntinguish between alb and alb listener datasource

* more hcl highlighting

* more hcl

* fix missing end quote in docs

* docs: finish updates to AWS data source highlights

Also updates layout to distinguish some resources
2017-04-07 10:54:28 -05:00

722 B

layout, page_title, sidebar_current, description
layout page_title sidebar_current description
aws AWS: aws_sns_topic docs-aws-datasource-sns-topic Get information on a Amazon Simple Notification Service (SNS) Topic

aws_sns_topic

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

data "aws_sns_topic" "example" {
  name = "an_example_topic"
}

Argument Reference

  • name - (Required) The friendly name of the topic to match.

Attributes Reference

  • arn - Set to the ARN of the found topic, suitable for referencing in other resources that support SNS topics.