libZSservicesZSamazonka-stepfunctionsZSamazonka-stepfunctions
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.StepFunctions.SendTaskFailure

Description

Used by activity workers and task states using the callback pattern to report that the task identified by the taskToken failed.

Synopsis

Creating a Request

data SendTaskFailure Source #

See: newSendTaskFailure smart constructor.

Constructors

SendTaskFailure' 

Fields

  • error :: Maybe (Sensitive Text)

    The error code of the failure.

  • cause :: Maybe (Sensitive Text)

    A more detailed explanation of the cause of the failure.

  • taskToken :: Text

    The token that represents this task. Task tokens are generated by Step Functions when tasks are assigned to a worker, or in the context object when a workflow enters a task state. See GetActivityTaskOutput$taskToken.

Instances

Instances details
Eq SendTaskFailure Source # 
Instance details

Defined in Amazonka.StepFunctions.SendTaskFailure

Show SendTaskFailure Source # 
Instance details

Defined in Amazonka.StepFunctions.SendTaskFailure

Generic SendTaskFailure Source # 
Instance details

Defined in Amazonka.StepFunctions.SendTaskFailure

Associated Types

type Rep SendTaskFailure :: Type -> Type #

NFData SendTaskFailure Source # 
Instance details

Defined in Amazonka.StepFunctions.SendTaskFailure

Methods

rnf :: SendTaskFailure -> () #

Hashable SendTaskFailure Source # 
Instance details

Defined in Amazonka.StepFunctions.SendTaskFailure

ToJSON SendTaskFailure Source # 
Instance details

Defined in Amazonka.StepFunctions.SendTaskFailure

AWSRequest SendTaskFailure Source # 
Instance details

Defined in Amazonka.StepFunctions.SendTaskFailure

Associated Types

type AWSResponse SendTaskFailure #

ToHeaders SendTaskFailure Source # 
Instance details

Defined in Amazonka.StepFunctions.SendTaskFailure

ToPath SendTaskFailure Source # 
Instance details

Defined in Amazonka.StepFunctions.SendTaskFailure

ToQuery SendTaskFailure Source # 
Instance details

Defined in Amazonka.StepFunctions.SendTaskFailure

type Rep SendTaskFailure Source # 
Instance details

Defined in Amazonka.StepFunctions.SendTaskFailure

type Rep SendTaskFailure = D1 ('MetaData "SendTaskFailure" "Amazonka.StepFunctions.SendTaskFailure" "libZSservicesZSamazonka-stepfunctionsZSamazonka-stepfunctions" 'False) (C1 ('MetaCons "SendTaskFailure'" 'PrefixI 'True) (S1 ('MetaSel ('Just "error") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (Sensitive Text))) :*: (S1 ('MetaSel ('Just "cause") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (Sensitive Text))) :*: S1 ('MetaSel ('Just "taskToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))
type AWSResponse SendTaskFailure Source # 
Instance details

Defined in Amazonka.StepFunctions.SendTaskFailure

newSendTaskFailure Source #

Create a value of SendTaskFailure 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:error:SendTaskFailure', sendTaskFailure_error - The error code of the failure.

$sel:cause:SendTaskFailure', sendTaskFailure_cause - A more detailed explanation of the cause of the failure.

$sel:taskToken:SendTaskFailure', sendTaskFailure_taskToken - The token that represents this task. Task tokens are generated by Step Functions when tasks are assigned to a worker, or in the context object when a workflow enters a task state. See GetActivityTaskOutput$taskToken.

Request Lenses

sendTaskFailure_error :: Lens' SendTaskFailure (Maybe Text) Source #

The error code of the failure.

sendTaskFailure_cause :: Lens' SendTaskFailure (Maybe Text) Source #

A more detailed explanation of the cause of the failure.

sendTaskFailure_taskToken :: Lens' SendTaskFailure Text Source #

The token that represents this task. Task tokens are generated by Step Functions when tasks are assigned to a worker, or in the context object when a workflow enters a task state. See GetActivityTaskOutput$taskToken.

Destructuring the Response

data SendTaskFailureResponse Source #

See: newSendTaskFailureResponse smart constructor.

Constructors

SendTaskFailureResponse' 

Fields

Instances

Instances details
Eq SendTaskFailureResponse Source # 
Instance details

Defined in Amazonka.StepFunctions.SendTaskFailure

Read SendTaskFailureResponse Source # 
Instance details

Defined in Amazonka.StepFunctions.SendTaskFailure

Show SendTaskFailureResponse Source # 
Instance details

Defined in Amazonka.StepFunctions.SendTaskFailure

Generic SendTaskFailureResponse Source # 
Instance details

Defined in Amazonka.StepFunctions.SendTaskFailure

Associated Types

type Rep SendTaskFailureResponse :: Type -> Type #

NFData SendTaskFailureResponse Source # 
Instance details

Defined in Amazonka.StepFunctions.SendTaskFailure

Methods

rnf :: SendTaskFailureResponse -> () #

type Rep SendTaskFailureResponse Source # 
Instance details

Defined in Amazonka.StepFunctions.SendTaskFailure

type Rep SendTaskFailureResponse = D1 ('MetaData "SendTaskFailureResponse" "Amazonka.StepFunctions.SendTaskFailure" "libZSservicesZSamazonka-stepfunctionsZSamazonka-stepfunctions" 'False) (C1 ('MetaCons "SendTaskFailureResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newSendTaskFailureResponse Source #

Create a value of SendTaskFailureResponse 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:httpStatus:SendTaskFailureResponse', sendTaskFailureResponse_httpStatus - The response's http status code.

Response Lenses