amazonka-sns-2.0: Amazon Simple Notification Service SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.SNS.Types.MessageAttributeValue

Description

 
Synopsis

Documentation

data MessageAttributeValue Source #

The user-specified message attribute value. For string data types, the value attribute has the same restrictions on the content as the message body. For more information, see Publish.

Name, type, and value must not be empty or null. In addition, the message body should not be empty or null. All parts of the message attribute, including name, type, and value, are included in the message size restriction, which is currently 256 KB (262,144 bytes). For more information, see Amazon SNS message attributes and Publishing to a mobile phone in the Amazon SNS Developer Guide.

See: newMessageAttributeValue smart constructor.

Constructors

MessageAttributeValue' 

Fields

Instances

Instances details
ToQuery MessageAttributeValue Source # 
Instance details

Defined in Amazonka.SNS.Types.MessageAttributeValue

Generic MessageAttributeValue Source # 
Instance details

Defined in Amazonka.SNS.Types.MessageAttributeValue

Associated Types

type Rep MessageAttributeValue :: Type -> Type #

Read MessageAttributeValue Source # 
Instance details

Defined in Amazonka.SNS.Types.MessageAttributeValue

Show MessageAttributeValue Source # 
Instance details

Defined in Amazonka.SNS.Types.MessageAttributeValue

NFData MessageAttributeValue Source # 
Instance details

Defined in Amazonka.SNS.Types.MessageAttributeValue

Methods

rnf :: MessageAttributeValue -> () #

Eq MessageAttributeValue Source # 
Instance details

Defined in Amazonka.SNS.Types.MessageAttributeValue

Hashable MessageAttributeValue Source # 
Instance details

Defined in Amazonka.SNS.Types.MessageAttributeValue

type Rep MessageAttributeValue Source # 
Instance details

Defined in Amazonka.SNS.Types.MessageAttributeValue

type Rep MessageAttributeValue = D1 ('MetaData "MessageAttributeValue" "Amazonka.SNS.Types.MessageAttributeValue" "amazonka-sns-2.0-4k7AiJI7DyqhOUy5o4qb9" 'False) (C1 ('MetaCons "MessageAttributeValue'" 'PrefixI 'True) (S1 ('MetaSel ('Just "binaryValue") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Base64)) :*: (S1 ('MetaSel ('Just "stringValue") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "dataType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newMessageAttributeValue Source #

Create a value of MessageAttributeValue 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:binaryValue:MessageAttributeValue', messageAttributeValue_binaryValue - Binary type attributes can store any binary data, for example, compressed data, encrypted data, or images.-- -- Note: This Lens automatically encodes and decodes Base64 data. -- The underlying isomorphism will encode to Base64 representation during -- serialisation, and decode from Base64 representation during deserialisation. -- This Lens accepts and returns only raw unencoded data.

$sel:stringValue:MessageAttributeValue', messageAttributeValue_stringValue - Strings are Unicode with UTF8 binary encoding. For a list of code values, see ASCII Printable Characters.

$sel:dataType:MessageAttributeValue', messageAttributeValue_dataType - Amazon SNS supports the following logical data types: String, String.Array, Number, and Binary. For more information, see Message Attribute Data Types.

messageAttributeValue_binaryValue :: Lens' MessageAttributeValue (Maybe ByteString) Source #

Binary type attributes can store any binary data, for example, compressed data, encrypted data, or images.-- -- Note: This Lens automatically encodes and decodes Base64 data. -- The underlying isomorphism will encode to Base64 representation during -- serialisation, and decode from Base64 representation during deserialisation. -- This Lens accepts and returns only raw unencoded data.

messageAttributeValue_stringValue :: Lens' MessageAttributeValue (Maybe Text) Source #

Strings are Unicode with UTF8 binary encoding. For a list of code values, see ASCII Printable Characters.

messageAttributeValue_dataType :: Lens' MessageAttributeValue Text Source #

Amazon SNS supports the following logical data types: String, String.Array, Number, and Binary. For more information, see Message Attribute Data Types.