amazonka-stepfunctions-2.0: Amazon Step Functions 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.StepFunctions.SendTaskSuccess

Description

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

Synopsis

Creating a Request

data SendTaskSuccess Source #

See: newSendTaskSuccess smart constructor.

Constructors

SendTaskSuccess' 

Fields

  • 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.

  • output :: Sensitive Text

    The JSON output of the task. Length constraints apply to the payload size, and are expressed as bytes in UTF-8 encoding.

Instances

Instances details
ToJSON SendTaskSuccess Source # 
Instance details

Defined in Amazonka.StepFunctions.SendTaskSuccess

ToHeaders SendTaskSuccess Source # 
Instance details

Defined in Amazonka.StepFunctions.SendTaskSuccess

ToPath SendTaskSuccess Source # 
Instance details

Defined in Amazonka.StepFunctions.SendTaskSuccess

ToQuery SendTaskSuccess Source # 
Instance details

Defined in Amazonka.StepFunctions.SendTaskSuccess

AWSRequest SendTaskSuccess Source # 
Instance details

Defined in Amazonka.StepFunctions.SendTaskSuccess

Associated Types

type AWSResponse SendTaskSuccess #

Generic SendTaskSuccess Source # 
Instance details

Defined in Amazonka.StepFunctions.SendTaskSuccess

Associated Types

type Rep SendTaskSuccess :: Type -> Type #

Show SendTaskSuccess Source # 
Instance details

Defined in Amazonka.StepFunctions.SendTaskSuccess

NFData SendTaskSuccess Source # 
Instance details

Defined in Amazonka.StepFunctions.SendTaskSuccess

Methods

rnf :: SendTaskSuccess -> () #

Eq SendTaskSuccess Source # 
Instance details

Defined in Amazonka.StepFunctions.SendTaskSuccess

Hashable SendTaskSuccess Source # 
Instance details

Defined in Amazonka.StepFunctions.SendTaskSuccess

type AWSResponse SendTaskSuccess Source # 
Instance details

Defined in Amazonka.StepFunctions.SendTaskSuccess

type Rep SendTaskSuccess Source # 
Instance details

Defined in Amazonka.StepFunctions.SendTaskSuccess

type Rep SendTaskSuccess = D1 ('MetaData "SendTaskSuccess" "Amazonka.StepFunctions.SendTaskSuccess" "amazonka-stepfunctions-2.0-K6z2kqboJVbL1MZX8DUt0f" 'False) (C1 ('MetaCons "SendTaskSuccess'" 'PrefixI 'True) (S1 ('MetaSel ('Just "taskToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "output") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Sensitive Text))))

newSendTaskSuccess Source #

Create a value of SendTaskSuccess 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:taskToken:SendTaskSuccess', sendTaskSuccess_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.

SendTaskSuccess, sendTaskSuccess_output - The JSON output of the task. Length constraints apply to the payload size, and are expressed as bytes in UTF-8 encoding.

Request Lenses

sendTaskSuccess_taskToken :: Lens' SendTaskSuccess 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.

sendTaskSuccess_output :: Lens' SendTaskSuccess Text Source #

The JSON output of the task. Length constraints apply to the payload size, and are expressed as bytes in UTF-8 encoding.

Destructuring the Response

data SendTaskSuccessResponse Source #

See: newSendTaskSuccessResponse smart constructor.

Constructors

SendTaskSuccessResponse' 

Fields

Instances

Instances details
Generic SendTaskSuccessResponse Source # 
Instance details

Defined in Amazonka.StepFunctions.SendTaskSuccess

Associated Types

type Rep SendTaskSuccessResponse :: Type -> Type #

Read SendTaskSuccessResponse Source # 
Instance details

Defined in Amazonka.StepFunctions.SendTaskSuccess

Show SendTaskSuccessResponse Source # 
Instance details

Defined in Amazonka.StepFunctions.SendTaskSuccess

NFData SendTaskSuccessResponse Source # 
Instance details

Defined in Amazonka.StepFunctions.SendTaskSuccess

Methods

rnf :: SendTaskSuccessResponse -> () #

Eq SendTaskSuccessResponse Source # 
Instance details

Defined in Amazonka.StepFunctions.SendTaskSuccess

type Rep SendTaskSuccessResponse Source # 
Instance details

Defined in Amazonka.StepFunctions.SendTaskSuccess

type Rep SendTaskSuccessResponse = D1 ('MetaData "SendTaskSuccessResponse" "Amazonka.StepFunctions.SendTaskSuccess" "amazonka-stepfunctions-2.0-K6z2kqboJVbL1MZX8DUt0f" 'False) (C1 ('MetaCons "SendTaskSuccessResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newSendTaskSuccessResponse Source #

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

Response Lenses