Fugue.AWS.SNS.Subscription

Table of Contents

Module Members

external

(Function)

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

Returns:

A reference to the specified Subscription.

Type: Subscription

new

(Function)

Subscription Constructor

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

Note: If a user creates an SNS.Subscription and sets its subscriptionAttributes at the same time, whether on run or update, the operation to set attributes will fail. Once the pending subscription is confirmed, Fugue will reissue the operation. See details at https://docs.fugue.co/user-guide-troubleshooting-2.html#sns-pending-subs.

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>

Returns:

A subscription.

Type: Subscription