libZSservicesZSamazonka-accessanalyzerZSamazonka-accessanalyzer
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.AccessAnalyzer.Types.PathElement

Description

 
Synopsis

Documentation

data PathElement Source #

A single element in a path through the JSON representation of a policy.

See: newPathElement smart constructor.

Constructors

PathElement' 

Fields

Instances

Instances details
Eq PathElement Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.Types.PathElement

Read PathElement Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.Types.PathElement

Show PathElement Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.Types.PathElement

Generic PathElement Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.Types.PathElement

Associated Types

type Rep PathElement :: Type -> Type #

NFData PathElement Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.Types.PathElement

Methods

rnf :: PathElement -> () #

Hashable PathElement Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.Types.PathElement

FromJSON PathElement Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.Types.PathElement

type Rep PathElement Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.Types.PathElement

type Rep PathElement = D1 ('MetaData "PathElement" "Amazonka.AccessAnalyzer.Types.PathElement" "libZSservicesZSamazonka-accessanalyzerZSamazonka-accessanalyzer" 'False) (C1 ('MetaCons "PathElement'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "value") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "substring") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Substring))) :*: (S1 ('MetaSel ('Just "key") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "index") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)))))

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.