| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.GameLift.Types.AttributeValue
Description
Synopsis
- data AttributeValue = AttributeValue' {}
- newAttributeValue :: AttributeValue
- attributeValue_n :: Lens' AttributeValue (Maybe Double)
- attributeValue_s :: Lens' AttributeValue (Maybe Text)
- attributeValue_sdm :: Lens' AttributeValue (Maybe (HashMap Text Double))
- attributeValue_sl :: Lens' AttributeValue (Maybe [Text])
Documentation
data AttributeValue Source #
Values for use in player attribute key-value pairs. This object lets you
specify an attribute value using any of the valid data types: string,
number, string array, or data map. Each AttributeValue object can use
only one of the available properties.
See: newAttributeValue smart constructor.
Constructors
| AttributeValue' | |
Fields
| |
Instances
newAttributeValue :: AttributeValue Source #
Create a value of AttributeValue 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:n:AttributeValue', attributeValue_n - For number values, expressed as double.
$sel:s:AttributeValue', attributeValue_s - For single string values. Maximum string length is 100 characters.
$sel:sdm:AttributeValue', attributeValue_sdm - For a map of up to 10 data type:value pairs. Maximum length for each
string value is 100 characters.
$sel:sl:AttributeValue', attributeValue_sl - For a list of up to 100 strings. Maximum length for each string is 100
characters. Duplicate values are not recognized; all occurrences of the
repeated value after the first of a repeated value are ignored.
attributeValue_n :: Lens' AttributeValue (Maybe Double) Source #
For number values, expressed as double.
attributeValue_s :: Lens' AttributeValue (Maybe Text) Source #
For single string values. Maximum string length is 100 characters.
attributeValue_sdm :: Lens' AttributeValue (Maybe (HashMap Text Double)) Source #
For a map of up to 10 data type:value pairs. Maximum length for each string value is 100 characters.
attributeValue_sl :: Lens' AttributeValue (Maybe [Text]) Source #
For a list of up to 100 strings. Maximum length for each string is 100 characters. Duplicate values are not recognized; all occurrences of the repeated value after the first of a repeated value are ignored.