AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

QueryError

import "github.com/aws/aws-sdk-go/service/resourcegroups"

type QueryError struct { ErrorCode *string `type:"string" enum:"QueryErrorCode"` Message *string `type:"string"` }

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.

ErrorCode

Type: *string

Possible values are CLOUDFORMATION_STACK_INACTIVE and CLOUDFORMATION_STACK_NOT_EXISTING.

Message

Type: *string

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.

Method

GoString

func (s QueryError) GoString() string

GoString returns the string representation

SetErrorCode

func (s *QueryError) SetErrorCode(v string) *QueryError

SetErrorCode sets the ErrorCode field's value.

SetMessage

func (s *QueryError) SetMessage(v string) *QueryError

SetMessage sets the Message field's value.

String

func (s QueryError) String() string

String returns the string representation

On this page: