amazonka-appsync-2.0: Amazon AppSync 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.AppSync.Types.CodeErrorLocation

Description

 
Synopsis

Documentation

data CodeErrorLocation Source #

Describes the location of the error in a code sample.

See: newCodeErrorLocation smart constructor.

Constructors

CodeErrorLocation' 

Fields

  • column :: Maybe Int

    The column number in the code. Defaults to 0 if unknown.

  • line :: Maybe Int

    The line number in the code. Defaults to 0 if unknown.

  • span :: Maybe Int

    The span/length of the error. Defaults to -1 if unknown.

Instances

Instances details
FromJSON CodeErrorLocation Source # 
Instance details

Defined in Amazonka.AppSync.Types.CodeErrorLocation

Generic CodeErrorLocation Source # 
Instance details

Defined in Amazonka.AppSync.Types.CodeErrorLocation

Associated Types

type Rep CodeErrorLocation :: Type -> Type #

Read CodeErrorLocation Source # 
Instance details

Defined in Amazonka.AppSync.Types.CodeErrorLocation

Show CodeErrorLocation Source # 
Instance details

Defined in Amazonka.AppSync.Types.CodeErrorLocation

NFData CodeErrorLocation Source # 
Instance details

Defined in Amazonka.AppSync.Types.CodeErrorLocation

Methods

rnf :: CodeErrorLocation -> () #

Eq CodeErrorLocation Source # 
Instance details

Defined in Amazonka.AppSync.Types.CodeErrorLocation

Hashable CodeErrorLocation Source # 
Instance details

Defined in Amazonka.AppSync.Types.CodeErrorLocation

type Rep CodeErrorLocation Source # 
Instance details

Defined in Amazonka.AppSync.Types.CodeErrorLocation

type Rep CodeErrorLocation = D1 ('MetaData "CodeErrorLocation" "Amazonka.AppSync.Types.CodeErrorLocation" "amazonka-appsync-2.0-4Pb6UqteLv1I9NIWaj90bg" 'False) (C1 ('MetaCons "CodeErrorLocation'" 'PrefixI 'True) (S1 ('MetaSel ('Just "column") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: (S1 ('MetaSel ('Just "line") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "span") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)))))

newCodeErrorLocation :: CodeErrorLocation Source #

Create a value of CodeErrorLocation 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:CodeErrorLocation', codeErrorLocation_column - The column number in the code. Defaults to 0 if unknown.

$sel:line:CodeErrorLocation', codeErrorLocation_line - The line number in the code. Defaults to 0 if unknown.

$sel:span:CodeErrorLocation', codeErrorLocation_span - The span/length of the error. Defaults to -1 if unknown.

codeErrorLocation_column :: Lens' CodeErrorLocation (Maybe Int) Source #

The column number in the code. Defaults to 0 if unknown.

codeErrorLocation_line :: Lens' CodeErrorLocation (Maybe Int) Source #

The line number in the code. Defaults to 0 if unknown.

codeErrorLocation_span :: Lens' CodeErrorLocation (Maybe Int) Source #

The span/length of the error. Defaults to -1 if unknown.