// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. package sfn import ( "fmt" "time" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) const opCreateActivity = "CreateActivity" // CreateActivityRequest generates a "aws/request.Request" representing the // client's request for the CreateActivity operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See CreateActivity for more information on using the CreateActivity // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the CreateActivityRequest method. // req, resp := client.CreateActivityRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/CreateActivity func (c *SFN) CreateActivityRequest(input *CreateActivityInput) (req *request.Request, output *CreateActivityOutput) { op := &request.Operation{ Name: opCreateActivity, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &CreateActivityInput{} } output = &CreateActivityOutput{} req = c.newRequest(op, input, output) return } // CreateActivity API operation for AWS Step Functions. // // Creates an activity. An activity is a task that you write in any programming // language and host on any machine that has access to Step Functions. Activities // must poll Step Functions using the GetActivityTask API action and respond // using SendTask* API actions. This function lets Step Functions know the existence // of your activity and returns an identifier for use in a state machine and // when polling from the activity. // // This operation is eventually consistent. The results are best effort and // may not reflect very recent updates and changes. // // CreateActivity is an idempotent API. Subsequent requests won’t create a // duplicate resource if it was already created. CreateActivity's idempotency // check is based on the activity name. If a following request has different // tags values, Step Functions will ignore these differences and treat it as // an idempotent request of the previous. In this case, tags will not be updated, // even if they are different. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Step Functions's // API operation CreateActivity for usage and error information. // // Returned Error Types: // * ActivityLimitExceeded // The maximum number of activities has been reached. Existing activities must // be deleted before a new activity can be created. // // * InvalidName // The provided name is not valid. // // * TooManyTags // You've exceeded the number of tags allowed for a resource. See the Limits // Topic (https://docs.aws.amazon.com/step-functions/latest/dg/limits.html) // in the Step Functions Developer Guide. // // See also, https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/CreateActivity func (c *SFN) CreateActivity(input *CreateActivityInput) (*CreateActivityOutput, error) { req, out := c.CreateActivityRequest(input) return out, req.Send() } // CreateActivityWithContext is the same as CreateActivity with the addition of // the ability to pass a context and additional request options. // // See CreateActivity for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SFN) CreateActivityWithContext(ctx aws.Context, input *CreateActivityInput, opts ...request.Option) (*CreateActivityOutput, error) { req, out := c.CreateActivityRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opCreateStateMachine = "CreateStateMachine" // CreateStateMachineRequest generates a "aws/request.Request" representing the // client's request for the CreateStateMachine operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See CreateStateMachine for more information on using the CreateStateMachine // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the CreateStateMachineRequest method. // req, resp := client.CreateStateMachineRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/CreateStateMachine func (c *SFN) CreateStateMachineRequest(input *CreateStateMachineInput) (req *request.Request, output *CreateStateMachineOutput) { op := &request.Operation{ Name: opCreateStateMachine, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &CreateStateMachineInput{} } output = &CreateStateMachineOutput{} req = c.newRequest(op, input, output) return } // CreateStateMachine API operation for AWS Step Functions. // // Creates a state machine. A state machine consists of a collection of states // that can do work (Task states), determine to which states to transition next // (Choice states), stop an execution with an error (Fail states), and so on. // State machines are specified using a JSON-based, structured language. For // more information, see Amazon States Language (https://docs.aws.amazon.com/step-functions/latest/dg/concepts-amazon-states-language.html) // in the Step Functions User Guide. // // This operation is eventually consistent. The results are best effort and // may not reflect very recent updates and changes. // // CreateStateMachine is an idempotent API. Subsequent requests won’t create // a duplicate resource if it was already created. CreateStateMachine's idempotency // check is based on the state machine name, definition, type, LoggingConfiguration // and TracingConfiguration. If a following request has a different roleArn // or tags, Step Functions will ignore these differences and treat it as an // idempotent request of the previous. In this case, roleArn and tags will not // be updated, even if they are different. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Step Functions's // API operation CreateStateMachine for usage and error information. // // Returned Error Types: // * InvalidArn // The provided Amazon Resource Name (ARN) is not valid. // // * InvalidDefinition // The provided Amazon States Language definition is not valid. // // * InvalidName // The provided name is not valid. // // * InvalidLoggingConfiguration // // * InvalidTracingConfiguration // Your tracingConfiguration key does not match, or enabled has not been set // to true or false. // // * StateMachineAlreadyExists // A state machine with the same name but a different definition or role ARN // already exists. // // * StateMachineDeleting // The specified state machine is being deleted. // // * StateMachineLimitExceeded // The maximum number of state machines has been reached. Existing state machines // must be deleted before a new state machine can be created. // // * StateMachineTypeNotSupported // // * TooManyTags // You've exceeded the number of tags allowed for a resource. See the Limits // Topic (https://docs.aws.amazon.com/step-functions/latest/dg/limits.html) // in the Step Functions Developer Guide. // // See also, https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/CreateStateMachine func (c *SFN) CreateStateMachine(input *CreateStateMachineInput) (*CreateStateMachineOutput, error) { req, out := c.CreateStateMachineRequest(input) return out, req.Send() } // CreateStateMachineWithContext is the same as CreateStateMachine with the addition of // the ability to pass a context and additional request options. // // See CreateStateMachine for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SFN) CreateStateMachineWithContext(ctx aws.Context, input *CreateStateMachineInput, opts ...request.Option) (*CreateStateMachineOutput, error) { req, out := c.CreateStateMachineRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDeleteActivity = "DeleteActivity" // DeleteActivityRequest generates a "aws/request.Request" representing the // client's request for the DeleteActivity operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DeleteActivity for more information on using the DeleteActivity // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DeleteActivityRequest method. // req, resp := client.DeleteActivityRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/DeleteActivity func (c *SFN) DeleteActivityRequest(input *DeleteActivityInput) (req *request.Request, output *DeleteActivityOutput) { op := &request.Operation{ Name: opDeleteActivity, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &DeleteActivityInput{} } output = &DeleteActivityOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // DeleteActivity API operation for AWS Step Functions. // // Deletes an activity. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Step Functions's // API operation DeleteActivity for usage and error information. // // Returned Error Types: // * InvalidArn // The provided Amazon Resource Name (ARN) is not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/DeleteActivity func (c *SFN) DeleteActivity(input *DeleteActivityInput) (*DeleteActivityOutput, error) { req, out := c.DeleteActivityRequest(input) return out, req.Send() } // DeleteActivityWithContext is the same as DeleteActivity with the addition of // the ability to pass a context and additional request options. // // See DeleteActivity for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SFN) DeleteActivityWithContext(ctx aws.Context, input *DeleteActivityInput, opts ...request.Option) (*DeleteActivityOutput, error) { req, out := c.DeleteActivityRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDeleteStateMachine = "DeleteStateMachine" // DeleteStateMachineRequest generates a "aws/request.Request" representing the // client's request for the DeleteStateMachine operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DeleteStateMachine for more information on using the DeleteStateMachine // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DeleteStateMachineRequest method. // req, resp := client.DeleteStateMachineRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/DeleteStateMachine func (c *SFN) DeleteStateMachineRequest(input *DeleteStateMachineInput) (req *request.Request, output *DeleteStateMachineOutput) { op := &request.Operation{ Name: opDeleteStateMachine, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &DeleteStateMachineInput{} } output = &DeleteStateMachineOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // DeleteStateMachine API operation for AWS Step Functions. // // Deletes a state machine. This is an asynchronous operation: It sets the state // machine's status to DELETING and begins the deletion process. // // If the given state machine Amazon Resource Name (ARN) is a qualified state // machine ARN, it will fail with ValidationException. // // A qualified state machine ARN refers to a Distributed Map state defined within // a state machine. For example, the qualified state machine ARN arn:partition:states:region:account-id:stateMachine:stateMachineName/mapStateLabel // refers to a Distributed Map state with a label mapStateLabel in the state // machine named stateMachineName. // // For EXPRESS state machines, the deletion will happen eventually (usually // less than a minute). Running executions may emit logs after DeleteStateMachine // API is called. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Step Functions's // API operation DeleteStateMachine for usage and error information. // // Returned Error Types: // * InvalidArn // The provided Amazon Resource Name (ARN) is not valid. // // * ValidationException // The input does not satisfy the constraints specified by an Amazon Web Services // service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/DeleteStateMachine func (c *SFN) DeleteStateMachine(input *DeleteStateMachineInput) (*DeleteStateMachineOutput, error) { req, out := c.DeleteStateMachineRequest(input) return out, req.Send() } // DeleteStateMachineWithContext is the same as DeleteStateMachine with the addition of // the ability to pass a context and additional request options. // // See DeleteStateMachine for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SFN) DeleteStateMachineWithContext(ctx aws.Context, input *DeleteStateMachineInput, opts ...request.Option) (*DeleteStateMachineOutput, error) { req, out := c.DeleteStateMachineRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDescribeActivity = "DescribeActivity" // DescribeActivityRequest generates a "aws/request.Request" representing the // client's request for the DescribeActivity operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DescribeActivity for more information on using the DescribeActivity // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DescribeActivityRequest method. // req, resp := client.DescribeActivityRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/DescribeActivity func (c *SFN) DescribeActivityRequest(input *DescribeActivityInput) (req *request.Request, output *DescribeActivityOutput) { op := &request.Operation{ Name: opDescribeActivity, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &DescribeActivityInput{} } output = &DescribeActivityOutput{} req = c.newRequest(op, input, output) return } // DescribeActivity API operation for AWS Step Functions. // // Describes an activity. // // This operation is eventually consistent. The results are best effort and // may not reflect very recent updates and changes. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Step Functions's // API operation DescribeActivity for usage and error information. // // Returned Error Types: // * ActivityDoesNotExist // The specified activity does not exist. // // * InvalidArn // The provided Amazon Resource Name (ARN) is not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/DescribeActivity func (c *SFN) DescribeActivity(input *DescribeActivityInput) (*DescribeActivityOutput, error) { req, out := c.DescribeActivityRequest(input) return out, req.Send() } // DescribeActivityWithContext is the same as DescribeActivity with the addition of // the ability to pass a context and additional request options. // // See DescribeActivity for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SFN) DescribeActivityWithContext(ctx aws.Context, input *DescribeActivityInput, opts ...request.Option) (*DescribeActivityOutput, error) { req, out := c.DescribeActivityRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDescribeExecution = "DescribeExecution" // DescribeExecutionRequest generates a "aws/request.Request" representing the // client's request for the DescribeExecution operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DescribeExecution for more information on using the DescribeExecution // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DescribeExecutionRequest method. // req, resp := client.DescribeExecutionRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/DescribeExecution func (c *SFN) DescribeExecutionRequest(input *DescribeExecutionInput) (req *request.Request, output *DescribeExecutionOutput) { op := &request.Operation{ Name: opDescribeExecution, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &DescribeExecutionInput{} } output = &DescribeExecutionOutput{} req = c.newRequest(op, input, output) return } // DescribeExecution API operation for AWS Step Functions. // // Provides all information about a state machine execution, such as the state // machine associated with the execution, the execution input and output, and // relevant execution metadata. Use this API action to return the Map Run ARN // if the execution was dispatched by a Map Run. // // This operation is eventually consistent. The results are best effort and // may not reflect very recent updates and changes. // // This API action is not supported by EXPRESS state machine executions unless // they were dispatched by a Map Run. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Step Functions's // API operation DescribeExecution for usage and error information. // // Returned Error Types: // * ExecutionDoesNotExist // The specified execution does not exist. // // * InvalidArn // The provided Amazon Resource Name (ARN) is not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/DescribeExecution func (c *SFN) DescribeExecution(input *DescribeExecutionInput) (*DescribeExecutionOutput, error) { req, out := c.DescribeExecutionRequest(input) return out, req.Send() } // DescribeExecutionWithContext is the same as DescribeExecution with the addition of // the ability to pass a context and additional request options. // // See DescribeExecution for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SFN) DescribeExecutionWithContext(ctx aws.Context, input *DescribeExecutionInput, opts ...request.Option) (*DescribeExecutionOutput, error) { req, out := c.DescribeExecutionRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDescribeMapRun = "DescribeMapRun" // DescribeMapRunRequest generates a "aws/request.Request" representing the // client's request for the DescribeMapRun operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DescribeMapRun for more information on using the DescribeMapRun // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DescribeMapRunRequest method. // req, resp := client.DescribeMapRunRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/DescribeMapRun func (c *SFN) DescribeMapRunRequest(input *DescribeMapRunInput) (req *request.Request, output *DescribeMapRunOutput) { op := &request.Operation{ Name: opDescribeMapRun, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &DescribeMapRunInput{} } output = &DescribeMapRunOutput{} req = c.newRequest(op, input, output) return } // DescribeMapRun API operation for AWS Step Functions. // // Provides information about a Map Run's configuration, progress, and results. // For more information, see Examining Map Run (https://docs.aws.amazon.com/step-functions/latest/dg/concepts-examine-map-run.html) // in the Step Functions Developer Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Step Functions's // API operation DescribeMapRun for usage and error information. // // Returned Error Types: // * ResourceNotFound // Could not find the referenced resource. Only state machine and activity ARNs // are supported. // // * InvalidArn // The provided Amazon Resource Name (ARN) is not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/DescribeMapRun func (c *SFN) DescribeMapRun(input *DescribeMapRunInput) (*DescribeMapRunOutput, error) { req, out := c.DescribeMapRunRequest(input) return out, req.Send() } // DescribeMapRunWithContext is the same as DescribeMapRun with the addition of // the ability to pass a context and additional request options. // // See DescribeMapRun for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SFN) DescribeMapRunWithContext(ctx aws.Context, input *DescribeMapRunInput, opts ...request.Option) (*DescribeMapRunOutput, error) { req, out := c.DescribeMapRunRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDescribeStateMachine = "DescribeStateMachine" // DescribeStateMachineRequest generates a "aws/request.Request" representing the // client's request for the DescribeStateMachine operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DescribeStateMachine for more information on using the DescribeStateMachine // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DescribeStateMachineRequest method. // req, resp := client.DescribeStateMachineRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/DescribeStateMachine func (c *SFN) DescribeStateMachineRequest(input *DescribeStateMachineInput) (req *request.Request, output *DescribeStateMachineOutput) { op := &request.Operation{ Name: opDescribeStateMachine, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &DescribeStateMachineInput{} } output = &DescribeStateMachineOutput{} req = c.newRequest(op, input, output) return } // DescribeStateMachine API operation for AWS Step Functions. // // Provides information about a state machine's definition, its IAM role Amazon // Resource Name (ARN), and configuration. If the state machine ARN is a qualified // state machine ARN, the response returned includes the Map state's label. // // A qualified state machine ARN refers to a Distributed Map state defined within // a state machine. For example, the qualified state machine ARN arn:partition:states:region:account-id:stateMachine:stateMachineName/mapStateLabel // refers to a Distributed Map state with a label mapStateLabel in the state // machine named stateMachineName. // // This operation is eventually consistent. The results are best effort and // may not reflect very recent updates and changes. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Step Functions's // API operation DescribeStateMachine for usage and error information. // // Returned Error Types: // * InvalidArn // The provided Amazon Resource Name (ARN) is not valid. // // * StateMachineDoesNotExist // The specified state machine does not exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/DescribeStateMachine func (c *SFN) DescribeStateMachine(input *DescribeStateMachineInput) (*DescribeStateMachineOutput, error) { req, out := c.DescribeStateMachineRequest(input) return out, req.Send() } // DescribeStateMachineWithContext is the same as DescribeStateMachine with the addition of // the ability to pass a context and additional request options. // // See DescribeStateMachine for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SFN) DescribeStateMachineWithContext(ctx aws.Context, input *DescribeStateMachineInput, opts ...request.Option) (*DescribeStateMachineOutput, error) { req, out := c.DescribeStateMachineRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opDescribeStateMachineForExecution = "DescribeStateMachineForExecution" // DescribeStateMachineForExecutionRequest generates a "aws/request.Request" representing the // client's request for the DescribeStateMachineForExecution operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See DescribeStateMachineForExecution for more information on using the DescribeStateMachineForExecution // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the DescribeStateMachineForExecutionRequest method. // req, resp := client.DescribeStateMachineForExecutionRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/DescribeStateMachineForExecution func (c *SFN) DescribeStateMachineForExecutionRequest(input *DescribeStateMachineForExecutionInput) (req *request.Request, output *DescribeStateMachineForExecutionOutput) { op := &request.Operation{ Name: opDescribeStateMachineForExecution, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &DescribeStateMachineForExecutionInput{} } output = &DescribeStateMachineForExecutionOutput{} req = c.newRequest(op, input, output) return } // DescribeStateMachineForExecution API operation for AWS Step Functions. // // Provides information about a state machine's definition, its execution role // ARN, and configuration. If an execution was dispatched by a Map Run, the // Map Run is returned in the response. Additionally, the state machine returned // will be the state machine associated with the Map Run. // // This operation is eventually consistent. The results are best effort and // may not reflect very recent updates and changes. // // This API action is not supported by EXPRESS state machines. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Step Functions's // API operation DescribeStateMachineForExecution for usage and error information. // // Returned Error Types: // * ExecutionDoesNotExist // The specified execution does not exist. // // * InvalidArn // The provided Amazon Resource Name (ARN) is not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/DescribeStateMachineForExecution func (c *SFN) DescribeStateMachineForExecution(input *DescribeStateMachineForExecutionInput) (*DescribeStateMachineForExecutionOutput, error) { req, out := c.DescribeStateMachineForExecutionRequest(input) return out, req.Send() } // DescribeStateMachineForExecutionWithContext is the same as DescribeStateMachineForExecution with the addition of // the ability to pass a context and additional request options. // // See DescribeStateMachineForExecution for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SFN) DescribeStateMachineForExecutionWithContext(ctx aws.Context, input *DescribeStateMachineForExecutionInput, opts ...request.Option) (*DescribeStateMachineForExecutionOutput, error) { req, out := c.DescribeStateMachineForExecutionRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opGetActivityTask = "GetActivityTask" // GetActivityTaskRequest generates a "aws/request.Request" representing the // client's request for the GetActivityTask operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See GetActivityTask for more information on using the GetActivityTask // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the GetActivityTaskRequest method. // req, resp := client.GetActivityTaskRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/GetActivityTask func (c *SFN) GetActivityTaskRequest(input *GetActivityTaskInput) (req *request.Request, output *GetActivityTaskOutput) { op := &request.Operation{ Name: opGetActivityTask, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &GetActivityTaskInput{} } output = &GetActivityTaskOutput{} req = c.newRequest(op, input, output) return } // GetActivityTask API operation for AWS Step Functions. // // Used by workers to retrieve a task (with the specified activity ARN) which // has been scheduled for execution by a running state machine. This initiates // a long poll, where the service holds the HTTP connection open and responds // as soon as a task becomes available (i.e. an execution of a task of this // type is needed.) The maximum time the service holds on to the request before // responding is 60 seconds. If no task is available within 60 seconds, the // poll returns a taskToken with a null string. // // This API action isn't logged in CloudTrail. // // Workers should set their client side socket timeout to at least 65 seconds // (5 seconds higher than the maximum time the service may hold the poll request). // // Polling with GetActivityTask can cause latency in some implementations. See // Avoid Latency When Polling for Activity Tasks (https://docs.aws.amazon.com/step-functions/latest/dg/bp-activity-pollers.html) // in the Step Functions Developer Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Step Functions's // API operation GetActivityTask for usage and error information. // // Returned Error Types: // * ActivityDoesNotExist // The specified activity does not exist. // // * ActivityWorkerLimitExceeded // The maximum number of workers concurrently polling for activity tasks has // been reached. // // * InvalidArn // The provided Amazon Resource Name (ARN) is not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/GetActivityTask func (c *SFN) GetActivityTask(input *GetActivityTaskInput) (*GetActivityTaskOutput, error) { req, out := c.GetActivityTaskRequest(input) return out, req.Send() } // GetActivityTaskWithContext is the same as GetActivityTask with the addition of // the ability to pass a context and additional request options. // // See GetActivityTask for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SFN) GetActivityTaskWithContext(ctx aws.Context, input *GetActivityTaskInput, opts ...request.Option) (*GetActivityTaskOutput, error) { req, out := c.GetActivityTaskRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opGetExecutionHistory = "GetExecutionHistory" // GetExecutionHistoryRequest generates a "aws/request.Request" representing the // client's request for the GetExecutionHistory operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See GetExecutionHistory for more information on using the GetExecutionHistory // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the GetExecutionHistoryRequest method. // req, resp := client.GetExecutionHistoryRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/GetExecutionHistory func (c *SFN) GetExecutionHistoryRequest(input *GetExecutionHistoryInput) (req *request.Request, output *GetExecutionHistoryOutput) { op := &request.Operation{ Name: opGetExecutionHistory, HTTPMethod: "POST", HTTPPath: "/", Paginator: &request.Paginator{ InputTokens: []string{"nextToken"}, OutputTokens: []string{"nextToken"}, LimitToken: "maxResults", TruncationToken: "", }, } if input == nil { input = &GetExecutionHistoryInput{} } output = &GetExecutionHistoryOutput{} req = c.newRequest(op, input, output) return } // GetExecutionHistory API operation for AWS Step Functions. // // Returns the history of the specified execution as a list of events. By default, // the results are returned in ascending order of the timeStamp of the events. // Use the reverseOrder parameter to get the latest events first. // // If nextToken is returned, there are more results available. The value of // nextToken is a unique pagination token for each page. Make the call again // using the returned token to retrieve the next page. Keep all other arguments // unchanged. Each pagination token expires after 24 hours. Using an expired // pagination token will return an HTTP 400 InvalidToken error. // // This API action is not supported by EXPRESS state machines. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Step Functions's // API operation GetExecutionHistory for usage and error information. // // Returned Error Types: // * ExecutionDoesNotExist // The specified execution does not exist. // // * InvalidArn // The provided Amazon Resource Name (ARN) is not valid. // // * InvalidToken // The provided token is not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/GetExecutionHistory func (c *SFN) GetExecutionHistory(input *GetExecutionHistoryInput) (*GetExecutionHistoryOutput, error) { req, out := c.GetExecutionHistoryRequest(input) return out, req.Send() } // GetExecutionHistoryWithContext is the same as GetExecutionHistory with the addition of // the ability to pass a context and additional request options. // // See GetExecutionHistory for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SFN) GetExecutionHistoryWithContext(ctx aws.Context, input *GetExecutionHistoryInput, opts ...request.Option) (*GetExecutionHistoryOutput, error) { req, out := c.GetExecutionHistoryRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } // GetExecutionHistoryPages iterates over the pages of a GetExecutionHistory operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // // See GetExecutionHistory method for more information on how to use this operation. // // Note: This operation can generate multiple requests to a service. // // // Example iterating over at most 3 pages of a GetExecutionHistory operation. // pageNum := 0 // err := client.GetExecutionHistoryPages(params, // func(page *sfn.GetExecutionHistoryOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // func (c *SFN) GetExecutionHistoryPages(input *GetExecutionHistoryInput, fn func(*GetExecutionHistoryOutput, bool) bool) error { return c.GetExecutionHistoryPagesWithContext(aws.BackgroundContext(), input, fn) } // GetExecutionHistoryPagesWithContext same as GetExecutionHistoryPages except // it takes a Context and allows setting request options on the pages. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SFN) GetExecutionHistoryPagesWithContext(ctx aws.Context, input *GetExecutionHistoryInput, fn func(*GetExecutionHistoryOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { var inCpy *GetExecutionHistoryInput if input != nil { tmp := *input inCpy = &tmp } req, _ := c.GetExecutionHistoryRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil }, } for p.Next() { if !fn(p.Page().(*GetExecutionHistoryOutput), !p.HasNextPage()) { break } } return p.Err() } const opListActivities = "ListActivities" // ListActivitiesRequest generates a "aws/request.Request" representing the // client's request for the ListActivities operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See ListActivities for more information on using the ListActivities // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the ListActivitiesRequest method. // req, resp := client.ListActivitiesRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/ListActivities func (c *SFN) ListActivitiesRequest(input *ListActivitiesInput) (req *request.Request, output *ListActivitiesOutput) { op := &request.Operation{ Name: opListActivities, HTTPMethod: "POST", HTTPPath: "/", Paginator: &request.Paginator{ InputTokens: []string{"nextToken"}, OutputTokens: []string{"nextToken"}, LimitToken: "maxResults", TruncationToken: "", }, } if input == nil { input = &ListActivitiesInput{} } output = &ListActivitiesOutput{} req = c.newRequest(op, input, output) return } // ListActivities API operation for AWS Step Functions. // // Lists the existing activities. // // If nextToken is returned, there are more results available. The value of // nextToken is a unique pagination token for each page. Make the call again // using the returned token to retrieve the next page. Keep all other arguments // unchanged. Each pagination token expires after 24 hours. Using an expired // pagination token will return an HTTP 400 InvalidToken error. // // This operation is eventually consistent. The results are best effort and // may not reflect very recent updates and changes. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Step Functions's // API operation ListActivities for usage and error information. // // Returned Error Types: // * InvalidToken // The provided token is not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/ListActivities func (c *SFN) ListActivities(input *ListActivitiesInput) (*ListActivitiesOutput, error) { req, out := c.ListActivitiesRequest(input) return out, req.Send() } // ListActivitiesWithContext is the same as ListActivities with the addition of // the ability to pass a context and additional request options. // // See ListActivities for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SFN) ListActivitiesWithContext(ctx aws.Context, input *ListActivitiesInput, opts ...request.Option) (*ListActivitiesOutput, error) { req, out := c.ListActivitiesRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } // ListActivitiesPages iterates over the pages of a ListActivities operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // // See ListActivities method for more information on how to use this operation. // // Note: This operation can generate multiple requests to a service. // // // Example iterating over at most 3 pages of a ListActivities operation. // pageNum := 0 // err := client.ListActivitiesPages(params, // func(page *sfn.ListActivitiesOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // func (c *SFN) ListActivitiesPages(input *ListActivitiesInput, fn func(*ListActivitiesOutput, bool) bool) error { return c.ListActivitiesPagesWithContext(aws.BackgroundContext(), input, fn) } // ListActivitiesPagesWithContext same as ListActivitiesPages except // it takes a Context and allows setting request options on the pages. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SFN) ListActivitiesPagesWithContext(ctx aws.Context, input *ListActivitiesInput, fn func(*ListActivitiesOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { var inCpy *ListActivitiesInput if input != nil { tmp := *input inCpy = &tmp } req, _ := c.ListActivitiesRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil }, } for p.Next() { if !fn(p.Page().(*ListActivitiesOutput), !p.HasNextPage()) { break } } return p.Err() } const opListExecutions = "ListExecutions" // ListExecutionsRequest generates a "aws/request.Request" representing the // client's request for the ListExecutions operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See ListExecutions for more information on using the ListExecutions // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the ListExecutionsRequest method. // req, resp := client.ListExecutionsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/ListExecutions func (c *SFN) ListExecutionsRequest(input *ListExecutionsInput) (req *request.Request, output *ListExecutionsOutput) { op := &request.Operation{ Name: opListExecutions, HTTPMethod: "POST", HTTPPath: "/", Paginator: &request.Paginator{ InputTokens: []string{"nextToken"}, OutputTokens: []string{"nextToken"}, LimitToken: "maxResults", TruncationToken: "", }, } if input == nil { input = &ListExecutionsInput{} } output = &ListExecutionsOutput{} req = c.newRequest(op, input, output) return } // ListExecutions API operation for AWS Step Functions. // // Lists all executions of a state machine or a Map Run. You can list all executions // related to a state machine by specifying a state machine Amazon Resource // Name (ARN), or those related to a Map Run by specifying a Map Run ARN. // // Results are sorted by time, with the most recent execution first. // // If nextToken is returned, there are more results available. The value of // nextToken is a unique pagination token for each page. Make the call again // using the returned token to retrieve the next page. Keep all other arguments // unchanged. Each pagination token expires after 24 hours. Using an expired // pagination token will return an HTTP 400 InvalidToken error. // // This operation is eventually consistent. The results are best effort and // may not reflect very recent updates and changes. // // This API action is not supported by EXPRESS state machines. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Step Functions's // API operation ListExecutions for usage and error information. // // Returned Error Types: // * InvalidArn // The provided Amazon Resource Name (ARN) is not valid. // // * InvalidToken // The provided token is not valid. // // * StateMachineDoesNotExist // The specified state machine does not exist. // // * StateMachineTypeNotSupported // // * ValidationException // The input does not satisfy the constraints specified by an Amazon Web Services // service. // // * ResourceNotFound // Could not find the referenced resource. Only state machine and activity ARNs // are supported. // // See also, https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/ListExecutions func (c *SFN) ListExecutions(input *ListExecutionsInput) (*ListExecutionsOutput, error) { req, out := c.ListExecutionsRequest(input) return out, req.Send() } // ListExecutionsWithContext is the same as ListExecutions with the addition of // the ability to pass a context and additional request options. // // See ListExecutions for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SFN) ListExecutionsWithContext(ctx aws.Context, input *ListExecutionsInput, opts ...request.Option) (*ListExecutionsOutput, error) { req, out := c.ListExecutionsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } // ListExecutionsPages iterates over the pages of a ListExecutions operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // // See ListExecutions method for more information on how to use this operation. // // Note: This operation can generate multiple requests to a service. // // // Example iterating over at most 3 pages of a ListExecutions operation. // pageNum := 0 // err := client.ListExecutionsPages(params, // func(page *sfn.ListExecutionsOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // func (c *SFN) ListExecutionsPages(input *ListExecutionsInput, fn func(*ListExecutionsOutput, bool) bool) error { return c.ListExecutionsPagesWithContext(aws.BackgroundContext(), input, fn) } // ListExecutionsPagesWithContext same as ListExecutionsPages except // it takes a Context and allows setting request options on the pages. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SFN) ListExecutionsPagesWithContext(ctx aws.Context, input *ListExecutionsInput, fn func(*ListExecutionsOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { var inCpy *ListExecutionsInput if input != nil { tmp := *input inCpy = &tmp } req, _ := c.ListExecutionsRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil }, } for p.Next() { if !fn(p.Page().(*ListExecutionsOutput), !p.HasNextPage()) { break } } return p.Err() } const opListMapRuns = "ListMapRuns" // ListMapRunsRequest generates a "aws/request.Request" representing the // client's request for the ListMapRuns operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See ListMapRuns for more information on using the ListMapRuns // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the ListMapRunsRequest method. // req, resp := client.ListMapRunsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/ListMapRuns func (c *SFN) ListMapRunsRequest(input *ListMapRunsInput) (req *request.Request, output *ListMapRunsOutput) { op := &request.Operation{ Name: opListMapRuns, HTTPMethod: "POST", HTTPPath: "/", Paginator: &request.Paginator{ InputTokens: []string{"nextToken"}, OutputTokens: []string{"nextToken"}, LimitToken: "maxResults", TruncationToken: "", }, } if input == nil { input = &ListMapRunsInput{} } output = &ListMapRunsOutput{} req = c.newRequest(op, input, output) return } // ListMapRuns API operation for AWS Step Functions. // // Lists all Map Runs that were started by a given state machine execution. // Use this API action to obtain Map Run ARNs, and then call DescribeMapRun // to obtain more information, if needed. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Step Functions's // API operation ListMapRuns for usage and error information. // // Returned Error Types: // * ExecutionDoesNotExist // The specified execution does not exist. // // * InvalidArn // The provided Amazon Resource Name (ARN) is not valid. // // * InvalidToken // The provided token is not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/ListMapRuns func (c *SFN) ListMapRuns(input *ListMapRunsInput) (*ListMapRunsOutput, error) { req, out := c.ListMapRunsRequest(input) return out, req.Send() } // ListMapRunsWithContext is the same as ListMapRuns with the addition of // the ability to pass a context and additional request options. // // See ListMapRuns for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SFN) ListMapRunsWithContext(ctx aws.Context, input *ListMapRunsInput, opts ...request.Option) (*ListMapRunsOutput, error) { req, out := c.ListMapRunsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } // ListMapRunsPages iterates over the pages of a ListMapRuns operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // // See ListMapRuns method for more information on how to use this operation. // // Note: This operation can generate multiple requests to a service. // // // Example iterating over at most 3 pages of a ListMapRuns operation. // pageNum := 0 // err := client.ListMapRunsPages(params, // func(page *sfn.ListMapRunsOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // func (c *SFN) ListMapRunsPages(input *ListMapRunsInput, fn func(*ListMapRunsOutput, bool) bool) error { return c.ListMapRunsPagesWithContext(aws.BackgroundContext(), input, fn) } // ListMapRunsPagesWithContext same as ListMapRunsPages except // it takes a Context and allows setting request options on the pages. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SFN) ListMapRunsPagesWithContext(ctx aws.Context, input *ListMapRunsInput, fn func(*ListMapRunsOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { var inCpy *ListMapRunsInput if input != nil { tmp := *input inCpy = &tmp } req, _ := c.ListMapRunsRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil }, } for p.Next() { if !fn(p.Page().(*ListMapRunsOutput), !p.HasNextPage()) { break } } return p.Err() } const opListStateMachines = "ListStateMachines" // ListStateMachinesRequest generates a "aws/request.Request" representing the // client's request for the ListStateMachines operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See ListStateMachines for more information on using the ListStateMachines // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the ListStateMachinesRequest method. // req, resp := client.ListStateMachinesRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/ListStateMachines func (c *SFN) ListStateMachinesRequest(input *ListStateMachinesInput) (req *request.Request, output *ListStateMachinesOutput) { op := &request.Operation{ Name: opListStateMachines, HTTPMethod: "POST", HTTPPath: "/", Paginator: &request.Paginator{ InputTokens: []string{"nextToken"}, OutputTokens: []string{"nextToken"}, LimitToken: "maxResults", TruncationToken: "", }, } if input == nil { input = &ListStateMachinesInput{} } output = &ListStateMachinesOutput{} req = c.newRequest(op, input, output) return } // ListStateMachines API operation for AWS Step Functions. // // Lists the existing state machines. // // If nextToken is returned, there are more results available. The value of // nextToken is a unique pagination token for each page. Make the call again // using the returned token to retrieve the next page. Keep all other arguments // unchanged. Each pagination token expires after 24 hours. Using an expired // pagination token will return an HTTP 400 InvalidToken error. // // This operation is eventually consistent. The results are best effort and // may not reflect very recent updates and changes. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Step Functions's // API operation ListStateMachines for usage and error information. // // Returned Error Types: // * InvalidToken // The provided token is not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/ListStateMachines func (c *SFN) ListStateMachines(input *ListStateMachinesInput) (*ListStateMachinesOutput, error) { req, out := c.ListStateMachinesRequest(input) return out, req.Send() } // ListStateMachinesWithContext is the same as ListStateMachines with the addition of // the ability to pass a context and additional request options. // // See ListStateMachines for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SFN) ListStateMachinesWithContext(ctx aws.Context, input *ListStateMachinesInput, opts ...request.Option) (*ListStateMachinesOutput, error) { req, out := c.ListStateMachinesRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } // ListStateMachinesPages iterates over the pages of a ListStateMachines operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // // See ListStateMachines method for more information on how to use this operation. // // Note: This operation can generate multiple requests to a service. // // // Example iterating over at most 3 pages of a ListStateMachines operation. // pageNum := 0 // err := client.ListStateMachinesPages(params, // func(page *sfn.ListStateMachinesOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // func (c *SFN) ListStateMachinesPages(input *ListStateMachinesInput, fn func(*ListStateMachinesOutput, bool) bool) error { return c.ListStateMachinesPagesWithContext(aws.BackgroundContext(), input, fn) } // ListStateMachinesPagesWithContext same as ListStateMachinesPages except // it takes a Context and allows setting request options on the pages. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SFN) ListStateMachinesPagesWithContext(ctx aws.Context, input *ListStateMachinesInput, fn func(*ListStateMachinesOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { var inCpy *ListStateMachinesInput if input != nil { tmp := *input inCpy = &tmp } req, _ := c.ListStateMachinesRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil }, } for p.Next() { if !fn(p.Page().(*ListStateMachinesOutput), !p.HasNextPage()) { break } } return p.Err() } const opListTagsForResource = "ListTagsForResource" // ListTagsForResourceRequest generates a "aws/request.Request" representing the // client's request for the ListTagsForResource operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See ListTagsForResource for more information on using the ListTagsForResource // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the ListTagsForResourceRequest method. // req, resp := client.ListTagsForResourceRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/ListTagsForResource func (c *SFN) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) { op := &request.Operation{ Name: opListTagsForResource, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &ListTagsForResourceInput{} } output = &ListTagsForResourceOutput{} req = c.newRequest(op, input, output) return } // ListTagsForResource API operation for AWS Step Functions. // // List tags for a given resource. // // Tags may only contain Unicode letters, digits, white space, or these symbols: // _ . : / = + - @. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Step Functions's // API operation ListTagsForResource for usage and error information. // // Returned Error Types: // * InvalidArn // The provided Amazon Resource Name (ARN) is not valid. // // * ResourceNotFound // Could not find the referenced resource. Only state machine and activity ARNs // are supported. // // See also, https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/ListTagsForResource func (c *SFN) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) { req, out := c.ListTagsForResourceRequest(input) return out, req.Send() } // ListTagsForResourceWithContext is the same as ListTagsForResource with the addition of // the ability to pass a context and additional request options. // // See ListTagsForResource for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SFN) ListTagsForResourceWithContext(ctx aws.Context, input *ListTagsForResourceInput, opts ...request.Option) (*ListTagsForResourceOutput, error) { req, out := c.ListTagsForResourceRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opSendTaskFailure = "SendTaskFailure" // SendTaskFailureRequest generates a "aws/request.Request" representing the // client's request for the SendTaskFailure operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See SendTaskFailure for more information on using the SendTaskFailure // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the SendTaskFailureRequest method. // req, resp := client.SendTaskFailureRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/SendTaskFailure func (c *SFN) SendTaskFailureRequest(input *SendTaskFailureInput) (req *request.Request, output *SendTaskFailureOutput) { op := &request.Operation{ Name: opSendTaskFailure, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &SendTaskFailureInput{} } output = &SendTaskFailureOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // SendTaskFailure API operation for AWS Step Functions. // // Used by activity workers and task states using the callback (https://docs.aws.amazon.com/step-functions/latest/dg/connect-to-resource.html#connect-wait-token) // pattern to report that the task identified by the taskToken failed. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Step Functions's // API operation SendTaskFailure for usage and error information. // // Returned Error Types: // * TaskDoesNotExist // // * InvalidToken // The provided token is not valid. // // * TaskTimedOut // // See also, https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/SendTaskFailure func (c *SFN) SendTaskFailure(input *SendTaskFailureInput) (*SendTaskFailureOutput, error) { req, out := c.SendTaskFailureRequest(input) return out, req.Send() } // SendTaskFailureWithContext is the same as SendTaskFailure with the addition of // the ability to pass a context and additional request options. // // See SendTaskFailure for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SFN) SendTaskFailureWithContext(ctx aws.Context, input *SendTaskFailureInput, opts ...request.Option) (*SendTaskFailureOutput, error) { req, out := c.SendTaskFailureRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opSendTaskHeartbeat = "SendTaskHeartbeat" // SendTaskHeartbeatRequest generates a "aws/request.Request" representing the // client's request for the SendTaskHeartbeat operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See SendTaskHeartbeat for more information on using the SendTaskHeartbeat // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the SendTaskHeartbeatRequest method. // req, resp := client.SendTaskHeartbeatRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/SendTaskHeartbeat func (c *SFN) SendTaskHeartbeatRequest(input *SendTaskHeartbeatInput) (req *request.Request, output *SendTaskHeartbeatOutput) { op := &request.Operation{ Name: opSendTaskHeartbeat, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &SendTaskHeartbeatInput{} } output = &SendTaskHeartbeatOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // SendTaskHeartbeat API operation for AWS Step Functions. // // Used by activity workers and task states using the callback (https://docs.aws.amazon.com/step-functions/latest/dg/connect-to-resource.html#connect-wait-token) // pattern to report to Step Functions that the task represented by the specified // taskToken is still making progress. This action resets the Heartbeat clock. // The Heartbeat threshold is specified in the state machine's Amazon States // Language definition (HeartbeatSeconds). This action does not in itself create // an event in the execution history. However, if the task times out, the execution // history contains an ActivityTimedOut entry for activities, or a TaskTimedOut // entry for for tasks using the job run (https://docs.aws.amazon.com/step-functions/latest/dg/connect-to-resource.html#connect-sync) // or callback (https://docs.aws.amazon.com/step-functions/latest/dg/connect-to-resource.html#connect-wait-token) // pattern. // // The Timeout of a task, defined in the state machine's Amazon States Language // definition, is its maximum allowed duration, regardless of the number of // SendTaskHeartbeat requests received. Use HeartbeatSeconds to configure the // timeout interval for heartbeats. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Step Functions's // API operation SendTaskHeartbeat for usage and error information. // // Returned Error Types: // * TaskDoesNotExist // // * InvalidToken // The provided token is not valid. // // * TaskTimedOut // // See also, https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/SendTaskHeartbeat func (c *SFN) SendTaskHeartbeat(input *SendTaskHeartbeatInput) (*SendTaskHeartbeatOutput, error) { req, out := c.SendTaskHeartbeatRequest(input) return out, req.Send() } // SendTaskHeartbeatWithContext is the same as SendTaskHeartbeat with the addition of // the ability to pass a context and additional request options. // // See SendTaskHeartbeat for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SFN) SendTaskHeartbeatWithContext(ctx aws.Context, input *SendTaskHeartbeatInput, opts ...request.Option) (*SendTaskHeartbeatOutput, error) { req, out := c.SendTaskHeartbeatRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opSendTaskSuccess = "SendTaskSuccess" // SendTaskSuccessRequest generates a "aws/request.Request" representing the // client's request for the SendTaskSuccess operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See SendTaskSuccess for more information on using the SendTaskSuccess // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the SendTaskSuccessRequest method. // req, resp := client.SendTaskSuccessRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/SendTaskSuccess func (c *SFN) SendTaskSuccessRequest(input *SendTaskSuccessInput) (req *request.Request, output *SendTaskSuccessOutput) { op := &request.Operation{ Name: opSendTaskSuccess, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &SendTaskSuccessInput{} } output = &SendTaskSuccessOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // SendTaskSuccess API operation for AWS Step Functions. // // Used by activity workers and task states using the callback (https://docs.aws.amazon.com/step-functions/latest/dg/connect-to-resource.html#connect-wait-token) // pattern to report that the task identified by the taskToken completed successfully. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Step Functions's // API operation SendTaskSuccess for usage and error information. // // Returned Error Types: // * TaskDoesNotExist // // * InvalidOutput // The provided JSON output data is not valid. // // * InvalidToken // The provided token is not valid. // // * TaskTimedOut // // See also, https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/SendTaskSuccess func (c *SFN) SendTaskSuccess(input *SendTaskSuccessInput) (*SendTaskSuccessOutput, error) { req, out := c.SendTaskSuccessRequest(input) return out, req.Send() } // SendTaskSuccessWithContext is the same as SendTaskSuccess with the addition of // the ability to pass a context and additional request options. // // See SendTaskSuccess for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SFN) SendTaskSuccessWithContext(ctx aws.Context, input *SendTaskSuccessInput, opts ...request.Option) (*SendTaskSuccessOutput, error) { req, out := c.SendTaskSuccessRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opStartExecution = "StartExecution" // StartExecutionRequest generates a "aws/request.Request" representing the // client's request for the StartExecution operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See StartExecution for more information on using the StartExecution // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the StartExecutionRequest method. // req, resp := client.StartExecutionRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/StartExecution func (c *SFN) StartExecutionRequest(input *StartExecutionInput) (req *request.Request, output *StartExecutionOutput) { op := &request.Operation{ Name: opStartExecution, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &StartExecutionInput{} } output = &StartExecutionOutput{} req = c.newRequest(op, input, output) return } // StartExecution API operation for AWS Step Functions. // // Starts a state machine execution. If the given state machine Amazon Resource // Name (ARN) is a qualified state machine ARN, it will fail with ValidationException. // // A qualified state machine ARN refers to a Distributed Map state defined within // a state machine. For example, the qualified state machine ARN arn:partition:states:region:account-id:stateMachine:stateMachineName/mapStateLabel // refers to a Distributed Map state with a label mapStateLabel in the state // machine named stateMachineName. // // StartExecution is idempotent for STANDARD workflows. For a STANDARD workflow, // if StartExecution is called with the same name and input as a running execution, // the call will succeed and return the same response as the original request. // If the execution is closed or if the input is different, it will return a // 400 ExecutionAlreadyExists error. Names can be reused after 90 days. // // StartExecution is not idempotent for EXPRESS workflows. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Step Functions's // API operation StartExecution for usage and error information. // // Returned Error Types: // * ExecutionLimitExceeded // The maximum number of running executions has been reached. Running executions // must end or be stopped before a new execution can be started. // // * ExecutionAlreadyExists // The execution has the same name as another execution (but a different input). // // Executions with the same name and input are considered idempotent. // // * InvalidArn // The provided Amazon Resource Name (ARN) is not valid. // // * InvalidExecutionInput // The provided JSON input data is not valid. // // * InvalidName // The provided name is not valid. // // * StateMachineDoesNotExist // The specified state machine does not exist. // // * StateMachineDeleting // The specified state machine is being deleted. // // * ValidationException // The input does not satisfy the constraints specified by an Amazon Web Services // service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/StartExecution func (c *SFN) StartExecution(input *StartExecutionInput) (*StartExecutionOutput, error) { req, out := c.StartExecutionRequest(input) return out, req.Send() } // StartExecutionWithContext is the same as StartExecution with the addition of // the ability to pass a context and additional request options. // // See StartExecution for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SFN) StartExecutionWithContext(ctx aws.Context, input *StartExecutionInput, opts ...request.Option) (*StartExecutionOutput, error) { req, out := c.StartExecutionRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opStartSyncExecution = "StartSyncExecution" // StartSyncExecutionRequest generates a "aws/request.Request" representing the // client's request for the StartSyncExecution operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See StartSyncExecution for more information on using the StartSyncExecution // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the StartSyncExecutionRequest method. // req, resp := client.StartSyncExecutionRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/StartSyncExecution func (c *SFN) StartSyncExecutionRequest(input *StartSyncExecutionInput) (req *request.Request, output *StartSyncExecutionOutput) { op := &request.Operation{ Name: opStartSyncExecution, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &StartSyncExecutionInput{} } output = &StartSyncExecutionOutput{} req = c.newRequest(op, input, output) req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("sync-", nil)) req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) return } // StartSyncExecution API operation for AWS Step Functions. // // Starts a Synchronous Express state machine execution. StartSyncExecution // is not available for STANDARD workflows. // // StartSyncExecution will return a 200 OK response, even if your execution // fails, because the status code in the API response doesn't reflect function // errors. Error codes are reserved for errors that prevent your execution from // running, such as permissions errors, limit errors, or issues with your state // machine code and configuration. // // This API action isn't logged in CloudTrail. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Step Functions's // API operation StartSyncExecution for usage and error information. // // Returned Error Types: // * InvalidArn // The provided Amazon Resource Name (ARN) is not valid. // // * InvalidExecutionInput // The provided JSON input data is not valid. // // * InvalidName // The provided name is not valid. // // * StateMachineDoesNotExist // The specified state machine does not exist. // // * StateMachineDeleting // The specified state machine is being deleted. // // * StateMachineTypeNotSupported // // See also, https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/StartSyncExecution func (c *SFN) StartSyncExecution(input *StartSyncExecutionInput) (*StartSyncExecutionOutput, error) { req, out := c.StartSyncExecutionRequest(input) return out, req.Send() } // StartSyncExecutionWithContext is the same as StartSyncExecution with the addition of // the ability to pass a context and additional request options. // // See StartSyncExecution for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SFN) StartSyncExecutionWithContext(ctx aws.Context, input *StartSyncExecutionInput, opts ...request.Option) (*StartSyncExecutionOutput, error) { req, out := c.StartSyncExecutionRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opStopExecution = "StopExecution" // StopExecutionRequest generates a "aws/request.Request" representing the // client's request for the StopExecution operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See StopExecution for more information on using the StopExecution // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the StopExecutionRequest method. // req, resp := client.StopExecutionRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/StopExecution func (c *SFN) StopExecutionRequest(input *StopExecutionInput) (req *request.Request, output *StopExecutionOutput) { op := &request.Operation{ Name: opStopExecution, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &StopExecutionInput{} } output = &StopExecutionOutput{} req = c.newRequest(op, input, output) return } // StopExecution API operation for AWS Step Functions. // // Stops an execution. // // This API action is not supported by EXPRESS state machines. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Step Functions's // API operation StopExecution for usage and error information. // // Returned Error Types: // * ExecutionDoesNotExist // The specified execution does not exist. // // * InvalidArn // The provided Amazon Resource Name (ARN) is not valid. // // * ValidationException // The input does not satisfy the constraints specified by an Amazon Web Services // service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/StopExecution func (c *SFN) StopExecution(input *StopExecutionInput) (*StopExecutionOutput, error) { req, out := c.StopExecutionRequest(input) return out, req.Send() } // StopExecutionWithContext is the same as StopExecution with the addition of // the ability to pass a context and additional request options. // // See StopExecution for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SFN) StopExecutionWithContext(ctx aws.Context, input *StopExecutionInput, opts ...request.Option) (*StopExecutionOutput, error) { req, out := c.StopExecutionRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opTagResource = "TagResource" // TagResourceRequest generates a "aws/request.Request" representing the // client's request for the TagResource operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See TagResource for more information on using the TagResource // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the TagResourceRequest method. // req, resp := client.TagResourceRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/TagResource func (c *SFN) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput) { op := &request.Operation{ Name: opTagResource, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &TagResourceInput{} } output = &TagResourceOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // TagResource API operation for AWS Step Functions. // // Add a tag to a Step Functions resource. // // An array of key-value pairs. For more information, see Using Cost Allocation // Tags (https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html) // in the Amazon Web Services Billing and Cost Management User Guide, and Controlling // Access Using IAM Tags (https://docs.aws.amazon.com/IAM/latest/UserGuide/access_iam-tags.html). // // Tags may only contain Unicode letters, digits, white space, or these symbols: // _ . : / = + - @. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Step Functions's // API operation TagResource for usage and error information. // // Returned Error Types: // * InvalidArn // The provided Amazon Resource Name (ARN) is not valid. // // * ResourceNotFound // Could not find the referenced resource. Only state machine and activity ARNs // are supported. // // * TooManyTags // You've exceeded the number of tags allowed for a resource. See the Limits // Topic (https://docs.aws.amazon.com/step-functions/latest/dg/limits.html) // in the Step Functions Developer Guide. // // See also, https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/TagResource func (c *SFN) TagResource(input *TagResourceInput) (*TagResourceOutput, error) { req, out := c.TagResourceRequest(input) return out, req.Send() } // TagResourceWithContext is the same as TagResource with the addition of // the ability to pass a context and additional request options. // // See TagResource for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SFN) TagResourceWithContext(ctx aws.Context, input *TagResourceInput, opts ...request.Option) (*TagResourceOutput, error) { req, out := c.TagResourceRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opUntagResource = "UntagResource" // UntagResourceRequest generates a "aws/request.Request" representing the // client's request for the UntagResource operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See UntagResource for more information on using the UntagResource // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the UntagResourceRequest method. // req, resp := client.UntagResourceRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/UntagResource func (c *SFN) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput) { op := &request.Operation{ Name: opUntagResource, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &UntagResourceInput{} } output = &UntagResourceOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // UntagResource API operation for AWS Step Functions. // // Remove a tag from a Step Functions resource // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Step Functions's // API operation UntagResource for usage and error information. // // Returned Error Types: // * InvalidArn // The provided Amazon Resource Name (ARN) is not valid. // // * ResourceNotFound // Could not find the referenced resource. Only state machine and activity ARNs // are supported. // // See also, https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/UntagResource func (c *SFN) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) { req, out := c.UntagResourceRequest(input) return out, req.Send() } // UntagResourceWithContext is the same as UntagResource with the addition of // the ability to pass a context and additional request options. // // See UntagResource for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SFN) UntagResourceWithContext(ctx aws.Context, input *UntagResourceInput, opts ...request.Option) (*UntagResourceOutput, error) { req, out := c.UntagResourceRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opUpdateMapRun = "UpdateMapRun" // UpdateMapRunRequest generates a "aws/request.Request" representing the // client's request for the UpdateMapRun operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See UpdateMapRun for more information on using the UpdateMapRun // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the UpdateMapRunRequest method. // req, resp := client.UpdateMapRunRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/UpdateMapRun func (c *SFN) UpdateMapRunRequest(input *UpdateMapRunInput) (req *request.Request, output *UpdateMapRunOutput) { op := &request.Operation{ Name: opUpdateMapRun, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &UpdateMapRunInput{} } output = &UpdateMapRunOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } // UpdateMapRun API operation for AWS Step Functions. // // Updates an in-progress Map Run's configuration to include changes to the // settings that control maximum concurrency and Map Run failure. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Step Functions's // API operation UpdateMapRun for usage and error information. // // Returned Error Types: // * ResourceNotFound // Could not find the referenced resource. Only state machine and activity ARNs // are supported. // // * InvalidArn // The provided Amazon Resource Name (ARN) is not valid. // // * ValidationException // The input does not satisfy the constraints specified by an Amazon Web Services // service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/UpdateMapRun func (c *SFN) UpdateMapRun(input *UpdateMapRunInput) (*UpdateMapRunOutput, error) { req, out := c.UpdateMapRunRequest(input) return out, req.Send() } // UpdateMapRunWithContext is the same as UpdateMapRun with the addition of // the ability to pass a context and additional request options. // // See UpdateMapRun for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SFN) UpdateMapRunWithContext(ctx aws.Context, input *UpdateMapRunInput, opts ...request.Option) (*UpdateMapRunOutput, error) { req, out := c.UpdateMapRunRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } const opUpdateStateMachine = "UpdateStateMachine" // UpdateStateMachineRequest generates a "aws/request.Request" representing the // client's request for the UpdateStateMachine operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // // See UpdateStateMachine for more information on using the UpdateStateMachine // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // // // Example sending a request using the UpdateStateMachineRequest method. // req, resp := client.UpdateStateMachineRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // // See also, https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/UpdateStateMachine func (c *SFN) UpdateStateMachineRequest(input *UpdateStateMachineInput) (req *request.Request, output *UpdateStateMachineOutput) { op := &request.Operation{ Name: opUpdateStateMachine, HTTPMethod: "POST", HTTPPath: "/", } if input == nil { input = &UpdateStateMachineInput{} } output = &UpdateStateMachineOutput{} req = c.newRequest(op, input, output) return } // UpdateStateMachine API operation for AWS Step Functions. // // Updates an existing state machine by modifying its definition, roleArn, or // loggingConfiguration. Running executions will continue to use the previous // definition and roleArn. You must include at least one of definition or roleArn // or you will receive a MissingRequiredParameter error. // // If the given state machine Amazon Resource Name (ARN) is a qualified state // machine ARN, it will fail with ValidationException. // // A qualified state machine ARN refers to a Distributed Map state defined within // a state machine. For example, the qualified state machine ARN arn:partition:states:region:account-id:stateMachine:stateMachineName/mapStateLabel // refers to a Distributed Map state with a label mapStateLabel in the state // machine named stateMachineName. // // All StartExecution calls within a few seconds will use the updated definition // and roleArn. Executions started immediately after calling UpdateStateMachine // may use the previous state machine definition and roleArn. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS Step Functions's // API operation UpdateStateMachine for usage and error information. // // Returned Error Types: // * InvalidArn // The provided Amazon Resource Name (ARN) is not valid. // // * InvalidDefinition // The provided Amazon States Language definition is not valid. // // * InvalidLoggingConfiguration // // * InvalidTracingConfiguration // Your tracingConfiguration key does not match, or enabled has not been set // to true or false. // // * MissingRequiredParameter // Request is missing a required parameter. This error occurs if both definition // and roleArn are not specified. // // * StateMachineDeleting // The specified state machine is being deleted. // // * StateMachineDoesNotExist // The specified state machine does not exist. // // * ValidationException // The input does not satisfy the constraints specified by an Amazon Web Services // service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/UpdateStateMachine func (c *SFN) UpdateStateMachine(input *UpdateStateMachineInput) (*UpdateStateMachineOutput, error) { req, out := c.UpdateStateMachineRequest(input) return out, req.Send() } // UpdateStateMachineWithContext is the same as UpdateStateMachine with the addition of // the ability to pass a context and additional request options. // // See UpdateStateMachine for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. func (c *SFN) UpdateStateMachineWithContext(ctx aws.Context, input *UpdateStateMachineInput, opts ...request.Option) (*UpdateStateMachineOutput, error) { req, out := c.UpdateStateMachineRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } // The specified activity does not exist. type ActivityDoesNotExist struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ActivityDoesNotExist) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ActivityDoesNotExist) GoString() string { return s.String() } func newErrorActivityDoesNotExist(v protocol.ResponseMetadata) error { return &ActivityDoesNotExist{ RespMetadata: v, } } // Code returns the exception type name. func (s *ActivityDoesNotExist) Code() string { return "ActivityDoesNotExist" } // Message returns the exception's message. func (s *ActivityDoesNotExist) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *ActivityDoesNotExist) OrigErr() error { return nil } func (s *ActivityDoesNotExist) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } // Status code returns the HTTP status code for the request's response error. func (s *ActivityDoesNotExist) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *ActivityDoesNotExist) RequestID() string { return s.RespMetadata.RequestID } // Contains details about an activity that failed during an execution. type ActivityFailedEventDetails struct { _ struct{} `type:"structure"` // A more detailed explanation of the cause of the failure. // // Cause is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by ActivityFailedEventDetails's // String and GoString methods. Cause *string `locationName:"cause" type:"string" sensitive:"true"` // The error code of the failure. // // Error is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by ActivityFailedEventDetails's // String and GoString methods. Error *string `locationName:"error" type:"string" sensitive:"true"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ActivityFailedEventDetails) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ActivityFailedEventDetails) GoString() string { return s.String() } // SetCause sets the Cause field's value. func (s *ActivityFailedEventDetails) SetCause(v string) *ActivityFailedEventDetails { s.Cause = &v return s } // SetError sets the Error field's value. func (s *ActivityFailedEventDetails) SetError(v string) *ActivityFailedEventDetails { s.Error = &v return s } // The maximum number of activities has been reached. Existing activities must // be deleted before a new activity can be created. type ActivityLimitExceeded struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ActivityLimitExceeded) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ActivityLimitExceeded) GoString() string { return s.String() } func newErrorActivityLimitExceeded(v protocol.ResponseMetadata) error { return &ActivityLimitExceeded{ RespMetadata: v, } } // Code returns the exception type name. func (s *ActivityLimitExceeded) Code() string { return "ActivityLimitExceeded" } // Message returns the exception's message. func (s *ActivityLimitExceeded) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *ActivityLimitExceeded) OrigErr() error { return nil } func (s *ActivityLimitExceeded) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } // Status code returns the HTTP status code for the request's response error. func (s *ActivityLimitExceeded) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *ActivityLimitExceeded) RequestID() string { return s.RespMetadata.RequestID } // Contains details about an activity. type ActivityListItem struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) that identifies the activity. // // ActivityArn is a required field ActivityArn *string `locationName:"activityArn" min:"1" type:"string" required:"true"` // The date the activity is created. // // CreationDate is a required field CreationDate *time.Time `locationName:"creationDate" type:"timestamp" required:"true"` // The name of the activity. // // A name must not contain: // // * white space // // * brackets < > { } [ ] // // * wildcard characters ? * // // * special characters " # % \ ^ | ~ ` $ & , ; : / // // * control characters (U+0000-001F, U+007F-009F) // // To enable logging with CloudWatch Logs, the name should only contain 0-9, // A-Z, a-z, - and _. // // Name is a required field Name *string `locationName:"name" min:"1" type:"string" required:"true"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ActivityListItem) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ActivityListItem) GoString() string { return s.String() } // SetActivityArn sets the ActivityArn field's value. func (s *ActivityListItem) SetActivityArn(v string) *ActivityListItem { s.ActivityArn = &v return s } // SetCreationDate sets the CreationDate field's value. func (s *ActivityListItem) SetCreationDate(v time.Time) *ActivityListItem { s.CreationDate = &v return s } // SetName sets the Name field's value. func (s *ActivityListItem) SetName(v string) *ActivityListItem { s.Name = &v return s } // Contains details about an activity schedule failure that occurred during // an execution. type ActivityScheduleFailedEventDetails struct { _ struct{} `type:"structure"` // A more detailed explanation of the cause of the failure. // // Cause is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by ActivityScheduleFailedEventDetails's // String and GoString methods. Cause *string `locationName:"cause" type:"string" sensitive:"true"` // The error code of the failure. // // Error is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by ActivityScheduleFailedEventDetails's // String and GoString methods. Error *string `locationName:"error" type:"string" sensitive:"true"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ActivityScheduleFailedEventDetails) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ActivityScheduleFailedEventDetails) GoString() string { return s.String() } // SetCause sets the Cause field's value. func (s *ActivityScheduleFailedEventDetails) SetCause(v string) *ActivityScheduleFailedEventDetails { s.Cause = &v return s } // SetError sets the Error field's value. func (s *ActivityScheduleFailedEventDetails) SetError(v string) *ActivityScheduleFailedEventDetails { s.Error = &v return s } // Contains details about an activity scheduled during an execution. type ActivityScheduledEventDetails struct { _ struct{} `type:"structure"` // The maximum allowed duration between two heartbeats for the activity task. HeartbeatInSeconds *int64 `locationName:"heartbeatInSeconds" type:"long"` // The JSON data input to the activity task. Length constraints apply to the // payload size, and are expressed as bytes in UTF-8 encoding. // // Input is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by ActivityScheduledEventDetails's // String and GoString methods. Input *string `locationName:"input" type:"string" sensitive:"true"` // Contains details about the input for an execution history event. InputDetails *HistoryEventExecutionDataDetails `locationName:"inputDetails" type:"structure"` // The Amazon Resource Name (ARN) of the scheduled activity. // // Resource is a required field Resource *string `locationName:"resource" min:"1" type:"string" required:"true"` // The maximum allowed duration of the activity task. TimeoutInSeconds *int64 `locationName:"timeoutInSeconds" type:"long"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ActivityScheduledEventDetails) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ActivityScheduledEventDetails) GoString() string { return s.String() } // SetHeartbeatInSeconds sets the HeartbeatInSeconds field's value. func (s *ActivityScheduledEventDetails) SetHeartbeatInSeconds(v int64) *ActivityScheduledEventDetails { s.HeartbeatInSeconds = &v return s } // SetInput sets the Input field's value. func (s *ActivityScheduledEventDetails) SetInput(v string) *ActivityScheduledEventDetails { s.Input = &v return s } // SetInputDetails sets the InputDetails field's value. func (s *ActivityScheduledEventDetails) SetInputDetails(v *HistoryEventExecutionDataDetails) *ActivityScheduledEventDetails { s.InputDetails = v return s } // SetResource sets the Resource field's value. func (s *ActivityScheduledEventDetails) SetResource(v string) *ActivityScheduledEventDetails { s.Resource = &v return s } // SetTimeoutInSeconds sets the TimeoutInSeconds field's value. func (s *ActivityScheduledEventDetails) SetTimeoutInSeconds(v int64) *ActivityScheduledEventDetails { s.TimeoutInSeconds = &v return s } // Contains details about the start of an activity during an execution. type ActivityStartedEventDetails struct { _ struct{} `type:"structure"` // The name of the worker that the task is assigned to. These names are provided // by the workers when calling GetActivityTask. WorkerName *string `locationName:"workerName" type:"string"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ActivityStartedEventDetails) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ActivityStartedEventDetails) GoString() string { return s.String() } // SetWorkerName sets the WorkerName field's value. func (s *ActivityStartedEventDetails) SetWorkerName(v string) *ActivityStartedEventDetails { s.WorkerName = &v return s } // Contains details about an activity that successfully terminated during an // execution. type ActivitySucceededEventDetails struct { _ struct{} `type:"structure"` // The JSON data output by the activity task. Length constraints apply to the // payload size, and are expressed as bytes in UTF-8 encoding. // // Output is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by ActivitySucceededEventDetails's // String and GoString methods. Output *string `locationName:"output" type:"string" sensitive:"true"` // Contains details about the output of an execution history event. OutputDetails *HistoryEventExecutionDataDetails `locationName:"outputDetails" type:"structure"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ActivitySucceededEventDetails) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ActivitySucceededEventDetails) GoString() string { return s.String() } // SetOutput sets the Output field's value. func (s *ActivitySucceededEventDetails) SetOutput(v string) *ActivitySucceededEventDetails { s.Output = &v return s } // SetOutputDetails sets the OutputDetails field's value. func (s *ActivitySucceededEventDetails) SetOutputDetails(v *HistoryEventExecutionDataDetails) *ActivitySucceededEventDetails { s.OutputDetails = v return s } // Contains details about an activity timeout that occurred during an execution. type ActivityTimedOutEventDetails struct { _ struct{} `type:"structure"` // A more detailed explanation of the cause of the timeout. // // Cause is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by ActivityTimedOutEventDetails's // String and GoString methods. Cause *string `locationName:"cause" type:"string" sensitive:"true"` // The error code of the failure. // // Error is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by ActivityTimedOutEventDetails's // String and GoString methods. Error *string `locationName:"error" type:"string" sensitive:"true"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ActivityTimedOutEventDetails) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ActivityTimedOutEventDetails) GoString() string { return s.String() } // SetCause sets the Cause field's value. func (s *ActivityTimedOutEventDetails) SetCause(v string) *ActivityTimedOutEventDetails { s.Cause = &v return s } // SetError sets the Error field's value. func (s *ActivityTimedOutEventDetails) SetError(v string) *ActivityTimedOutEventDetails { s.Error = &v return s } // The maximum number of workers concurrently polling for activity tasks has // been reached. type ActivityWorkerLimitExceeded struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ActivityWorkerLimitExceeded) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ActivityWorkerLimitExceeded) GoString() string { return s.String() } func newErrorActivityWorkerLimitExceeded(v protocol.ResponseMetadata) error { return &ActivityWorkerLimitExceeded{ RespMetadata: v, } } // Code returns the exception type name. func (s *ActivityWorkerLimitExceeded) Code() string { return "ActivityWorkerLimitExceeded" } // Message returns the exception's message. func (s *ActivityWorkerLimitExceeded) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *ActivityWorkerLimitExceeded) OrigErr() error { return nil } func (s *ActivityWorkerLimitExceeded) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } // Status code returns the HTTP status code for the request's response error. func (s *ActivityWorkerLimitExceeded) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *ActivityWorkerLimitExceeded) RequestID() string { return s.RespMetadata.RequestID } // An object that describes workflow billing details. type BillingDetails struct { _ struct{} `type:"structure"` // Billed duration of your workflow, in milliseconds. BilledDurationInMilliseconds *int64 `locationName:"billedDurationInMilliseconds" type:"long"` // Billed memory consumption of your workflow, in MB. BilledMemoryUsedInMB *int64 `locationName:"billedMemoryUsedInMB" type:"long"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s BillingDetails) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s BillingDetails) GoString() string { return s.String() } // SetBilledDurationInMilliseconds sets the BilledDurationInMilliseconds field's value. func (s *BillingDetails) SetBilledDurationInMilliseconds(v int64) *BillingDetails { s.BilledDurationInMilliseconds = &v return s } // SetBilledMemoryUsedInMB sets the BilledMemoryUsedInMB field's value. func (s *BillingDetails) SetBilledMemoryUsedInMB(v int64) *BillingDetails { s.BilledMemoryUsedInMB = &v return s } // Provides details about execution input or output. type CloudWatchEventsExecutionDataDetails struct { _ struct{} `type:"structure"` // Indicates whether input or output was included in the response. Always true // for API calls. Included *bool `locationName:"included" type:"boolean"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s CloudWatchEventsExecutionDataDetails) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s CloudWatchEventsExecutionDataDetails) GoString() string { return s.String() } // SetIncluded sets the Included field's value. func (s *CloudWatchEventsExecutionDataDetails) SetIncluded(v bool) *CloudWatchEventsExecutionDataDetails { s.Included = &v return s } type CloudWatchLogsLogGroup struct { _ struct{} `type:"structure"` // The ARN of the the CloudWatch log group to which you want your logs emitted // to. The ARN must end with :* LogGroupArn *string `locationName:"logGroupArn" min:"1" type:"string"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s CloudWatchLogsLogGroup) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s CloudWatchLogsLogGroup) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *CloudWatchLogsLogGroup) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CloudWatchLogsLogGroup"} if s.LogGroupArn != nil && len(*s.LogGroupArn) < 1 { invalidParams.Add(request.NewErrParamMinLen("LogGroupArn", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetLogGroupArn sets the LogGroupArn field's value. func (s *CloudWatchLogsLogGroup) SetLogGroupArn(v string) *CloudWatchLogsLogGroup { s.LogGroupArn = &v return s } type CreateActivityInput struct { _ struct{} `type:"structure"` // The name of the activity to create. This name must be unique for your Amazon // Web Services account and region for 90 days. For more information, see Limits // Related to State Machine Executions (https://docs.aws.amazon.com/step-functions/latest/dg/limits.html#service-limits-state-machine-executions) // in the Step Functions Developer Guide. // // A name must not contain: // // * white space // // * brackets < > { } [ ] // // * wildcard characters ? * // // * special characters " # % \ ^ | ~ ` $ & , ; : / // // * control characters (U+0000-001F, U+007F-009F) // // To enable logging with CloudWatch Logs, the name should only contain 0-9, // A-Z, a-z, - and _. // // Name is a required field Name *string `locationName:"name" min:"1" type:"string" required:"true"` // The list of tags to add to a resource. // // An array of key-value pairs. For more information, see Using Cost Allocation // Tags (https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html) // in the Amazon Web Services Billing and Cost Management User Guide, and Controlling // Access Using IAM Tags (https://docs.aws.amazon.com/IAM/latest/UserGuide/access_iam-tags.html). // // Tags may only contain Unicode letters, digits, white space, or these symbols: // _ . : / = + - @. Tags []*Tag `locationName:"tags" type:"list"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s CreateActivityInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s CreateActivityInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *CreateActivityInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CreateActivityInput"} if s.Name == nil { invalidParams.Add(request.NewErrParamRequired("Name")) } if s.Name != nil && len(*s.Name) < 1 { invalidParams.Add(request.NewErrParamMinLen("Name", 1)) } if s.Tags != nil { for i, v := range s.Tags { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) } } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetName sets the Name field's value. func (s *CreateActivityInput) SetName(v string) *CreateActivityInput { s.Name = &v return s } // SetTags sets the Tags field's value. func (s *CreateActivityInput) SetTags(v []*Tag) *CreateActivityInput { s.Tags = v return s } type CreateActivityOutput struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) that identifies the created activity. // // ActivityArn is a required field ActivityArn *string `locationName:"activityArn" min:"1" type:"string" required:"true"` // The date the activity is created. // // CreationDate is a required field CreationDate *time.Time `locationName:"creationDate" type:"timestamp" required:"true"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s CreateActivityOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s CreateActivityOutput) GoString() string { return s.String() } // SetActivityArn sets the ActivityArn field's value. func (s *CreateActivityOutput) SetActivityArn(v string) *CreateActivityOutput { s.ActivityArn = &v return s } // SetCreationDate sets the CreationDate field's value. func (s *CreateActivityOutput) SetCreationDate(v time.Time) *CreateActivityOutput { s.CreationDate = &v return s } type CreateStateMachineInput struct { _ struct{} `type:"structure"` // The Amazon States Language definition of the state machine. See Amazon States // Language (https://docs.aws.amazon.com/step-functions/latest/dg/concepts-amazon-states-language.html). // // Definition is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by CreateStateMachineInput's // String and GoString methods. // // Definition is a required field Definition *string `locationName:"definition" min:"1" type:"string" required:"true" sensitive:"true"` // Defines what execution history events are logged and where they are logged. // // By default, the level is set to OFF. For more information see Log Levels // (https://docs.aws.amazon.com/step-functions/latest/dg/cloudwatch-log-level.html) // in the Step Functions User Guide. LoggingConfiguration *LoggingConfiguration `locationName:"loggingConfiguration" type:"structure"` // The name of the state machine. // // A name must not contain: // // * white space // // * brackets < > { } [ ] // // * wildcard characters ? * // // * special characters " # % \ ^ | ~ ` $ & , ; : / // // * control characters (U+0000-001F, U+007F-009F) // // To enable logging with CloudWatch Logs, the name should only contain 0-9, // A-Z, a-z, - and _. // // Name is a required field Name *string `locationName:"name" min:"1" type:"string" required:"true"` // The Amazon Resource Name (ARN) of the IAM role to use for this state machine. // // RoleArn is a required field RoleArn *string `locationName:"roleArn" min:"1" type:"string" required:"true"` // Tags to be added when creating a state machine. // // An array of key-value pairs. For more information, see Using Cost Allocation // Tags (https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html) // in the Amazon Web Services Billing and Cost Management User Guide, and Controlling // Access Using IAM Tags (https://docs.aws.amazon.com/IAM/latest/UserGuide/access_iam-tags.html). // // Tags may only contain Unicode letters, digits, white space, or these symbols: // _ . : / = + - @. Tags []*Tag `locationName:"tags" type:"list"` // Selects whether X-Ray tracing is enabled. TracingConfiguration *TracingConfiguration `locationName:"tracingConfiguration" type:"structure"` // Determines whether a Standard or Express state machine is created. The default // is STANDARD. You cannot update the type of a state machine once it has been // created. Type *string `locationName:"type" type:"string" enum:"StateMachineType"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s CreateStateMachineInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s CreateStateMachineInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *CreateStateMachineInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CreateStateMachineInput"} if s.Definition == nil { invalidParams.Add(request.NewErrParamRequired("Definition")) } if s.Definition != nil && len(*s.Definition) < 1 { invalidParams.Add(request.NewErrParamMinLen("Definition", 1)) } if s.Name == nil { invalidParams.Add(request.NewErrParamRequired("Name")) } if s.Name != nil && len(*s.Name) < 1 { invalidParams.Add(request.NewErrParamMinLen("Name", 1)) } if s.RoleArn == nil { invalidParams.Add(request.NewErrParamRequired("RoleArn")) } if s.RoleArn != nil && len(*s.RoleArn) < 1 { invalidParams.Add(request.NewErrParamMinLen("RoleArn", 1)) } if s.LoggingConfiguration != nil { if err := s.LoggingConfiguration.Validate(); err != nil { invalidParams.AddNested("LoggingConfiguration", err.(request.ErrInvalidParams)) } } if s.Tags != nil { for i, v := range s.Tags { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) } } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetDefinition sets the Definition field's value. func (s *CreateStateMachineInput) SetDefinition(v string) *CreateStateMachineInput { s.Definition = &v return s } // SetLoggingConfiguration sets the LoggingConfiguration field's value. func (s *CreateStateMachineInput) SetLoggingConfiguration(v *LoggingConfiguration) *CreateStateMachineInput { s.LoggingConfiguration = v return s } // SetName sets the Name field's value. func (s *CreateStateMachineInput) SetName(v string) *CreateStateMachineInput { s.Name = &v return s } // SetRoleArn sets the RoleArn field's value. func (s *CreateStateMachineInput) SetRoleArn(v string) *CreateStateMachineInput { s.RoleArn = &v return s } // SetTags sets the Tags field's value. func (s *CreateStateMachineInput) SetTags(v []*Tag) *CreateStateMachineInput { s.Tags = v return s } // SetTracingConfiguration sets the TracingConfiguration field's value. func (s *CreateStateMachineInput) SetTracingConfiguration(v *TracingConfiguration) *CreateStateMachineInput { s.TracingConfiguration = v return s } // SetType sets the Type field's value. func (s *CreateStateMachineInput) SetType(v string) *CreateStateMachineInput { s.Type = &v return s } type CreateStateMachineOutput struct { _ struct{} `type:"structure"` // The date the state machine is created. // // CreationDate is a required field CreationDate *time.Time `locationName:"creationDate" type:"timestamp" required:"true"` // The Amazon Resource Name (ARN) that identifies the created state machine. // // StateMachineArn is a required field StateMachineArn *string `locationName:"stateMachineArn" min:"1" type:"string" required:"true"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s CreateStateMachineOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s CreateStateMachineOutput) GoString() string { return s.String() } // SetCreationDate sets the CreationDate field's value. func (s *CreateStateMachineOutput) SetCreationDate(v time.Time) *CreateStateMachineOutput { s.CreationDate = &v return s } // SetStateMachineArn sets the StateMachineArn field's value. func (s *CreateStateMachineOutput) SetStateMachineArn(v string) *CreateStateMachineOutput { s.StateMachineArn = &v return s } type DeleteActivityInput struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) of the activity to delete. // // ActivityArn is a required field ActivityArn *string `locationName:"activityArn" min:"1" type:"string" required:"true"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s DeleteActivityInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s DeleteActivityInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DeleteActivityInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DeleteActivityInput"} if s.ActivityArn == nil { invalidParams.Add(request.NewErrParamRequired("ActivityArn")) } if s.ActivityArn != nil && len(*s.ActivityArn) < 1 { invalidParams.Add(request.NewErrParamMinLen("ActivityArn", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetActivityArn sets the ActivityArn field's value. func (s *DeleteActivityInput) SetActivityArn(v string) *DeleteActivityInput { s.ActivityArn = &v return s } type DeleteActivityOutput struct { _ struct{} `type:"structure"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s DeleteActivityOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s DeleteActivityOutput) GoString() string { return s.String() } type DeleteStateMachineInput struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) of the state machine to delete. // // StateMachineArn is a required field StateMachineArn *string `locationName:"stateMachineArn" min:"1" type:"string" required:"true"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s DeleteStateMachineInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s DeleteStateMachineInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DeleteStateMachineInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DeleteStateMachineInput"} if s.StateMachineArn == nil { invalidParams.Add(request.NewErrParamRequired("StateMachineArn")) } if s.StateMachineArn != nil && len(*s.StateMachineArn) < 1 { invalidParams.Add(request.NewErrParamMinLen("StateMachineArn", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetStateMachineArn sets the StateMachineArn field's value. func (s *DeleteStateMachineInput) SetStateMachineArn(v string) *DeleteStateMachineInput { s.StateMachineArn = &v return s } type DeleteStateMachineOutput struct { _ struct{} `type:"structure"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s DeleteStateMachineOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s DeleteStateMachineOutput) GoString() string { return s.String() } type DescribeActivityInput struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) of the activity to describe. // // ActivityArn is a required field ActivityArn *string `locationName:"activityArn" min:"1" type:"string" required:"true"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s DescribeActivityInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s DescribeActivityInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DescribeActivityInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DescribeActivityInput"} if s.ActivityArn == nil { invalidParams.Add(request.NewErrParamRequired("ActivityArn")) } if s.ActivityArn != nil && len(*s.ActivityArn) < 1 { invalidParams.Add(request.NewErrParamMinLen("ActivityArn", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetActivityArn sets the ActivityArn field's value. func (s *DescribeActivityInput) SetActivityArn(v string) *DescribeActivityInput { s.ActivityArn = &v return s } type DescribeActivityOutput struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) that identifies the activity. // // ActivityArn is a required field ActivityArn *string `locationName:"activityArn" min:"1" type:"string" required:"true"` // The date the activity is created. // // CreationDate is a required field CreationDate *time.Time `locationName:"creationDate" type:"timestamp" required:"true"` // The name of the activity. // // A name must not contain: // // * white space // // * brackets < > { } [ ] // // * wildcard characters ? * // // * special characters " # % \ ^ | ~ ` $ & , ; : / // // * control characters (U+0000-001F, U+007F-009F) // // To enable logging with CloudWatch Logs, the name should only contain 0-9, // A-Z, a-z, - and _. // // Name is a required field Name *string `locationName:"name" min:"1" type:"string" required:"true"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s DescribeActivityOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s DescribeActivityOutput) GoString() string { return s.String() } // SetActivityArn sets the ActivityArn field's value. func (s *DescribeActivityOutput) SetActivityArn(v string) *DescribeActivityOutput { s.ActivityArn = &v return s } // SetCreationDate sets the CreationDate field's value. func (s *DescribeActivityOutput) SetCreationDate(v time.Time) *DescribeActivityOutput { s.CreationDate = &v return s } // SetName sets the Name field's value. func (s *DescribeActivityOutput) SetName(v string) *DescribeActivityOutput { s.Name = &v return s } type DescribeExecutionInput struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) of the execution to describe. // // ExecutionArn is a required field ExecutionArn *string `locationName:"executionArn" min:"1" type:"string" required:"true"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s DescribeExecutionInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s DescribeExecutionInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DescribeExecutionInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DescribeExecutionInput"} if s.ExecutionArn == nil { invalidParams.Add(request.NewErrParamRequired("ExecutionArn")) } if s.ExecutionArn != nil && len(*s.ExecutionArn) < 1 { invalidParams.Add(request.NewErrParamMinLen("ExecutionArn", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetExecutionArn sets the ExecutionArn field's value. func (s *DescribeExecutionInput) SetExecutionArn(v string) *DescribeExecutionInput { s.ExecutionArn = &v return s } type DescribeExecutionOutput struct { _ struct{} `type:"structure"` // The cause string if the state machine execution failed. // // Cause is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by DescribeExecutionOutput's // String and GoString methods. Cause *string `locationName:"cause" type:"string" sensitive:"true"` // The error string if the state machine execution failed. // // Error is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by DescribeExecutionOutput's // String and GoString methods. Error *string `locationName:"error" type:"string" sensitive:"true"` // The Amazon Resource Name (ARN) that identifies the execution. // // ExecutionArn is a required field ExecutionArn *string `locationName:"executionArn" min:"1" type:"string" required:"true"` // The string that contains the JSON input data of the execution. Length constraints // apply to the payload size, and are expressed as bytes in UTF-8 encoding. // // Input is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by DescribeExecutionOutput's // String and GoString methods. Input *string `locationName:"input" type:"string" sensitive:"true"` // Provides details about execution input or output. InputDetails *CloudWatchEventsExecutionDataDetails `locationName:"inputDetails" type:"structure"` // The Amazon Resource Name (ARN) that identifies a Map Run, which dispatched // this execution. MapRunArn *string `locationName:"mapRunArn" min:"1" type:"string"` // The name of the execution. // // A name must not contain: // // * white space // // * brackets < > { } [ ] // // * wildcard characters ? * // // * special characters " # % \ ^ | ~ ` $ & , ; : / // // * control characters (U+0000-001F, U+007F-009F) // // To enable logging with CloudWatch Logs, the name should only contain 0-9, // A-Z, a-z, - and _. Name *string `locationName:"name" min:"1" type:"string"` // The JSON output data of the execution. Length constraints apply to the payload // size, and are expressed as bytes in UTF-8 encoding. // // This field is set only if the execution succeeds. If the execution fails, // this field is null. // // Output is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by DescribeExecutionOutput's // String and GoString methods. Output *string `locationName:"output" type:"string" sensitive:"true"` // Provides details about execution input or output. OutputDetails *CloudWatchEventsExecutionDataDetails `locationName:"outputDetails" type:"structure"` // The date the execution is started. // // StartDate is a required field StartDate *time.Time `locationName:"startDate" type:"timestamp" required:"true"` // The Amazon Resource Name (ARN) of the executed stated machine. // // StateMachineArn is a required field StateMachineArn *string `locationName:"stateMachineArn" min:"1" type:"string" required:"true"` // The current status of the execution. // // Status is a required field Status *string `locationName:"status" type:"string" required:"true" enum:"ExecutionStatus"` // If the execution has already ended, the date the execution stopped. StopDate *time.Time `locationName:"stopDate" type:"timestamp"` // The X-Ray trace header that was passed to the execution. TraceHeader *string `locationName:"traceHeader" type:"string"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s DescribeExecutionOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s DescribeExecutionOutput) GoString() string { return s.String() } // SetCause sets the Cause field's value. func (s *DescribeExecutionOutput) SetCause(v string) *DescribeExecutionOutput { s.Cause = &v return s } // SetError sets the Error field's value. func (s *DescribeExecutionOutput) SetError(v string) *DescribeExecutionOutput { s.Error = &v return s } // SetExecutionArn sets the ExecutionArn field's value. func (s *DescribeExecutionOutput) SetExecutionArn(v string) *DescribeExecutionOutput { s.ExecutionArn = &v return s } // SetInput sets the Input field's value. func (s *DescribeExecutionOutput) SetInput(v string) *DescribeExecutionOutput { s.Input = &v return s } // SetInputDetails sets the InputDetails field's value. func (s *DescribeExecutionOutput) SetInputDetails(v *CloudWatchEventsExecutionDataDetails) *DescribeExecutionOutput { s.InputDetails = v return s } // SetMapRunArn sets the MapRunArn field's value. func (s *DescribeExecutionOutput) SetMapRunArn(v string) *DescribeExecutionOutput { s.MapRunArn = &v return s } // SetName sets the Name field's value. func (s *DescribeExecutionOutput) SetName(v string) *DescribeExecutionOutput { s.Name = &v return s } // SetOutput sets the Output field's value. func (s *DescribeExecutionOutput) SetOutput(v string) *DescribeExecutionOutput { s.Output = &v return s } // SetOutputDetails sets the OutputDetails field's value. func (s *DescribeExecutionOutput) SetOutputDetails(v *CloudWatchEventsExecutionDataDetails) *DescribeExecutionOutput { s.OutputDetails = v return s } // SetStartDate sets the StartDate field's value. func (s *DescribeExecutionOutput) SetStartDate(v time.Time) *DescribeExecutionOutput { s.StartDate = &v return s } // SetStateMachineArn sets the StateMachineArn field's value. func (s *DescribeExecutionOutput) SetStateMachineArn(v string) *DescribeExecutionOutput { s.StateMachineArn = &v return s } // SetStatus sets the Status field's value. func (s *DescribeExecutionOutput) SetStatus(v string) *DescribeExecutionOutput { s.Status = &v return s } // SetStopDate sets the StopDate field's value. func (s *DescribeExecutionOutput) SetStopDate(v time.Time) *DescribeExecutionOutput { s.StopDate = &v return s } // SetTraceHeader sets the TraceHeader field's value. func (s *DescribeExecutionOutput) SetTraceHeader(v string) *DescribeExecutionOutput { s.TraceHeader = &v return s } type DescribeMapRunInput struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) that identifies a Map Run. // // MapRunArn is a required field MapRunArn *string `locationName:"mapRunArn" min:"1" type:"string" required:"true"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s DescribeMapRunInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s DescribeMapRunInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DescribeMapRunInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DescribeMapRunInput"} if s.MapRunArn == nil { invalidParams.Add(request.NewErrParamRequired("MapRunArn")) } if s.MapRunArn != nil && len(*s.MapRunArn) < 1 { invalidParams.Add(request.NewErrParamMinLen("MapRunArn", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetMapRunArn sets the MapRunArn field's value. func (s *DescribeMapRunInput) SetMapRunArn(v string) *DescribeMapRunInput { s.MapRunArn = &v return s } type DescribeMapRunOutput struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) that identifies the execution in which the // Map Run was started. // // ExecutionArn is a required field ExecutionArn *string `locationName:"executionArn" min:"1" type:"string" required:"true"` // A JSON object that contains information about the total number of child workflow // executions for the Map Run, and the count of child workflow executions for // each status, such as failed and succeeded. // // ExecutionCounts is a required field ExecutionCounts *MapRunExecutionCounts `locationName:"executionCounts" type:"structure" required:"true"` // A JSON object that contains information about the total number of items, // and the item count for each processing status, such as pending and failed. // // ItemCounts is a required field ItemCounts *MapRunItemCounts `locationName:"itemCounts" type:"structure" required:"true"` // The Amazon Resource Name (ARN) that identifies a Map Run. // // MapRunArn is a required field MapRunArn *string `locationName:"mapRunArn" min:"1" type:"string" required:"true"` // The maximum number of child workflow executions configured to run in parallel // for the Map Run at the same time. // // MaxConcurrency is a required field MaxConcurrency *int64 `locationName:"maxConcurrency" type:"integer" required:"true"` // The date when the Map Run was started. // // StartDate is a required field StartDate *time.Time `locationName:"startDate" type:"timestamp" required:"true"` // The current status of the Map Run. // // Status is a required field Status *string `locationName:"status" type:"string" required:"true" enum:"MapRunStatus"` // The date when the Map Run was stopped. StopDate *time.Time `locationName:"stopDate" type:"timestamp"` // The maximum number of failed child workflow executions before the Map Run // fails. // // ToleratedFailureCount is a required field ToleratedFailureCount *int64 `locationName:"toleratedFailureCount" type:"long" required:"true"` // The maximum percentage of failed child workflow executions before the Map // Run fails. // // ToleratedFailurePercentage is a required field ToleratedFailurePercentage *float64 `locationName:"toleratedFailurePercentage" type:"float" required:"true"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s DescribeMapRunOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s DescribeMapRunOutput) GoString() string { return s.String() } // SetExecutionArn sets the ExecutionArn field's value. func (s *DescribeMapRunOutput) SetExecutionArn(v string) *DescribeMapRunOutput { s.ExecutionArn = &v return s } // SetExecutionCounts sets the ExecutionCounts field's value. func (s *DescribeMapRunOutput) SetExecutionCounts(v *MapRunExecutionCounts) *DescribeMapRunOutput { s.ExecutionCounts = v return s } // SetItemCounts sets the ItemCounts field's value. func (s *DescribeMapRunOutput) SetItemCounts(v *MapRunItemCounts) *DescribeMapRunOutput { s.ItemCounts = v return s } // SetMapRunArn sets the MapRunArn field's value. func (s *DescribeMapRunOutput) SetMapRunArn(v string) *DescribeMapRunOutput { s.MapRunArn = &v return s } // SetMaxConcurrency sets the MaxConcurrency field's value. func (s *DescribeMapRunOutput) SetMaxConcurrency(v int64) *DescribeMapRunOutput { s.MaxConcurrency = &v return s } // SetStartDate sets the StartDate field's value. func (s *DescribeMapRunOutput) SetStartDate(v time.Time) *DescribeMapRunOutput { s.StartDate = &v return s } // SetStatus sets the Status field's value. func (s *DescribeMapRunOutput) SetStatus(v string) *DescribeMapRunOutput { s.Status = &v return s } // SetStopDate sets the StopDate field's value. func (s *DescribeMapRunOutput) SetStopDate(v time.Time) *DescribeMapRunOutput { s.StopDate = &v return s } // SetToleratedFailureCount sets the ToleratedFailureCount field's value. func (s *DescribeMapRunOutput) SetToleratedFailureCount(v int64) *DescribeMapRunOutput { s.ToleratedFailureCount = &v return s } // SetToleratedFailurePercentage sets the ToleratedFailurePercentage field's value. func (s *DescribeMapRunOutput) SetToleratedFailurePercentage(v float64) *DescribeMapRunOutput { s.ToleratedFailurePercentage = &v return s } type DescribeStateMachineForExecutionInput struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) of the execution you want state machine information // for. // // ExecutionArn is a required field ExecutionArn *string `locationName:"executionArn" min:"1" type:"string" required:"true"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s DescribeStateMachineForExecutionInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s DescribeStateMachineForExecutionInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DescribeStateMachineForExecutionInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DescribeStateMachineForExecutionInput"} if s.ExecutionArn == nil { invalidParams.Add(request.NewErrParamRequired("ExecutionArn")) } if s.ExecutionArn != nil && len(*s.ExecutionArn) < 1 { invalidParams.Add(request.NewErrParamMinLen("ExecutionArn", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetExecutionArn sets the ExecutionArn field's value. func (s *DescribeStateMachineForExecutionInput) SetExecutionArn(v string) *DescribeStateMachineForExecutionInput { s.ExecutionArn = &v return s } type DescribeStateMachineForExecutionOutput struct { _ struct{} `type:"structure"` // The Amazon States Language definition of the state machine. See Amazon States // Language (https://docs.aws.amazon.com/step-functions/latest/dg/concepts-amazon-states-language.html). // // Definition is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by DescribeStateMachineForExecutionOutput's // String and GoString methods. // // Definition is a required field Definition *string `locationName:"definition" min:"1" type:"string" required:"true" sensitive:"true"` // A user-defined or an auto-generated string that identifies a Map state. This // field is returned only if the executionArn is a child workflow execution // that was started by a Distributed Map state. Label *string `locationName:"label" type:"string"` // The LoggingConfiguration data type is used to set CloudWatch Logs options. LoggingConfiguration *LoggingConfiguration `locationName:"loggingConfiguration" type:"structure"` // The Amazon Resource Name (ARN) of the Map Run that started the child workflow // execution. This field is returned only if the executionArn is a child workflow // execution that was started by a Distributed Map state. MapRunArn *string `locationName:"mapRunArn" min:"1" type:"string"` // The name of the state machine associated with the execution. // // Name is a required field Name *string `locationName:"name" min:"1" type:"string" required:"true"` // The Amazon Resource Name (ARN) of the IAM role of the State Machine for the // execution. // // RoleArn is a required field RoleArn *string `locationName:"roleArn" min:"1" type:"string" required:"true"` // The Amazon Resource Name (ARN) of the state machine associated with the execution. // // StateMachineArn is a required field StateMachineArn *string `locationName:"stateMachineArn" min:"1" type:"string" required:"true"` // Selects whether X-Ray tracing is enabled. TracingConfiguration *TracingConfiguration `locationName:"tracingConfiguration" type:"structure"` // The date and time the state machine associated with an execution was updated. // For a newly created state machine, this is the creation date. // // UpdateDate is a required field UpdateDate *time.Time `locationName:"updateDate" type:"timestamp" required:"true"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s DescribeStateMachineForExecutionOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s DescribeStateMachineForExecutionOutput) GoString() string { return s.String() } // SetDefinition sets the Definition field's value. func (s *DescribeStateMachineForExecutionOutput) SetDefinition(v string) *DescribeStateMachineForExecutionOutput { s.Definition = &v return s } // SetLabel sets the Label field's value. func (s *DescribeStateMachineForExecutionOutput) SetLabel(v string) *DescribeStateMachineForExecutionOutput { s.Label = &v return s } // SetLoggingConfiguration sets the LoggingConfiguration field's value. func (s *DescribeStateMachineForExecutionOutput) SetLoggingConfiguration(v *LoggingConfiguration) *DescribeStateMachineForExecutionOutput { s.LoggingConfiguration = v return s } // SetMapRunArn sets the MapRunArn field's value. func (s *DescribeStateMachineForExecutionOutput) SetMapRunArn(v string) *DescribeStateMachineForExecutionOutput { s.MapRunArn = &v return s } // SetName sets the Name field's value. func (s *DescribeStateMachineForExecutionOutput) SetName(v string) *DescribeStateMachineForExecutionOutput { s.Name = &v return s } // SetRoleArn sets the RoleArn field's value. func (s *DescribeStateMachineForExecutionOutput) SetRoleArn(v string) *DescribeStateMachineForExecutionOutput { s.RoleArn = &v return s } // SetStateMachineArn sets the StateMachineArn field's value. func (s *DescribeStateMachineForExecutionOutput) SetStateMachineArn(v string) *DescribeStateMachineForExecutionOutput { s.StateMachineArn = &v return s } // SetTracingConfiguration sets the TracingConfiguration field's value. func (s *DescribeStateMachineForExecutionOutput) SetTracingConfiguration(v *TracingConfiguration) *DescribeStateMachineForExecutionOutput { s.TracingConfiguration = v return s } // SetUpdateDate sets the UpdateDate field's value. func (s *DescribeStateMachineForExecutionOutput) SetUpdateDate(v time.Time) *DescribeStateMachineForExecutionOutput { s.UpdateDate = &v return s } type DescribeStateMachineInput struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) of the state machine to describe. // // StateMachineArn is a required field StateMachineArn *string `locationName:"stateMachineArn" min:"1" type:"string" required:"true"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s DescribeStateMachineInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s DescribeStateMachineInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *DescribeStateMachineInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DescribeStateMachineInput"} if s.StateMachineArn == nil { invalidParams.Add(request.NewErrParamRequired("StateMachineArn")) } if s.StateMachineArn != nil && len(*s.StateMachineArn) < 1 { invalidParams.Add(request.NewErrParamMinLen("StateMachineArn", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetStateMachineArn sets the StateMachineArn field's value. func (s *DescribeStateMachineInput) SetStateMachineArn(v string) *DescribeStateMachineInput { s.StateMachineArn = &v return s } type DescribeStateMachineOutput struct { _ struct{} `type:"structure"` // The date the state machine is created. // // CreationDate is a required field CreationDate *time.Time `locationName:"creationDate" type:"timestamp" required:"true"` // The Amazon States Language definition of the state machine. See Amazon States // Language (https://docs.aws.amazon.com/step-functions/latest/dg/concepts-amazon-states-language.html). // // Definition is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by DescribeStateMachineOutput's // String and GoString methods. // // Definition is a required field Definition *string `locationName:"definition" min:"1" type:"string" required:"true" sensitive:"true"` // A user-defined or an auto-generated string that identifies a Map state. This // parameter is present only if the stateMachineArn specified in input is a // qualified state machine ARN. Label *string `locationName:"label" type:"string"` // The LoggingConfiguration data type is used to set CloudWatch Logs options. LoggingConfiguration *LoggingConfiguration `locationName:"loggingConfiguration" type:"structure"` // The name of the state machine. // // A name must not contain: // // * white space // // * brackets < > { } [ ] // // * wildcard characters ? * // // * special characters " # % \ ^ | ~ ` $ & , ; : / // // * control characters (U+0000-001F, U+007F-009F) // // To enable logging with CloudWatch Logs, the name should only contain 0-9, // A-Z, a-z, - and _. // // Name is a required field Name *string `locationName:"name" min:"1" type:"string" required:"true"` // The Amazon Resource Name (ARN) of the IAM role used when creating this state // machine. (The IAM role maintains security by granting Step Functions access // to Amazon Web Services resources.) // // RoleArn is a required field RoleArn *string `locationName:"roleArn" min:"1" type:"string" required:"true"` // The Amazon Resource Name (ARN) that identifies the state machine. // // StateMachineArn is a required field StateMachineArn *string `locationName:"stateMachineArn" min:"1" type:"string" required:"true"` // The current status of the state machine. Status *string `locationName:"status" type:"string" enum:"StateMachineStatus"` // Selects whether X-Ray tracing is enabled. TracingConfiguration *TracingConfiguration `locationName:"tracingConfiguration" type:"structure"` // The type of the state machine (STANDARD or EXPRESS). // // Type is a required field Type *string `locationName:"type" type:"string" required:"true" enum:"StateMachineType"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s DescribeStateMachineOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s DescribeStateMachineOutput) GoString() string { return s.String() } // SetCreationDate sets the CreationDate field's value. func (s *DescribeStateMachineOutput) SetCreationDate(v time.Time) *DescribeStateMachineOutput { s.CreationDate = &v return s } // SetDefinition sets the Definition field's value. func (s *DescribeStateMachineOutput) SetDefinition(v string) *DescribeStateMachineOutput { s.Definition = &v return s } // SetLabel sets the Label field's value. func (s *DescribeStateMachineOutput) SetLabel(v string) *DescribeStateMachineOutput { s.Label = &v return s } // SetLoggingConfiguration sets the LoggingConfiguration field's value. func (s *DescribeStateMachineOutput) SetLoggingConfiguration(v *LoggingConfiguration) *DescribeStateMachineOutput { s.LoggingConfiguration = v return s } // SetName sets the Name field's value. func (s *DescribeStateMachineOutput) SetName(v string) *DescribeStateMachineOutput { s.Name = &v return s } // SetRoleArn sets the RoleArn field's value. func (s *DescribeStateMachineOutput) SetRoleArn(v string) *DescribeStateMachineOutput { s.RoleArn = &v return s } // SetStateMachineArn sets the StateMachineArn field's value. func (s *DescribeStateMachineOutput) SetStateMachineArn(v string) *DescribeStateMachineOutput { s.StateMachineArn = &v return s } // SetStatus sets the Status field's value. func (s *DescribeStateMachineOutput) SetStatus(v string) *DescribeStateMachineOutput { s.Status = &v return s } // SetTracingConfiguration sets the TracingConfiguration field's value. func (s *DescribeStateMachineOutput) SetTracingConfiguration(v *TracingConfiguration) *DescribeStateMachineOutput { s.TracingConfiguration = v return s } // SetType sets the Type field's value. func (s *DescribeStateMachineOutput) SetType(v string) *DescribeStateMachineOutput { s.Type = &v return s } // Contains details about an abort of an execution. type ExecutionAbortedEventDetails struct { _ struct{} `type:"structure"` // A more detailed explanation of the cause of the failure. // // Cause is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by ExecutionAbortedEventDetails's // String and GoString methods. Cause *string `locationName:"cause" type:"string" sensitive:"true"` // The error code of the failure. // // Error is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by ExecutionAbortedEventDetails's // String and GoString methods. Error *string `locationName:"error" type:"string" sensitive:"true"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ExecutionAbortedEventDetails) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ExecutionAbortedEventDetails) GoString() string { return s.String() } // SetCause sets the Cause field's value. func (s *ExecutionAbortedEventDetails) SetCause(v string) *ExecutionAbortedEventDetails { s.Cause = &v return s } // SetError sets the Error field's value. func (s *ExecutionAbortedEventDetails) SetError(v string) *ExecutionAbortedEventDetails { s.Error = &v return s } // The execution has the same name as another execution (but a different input). // // Executions with the same name and input are considered idempotent. type ExecutionAlreadyExists struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ExecutionAlreadyExists) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ExecutionAlreadyExists) GoString() string { return s.String() } func newErrorExecutionAlreadyExists(v protocol.ResponseMetadata) error { return &ExecutionAlreadyExists{ RespMetadata: v, } } // Code returns the exception type name. func (s *ExecutionAlreadyExists) Code() string { return "ExecutionAlreadyExists" } // Message returns the exception's message. func (s *ExecutionAlreadyExists) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *ExecutionAlreadyExists) OrigErr() error { return nil } func (s *ExecutionAlreadyExists) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } // Status code returns the HTTP status code for the request's response error. func (s *ExecutionAlreadyExists) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *ExecutionAlreadyExists) RequestID() string { return s.RespMetadata.RequestID } // The specified execution does not exist. type ExecutionDoesNotExist struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ExecutionDoesNotExist) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ExecutionDoesNotExist) GoString() string { return s.String() } func newErrorExecutionDoesNotExist(v protocol.ResponseMetadata) error { return &ExecutionDoesNotExist{ RespMetadata: v, } } // Code returns the exception type name. func (s *ExecutionDoesNotExist) Code() string { return "ExecutionDoesNotExist" } // Message returns the exception's message. func (s *ExecutionDoesNotExist) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *ExecutionDoesNotExist) OrigErr() error { return nil } func (s *ExecutionDoesNotExist) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } // Status code returns the HTTP status code for the request's response error. func (s *ExecutionDoesNotExist) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *ExecutionDoesNotExist) RequestID() string { return s.RespMetadata.RequestID } // Contains details about an execution failure event. type ExecutionFailedEventDetails struct { _ struct{} `type:"structure"` // A more detailed explanation of the cause of the failure. // // Cause is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by ExecutionFailedEventDetails's // String and GoString methods. Cause *string `locationName:"cause" type:"string" sensitive:"true"` // The error code of the failure. // // Error is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by ExecutionFailedEventDetails's // String and GoString methods. Error *string `locationName:"error" type:"string" sensitive:"true"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ExecutionFailedEventDetails) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ExecutionFailedEventDetails) GoString() string { return s.String() } // SetCause sets the Cause field's value. func (s *ExecutionFailedEventDetails) SetCause(v string) *ExecutionFailedEventDetails { s.Cause = &v return s } // SetError sets the Error field's value. func (s *ExecutionFailedEventDetails) SetError(v string) *ExecutionFailedEventDetails { s.Error = &v return s } // The maximum number of running executions has been reached. Running executions // must end or be stopped before a new execution can be started. type ExecutionLimitExceeded struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ExecutionLimitExceeded) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ExecutionLimitExceeded) GoString() string { return s.String() } func newErrorExecutionLimitExceeded(v protocol.ResponseMetadata) error { return &ExecutionLimitExceeded{ RespMetadata: v, } } // Code returns the exception type name. func (s *ExecutionLimitExceeded) Code() string { return "ExecutionLimitExceeded" } // Message returns the exception's message. func (s *ExecutionLimitExceeded) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *ExecutionLimitExceeded) OrigErr() error { return nil } func (s *ExecutionLimitExceeded) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } // Status code returns the HTTP status code for the request's response error. func (s *ExecutionLimitExceeded) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *ExecutionLimitExceeded) RequestID() string { return s.RespMetadata.RequestID } // Contains details about an execution. type ExecutionListItem struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) that identifies the execution. // // ExecutionArn is a required field ExecutionArn *string `locationName:"executionArn" min:"1" type:"string" required:"true"` // The total number of items processed in a child workflow execution. This field // is returned only if mapRunArn was specified in the ListExecutions API action. // If stateMachineArn was specified in ListExecutions, the itemCount field isn't // returned. ItemCount *int64 `locationName:"itemCount" type:"integer"` // The Amazon Resource Name (ARN) of a Map Run. This field is returned only // if mapRunArn was specified in the ListExecutions API action. If stateMachineArn // was specified in ListExecutions, the mapRunArn isn't returned. MapRunArn *string `locationName:"mapRunArn" min:"1" type:"string"` // The name of the execution. // // A name must not contain: // // * white space // // * brackets < > { } [ ] // // * wildcard characters ? * // // * special characters " # % \ ^ | ~ ` $ & , ; : / // // * control characters (U+0000-001F, U+007F-009F) // // To enable logging with CloudWatch Logs, the name should only contain 0-9, // A-Z, a-z, - and _. // // Name is a required field Name *string `locationName:"name" min:"1" type:"string" required:"true"` // The date the execution started. // // StartDate is a required field StartDate *time.Time `locationName:"startDate" type:"timestamp" required:"true"` // The Amazon Resource Name (ARN) of the executed state machine. // // StateMachineArn is a required field StateMachineArn *string `locationName:"stateMachineArn" min:"1" type:"string" required:"true"` // The current status of the execution. // // Status is a required field Status *string `locationName:"status" type:"string" required:"true" enum:"ExecutionStatus"` // If the execution already ended, the date the execution stopped. StopDate *time.Time `locationName:"stopDate" type:"timestamp"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ExecutionListItem) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ExecutionListItem) GoString() string { return s.String() } // SetExecutionArn sets the ExecutionArn field's value. func (s *ExecutionListItem) SetExecutionArn(v string) *ExecutionListItem { s.ExecutionArn = &v return s } // SetItemCount sets the ItemCount field's value. func (s *ExecutionListItem) SetItemCount(v int64) *ExecutionListItem { s.ItemCount = &v return s } // SetMapRunArn sets the MapRunArn field's value. func (s *ExecutionListItem) SetMapRunArn(v string) *ExecutionListItem { s.MapRunArn = &v return s } // SetName sets the Name field's value. func (s *ExecutionListItem) SetName(v string) *ExecutionListItem { s.Name = &v return s } // SetStartDate sets the StartDate field's value. func (s *ExecutionListItem) SetStartDate(v time.Time) *ExecutionListItem { s.StartDate = &v return s } // SetStateMachineArn sets the StateMachineArn field's value. func (s *ExecutionListItem) SetStateMachineArn(v string) *ExecutionListItem { s.StateMachineArn = &v return s } // SetStatus sets the Status field's value. func (s *ExecutionListItem) SetStatus(v string) *ExecutionListItem { s.Status = &v return s } // SetStopDate sets the StopDate field's value. func (s *ExecutionListItem) SetStopDate(v time.Time) *ExecutionListItem { s.StopDate = &v return s } // Contains details about the start of the execution. type ExecutionStartedEventDetails struct { _ struct{} `type:"structure"` // The JSON data input to the execution. Length constraints apply to the payload // size, and are expressed as bytes in UTF-8 encoding. // // Input is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by ExecutionStartedEventDetails's // String and GoString methods. Input *string `locationName:"input" type:"string" sensitive:"true"` // Contains details about the input for an execution history event. InputDetails *HistoryEventExecutionDataDetails `locationName:"inputDetails" type:"structure"` // The Amazon Resource Name (ARN) of the IAM role used for executing Lambda // tasks. RoleArn *string `locationName:"roleArn" min:"1" type:"string"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ExecutionStartedEventDetails) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ExecutionStartedEventDetails) GoString() string { return s.String() } // SetInput sets the Input field's value. func (s *ExecutionStartedEventDetails) SetInput(v string) *ExecutionStartedEventDetails { s.Input = &v return s } // SetInputDetails sets the InputDetails field's value. func (s *ExecutionStartedEventDetails) SetInputDetails(v *HistoryEventExecutionDataDetails) *ExecutionStartedEventDetails { s.InputDetails = v return s } // SetRoleArn sets the RoleArn field's value. func (s *ExecutionStartedEventDetails) SetRoleArn(v string) *ExecutionStartedEventDetails { s.RoleArn = &v return s } // Contains details about the successful termination of the execution. type ExecutionSucceededEventDetails struct { _ struct{} `type:"structure"` // The JSON data output by the execution. Length constraints apply to the payload // size, and are expressed as bytes in UTF-8 encoding. // // Output is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by ExecutionSucceededEventDetails's // String and GoString methods. Output *string `locationName:"output" type:"string" sensitive:"true"` // Contains details about the output of an execution history event. OutputDetails *HistoryEventExecutionDataDetails `locationName:"outputDetails" type:"structure"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ExecutionSucceededEventDetails) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ExecutionSucceededEventDetails) GoString() string { return s.String() } // SetOutput sets the Output field's value. func (s *ExecutionSucceededEventDetails) SetOutput(v string) *ExecutionSucceededEventDetails { s.Output = &v return s } // SetOutputDetails sets the OutputDetails field's value. func (s *ExecutionSucceededEventDetails) SetOutputDetails(v *HistoryEventExecutionDataDetails) *ExecutionSucceededEventDetails { s.OutputDetails = v return s } // Contains details about the execution timeout that occurred during the execution. type ExecutionTimedOutEventDetails struct { _ struct{} `type:"structure"` // A more detailed explanation of the cause of the timeout. // // Cause is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by ExecutionTimedOutEventDetails's // String and GoString methods. Cause *string `locationName:"cause" type:"string" sensitive:"true"` // The error code of the failure. // // Error is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by ExecutionTimedOutEventDetails's // String and GoString methods. Error *string `locationName:"error" type:"string" sensitive:"true"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ExecutionTimedOutEventDetails) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ExecutionTimedOutEventDetails) GoString() string { return s.String() } // SetCause sets the Cause field's value. func (s *ExecutionTimedOutEventDetails) SetCause(v string) *ExecutionTimedOutEventDetails { s.Cause = &v return s } // SetError sets the Error field's value. func (s *ExecutionTimedOutEventDetails) SetError(v string) *ExecutionTimedOutEventDetails { s.Error = &v return s } type GetActivityTaskInput struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) of the activity to retrieve tasks from (assigned // when you create the task using CreateActivity.) // // ActivityArn is a required field ActivityArn *string `locationName:"activityArn" min:"1" type:"string" required:"true"` // You can provide an arbitrary name in order to identify the worker that the // task is assigned to. This name is used when it is logged in the execution // history. WorkerName *string `locationName:"workerName" min:"1" type:"string"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s GetActivityTaskInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s GetActivityTaskInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *GetActivityTaskInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "GetActivityTaskInput"} if s.ActivityArn == nil { invalidParams.Add(request.NewErrParamRequired("ActivityArn")) } if s.ActivityArn != nil && len(*s.ActivityArn) < 1 { invalidParams.Add(request.NewErrParamMinLen("ActivityArn", 1)) } if s.WorkerName != nil && len(*s.WorkerName) < 1 { invalidParams.Add(request.NewErrParamMinLen("WorkerName", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetActivityArn sets the ActivityArn field's value. func (s *GetActivityTaskInput) SetActivityArn(v string) *GetActivityTaskInput { s.ActivityArn = &v return s } // SetWorkerName sets the WorkerName field's value. func (s *GetActivityTaskInput) SetWorkerName(v string) *GetActivityTaskInput { s.WorkerName = &v return s } type GetActivityTaskOutput struct { _ struct{} `type:"structure"` // The string that contains the JSON input data for the task. Length constraints // apply to the payload size, and are expressed as bytes in UTF-8 encoding. // // Input is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by GetActivityTaskOutput's // String and GoString methods. Input *string `locationName:"input" type:"string" sensitive:"true"` // A token that identifies the scheduled task. This token must be copied and // included in subsequent calls to SendTaskHeartbeat, SendTaskSuccess or SendTaskFailure // in order to report the progress or completion of the task. TaskToken *string `locationName:"taskToken" min:"1" type:"string"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s GetActivityTaskOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s GetActivityTaskOutput) GoString() string { return s.String() } // SetInput sets the Input field's value. func (s *GetActivityTaskOutput) SetInput(v string) *GetActivityTaskOutput { s.Input = &v return s } // SetTaskToken sets the TaskToken field's value. func (s *GetActivityTaskOutput) SetTaskToken(v string) *GetActivityTaskOutput { s.TaskToken = &v return s } type GetExecutionHistoryInput struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) of the execution. // // ExecutionArn is a required field ExecutionArn *string `locationName:"executionArn" min:"1" type:"string" required:"true"` // You can select whether execution data (input or output of a history event) // is returned. The default is true. IncludeExecutionData *bool `locationName:"includeExecutionData" type:"boolean"` // The maximum number of results that are returned per call. You can use nextToken // to obtain further pages of results. The default is 100 and the maximum allowed // page size is 1000. A value of 0 uses the default. // // This is only an upper limit. The actual number of results returned per call // might be fewer than the specified maximum. MaxResults *int64 `locationName:"maxResults" type:"integer"` // If nextToken is returned, there are more results available. The value of // nextToken is a unique pagination token for each page. Make the call again // using the returned token to retrieve the next page. Keep all other arguments // unchanged. Each pagination token expires after 24 hours. Using an expired // pagination token will return an HTTP 400 InvalidToken error. NextToken *string `locationName:"nextToken" min:"1" type:"string"` // Lists events in descending order of their timeStamp. ReverseOrder *bool `locationName:"reverseOrder" type:"boolean"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s GetExecutionHistoryInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s GetExecutionHistoryInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *GetExecutionHistoryInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "GetExecutionHistoryInput"} if s.ExecutionArn == nil { invalidParams.Add(request.NewErrParamRequired("ExecutionArn")) } if s.ExecutionArn != nil && len(*s.ExecutionArn) < 1 { invalidParams.Add(request.NewErrParamMinLen("ExecutionArn", 1)) } if s.NextToken != nil && len(*s.NextToken) < 1 { invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetExecutionArn sets the ExecutionArn field's value. func (s *GetExecutionHistoryInput) SetExecutionArn(v string) *GetExecutionHistoryInput { s.ExecutionArn = &v return s } // SetIncludeExecutionData sets the IncludeExecutionData field's value. func (s *GetExecutionHistoryInput) SetIncludeExecutionData(v bool) *GetExecutionHistoryInput { s.IncludeExecutionData = &v return s } // SetMaxResults sets the MaxResults field's value. func (s *GetExecutionHistoryInput) SetMaxResults(v int64) *GetExecutionHistoryInput { s.MaxResults = &v return s } // SetNextToken sets the NextToken field's value. func (s *GetExecutionHistoryInput) SetNextToken(v string) *GetExecutionHistoryInput { s.NextToken = &v return s } // SetReverseOrder sets the ReverseOrder field's value. func (s *GetExecutionHistoryInput) SetReverseOrder(v bool) *GetExecutionHistoryInput { s.ReverseOrder = &v return s } type GetExecutionHistoryOutput struct { _ struct{} `type:"structure"` // The list of events that occurred in the execution. // // Events is a required field Events []*HistoryEvent `locationName:"events" type:"list" required:"true"` // If nextToken is returned, there are more results available. The value of // nextToken is a unique pagination token for each page. Make the call again // using the returned token to retrieve the next page. Keep all other arguments // unchanged. Each pagination token expires after 24 hours. Using an expired // pagination token will return an HTTP 400 InvalidToken error. NextToken *string `locationName:"nextToken" min:"1" type:"string"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s GetExecutionHistoryOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s GetExecutionHistoryOutput) GoString() string { return s.String() } // SetEvents sets the Events field's value. func (s *GetExecutionHistoryOutput) SetEvents(v []*HistoryEvent) *GetExecutionHistoryOutput { s.Events = v return s } // SetNextToken sets the NextToken field's value. func (s *GetExecutionHistoryOutput) SetNextToken(v string) *GetExecutionHistoryOutput { s.NextToken = &v return s } // Contains details about the events of an execution. type HistoryEvent struct { _ struct{} `type:"structure"` // Contains details about an activity that failed during an execution. ActivityFailedEventDetails *ActivityFailedEventDetails `locationName:"activityFailedEventDetails" type:"structure"` // Contains details about an activity schedule event that failed during an execution. ActivityScheduleFailedEventDetails *ActivityScheduleFailedEventDetails `locationName:"activityScheduleFailedEventDetails" type:"structure"` // Contains details about an activity scheduled during an execution. ActivityScheduledEventDetails *ActivityScheduledEventDetails `locationName:"activityScheduledEventDetails" type:"structure"` // Contains details about the start of an activity during an execution. ActivityStartedEventDetails *ActivityStartedEventDetails `locationName:"activityStartedEventDetails" type:"structure"` // Contains details about an activity that successfully terminated during an // execution. ActivitySucceededEventDetails *ActivitySucceededEventDetails `locationName:"activitySucceededEventDetails" type:"structure"` // Contains details about an activity timeout that occurred during an execution. ActivityTimedOutEventDetails *ActivityTimedOutEventDetails `locationName:"activityTimedOutEventDetails" type:"structure"` // Contains details about an abort of an execution. ExecutionAbortedEventDetails *ExecutionAbortedEventDetails `locationName:"executionAbortedEventDetails" type:"structure"` // Contains details about an execution failure event. ExecutionFailedEventDetails *ExecutionFailedEventDetails `locationName:"executionFailedEventDetails" type:"structure"` // Contains details about the start of the execution. ExecutionStartedEventDetails *ExecutionStartedEventDetails `locationName:"executionStartedEventDetails" type:"structure"` // Contains details about the successful termination of the execution. ExecutionSucceededEventDetails *ExecutionSucceededEventDetails `locationName:"executionSucceededEventDetails" type:"structure"` // Contains details about the execution timeout that occurred during the execution. ExecutionTimedOutEventDetails *ExecutionTimedOutEventDetails `locationName:"executionTimedOutEventDetails" type:"structure"` // The id of the event. Events are numbered sequentially, starting at one. // // Id is a required field Id *int64 `locationName:"id" type:"long" required:"true"` // Contains details about a Lambda function that failed during an execution. LambdaFunctionFailedEventDetails *LambdaFunctionFailedEventDetails `locationName:"lambdaFunctionFailedEventDetails" type:"structure"` // Contains details about a failed Lambda function schedule event that occurred // during an execution. LambdaFunctionScheduleFailedEventDetails *LambdaFunctionScheduleFailedEventDetails `locationName:"lambdaFunctionScheduleFailedEventDetails" type:"structure"` // Contains details about a Lambda function scheduled during an execution. LambdaFunctionScheduledEventDetails *LambdaFunctionScheduledEventDetails `locationName:"lambdaFunctionScheduledEventDetails" type:"structure"` // Contains details about a lambda function that failed to start during an execution. LambdaFunctionStartFailedEventDetails *LambdaFunctionStartFailedEventDetails `locationName:"lambdaFunctionStartFailedEventDetails" type:"structure"` // Contains details about a Lambda function that terminated successfully during // an execution. LambdaFunctionSucceededEventDetails *LambdaFunctionSucceededEventDetails `locationName:"lambdaFunctionSucceededEventDetails" type:"structure"` // Contains details about a Lambda function timeout that occurred during an // execution. LambdaFunctionTimedOutEventDetails *LambdaFunctionTimedOutEventDetails `locationName:"lambdaFunctionTimedOutEventDetails" type:"structure"` // Contains details about an iteration of a Map state that was aborted. MapIterationAbortedEventDetails *MapIterationEventDetails `locationName:"mapIterationAbortedEventDetails" type:"structure"` // Contains details about an iteration of a Map state that failed. MapIterationFailedEventDetails *MapIterationEventDetails `locationName:"mapIterationFailedEventDetails" type:"structure"` // Contains details about an iteration of a Map state that was started. MapIterationStartedEventDetails *MapIterationEventDetails `locationName:"mapIterationStartedEventDetails" type:"structure"` // Contains details about an iteration of a Map state that succeeded. MapIterationSucceededEventDetails *MapIterationEventDetails `locationName:"mapIterationSucceededEventDetails" type:"structure"` // Contains error and cause details about a Map Run that failed. MapRunFailedEventDetails *MapRunFailedEventDetails `locationName:"mapRunFailedEventDetails" type:"structure"` // Contains details, such as mapRunArn, and the start date and time of a Map // Run. mapRunArn is the Amazon Resource Name (ARN) of the Map Run that was // started. MapRunStartedEventDetails *MapRunStartedEventDetails `locationName:"mapRunStartedEventDetails" type:"structure"` // Contains details about Map state that was started. MapStateStartedEventDetails *MapStateStartedEventDetails `locationName:"mapStateStartedEventDetails" type:"structure"` // The id of the previous event. PreviousEventId *int64 `locationName:"previousEventId" type:"long"` // Contains details about a state entered during an execution. StateEnteredEventDetails *StateEnteredEventDetails `locationName:"stateEnteredEventDetails" type:"structure"` // Contains details about an exit from a state during an execution. StateExitedEventDetails *StateExitedEventDetails `locationName:"stateExitedEventDetails" type:"structure"` // Contains details about the failure of a task. TaskFailedEventDetails *TaskFailedEventDetails `locationName:"taskFailedEventDetails" type:"structure"` // Contains details about a task that was scheduled. TaskScheduledEventDetails *TaskScheduledEventDetails `locationName:"taskScheduledEventDetails" type:"structure"` // Contains details about a task that failed to start. TaskStartFailedEventDetails *TaskStartFailedEventDetails `locationName:"taskStartFailedEventDetails" type:"structure"` // Contains details about a task that was started. TaskStartedEventDetails *TaskStartedEventDetails `locationName:"taskStartedEventDetails" type:"structure"` // Contains details about a task that where the submit failed. TaskSubmitFailedEventDetails *TaskSubmitFailedEventDetails `locationName:"taskSubmitFailedEventDetails" type:"structure"` // Contains details about a submitted task. TaskSubmittedEventDetails *TaskSubmittedEventDetails `locationName:"taskSubmittedEventDetails" type:"structure"` // Contains details about a task that succeeded. TaskSucceededEventDetails *TaskSucceededEventDetails `locationName:"taskSucceededEventDetails" type:"structure"` // Contains details about a task that timed out. TaskTimedOutEventDetails *TaskTimedOutEventDetails `locationName:"taskTimedOutEventDetails" type:"structure"` // The date and time the event occurred. // // Timestamp is a required field Timestamp *time.Time `locationName:"timestamp" type:"timestamp" required:"true"` // The type of the event. // // Type is a required field Type *string `locationName:"type" type:"string" required:"true" enum:"HistoryEventType"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s HistoryEvent) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s HistoryEvent) GoString() string { return s.String() } // SetActivityFailedEventDetails sets the ActivityFailedEventDetails field's value. func (s *HistoryEvent) SetActivityFailedEventDetails(v *ActivityFailedEventDetails) *HistoryEvent { s.ActivityFailedEventDetails = v return s } // SetActivityScheduleFailedEventDetails sets the ActivityScheduleFailedEventDetails field's value. func (s *HistoryEvent) SetActivityScheduleFailedEventDetails(v *ActivityScheduleFailedEventDetails) *HistoryEvent { s.ActivityScheduleFailedEventDetails = v return s } // SetActivityScheduledEventDetails sets the ActivityScheduledEventDetails field's value. func (s *HistoryEvent) SetActivityScheduledEventDetails(v *ActivityScheduledEventDetails) *HistoryEvent { s.ActivityScheduledEventDetails = v return s } // SetActivityStartedEventDetails sets the ActivityStartedEventDetails field's value. func (s *HistoryEvent) SetActivityStartedEventDetails(v *ActivityStartedEventDetails) *HistoryEvent { s.ActivityStartedEventDetails = v return s } // SetActivitySucceededEventDetails sets the ActivitySucceededEventDetails field's value. func (s *HistoryEvent) SetActivitySucceededEventDetails(v *ActivitySucceededEventDetails) *HistoryEvent { s.ActivitySucceededEventDetails = v return s } // SetActivityTimedOutEventDetails sets the ActivityTimedOutEventDetails field's value. func (s *HistoryEvent) SetActivityTimedOutEventDetails(v *ActivityTimedOutEventDetails) *HistoryEvent { s.ActivityTimedOutEventDetails = v return s } // SetExecutionAbortedEventDetails sets the ExecutionAbortedEventDetails field's value. func (s *HistoryEvent) SetExecutionAbortedEventDetails(v *ExecutionAbortedEventDetails) *HistoryEvent { s.ExecutionAbortedEventDetails = v return s } // SetExecutionFailedEventDetails sets the ExecutionFailedEventDetails field's value. func (s *HistoryEvent) SetExecutionFailedEventDetails(v *ExecutionFailedEventDetails) *HistoryEvent { s.ExecutionFailedEventDetails = v return s } // SetExecutionStartedEventDetails sets the ExecutionStartedEventDetails field's value. func (s *HistoryEvent) SetExecutionStartedEventDetails(v *ExecutionStartedEventDetails) *HistoryEvent { s.ExecutionStartedEventDetails = v return s } // SetExecutionSucceededEventDetails sets the ExecutionSucceededEventDetails field's value. func (s *HistoryEvent) SetExecutionSucceededEventDetails(v *ExecutionSucceededEventDetails) *HistoryEvent { s.ExecutionSucceededEventDetails = v return s } // SetExecutionTimedOutEventDetails sets the ExecutionTimedOutEventDetails field's value. func (s *HistoryEvent) SetExecutionTimedOutEventDetails(v *ExecutionTimedOutEventDetails) *HistoryEvent { s.ExecutionTimedOutEventDetails = v return s } // SetId sets the Id field's value. func (s *HistoryEvent) SetId(v int64) *HistoryEvent { s.Id = &v return s } // SetLambdaFunctionFailedEventDetails sets the LambdaFunctionFailedEventDetails field's value. func (s *HistoryEvent) SetLambdaFunctionFailedEventDetails(v *LambdaFunctionFailedEventDetails) *HistoryEvent { s.LambdaFunctionFailedEventDetails = v return s } // SetLambdaFunctionScheduleFailedEventDetails sets the LambdaFunctionScheduleFailedEventDetails field's value. func (s *HistoryEvent) SetLambdaFunctionScheduleFailedEventDetails(v *LambdaFunctionScheduleFailedEventDetails) *HistoryEvent { s.LambdaFunctionScheduleFailedEventDetails = v return s } // SetLambdaFunctionScheduledEventDetails sets the LambdaFunctionScheduledEventDetails field's value. func (s *HistoryEvent) SetLambdaFunctionScheduledEventDetails(v *LambdaFunctionScheduledEventDetails) *HistoryEvent { s.LambdaFunctionScheduledEventDetails = v return s } // SetLambdaFunctionStartFailedEventDetails sets the LambdaFunctionStartFailedEventDetails field's value. func (s *HistoryEvent) SetLambdaFunctionStartFailedEventDetails(v *LambdaFunctionStartFailedEventDetails) *HistoryEvent { s.LambdaFunctionStartFailedEventDetails = v return s } // SetLambdaFunctionSucceededEventDetails sets the LambdaFunctionSucceededEventDetails field's value. func (s *HistoryEvent) SetLambdaFunctionSucceededEventDetails(v *LambdaFunctionSucceededEventDetails) *HistoryEvent { s.LambdaFunctionSucceededEventDetails = v return s } // SetLambdaFunctionTimedOutEventDetails sets the LambdaFunctionTimedOutEventDetails field's value. func (s *HistoryEvent) SetLambdaFunctionTimedOutEventDetails(v *LambdaFunctionTimedOutEventDetails) *HistoryEvent { s.LambdaFunctionTimedOutEventDetails = v return s } // SetMapIterationAbortedEventDetails sets the MapIterationAbortedEventDetails field's value. func (s *HistoryEvent) SetMapIterationAbortedEventDetails(v *MapIterationEventDetails) *HistoryEvent { s.MapIterationAbortedEventDetails = v return s } // SetMapIterationFailedEventDetails sets the MapIterationFailedEventDetails field's value. func (s *HistoryEvent) SetMapIterationFailedEventDetails(v *MapIterationEventDetails) *HistoryEvent { s.MapIterationFailedEventDetails = v return s } // SetMapIterationStartedEventDetails sets the MapIterationStartedEventDetails field's value. func (s *HistoryEvent) SetMapIterationStartedEventDetails(v *MapIterationEventDetails) *HistoryEvent { s.MapIterationStartedEventDetails = v return s } // SetMapIterationSucceededEventDetails sets the MapIterationSucceededEventDetails field's value. func (s *HistoryEvent) SetMapIterationSucceededEventDetails(v *MapIterationEventDetails) *HistoryEvent { s.MapIterationSucceededEventDetails = v return s } // SetMapRunFailedEventDetails sets the MapRunFailedEventDetails field's value. func (s *HistoryEvent) SetMapRunFailedEventDetails(v *MapRunFailedEventDetails) *HistoryEvent { s.MapRunFailedEventDetails = v return s } // SetMapRunStartedEventDetails sets the MapRunStartedEventDetails field's value. func (s *HistoryEvent) SetMapRunStartedEventDetails(v *MapRunStartedEventDetails) *HistoryEvent { s.MapRunStartedEventDetails = v return s } // SetMapStateStartedEventDetails sets the MapStateStartedEventDetails field's value. func (s *HistoryEvent) SetMapStateStartedEventDetails(v *MapStateStartedEventDetails) *HistoryEvent { s.MapStateStartedEventDetails = v return s } // SetPreviousEventId sets the PreviousEventId field's value. func (s *HistoryEvent) SetPreviousEventId(v int64) *HistoryEvent { s.PreviousEventId = &v return s } // SetStateEnteredEventDetails sets the StateEnteredEventDetails field's value. func (s *HistoryEvent) SetStateEnteredEventDetails(v *StateEnteredEventDetails) *HistoryEvent { s.StateEnteredEventDetails = v return s } // SetStateExitedEventDetails sets the StateExitedEventDetails field's value. func (s *HistoryEvent) SetStateExitedEventDetails(v *StateExitedEventDetails) *HistoryEvent { s.StateExitedEventDetails = v return s } // SetTaskFailedEventDetails sets the TaskFailedEventDetails field's value. func (s *HistoryEvent) SetTaskFailedEventDetails(v *TaskFailedEventDetails) *HistoryEvent { s.TaskFailedEventDetails = v return s } // SetTaskScheduledEventDetails sets the TaskScheduledEventDetails field's value. func (s *HistoryEvent) SetTaskScheduledEventDetails(v *TaskScheduledEventDetails) *HistoryEvent { s.TaskScheduledEventDetails = v return s } // SetTaskStartFailedEventDetails sets the TaskStartFailedEventDetails field's value. func (s *HistoryEvent) SetTaskStartFailedEventDetails(v *TaskStartFailedEventDetails) *HistoryEvent { s.TaskStartFailedEventDetails = v return s } // SetTaskStartedEventDetails sets the TaskStartedEventDetails field's value. func (s *HistoryEvent) SetTaskStartedEventDetails(v *TaskStartedEventDetails) *HistoryEvent { s.TaskStartedEventDetails = v return s } // SetTaskSubmitFailedEventDetails sets the TaskSubmitFailedEventDetails field's value. func (s *HistoryEvent) SetTaskSubmitFailedEventDetails(v *TaskSubmitFailedEventDetails) *HistoryEvent { s.TaskSubmitFailedEventDetails = v return s } // SetTaskSubmittedEventDetails sets the TaskSubmittedEventDetails field's value. func (s *HistoryEvent) SetTaskSubmittedEventDetails(v *TaskSubmittedEventDetails) *HistoryEvent { s.TaskSubmittedEventDetails = v return s } // SetTaskSucceededEventDetails sets the TaskSucceededEventDetails field's value. func (s *HistoryEvent) SetTaskSucceededEventDetails(v *TaskSucceededEventDetails) *HistoryEvent { s.TaskSucceededEventDetails = v return s } // SetTaskTimedOutEventDetails sets the TaskTimedOutEventDetails field's value. func (s *HistoryEvent) SetTaskTimedOutEventDetails(v *TaskTimedOutEventDetails) *HistoryEvent { s.TaskTimedOutEventDetails = v return s } // SetTimestamp sets the Timestamp field's value. func (s *HistoryEvent) SetTimestamp(v time.Time) *HistoryEvent { s.Timestamp = &v return s } // SetType sets the Type field's value. func (s *HistoryEvent) SetType(v string) *HistoryEvent { s.Type = &v return s } // Provides details about input or output in an execution history event. type HistoryEventExecutionDataDetails struct { _ struct{} `type:"structure"` // Indicates whether input or output was truncated in the response. Always false // for API calls. Truncated *bool `locationName:"truncated" type:"boolean"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s HistoryEventExecutionDataDetails) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s HistoryEventExecutionDataDetails) GoString() string { return s.String() } // SetTruncated sets the Truncated field's value. func (s *HistoryEventExecutionDataDetails) SetTruncated(v bool) *HistoryEventExecutionDataDetails { s.Truncated = &v return s } // The provided Amazon Resource Name (ARN) is not valid. type InvalidArn struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s InvalidArn) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s InvalidArn) GoString() string { return s.String() } func newErrorInvalidArn(v protocol.ResponseMetadata) error { return &InvalidArn{ RespMetadata: v, } } // Code returns the exception type name. func (s *InvalidArn) Code() string { return "InvalidArn" } // Message returns the exception's message. func (s *InvalidArn) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *InvalidArn) OrigErr() error { return nil } func (s *InvalidArn) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } // Status code returns the HTTP status code for the request's response error. func (s *InvalidArn) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *InvalidArn) RequestID() string { return s.RespMetadata.RequestID } // The provided Amazon States Language definition is not valid. type InvalidDefinition struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s InvalidDefinition) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s InvalidDefinition) GoString() string { return s.String() } func newErrorInvalidDefinition(v protocol.ResponseMetadata) error { return &InvalidDefinition{ RespMetadata: v, } } // Code returns the exception type name. func (s *InvalidDefinition) Code() string { return "InvalidDefinition" } // Message returns the exception's message. func (s *InvalidDefinition) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *InvalidDefinition) OrigErr() error { return nil } func (s *InvalidDefinition) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } // Status code returns the HTTP status code for the request's response error. func (s *InvalidDefinition) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *InvalidDefinition) RequestID() string { return s.RespMetadata.RequestID } // The provided JSON input data is not valid. type InvalidExecutionInput struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s InvalidExecutionInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s InvalidExecutionInput) GoString() string { return s.String() } func newErrorInvalidExecutionInput(v protocol.ResponseMetadata) error { return &InvalidExecutionInput{ RespMetadata: v, } } // Code returns the exception type name. func (s *InvalidExecutionInput) Code() string { return "InvalidExecutionInput" } // Message returns the exception's message. func (s *InvalidExecutionInput) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *InvalidExecutionInput) OrigErr() error { return nil } func (s *InvalidExecutionInput) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } // Status code returns the HTTP status code for the request's response error. func (s *InvalidExecutionInput) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *InvalidExecutionInput) RequestID() string { return s.RespMetadata.RequestID } type InvalidLoggingConfiguration struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s InvalidLoggingConfiguration) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s InvalidLoggingConfiguration) GoString() string { return s.String() } func newErrorInvalidLoggingConfiguration(v protocol.ResponseMetadata) error { return &InvalidLoggingConfiguration{ RespMetadata: v, } } // Code returns the exception type name. func (s *InvalidLoggingConfiguration) Code() string { return "InvalidLoggingConfiguration" } // Message returns the exception's message. func (s *InvalidLoggingConfiguration) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *InvalidLoggingConfiguration) OrigErr() error { return nil } func (s *InvalidLoggingConfiguration) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } // Status code returns the HTTP status code for the request's response error. func (s *InvalidLoggingConfiguration) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *InvalidLoggingConfiguration) RequestID() string { return s.RespMetadata.RequestID } // The provided name is not valid. type InvalidName struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s InvalidName) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s InvalidName) GoString() string { return s.String() } func newErrorInvalidName(v protocol.ResponseMetadata) error { return &InvalidName{ RespMetadata: v, } } // Code returns the exception type name. func (s *InvalidName) Code() string { return "InvalidName" } // Message returns the exception's message. func (s *InvalidName) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *InvalidName) OrigErr() error { return nil } func (s *InvalidName) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } // Status code returns the HTTP status code for the request's response error. func (s *InvalidName) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *InvalidName) RequestID() string { return s.RespMetadata.RequestID } // The provided JSON output data is not valid. type InvalidOutput struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s InvalidOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s InvalidOutput) GoString() string { return s.String() } func newErrorInvalidOutput(v protocol.ResponseMetadata) error { return &InvalidOutput{ RespMetadata: v, } } // Code returns the exception type name. func (s *InvalidOutput) Code() string { return "InvalidOutput" } // Message returns the exception's message. func (s *InvalidOutput) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *InvalidOutput) OrigErr() error { return nil } func (s *InvalidOutput) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } // Status code returns the HTTP status code for the request's response error. func (s *InvalidOutput) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *InvalidOutput) RequestID() string { return s.RespMetadata.RequestID } // The provided token is not valid. type InvalidToken struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s InvalidToken) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s InvalidToken) GoString() string { return s.String() } func newErrorInvalidToken(v protocol.ResponseMetadata) error { return &InvalidToken{ RespMetadata: v, } } // Code returns the exception type name. func (s *InvalidToken) Code() string { return "InvalidToken" } // Message returns the exception's message. func (s *InvalidToken) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *InvalidToken) OrigErr() error { return nil } func (s *InvalidToken) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } // Status code returns the HTTP status code for the request's response error. func (s *InvalidToken) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *InvalidToken) RequestID() string { return s.RespMetadata.RequestID } // Your tracingConfiguration key does not match, or enabled has not been set // to true or false. type InvalidTracingConfiguration struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s InvalidTracingConfiguration) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s InvalidTracingConfiguration) GoString() string { return s.String() } func newErrorInvalidTracingConfiguration(v protocol.ResponseMetadata) error { return &InvalidTracingConfiguration{ RespMetadata: v, } } // Code returns the exception type name. func (s *InvalidTracingConfiguration) Code() string { return "InvalidTracingConfiguration" } // Message returns the exception's message. func (s *InvalidTracingConfiguration) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *InvalidTracingConfiguration) OrigErr() error { return nil } func (s *InvalidTracingConfiguration) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } // Status code returns the HTTP status code for the request's response error. func (s *InvalidTracingConfiguration) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *InvalidTracingConfiguration) RequestID() string { return s.RespMetadata.RequestID } // Contains details about a Lambda function that failed during an execution. type LambdaFunctionFailedEventDetails struct { _ struct{} `type:"structure"` // A more detailed explanation of the cause of the failure. // // Cause is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by LambdaFunctionFailedEventDetails's // String and GoString methods. Cause *string `locationName:"cause" type:"string" sensitive:"true"` // The error code of the failure. // // Error is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by LambdaFunctionFailedEventDetails's // String and GoString methods. Error *string `locationName:"error" type:"string" sensitive:"true"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s LambdaFunctionFailedEventDetails) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s LambdaFunctionFailedEventDetails) GoString() string { return s.String() } // SetCause sets the Cause field's value. func (s *LambdaFunctionFailedEventDetails) SetCause(v string) *LambdaFunctionFailedEventDetails { s.Cause = &v return s } // SetError sets the Error field's value. func (s *LambdaFunctionFailedEventDetails) SetError(v string) *LambdaFunctionFailedEventDetails { s.Error = &v return s } // Contains details about a failed Lambda function schedule event that occurred // during an execution. type LambdaFunctionScheduleFailedEventDetails struct { _ struct{} `type:"structure"` // A more detailed explanation of the cause of the failure. // // Cause is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by LambdaFunctionScheduleFailedEventDetails's // String and GoString methods. Cause *string `locationName:"cause" type:"string" sensitive:"true"` // The error code of the failure. // // Error is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by LambdaFunctionScheduleFailedEventDetails's // String and GoString methods. Error *string `locationName:"error" type:"string" sensitive:"true"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s LambdaFunctionScheduleFailedEventDetails) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s LambdaFunctionScheduleFailedEventDetails) GoString() string { return s.String() } // SetCause sets the Cause field's value. func (s *LambdaFunctionScheduleFailedEventDetails) SetCause(v string) *LambdaFunctionScheduleFailedEventDetails { s.Cause = &v return s } // SetError sets the Error field's value. func (s *LambdaFunctionScheduleFailedEventDetails) SetError(v string) *LambdaFunctionScheduleFailedEventDetails { s.Error = &v return s } // Contains details about a Lambda function scheduled during an execution. type LambdaFunctionScheduledEventDetails struct { _ struct{} `type:"structure"` // The JSON data input to the Lambda function. Length constraints apply to the // payload size, and are expressed as bytes in UTF-8 encoding. // // Input is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by LambdaFunctionScheduledEventDetails's // String and GoString methods. Input *string `locationName:"input" type:"string" sensitive:"true"` // Contains details about input for an execution history event. InputDetails *HistoryEventExecutionDataDetails `locationName:"inputDetails" type:"structure"` // The Amazon Resource Name (ARN) of the scheduled Lambda function. // // Resource is a required field Resource *string `locationName:"resource" min:"1" type:"string" required:"true"` // The credentials that Step Functions uses for the task. TaskCredentials *TaskCredentials `locationName:"taskCredentials" type:"structure"` // The maximum allowed duration of the Lambda function. TimeoutInSeconds *int64 `locationName:"timeoutInSeconds" type:"long"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s LambdaFunctionScheduledEventDetails) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s LambdaFunctionScheduledEventDetails) GoString() string { return s.String() } // SetInput sets the Input field's value. func (s *LambdaFunctionScheduledEventDetails) SetInput(v string) *LambdaFunctionScheduledEventDetails { s.Input = &v return s } // SetInputDetails sets the InputDetails field's value. func (s *LambdaFunctionScheduledEventDetails) SetInputDetails(v *HistoryEventExecutionDataDetails) *LambdaFunctionScheduledEventDetails { s.InputDetails = v return s } // SetResource sets the Resource field's value. func (s *LambdaFunctionScheduledEventDetails) SetResource(v string) *LambdaFunctionScheduledEventDetails { s.Resource = &v return s } // SetTaskCredentials sets the TaskCredentials field's value. func (s *LambdaFunctionScheduledEventDetails) SetTaskCredentials(v *TaskCredentials) *LambdaFunctionScheduledEventDetails { s.TaskCredentials = v return s } // SetTimeoutInSeconds sets the TimeoutInSeconds field's value. func (s *LambdaFunctionScheduledEventDetails) SetTimeoutInSeconds(v int64) *LambdaFunctionScheduledEventDetails { s.TimeoutInSeconds = &v return s } // Contains details about a lambda function that failed to start during an execution. type LambdaFunctionStartFailedEventDetails struct { _ struct{} `type:"structure"` // A more detailed explanation of the cause of the failure. // // Cause is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by LambdaFunctionStartFailedEventDetails's // String and GoString methods. Cause *string `locationName:"cause" type:"string" sensitive:"true"` // The error code of the failure. // // Error is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by LambdaFunctionStartFailedEventDetails's // String and GoString methods. Error *string `locationName:"error" type:"string" sensitive:"true"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s LambdaFunctionStartFailedEventDetails) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s LambdaFunctionStartFailedEventDetails) GoString() string { return s.String() } // SetCause sets the Cause field's value. func (s *LambdaFunctionStartFailedEventDetails) SetCause(v string) *LambdaFunctionStartFailedEventDetails { s.Cause = &v return s } // SetError sets the Error field's value. func (s *LambdaFunctionStartFailedEventDetails) SetError(v string) *LambdaFunctionStartFailedEventDetails { s.Error = &v return s } // Contains details about a Lambda function that successfully terminated during // an execution. type LambdaFunctionSucceededEventDetails struct { _ struct{} `type:"structure"` // The JSON data output by the Lambda function. Length constraints apply to // the payload size, and are expressed as bytes in UTF-8 encoding. // // Output is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by LambdaFunctionSucceededEventDetails's // String and GoString methods. Output *string `locationName:"output" type:"string" sensitive:"true"` // Contains details about the output of an execution history event. OutputDetails *HistoryEventExecutionDataDetails `locationName:"outputDetails" type:"structure"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s LambdaFunctionSucceededEventDetails) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s LambdaFunctionSucceededEventDetails) GoString() string { return s.String() } // SetOutput sets the Output field's value. func (s *LambdaFunctionSucceededEventDetails) SetOutput(v string) *LambdaFunctionSucceededEventDetails { s.Output = &v return s } // SetOutputDetails sets the OutputDetails field's value. func (s *LambdaFunctionSucceededEventDetails) SetOutputDetails(v *HistoryEventExecutionDataDetails) *LambdaFunctionSucceededEventDetails { s.OutputDetails = v return s } // Contains details about a Lambda function timeout that occurred during an // execution. type LambdaFunctionTimedOutEventDetails struct { _ struct{} `type:"structure"` // A more detailed explanation of the cause of the timeout. // // Cause is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by LambdaFunctionTimedOutEventDetails's // String and GoString methods. Cause *string `locationName:"cause" type:"string" sensitive:"true"` // The error code of the failure. // // Error is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by LambdaFunctionTimedOutEventDetails's // String and GoString methods. Error *string `locationName:"error" type:"string" sensitive:"true"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s LambdaFunctionTimedOutEventDetails) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s LambdaFunctionTimedOutEventDetails) GoString() string { return s.String() } // SetCause sets the Cause field's value. func (s *LambdaFunctionTimedOutEventDetails) SetCause(v string) *LambdaFunctionTimedOutEventDetails { s.Cause = &v return s } // SetError sets the Error field's value. func (s *LambdaFunctionTimedOutEventDetails) SetError(v string) *LambdaFunctionTimedOutEventDetails { s.Error = &v return s } type ListActivitiesInput struct { _ struct{} `type:"structure"` // The maximum number of results that are returned per call. You can use nextToken // to obtain further pages of results. The default is 100 and the maximum allowed // page size is 1000. A value of 0 uses the default. // // This is only an upper limit. The actual number of results returned per call // might be fewer than the specified maximum. MaxResults *int64 `locationName:"maxResults" type:"integer"` // If nextToken is returned, there are more results available. The value of // nextToken is a unique pagination token for each page. Make the call again // using the returned token to retrieve the next page. Keep all other arguments // unchanged. Each pagination token expires after 24 hours. Using an expired // pagination token will return an HTTP 400 InvalidToken error. NextToken *string `locationName:"nextToken" min:"1" type:"string"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ListActivitiesInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ListActivitiesInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ListActivitiesInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ListActivitiesInput"} if s.NextToken != nil && len(*s.NextToken) < 1 { invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetMaxResults sets the MaxResults field's value. func (s *ListActivitiesInput) SetMaxResults(v int64) *ListActivitiesInput { s.MaxResults = &v return s } // SetNextToken sets the NextToken field's value. func (s *ListActivitiesInput) SetNextToken(v string) *ListActivitiesInput { s.NextToken = &v return s } type ListActivitiesOutput struct { _ struct{} `type:"structure"` // The list of activities. // // Activities is a required field Activities []*ActivityListItem `locationName:"activities" type:"list" required:"true"` // If nextToken is returned, there are more results available. The value of // nextToken is a unique pagination token for each page. Make the call again // using the returned token to retrieve the next page. Keep all other arguments // unchanged. Each pagination token expires after 24 hours. Using an expired // pagination token will return an HTTP 400 InvalidToken error. NextToken *string `locationName:"nextToken" min:"1" type:"string"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ListActivitiesOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ListActivitiesOutput) GoString() string { return s.String() } // SetActivities sets the Activities field's value. func (s *ListActivitiesOutput) SetActivities(v []*ActivityListItem) *ListActivitiesOutput { s.Activities = v return s } // SetNextToken sets the NextToken field's value. func (s *ListActivitiesOutput) SetNextToken(v string) *ListActivitiesOutput { s.NextToken = &v return s } type ListExecutionsInput struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) of the Map Run that started the child workflow // executions. If the mapRunArn field is specified, a list of all of the child // workflow executions started by a Map Run is returned. For more information, // see Examining Map Run (https://docs.aws.amazon.com/step-functions/latest/dg/concepts-examine-map-run.html) // in the Step Functions Developer Guide. // // You can specify either a mapRunArn or a stateMachineArn, but not both. MapRunArn *string `locationName:"mapRunArn" min:"1" type:"string"` // The maximum number of results that are returned per call. You can use nextToken // to obtain further pages of results. The default is 100 and the maximum allowed // page size is 1000. A value of 0 uses the default. // // This is only an upper limit. The actual number of results returned per call // might be fewer than the specified maximum. MaxResults *int64 `locationName:"maxResults" type:"integer"` // If nextToken is returned, there are more results available. The value of // nextToken is a unique pagination token for each page. Make the call again // using the returned token to retrieve the next page. Keep all other arguments // unchanged. Each pagination token expires after 24 hours. Using an expired // pagination token will return an HTTP 400 InvalidToken error. NextToken *string `locationName:"nextToken" min:"1" type:"string"` // The Amazon Resource Name (ARN) of the state machine whose executions is listed. // // You can specify either a mapRunArn or a stateMachineArn, but not both. StateMachineArn *string `locationName:"stateMachineArn" min:"1" type:"string"` // If specified, only list the executions whose current execution status matches // the given filter. StatusFilter *string `locationName:"statusFilter" type:"string" enum:"ExecutionStatus"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ListExecutionsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ListExecutionsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ListExecutionsInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ListExecutionsInput"} if s.MapRunArn != nil && len(*s.MapRunArn) < 1 { invalidParams.Add(request.NewErrParamMinLen("MapRunArn", 1)) } if s.NextToken != nil && len(*s.NextToken) < 1 { invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) } if s.StateMachineArn != nil && len(*s.StateMachineArn) < 1 { invalidParams.Add(request.NewErrParamMinLen("StateMachineArn", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetMapRunArn sets the MapRunArn field's value. func (s *ListExecutionsInput) SetMapRunArn(v string) *ListExecutionsInput { s.MapRunArn = &v return s } // SetMaxResults sets the MaxResults field's value. func (s *ListExecutionsInput) SetMaxResults(v int64) *ListExecutionsInput { s.MaxResults = &v return s } // SetNextToken sets the NextToken field's value. func (s *ListExecutionsInput) SetNextToken(v string) *ListExecutionsInput { s.NextToken = &v return s } // SetStateMachineArn sets the StateMachineArn field's value. func (s *ListExecutionsInput) SetStateMachineArn(v string) *ListExecutionsInput { s.StateMachineArn = &v return s } // SetStatusFilter sets the StatusFilter field's value. func (s *ListExecutionsInput) SetStatusFilter(v string) *ListExecutionsInput { s.StatusFilter = &v return s } type ListExecutionsOutput struct { _ struct{} `type:"structure"` // The list of matching executions. // // Executions is a required field Executions []*ExecutionListItem `locationName:"executions" type:"list" required:"true"` // If nextToken is returned, there are more results available. The value of // nextToken is a unique pagination token for each page. Make the call again // using the returned token to retrieve the next page. Keep all other arguments // unchanged. Each pagination token expires after 24 hours. Using an expired // pagination token will return an HTTP 400 InvalidToken error. NextToken *string `locationName:"nextToken" min:"1" type:"string"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ListExecutionsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ListExecutionsOutput) GoString() string { return s.String() } // SetExecutions sets the Executions field's value. func (s *ListExecutionsOutput) SetExecutions(v []*ExecutionListItem) *ListExecutionsOutput { s.Executions = v return s } // SetNextToken sets the NextToken field's value. func (s *ListExecutionsOutput) SetNextToken(v string) *ListExecutionsOutput { s.NextToken = &v return s } type ListMapRunsInput struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) of the execution for which the Map Runs must // be listed. // // ExecutionArn is a required field ExecutionArn *string `locationName:"executionArn" min:"1" type:"string" required:"true"` // The maximum number of results that are returned per call. You can use nextToken // to obtain further pages of results. The default is 100 and the maximum allowed // page size is 1000. A value of 0 uses the default. // // This is only an upper limit. The actual number of results returned per call // might be fewer than the specified maximum. MaxResults *int64 `locationName:"maxResults" type:"integer"` // If nextToken is returned, there are more results available. The value of // nextToken is a unique pagination token for each page. Make the call again // using the returned token to retrieve the next page. Keep all other arguments // unchanged. Each pagination token expires after 24 hours. Using an expired // pagination token will return an HTTP 400 InvalidToken error. NextToken *string `locationName:"nextToken" min:"1" type:"string"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ListMapRunsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ListMapRunsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ListMapRunsInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ListMapRunsInput"} if s.ExecutionArn == nil { invalidParams.Add(request.NewErrParamRequired("ExecutionArn")) } if s.ExecutionArn != nil && len(*s.ExecutionArn) < 1 { invalidParams.Add(request.NewErrParamMinLen("ExecutionArn", 1)) } if s.NextToken != nil && len(*s.NextToken) < 1 { invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetExecutionArn sets the ExecutionArn field's value. func (s *ListMapRunsInput) SetExecutionArn(v string) *ListMapRunsInput { s.ExecutionArn = &v return s } // SetMaxResults sets the MaxResults field's value. func (s *ListMapRunsInput) SetMaxResults(v int64) *ListMapRunsInput { s.MaxResults = &v return s } // SetNextToken sets the NextToken field's value. func (s *ListMapRunsInput) SetNextToken(v string) *ListMapRunsInput { s.NextToken = &v return s } type ListMapRunsOutput struct { _ struct{} `type:"structure"` // An array that lists information related to a Map Run, such as the Amazon // Resource Name (ARN) of the Map Run and the ARN of the state machine that // started the Map Run. // // MapRuns is a required field MapRuns []*MapRunListItem `locationName:"mapRuns" type:"list" required:"true"` // If nextToken is returned, there are more results available. The value of // nextToken is a unique pagination token for each page. Make the call again // using the returned token to retrieve the next page. Keep all other arguments // unchanged. Each pagination token expires after 24 hours. Using an expired // pagination token will return an HTTP 400 InvalidToken error. NextToken *string `locationName:"nextToken" min:"1" type:"string"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ListMapRunsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ListMapRunsOutput) GoString() string { return s.String() } // SetMapRuns sets the MapRuns field's value. func (s *ListMapRunsOutput) SetMapRuns(v []*MapRunListItem) *ListMapRunsOutput { s.MapRuns = v return s } // SetNextToken sets the NextToken field's value. func (s *ListMapRunsOutput) SetNextToken(v string) *ListMapRunsOutput { s.NextToken = &v return s } type ListStateMachinesInput struct { _ struct{} `type:"structure"` // The maximum number of results that are returned per call. You can use nextToken // to obtain further pages of results. The default is 100 and the maximum allowed // page size is 1000. A value of 0 uses the default. // // This is only an upper limit. The actual number of results returned per call // might be fewer than the specified maximum. MaxResults *int64 `locationName:"maxResults" type:"integer"` // If nextToken is returned, there are more results available. The value of // nextToken is a unique pagination token for each page. Make the call again // using the returned token to retrieve the next page. Keep all other arguments // unchanged. Each pagination token expires after 24 hours. Using an expired // pagination token will return an HTTP 400 InvalidToken error. NextToken *string `locationName:"nextToken" min:"1" type:"string"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ListStateMachinesInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ListStateMachinesInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ListStateMachinesInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ListStateMachinesInput"} if s.NextToken != nil && len(*s.NextToken) < 1 { invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetMaxResults sets the MaxResults field's value. func (s *ListStateMachinesInput) SetMaxResults(v int64) *ListStateMachinesInput { s.MaxResults = &v return s } // SetNextToken sets the NextToken field's value. func (s *ListStateMachinesInput) SetNextToken(v string) *ListStateMachinesInput { s.NextToken = &v return s } type ListStateMachinesOutput struct { _ struct{} `type:"structure"` // If nextToken is returned, there are more results available. The value of // nextToken is a unique pagination token for each page. Make the call again // using the returned token to retrieve the next page. Keep all other arguments // unchanged. Each pagination token expires after 24 hours. Using an expired // pagination token will return an HTTP 400 InvalidToken error. NextToken *string `locationName:"nextToken" min:"1" type:"string"` // StateMachines is a required field StateMachines []*StateMachineListItem `locationName:"stateMachines" type:"list" required:"true"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ListStateMachinesOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ListStateMachinesOutput) GoString() string { return s.String() } // SetNextToken sets the NextToken field's value. func (s *ListStateMachinesOutput) SetNextToken(v string) *ListStateMachinesOutput { s.NextToken = &v return s } // SetStateMachines sets the StateMachines field's value. func (s *ListStateMachinesOutput) SetStateMachines(v []*StateMachineListItem) *ListStateMachinesOutput { s.StateMachines = v return s } type ListTagsForResourceInput struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) for the Step Functions state machine or activity. // // ResourceArn is a required field ResourceArn *string `locationName:"resourceArn" min:"1" type:"string" required:"true"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ListTagsForResourceInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ListTagsForResourceInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *ListTagsForResourceInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ListTagsForResourceInput"} if s.ResourceArn == nil { invalidParams.Add(request.NewErrParamRequired("ResourceArn")) } if s.ResourceArn != nil && len(*s.ResourceArn) < 1 { invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetResourceArn sets the ResourceArn field's value. func (s *ListTagsForResourceInput) SetResourceArn(v string) *ListTagsForResourceInput { s.ResourceArn = &v return s } type ListTagsForResourceOutput struct { _ struct{} `type:"structure"` // An array of tags associated with the resource. Tags []*Tag `locationName:"tags" type:"list"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ListTagsForResourceOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ListTagsForResourceOutput) GoString() string { return s.String() } // SetTags sets the Tags field's value. func (s *ListTagsForResourceOutput) SetTags(v []*Tag) *ListTagsForResourceOutput { s.Tags = v return s } type LogDestination struct { _ struct{} `type:"structure"` // An object describing a CloudWatch log group. For more information, see AWS::Logs::LogGroup // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-loggroup.html) // in the CloudFormation User Guide. CloudWatchLogsLogGroup *CloudWatchLogsLogGroup `locationName:"cloudWatchLogsLogGroup" type:"structure"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s LogDestination) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s LogDestination) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *LogDestination) Validate() error { invalidParams := request.ErrInvalidParams{Context: "LogDestination"} if s.CloudWatchLogsLogGroup != nil { if err := s.CloudWatchLogsLogGroup.Validate(); err != nil { invalidParams.AddNested("CloudWatchLogsLogGroup", err.(request.ErrInvalidParams)) } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetCloudWatchLogsLogGroup sets the CloudWatchLogsLogGroup field's value. func (s *LogDestination) SetCloudWatchLogsLogGroup(v *CloudWatchLogsLogGroup) *LogDestination { s.CloudWatchLogsLogGroup = v return s } // The LoggingConfiguration data type is used to set CloudWatch Logs options. type LoggingConfiguration struct { _ struct{} `type:"structure"` // An array of objects that describes where your execution history events will // be logged. Limited to size 1. Required, if your log level is not set to OFF. Destinations []*LogDestination `locationName:"destinations" type:"list"` // Determines whether execution data is included in your log. When set to false, // data is excluded. IncludeExecutionData *bool `locationName:"includeExecutionData" type:"boolean"` // Defines which category of execution history events are logged. Level *string `locationName:"level" type:"string" enum:"LogLevel"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s LoggingConfiguration) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s LoggingConfiguration) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *LoggingConfiguration) Validate() error { invalidParams := request.ErrInvalidParams{Context: "LoggingConfiguration"} if s.Destinations != nil { for i, v := range s.Destinations { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Destinations", i), err.(request.ErrInvalidParams)) } } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetDestinations sets the Destinations field's value. func (s *LoggingConfiguration) SetDestinations(v []*LogDestination) *LoggingConfiguration { s.Destinations = v return s } // SetIncludeExecutionData sets the IncludeExecutionData field's value. func (s *LoggingConfiguration) SetIncludeExecutionData(v bool) *LoggingConfiguration { s.IncludeExecutionData = &v return s } // SetLevel sets the Level field's value. func (s *LoggingConfiguration) SetLevel(v string) *LoggingConfiguration { s.Level = &v return s } // Contains details about an iteration of a Map state. type MapIterationEventDetails struct { _ struct{} `type:"structure"` // The index of the array belonging to the Map state iteration. Index *int64 `locationName:"index" type:"integer"` // The name of the iteration’s parent Map state. Name *string `locationName:"name" min:"1" type:"string"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s MapIterationEventDetails) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s MapIterationEventDetails) GoString() string { return s.String() } // SetIndex sets the Index field's value. func (s *MapIterationEventDetails) SetIndex(v int64) *MapIterationEventDetails { s.Index = &v return s } // SetName sets the Name field's value. func (s *MapIterationEventDetails) SetName(v string) *MapIterationEventDetails { s.Name = &v return s } // Contains details about all of the child workflow executions started by a // Map Run. type MapRunExecutionCounts struct { _ struct{} `type:"structure"` // The total number of child workflow executions that were started by a Map // Run and were running, but were either stopped by the user or by Step Functions // because the Map Run failed. // // Aborted is a required field Aborted *int64 `locationName:"aborted" type:"long" required:"true"` // The total number of child workflow executions that were started by a Map // Run, but have failed. // // Failed is a required field Failed *int64 `locationName:"failed" type:"long" required:"true"` // The total number of child workflow executions that were started by a Map // Run, but haven't started executing yet. // // Pending is a required field Pending *int64 `locationName:"pending" type:"long" required:"true"` // Returns the count of child workflow executions whose results were written // by ResultWriter. For more information, see ResultWriter (https://docs.aws.amazon.com/step-functions/latest/dg/input-output-resultwriter.html) // in the Step Functions Developer Guide. // // ResultsWritten is a required field ResultsWritten *int64 `locationName:"resultsWritten" type:"long" required:"true"` // The total number of child workflow executions that were started by a Map // Run and are currently in-progress. // // Running is a required field Running *int64 `locationName:"running" type:"long" required:"true"` // The total number of child workflow executions that were started by a Map // Run and have completed successfully. // // Succeeded is a required field Succeeded *int64 `locationName:"succeeded" type:"long" required:"true"` // The total number of child workflow executions that were started by a Map // Run and have timed out. // // TimedOut is a required field TimedOut *int64 `locationName:"timedOut" type:"long" required:"true"` // The total number of child workflow executions that were started by a Map // Run. // // Total is a required field Total *int64 `locationName:"total" type:"long" required:"true"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s MapRunExecutionCounts) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s MapRunExecutionCounts) GoString() string { return s.String() } // SetAborted sets the Aborted field's value. func (s *MapRunExecutionCounts) SetAborted(v int64) *MapRunExecutionCounts { s.Aborted = &v return s } // SetFailed sets the Failed field's value. func (s *MapRunExecutionCounts) SetFailed(v int64) *MapRunExecutionCounts { s.Failed = &v return s } // SetPending sets the Pending field's value. func (s *MapRunExecutionCounts) SetPending(v int64) *MapRunExecutionCounts { s.Pending = &v return s } // SetResultsWritten sets the ResultsWritten field's value. func (s *MapRunExecutionCounts) SetResultsWritten(v int64) *MapRunExecutionCounts { s.ResultsWritten = &v return s } // SetRunning sets the Running field's value. func (s *MapRunExecutionCounts) SetRunning(v int64) *MapRunExecutionCounts { s.Running = &v return s } // SetSucceeded sets the Succeeded field's value. func (s *MapRunExecutionCounts) SetSucceeded(v int64) *MapRunExecutionCounts { s.Succeeded = &v return s } // SetTimedOut sets the TimedOut field's value. func (s *MapRunExecutionCounts) SetTimedOut(v int64) *MapRunExecutionCounts { s.TimedOut = &v return s } // SetTotal sets the Total field's value. func (s *MapRunExecutionCounts) SetTotal(v int64) *MapRunExecutionCounts { s.Total = &v return s } // Contains details about a Map Run failure event that occurred during a state // machine execution. type MapRunFailedEventDetails struct { _ struct{} `type:"structure"` // A more detailed explanation of the cause of the failure. // // Cause is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by MapRunFailedEventDetails's // String and GoString methods. Cause *string `locationName:"cause" type:"string" sensitive:"true"` // The error code of the Map Run failure. // // Error is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by MapRunFailedEventDetails's // String and GoString methods. Error *string `locationName:"error" type:"string" sensitive:"true"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s MapRunFailedEventDetails) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s MapRunFailedEventDetails) GoString() string { return s.String() } // SetCause sets the Cause field's value. func (s *MapRunFailedEventDetails) SetCause(v string) *MapRunFailedEventDetails { s.Cause = &v return s } // SetError sets the Error field's value. func (s *MapRunFailedEventDetails) SetError(v string) *MapRunFailedEventDetails { s.Error = &v return s } // Contains details about items that were processed in all of the child workflow // executions that were started by a Map Run. type MapRunItemCounts struct { _ struct{} `type:"structure"` // The total number of items processed in child workflow executions that were // either stopped by the user or by Step Functions, because the Map Run failed. // // Aborted is a required field Aborted *int64 `locationName:"aborted" type:"long" required:"true"` // The total number of items processed in child workflow executions that have // failed. // // Failed is a required field Failed *int64 `locationName:"failed" type:"long" required:"true"` // The total number of items to process in child workflow executions that haven't // started running yet. // // Pending is a required field Pending *int64 `locationName:"pending" type:"long" required:"true"` // Returns the count of items whose results were written by ResultWriter. For // more information, see ResultWriter (https://docs.aws.amazon.com/step-functions/latest/dg/input-output-resultwriter.html) // in the Step Functions Developer Guide. // // ResultsWritten is a required field ResultsWritten *int64 `locationName:"resultsWritten" type:"long" required:"true"` // The total number of items being processed in child workflow executions that // are currently in-progress. // // Running is a required field Running *int64 `locationName:"running" type:"long" required:"true"` // The total number of items processed in child workflow executions that have // completed successfully. // // Succeeded is a required field Succeeded *int64 `locationName:"succeeded" type:"long" required:"true"` // The total number of items processed in child workflow executions that have // timed out. // // TimedOut is a required field TimedOut *int64 `locationName:"timedOut" type:"long" required:"true"` // The total number of items processed in all the child workflow executions // started by a Map Run. // // Total is a required field Total *int64 `locationName:"total" type:"long" required:"true"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s MapRunItemCounts) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s MapRunItemCounts) GoString() string { return s.String() } // SetAborted sets the Aborted field's value. func (s *MapRunItemCounts) SetAborted(v int64) *MapRunItemCounts { s.Aborted = &v return s } // SetFailed sets the Failed field's value. func (s *MapRunItemCounts) SetFailed(v int64) *MapRunItemCounts { s.Failed = &v return s } // SetPending sets the Pending field's value. func (s *MapRunItemCounts) SetPending(v int64) *MapRunItemCounts { s.Pending = &v return s } // SetResultsWritten sets the ResultsWritten field's value. func (s *MapRunItemCounts) SetResultsWritten(v int64) *MapRunItemCounts { s.ResultsWritten = &v return s } // SetRunning sets the Running field's value. func (s *MapRunItemCounts) SetRunning(v int64) *MapRunItemCounts { s.Running = &v return s } // SetSucceeded sets the Succeeded field's value. func (s *MapRunItemCounts) SetSucceeded(v int64) *MapRunItemCounts { s.Succeeded = &v return s } // SetTimedOut sets the TimedOut field's value. func (s *MapRunItemCounts) SetTimedOut(v int64) *MapRunItemCounts { s.TimedOut = &v return s } // SetTotal sets the Total field's value. func (s *MapRunItemCounts) SetTotal(v int64) *MapRunItemCounts { s.Total = &v return s } // Contains details about a specific Map Run. type MapRunListItem struct { _ struct{} `type:"structure"` // The executionArn of the execution from which the Map Run was started. // // ExecutionArn is a required field ExecutionArn *string `locationName:"executionArn" min:"1" type:"string" required:"true"` // The Amazon Resource Name (ARN) of the Map Run. // // MapRunArn is a required field MapRunArn *string `locationName:"mapRunArn" min:"1" type:"string" required:"true"` // The date on which the Map Run started. // // StartDate is a required field StartDate *time.Time `locationName:"startDate" type:"timestamp" required:"true"` // The Amazon Resource Name (ARN) of the executed state machine. // // StateMachineArn is a required field StateMachineArn *string `locationName:"stateMachineArn" min:"1" type:"string" required:"true"` // The date on which the Map Run stopped. StopDate *time.Time `locationName:"stopDate" type:"timestamp"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s MapRunListItem) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s MapRunListItem) GoString() string { return s.String() } // SetExecutionArn sets the ExecutionArn field's value. func (s *MapRunListItem) SetExecutionArn(v string) *MapRunListItem { s.ExecutionArn = &v return s } // SetMapRunArn sets the MapRunArn field's value. func (s *MapRunListItem) SetMapRunArn(v string) *MapRunListItem { s.MapRunArn = &v return s } // SetStartDate sets the StartDate field's value. func (s *MapRunListItem) SetStartDate(v time.Time) *MapRunListItem { s.StartDate = &v return s } // SetStateMachineArn sets the StateMachineArn field's value. func (s *MapRunListItem) SetStateMachineArn(v string) *MapRunListItem { s.StateMachineArn = &v return s } // SetStopDate sets the StopDate field's value. func (s *MapRunListItem) SetStopDate(v time.Time) *MapRunListItem { s.StopDate = &v return s } // Contains details about a Map Run that was started during a state machine // execution. type MapRunStartedEventDetails struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) of a Map Run that was started. MapRunArn *string `locationName:"mapRunArn" min:"1" type:"string"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s MapRunStartedEventDetails) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s MapRunStartedEventDetails) GoString() string { return s.String() } // SetMapRunArn sets the MapRunArn field's value. func (s *MapRunStartedEventDetails) SetMapRunArn(v string) *MapRunStartedEventDetails { s.MapRunArn = &v return s } // Details about a Map state that was started. type MapStateStartedEventDetails struct { _ struct{} `type:"structure"` // The size of the array for Map state iterations. Length *int64 `locationName:"length" type:"integer"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s MapStateStartedEventDetails) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s MapStateStartedEventDetails) GoString() string { return s.String() } // SetLength sets the Length field's value. func (s *MapStateStartedEventDetails) SetLength(v int64) *MapStateStartedEventDetails { s.Length = &v return s } // Request is missing a required parameter. This error occurs if both definition // and roleArn are not specified. type MissingRequiredParameter struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s MissingRequiredParameter) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s MissingRequiredParameter) GoString() string { return s.String() } func newErrorMissingRequiredParameter(v protocol.ResponseMetadata) error { return &MissingRequiredParameter{ RespMetadata: v, } } // Code returns the exception type name. func (s *MissingRequiredParameter) Code() string { return "MissingRequiredParameter" } // Message returns the exception's message. func (s *MissingRequiredParameter) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *MissingRequiredParameter) OrigErr() error { return nil } func (s *MissingRequiredParameter) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } // Status code returns the HTTP status code for the request's response error. func (s *MissingRequiredParameter) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *MissingRequiredParameter) RequestID() string { return s.RespMetadata.RequestID } // Could not find the referenced resource. Only state machine and activity ARNs // are supported. type ResourceNotFound struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` ResourceName *string `locationName:"resourceName" min:"1" type:"string"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ResourceNotFound) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ResourceNotFound) GoString() string { return s.String() } func newErrorResourceNotFound(v protocol.ResponseMetadata) error { return &ResourceNotFound{ RespMetadata: v, } } // Code returns the exception type name. func (s *ResourceNotFound) Code() string { return "ResourceNotFound" } // Message returns the exception's message. func (s *ResourceNotFound) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *ResourceNotFound) OrigErr() error { return nil } func (s *ResourceNotFound) Error() string { return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) } // Status code returns the HTTP status code for the request's response error. func (s *ResourceNotFound) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *ResourceNotFound) RequestID() string { return s.RespMetadata.RequestID } type SendTaskFailureInput struct { _ struct{} `type:"structure"` // A more detailed explanation of the cause of the failure. // // Cause is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by SendTaskFailureInput's // String and GoString methods. Cause *string `locationName:"cause" type:"string" sensitive:"true"` // The error code of the failure. // // Error is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by SendTaskFailureInput's // String and GoString methods. Error *string `locationName:"error" type:"string" sensitive:"true"` // 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 (https://docs.aws.amazon.com/step-functions/latest/dg/input-output-contextobject.html) // when a workflow enters a task state. See GetActivityTaskOutput$taskToken. // // TaskToken is a required field TaskToken *string `locationName:"taskToken" min:"1" type:"string" required:"true"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s SendTaskFailureInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s SendTaskFailureInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *SendTaskFailureInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "SendTaskFailureInput"} if s.TaskToken == nil { invalidParams.Add(request.NewErrParamRequired("TaskToken")) } if s.TaskToken != nil && len(*s.TaskToken) < 1 { invalidParams.Add(request.NewErrParamMinLen("TaskToken", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetCause sets the Cause field's value. func (s *SendTaskFailureInput) SetCause(v string) *SendTaskFailureInput { s.Cause = &v return s } // SetError sets the Error field's value. func (s *SendTaskFailureInput) SetError(v string) *SendTaskFailureInput { s.Error = &v return s } // SetTaskToken sets the TaskToken field's value. func (s *SendTaskFailureInput) SetTaskToken(v string) *SendTaskFailureInput { s.TaskToken = &v return s } type SendTaskFailureOutput struct { _ struct{} `type:"structure"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s SendTaskFailureOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s SendTaskFailureOutput) GoString() string { return s.String() } type SendTaskHeartbeatInput struct { _ struct{} `type:"structure"` // 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 (https://docs.aws.amazon.com/step-functions/latest/dg/input-output-contextobject.html) // when a workflow enters a task state. See GetActivityTaskOutput$taskToken. // // TaskToken is a required field TaskToken *string `locationName:"taskToken" min:"1" type:"string" required:"true"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s SendTaskHeartbeatInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s SendTaskHeartbeatInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *SendTaskHeartbeatInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "SendTaskHeartbeatInput"} if s.TaskToken == nil { invalidParams.Add(request.NewErrParamRequired("TaskToken")) } if s.TaskToken != nil && len(*s.TaskToken) < 1 { invalidParams.Add(request.NewErrParamMinLen("TaskToken", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetTaskToken sets the TaskToken field's value. func (s *SendTaskHeartbeatInput) SetTaskToken(v string) *SendTaskHeartbeatInput { s.TaskToken = &v return s } type SendTaskHeartbeatOutput struct { _ struct{} `type:"structure"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s SendTaskHeartbeatOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s SendTaskHeartbeatOutput) GoString() string { return s.String() } type SendTaskSuccessInput struct { _ struct{} `type:"structure"` // The JSON output of the task. Length constraints apply to the payload size, // and are expressed as bytes in UTF-8 encoding. // // Output is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by SendTaskSuccessInput's // String and GoString methods. // // Output is a required field Output *string `locationName:"output" type:"string" required:"true" sensitive:"true"` // 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 (https://docs.aws.amazon.com/step-functions/latest/dg/input-output-contextobject.html) // when a workflow enters a task state. See GetActivityTaskOutput$taskToken. // // TaskToken is a required field TaskToken *string `locationName:"taskToken" min:"1" type:"string" required:"true"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s SendTaskSuccessInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s SendTaskSuccessInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *SendTaskSuccessInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "SendTaskSuccessInput"} if s.Output == nil { invalidParams.Add(request.NewErrParamRequired("Output")) } if s.TaskToken == nil { invalidParams.Add(request.NewErrParamRequired("TaskToken")) } if s.TaskToken != nil && len(*s.TaskToken) < 1 { invalidParams.Add(request.NewErrParamMinLen("TaskToken", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetOutput sets the Output field's value. func (s *SendTaskSuccessInput) SetOutput(v string) *SendTaskSuccessInput { s.Output = &v return s } // SetTaskToken sets the TaskToken field's value. func (s *SendTaskSuccessInput) SetTaskToken(v string) *SendTaskSuccessInput { s.TaskToken = &v return s } type SendTaskSuccessOutput struct { _ struct{} `type:"structure"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s SendTaskSuccessOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s SendTaskSuccessOutput) GoString() string { return s.String() } type StartExecutionInput struct { _ struct{} `type:"structure"` // The string that contains the JSON input data for the execution, for example: // // "input": "{\"first_name\" : \"test\"}" // // If you don't include any JSON input data, you still must include the two // braces, for example: "input": "{}" // // Length constraints apply to the payload size, and are expressed as bytes // in UTF-8 encoding. // // Input is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by StartExecutionInput's // String and GoString methods. Input *string `locationName:"input" type:"string" sensitive:"true"` // The name of the execution. This name must be unique for your Amazon Web Services // account, region, and state machine for 90 days. For more information, see // Limits Related to State Machine Executions (https://docs.aws.amazon.com/step-functions/latest/dg/limits.html#service-limits-state-machine-executions) // in the Step Functions Developer Guide. // // A name must not contain: // // * white space // // * brackets < > { } [ ] // // * wildcard characters ? * // // * special characters " # % \ ^ | ~ ` $ & , ; : / // // * control characters (U+0000-001F, U+007F-009F) // // To enable logging with CloudWatch Logs, the name should only contain 0-9, // A-Z, a-z, - and _. Name *string `locationName:"name" min:"1" type:"string"` // The Amazon Resource Name (ARN) of the state machine to execute. // // StateMachineArn is a required field StateMachineArn *string `locationName:"stateMachineArn" min:"1" type:"string" required:"true"` // Passes the X-Ray trace header. The trace header can also be passed in the // request payload. TraceHeader *string `locationName:"traceHeader" type:"string"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s StartExecutionInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s StartExecutionInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *StartExecutionInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "StartExecutionInput"} if s.Name != nil && len(*s.Name) < 1 { invalidParams.Add(request.NewErrParamMinLen("Name", 1)) } if s.StateMachineArn == nil { invalidParams.Add(request.NewErrParamRequired("StateMachineArn")) } if s.StateMachineArn != nil && len(*s.StateMachineArn) < 1 { invalidParams.Add(request.NewErrParamMinLen("StateMachineArn", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetInput sets the Input field's value. func (s *StartExecutionInput) SetInput(v string) *StartExecutionInput { s.Input = &v return s } // SetName sets the Name field's value. func (s *StartExecutionInput) SetName(v string) *StartExecutionInput { s.Name = &v return s } // SetStateMachineArn sets the StateMachineArn field's value. func (s *StartExecutionInput) SetStateMachineArn(v string) *StartExecutionInput { s.StateMachineArn = &v return s } // SetTraceHeader sets the TraceHeader field's value. func (s *StartExecutionInput) SetTraceHeader(v string) *StartExecutionInput { s.TraceHeader = &v return s } type StartExecutionOutput struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) that identifies the execution. // // ExecutionArn is a required field ExecutionArn *string `locationName:"executionArn" min:"1" type:"string" required:"true"` // The date the execution is started. // // StartDate is a required field StartDate *time.Time `locationName:"startDate" type:"timestamp" required:"true"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s StartExecutionOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s StartExecutionOutput) GoString() string { return s.String() } // SetExecutionArn sets the ExecutionArn field's value. func (s *StartExecutionOutput) SetExecutionArn(v string) *StartExecutionOutput { s.ExecutionArn = &v return s } // SetStartDate sets the StartDate field's value. func (s *StartExecutionOutput) SetStartDate(v time.Time) *StartExecutionOutput { s.StartDate = &v return s } type StartSyncExecutionInput struct { _ struct{} `type:"structure"` // The string that contains the JSON input data for the execution, for example: // // "input": "{\"first_name\" : \"test\"}" // // If you don't include any JSON input data, you still must include the two // braces, for example: "input": "{}" // // Length constraints apply to the payload size, and are expressed as bytes // in UTF-8 encoding. // // Input is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by StartSyncExecutionInput's // String and GoString methods. Input *string `locationName:"input" type:"string" sensitive:"true"` // The name of the execution. Name *string `locationName:"name" min:"1" type:"string"` // The Amazon Resource Name (ARN) of the state machine to execute. // // StateMachineArn is a required field StateMachineArn *string `locationName:"stateMachineArn" min:"1" type:"string" required:"true"` // Passes the X-Ray trace header. The trace header can also be passed in the // request payload. TraceHeader *string `locationName:"traceHeader" type:"string"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s StartSyncExecutionInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s StartSyncExecutionInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *StartSyncExecutionInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "StartSyncExecutionInput"} if s.Name != nil && len(*s.Name) < 1 { invalidParams.Add(request.NewErrParamMinLen("Name", 1)) } if s.StateMachineArn == nil { invalidParams.Add(request.NewErrParamRequired("StateMachineArn")) } if s.StateMachineArn != nil && len(*s.StateMachineArn) < 1 { invalidParams.Add(request.NewErrParamMinLen("StateMachineArn", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetInput sets the Input field's value. func (s *StartSyncExecutionInput) SetInput(v string) *StartSyncExecutionInput { s.Input = &v return s } // SetName sets the Name field's value. func (s *StartSyncExecutionInput) SetName(v string) *StartSyncExecutionInput { s.Name = &v return s } // SetStateMachineArn sets the StateMachineArn field's value. func (s *StartSyncExecutionInput) SetStateMachineArn(v string) *StartSyncExecutionInput { s.StateMachineArn = &v return s } // SetTraceHeader sets the TraceHeader field's value. func (s *StartSyncExecutionInput) SetTraceHeader(v string) *StartSyncExecutionInput { s.TraceHeader = &v return s } type StartSyncExecutionOutput struct { _ struct{} `type:"structure"` // An object that describes workflow billing details, including billed duration // and memory use. BillingDetails *BillingDetails `locationName:"billingDetails" type:"structure"` // A more detailed explanation of the cause of the failure. // // Cause is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by StartSyncExecutionOutput's // String and GoString methods. Cause *string `locationName:"cause" type:"string" sensitive:"true"` // The error code of the failure. // // Error is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by StartSyncExecutionOutput's // String and GoString methods. Error *string `locationName:"error" type:"string" sensitive:"true"` // The Amazon Resource Name (ARN) that identifies the execution. // // ExecutionArn is a required field ExecutionArn *string `locationName:"executionArn" min:"1" type:"string" required:"true"` // The string that contains the JSON input data of the execution. Length constraints // apply to the payload size, and are expressed as bytes in UTF-8 encoding. // // Input is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by StartSyncExecutionOutput's // String and GoString methods. Input *string `locationName:"input" type:"string" sensitive:"true"` // Provides details about execution input or output. InputDetails *CloudWatchEventsExecutionDataDetails `locationName:"inputDetails" type:"structure"` // The name of the execution. Name *string `locationName:"name" min:"1" type:"string"` // The JSON output data of the execution. Length constraints apply to the payload // size, and are expressed as bytes in UTF-8 encoding. // // This field is set only if the execution succeeds. If the execution fails, // this field is null. // // Output is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by StartSyncExecutionOutput's // String and GoString methods. Output *string `locationName:"output" type:"string" sensitive:"true"` // Provides details about execution input or output. OutputDetails *CloudWatchEventsExecutionDataDetails `locationName:"outputDetails" type:"structure"` // The date the execution is started. // // StartDate is a required field StartDate *time.Time `locationName:"startDate" type:"timestamp" required:"true"` // The Amazon Resource Name (ARN) that identifies the state machine. StateMachineArn *string `locationName:"stateMachineArn" min:"1" type:"string"` // The current status of the execution. // // Status is a required field Status *string `locationName:"status" type:"string" required:"true" enum:"SyncExecutionStatus"` // If the execution has already ended, the date the execution stopped. // // StopDate is a required field StopDate *time.Time `locationName:"stopDate" type:"timestamp" required:"true"` // The X-Ray trace header that was passed to the execution. TraceHeader *string `locationName:"traceHeader" type:"string"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s StartSyncExecutionOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s StartSyncExecutionOutput) GoString() string { return s.String() } // SetBillingDetails sets the BillingDetails field's value. func (s *StartSyncExecutionOutput) SetBillingDetails(v *BillingDetails) *StartSyncExecutionOutput { s.BillingDetails = v return s } // SetCause sets the Cause field's value. func (s *StartSyncExecutionOutput) SetCause(v string) *StartSyncExecutionOutput { s.Cause = &v return s } // SetError sets the Error field's value. func (s *StartSyncExecutionOutput) SetError(v string) *StartSyncExecutionOutput { s.Error = &v return s } // SetExecutionArn sets the ExecutionArn field's value. func (s *StartSyncExecutionOutput) SetExecutionArn(v string) *StartSyncExecutionOutput { s.ExecutionArn = &v return s } // SetInput sets the Input field's value. func (s *StartSyncExecutionOutput) SetInput(v string) *StartSyncExecutionOutput { s.Input = &v return s } // SetInputDetails sets the InputDetails field's value. func (s *StartSyncExecutionOutput) SetInputDetails(v *CloudWatchEventsExecutionDataDetails) *StartSyncExecutionOutput { s.InputDetails = v return s } // SetName sets the Name field's value. func (s *StartSyncExecutionOutput) SetName(v string) *StartSyncExecutionOutput { s.Name = &v return s } // SetOutput sets the Output field's value. func (s *StartSyncExecutionOutput) SetOutput(v string) *StartSyncExecutionOutput { s.Output = &v return s } // SetOutputDetails sets the OutputDetails field's value. func (s *StartSyncExecutionOutput) SetOutputDetails(v *CloudWatchEventsExecutionDataDetails) *StartSyncExecutionOutput { s.OutputDetails = v return s } // SetStartDate sets the StartDate field's value. func (s *StartSyncExecutionOutput) SetStartDate(v time.Time) *StartSyncExecutionOutput { s.StartDate = &v return s } // SetStateMachineArn sets the StateMachineArn field's value. func (s *StartSyncExecutionOutput) SetStateMachineArn(v string) *StartSyncExecutionOutput { s.StateMachineArn = &v return s } // SetStatus sets the Status field's value. func (s *StartSyncExecutionOutput) SetStatus(v string) *StartSyncExecutionOutput { s.Status = &v return s } // SetStopDate sets the StopDate field's value. func (s *StartSyncExecutionOutput) SetStopDate(v time.Time) *StartSyncExecutionOutput { s.StopDate = &v return s } // SetTraceHeader sets the TraceHeader field's value. func (s *StartSyncExecutionOutput) SetTraceHeader(v string) *StartSyncExecutionOutput { s.TraceHeader = &v return s } // Contains details about a state entered during an execution. type StateEnteredEventDetails struct { _ struct{} `type:"structure"` // The string that contains the JSON input data for the state. Length constraints // apply to the payload size, and are expressed as bytes in UTF-8 encoding. // // Input is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by StateEnteredEventDetails's // String and GoString methods. Input *string `locationName:"input" type:"string" sensitive:"true"` // Contains details about the input for an execution history event. InputDetails *HistoryEventExecutionDataDetails `locationName:"inputDetails" type:"structure"` // The name of the state. // // Name is a required field Name *string `locationName:"name" min:"1" type:"string" required:"true"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s StateEnteredEventDetails) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s StateEnteredEventDetails) GoString() string { return s.String() } // SetInput sets the Input field's value. func (s *StateEnteredEventDetails) SetInput(v string) *StateEnteredEventDetails { s.Input = &v return s } // SetInputDetails sets the InputDetails field's value. func (s *StateEnteredEventDetails) SetInputDetails(v *HistoryEventExecutionDataDetails) *StateEnteredEventDetails { s.InputDetails = v return s } // SetName sets the Name field's value. func (s *StateEnteredEventDetails) SetName(v string) *StateEnteredEventDetails { s.Name = &v return s } // Contains details about an exit from a state during an execution. type StateExitedEventDetails struct { _ struct{} `type:"structure"` // The name of the state. // // A name must not contain: // // * white space // // * brackets < > { } [ ] // // * wildcard characters ? * // // * special characters " # % \ ^ | ~ ` $ & , ; : / // // * control characters (U+0000-001F, U+007F-009F) // // To enable logging with CloudWatch Logs, the name should only contain 0-9, // A-Z, a-z, - and _. // // Name is a required field Name *string `locationName:"name" min:"1" type:"string" required:"true"` // The JSON output data of the state. Length constraints apply to the payload // size, and are expressed as bytes in UTF-8 encoding. // // Output is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by StateExitedEventDetails's // String and GoString methods. Output *string `locationName:"output" type:"string" sensitive:"true"` // Contains details about the output of an execution history event. OutputDetails *HistoryEventExecutionDataDetails `locationName:"outputDetails" type:"structure"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s StateExitedEventDetails) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s StateExitedEventDetails) GoString() string { return s.String() } // SetName sets the Name field's value. func (s *StateExitedEventDetails) SetName(v string) *StateExitedEventDetails { s.Name = &v return s } // SetOutput sets the Output field's value. func (s *StateExitedEventDetails) SetOutput(v string) *StateExitedEventDetails { s.Output = &v return s } // SetOutputDetails sets the OutputDetails field's value. func (s *StateExitedEventDetails) SetOutputDetails(v *HistoryEventExecutionDataDetails) *StateExitedEventDetails { s.OutputDetails = v return s } // A state machine with the same name but a different definition or role ARN // already exists. type StateMachineAlreadyExists struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s StateMachineAlreadyExists) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s StateMachineAlreadyExists) GoString() string { return s.String() } func newErrorStateMachineAlreadyExists(v protocol.ResponseMetadata) error { return &StateMachineAlreadyExists{ RespMetadata: v, } } // Code returns the exception type name. func (s *StateMachineAlreadyExists) Code() string { return "StateMachineAlreadyExists" } // Message returns the exception's message. func (s *StateMachineAlreadyExists) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *StateMachineAlreadyExists) OrigErr() error { return nil } func (s *StateMachineAlreadyExists) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } // Status code returns the HTTP status code for the request's response error. func (s *StateMachineAlreadyExists) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *StateMachineAlreadyExists) RequestID() string { return s.RespMetadata.RequestID } // The specified state machine is being deleted. type StateMachineDeleting struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s StateMachineDeleting) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s StateMachineDeleting) GoString() string { return s.String() } func newErrorStateMachineDeleting(v protocol.ResponseMetadata) error { return &StateMachineDeleting{ RespMetadata: v, } } // Code returns the exception type name. func (s *StateMachineDeleting) Code() string { return "StateMachineDeleting" } // Message returns the exception's message. func (s *StateMachineDeleting) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *StateMachineDeleting) OrigErr() error { return nil } func (s *StateMachineDeleting) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } // Status code returns the HTTP status code for the request's response error. func (s *StateMachineDeleting) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *StateMachineDeleting) RequestID() string { return s.RespMetadata.RequestID } // The specified state machine does not exist. type StateMachineDoesNotExist struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s StateMachineDoesNotExist) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s StateMachineDoesNotExist) GoString() string { return s.String() } func newErrorStateMachineDoesNotExist(v protocol.ResponseMetadata) error { return &StateMachineDoesNotExist{ RespMetadata: v, } } // Code returns the exception type name. func (s *StateMachineDoesNotExist) Code() string { return "StateMachineDoesNotExist" } // Message returns the exception's message. func (s *StateMachineDoesNotExist) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *StateMachineDoesNotExist) OrigErr() error { return nil } func (s *StateMachineDoesNotExist) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } // Status code returns the HTTP status code for the request's response error. func (s *StateMachineDoesNotExist) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *StateMachineDoesNotExist) RequestID() string { return s.RespMetadata.RequestID } // The maximum number of state machines has been reached. Existing state machines // must be deleted before a new state machine can be created. type StateMachineLimitExceeded struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s StateMachineLimitExceeded) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s StateMachineLimitExceeded) GoString() string { return s.String() } func newErrorStateMachineLimitExceeded(v protocol.ResponseMetadata) error { return &StateMachineLimitExceeded{ RespMetadata: v, } } // Code returns the exception type name. func (s *StateMachineLimitExceeded) Code() string { return "StateMachineLimitExceeded" } // Message returns the exception's message. func (s *StateMachineLimitExceeded) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *StateMachineLimitExceeded) OrigErr() error { return nil } func (s *StateMachineLimitExceeded) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } // Status code returns the HTTP status code for the request's response error. func (s *StateMachineLimitExceeded) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *StateMachineLimitExceeded) RequestID() string { return s.RespMetadata.RequestID } // Contains details about the state machine. type StateMachineListItem struct { _ struct{} `type:"structure"` // The date the state machine is created. // // CreationDate is a required field CreationDate *time.Time `locationName:"creationDate" type:"timestamp" required:"true"` // The name of the state machine. // // A name must not contain: // // * white space // // * brackets < > { } [ ] // // * wildcard characters ? * // // * special characters " # % \ ^ | ~ ` $ & , ; : / // // * control characters (U+0000-001F, U+007F-009F) // // To enable logging with CloudWatch Logs, the name should only contain 0-9, // A-Z, a-z, - and _. // // Name is a required field Name *string `locationName:"name" min:"1" type:"string" required:"true"` // The Amazon Resource Name (ARN) that identifies the state machine. // // StateMachineArn is a required field StateMachineArn *string `locationName:"stateMachineArn" min:"1" type:"string" required:"true"` // Type is a required field Type *string `locationName:"type" type:"string" required:"true" enum:"StateMachineType"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s StateMachineListItem) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s StateMachineListItem) GoString() string { return s.String() } // SetCreationDate sets the CreationDate field's value. func (s *StateMachineListItem) SetCreationDate(v time.Time) *StateMachineListItem { s.CreationDate = &v return s } // SetName sets the Name field's value. func (s *StateMachineListItem) SetName(v string) *StateMachineListItem { s.Name = &v return s } // SetStateMachineArn sets the StateMachineArn field's value. func (s *StateMachineListItem) SetStateMachineArn(v string) *StateMachineListItem { s.StateMachineArn = &v return s } // SetType sets the Type field's value. func (s *StateMachineListItem) SetType(v string) *StateMachineListItem { s.Type = &v return s } type StateMachineTypeNotSupported struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s StateMachineTypeNotSupported) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s StateMachineTypeNotSupported) GoString() string { return s.String() } func newErrorStateMachineTypeNotSupported(v protocol.ResponseMetadata) error { return &StateMachineTypeNotSupported{ RespMetadata: v, } } // Code returns the exception type name. func (s *StateMachineTypeNotSupported) Code() string { return "StateMachineTypeNotSupported" } // Message returns the exception's message. func (s *StateMachineTypeNotSupported) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *StateMachineTypeNotSupported) OrigErr() error { return nil } func (s *StateMachineTypeNotSupported) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } // Status code returns the HTTP status code for the request's response error. func (s *StateMachineTypeNotSupported) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *StateMachineTypeNotSupported) RequestID() string { return s.RespMetadata.RequestID } type StopExecutionInput struct { _ struct{} `type:"structure"` // A more detailed explanation of the cause of the failure. // // Cause is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by StopExecutionInput's // String and GoString methods. Cause *string `locationName:"cause" type:"string" sensitive:"true"` // The error code of the failure. // // Error is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by StopExecutionInput's // String and GoString methods. Error *string `locationName:"error" type:"string" sensitive:"true"` // The Amazon Resource Name (ARN) of the execution to stop. // // ExecutionArn is a required field ExecutionArn *string `locationName:"executionArn" min:"1" type:"string" required:"true"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s StopExecutionInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s StopExecutionInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *StopExecutionInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "StopExecutionInput"} if s.ExecutionArn == nil { invalidParams.Add(request.NewErrParamRequired("ExecutionArn")) } if s.ExecutionArn != nil && len(*s.ExecutionArn) < 1 { invalidParams.Add(request.NewErrParamMinLen("ExecutionArn", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetCause sets the Cause field's value. func (s *StopExecutionInput) SetCause(v string) *StopExecutionInput { s.Cause = &v return s } // SetError sets the Error field's value. func (s *StopExecutionInput) SetError(v string) *StopExecutionInput { s.Error = &v return s } // SetExecutionArn sets the ExecutionArn field's value. func (s *StopExecutionInput) SetExecutionArn(v string) *StopExecutionInput { s.ExecutionArn = &v return s } type StopExecutionOutput struct { _ struct{} `type:"structure"` // The date the execution is stopped. // // StopDate is a required field StopDate *time.Time `locationName:"stopDate" type:"timestamp" required:"true"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s StopExecutionOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s StopExecutionOutput) GoString() string { return s.String() } // SetStopDate sets the StopDate field's value. func (s *StopExecutionOutput) SetStopDate(v time.Time) *StopExecutionOutput { s.StopDate = &v return s } // Tags are key-value pairs that can be associated with Step Functions state // machines and activities. // // An array of key-value pairs. For more information, see Using Cost Allocation // Tags (https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html) // in the Amazon Web Services Billing and Cost Management User Guide, and Controlling // Access Using IAM Tags (https://docs.aws.amazon.com/IAM/latest/UserGuide/access_iam-tags.html). // // Tags may only contain Unicode letters, digits, white space, or these symbols: // _ . : / = + - @. type Tag struct { _ struct{} `type:"structure"` // The key of a tag. Key *string `locationName:"key" min:"1" type:"string"` // The value of a tag. Value *string `locationName:"value" type:"string"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s Tag) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s Tag) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *Tag) Validate() error { invalidParams := request.ErrInvalidParams{Context: "Tag"} if s.Key != nil && len(*s.Key) < 1 { invalidParams.Add(request.NewErrParamMinLen("Key", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetKey sets the Key field's value. func (s *Tag) SetKey(v string) *Tag { s.Key = &v return s } // SetValue sets the Value field's value. func (s *Tag) SetValue(v string) *Tag { s.Value = &v return s } type TagResourceInput struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) for the Step Functions state machine or activity. // // ResourceArn is a required field ResourceArn *string `locationName:"resourceArn" min:"1" type:"string" required:"true"` // The list of tags to add to a resource. // // Tags may only contain Unicode letters, digits, white space, or these symbols: // _ . : / = + - @. // // Tags is a required field Tags []*Tag `locationName:"tags" type:"list" required:"true"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s TagResourceInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s TagResourceInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *TagResourceInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "TagResourceInput"} if s.ResourceArn == nil { invalidParams.Add(request.NewErrParamRequired("ResourceArn")) } if s.ResourceArn != nil && len(*s.ResourceArn) < 1 { invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1)) } if s.Tags == nil { invalidParams.Add(request.NewErrParamRequired("Tags")) } if s.Tags != nil { for i, v := range s.Tags { if v == nil { continue } if err := v.Validate(); err != nil { invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) } } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetResourceArn sets the ResourceArn field's value. func (s *TagResourceInput) SetResourceArn(v string) *TagResourceInput { s.ResourceArn = &v return s } // SetTags sets the Tags field's value. func (s *TagResourceInput) SetTags(v []*Tag) *TagResourceInput { s.Tags = v return s } type TagResourceOutput struct { _ struct{} `type:"structure"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s TagResourceOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s TagResourceOutput) GoString() string { return s.String() } // Contains details about the credentials that Step Functions uses for a task. type TaskCredentials struct { _ struct{} `type:"structure"` // The ARN of an IAM role that Step Functions assumes for the task. The role // can allow cross-account access to resources. RoleArn *string `locationName:"roleArn" min:"1" type:"string"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s TaskCredentials) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s TaskCredentials) GoString() string { return s.String() } // SetRoleArn sets the RoleArn field's value. func (s *TaskCredentials) SetRoleArn(v string) *TaskCredentials { s.RoleArn = &v return s } type TaskDoesNotExist struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s TaskDoesNotExist) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s TaskDoesNotExist) GoString() string { return s.String() } func newErrorTaskDoesNotExist(v protocol.ResponseMetadata) error { return &TaskDoesNotExist{ RespMetadata: v, } } // Code returns the exception type name. func (s *TaskDoesNotExist) Code() string { return "TaskDoesNotExist" } // Message returns the exception's message. func (s *TaskDoesNotExist) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *TaskDoesNotExist) OrigErr() error { return nil } func (s *TaskDoesNotExist) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } // Status code returns the HTTP status code for the request's response error. func (s *TaskDoesNotExist) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *TaskDoesNotExist) RequestID() string { return s.RespMetadata.RequestID } // Contains details about a task failure event. type TaskFailedEventDetails struct { _ struct{} `type:"structure"` // A more detailed explanation of the cause of the failure. // // Cause is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by TaskFailedEventDetails's // String and GoString methods. Cause *string `locationName:"cause" type:"string" sensitive:"true"` // The error code of the failure. // // Error is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by TaskFailedEventDetails's // String and GoString methods. Error *string `locationName:"error" type:"string" sensitive:"true"` // The action of the resource called by a task state. // // Resource is a required field Resource *string `locationName:"resource" min:"1" type:"string" required:"true"` // The service name of the resource in a task state. // // ResourceType is a required field ResourceType *string `locationName:"resourceType" min:"1" type:"string" required:"true"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s TaskFailedEventDetails) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s TaskFailedEventDetails) GoString() string { return s.String() } // SetCause sets the Cause field's value. func (s *TaskFailedEventDetails) SetCause(v string) *TaskFailedEventDetails { s.Cause = &v return s } // SetError sets the Error field's value. func (s *TaskFailedEventDetails) SetError(v string) *TaskFailedEventDetails { s.Error = &v return s } // SetResource sets the Resource field's value. func (s *TaskFailedEventDetails) SetResource(v string) *TaskFailedEventDetails { s.Resource = &v return s } // SetResourceType sets the ResourceType field's value. func (s *TaskFailedEventDetails) SetResourceType(v string) *TaskFailedEventDetails { s.ResourceType = &v return s } // Contains details about a task scheduled during an execution. type TaskScheduledEventDetails struct { _ struct{} `type:"structure"` // The maximum allowed duration between two heartbeats for the task. HeartbeatInSeconds *int64 `locationName:"heartbeatInSeconds" type:"long"` // The JSON data passed to the resource referenced in a task state. Length constraints // apply to the payload size, and are expressed as bytes in UTF-8 encoding. // // Parameters is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by TaskScheduledEventDetails's // String and GoString methods. // // Parameters is a required field Parameters *string `locationName:"parameters" type:"string" required:"true" sensitive:"true"` // The region of the scheduled task // // Region is a required field Region *string `locationName:"region" min:"1" type:"string" required:"true"` // The action of the resource called by a task state. // // Resource is a required field Resource *string `locationName:"resource" min:"1" type:"string" required:"true"` // The service name of the resource in a task state. // // ResourceType is a required field ResourceType *string `locationName:"resourceType" min:"1" type:"string" required:"true"` // The credentials that Step Functions uses for the task. TaskCredentials *TaskCredentials `locationName:"taskCredentials" type:"structure"` // The maximum allowed duration of the task. TimeoutInSeconds *int64 `locationName:"timeoutInSeconds" type:"long"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s TaskScheduledEventDetails) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s TaskScheduledEventDetails) GoString() string { return s.String() } // SetHeartbeatInSeconds sets the HeartbeatInSeconds field's value. func (s *TaskScheduledEventDetails) SetHeartbeatInSeconds(v int64) *TaskScheduledEventDetails { s.HeartbeatInSeconds = &v return s } // SetParameters sets the Parameters field's value. func (s *TaskScheduledEventDetails) SetParameters(v string) *TaskScheduledEventDetails { s.Parameters = &v return s } // SetRegion sets the Region field's value. func (s *TaskScheduledEventDetails) SetRegion(v string) *TaskScheduledEventDetails { s.Region = &v return s } // SetResource sets the Resource field's value. func (s *TaskScheduledEventDetails) SetResource(v string) *TaskScheduledEventDetails { s.Resource = &v return s } // SetResourceType sets the ResourceType field's value. func (s *TaskScheduledEventDetails) SetResourceType(v string) *TaskScheduledEventDetails { s.ResourceType = &v return s } // SetTaskCredentials sets the TaskCredentials field's value. func (s *TaskScheduledEventDetails) SetTaskCredentials(v *TaskCredentials) *TaskScheduledEventDetails { s.TaskCredentials = v return s } // SetTimeoutInSeconds sets the TimeoutInSeconds field's value. func (s *TaskScheduledEventDetails) SetTimeoutInSeconds(v int64) *TaskScheduledEventDetails { s.TimeoutInSeconds = &v return s } // Contains details about a task that failed to start during an execution. type TaskStartFailedEventDetails struct { _ struct{} `type:"structure"` // A more detailed explanation of the cause of the failure. // // Cause is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by TaskStartFailedEventDetails's // String and GoString methods. Cause *string `locationName:"cause" type:"string" sensitive:"true"` // The error code of the failure. // // Error is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by TaskStartFailedEventDetails's // String and GoString methods. Error *string `locationName:"error" type:"string" sensitive:"true"` // The action of the resource called by a task state. // // Resource is a required field Resource *string `locationName:"resource" min:"1" type:"string" required:"true"` // The service name of the resource in a task state. // // ResourceType is a required field ResourceType *string `locationName:"resourceType" min:"1" type:"string" required:"true"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s TaskStartFailedEventDetails) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s TaskStartFailedEventDetails) GoString() string { return s.String() } // SetCause sets the Cause field's value. func (s *TaskStartFailedEventDetails) SetCause(v string) *TaskStartFailedEventDetails { s.Cause = &v return s } // SetError sets the Error field's value. func (s *TaskStartFailedEventDetails) SetError(v string) *TaskStartFailedEventDetails { s.Error = &v return s } // SetResource sets the Resource field's value. func (s *TaskStartFailedEventDetails) SetResource(v string) *TaskStartFailedEventDetails { s.Resource = &v return s } // SetResourceType sets the ResourceType field's value. func (s *TaskStartFailedEventDetails) SetResourceType(v string) *TaskStartFailedEventDetails { s.ResourceType = &v return s } // Contains details about the start of a task during an execution. type TaskStartedEventDetails struct { _ struct{} `type:"structure"` // The action of the resource called by a task state. // // Resource is a required field Resource *string `locationName:"resource" min:"1" type:"string" required:"true"` // The service name of the resource in a task state. // // ResourceType is a required field ResourceType *string `locationName:"resourceType" min:"1" type:"string" required:"true"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s TaskStartedEventDetails) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s TaskStartedEventDetails) GoString() string { return s.String() } // SetResource sets the Resource field's value. func (s *TaskStartedEventDetails) SetResource(v string) *TaskStartedEventDetails { s.Resource = &v return s } // SetResourceType sets the ResourceType field's value. func (s *TaskStartedEventDetails) SetResourceType(v string) *TaskStartedEventDetails { s.ResourceType = &v return s } // Contains details about a task that failed to submit during an execution. type TaskSubmitFailedEventDetails struct { _ struct{} `type:"structure"` // A more detailed explanation of the cause of the failure. // // Cause is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by TaskSubmitFailedEventDetails's // String and GoString methods. Cause *string `locationName:"cause" type:"string" sensitive:"true"` // The error code of the failure. // // Error is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by TaskSubmitFailedEventDetails's // String and GoString methods. Error *string `locationName:"error" type:"string" sensitive:"true"` // The action of the resource called by a task state. // // Resource is a required field Resource *string `locationName:"resource" min:"1" type:"string" required:"true"` // The service name of the resource in a task state. // // ResourceType is a required field ResourceType *string `locationName:"resourceType" min:"1" type:"string" required:"true"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s TaskSubmitFailedEventDetails) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s TaskSubmitFailedEventDetails) GoString() string { return s.String() } // SetCause sets the Cause field's value. func (s *TaskSubmitFailedEventDetails) SetCause(v string) *TaskSubmitFailedEventDetails { s.Cause = &v return s } // SetError sets the Error field's value. func (s *TaskSubmitFailedEventDetails) SetError(v string) *TaskSubmitFailedEventDetails { s.Error = &v return s } // SetResource sets the Resource field's value. func (s *TaskSubmitFailedEventDetails) SetResource(v string) *TaskSubmitFailedEventDetails { s.Resource = &v return s } // SetResourceType sets the ResourceType field's value. func (s *TaskSubmitFailedEventDetails) SetResourceType(v string) *TaskSubmitFailedEventDetails { s.ResourceType = &v return s } // Contains details about a task submitted to a resource . type TaskSubmittedEventDetails struct { _ struct{} `type:"structure"` // The response from a resource when a task has started. Length constraints // apply to the payload size, and are expressed as bytes in UTF-8 encoding. // // Output is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by TaskSubmittedEventDetails's // String and GoString methods. Output *string `locationName:"output" type:"string" sensitive:"true"` // Contains details about the output of an execution history event. OutputDetails *HistoryEventExecutionDataDetails `locationName:"outputDetails" type:"structure"` // The action of the resource called by a task state. // // Resource is a required field Resource *string `locationName:"resource" min:"1" type:"string" required:"true"` // The service name of the resource in a task state. // // ResourceType is a required field ResourceType *string `locationName:"resourceType" min:"1" type:"string" required:"true"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s TaskSubmittedEventDetails) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s TaskSubmittedEventDetails) GoString() string { return s.String() } // SetOutput sets the Output field's value. func (s *TaskSubmittedEventDetails) SetOutput(v string) *TaskSubmittedEventDetails { s.Output = &v return s } // SetOutputDetails sets the OutputDetails field's value. func (s *TaskSubmittedEventDetails) SetOutputDetails(v *HistoryEventExecutionDataDetails) *TaskSubmittedEventDetails { s.OutputDetails = v return s } // SetResource sets the Resource field's value. func (s *TaskSubmittedEventDetails) SetResource(v string) *TaskSubmittedEventDetails { s.Resource = &v return s } // SetResourceType sets the ResourceType field's value. func (s *TaskSubmittedEventDetails) SetResourceType(v string) *TaskSubmittedEventDetails { s.ResourceType = &v return s } // Contains details about the successful completion of a task state. type TaskSucceededEventDetails struct { _ struct{} `type:"structure"` // The full JSON response from a resource when a task has succeeded. This response // becomes the output of the related task. Length constraints apply to the payload // size, and are expressed as bytes in UTF-8 encoding. // // Output is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by TaskSucceededEventDetails's // String and GoString methods. Output *string `locationName:"output" type:"string" sensitive:"true"` // Contains details about the output of an execution history event. OutputDetails *HistoryEventExecutionDataDetails `locationName:"outputDetails" type:"structure"` // The action of the resource called by a task state. // // Resource is a required field Resource *string `locationName:"resource" min:"1" type:"string" required:"true"` // The service name of the resource in a task state. // // ResourceType is a required field ResourceType *string `locationName:"resourceType" min:"1" type:"string" required:"true"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s TaskSucceededEventDetails) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s TaskSucceededEventDetails) GoString() string { return s.String() } // SetOutput sets the Output field's value. func (s *TaskSucceededEventDetails) SetOutput(v string) *TaskSucceededEventDetails { s.Output = &v return s } // SetOutputDetails sets the OutputDetails field's value. func (s *TaskSucceededEventDetails) SetOutputDetails(v *HistoryEventExecutionDataDetails) *TaskSucceededEventDetails { s.OutputDetails = v return s } // SetResource sets the Resource field's value. func (s *TaskSucceededEventDetails) SetResource(v string) *TaskSucceededEventDetails { s.Resource = &v return s } // SetResourceType sets the ResourceType field's value. func (s *TaskSucceededEventDetails) SetResourceType(v string) *TaskSucceededEventDetails { s.ResourceType = &v return s } type TaskTimedOut struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s TaskTimedOut) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s TaskTimedOut) GoString() string { return s.String() } func newErrorTaskTimedOut(v protocol.ResponseMetadata) error { return &TaskTimedOut{ RespMetadata: v, } } // Code returns the exception type name. func (s *TaskTimedOut) Code() string { return "TaskTimedOut" } // Message returns the exception's message. func (s *TaskTimedOut) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *TaskTimedOut) OrigErr() error { return nil } func (s *TaskTimedOut) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } // Status code returns the HTTP status code for the request's response error. func (s *TaskTimedOut) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *TaskTimedOut) RequestID() string { return s.RespMetadata.RequestID } // Contains details about a resource timeout that occurred during an execution. type TaskTimedOutEventDetails struct { _ struct{} `type:"structure"` // A more detailed explanation of the cause of the failure. // // Cause is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by TaskTimedOutEventDetails's // String and GoString methods. Cause *string `locationName:"cause" type:"string" sensitive:"true"` // The error code of the failure. // // Error is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by TaskTimedOutEventDetails's // String and GoString methods. Error *string `locationName:"error" type:"string" sensitive:"true"` // The action of the resource called by a task state. // // Resource is a required field Resource *string `locationName:"resource" min:"1" type:"string" required:"true"` // The service name of the resource in a task state. // // ResourceType is a required field ResourceType *string `locationName:"resourceType" min:"1" type:"string" required:"true"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s TaskTimedOutEventDetails) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s TaskTimedOutEventDetails) GoString() string { return s.String() } // SetCause sets the Cause field's value. func (s *TaskTimedOutEventDetails) SetCause(v string) *TaskTimedOutEventDetails { s.Cause = &v return s } // SetError sets the Error field's value. func (s *TaskTimedOutEventDetails) SetError(v string) *TaskTimedOutEventDetails { s.Error = &v return s } // SetResource sets the Resource field's value. func (s *TaskTimedOutEventDetails) SetResource(v string) *TaskTimedOutEventDetails { s.Resource = &v return s } // SetResourceType sets the ResourceType field's value. func (s *TaskTimedOutEventDetails) SetResourceType(v string) *TaskTimedOutEventDetails { s.ResourceType = &v return s } // You've exceeded the number of tags allowed for a resource. See the Limits // Topic (https://docs.aws.amazon.com/step-functions/latest/dg/limits.html) // in the Step Functions Developer Guide. type TooManyTags struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` ResourceName *string `locationName:"resourceName" min:"1" type:"string"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s TooManyTags) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s TooManyTags) GoString() string { return s.String() } func newErrorTooManyTags(v protocol.ResponseMetadata) error { return &TooManyTags{ RespMetadata: v, } } // Code returns the exception type name. func (s *TooManyTags) Code() string { return "TooManyTags" } // Message returns the exception's message. func (s *TooManyTags) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *TooManyTags) OrigErr() error { return nil } func (s *TooManyTags) Error() string { return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) } // Status code returns the HTTP status code for the request's response error. func (s *TooManyTags) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *TooManyTags) RequestID() string { return s.RespMetadata.RequestID } // Selects whether or not the state machine's X-Ray tracing is enabled. Default // is false type TracingConfiguration struct { _ struct{} `type:"structure"` // When set to true, X-Ray tracing is enabled. Enabled *bool `locationName:"enabled" type:"boolean"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s TracingConfiguration) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s TracingConfiguration) GoString() string { return s.String() } // SetEnabled sets the Enabled field's value. func (s *TracingConfiguration) SetEnabled(v bool) *TracingConfiguration { s.Enabled = &v return s } type UntagResourceInput struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) for the Step Functions state machine or activity. // // ResourceArn is a required field ResourceArn *string `locationName:"resourceArn" min:"1" type:"string" required:"true"` // The list of tags to remove from the resource. // // TagKeys is a required field TagKeys []*string `locationName:"tagKeys" type:"list" required:"true"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s UntagResourceInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s UntagResourceInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *UntagResourceInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "UntagResourceInput"} if s.ResourceArn == nil { invalidParams.Add(request.NewErrParamRequired("ResourceArn")) } if s.ResourceArn != nil && len(*s.ResourceArn) < 1 { invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1)) } if s.TagKeys == nil { invalidParams.Add(request.NewErrParamRequired("TagKeys")) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetResourceArn sets the ResourceArn field's value. func (s *UntagResourceInput) SetResourceArn(v string) *UntagResourceInput { s.ResourceArn = &v return s } // SetTagKeys sets the TagKeys field's value. func (s *UntagResourceInput) SetTagKeys(v []*string) *UntagResourceInput { s.TagKeys = v return s } type UntagResourceOutput struct { _ struct{} `type:"structure"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s UntagResourceOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s UntagResourceOutput) GoString() string { return s.String() } type UpdateMapRunInput struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) of a Map Run. // // MapRunArn is a required field MapRunArn *string `locationName:"mapRunArn" min:"1" type:"string" required:"true"` // The maximum number of child workflow executions that can be specified to // run in parallel for the Map Run at the same time. MaxConcurrency *int64 `locationName:"maxConcurrency" type:"integer"` // The maximum number of failed items before the Map Run fails. ToleratedFailureCount *int64 `locationName:"toleratedFailureCount" type:"long"` // The maximum percentage of failed items before the Map Run fails. ToleratedFailurePercentage *float64 `locationName:"toleratedFailurePercentage" type:"float"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s UpdateMapRunInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s UpdateMapRunInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *UpdateMapRunInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "UpdateMapRunInput"} if s.MapRunArn == nil { invalidParams.Add(request.NewErrParamRequired("MapRunArn")) } if s.MapRunArn != nil && len(*s.MapRunArn) < 1 { invalidParams.Add(request.NewErrParamMinLen("MapRunArn", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetMapRunArn sets the MapRunArn field's value. func (s *UpdateMapRunInput) SetMapRunArn(v string) *UpdateMapRunInput { s.MapRunArn = &v return s } // SetMaxConcurrency sets the MaxConcurrency field's value. func (s *UpdateMapRunInput) SetMaxConcurrency(v int64) *UpdateMapRunInput { s.MaxConcurrency = &v return s } // SetToleratedFailureCount sets the ToleratedFailureCount field's value. func (s *UpdateMapRunInput) SetToleratedFailureCount(v int64) *UpdateMapRunInput { s.ToleratedFailureCount = &v return s } // SetToleratedFailurePercentage sets the ToleratedFailurePercentage field's value. func (s *UpdateMapRunInput) SetToleratedFailurePercentage(v float64) *UpdateMapRunInput { s.ToleratedFailurePercentage = &v return s } type UpdateMapRunOutput struct { _ struct{} `type:"structure"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s UpdateMapRunOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s UpdateMapRunOutput) GoString() string { return s.String() } type UpdateStateMachineInput struct { _ struct{} `type:"structure"` // The Amazon States Language definition of the state machine. See Amazon States // Language (https://docs.aws.amazon.com/step-functions/latest/dg/concepts-amazon-states-language.html). // // Definition is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by UpdateStateMachineInput's // String and GoString methods. Definition *string `locationName:"definition" min:"1" type:"string" sensitive:"true"` // The LoggingConfiguration data type is used to set CloudWatch Logs options. LoggingConfiguration *LoggingConfiguration `locationName:"loggingConfiguration" type:"structure"` // The Amazon Resource Name (ARN) of the IAM role of the state machine. RoleArn *string `locationName:"roleArn" min:"1" type:"string"` // The Amazon Resource Name (ARN) of the state machine. // // StateMachineArn is a required field StateMachineArn *string `locationName:"stateMachineArn" min:"1" type:"string" required:"true"` // Selects whether X-Ray tracing is enabled. TracingConfiguration *TracingConfiguration `locationName:"tracingConfiguration" type:"structure"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s UpdateStateMachineInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s UpdateStateMachineInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. func (s *UpdateStateMachineInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "UpdateStateMachineInput"} if s.Definition != nil && len(*s.Definition) < 1 { invalidParams.Add(request.NewErrParamMinLen("Definition", 1)) } if s.RoleArn != nil && len(*s.RoleArn) < 1 { invalidParams.Add(request.NewErrParamMinLen("RoleArn", 1)) } if s.StateMachineArn == nil { invalidParams.Add(request.NewErrParamRequired("StateMachineArn")) } if s.StateMachineArn != nil && len(*s.StateMachineArn) < 1 { invalidParams.Add(request.NewErrParamMinLen("StateMachineArn", 1)) } if s.LoggingConfiguration != nil { if err := s.LoggingConfiguration.Validate(); err != nil { invalidParams.AddNested("LoggingConfiguration", err.(request.ErrInvalidParams)) } } if invalidParams.Len() > 0 { return invalidParams } return nil } // SetDefinition sets the Definition field's value. func (s *UpdateStateMachineInput) SetDefinition(v string) *UpdateStateMachineInput { s.Definition = &v return s } // SetLoggingConfiguration sets the LoggingConfiguration field's value. func (s *UpdateStateMachineInput) SetLoggingConfiguration(v *LoggingConfiguration) *UpdateStateMachineInput { s.LoggingConfiguration = v return s } // SetRoleArn sets the RoleArn field's value. func (s *UpdateStateMachineInput) SetRoleArn(v string) *UpdateStateMachineInput { s.RoleArn = &v return s } // SetStateMachineArn sets the StateMachineArn field's value. func (s *UpdateStateMachineInput) SetStateMachineArn(v string) *UpdateStateMachineInput { s.StateMachineArn = &v return s } // SetTracingConfiguration sets the TracingConfiguration field's value. func (s *UpdateStateMachineInput) SetTracingConfiguration(v *TracingConfiguration) *UpdateStateMachineInput { s.TracingConfiguration = v return s } type UpdateStateMachineOutput struct { _ struct{} `type:"structure"` // The date and time the state machine was updated. // // UpdateDate is a required field UpdateDate *time.Time `locationName:"updateDate" type:"timestamp" required:"true"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s UpdateStateMachineOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s UpdateStateMachineOutput) GoString() string { return s.String() } // SetUpdateDate sets the UpdateDate field's value. func (s *UpdateStateMachineOutput) SetUpdateDate(v time.Time) *UpdateStateMachineOutput { s.UpdateDate = &v return s } // The input does not satisfy the constraints specified by an Amazon Web Services // service. type ValidationException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` // The input does not satisfy the constraints specified by an Amazon Web Services // service. Reason *string `locationName:"reason" type:"string" enum:"ValidationExceptionReason"` } // String returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ValidationException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation. // // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". func (s ValidationException) GoString() string { return s.String() } func newErrorValidationException(v protocol.ResponseMetadata) error { return &ValidationException{ RespMetadata: v, } } // Code returns the exception type name. func (s *ValidationException) Code() string { return "ValidationException" } // Message returns the exception's message. func (s *ValidationException) Message() string { if s.Message_ != nil { return *s.Message_ } return "" } // OrigErr always returns nil, satisfies awserr.Error interface. func (s *ValidationException) OrigErr() error { return nil } func (s *ValidationException) Error() string { return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) } // Status code returns the HTTP status code for the request's response error. func (s *ValidationException) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. func (s *ValidationException) RequestID() string { return s.RespMetadata.RequestID } const ( // ExecutionStatusRunning is a ExecutionStatus enum value ExecutionStatusRunning = "RUNNING" // ExecutionStatusSucceeded is a ExecutionStatus enum value ExecutionStatusSucceeded = "SUCCEEDED" // ExecutionStatusFailed is a ExecutionStatus enum value ExecutionStatusFailed = "FAILED" // ExecutionStatusTimedOut is a ExecutionStatus enum value ExecutionStatusTimedOut = "TIMED_OUT" // ExecutionStatusAborted is a ExecutionStatus enum value ExecutionStatusAborted = "ABORTED" ) // ExecutionStatus_Values returns all elements of the ExecutionStatus enum func ExecutionStatus_Values() []string { return []string{ ExecutionStatusRunning, ExecutionStatusSucceeded, ExecutionStatusFailed, ExecutionStatusTimedOut, ExecutionStatusAborted, } } const ( // HistoryEventTypeActivityFailed is a HistoryEventType enum value HistoryEventTypeActivityFailed = "ActivityFailed" // HistoryEventTypeActivityScheduled is a HistoryEventType enum value HistoryEventTypeActivityScheduled = "ActivityScheduled" // HistoryEventTypeActivityScheduleFailed is a HistoryEventType enum value HistoryEventTypeActivityScheduleFailed = "ActivityScheduleFailed" // HistoryEventTypeActivityStarted is a HistoryEventType enum value HistoryEventTypeActivityStarted = "ActivityStarted" // HistoryEventTypeActivitySucceeded is a HistoryEventType enum value HistoryEventTypeActivitySucceeded = "ActivitySucceeded" // HistoryEventTypeActivityTimedOut is a HistoryEventType enum value HistoryEventTypeActivityTimedOut = "ActivityTimedOut" // HistoryEventTypeChoiceStateEntered is a HistoryEventType enum value HistoryEventTypeChoiceStateEntered = "ChoiceStateEntered" // HistoryEventTypeChoiceStateExited is a HistoryEventType enum value HistoryEventTypeChoiceStateExited = "ChoiceStateExited" // HistoryEventTypeExecutionAborted is a HistoryEventType enum value HistoryEventTypeExecutionAborted = "ExecutionAborted" // HistoryEventTypeExecutionFailed is a HistoryEventType enum value HistoryEventTypeExecutionFailed = "ExecutionFailed" // HistoryEventTypeExecutionStarted is a HistoryEventType enum value HistoryEventTypeExecutionStarted = "ExecutionStarted" // HistoryEventTypeExecutionSucceeded is a HistoryEventType enum value HistoryEventTypeExecutionSucceeded = "ExecutionSucceeded" // HistoryEventTypeExecutionTimedOut is a HistoryEventType enum value HistoryEventTypeExecutionTimedOut = "ExecutionTimedOut" // HistoryEventTypeFailStateEntered is a HistoryEventType enum value HistoryEventTypeFailStateEntered = "FailStateEntered" // HistoryEventTypeLambdaFunctionFailed is a HistoryEventType enum value HistoryEventTypeLambdaFunctionFailed = "LambdaFunctionFailed" // HistoryEventTypeLambdaFunctionScheduled is a HistoryEventType enum value HistoryEventTypeLambdaFunctionScheduled = "LambdaFunctionScheduled" // HistoryEventTypeLambdaFunctionScheduleFailed is a HistoryEventType enum value HistoryEventTypeLambdaFunctionScheduleFailed = "LambdaFunctionScheduleFailed" // HistoryEventTypeLambdaFunctionStarted is a HistoryEventType enum value HistoryEventTypeLambdaFunctionStarted = "LambdaFunctionStarted" // HistoryEventTypeLambdaFunctionStartFailed is a HistoryEventType enum value HistoryEventTypeLambdaFunctionStartFailed = "LambdaFunctionStartFailed" // HistoryEventTypeLambdaFunctionSucceeded is a HistoryEventType enum value HistoryEventTypeLambdaFunctionSucceeded = "LambdaFunctionSucceeded" // HistoryEventTypeLambdaFunctionTimedOut is a HistoryEventType enum value HistoryEventTypeLambdaFunctionTimedOut = "LambdaFunctionTimedOut" // HistoryEventTypeMapIterationAborted is a HistoryEventType enum value HistoryEventTypeMapIterationAborted = "MapIterationAborted" // HistoryEventTypeMapIterationFailed is a HistoryEventType enum value HistoryEventTypeMapIterationFailed = "MapIterationFailed" // HistoryEventTypeMapIterationStarted is a HistoryEventType enum value HistoryEventTypeMapIterationStarted = "MapIterationStarted" // HistoryEventTypeMapIterationSucceeded is a HistoryEventType enum value HistoryEventTypeMapIterationSucceeded = "MapIterationSucceeded" // HistoryEventTypeMapStateAborted is a HistoryEventType enum value HistoryEventTypeMapStateAborted = "MapStateAborted" // HistoryEventTypeMapStateEntered is a HistoryEventType enum value HistoryEventTypeMapStateEntered = "MapStateEntered" // HistoryEventTypeMapStateExited is a HistoryEventType enum value HistoryEventTypeMapStateExited = "MapStateExited" // HistoryEventTypeMapStateFailed is a HistoryEventType enum value HistoryEventTypeMapStateFailed = "MapStateFailed" // HistoryEventTypeMapStateStarted is a HistoryEventType enum value HistoryEventTypeMapStateStarted = "MapStateStarted" // HistoryEventTypeMapStateSucceeded is a HistoryEventType enum value HistoryEventTypeMapStateSucceeded = "MapStateSucceeded" // HistoryEventTypeParallelStateAborted is a HistoryEventType enum value HistoryEventTypeParallelStateAborted = "ParallelStateAborted" // HistoryEventTypeParallelStateEntered is a HistoryEventType enum value HistoryEventTypeParallelStateEntered = "ParallelStateEntered" // HistoryEventTypeParallelStateExited is a HistoryEventType enum value HistoryEventTypeParallelStateExited = "ParallelStateExited" // HistoryEventTypeParallelStateFailed is a HistoryEventType enum value HistoryEventTypeParallelStateFailed = "ParallelStateFailed" // HistoryEventTypeParallelStateStarted is a HistoryEventType enum value HistoryEventTypeParallelStateStarted = "ParallelStateStarted" // HistoryEventTypeParallelStateSucceeded is a HistoryEventType enum value HistoryEventTypeParallelStateSucceeded = "ParallelStateSucceeded" // HistoryEventTypePassStateEntered is a HistoryEventType enum value HistoryEventTypePassStateEntered = "PassStateEntered" // HistoryEventTypePassStateExited is a HistoryEventType enum value HistoryEventTypePassStateExited = "PassStateExited" // HistoryEventTypeSucceedStateEntered is a HistoryEventType enum value HistoryEventTypeSucceedStateEntered = "SucceedStateEntered" // HistoryEventTypeSucceedStateExited is a HistoryEventType enum value HistoryEventTypeSucceedStateExited = "SucceedStateExited" // HistoryEventTypeTaskFailed is a HistoryEventType enum value HistoryEventTypeTaskFailed = "TaskFailed" // HistoryEventTypeTaskScheduled is a HistoryEventType enum value HistoryEventTypeTaskScheduled = "TaskScheduled" // HistoryEventTypeTaskStarted is a HistoryEventType enum value HistoryEventTypeTaskStarted = "TaskStarted" // HistoryEventTypeTaskStartFailed is a HistoryEventType enum value HistoryEventTypeTaskStartFailed = "TaskStartFailed" // HistoryEventTypeTaskStateAborted is a HistoryEventType enum value HistoryEventTypeTaskStateAborted = "TaskStateAborted" // HistoryEventTypeTaskStateEntered is a HistoryEventType enum value HistoryEventTypeTaskStateEntered = "TaskStateEntered" // HistoryEventTypeTaskStateExited is a HistoryEventType enum value HistoryEventTypeTaskStateExited = "TaskStateExited" // HistoryEventTypeTaskSubmitFailed is a HistoryEventType enum value HistoryEventTypeTaskSubmitFailed = "TaskSubmitFailed" // HistoryEventTypeTaskSubmitted is a HistoryEventType enum value HistoryEventTypeTaskSubmitted = "TaskSubmitted" // HistoryEventTypeTaskSucceeded is a HistoryEventType enum value HistoryEventTypeTaskSucceeded = "TaskSucceeded" // HistoryEventTypeTaskTimedOut is a HistoryEventType enum value HistoryEventTypeTaskTimedOut = "TaskTimedOut" // HistoryEventTypeWaitStateAborted is a HistoryEventType enum value HistoryEventTypeWaitStateAborted = "WaitStateAborted" // HistoryEventTypeWaitStateEntered is a HistoryEventType enum value HistoryEventTypeWaitStateEntered = "WaitStateEntered" // HistoryEventTypeWaitStateExited is a HistoryEventType enum value HistoryEventTypeWaitStateExited = "WaitStateExited" // HistoryEventTypeMapRunAborted is a HistoryEventType enum value HistoryEventTypeMapRunAborted = "MapRunAborted" // HistoryEventTypeMapRunFailed is a HistoryEventType enum value HistoryEventTypeMapRunFailed = "MapRunFailed" // HistoryEventTypeMapRunStarted is a HistoryEventType enum value HistoryEventTypeMapRunStarted = "MapRunStarted" // HistoryEventTypeMapRunSucceeded is a HistoryEventType enum value HistoryEventTypeMapRunSucceeded = "MapRunSucceeded" ) // HistoryEventType_Values returns all elements of the HistoryEventType enum func HistoryEventType_Values() []string { return []string{ HistoryEventTypeActivityFailed, HistoryEventTypeActivityScheduled, HistoryEventTypeActivityScheduleFailed, HistoryEventTypeActivityStarted, HistoryEventTypeActivitySucceeded, HistoryEventTypeActivityTimedOut, HistoryEventTypeChoiceStateEntered, HistoryEventTypeChoiceStateExited, HistoryEventTypeExecutionAborted, HistoryEventTypeExecutionFailed, HistoryEventTypeExecutionStarted, HistoryEventTypeExecutionSucceeded, HistoryEventTypeExecutionTimedOut, HistoryEventTypeFailStateEntered, HistoryEventTypeLambdaFunctionFailed, HistoryEventTypeLambdaFunctionScheduled, HistoryEventTypeLambdaFunctionScheduleFailed, HistoryEventTypeLambdaFunctionStarted, HistoryEventTypeLambdaFunctionStartFailed, HistoryEventTypeLambdaFunctionSucceeded, HistoryEventTypeLambdaFunctionTimedOut, HistoryEventTypeMapIterationAborted, HistoryEventTypeMapIterationFailed, HistoryEventTypeMapIterationStarted, HistoryEventTypeMapIterationSucceeded, HistoryEventTypeMapStateAborted, HistoryEventTypeMapStateEntered, HistoryEventTypeMapStateExited, HistoryEventTypeMapStateFailed, HistoryEventTypeMapStateStarted, HistoryEventTypeMapStateSucceeded, HistoryEventTypeParallelStateAborted, HistoryEventTypeParallelStateEntered, HistoryEventTypeParallelStateExited, HistoryEventTypeParallelStateFailed, HistoryEventTypeParallelStateStarted, HistoryEventTypeParallelStateSucceeded, HistoryEventTypePassStateEntered, HistoryEventTypePassStateExited, HistoryEventTypeSucceedStateEntered, HistoryEventTypeSucceedStateExited, HistoryEventTypeTaskFailed, HistoryEventTypeTaskScheduled, HistoryEventTypeTaskStarted, HistoryEventTypeTaskStartFailed, HistoryEventTypeTaskStateAborted, HistoryEventTypeTaskStateEntered, HistoryEventTypeTaskStateExited, HistoryEventTypeTaskSubmitFailed, HistoryEventTypeTaskSubmitted, HistoryEventTypeTaskSucceeded, HistoryEventTypeTaskTimedOut, HistoryEventTypeWaitStateAborted, HistoryEventTypeWaitStateEntered, HistoryEventTypeWaitStateExited, HistoryEventTypeMapRunAborted, HistoryEventTypeMapRunFailed, HistoryEventTypeMapRunStarted, HistoryEventTypeMapRunSucceeded, } } const ( // LogLevelAll is a LogLevel enum value LogLevelAll = "ALL" // LogLevelError is a LogLevel enum value LogLevelError = "ERROR" // LogLevelFatal is a LogLevel enum value LogLevelFatal = "FATAL" // LogLevelOff is a LogLevel enum value LogLevelOff = "OFF" ) // LogLevel_Values returns all elements of the LogLevel enum func LogLevel_Values() []string { return []string{ LogLevelAll, LogLevelError, LogLevelFatal, LogLevelOff, } } const ( // MapRunStatusRunning is a MapRunStatus enum value MapRunStatusRunning = "RUNNING" // MapRunStatusSucceeded is a MapRunStatus enum value MapRunStatusSucceeded = "SUCCEEDED" // MapRunStatusFailed is a MapRunStatus enum value MapRunStatusFailed = "FAILED" // MapRunStatusAborted is a MapRunStatus enum value MapRunStatusAborted = "ABORTED" ) // MapRunStatus_Values returns all elements of the MapRunStatus enum func MapRunStatus_Values() []string { return []string{ MapRunStatusRunning, MapRunStatusSucceeded, MapRunStatusFailed, MapRunStatusAborted, } } const ( // StateMachineStatusActive is a StateMachineStatus enum value StateMachineStatusActive = "ACTIVE" // StateMachineStatusDeleting is a StateMachineStatus enum value StateMachineStatusDeleting = "DELETING" ) // StateMachineStatus_Values returns all elements of the StateMachineStatus enum func StateMachineStatus_Values() []string { return []string{ StateMachineStatusActive, StateMachineStatusDeleting, } } const ( // StateMachineTypeStandard is a StateMachineType enum value StateMachineTypeStandard = "STANDARD" // StateMachineTypeExpress is a StateMachineType enum value StateMachineTypeExpress = "EXPRESS" ) // StateMachineType_Values returns all elements of the StateMachineType enum func StateMachineType_Values() []string { return []string{ StateMachineTypeStandard, StateMachineTypeExpress, } } const ( // SyncExecutionStatusSucceeded is a SyncExecutionStatus enum value SyncExecutionStatusSucceeded = "SUCCEEDED" // SyncExecutionStatusFailed is a SyncExecutionStatus enum value SyncExecutionStatusFailed = "FAILED" // SyncExecutionStatusTimedOut is a SyncExecutionStatus enum value SyncExecutionStatusTimedOut = "TIMED_OUT" ) // SyncExecutionStatus_Values returns all elements of the SyncExecutionStatus enum func SyncExecutionStatus_Values() []string { return []string{ SyncExecutionStatusSucceeded, SyncExecutionStatusFailed, SyncExecutionStatusTimedOut, } } const ( // ValidationExceptionReasonApiDoesNotSupportLabeledArns is a ValidationExceptionReason enum value ValidationExceptionReasonApiDoesNotSupportLabeledArns = "API_DOES_NOT_SUPPORT_LABELED_ARNS" // ValidationExceptionReasonMissingRequiredParameter is a ValidationExceptionReason enum value ValidationExceptionReasonMissingRequiredParameter = "MISSING_REQUIRED_PARAMETER" // ValidationExceptionReasonCannotUpdateCompletedMapRun is a ValidationExceptionReason enum value ValidationExceptionReasonCannotUpdateCompletedMapRun = "CANNOT_UPDATE_COMPLETED_MAP_RUN" ) // ValidationExceptionReason_Values returns all elements of the ValidationExceptionReason enum func ValidationExceptionReason_Values() []string { return []string{ ValidationExceptionReasonApiDoesNotSupportLabeledArns, ValidationExceptionReasonMissingRequiredParameter, ValidationExceptionReasonCannotUpdateCompletedMapRun, } }