Table of Contents

Module Members



Create a reference to an externally managed Subscription.

Example usage:

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

Type Signature

 fun (String) -> Subscription
Argument: arn

The ARN of an existing subscription.

Type: String


A reference to the specified Subscription.

Type: Subscription



Subscription Constructor

Call this constructor to create a new Fugue.AWS.SNS.Subscription value.

Example Usage:

subscription: SNS.Subscription.new {
  endpoint: SNS.Sqs(sqs-queue),
  topic: SNS.Topic(sns-topic)

Type Signature

 fun { endpoint: EndpointType,
       topic: Topic,
       subscriptionAttributes: Optional<List<SubscriptionAttributesType>>,
       resourceId: Optional<String> } -> Subscription
Argument: endpoint

The endpoint to subscribe to the topic

Type: EndpointType

Argument: topic

The topic to which to subscribe

Type: Topic

Argument: subscriptionAttributes

An optional list of subscription attributes to set. Mutable.

Type: Optional<List<SubscriptionAttributesType>>

Argument: resourceId

Resource ID of the resource to import with Fugue Import. This field is only honored on fugue run. The resource ID is the ARN. Mutable. Example: arn:aws:sns:us-east-1:123456789012:topic:3d0e1692-25b8-4949-9767-abfba2099d7f

Type: Optional<String>


A subscription.

Type: Subscription