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
- data MessageAttributeValue = MessageAttributeValue' {
- binaryValue :: Maybe Base64
- stringValue :: Maybe Text
- dataType :: Text
- newMessageAttributeValue :: Text -> MessageAttributeValue
- messageAttributeValue_binaryValue :: Lens' MessageAttributeValue (Maybe ByteString)
- messageAttributeValue_stringValue :: Lens' MessageAttributeValue (Maybe Text)
- messageAttributeValue_dataType :: Lens' MessageAttributeValue Text
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.
MessageAttributeValue' | |
|
Instances
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.