libZSservicesZSamazonka-resourcegroupsZSamazonka-resourcegroups
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.ResourceGroups.Types.QueryError

Description

 
Synopsis

Documentation

data QueryError Source #

A two-part error structure that can occur in ListGroupResources or SearchResources operations on CloudFormation stack-based queries. The error occurs if the CloudFormation stack on which the query is based either does not exist, or has a status that renders the stack inactive. A QueryError occurrence does not necessarily mean that AWS Resource Groups could not complete the operation, but the resulting group might have no member resources.

See: newQueryError smart constructor.

Constructors

QueryError' 

Fields

  • errorCode :: Maybe QueryErrorCode

    Possible values are CLOUDFORMATION_STACK_INACTIVE and CLOUDFORMATION_STACK_NOT_EXISTING.

  • message :: Maybe Text

    A message that explains the ErrorCode value. Messages might state that the specified CloudFormation stack does not exist (or no longer exists). For CLOUDFORMATION_STACK_INACTIVE, the message typically states that the CloudFormation stack has a status that is not (or no longer) active, such as CREATE_FAILED.

Instances

Instances details
Eq QueryError Source # 
Instance details

Defined in Amazonka.ResourceGroups.Types.QueryError

Read QueryError Source # 
Instance details

Defined in Amazonka.ResourceGroups.Types.QueryError

Show QueryError Source # 
Instance details

Defined in Amazonka.ResourceGroups.Types.QueryError

Generic QueryError Source # 
Instance details

Defined in Amazonka.ResourceGroups.Types.QueryError

Associated Types

type Rep QueryError :: Type -> Type #

NFData QueryError Source # 
Instance details

Defined in Amazonka.ResourceGroups.Types.QueryError

Methods

rnf :: QueryError -> () #

Hashable QueryError Source # 
Instance details

Defined in Amazonka.ResourceGroups.Types.QueryError

FromJSON QueryError Source # 
Instance details

Defined in Amazonka.ResourceGroups.Types.QueryError

type Rep QueryError Source # 
Instance details

Defined in Amazonka.ResourceGroups.Types.QueryError

type Rep QueryError = D1 ('MetaData "QueryError" "Amazonka.ResourceGroups.Types.QueryError" "libZSservicesZSamazonka-resourcegroupsZSamazonka-resourcegroups" 'False) (C1 ('MetaCons "QueryError'" 'PrefixI 'True) (S1 ('MetaSel ('Just "errorCode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe QueryErrorCode)) :*: S1 ('MetaSel ('Just "message") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))

newQueryError :: QueryError Source #

Create a value of QueryError 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:errorCode:QueryError', queryError_errorCode - Possible values are CLOUDFORMATION_STACK_INACTIVE and CLOUDFORMATION_STACK_NOT_EXISTING.

$sel:message:QueryError', queryError_message - A message that explains the ErrorCode value. Messages might state that the specified CloudFormation stack does not exist (or no longer exists). For CLOUDFORMATION_STACK_INACTIVE, the message typically states that the CloudFormation stack has a status that is not (or no longer) active, such as CREATE_FAILED.

queryError_errorCode :: Lens' QueryError (Maybe QueryErrorCode) Source #

Possible values are CLOUDFORMATION_STACK_INACTIVE and CLOUDFORMATION_STACK_NOT_EXISTING.

queryError_message :: Lens' QueryError (Maybe Text) Source #

A message that explains the ErrorCode value. Messages might state that the specified CloudFormation stack does not exist (or no longer exists). For CLOUDFORMATION_STACK_INACTIVE, the message typically states that the CloudFormation stack has a status that is not (or no longer) active, such as CREATE_FAILED.