amazonka-ec2-2.0: Amazon Elastic Compute Cloud 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.EC2.Types.ValidationError

Description

 
Synopsis

Documentation

data ValidationError Source #

The error code and error message that is returned for a parameter or parameter combination that is not valid when a new launch template or new version of a launch template is created.

See: newValidationError smart constructor.

Constructors

ValidationError' 

Fields

  • code :: Maybe Text

    The error code that indicates why the parameter or parameter combination is not valid. For more information about error codes, see Error codes.

  • message :: Maybe Text

    The error message that describes why the parameter or parameter combination is not valid. For more information about error messages, see Error codes.

Instances

Instances details
FromXML ValidationError Source # 
Instance details

Defined in Amazonka.EC2.Types.ValidationError

Generic ValidationError Source # 
Instance details

Defined in Amazonka.EC2.Types.ValidationError

Associated Types

type Rep ValidationError :: Type -> Type #

Read ValidationError Source # 
Instance details

Defined in Amazonka.EC2.Types.ValidationError

Show ValidationError Source # 
Instance details

Defined in Amazonka.EC2.Types.ValidationError

NFData ValidationError Source # 
Instance details

Defined in Amazonka.EC2.Types.ValidationError

Methods

rnf :: ValidationError -> () #

Eq ValidationError Source # 
Instance details

Defined in Amazonka.EC2.Types.ValidationError

Hashable ValidationError Source # 
Instance details

Defined in Amazonka.EC2.Types.ValidationError

type Rep ValidationError Source # 
Instance details

Defined in Amazonka.EC2.Types.ValidationError

type Rep ValidationError = D1 ('MetaData "ValidationError" "Amazonka.EC2.Types.ValidationError" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "ValidationError'" 'PrefixI 'True) (S1 ('MetaSel ('Just "code") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "message") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))

newValidationError :: ValidationError Source #

Create a value of ValidationError 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:code:ValidationError', validationError_code - The error code that indicates why the parameter or parameter combination is not valid. For more information about error codes, see Error codes.

$sel:message:ValidationError', validationError_message - The error message that describes why the parameter or parameter combination is not valid. For more information about error messages, see Error codes.

validationError_code :: Lens' ValidationError (Maybe Text) Source #

The error code that indicates why the parameter or parameter combination is not valid. For more information about error codes, see Error codes.

validationError_message :: Lens' ValidationError (Maybe Text) Source #

The error message that describes why the parameter or parameter combination is not valid. For more information about error messages, see Error codes.