libZSservicesZSamazonka-greengrassZSamazonka-greengrass
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.Greengrass.Types.Subscription

Description

 
Synopsis

Documentation

data Subscription Source #

Information about a subscription.

See: newSubscription smart constructor.

Constructors

Subscription' 

Fields

  • target :: Text

    Where the message is sent to. Can be a thing ARN, a Lambda function ARN, a connector ARN, 'cloud' (which represents the AWS IoT cloud), or 'GGShadowService'.

  • id :: Text

    A descriptive or arbitrary ID for the subscription. This value must be unique within the subscription definition version. Max length is 128 characters with pattern ''[a-zA-Z0-9:_-]+''.

  • subject :: Text

    The MQTT topic used to route the message.

  • source :: Text

    The source of the subscription. Can be a thing ARN, a Lambda function ARN, a connector ARN, 'cloud' (which represents the AWS IoT cloud), or 'GGShadowService'.

Instances

Instances details
Eq Subscription Source # 
Instance details

Defined in Amazonka.Greengrass.Types.Subscription

Read Subscription Source # 
Instance details

Defined in Amazonka.Greengrass.Types.Subscription

Show Subscription Source # 
Instance details

Defined in Amazonka.Greengrass.Types.Subscription

Generic Subscription Source # 
Instance details

Defined in Amazonka.Greengrass.Types.Subscription

Associated Types

type Rep Subscription :: Type -> Type #

NFData Subscription Source # 
Instance details

Defined in Amazonka.Greengrass.Types.Subscription

Methods

rnf :: Subscription -> () #

Hashable Subscription Source # 
Instance details

Defined in Amazonka.Greengrass.Types.Subscription

ToJSON Subscription Source # 
Instance details

Defined in Amazonka.Greengrass.Types.Subscription

FromJSON Subscription Source # 
Instance details

Defined in Amazonka.Greengrass.Types.Subscription

type Rep Subscription Source # 
Instance details

Defined in Amazonka.Greengrass.Types.Subscription

type Rep Subscription = D1 ('MetaData "Subscription" "Amazonka.Greengrass.Types.Subscription" "libZSservicesZSamazonka-greengrassZSamazonka-greengrass" 'False) (C1 ('MetaCons "Subscription'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "target") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "subject") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "source") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newSubscription Source #

Create a value of Subscription with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:target:Subscription', subscription_target - Where the message is sent to. Can be a thing ARN, a Lambda function ARN, a connector ARN, 'cloud' (which represents the AWS IoT cloud), or 'GGShadowService'.

$sel:id:Subscription', subscription_id - A descriptive or arbitrary ID for the subscription. This value must be unique within the subscription definition version. Max length is 128 characters with pattern ''[a-zA-Z0-9:_-]+''.

$sel:subject:Subscription', subscription_subject - The MQTT topic used to route the message.

$sel:source:Subscription', subscription_source - The source of the subscription. Can be a thing ARN, a Lambda function ARN, a connector ARN, 'cloud' (which represents the AWS IoT cloud), or 'GGShadowService'.

subscription_target :: Lens' Subscription Text Source #

Where the message is sent to. Can be a thing ARN, a Lambda function ARN, a connector ARN, 'cloud' (which represents the AWS IoT cloud), or 'GGShadowService'.

subscription_id :: Lens' Subscription Text Source #

A descriptive or arbitrary ID for the subscription. This value must be unique within the subscription definition version. Max length is 128 characters with pattern ''[a-zA-Z0-9:_-]+''.

subscription_subject :: Lens' Subscription Text Source #

The MQTT topic used to route the message.

subscription_source :: Lens' Subscription Text Source #

The source of the subscription. Can be a thing ARN, a Lambda function ARN, a connector ARN, 'cloud' (which represents the AWS IoT cloud), or 'GGShadowService'.