Fugue.AWS.SNS.Topic

Table of Contents

Module Members

external

(Function)

Create a reference to an externally managed Topic.

Example usage:

topic: SNS.Topic.external("arn:aws:sns:us-east-1:123456789012:example-topic")

Type Signature

 fun (String) -> Topic
Argument: arn

The ARN of an existing topic.

Type: String

Returns:

A reference to the specified Topic.

Type: Topic

new

(Function)

Example Usage:

topic: SNS.Topic.new {
  name: "example-topic",
  region: AWS.Us-east-1,
}

Type Signature

 fun { name: String,
       region: Region,
       policy: Optional<String> } -> Topic
Argument: name

The name to give the topic. Must be between 1 and 256 characters and made up of ASCII letters, numbers, underscores and hyphens.

Type: String

Argument: region

The region to create the topic in.

Type: Region

Argument: policy

The IAM policy to attach to the topic.

Type: Optional<String>

Returns:

A topic.

Type: Topic