amazonka-accessanalyzer-2.0: Amazon Access Analyzer 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.AccessAnalyzer.Types.Position

Description

 
Synopsis

Documentation

data Position Source #

A position in a policy.

See: newPosition smart constructor.

Constructors

Position' 

Fields

  • line :: Int

    The line of the position, starting from 1.

  • column :: Int

    The column of the position, starting from 0.

  • offset :: Int

    The offset within the policy that corresponds to the position, starting from 0.

Instances

Instances details
FromJSON Position Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.Types.Position

Generic Position Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.Types.Position

Associated Types

type Rep Position :: Type -> Type #

Methods

from :: Position -> Rep Position x #

to :: Rep Position x -> Position #

Read Position Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.Types.Position

Show Position Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.Types.Position

NFData Position Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.Types.Position

Methods

rnf :: Position -> () #

Eq Position Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.Types.Position

Hashable Position Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.Types.Position

Methods

hashWithSalt :: Int -> Position -> Int #

hash :: Position -> Int #

type Rep Position Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.Types.Position

type Rep Position = D1 ('MetaData "Position" "Amazonka.AccessAnalyzer.Types.Position" "amazonka-accessanalyzer-2.0-A0JZirwj4a95MolJaaBere" 'False) (C1 ('MetaCons "Position'" 'PrefixI 'True) (S1 ('MetaSel ('Just "line") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: (S1 ('MetaSel ('Just "column") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "offset") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newPosition Source #

Create a value of Position 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:line:Position', position_line - The line of the position, starting from 1.

$sel:column:Position', position_column - The column of the position, starting from 0.

$sel:offset:Position', position_offset - The offset within the policy that corresponds to the position, starting from 0.

position_line :: Lens' Position Int Source #

The line of the position, starting from 1.

position_column :: Lens' Position Int Source #

The column of the position, starting from 0.

position_offset :: Lens' Position Int Source #

The offset within the policy that corresponds to the position, starting from 0.