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
data PathElement Source #
A single element in a path through the JSON representation of a policy.
See: newPathElement
smart constructor.
Instances
newPathElement :: PathElement Source #
Create a value of PathElement
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:value:PathElement'
, pathElement_value
- Refers to the value associated with a given key in a JSON object.
$sel:substring:PathElement'
, pathElement_substring
- Refers to a substring of a literal string in a JSON object.
$sel:key:PathElement'
, pathElement_key
- Refers to a key in a JSON object.
$sel:index:PathElement'
, pathElement_index
- Refers to an index in a JSON array.
pathElement_value :: Lens' PathElement (Maybe Text) Source #
Refers to the value associated with a given key in a JSON object.
pathElement_substring :: Lens' PathElement (Maybe Substring) Source #
Refers to a substring of a literal string in a JSON object.
pathElement_key :: Lens' PathElement (Maybe Text) Source #
Refers to a key in a JSON object.
pathElement_index :: Lens' PathElement (Maybe Int) Source #
Refers to an index in a JSON array.