github.com/nathanielks/terraform@v0.6.1-0.20170509030759-13e1a62319dc/website/source/docs/providers/aws/r/sns_topic.html.markdown (about)

     1  ---
     2  layout: "aws"
     3  page_title: "AWS: sns_topic"
     4  sidebar_current: "docs-aws-resource-sns-topic"
     5  description: |-
     6    Provides an SNS topic resource.
     7  ---
     8  
     9  # aws\_sns\_topic
    10  
    11  Provides an SNS topic resource
    12  
    13  ## Example Usage
    14  
    15  ```hcl
    16  resource "aws_sns_topic" "user_updates" {
    17    name = "user-updates-topic"
    18  }
    19  ```
    20  
    21  ## Argument Reference
    22  
    23  The following arguments are supported:
    24  
    25  * `name` - (Required) The friendly name for the SNS topic
    26  * `display_name` - (Optional) The display name for the SNS topic
    27  * `policy` - (Optional) The fully-formed AWS policy as JSON
    28  * `delivery_policy` - (Optional) The SNS delivery policy
    29  
    30  ## Attributes Reference
    31  
    32  The following attributes are exported:
    33  
    34  * `id` - The ARN of the SNS topic
    35  * `arn` - The ARN of the SNS topic, as a more obvious property (clone of id)
    36  
    37  ## Import
    38  
    39  SNS Topics can be imported using the `topic arn`, e.g.
    40  
    41  ```
    42  $ terraform import aws_sns_topic.user_updates arn:aws:sns:us-west-2:0123456789012:my-topic
    43  ```