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.Position

Description

 
Synopsis

Documentation

data Position Source #

A position in a policy.

See: newPosition smart constructor.

Constructors

Position' 

Fields

  • column :: Int

    The column of the position, starting from 0.

  • line :: Int

    The line of the position, starting from 1.

  • offset :: Int

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

Instances

Instances details
Eq Position Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.Types.Position

Read Position Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.Types.Position

Show 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 #

NFData Position Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.Types.Position

Methods

rnf :: Position -> () #

Hashable Position Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.Types.Position

Methods

hashWithSalt :: Int -> Position -> Int #

hash :: Position -> Int #

FromJSON Position Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.Types.Position

type Rep Position Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.Types.Position

type Rep Position = D1 ('MetaData "Position" "Amazonka.AccessAnalyzer.Types.Position" "libZSservicesZSamazonka-accessanalyzerZSamazonka-accessanalyzer" 'False) (C1 ('MetaCons "Position'" 'PrefixI 'True) (S1 ('MetaSel ('Just "column") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: (S1 ('MetaSel ('Just "line") '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:column:Position', position_column - The column of the position, starting from 0.

$sel:line:Position', position_line - The line of the position, starting from 1.

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

position_column :: Lens' Position Int Source #

The column of the position, starting from 0.

position_line :: Lens' Position Int Source #

The line of the position, starting from 1.

position_offset :: Lens' Position Int Source #

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