libZSservicesZSamazonka-iamZSamazonka-iam
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.IAM.Types.Position

Description

 
Synopsis

Documentation

data Position Source #

Contains the row and column of a location of a Statement element in a policy document.

This data type is used as a member of the Statement type.

See: newPosition smart constructor.

Constructors

Position' 

Fields

  • line :: Maybe Int

    The line containing the specified position in the document.

  • column :: Maybe Int

    The column in the line containing the specified position in the document.

Instances

Instances details
Eq Position Source # 
Instance details

Defined in Amazonka.IAM.Types.Position

Read Position Source # 
Instance details

Defined in Amazonka.IAM.Types.Position

Show Position Source # 
Instance details

Defined in Amazonka.IAM.Types.Position

Generic Position Source # 
Instance details

Defined in Amazonka.IAM.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.IAM.Types.Position

Methods

rnf :: Position -> () #

Hashable Position Source # 
Instance details

Defined in Amazonka.IAM.Types.Position

Methods

hashWithSalt :: Int -> Position -> Int #

hash :: Position -> Int #

FromXML Position Source # 
Instance details

Defined in Amazonka.IAM.Types.Position

type Rep Position Source # 
Instance details

Defined in Amazonka.IAM.Types.Position

type Rep Position = D1 ('MetaData "Position" "Amazonka.IAM.Types.Position" "libZSservicesZSamazonka-iamZSamazonka-iam" 'False) (C1 ('MetaCons "Position'" 'PrefixI 'True) (S1 ('MetaSel ('Just "line") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "column") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int))))

newPosition :: Position 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 containing the specified position in the document.

$sel:column:Position', position_column - The column in the line containing the specified position in the document.

position_line :: Lens' Position (Maybe Int) Source #

The line containing the specified position in the document.

position_column :: Lens' Position (Maybe Int) Source #

The column in the line containing the specified position in the document.