Documentation
¶
Index ¶
- Constants
- func AddResolveEndpointMiddleware(stack *middleware.Stack, options ResolveEndpointMiddlewareOptions)
- func NewDefaultEndpointResolver() *internalendpoints.Resolver
- func RemoveResolveEndpointMiddleware(stack *middleware.Stack) error
- type Client
- func (c *Client) CreateActivity(ctx context.Context, params *CreateActivityInput, optFns ...func(*Options)) (*CreateActivityOutput, error)
- func (c *Client) CreateStateMachine(ctx context.Context, params *CreateStateMachineInput, optFns ...func(*Options)) (*CreateStateMachineOutput, error)
- func (c *Client) DeleteActivity(ctx context.Context, params *DeleteActivityInput, optFns ...func(*Options)) (*DeleteActivityOutput, error)
- func (c *Client) DeleteStateMachine(ctx context.Context, params *DeleteStateMachineInput, optFns ...func(*Options)) (*DeleteStateMachineOutput, error)
- func (c *Client) DescribeActivity(ctx context.Context, params *DescribeActivityInput, optFns ...func(*Options)) (*DescribeActivityOutput, error)
- func (c *Client) DescribeExecution(ctx context.Context, params *DescribeExecutionInput, optFns ...func(*Options)) (*DescribeExecutionOutput, error)
- func (c *Client) DescribeStateMachine(ctx context.Context, params *DescribeStateMachineInput, ...) (*DescribeStateMachineOutput, error)
- func (c *Client) DescribeStateMachineForExecution(ctx context.Context, params *DescribeStateMachineForExecutionInput, ...) (*DescribeStateMachineForExecutionOutput, error)
- func (c *Client) GetActivityTask(ctx context.Context, params *GetActivityTaskInput, optFns ...func(*Options)) (*GetActivityTaskOutput, error)
- func (c *Client) GetExecutionHistory(ctx context.Context, params *GetExecutionHistoryInput, ...) (*GetExecutionHistoryOutput, error)
- func (c *Client) ListActivities(ctx context.Context, params *ListActivitiesInput, optFns ...func(*Options)) (*ListActivitiesOutput, error)
- func (c *Client) ListExecutions(ctx context.Context, params *ListExecutionsInput, optFns ...func(*Options)) (*ListExecutionsOutput, error)
- func (c *Client) ListStateMachines(ctx context.Context, params *ListStateMachinesInput, optFns ...func(*Options)) (*ListStateMachinesOutput, error)
- func (c *Client) ListTagsForResource(ctx context.Context, params *ListTagsForResourceInput, ...) (*ListTagsForResourceOutput, error)
- func (c *Client) SendTaskFailure(ctx context.Context, params *SendTaskFailureInput, optFns ...func(*Options)) (*SendTaskFailureOutput, error)
- func (c *Client) SendTaskHeartbeat(ctx context.Context, params *SendTaskHeartbeatInput, optFns ...func(*Options)) (*SendTaskHeartbeatOutput, error)
- func (c *Client) SendTaskSuccess(ctx context.Context, params *SendTaskSuccessInput, optFns ...func(*Options)) (*SendTaskSuccessOutput, error)
- func (c *Client) StartExecution(ctx context.Context, params *StartExecutionInput, optFns ...func(*Options)) (*StartExecutionOutput, error)
- func (c *Client) StopExecution(ctx context.Context, params *StopExecutionInput, optFns ...func(*Options)) (*StopExecutionOutput, error)
- func (c *Client) TagResource(ctx context.Context, params *TagResourceInput, optFns ...func(*Options)) (*TagResourceOutput, error)
- func (c *Client) UntagResource(ctx context.Context, params *UntagResourceInput, optFns ...func(*Options)) (*UntagResourceOutput, error)
- func (c *Client) UpdateStateMachine(ctx context.Context, params *UpdateStateMachineInput, optFns ...func(*Options)) (*UpdateStateMachineOutput, error)
- type CreateActivityInput
- type CreateActivityOutput
- type CreateStateMachineInput
- type CreateStateMachineOutput
- type DeleteActivityInput
- type DeleteActivityOutput
- type DeleteStateMachineInput
- type DeleteStateMachineOutput
- type DescribeActivityInput
- type DescribeActivityOutput
- type DescribeExecutionInput
- type DescribeExecutionOutput
- type DescribeStateMachineForExecutionInput
- type DescribeStateMachineForExecutionOutput
- type DescribeStateMachineInput
- type DescribeStateMachineOutput
- type EndpointResolver
- type EndpointResolverFunc
- type GetActivityTaskInput
- type GetActivityTaskOutput
- type GetExecutionHistoryInput
- type GetExecutionHistoryOutput
- type HTTPClient
- type HTTPSignerV4
- type ListActivitiesInput
- type ListActivitiesOutput
- type ListExecutionsInput
- type ListExecutionsOutput
- type ListStateMachinesInput
- type ListStateMachinesOutput
- type ListTagsForResourceInput
- type ListTagsForResourceOutput
- type Options
- func (o Options) Copy() Options
- func (o Options) GetCredentials() aws.CredentialsProvider
- func (o Options) GetEndpointOptions() ResolverOptions
- func (o Options) GetEndpointResolver() EndpointResolver
- func (o Options) GetHTTPSignerV4() HTTPSignerV4
- func (o Options) GetRegion() string
- func (o Options) GetRetryer() retry.Retryer
- type ResolveEndpoint
- type ResolveEndpointMiddlewareOptions
- type ResolverOptions
- type SendTaskFailureInput
- type SendTaskFailureOutput
- type SendTaskHeartbeatInput
- type SendTaskHeartbeatOutput
- type SendTaskSuccessInput
- type SendTaskSuccessOutput
- type StartExecutionInput
- type StartExecutionOutput
- type StopExecutionInput
- type StopExecutionOutput
- type TagResourceInput
- type TagResourceOutput
- type UntagResourceInput
- type UntagResourceOutput
- type UpdateStateMachineInput
- type UpdateStateMachineOutput
Constants ¶
const ServiceAPIVersion = "2016-11-23"
const ServiceID = "SFN"
Variables ¶
This section is empty.
Functions ¶
func AddResolveEndpointMiddleware ¶
func AddResolveEndpointMiddleware(stack *middleware.Stack, options ResolveEndpointMiddlewareOptions)
func NewDefaultEndpointResolver ¶
func NewDefaultEndpointResolver() *internalendpoints.Resolver
NewDefaultEndpointResolver constructs a new service endpoint resolver
func RemoveResolveEndpointMiddleware ¶
func RemoveResolveEndpointMiddleware(stack *middleware.Stack) error
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
AWS Step Functions AWS Step Functions is a service that lets you coordinate the components of distributed applications and microservices using visual workflows. You can use Step Functions to build applications from individual components, each of which performs a discrete function, or task, allowing you to scale and change applications quickly. Step Functions provides a console that helps visualize the components of your application as a series of steps. Step Functions automatically triggers and tracks each step, and retries steps when there are errors, so your application executes predictably and in the right order every time. Step Functions logs the state of each step, so you can quickly diagnose and debug any issues. Step Functions manages operations and underlying infrastructure to ensure your application is available at any scale. You can run tasks on AWS, your own servers, or any system that has access to AWS. You can access and use Step Functions using the console, the AWS SDKs, or an HTTP API. For more information about Step Functions, see the AWS Step Functions Developer Guide (https://docs.aws.amazon.com/step-functions/latest/dg/welcome.html) .
func New ¶
New returns an initialized Client based on the functional options. Provide additional functional options to further configure the behavior of the client, such as changing the client's endpoint or adding custom middleware behavior.
func NewFromConfig ¶
NewFromConfig returns a new client from the provided config.
func (*Client) CreateActivity ¶
func (c *Client) CreateActivity(ctx context.Context, params *CreateActivityInput, optFns ...func(*Options)) (*CreateActivityOutput, error)
Creates an activity. An activity is a task that you write in any programming language and host on any machine that has access to AWS 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.
func (*Client) CreateStateMachine ¶
func (c *Client) CreateStateMachine(ctx context.Context, params *CreateStateMachineInput, optFns ...func(*Options)) (*CreateStateMachineOutput, error)
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 AWS 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, and LoggingConfiguration. 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.
func (*Client) DeleteActivity ¶
func (c *Client) DeleteActivity(ctx context.Context, params *DeleteActivityInput, optFns ...func(*Options)) (*DeleteActivityOutput, error)
Deletes an activity.
func (*Client) DeleteStateMachine ¶
func (c *Client) DeleteStateMachine(ctx context.Context, params *DeleteStateMachineInput, optFns ...func(*Options)) (*DeleteStateMachineOutput, error)
Deletes a state machine. This is an asynchronous operation: It sets the state machine's status to DELETING and begins the deletion process. For EXPRESSstate machines, the deletion will happen eventually (usually less than a minute). Running executions may emit logs after DeleteStateMachine API is called.
func (*Client) DescribeActivity ¶
func (c *Client) DescribeActivity(ctx context.Context, params *DescribeActivityInput, optFns ...func(*Options)) (*DescribeActivityOutput, error)
Describes an activity. This operation is eventually consistent. The results are best effort and may not reflect very recent updates and changes.
func (*Client) DescribeExecution ¶
func (c *Client) DescribeExecution(ctx context.Context, params *DescribeExecutionInput, optFns ...func(*Options)) (*DescribeExecutionOutput, error)
Describes an execution. 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.
func (*Client) DescribeStateMachine ¶
func (c *Client) DescribeStateMachine(ctx context.Context, params *DescribeStateMachineInput, optFns ...func(*Options)) (*DescribeStateMachineOutput, error)
Describes a state machine. This operation is eventually consistent. The results are best effort and may not reflect very recent updates and changes.
func (*Client) DescribeStateMachineForExecution ¶
func (c *Client) DescribeStateMachineForExecution(ctx context.Context, params *DescribeStateMachineForExecutionInput, optFns ...func(*Options)) (*DescribeStateMachineForExecutionOutput, error)
Describes the state machine associated with a specific execution. 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.
func (*Client) GetActivityTask ¶
func (c *Client) GetActivityTask(ctx context.Context, params *GetActivityTaskInput, optFns ...func(*Options)) (*GetActivityTaskOutput, error)
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. 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.
func (*Client) GetExecutionHistory ¶
func (c *Client) GetExecutionHistory(ctx context.Context, params *GetExecutionHistoryInput, optFns ...func(*Options)) (*GetExecutionHistoryOutput, error)
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.
func (*Client) ListActivities ¶
func (c *Client) ListActivities(ctx context.Context, params *ListActivitiesInput, optFns ...func(*Options)) (*ListActivitiesOutput, error)
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.
func (*Client) ListExecutions ¶
func (c *Client) ListExecutions(ctx context.Context, params *ListExecutionsInput, optFns ...func(*Options)) (*ListExecutionsOutput, error)
Lists the executions of a state machine that meet the filtering criteria. 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.
func (*Client) ListStateMachines ¶
func (c *Client) ListStateMachines(ctx context.Context, params *ListStateMachinesInput, optFns ...func(*Options)) (*ListStateMachinesOutput, error)
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.
func (*Client) ListTagsForResource ¶
func (c *Client) ListTagsForResource(ctx context.Context, params *ListTagsForResourceInput, optFns ...func(*Options)) (*ListTagsForResourceOutput, error)
List tags for a given resource. Tags may only contain Unicode letters, digits, white space, or these symbols: _ . : / = + - @.
func (*Client) SendTaskFailure ¶
func (c *Client) SendTaskFailure(ctx context.Context, params *SendTaskFailureInput, optFns ...func(*Options)) (*SendTaskFailureOutput, error)
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.
func (*Client) SendTaskHeartbeat ¶
func (c *Client) SendTaskHeartbeat(ctx context.Context, params *SendTaskHeartbeatInput, optFns ...func(*Options)) (*SendTaskHeartbeatOutput, error)
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.
func (*Client) SendTaskSuccess ¶
func (c *Client) SendTaskSuccess(ctx context.Context, params *SendTaskSuccessInput, optFns ...func(*Options)) (*SendTaskSuccessOutput, error)
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.
func (*Client) StartExecution ¶
func (c *Client) StartExecution(ctx context.Context, params *StartExecutionInput, optFns ...func(*Options)) (*StartExecutionOutput, error)
Starts a state machine execution. StartExecution is idempotent. 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.
func (*Client) StopExecution ¶
func (c *Client) StopExecution(ctx context.Context, params *StopExecutionInput, optFns ...func(*Options)) (*StopExecutionOutput, error)
Stops an execution. This API action is not supported by EXPRESS state machines.
func (*Client) TagResource ¶
func (c *Client) TagResource(ctx context.Context, params *TagResourceInput, optFns ...func(*Options)) (*TagResourceOutput, error)
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 AWS 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: _ . : / = + - @.
func (*Client) UntagResource ¶
func (c *Client) UntagResource(ctx context.Context, params *UntagResourceInput, optFns ...func(*Options)) (*UntagResourceOutput, error)
Remove a tag from a Step Functions resource
func (*Client) UpdateStateMachine ¶
func (c *Client) UpdateStateMachine(ctx context.Context, params *UpdateStateMachineInput, optFns ...func(*Options)) (*UpdateStateMachineOutput, error)
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. 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.
type CreateActivityInput ¶
type CreateActivityInput struct { // 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 AWS 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 []*types.Tag // The name of the activity to create. This name must be unique for your AWS // 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 AWS 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 }
type CreateActivityOutput ¶
type CreateActivityOutput struct { // The Amazon Resource Name (ARN) that identifies the created activity. ActivityArn *string // The date the activity is created. CreationDate *time.Time // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type CreateStateMachineInput ¶
type CreateStateMachineInput struct { // 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 AWS 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 []*types.Tag // 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 types.StateMachineType // 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 AWS Step Functions User Guide. LoggingConfiguration *types.LoggingConfiguration // 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 *string // The Amazon Resource Name (ARN) of the IAM role to use for this state machine. RoleArn *string // 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 *string }
type CreateStateMachineOutput ¶
type CreateStateMachineOutput struct { // The date the state machine is created. CreationDate *time.Time // The Amazon Resource Name (ARN) that identifies the created state machine. StateMachineArn *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type DeleteActivityInput ¶
type DeleteActivityInput struct { // The Amazon Resource Name (ARN) of the activity to delete. ActivityArn *string }
type DeleteActivityOutput ¶
type DeleteActivityOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type DeleteStateMachineInput ¶
type DeleteStateMachineInput struct { // The Amazon Resource Name (ARN) of the state machine to delete. StateMachineArn *string }
type DeleteStateMachineOutput ¶
type DeleteStateMachineOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type DescribeActivityInput ¶
type DescribeActivityInput struct { // The Amazon Resource Name (ARN) of the activity to describe. ActivityArn *string }
type DescribeActivityOutput ¶
type DescribeActivityOutput struct { // The date the activity is created. CreationDate *time.Time // 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 *string // The Amazon Resource Name (ARN) that identifies the activity. ActivityArn *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type DescribeExecutionInput ¶
type DescribeExecutionInput struct { // The Amazon Resource Name (ARN) of the execution to describe. ExecutionArn *string }
type DescribeExecutionOutput ¶
type DescribeExecutionOutput struct { // The current status of the execution. Status types.ExecutionStatus // If the execution has already ended, the date the execution stopped. StopDate *time.Time // The date the execution is started. StartDate *time.Time // 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 // The JSON output data of the execution. This field is set only if the execution // succeeds. If the execution fails, this field is null. Output *string // The Amazon Resource Name (ARN) of the executed stated machine. StateMachineArn *string // The string that contains the JSON input data of the execution. Input *string // The Amazon Resource Name (ARN) that id entifies the execution. ExecutionArn *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type DescribeStateMachineForExecutionInput ¶
type DescribeStateMachineForExecutionInput struct { // The Amazon Resource Name (ARN) of the execution you want state machine // information for. ExecutionArn *string }
type DescribeStateMachineForExecutionOutput ¶
type DescribeStateMachineForExecutionOutput struct { // The LoggingConfiguration data type is used to set CloudWatch Logs options. LoggingConfiguration *types.LoggingConfiguration // The Amazon Resource Name (ARN) of the state machine associated with the // execution. StateMachineArn *string // The Amazon Resource Name (ARN) of the IAM role of the State Machine for the // execution. RoleArn *string // The name of the state machine associated with the execution. Name *string // 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 *string // 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 *time.Time // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type DescribeStateMachineInput ¶
type DescribeStateMachineInput struct { // The Amazon Resource Name (ARN) of the state machine to describe. StateMachineArn *string }
type DescribeStateMachineOutput ¶
type DescribeStateMachineOutput struct { // 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 // AWS resources.) RoleArn *string // The Amazon Resource Name (ARN) that identifies the state machine. StateMachineArn *string // The LoggingConfiguration data type is used to set CloudWatch Logs options. LoggingConfiguration *types.LoggingConfiguration // 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 *string // The date the state machine is created. CreationDate *time.Time // The type of the state machine (STANDARD or EXPRESS). Type types.StateMachineType // 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 *string // The current status of the state machine. Status types.StateMachineStatus // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type EndpointResolver ¶
type EndpointResolver interface {
ResolveEndpoint(region string, options ResolverOptions) (aws.Endpoint, error)
}
EndpointResolver interface for resolving service endpoints.
func WithEndpointResolver ¶
func WithEndpointResolver(awsResolver aws.EndpointResolver, fallbackResolver EndpointResolver) EndpointResolver
WithEndpointResolver returns an EndpointResolver that first delegates endpoint resolution to the awsResolver. If awsResolver returns aws.EndpointNotFoundError error, the resolver will use the the provided fallbackResolver for resolution. awsResolver and fallbackResolver must not be nil
type EndpointResolverFunc ¶
type EndpointResolverFunc func(region string, options ResolverOptions) (aws.Endpoint, error)
EndpointResolverFunc is a helper utility that wraps a function so it satisfies the EndpointResolver interface. This is useful when you want to add additional endpoint resolving logic, or stub out specific endpoints with custom values.
func (EndpointResolverFunc) ResolveEndpoint ¶
func (fn EndpointResolverFunc) ResolveEndpoint(region string, options ResolverOptions) (endpoint aws.Endpoint, err error)
type GetActivityTaskInput ¶
type GetActivityTaskInput struct { // The Amazon Resource Name (ARN) of the activity to retrieve tasks from (assigned // when you create the task using CreateActivity ().) ActivityArn *string // 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 }
type GetActivityTaskOutput ¶
type GetActivityTaskOutput struct { // 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 // The string that contains the JSON input data for the task. Input *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type GetExecutionHistoryInput ¶
type GetExecutionHistoryInput struct { // 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 *int32 // 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 // Lists events in descending order of their timeStamp. ReverseOrder *bool // The Amazon Resource Name (ARN) of the execution. ExecutionArn *string }
type GetExecutionHistoryOutput ¶
type GetExecutionHistoryOutput struct { // 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 // The list of events that occurred in the execution. Events []*types.HistoryEvent // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type HTTPSignerV4 ¶
type ListActivitiesInput ¶
type ListActivitiesInput struct { // 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 // 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 *int32 }
type ListActivitiesOutput ¶
type ListActivitiesOutput struct { // The list of activities. Activities []*types.ActivityListItem // 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 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type ListExecutionsInput ¶
type ListExecutionsInput struct { // 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 // The Amazon Resource Name (ARN) of the state machine whose executions is listed. StateMachineArn *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 *int32 // If specified, only list the executions whose current execution status matches // the given filter. StatusFilter types.ExecutionStatus }
type ListExecutionsOutput ¶
type ListExecutionsOutput struct { // 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 // The list of matching executions. Executions []*types.ExecutionListItem // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type ListStateMachinesInput ¶
type ListStateMachinesInput struct { // 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 // 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 *int32 }
type ListStateMachinesOutput ¶
type ListStateMachinesOutput struct { // 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 StateMachines []*types.StateMachineListItem // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type ListTagsForResourceInput ¶
type ListTagsForResourceInput struct { // The Amazon Resource Name (ARN) for the Step Functions state machine or activity. ResourceArn *string }
type ListTagsForResourceOutput ¶
type ListTagsForResourceOutput struct { // An array of tags associated with the resource. Tags []*types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type Options ¶
type Options struct { // Set of options to modify how an operation is invoked. These apply to all // operations invoked for this client. Use functional options on operation call to // modify this list for per operation behavior. APIOptions []func(*middleware.Stack) error // The credentials object to use when signing requests. Credentials aws.CredentialsProvider // The endpoint options to be used when attempting to resolve an endpoint. EndpointOptions ResolverOptions // The service endpoint resolver. EndpointResolver EndpointResolver // Signature Version 4 (SigV4) Signer HTTPSignerV4 HTTPSignerV4 // The region to send requests to. (Required) Region string // Retryer guides how HTTP requests should be retried in case of recoverable // failures. When nil the API client will use a default retryer. Retryer retry.Retryer // The HTTP client to invoke API calls with. Defaults to client's default HTTP // implementation if nil. HTTPClient HTTPClient }
func (Options) GetCredentials ¶
func (o Options) GetCredentials() aws.CredentialsProvider
func (Options) GetEndpointOptions ¶
func (o Options) GetEndpointOptions() ResolverOptions
func (Options) GetEndpointResolver ¶
func (o Options) GetEndpointResolver() EndpointResolver
func (Options) GetHTTPSignerV4 ¶
func (o Options) GetHTTPSignerV4() HTTPSignerV4
func (Options) GetRetryer ¶
type ResolveEndpoint ¶
type ResolveEndpoint struct { Resolver EndpointResolver Options ResolverOptions }
func (*ResolveEndpoint) HandleSerialize ¶
func (m *ResolveEndpoint) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, )
func (*ResolveEndpoint) ID ¶
func (*ResolveEndpoint) ID() string
type ResolveEndpointMiddlewareOptions ¶
type ResolveEndpointMiddlewareOptions interface { GetEndpointResolver() EndpointResolver GetEndpointOptions() ResolverOptions }
type ResolverOptions ¶
type ResolverOptions = internalendpoints.Options
ResolverOptions is the service endpoint resolver options
type SendTaskFailureInput ¶
type SendTaskFailureInput struct { // The error code of the failure. Error *string // 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 *string // A more detailed explanation of the cause of the failure. Cause *string }
type SendTaskFailureOutput ¶
type SendTaskFailureOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type SendTaskHeartbeatInput ¶
type SendTaskHeartbeatInput struct { // 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 *string }
type SendTaskHeartbeatOutput ¶
type SendTaskHeartbeatOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type SendTaskSuccessInput ¶
type SendTaskSuccessInput struct { // 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 *string // The JSON output of the task. Output *string }
type SendTaskSuccessOutput ¶
type SendTaskSuccessOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type StartExecutionInput ¶
type StartExecutionInput struct { // The name of the execution. This name must be unique for your AWS 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 AWS 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 // The Amazon Resource Name (ARN) of the state machine to execute. StateMachineArn *string // 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": "{}" Input *string }
type StartExecutionOutput ¶
type StartExecutionOutput struct { // The date the execution is started. StartDate *time.Time // The Amazon Resource Name (ARN) that id entifies the execution. ExecutionArn *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type StopExecutionInput ¶
type StopExecutionOutput ¶
type StopExecutionOutput struct { // The date the execution is stopped. StopDate *time.Time // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type TagResourceInput ¶
type TagResourceOutput ¶
type TagResourceOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type UntagResourceInput ¶
type UntagResourceOutput ¶
type UntagResourceOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
type UpdateStateMachineInput ¶
type UpdateStateMachineInput struct { // 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 *string // The LoggingConfiguration data type is used to set CloudWatch Logs options. LoggingConfiguration *types.LoggingConfiguration // The Amazon Resource Name (ARN) of the state machine. StateMachineArn *string // The Amazon Resource Name (ARN) of the IAM role of the state machine. RoleArn *string }
type UpdateStateMachineOutput ¶
type UpdateStateMachineOutput struct { // The date and time the state machine was updated. UpdateDate *time.Time // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata }
Source Files
¶
- api_client.go
- api_op_CreateActivity.go
- api_op_CreateStateMachine.go
- api_op_DeleteActivity.go
- api_op_DeleteStateMachine.go
- api_op_DescribeActivity.go
- api_op_DescribeExecution.go
- api_op_DescribeStateMachine.go
- api_op_DescribeStateMachineForExecution.go
- api_op_GetActivityTask.go
- api_op_GetExecutionHistory.go
- api_op_ListActivities.go
- api_op_ListExecutions.go
- api_op_ListStateMachines.go
- api_op_ListTagsForResource.go
- api_op_SendTaskFailure.go
- api_op_SendTaskHeartbeat.go
- api_op_SendTaskSuccess.go
- api_op_StartExecution.go
- api_op_StopExecution.go
- api_op_TagResource.go
- api_op_UntagResource.go
- api_op_UpdateStateMachine.go
- deserializers.go
- endpoints.go
- serializers.go
- validators.go