Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Synopsis
Documentation
Describes an action to publish to an Amazon SNS topic.
See: newSnsAction
smart constructor.
SnsAction' | |
|
Instances
Eq SnsAction Source # | |
Read SnsAction Source # | |
Show SnsAction Source # | |
Generic SnsAction Source # | |
NFData SnsAction Source # | |
Defined in Amazonka.IoT.Types.SnsAction | |
Hashable SnsAction Source # | |
Defined in Amazonka.IoT.Types.SnsAction | |
ToJSON SnsAction Source # | |
Defined in Amazonka.IoT.Types.SnsAction | |
FromJSON SnsAction Source # | |
type Rep SnsAction Source # | |
Defined in Amazonka.IoT.Types.SnsAction type Rep SnsAction = D1 ('MetaData "SnsAction" "Amazonka.IoT.Types.SnsAction" "libZSservicesZSamazonka-iotZSamazonka-iot" 'False) (C1 ('MetaCons "SnsAction'" 'PrefixI 'True) (S1 ('MetaSel ('Just "messageFormat") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe MessageFormat)) :*: (S1 ('MetaSel ('Just "targetArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "roleArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))) |
Create a value of SnsAction
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:messageFormat:SnsAction'
, snsAction_messageFormat
- (Optional) The message format of the message to publish. Accepted values
are "JSON" and "RAW". The default value of the attribute is "RAW".
SNS uses this setting to determine if the payload should be parsed and
relevant platform-specific bits of the payload should be extracted. To
read more about SNS message formats, see
https://docs.aws.amazon.com/sns/latest/dg/json-formats.html refer to
their official documentation.
$sel:targetArn:SnsAction'
, snsAction_targetArn
- The ARN of the SNS topic.
$sel:roleArn:SnsAction'
, snsAction_roleArn
- The ARN of the IAM role that grants access.
snsAction_messageFormat :: Lens' SnsAction (Maybe MessageFormat) Source #
(Optional) The message format of the message to publish. Accepted values are "JSON" and "RAW". The default value of the attribute is "RAW". SNS uses this setting to determine if the payload should be parsed and relevant platform-specific bits of the payload should be extracted. To read more about SNS message formats, see https://docs.aws.amazon.com/sns/latest/dg/json-formats.html refer to their official documentation.