1// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. 2 3package sfn 4 5import ( 6 "fmt" 7 "time" 8 9 "github.com/aws/aws-sdk-go/aws" 10 "github.com/aws/aws-sdk-go/aws/awsutil" 11 "github.com/aws/aws-sdk-go/aws/request" 12 "github.com/aws/aws-sdk-go/private/protocol" 13 "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" 14) 15 16const opCreateActivity = "CreateActivity" 17 18// CreateActivityRequest generates a "aws/request.Request" representing the 19// client's request for the CreateActivity operation. The "output" return 20// value will be populated with the request's response once the request completes 21// successfully. 22// 23// Use "Send" method on the returned Request to send the API call to the service. 24// the "output" return value is not valid until after Send returns without error. 25// 26// See CreateActivity for more information on using the CreateActivity 27// API call, and error handling. 28// 29// This method is useful when you want to inject custom logic or configuration 30// into the SDK's request lifecycle. Such as custom headers, or retry logic. 31// 32// 33// // Example sending a request using the CreateActivityRequest method. 34// req, resp := client.CreateActivityRequest(params) 35// 36// err := req.Send() 37// if err == nil { // resp is now filled 38// fmt.Println(resp) 39// } 40// 41// See also, https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/CreateActivity 42func (c *SFN) CreateActivityRequest(input *CreateActivityInput) (req *request.Request, output *CreateActivityOutput) { 43 op := &request.Operation{ 44 Name: opCreateActivity, 45 HTTPMethod: "POST", 46 HTTPPath: "/", 47 } 48 49 if input == nil { 50 input = &CreateActivityInput{} 51 } 52 53 output = &CreateActivityOutput{} 54 req = c.newRequest(op, input, output) 55 return 56} 57 58// CreateActivity API operation for AWS Step Functions. 59// 60// Creates an activity. An activity is a task that you write in any programming 61// language and host on any machine that has access to AWS Step Functions. Activities 62// must poll Step Functions using the GetActivityTask API action and respond 63// using SendTask* API actions. This function lets Step Functions know the existence 64// of your activity and returns an identifier for use in a state machine and 65// when polling from the activity. 66// 67// This operation is eventually consistent. The results are best effort and 68// may not reflect very recent updates and changes. 69// 70// CreateActivity is an idempotent API. Subsequent requests won’t create a 71// duplicate resource if it was already created. CreateActivity's idempotency 72// check is based on the activity name. If a following request has different 73// tags values, Step Functions will ignore these differences and treat it as 74// an idempotent request of the previous. In this case, tags will not be updated, 75// even if they are different. 76// 77// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 78// with awserr.Error's Code and Message methods to get detailed information about 79// the error. 80// 81// See the AWS API reference guide for AWS Step Functions's 82// API operation CreateActivity for usage and error information. 83// 84// Returned Error Types: 85// * ActivityLimitExceeded 86// The maximum number of activities has been reached. Existing activities must 87// be deleted before a new activity can be created. 88// 89// * InvalidName 90// The provided name is invalid. 91// 92// * TooManyTags 93// You've exceeded the number of tags allowed for a resource. See the Limits 94// Topic (https://docs.aws.amazon.com/step-functions/latest/dg/limits.html) 95// in the AWS Step Functions Developer Guide. 96// 97// See also, https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/CreateActivity 98func (c *SFN) CreateActivity(input *CreateActivityInput) (*CreateActivityOutput, error) { 99 req, out := c.CreateActivityRequest(input) 100 return out, req.Send() 101} 102 103// CreateActivityWithContext is the same as CreateActivity with the addition of 104// the ability to pass a context and additional request options. 105// 106// See CreateActivity for details on how to use this API operation. 107// 108// The context must be non-nil and will be used for request cancellation. If 109// the context is nil a panic will occur. In the future the SDK may create 110// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 111// for more information on using Contexts. 112func (c *SFN) CreateActivityWithContext(ctx aws.Context, input *CreateActivityInput, opts ...request.Option) (*CreateActivityOutput, error) { 113 req, out := c.CreateActivityRequest(input) 114 req.SetContext(ctx) 115 req.ApplyOptions(opts...) 116 return out, req.Send() 117} 118 119const opCreateStateMachine = "CreateStateMachine" 120 121// CreateStateMachineRequest generates a "aws/request.Request" representing the 122// client's request for the CreateStateMachine operation. The "output" return 123// value will be populated with the request's response once the request completes 124// successfully. 125// 126// Use "Send" method on the returned Request to send the API call to the service. 127// the "output" return value is not valid until after Send returns without error. 128// 129// See CreateStateMachine for more information on using the CreateStateMachine 130// API call, and error handling. 131// 132// This method is useful when you want to inject custom logic or configuration 133// into the SDK's request lifecycle. Such as custom headers, or retry logic. 134// 135// 136// // Example sending a request using the CreateStateMachineRequest method. 137// req, resp := client.CreateStateMachineRequest(params) 138// 139// err := req.Send() 140// if err == nil { // resp is now filled 141// fmt.Println(resp) 142// } 143// 144// See also, https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/CreateStateMachine 145func (c *SFN) CreateStateMachineRequest(input *CreateStateMachineInput) (req *request.Request, output *CreateStateMachineOutput) { 146 op := &request.Operation{ 147 Name: opCreateStateMachine, 148 HTTPMethod: "POST", 149 HTTPPath: "/", 150 } 151 152 if input == nil { 153 input = &CreateStateMachineInput{} 154 } 155 156 output = &CreateStateMachineOutput{} 157 req = c.newRequest(op, input, output) 158 return 159} 160 161// CreateStateMachine API operation for AWS Step Functions. 162// 163// Creates a state machine. A state machine consists of a collection of states 164// that can do work (Task states), determine to which states to transition next 165// (Choice states), stop an execution with an error (Fail states), and so on. 166// State machines are specified using a JSON-based, structured language. For 167// more information, see Amazon States Language (https://docs.aws.amazon.com/step-functions/latest/dg/concepts-amazon-states-language.html) 168// in the AWS Step Functions User Guide. 169// 170// This operation is eventually consistent. The results are best effort and 171// may not reflect very recent updates and changes. 172// 173// CreateStateMachine is an idempotent API. Subsequent requests won’t create 174// a duplicate resource if it was already created. CreateStateMachine's idempotency 175// check is based on the state machine name, definition, type, LoggingConfiguration 176// and TracingConfiguration. If a following request has a different roleArn 177// or tags, Step Functions will ignore these differences and treat it as an 178// idempotent request of the previous. In this case, roleArn and tags will not 179// be updated, even if they are different. 180// 181// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 182// with awserr.Error's Code and Message methods to get detailed information about 183// the error. 184// 185// See the AWS API reference guide for AWS Step Functions's 186// API operation CreateStateMachine for usage and error information. 187// 188// Returned Error Types: 189// * InvalidArn 190// The provided Amazon Resource Name (ARN) is invalid. 191// 192// * InvalidDefinition 193// The provided Amazon States Language definition is invalid. 194// 195// * InvalidName 196// The provided name is invalid. 197// 198// * InvalidLoggingConfiguration 199// 200// * InvalidTracingConfiguration 201// Your tracingConfiguration key does not match, or enabled has not been set 202// to true or false. 203// 204// * StateMachineAlreadyExists 205// A state machine with the same name but a different definition or role ARN 206// already exists. 207// 208// * StateMachineDeleting 209// The specified state machine is being deleted. 210// 211// * StateMachineLimitExceeded 212// The maximum number of state machines has been reached. Existing state machines 213// must be deleted before a new state machine can be created. 214// 215// * StateMachineTypeNotSupported 216// 217// * TooManyTags 218// You've exceeded the number of tags allowed for a resource. See the Limits 219// Topic (https://docs.aws.amazon.com/step-functions/latest/dg/limits.html) 220// in the AWS Step Functions Developer Guide. 221// 222// See also, https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/CreateStateMachine 223func (c *SFN) CreateStateMachine(input *CreateStateMachineInput) (*CreateStateMachineOutput, error) { 224 req, out := c.CreateStateMachineRequest(input) 225 return out, req.Send() 226} 227 228// CreateStateMachineWithContext is the same as CreateStateMachine with the addition of 229// the ability to pass a context and additional request options. 230// 231// See CreateStateMachine for details on how to use this API operation. 232// 233// The context must be non-nil and will be used for request cancellation. If 234// the context is nil a panic will occur. In the future the SDK may create 235// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 236// for more information on using Contexts. 237func (c *SFN) CreateStateMachineWithContext(ctx aws.Context, input *CreateStateMachineInput, opts ...request.Option) (*CreateStateMachineOutput, error) { 238 req, out := c.CreateStateMachineRequest(input) 239 req.SetContext(ctx) 240 req.ApplyOptions(opts...) 241 return out, req.Send() 242} 243 244const opDeleteActivity = "DeleteActivity" 245 246// DeleteActivityRequest generates a "aws/request.Request" representing the 247// client's request for the DeleteActivity operation. The "output" return 248// value will be populated with the request's response once the request completes 249// successfully. 250// 251// Use "Send" method on the returned Request to send the API call to the service. 252// the "output" return value is not valid until after Send returns without error. 253// 254// See DeleteActivity for more information on using the DeleteActivity 255// API call, and error handling. 256// 257// This method is useful when you want to inject custom logic or configuration 258// into the SDK's request lifecycle. Such as custom headers, or retry logic. 259// 260// 261// // Example sending a request using the DeleteActivityRequest method. 262// req, resp := client.DeleteActivityRequest(params) 263// 264// err := req.Send() 265// if err == nil { // resp is now filled 266// fmt.Println(resp) 267// } 268// 269// See also, https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/DeleteActivity 270func (c *SFN) DeleteActivityRequest(input *DeleteActivityInput) (req *request.Request, output *DeleteActivityOutput) { 271 op := &request.Operation{ 272 Name: opDeleteActivity, 273 HTTPMethod: "POST", 274 HTTPPath: "/", 275 } 276 277 if input == nil { 278 input = &DeleteActivityInput{} 279 } 280 281 output = &DeleteActivityOutput{} 282 req = c.newRequest(op, input, output) 283 req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) 284 return 285} 286 287// DeleteActivity API operation for AWS Step Functions. 288// 289// Deletes an activity. 290// 291// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 292// with awserr.Error's Code and Message methods to get detailed information about 293// the error. 294// 295// See the AWS API reference guide for AWS Step Functions's 296// API operation DeleteActivity for usage and error information. 297// 298// Returned Error Types: 299// * InvalidArn 300// The provided Amazon Resource Name (ARN) is invalid. 301// 302// See also, https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/DeleteActivity 303func (c *SFN) DeleteActivity(input *DeleteActivityInput) (*DeleteActivityOutput, error) { 304 req, out := c.DeleteActivityRequest(input) 305 return out, req.Send() 306} 307 308// DeleteActivityWithContext is the same as DeleteActivity with the addition of 309// the ability to pass a context and additional request options. 310// 311// See DeleteActivity for details on how to use this API operation. 312// 313// The context must be non-nil and will be used for request cancellation. If 314// the context is nil a panic will occur. In the future the SDK may create 315// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 316// for more information on using Contexts. 317func (c *SFN) DeleteActivityWithContext(ctx aws.Context, input *DeleteActivityInput, opts ...request.Option) (*DeleteActivityOutput, error) { 318 req, out := c.DeleteActivityRequest(input) 319 req.SetContext(ctx) 320 req.ApplyOptions(opts...) 321 return out, req.Send() 322} 323 324const opDeleteStateMachine = "DeleteStateMachine" 325 326// DeleteStateMachineRequest generates a "aws/request.Request" representing the 327// client's request for the DeleteStateMachine operation. The "output" return 328// value will be populated with the request's response once the request completes 329// successfully. 330// 331// Use "Send" method on the returned Request to send the API call to the service. 332// the "output" return value is not valid until after Send returns without error. 333// 334// See DeleteStateMachine for more information on using the DeleteStateMachine 335// API call, and error handling. 336// 337// This method is useful when you want to inject custom logic or configuration 338// into the SDK's request lifecycle. Such as custom headers, or retry logic. 339// 340// 341// // Example sending a request using the DeleteStateMachineRequest method. 342// req, resp := client.DeleteStateMachineRequest(params) 343// 344// err := req.Send() 345// if err == nil { // resp is now filled 346// fmt.Println(resp) 347// } 348// 349// See also, https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/DeleteStateMachine 350func (c *SFN) DeleteStateMachineRequest(input *DeleteStateMachineInput) (req *request.Request, output *DeleteStateMachineOutput) { 351 op := &request.Operation{ 352 Name: opDeleteStateMachine, 353 HTTPMethod: "POST", 354 HTTPPath: "/", 355 } 356 357 if input == nil { 358 input = &DeleteStateMachineInput{} 359 } 360 361 output = &DeleteStateMachineOutput{} 362 req = c.newRequest(op, input, output) 363 req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) 364 return 365} 366 367// DeleteStateMachine API operation for AWS Step Functions. 368// 369// Deletes a state machine. This is an asynchronous operation: It sets the state 370// machine's status to DELETING and begins the deletion process. 371// 372// For EXPRESSstate machines, the deletion will happen eventually (usually less 373// than a minute). Running executions may emit logs after DeleteStateMachine 374// API is called. 375// 376// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 377// with awserr.Error's Code and Message methods to get detailed information about 378// the error. 379// 380// See the AWS API reference guide for AWS Step Functions's 381// API operation DeleteStateMachine for usage and error information. 382// 383// Returned Error Types: 384// * InvalidArn 385// The provided Amazon Resource Name (ARN) is invalid. 386// 387// See also, https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/DeleteStateMachine 388func (c *SFN) DeleteStateMachine(input *DeleteStateMachineInput) (*DeleteStateMachineOutput, error) { 389 req, out := c.DeleteStateMachineRequest(input) 390 return out, req.Send() 391} 392 393// DeleteStateMachineWithContext is the same as DeleteStateMachine with the addition of 394// the ability to pass a context and additional request options. 395// 396// See DeleteStateMachine for details on how to use this API operation. 397// 398// The context must be non-nil and will be used for request cancellation. If 399// the context is nil a panic will occur. In the future the SDK may create 400// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 401// for more information on using Contexts. 402func (c *SFN) DeleteStateMachineWithContext(ctx aws.Context, input *DeleteStateMachineInput, opts ...request.Option) (*DeleteStateMachineOutput, error) { 403 req, out := c.DeleteStateMachineRequest(input) 404 req.SetContext(ctx) 405 req.ApplyOptions(opts...) 406 return out, req.Send() 407} 408 409const opDescribeActivity = "DescribeActivity" 410 411// DescribeActivityRequest generates a "aws/request.Request" representing the 412// client's request for the DescribeActivity operation. The "output" return 413// value will be populated with the request's response once the request completes 414// successfully. 415// 416// Use "Send" method on the returned Request to send the API call to the service. 417// the "output" return value is not valid until after Send returns without error. 418// 419// See DescribeActivity for more information on using the DescribeActivity 420// API call, and error handling. 421// 422// This method is useful when you want to inject custom logic or configuration 423// into the SDK's request lifecycle. Such as custom headers, or retry logic. 424// 425// 426// // Example sending a request using the DescribeActivityRequest method. 427// req, resp := client.DescribeActivityRequest(params) 428// 429// err := req.Send() 430// if err == nil { // resp is now filled 431// fmt.Println(resp) 432// } 433// 434// See also, https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/DescribeActivity 435func (c *SFN) DescribeActivityRequest(input *DescribeActivityInput) (req *request.Request, output *DescribeActivityOutput) { 436 op := &request.Operation{ 437 Name: opDescribeActivity, 438 HTTPMethod: "POST", 439 HTTPPath: "/", 440 } 441 442 if input == nil { 443 input = &DescribeActivityInput{} 444 } 445 446 output = &DescribeActivityOutput{} 447 req = c.newRequest(op, input, output) 448 return 449} 450 451// DescribeActivity API operation for AWS Step Functions. 452// 453// Describes an activity. 454// 455// This operation is eventually consistent. The results are best effort and 456// may not reflect very recent updates and changes. 457// 458// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 459// with awserr.Error's Code and Message methods to get detailed information about 460// the error. 461// 462// See the AWS API reference guide for AWS Step Functions's 463// API operation DescribeActivity for usage and error information. 464// 465// Returned Error Types: 466// * ActivityDoesNotExist 467// The specified activity does not exist. 468// 469// * InvalidArn 470// The provided Amazon Resource Name (ARN) is invalid. 471// 472// See also, https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/DescribeActivity 473func (c *SFN) DescribeActivity(input *DescribeActivityInput) (*DescribeActivityOutput, error) { 474 req, out := c.DescribeActivityRequest(input) 475 return out, req.Send() 476} 477 478// DescribeActivityWithContext is the same as DescribeActivity with the addition of 479// the ability to pass a context and additional request options. 480// 481// See DescribeActivity for details on how to use this API operation. 482// 483// The context must be non-nil and will be used for request cancellation. If 484// the context is nil a panic will occur. In the future the SDK may create 485// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 486// for more information on using Contexts. 487func (c *SFN) DescribeActivityWithContext(ctx aws.Context, input *DescribeActivityInput, opts ...request.Option) (*DescribeActivityOutput, error) { 488 req, out := c.DescribeActivityRequest(input) 489 req.SetContext(ctx) 490 req.ApplyOptions(opts...) 491 return out, req.Send() 492} 493 494const opDescribeExecution = "DescribeExecution" 495 496// DescribeExecutionRequest generates a "aws/request.Request" representing the 497// client's request for the DescribeExecution operation. The "output" return 498// value will be populated with the request's response once the request completes 499// successfully. 500// 501// Use "Send" method on the returned Request to send the API call to the service. 502// the "output" return value is not valid until after Send returns without error. 503// 504// See DescribeExecution for more information on using the DescribeExecution 505// API call, and error handling. 506// 507// This method is useful when you want to inject custom logic or configuration 508// into the SDK's request lifecycle. Such as custom headers, or retry logic. 509// 510// 511// // Example sending a request using the DescribeExecutionRequest method. 512// req, resp := client.DescribeExecutionRequest(params) 513// 514// err := req.Send() 515// if err == nil { // resp is now filled 516// fmt.Println(resp) 517// } 518// 519// See also, https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/DescribeExecution 520func (c *SFN) DescribeExecutionRequest(input *DescribeExecutionInput) (req *request.Request, output *DescribeExecutionOutput) { 521 op := &request.Operation{ 522 Name: opDescribeExecution, 523 HTTPMethod: "POST", 524 HTTPPath: "/", 525 } 526 527 if input == nil { 528 input = &DescribeExecutionInput{} 529 } 530 531 output = &DescribeExecutionOutput{} 532 req = c.newRequest(op, input, output) 533 return 534} 535 536// DescribeExecution API operation for AWS Step Functions. 537// 538// Describes an execution. 539// 540// This operation is eventually consistent. The results are best effort and 541// may not reflect very recent updates and changes. 542// 543// This API action is not supported by EXPRESS state machines. 544// 545// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 546// with awserr.Error's Code and Message methods to get detailed information about 547// the error. 548// 549// See the AWS API reference guide for AWS Step Functions's 550// API operation DescribeExecution for usage and error information. 551// 552// Returned Error Types: 553// * ExecutionDoesNotExist 554// The specified execution does not exist. 555// 556// * InvalidArn 557// The provided Amazon Resource Name (ARN) is invalid. 558// 559// See also, https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/DescribeExecution 560func (c *SFN) DescribeExecution(input *DescribeExecutionInput) (*DescribeExecutionOutput, error) { 561 req, out := c.DescribeExecutionRequest(input) 562 return out, req.Send() 563} 564 565// DescribeExecutionWithContext is the same as DescribeExecution with the addition of 566// the ability to pass a context and additional request options. 567// 568// See DescribeExecution for details on how to use this API operation. 569// 570// The context must be non-nil and will be used for request cancellation. If 571// the context is nil a panic will occur. In the future the SDK may create 572// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 573// for more information on using Contexts. 574func (c *SFN) DescribeExecutionWithContext(ctx aws.Context, input *DescribeExecutionInput, opts ...request.Option) (*DescribeExecutionOutput, error) { 575 req, out := c.DescribeExecutionRequest(input) 576 req.SetContext(ctx) 577 req.ApplyOptions(opts...) 578 return out, req.Send() 579} 580 581const opDescribeStateMachine = "DescribeStateMachine" 582 583// DescribeStateMachineRequest generates a "aws/request.Request" representing the 584// client's request for the DescribeStateMachine operation. The "output" return 585// value will be populated with the request's response once the request completes 586// successfully. 587// 588// Use "Send" method on the returned Request to send the API call to the service. 589// the "output" return value is not valid until after Send returns without error. 590// 591// See DescribeStateMachine for more information on using the DescribeStateMachine 592// API call, and error handling. 593// 594// This method is useful when you want to inject custom logic or configuration 595// into the SDK's request lifecycle. Such as custom headers, or retry logic. 596// 597// 598// // Example sending a request using the DescribeStateMachineRequest method. 599// req, resp := client.DescribeStateMachineRequest(params) 600// 601// err := req.Send() 602// if err == nil { // resp is now filled 603// fmt.Println(resp) 604// } 605// 606// See also, https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/DescribeStateMachine 607func (c *SFN) DescribeStateMachineRequest(input *DescribeStateMachineInput) (req *request.Request, output *DescribeStateMachineOutput) { 608 op := &request.Operation{ 609 Name: opDescribeStateMachine, 610 HTTPMethod: "POST", 611 HTTPPath: "/", 612 } 613 614 if input == nil { 615 input = &DescribeStateMachineInput{} 616 } 617 618 output = &DescribeStateMachineOutput{} 619 req = c.newRequest(op, input, output) 620 return 621} 622 623// DescribeStateMachine API operation for AWS Step Functions. 624// 625// Describes a state machine. 626// 627// This operation is eventually consistent. The results are best effort and 628// may not reflect very recent updates and changes. 629// 630// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 631// with awserr.Error's Code and Message methods to get detailed information about 632// the error. 633// 634// See the AWS API reference guide for AWS Step Functions's 635// API operation DescribeStateMachine for usage and error information. 636// 637// Returned Error Types: 638// * InvalidArn 639// The provided Amazon Resource Name (ARN) is invalid. 640// 641// * StateMachineDoesNotExist 642// The specified state machine does not exist. 643// 644// See also, https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/DescribeStateMachine 645func (c *SFN) DescribeStateMachine(input *DescribeStateMachineInput) (*DescribeStateMachineOutput, error) { 646 req, out := c.DescribeStateMachineRequest(input) 647 return out, req.Send() 648} 649 650// DescribeStateMachineWithContext is the same as DescribeStateMachine with the addition of 651// the ability to pass a context and additional request options. 652// 653// See DescribeStateMachine for details on how to use this API operation. 654// 655// The context must be non-nil and will be used for request cancellation. If 656// the context is nil a panic will occur. In the future the SDK may create 657// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 658// for more information on using Contexts. 659func (c *SFN) DescribeStateMachineWithContext(ctx aws.Context, input *DescribeStateMachineInput, opts ...request.Option) (*DescribeStateMachineOutput, error) { 660 req, out := c.DescribeStateMachineRequest(input) 661 req.SetContext(ctx) 662 req.ApplyOptions(opts...) 663 return out, req.Send() 664} 665 666const opDescribeStateMachineForExecution = "DescribeStateMachineForExecution" 667 668// DescribeStateMachineForExecutionRequest generates a "aws/request.Request" representing the 669// client's request for the DescribeStateMachineForExecution operation. The "output" return 670// value will be populated with the request's response once the request completes 671// successfully. 672// 673// Use "Send" method on the returned Request to send the API call to the service. 674// the "output" return value is not valid until after Send returns without error. 675// 676// See DescribeStateMachineForExecution for more information on using the DescribeStateMachineForExecution 677// API call, and error handling. 678// 679// This method is useful when you want to inject custom logic or configuration 680// into the SDK's request lifecycle. Such as custom headers, or retry logic. 681// 682// 683// // Example sending a request using the DescribeStateMachineForExecutionRequest method. 684// req, resp := client.DescribeStateMachineForExecutionRequest(params) 685// 686// err := req.Send() 687// if err == nil { // resp is now filled 688// fmt.Println(resp) 689// } 690// 691// See also, https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/DescribeStateMachineForExecution 692func (c *SFN) DescribeStateMachineForExecutionRequest(input *DescribeStateMachineForExecutionInput) (req *request.Request, output *DescribeStateMachineForExecutionOutput) { 693 op := &request.Operation{ 694 Name: opDescribeStateMachineForExecution, 695 HTTPMethod: "POST", 696 HTTPPath: "/", 697 } 698 699 if input == nil { 700 input = &DescribeStateMachineForExecutionInput{} 701 } 702 703 output = &DescribeStateMachineForExecutionOutput{} 704 req = c.newRequest(op, input, output) 705 return 706} 707 708// DescribeStateMachineForExecution API operation for AWS Step Functions. 709// 710// Describes the state machine associated with a specific execution. 711// 712// This operation is eventually consistent. The results are best effort and 713// may not reflect very recent updates and changes. 714// 715// This API action is not supported by EXPRESS state machines. 716// 717// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 718// with awserr.Error's Code and Message methods to get detailed information about 719// the error. 720// 721// See the AWS API reference guide for AWS Step Functions's 722// API operation DescribeStateMachineForExecution for usage and error information. 723// 724// Returned Error Types: 725// * ExecutionDoesNotExist 726// The specified execution does not exist. 727// 728// * InvalidArn 729// The provided Amazon Resource Name (ARN) is invalid. 730// 731// See also, https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/DescribeStateMachineForExecution 732func (c *SFN) DescribeStateMachineForExecution(input *DescribeStateMachineForExecutionInput) (*DescribeStateMachineForExecutionOutput, error) { 733 req, out := c.DescribeStateMachineForExecutionRequest(input) 734 return out, req.Send() 735} 736 737// DescribeStateMachineForExecutionWithContext is the same as DescribeStateMachineForExecution with the addition of 738// the ability to pass a context and additional request options. 739// 740// See DescribeStateMachineForExecution for details on how to use this API operation. 741// 742// The context must be non-nil and will be used for request cancellation. If 743// the context is nil a panic will occur. In the future the SDK may create 744// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 745// for more information on using Contexts. 746func (c *SFN) DescribeStateMachineForExecutionWithContext(ctx aws.Context, input *DescribeStateMachineForExecutionInput, opts ...request.Option) (*DescribeStateMachineForExecutionOutput, error) { 747 req, out := c.DescribeStateMachineForExecutionRequest(input) 748 req.SetContext(ctx) 749 req.ApplyOptions(opts...) 750 return out, req.Send() 751} 752 753const opGetActivityTask = "GetActivityTask" 754 755// GetActivityTaskRequest generates a "aws/request.Request" representing the 756// client's request for the GetActivityTask operation. The "output" return 757// value will be populated with the request's response once the request completes 758// successfully. 759// 760// Use "Send" method on the returned Request to send the API call to the service. 761// the "output" return value is not valid until after Send returns without error. 762// 763// See GetActivityTask for more information on using the GetActivityTask 764// API call, and error handling. 765// 766// This method is useful when you want to inject custom logic or configuration 767// into the SDK's request lifecycle. Such as custom headers, or retry logic. 768// 769// 770// // Example sending a request using the GetActivityTaskRequest method. 771// req, resp := client.GetActivityTaskRequest(params) 772// 773// err := req.Send() 774// if err == nil { // resp is now filled 775// fmt.Println(resp) 776// } 777// 778// See also, https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/GetActivityTask 779func (c *SFN) GetActivityTaskRequest(input *GetActivityTaskInput) (req *request.Request, output *GetActivityTaskOutput) { 780 op := &request.Operation{ 781 Name: opGetActivityTask, 782 HTTPMethod: "POST", 783 HTTPPath: "/", 784 } 785 786 if input == nil { 787 input = &GetActivityTaskInput{} 788 } 789 790 output = &GetActivityTaskOutput{} 791 req = c.newRequest(op, input, output) 792 return 793} 794 795// GetActivityTask API operation for AWS Step Functions. 796// 797// Used by workers to retrieve a task (with the specified activity ARN) which 798// has been scheduled for execution by a running state machine. This initiates 799// a long poll, where the service holds the HTTP connection open and responds 800// as soon as a task becomes available (i.e. an execution of a task of this 801// type is needed.) The maximum time the service holds on to the request before 802// responding is 60 seconds. If no task is available within 60 seconds, the 803// poll returns a taskToken with a null string. 804// 805// Workers should set their client side socket timeout to at least 65 seconds 806// (5 seconds higher than the maximum time the service may hold the poll request). 807// 808// Polling with GetActivityTask can cause latency in some implementations. See 809// Avoid Latency When Polling for Activity Tasks (https://docs.aws.amazon.com/step-functions/latest/dg/bp-activity-pollers.html) 810// in the Step Functions Developer Guide. 811// 812// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 813// with awserr.Error's Code and Message methods to get detailed information about 814// the error. 815// 816// See the AWS API reference guide for AWS Step Functions's 817// API operation GetActivityTask for usage and error information. 818// 819// Returned Error Types: 820// * ActivityDoesNotExist 821// The specified activity does not exist. 822// 823// * ActivityWorkerLimitExceeded 824// The maximum number of workers concurrently polling for activity tasks has 825// been reached. 826// 827// * InvalidArn 828// The provided Amazon Resource Name (ARN) is invalid. 829// 830// See also, https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/GetActivityTask 831func (c *SFN) GetActivityTask(input *GetActivityTaskInput) (*GetActivityTaskOutput, error) { 832 req, out := c.GetActivityTaskRequest(input) 833 return out, req.Send() 834} 835 836// GetActivityTaskWithContext is the same as GetActivityTask with the addition of 837// the ability to pass a context and additional request options. 838// 839// See GetActivityTask for details on how to use this API operation. 840// 841// The context must be non-nil and will be used for request cancellation. If 842// the context is nil a panic will occur. In the future the SDK may create 843// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 844// for more information on using Contexts. 845func (c *SFN) GetActivityTaskWithContext(ctx aws.Context, input *GetActivityTaskInput, opts ...request.Option) (*GetActivityTaskOutput, error) { 846 req, out := c.GetActivityTaskRequest(input) 847 req.SetContext(ctx) 848 req.ApplyOptions(opts...) 849 return out, req.Send() 850} 851 852const opGetExecutionHistory = "GetExecutionHistory" 853 854// GetExecutionHistoryRequest generates a "aws/request.Request" representing the 855// client's request for the GetExecutionHistory operation. The "output" return 856// value will be populated with the request's response once the request completes 857// successfully. 858// 859// Use "Send" method on the returned Request to send the API call to the service. 860// the "output" return value is not valid until after Send returns without error. 861// 862// See GetExecutionHistory for more information on using the GetExecutionHistory 863// API call, and error handling. 864// 865// This method is useful when you want to inject custom logic or configuration 866// into the SDK's request lifecycle. Such as custom headers, or retry logic. 867// 868// 869// // Example sending a request using the GetExecutionHistoryRequest method. 870// req, resp := client.GetExecutionHistoryRequest(params) 871// 872// err := req.Send() 873// if err == nil { // resp is now filled 874// fmt.Println(resp) 875// } 876// 877// See also, https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/GetExecutionHistory 878func (c *SFN) GetExecutionHistoryRequest(input *GetExecutionHistoryInput) (req *request.Request, output *GetExecutionHistoryOutput) { 879 op := &request.Operation{ 880 Name: opGetExecutionHistory, 881 HTTPMethod: "POST", 882 HTTPPath: "/", 883 Paginator: &request.Paginator{ 884 InputTokens: []string{"nextToken"}, 885 OutputTokens: []string{"nextToken"}, 886 LimitToken: "maxResults", 887 TruncationToken: "", 888 }, 889 } 890 891 if input == nil { 892 input = &GetExecutionHistoryInput{} 893 } 894 895 output = &GetExecutionHistoryOutput{} 896 req = c.newRequest(op, input, output) 897 return 898} 899 900// GetExecutionHistory API operation for AWS Step Functions. 901// 902// Returns the history of the specified execution as a list of events. By default, 903// the results are returned in ascending order of the timeStamp of the events. 904// Use the reverseOrder parameter to get the latest events first. 905// 906// If nextToken is returned, there are more results available. The value of 907// nextToken is a unique pagination token for each page. Make the call again 908// using the returned token to retrieve the next page. Keep all other arguments 909// unchanged. Each pagination token expires after 24 hours. Using an expired 910// pagination token will return an HTTP 400 InvalidToken error. 911// 912// This API action is not supported by EXPRESS state machines. 913// 914// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 915// with awserr.Error's Code and Message methods to get detailed information about 916// the error. 917// 918// See the AWS API reference guide for AWS Step Functions's 919// API operation GetExecutionHistory for usage and error information. 920// 921// Returned Error Types: 922// * ExecutionDoesNotExist 923// The specified execution does not exist. 924// 925// * InvalidArn 926// The provided Amazon Resource Name (ARN) is invalid. 927// 928// * InvalidToken 929// The provided token is invalid. 930// 931// See also, https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/GetExecutionHistory 932func (c *SFN) GetExecutionHistory(input *GetExecutionHistoryInput) (*GetExecutionHistoryOutput, error) { 933 req, out := c.GetExecutionHistoryRequest(input) 934 return out, req.Send() 935} 936 937// GetExecutionHistoryWithContext is the same as GetExecutionHistory with the addition of 938// the ability to pass a context and additional request options. 939// 940// See GetExecutionHistory for details on how to use this API operation. 941// 942// The context must be non-nil and will be used for request cancellation. If 943// the context is nil a panic will occur. In the future the SDK may create 944// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 945// for more information on using Contexts. 946func (c *SFN) GetExecutionHistoryWithContext(ctx aws.Context, input *GetExecutionHistoryInput, opts ...request.Option) (*GetExecutionHistoryOutput, error) { 947 req, out := c.GetExecutionHistoryRequest(input) 948 req.SetContext(ctx) 949 req.ApplyOptions(opts...) 950 return out, req.Send() 951} 952 953// GetExecutionHistoryPages iterates over the pages of a GetExecutionHistory operation, 954// calling the "fn" function with the response data for each page. To stop 955// iterating, return false from the fn function. 956// 957// See GetExecutionHistory method for more information on how to use this operation. 958// 959// Note: This operation can generate multiple requests to a service. 960// 961// // Example iterating over at most 3 pages of a GetExecutionHistory operation. 962// pageNum := 0 963// err := client.GetExecutionHistoryPages(params, 964// func(page *sfn.GetExecutionHistoryOutput, lastPage bool) bool { 965// pageNum++ 966// fmt.Println(page) 967// return pageNum <= 3 968// }) 969// 970func (c *SFN) GetExecutionHistoryPages(input *GetExecutionHistoryInput, fn func(*GetExecutionHistoryOutput, bool) bool) error { 971 return c.GetExecutionHistoryPagesWithContext(aws.BackgroundContext(), input, fn) 972} 973 974// GetExecutionHistoryPagesWithContext same as GetExecutionHistoryPages except 975// it takes a Context and allows setting request options on the pages. 976// 977// The context must be non-nil and will be used for request cancellation. If 978// the context is nil a panic will occur. In the future the SDK may create 979// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 980// for more information on using Contexts. 981func (c *SFN) GetExecutionHistoryPagesWithContext(ctx aws.Context, input *GetExecutionHistoryInput, fn func(*GetExecutionHistoryOutput, bool) bool, opts ...request.Option) error { 982 p := request.Pagination{ 983 NewRequest: func() (*request.Request, error) { 984 var inCpy *GetExecutionHistoryInput 985 if input != nil { 986 tmp := *input 987 inCpy = &tmp 988 } 989 req, _ := c.GetExecutionHistoryRequest(inCpy) 990 req.SetContext(ctx) 991 req.ApplyOptions(opts...) 992 return req, nil 993 }, 994 } 995 996 for p.Next() { 997 if !fn(p.Page().(*GetExecutionHistoryOutput), !p.HasNextPage()) { 998 break 999 } 1000 } 1001 1002 return p.Err() 1003} 1004 1005const opListActivities = "ListActivities" 1006 1007// ListActivitiesRequest generates a "aws/request.Request" representing the 1008// client's request for the ListActivities operation. The "output" return 1009// value will be populated with the request's response once the request completes 1010// successfully. 1011// 1012// Use "Send" method on the returned Request to send the API call to the service. 1013// the "output" return value is not valid until after Send returns without error. 1014// 1015// See ListActivities for more information on using the ListActivities 1016// API call, and error handling. 1017// 1018// This method is useful when you want to inject custom logic or configuration 1019// into the SDK's request lifecycle. Such as custom headers, or retry logic. 1020// 1021// 1022// // Example sending a request using the ListActivitiesRequest method. 1023// req, resp := client.ListActivitiesRequest(params) 1024// 1025// err := req.Send() 1026// if err == nil { // resp is now filled 1027// fmt.Println(resp) 1028// } 1029// 1030// See also, https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/ListActivities 1031func (c *SFN) ListActivitiesRequest(input *ListActivitiesInput) (req *request.Request, output *ListActivitiesOutput) { 1032 op := &request.Operation{ 1033 Name: opListActivities, 1034 HTTPMethod: "POST", 1035 HTTPPath: "/", 1036 Paginator: &request.Paginator{ 1037 InputTokens: []string{"nextToken"}, 1038 OutputTokens: []string{"nextToken"}, 1039 LimitToken: "maxResults", 1040 TruncationToken: "", 1041 }, 1042 } 1043 1044 if input == nil { 1045 input = &ListActivitiesInput{} 1046 } 1047 1048 output = &ListActivitiesOutput{} 1049 req = c.newRequest(op, input, output) 1050 return 1051} 1052 1053// ListActivities API operation for AWS Step Functions. 1054// 1055// Lists the existing activities. 1056// 1057// If nextToken is returned, there are more results available. The value of 1058// nextToken is a unique pagination token for each page. Make the call again 1059// using the returned token to retrieve the next page. Keep all other arguments 1060// unchanged. Each pagination token expires after 24 hours. Using an expired 1061// pagination token will return an HTTP 400 InvalidToken error. 1062// 1063// This operation is eventually consistent. The results are best effort and 1064// may not reflect very recent updates and changes. 1065// 1066// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1067// with awserr.Error's Code and Message methods to get detailed information about 1068// the error. 1069// 1070// See the AWS API reference guide for AWS Step Functions's 1071// API operation ListActivities for usage and error information. 1072// 1073// Returned Error Types: 1074// * InvalidToken 1075// The provided token is invalid. 1076// 1077// See also, https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/ListActivities 1078func (c *SFN) ListActivities(input *ListActivitiesInput) (*ListActivitiesOutput, error) { 1079 req, out := c.ListActivitiesRequest(input) 1080 return out, req.Send() 1081} 1082 1083// ListActivitiesWithContext is the same as ListActivities with the addition of 1084// the ability to pass a context and additional request options. 1085// 1086// See ListActivities for details on how to use this API operation. 1087// 1088// The context must be non-nil and will be used for request cancellation. If 1089// the context is nil a panic will occur. In the future the SDK may create 1090// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1091// for more information on using Contexts. 1092func (c *SFN) ListActivitiesWithContext(ctx aws.Context, input *ListActivitiesInput, opts ...request.Option) (*ListActivitiesOutput, error) { 1093 req, out := c.ListActivitiesRequest(input) 1094 req.SetContext(ctx) 1095 req.ApplyOptions(opts...) 1096 return out, req.Send() 1097} 1098 1099// ListActivitiesPages iterates over the pages of a ListActivities operation, 1100// calling the "fn" function with the response data for each page. To stop 1101// iterating, return false from the fn function. 1102// 1103// See ListActivities method for more information on how to use this operation. 1104// 1105// Note: This operation can generate multiple requests to a service. 1106// 1107// // Example iterating over at most 3 pages of a ListActivities operation. 1108// pageNum := 0 1109// err := client.ListActivitiesPages(params, 1110// func(page *sfn.ListActivitiesOutput, lastPage bool) bool { 1111// pageNum++ 1112// fmt.Println(page) 1113// return pageNum <= 3 1114// }) 1115// 1116func (c *SFN) ListActivitiesPages(input *ListActivitiesInput, fn func(*ListActivitiesOutput, bool) bool) error { 1117 return c.ListActivitiesPagesWithContext(aws.BackgroundContext(), input, fn) 1118} 1119 1120// ListActivitiesPagesWithContext same as ListActivitiesPages except 1121// it takes a Context and allows setting request options on the pages. 1122// 1123// The context must be non-nil and will be used for request cancellation. If 1124// the context is nil a panic will occur. In the future the SDK may create 1125// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1126// for more information on using Contexts. 1127func (c *SFN) ListActivitiesPagesWithContext(ctx aws.Context, input *ListActivitiesInput, fn func(*ListActivitiesOutput, bool) bool, opts ...request.Option) error { 1128 p := request.Pagination{ 1129 NewRequest: func() (*request.Request, error) { 1130 var inCpy *ListActivitiesInput 1131 if input != nil { 1132 tmp := *input 1133 inCpy = &tmp 1134 } 1135 req, _ := c.ListActivitiesRequest(inCpy) 1136 req.SetContext(ctx) 1137 req.ApplyOptions(opts...) 1138 return req, nil 1139 }, 1140 } 1141 1142 for p.Next() { 1143 if !fn(p.Page().(*ListActivitiesOutput), !p.HasNextPage()) { 1144 break 1145 } 1146 } 1147 1148 return p.Err() 1149} 1150 1151const opListExecutions = "ListExecutions" 1152 1153// ListExecutionsRequest generates a "aws/request.Request" representing the 1154// client's request for the ListExecutions operation. The "output" return 1155// value will be populated with the request's response once the request completes 1156// successfully. 1157// 1158// Use "Send" method on the returned Request to send the API call to the service. 1159// the "output" return value is not valid until after Send returns without error. 1160// 1161// See ListExecutions for more information on using the ListExecutions 1162// API call, and error handling. 1163// 1164// This method is useful when you want to inject custom logic or configuration 1165// into the SDK's request lifecycle. Such as custom headers, or retry logic. 1166// 1167// 1168// // Example sending a request using the ListExecutionsRequest method. 1169// req, resp := client.ListExecutionsRequest(params) 1170// 1171// err := req.Send() 1172// if err == nil { // resp is now filled 1173// fmt.Println(resp) 1174// } 1175// 1176// See also, https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/ListExecutions 1177func (c *SFN) ListExecutionsRequest(input *ListExecutionsInput) (req *request.Request, output *ListExecutionsOutput) { 1178 op := &request.Operation{ 1179 Name: opListExecutions, 1180 HTTPMethod: "POST", 1181 HTTPPath: "/", 1182 Paginator: &request.Paginator{ 1183 InputTokens: []string{"nextToken"}, 1184 OutputTokens: []string{"nextToken"}, 1185 LimitToken: "maxResults", 1186 TruncationToken: "", 1187 }, 1188 } 1189 1190 if input == nil { 1191 input = &ListExecutionsInput{} 1192 } 1193 1194 output = &ListExecutionsOutput{} 1195 req = c.newRequest(op, input, output) 1196 return 1197} 1198 1199// ListExecutions API operation for AWS Step Functions. 1200// 1201// Lists the executions of a state machine that meet the filtering criteria. 1202// Results are sorted by time, with the most recent execution first. 1203// 1204// If nextToken is returned, there are more results available. The value of 1205// nextToken is a unique pagination token for each page. Make the call again 1206// using the returned token to retrieve the next page. Keep all other arguments 1207// unchanged. Each pagination token expires after 24 hours. Using an expired 1208// pagination token will return an HTTP 400 InvalidToken error. 1209// 1210// This operation is eventually consistent. The results are best effort and 1211// may not reflect very recent updates and changes. 1212// 1213// This API action is not supported by EXPRESS state machines. 1214// 1215// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1216// with awserr.Error's Code and Message methods to get detailed information about 1217// the error. 1218// 1219// See the AWS API reference guide for AWS Step Functions's 1220// API operation ListExecutions for usage and error information. 1221// 1222// Returned Error Types: 1223// * InvalidArn 1224// The provided Amazon Resource Name (ARN) is invalid. 1225// 1226// * InvalidToken 1227// The provided token is invalid. 1228// 1229// * StateMachineDoesNotExist 1230// The specified state machine does not exist. 1231// 1232// * StateMachineTypeNotSupported 1233// 1234// See also, https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/ListExecutions 1235func (c *SFN) ListExecutions(input *ListExecutionsInput) (*ListExecutionsOutput, error) { 1236 req, out := c.ListExecutionsRequest(input) 1237 return out, req.Send() 1238} 1239 1240// ListExecutionsWithContext is the same as ListExecutions with the addition of 1241// the ability to pass a context and additional request options. 1242// 1243// See ListExecutions for details on how to use this API operation. 1244// 1245// The context must be non-nil and will be used for request cancellation. If 1246// the context is nil a panic will occur. In the future the SDK may create 1247// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1248// for more information on using Contexts. 1249func (c *SFN) ListExecutionsWithContext(ctx aws.Context, input *ListExecutionsInput, opts ...request.Option) (*ListExecutionsOutput, error) { 1250 req, out := c.ListExecutionsRequest(input) 1251 req.SetContext(ctx) 1252 req.ApplyOptions(opts...) 1253 return out, req.Send() 1254} 1255 1256// ListExecutionsPages iterates over the pages of a ListExecutions operation, 1257// calling the "fn" function with the response data for each page. To stop 1258// iterating, return false from the fn function. 1259// 1260// See ListExecutions method for more information on how to use this operation. 1261// 1262// Note: This operation can generate multiple requests to a service. 1263// 1264// // Example iterating over at most 3 pages of a ListExecutions operation. 1265// pageNum := 0 1266// err := client.ListExecutionsPages(params, 1267// func(page *sfn.ListExecutionsOutput, lastPage bool) bool { 1268// pageNum++ 1269// fmt.Println(page) 1270// return pageNum <= 3 1271// }) 1272// 1273func (c *SFN) ListExecutionsPages(input *ListExecutionsInput, fn func(*ListExecutionsOutput, bool) bool) error { 1274 return c.ListExecutionsPagesWithContext(aws.BackgroundContext(), input, fn) 1275} 1276 1277// ListExecutionsPagesWithContext same as ListExecutionsPages except 1278// it takes a Context and allows setting request options on the pages. 1279// 1280// The context must be non-nil and will be used for request cancellation. If 1281// the context is nil a panic will occur. In the future the SDK may create 1282// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1283// for more information on using Contexts. 1284func (c *SFN) ListExecutionsPagesWithContext(ctx aws.Context, input *ListExecutionsInput, fn func(*ListExecutionsOutput, bool) bool, opts ...request.Option) error { 1285 p := request.Pagination{ 1286 NewRequest: func() (*request.Request, error) { 1287 var inCpy *ListExecutionsInput 1288 if input != nil { 1289 tmp := *input 1290 inCpy = &tmp 1291 } 1292 req, _ := c.ListExecutionsRequest(inCpy) 1293 req.SetContext(ctx) 1294 req.ApplyOptions(opts...) 1295 return req, nil 1296 }, 1297 } 1298 1299 for p.Next() { 1300 if !fn(p.Page().(*ListExecutionsOutput), !p.HasNextPage()) { 1301 break 1302 } 1303 } 1304 1305 return p.Err() 1306} 1307 1308const opListStateMachines = "ListStateMachines" 1309 1310// ListStateMachinesRequest generates a "aws/request.Request" representing the 1311// client's request for the ListStateMachines operation. The "output" return 1312// value will be populated with the request's response once the request completes 1313// successfully. 1314// 1315// Use "Send" method on the returned Request to send the API call to the service. 1316// the "output" return value is not valid until after Send returns without error. 1317// 1318// See ListStateMachines for more information on using the ListStateMachines 1319// API call, and error handling. 1320// 1321// This method is useful when you want to inject custom logic or configuration 1322// into the SDK's request lifecycle. Such as custom headers, or retry logic. 1323// 1324// 1325// // Example sending a request using the ListStateMachinesRequest method. 1326// req, resp := client.ListStateMachinesRequest(params) 1327// 1328// err := req.Send() 1329// if err == nil { // resp is now filled 1330// fmt.Println(resp) 1331// } 1332// 1333// See also, https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/ListStateMachines 1334func (c *SFN) ListStateMachinesRequest(input *ListStateMachinesInput) (req *request.Request, output *ListStateMachinesOutput) { 1335 op := &request.Operation{ 1336 Name: opListStateMachines, 1337 HTTPMethod: "POST", 1338 HTTPPath: "/", 1339 Paginator: &request.Paginator{ 1340 InputTokens: []string{"nextToken"}, 1341 OutputTokens: []string{"nextToken"}, 1342 LimitToken: "maxResults", 1343 TruncationToken: "", 1344 }, 1345 } 1346 1347 if input == nil { 1348 input = &ListStateMachinesInput{} 1349 } 1350 1351 output = &ListStateMachinesOutput{} 1352 req = c.newRequest(op, input, output) 1353 return 1354} 1355 1356// ListStateMachines API operation for AWS Step Functions. 1357// 1358// Lists the existing state machines. 1359// 1360// If nextToken is returned, there are more results available. The value of 1361// nextToken is a unique pagination token for each page. Make the call again 1362// using the returned token to retrieve the next page. Keep all other arguments 1363// unchanged. Each pagination token expires after 24 hours. Using an expired 1364// pagination token will return an HTTP 400 InvalidToken error. 1365// 1366// This operation is eventually consistent. The results are best effort and 1367// may not reflect very recent updates and changes. 1368// 1369// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1370// with awserr.Error's Code and Message methods to get detailed information about 1371// the error. 1372// 1373// See the AWS API reference guide for AWS Step Functions's 1374// API operation ListStateMachines for usage and error information. 1375// 1376// Returned Error Types: 1377// * InvalidToken 1378// The provided token is invalid. 1379// 1380// See also, https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/ListStateMachines 1381func (c *SFN) ListStateMachines(input *ListStateMachinesInput) (*ListStateMachinesOutput, error) { 1382 req, out := c.ListStateMachinesRequest(input) 1383 return out, req.Send() 1384} 1385 1386// ListStateMachinesWithContext is the same as ListStateMachines with the addition of 1387// the ability to pass a context and additional request options. 1388// 1389// See ListStateMachines for details on how to use this API operation. 1390// 1391// The context must be non-nil and will be used for request cancellation. If 1392// the context is nil a panic will occur. In the future the SDK may create 1393// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1394// for more information on using Contexts. 1395func (c *SFN) ListStateMachinesWithContext(ctx aws.Context, input *ListStateMachinesInput, opts ...request.Option) (*ListStateMachinesOutput, error) { 1396 req, out := c.ListStateMachinesRequest(input) 1397 req.SetContext(ctx) 1398 req.ApplyOptions(opts...) 1399 return out, req.Send() 1400} 1401 1402// ListStateMachinesPages iterates over the pages of a ListStateMachines operation, 1403// calling the "fn" function with the response data for each page. To stop 1404// iterating, return false from the fn function. 1405// 1406// See ListStateMachines method for more information on how to use this operation. 1407// 1408// Note: This operation can generate multiple requests to a service. 1409// 1410// // Example iterating over at most 3 pages of a ListStateMachines operation. 1411// pageNum := 0 1412// err := client.ListStateMachinesPages(params, 1413// func(page *sfn.ListStateMachinesOutput, lastPage bool) bool { 1414// pageNum++ 1415// fmt.Println(page) 1416// return pageNum <= 3 1417// }) 1418// 1419func (c *SFN) ListStateMachinesPages(input *ListStateMachinesInput, fn func(*ListStateMachinesOutput, bool) bool) error { 1420 return c.ListStateMachinesPagesWithContext(aws.BackgroundContext(), input, fn) 1421} 1422 1423// ListStateMachinesPagesWithContext same as ListStateMachinesPages except 1424// it takes a Context and allows setting request options on the pages. 1425// 1426// The context must be non-nil and will be used for request cancellation. If 1427// the context is nil a panic will occur. In the future the SDK may create 1428// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1429// for more information on using Contexts. 1430func (c *SFN) ListStateMachinesPagesWithContext(ctx aws.Context, input *ListStateMachinesInput, fn func(*ListStateMachinesOutput, bool) bool, opts ...request.Option) error { 1431 p := request.Pagination{ 1432 NewRequest: func() (*request.Request, error) { 1433 var inCpy *ListStateMachinesInput 1434 if input != nil { 1435 tmp := *input 1436 inCpy = &tmp 1437 } 1438 req, _ := c.ListStateMachinesRequest(inCpy) 1439 req.SetContext(ctx) 1440 req.ApplyOptions(opts...) 1441 return req, nil 1442 }, 1443 } 1444 1445 for p.Next() { 1446 if !fn(p.Page().(*ListStateMachinesOutput), !p.HasNextPage()) { 1447 break 1448 } 1449 } 1450 1451 return p.Err() 1452} 1453 1454const opListTagsForResource = "ListTagsForResource" 1455 1456// ListTagsForResourceRequest generates a "aws/request.Request" representing the 1457// client's request for the ListTagsForResource operation. The "output" return 1458// value will be populated with the request's response once the request completes 1459// successfully. 1460// 1461// Use "Send" method on the returned Request to send the API call to the service. 1462// the "output" return value is not valid until after Send returns without error. 1463// 1464// See ListTagsForResource for more information on using the ListTagsForResource 1465// API call, and error handling. 1466// 1467// This method is useful when you want to inject custom logic or configuration 1468// into the SDK's request lifecycle. Such as custom headers, or retry logic. 1469// 1470// 1471// // Example sending a request using the ListTagsForResourceRequest method. 1472// req, resp := client.ListTagsForResourceRequest(params) 1473// 1474// err := req.Send() 1475// if err == nil { // resp is now filled 1476// fmt.Println(resp) 1477// } 1478// 1479// See also, https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/ListTagsForResource 1480func (c *SFN) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) { 1481 op := &request.Operation{ 1482 Name: opListTagsForResource, 1483 HTTPMethod: "POST", 1484 HTTPPath: "/", 1485 } 1486 1487 if input == nil { 1488 input = &ListTagsForResourceInput{} 1489 } 1490 1491 output = &ListTagsForResourceOutput{} 1492 req = c.newRequest(op, input, output) 1493 return 1494} 1495 1496// ListTagsForResource API operation for AWS Step Functions. 1497// 1498// List tags for a given resource. 1499// 1500// Tags may only contain Unicode letters, digits, white space, or these symbols: 1501// _ . : / = + - @. 1502// 1503// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1504// with awserr.Error's Code and Message methods to get detailed information about 1505// the error. 1506// 1507// See the AWS API reference guide for AWS Step Functions's 1508// API operation ListTagsForResource for usage and error information. 1509// 1510// Returned Error Types: 1511// * InvalidArn 1512// The provided Amazon Resource Name (ARN) is invalid. 1513// 1514// * ResourceNotFound 1515// Could not find the referenced resource. Only state machine and activity ARNs 1516// are supported. 1517// 1518// See also, https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/ListTagsForResource 1519func (c *SFN) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) { 1520 req, out := c.ListTagsForResourceRequest(input) 1521 return out, req.Send() 1522} 1523 1524// ListTagsForResourceWithContext is the same as ListTagsForResource with the addition of 1525// the ability to pass a context and additional request options. 1526// 1527// See ListTagsForResource for details on how to use this API operation. 1528// 1529// The context must be non-nil and will be used for request cancellation. If 1530// the context is nil a panic will occur. In the future the SDK may create 1531// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1532// for more information on using Contexts. 1533func (c *SFN) ListTagsForResourceWithContext(ctx aws.Context, input *ListTagsForResourceInput, opts ...request.Option) (*ListTagsForResourceOutput, error) { 1534 req, out := c.ListTagsForResourceRequest(input) 1535 req.SetContext(ctx) 1536 req.ApplyOptions(opts...) 1537 return out, req.Send() 1538} 1539 1540const opSendTaskFailure = "SendTaskFailure" 1541 1542// SendTaskFailureRequest generates a "aws/request.Request" representing the 1543// client's request for the SendTaskFailure operation. The "output" return 1544// value will be populated with the request's response once the request completes 1545// successfully. 1546// 1547// Use "Send" method on the returned Request to send the API call to the service. 1548// the "output" return value is not valid until after Send returns without error. 1549// 1550// See SendTaskFailure for more information on using the SendTaskFailure 1551// API call, and error handling. 1552// 1553// This method is useful when you want to inject custom logic or configuration 1554// into the SDK's request lifecycle. Such as custom headers, or retry logic. 1555// 1556// 1557// // Example sending a request using the SendTaskFailureRequest method. 1558// req, resp := client.SendTaskFailureRequest(params) 1559// 1560// err := req.Send() 1561// if err == nil { // resp is now filled 1562// fmt.Println(resp) 1563// } 1564// 1565// See also, https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/SendTaskFailure 1566func (c *SFN) SendTaskFailureRequest(input *SendTaskFailureInput) (req *request.Request, output *SendTaskFailureOutput) { 1567 op := &request.Operation{ 1568 Name: opSendTaskFailure, 1569 HTTPMethod: "POST", 1570 HTTPPath: "/", 1571 } 1572 1573 if input == nil { 1574 input = &SendTaskFailureInput{} 1575 } 1576 1577 output = &SendTaskFailureOutput{} 1578 req = c.newRequest(op, input, output) 1579 req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) 1580 return 1581} 1582 1583// SendTaskFailure API operation for AWS Step Functions. 1584// 1585// 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) 1586// pattern to report that the task identified by the taskToken failed. 1587// 1588// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1589// with awserr.Error's Code and Message methods to get detailed information about 1590// the error. 1591// 1592// See the AWS API reference guide for AWS Step Functions's 1593// API operation SendTaskFailure for usage and error information. 1594// 1595// Returned Error Types: 1596// * TaskDoesNotExist 1597// 1598// * InvalidToken 1599// The provided token is invalid. 1600// 1601// * TaskTimedOut 1602// 1603// See also, https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/SendTaskFailure 1604func (c *SFN) SendTaskFailure(input *SendTaskFailureInput) (*SendTaskFailureOutput, error) { 1605 req, out := c.SendTaskFailureRequest(input) 1606 return out, req.Send() 1607} 1608 1609// SendTaskFailureWithContext is the same as SendTaskFailure with the addition of 1610// the ability to pass a context and additional request options. 1611// 1612// See SendTaskFailure for details on how to use this API operation. 1613// 1614// The context must be non-nil and will be used for request cancellation. If 1615// the context is nil a panic will occur. In the future the SDK may create 1616// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1617// for more information on using Contexts. 1618func (c *SFN) SendTaskFailureWithContext(ctx aws.Context, input *SendTaskFailureInput, opts ...request.Option) (*SendTaskFailureOutput, error) { 1619 req, out := c.SendTaskFailureRequest(input) 1620 req.SetContext(ctx) 1621 req.ApplyOptions(opts...) 1622 return out, req.Send() 1623} 1624 1625const opSendTaskHeartbeat = "SendTaskHeartbeat" 1626 1627// SendTaskHeartbeatRequest generates a "aws/request.Request" representing the 1628// client's request for the SendTaskHeartbeat operation. The "output" return 1629// value will be populated with the request's response once the request completes 1630// successfully. 1631// 1632// Use "Send" method on the returned Request to send the API call to the service. 1633// the "output" return value is not valid until after Send returns without error. 1634// 1635// See SendTaskHeartbeat for more information on using the SendTaskHeartbeat 1636// API call, and error handling. 1637// 1638// This method is useful when you want to inject custom logic or configuration 1639// into the SDK's request lifecycle. Such as custom headers, or retry logic. 1640// 1641// 1642// // Example sending a request using the SendTaskHeartbeatRequest method. 1643// req, resp := client.SendTaskHeartbeatRequest(params) 1644// 1645// err := req.Send() 1646// if err == nil { // resp is now filled 1647// fmt.Println(resp) 1648// } 1649// 1650// See also, https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/SendTaskHeartbeat 1651func (c *SFN) SendTaskHeartbeatRequest(input *SendTaskHeartbeatInput) (req *request.Request, output *SendTaskHeartbeatOutput) { 1652 op := &request.Operation{ 1653 Name: opSendTaskHeartbeat, 1654 HTTPMethod: "POST", 1655 HTTPPath: "/", 1656 } 1657 1658 if input == nil { 1659 input = &SendTaskHeartbeatInput{} 1660 } 1661 1662 output = &SendTaskHeartbeatOutput{} 1663 req = c.newRequest(op, input, output) 1664 req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) 1665 return 1666} 1667 1668// SendTaskHeartbeat API operation for AWS Step Functions. 1669// 1670// 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) 1671// pattern to report to Step Functions that the task represented by the specified 1672// taskToken is still making progress. This action resets the Heartbeat clock. 1673// The Heartbeat threshold is specified in the state machine's Amazon States 1674// Language definition (HeartbeatSeconds). This action does not in itself create 1675// an event in the execution history. However, if the task times out, the execution 1676// history contains an ActivityTimedOut entry for activities, or a TaskTimedOut 1677// entry for for tasks using the job run (https://docs.aws.amazon.com/step-functions/latest/dg/connect-to-resource.html#connect-sync) 1678// or callback (https://docs.aws.amazon.com/step-functions/latest/dg/connect-to-resource.html#connect-wait-token) 1679// pattern. 1680// 1681// The Timeout of a task, defined in the state machine's Amazon States Language 1682// definition, is its maximum allowed duration, regardless of the number of 1683// SendTaskHeartbeat requests received. Use HeartbeatSeconds to configure the 1684// timeout interval for heartbeats. 1685// 1686// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1687// with awserr.Error's Code and Message methods to get detailed information about 1688// the error. 1689// 1690// See the AWS API reference guide for AWS Step Functions's 1691// API operation SendTaskHeartbeat for usage and error information. 1692// 1693// Returned Error Types: 1694// * TaskDoesNotExist 1695// 1696// * InvalidToken 1697// The provided token is invalid. 1698// 1699// * TaskTimedOut 1700// 1701// See also, https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/SendTaskHeartbeat 1702func (c *SFN) SendTaskHeartbeat(input *SendTaskHeartbeatInput) (*SendTaskHeartbeatOutput, error) { 1703 req, out := c.SendTaskHeartbeatRequest(input) 1704 return out, req.Send() 1705} 1706 1707// SendTaskHeartbeatWithContext is the same as SendTaskHeartbeat with the addition of 1708// the ability to pass a context and additional request options. 1709// 1710// See SendTaskHeartbeat for details on how to use this API operation. 1711// 1712// The context must be non-nil and will be used for request cancellation. If 1713// the context is nil a panic will occur. In the future the SDK may create 1714// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1715// for more information on using Contexts. 1716func (c *SFN) SendTaskHeartbeatWithContext(ctx aws.Context, input *SendTaskHeartbeatInput, opts ...request.Option) (*SendTaskHeartbeatOutput, error) { 1717 req, out := c.SendTaskHeartbeatRequest(input) 1718 req.SetContext(ctx) 1719 req.ApplyOptions(opts...) 1720 return out, req.Send() 1721} 1722 1723const opSendTaskSuccess = "SendTaskSuccess" 1724 1725// SendTaskSuccessRequest generates a "aws/request.Request" representing the 1726// client's request for the SendTaskSuccess operation. The "output" return 1727// value will be populated with the request's response once the request completes 1728// successfully. 1729// 1730// Use "Send" method on the returned Request to send the API call to the service. 1731// the "output" return value is not valid until after Send returns without error. 1732// 1733// See SendTaskSuccess for more information on using the SendTaskSuccess 1734// API call, and error handling. 1735// 1736// This method is useful when you want to inject custom logic or configuration 1737// into the SDK's request lifecycle. Such as custom headers, or retry logic. 1738// 1739// 1740// // Example sending a request using the SendTaskSuccessRequest method. 1741// req, resp := client.SendTaskSuccessRequest(params) 1742// 1743// err := req.Send() 1744// if err == nil { // resp is now filled 1745// fmt.Println(resp) 1746// } 1747// 1748// See also, https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/SendTaskSuccess 1749func (c *SFN) SendTaskSuccessRequest(input *SendTaskSuccessInput) (req *request.Request, output *SendTaskSuccessOutput) { 1750 op := &request.Operation{ 1751 Name: opSendTaskSuccess, 1752 HTTPMethod: "POST", 1753 HTTPPath: "/", 1754 } 1755 1756 if input == nil { 1757 input = &SendTaskSuccessInput{} 1758 } 1759 1760 output = &SendTaskSuccessOutput{} 1761 req = c.newRequest(op, input, output) 1762 req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) 1763 return 1764} 1765 1766// SendTaskSuccess API operation for AWS Step Functions. 1767// 1768// 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) 1769// pattern to report that the task identified by the taskToken completed successfully. 1770// 1771// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1772// with awserr.Error's Code and Message methods to get detailed information about 1773// the error. 1774// 1775// See the AWS API reference guide for AWS Step Functions's 1776// API operation SendTaskSuccess for usage and error information. 1777// 1778// Returned Error Types: 1779// * TaskDoesNotExist 1780// 1781// * InvalidOutput 1782// The provided JSON output data is invalid. 1783// 1784// * InvalidToken 1785// The provided token is invalid. 1786// 1787// * TaskTimedOut 1788// 1789// See also, https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/SendTaskSuccess 1790func (c *SFN) SendTaskSuccess(input *SendTaskSuccessInput) (*SendTaskSuccessOutput, error) { 1791 req, out := c.SendTaskSuccessRequest(input) 1792 return out, req.Send() 1793} 1794 1795// SendTaskSuccessWithContext is the same as SendTaskSuccess with the addition of 1796// the ability to pass a context and additional request options. 1797// 1798// See SendTaskSuccess for details on how to use this API operation. 1799// 1800// The context must be non-nil and will be used for request cancellation. If 1801// the context is nil a panic will occur. In the future the SDK may create 1802// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1803// for more information on using Contexts. 1804func (c *SFN) SendTaskSuccessWithContext(ctx aws.Context, input *SendTaskSuccessInput, opts ...request.Option) (*SendTaskSuccessOutput, error) { 1805 req, out := c.SendTaskSuccessRequest(input) 1806 req.SetContext(ctx) 1807 req.ApplyOptions(opts...) 1808 return out, req.Send() 1809} 1810 1811const opStartExecution = "StartExecution" 1812 1813// StartExecutionRequest generates a "aws/request.Request" representing the 1814// client's request for the StartExecution operation. The "output" return 1815// value will be populated with the request's response once the request completes 1816// successfully. 1817// 1818// Use "Send" method on the returned Request to send the API call to the service. 1819// the "output" return value is not valid until after Send returns without error. 1820// 1821// See StartExecution for more information on using the StartExecution 1822// API call, and error handling. 1823// 1824// This method is useful when you want to inject custom logic or configuration 1825// into the SDK's request lifecycle. Such as custom headers, or retry logic. 1826// 1827// 1828// // Example sending a request using the StartExecutionRequest method. 1829// req, resp := client.StartExecutionRequest(params) 1830// 1831// err := req.Send() 1832// if err == nil { // resp is now filled 1833// fmt.Println(resp) 1834// } 1835// 1836// See also, https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/StartExecution 1837func (c *SFN) StartExecutionRequest(input *StartExecutionInput) (req *request.Request, output *StartExecutionOutput) { 1838 op := &request.Operation{ 1839 Name: opStartExecution, 1840 HTTPMethod: "POST", 1841 HTTPPath: "/", 1842 } 1843 1844 if input == nil { 1845 input = &StartExecutionInput{} 1846 } 1847 1848 output = &StartExecutionOutput{} 1849 req = c.newRequest(op, input, output) 1850 return 1851} 1852 1853// StartExecution API operation for AWS Step Functions. 1854// 1855// Starts a state machine execution. 1856// 1857// StartExecution is idempotent. If StartExecution is called with the same name 1858// and input as a running execution, the call will succeed and return the same 1859// response as the original request. If the execution is closed or if the input 1860// is different, it will return a 400 ExecutionAlreadyExists error. Names can 1861// be reused after 90 days. 1862// 1863// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1864// with awserr.Error's Code and Message methods to get detailed information about 1865// the error. 1866// 1867// See the AWS API reference guide for AWS Step Functions's 1868// API operation StartExecution for usage and error information. 1869// 1870// Returned Error Types: 1871// * ExecutionLimitExceeded 1872// The maximum number of running executions has been reached. Running executions 1873// must end or be stopped before a new execution can be started. 1874// 1875// * ExecutionAlreadyExists 1876// The execution has the same name as another execution (but a different input). 1877// 1878// Executions with the same name and input are considered idempotent. 1879// 1880// * InvalidArn 1881// The provided Amazon Resource Name (ARN) is invalid. 1882// 1883// * InvalidExecutionInput 1884// The provided JSON input data is invalid. 1885// 1886// * InvalidName 1887// The provided name is invalid. 1888// 1889// * StateMachineDoesNotExist 1890// The specified state machine does not exist. 1891// 1892// * StateMachineDeleting 1893// The specified state machine is being deleted. 1894// 1895// See also, https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/StartExecution 1896func (c *SFN) StartExecution(input *StartExecutionInput) (*StartExecutionOutput, error) { 1897 req, out := c.StartExecutionRequest(input) 1898 return out, req.Send() 1899} 1900 1901// StartExecutionWithContext is the same as StartExecution with the addition of 1902// the ability to pass a context and additional request options. 1903// 1904// See StartExecution for details on how to use this API operation. 1905// 1906// The context must be non-nil and will be used for request cancellation. If 1907// the context is nil a panic will occur. In the future the SDK may create 1908// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1909// for more information on using Contexts. 1910func (c *SFN) StartExecutionWithContext(ctx aws.Context, input *StartExecutionInput, opts ...request.Option) (*StartExecutionOutput, error) { 1911 req, out := c.StartExecutionRequest(input) 1912 req.SetContext(ctx) 1913 req.ApplyOptions(opts...) 1914 return out, req.Send() 1915} 1916 1917const opStartSyncExecution = "StartSyncExecution" 1918 1919// StartSyncExecutionRequest generates a "aws/request.Request" representing the 1920// client's request for the StartSyncExecution operation. The "output" return 1921// value will be populated with the request's response once the request completes 1922// successfully. 1923// 1924// Use "Send" method on the returned Request to send the API call to the service. 1925// the "output" return value is not valid until after Send returns without error. 1926// 1927// See StartSyncExecution for more information on using the StartSyncExecution 1928// API call, and error handling. 1929// 1930// This method is useful when you want to inject custom logic or configuration 1931// into the SDK's request lifecycle. Such as custom headers, or retry logic. 1932// 1933// 1934// // Example sending a request using the StartSyncExecutionRequest method. 1935// req, resp := client.StartSyncExecutionRequest(params) 1936// 1937// err := req.Send() 1938// if err == nil { // resp is now filled 1939// fmt.Println(resp) 1940// } 1941// 1942// See also, https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/StartSyncExecution 1943func (c *SFN) StartSyncExecutionRequest(input *StartSyncExecutionInput) (req *request.Request, output *StartSyncExecutionOutput) { 1944 op := &request.Operation{ 1945 Name: opStartSyncExecution, 1946 HTTPMethod: "POST", 1947 HTTPPath: "/", 1948 } 1949 1950 if input == nil { 1951 input = &StartSyncExecutionInput{} 1952 } 1953 1954 output = &StartSyncExecutionOutput{} 1955 req = c.newRequest(op, input, output) 1956 req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("sync-", nil)) 1957 req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) 1958 return 1959} 1960 1961// StartSyncExecution API operation for AWS Step Functions. 1962// 1963// Starts a Synchronous Express state machine execution. 1964// 1965// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1966// with awserr.Error's Code and Message methods to get detailed information about 1967// the error. 1968// 1969// See the AWS API reference guide for AWS Step Functions's 1970// API operation StartSyncExecution for usage and error information. 1971// 1972// Returned Error Types: 1973// * InvalidArn 1974// The provided Amazon Resource Name (ARN) is invalid. 1975// 1976// * InvalidExecutionInput 1977// The provided JSON input data is invalid. 1978// 1979// * InvalidName 1980// The provided name is invalid. 1981// 1982// * StateMachineDoesNotExist 1983// The specified state machine does not exist. 1984// 1985// * StateMachineDeleting 1986// The specified state machine is being deleted. 1987// 1988// * StateMachineTypeNotSupported 1989// 1990// See also, https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/StartSyncExecution 1991func (c *SFN) StartSyncExecution(input *StartSyncExecutionInput) (*StartSyncExecutionOutput, error) { 1992 req, out := c.StartSyncExecutionRequest(input) 1993 return out, req.Send() 1994} 1995 1996// StartSyncExecutionWithContext is the same as StartSyncExecution with the addition of 1997// the ability to pass a context and additional request options. 1998// 1999// See StartSyncExecution for details on how to use this API operation. 2000// 2001// The context must be non-nil and will be used for request cancellation. If 2002// the context is nil a panic will occur. In the future the SDK may create 2003// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 2004// for more information on using Contexts. 2005func (c *SFN) StartSyncExecutionWithContext(ctx aws.Context, input *StartSyncExecutionInput, opts ...request.Option) (*StartSyncExecutionOutput, error) { 2006 req, out := c.StartSyncExecutionRequest(input) 2007 req.SetContext(ctx) 2008 req.ApplyOptions(opts...) 2009 return out, req.Send() 2010} 2011 2012const opStopExecution = "StopExecution" 2013 2014// StopExecutionRequest generates a "aws/request.Request" representing the 2015// client's request for the StopExecution operation. The "output" return 2016// value will be populated with the request's response once the request completes 2017// successfully. 2018// 2019// Use "Send" method on the returned Request to send the API call to the service. 2020// the "output" return value is not valid until after Send returns without error. 2021// 2022// See StopExecution for more information on using the StopExecution 2023// API call, and error handling. 2024// 2025// This method is useful when you want to inject custom logic or configuration 2026// into the SDK's request lifecycle. Such as custom headers, or retry logic. 2027// 2028// 2029// // Example sending a request using the StopExecutionRequest method. 2030// req, resp := client.StopExecutionRequest(params) 2031// 2032// err := req.Send() 2033// if err == nil { // resp is now filled 2034// fmt.Println(resp) 2035// } 2036// 2037// See also, https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/StopExecution 2038func (c *SFN) StopExecutionRequest(input *StopExecutionInput) (req *request.Request, output *StopExecutionOutput) { 2039 op := &request.Operation{ 2040 Name: opStopExecution, 2041 HTTPMethod: "POST", 2042 HTTPPath: "/", 2043 } 2044 2045 if input == nil { 2046 input = &StopExecutionInput{} 2047 } 2048 2049 output = &StopExecutionOutput{} 2050 req = c.newRequest(op, input, output) 2051 return 2052} 2053 2054// StopExecution API operation for AWS Step Functions. 2055// 2056// Stops an execution. 2057// 2058// This API action is not supported by EXPRESS state machines. 2059// 2060// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 2061// with awserr.Error's Code and Message methods to get detailed information about 2062// the error. 2063// 2064// See the AWS API reference guide for AWS Step Functions's 2065// API operation StopExecution for usage and error information. 2066// 2067// Returned Error Types: 2068// * ExecutionDoesNotExist 2069// The specified execution does not exist. 2070// 2071// * InvalidArn 2072// The provided Amazon Resource Name (ARN) is invalid. 2073// 2074// See also, https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/StopExecution 2075func (c *SFN) StopExecution(input *StopExecutionInput) (*StopExecutionOutput, error) { 2076 req, out := c.StopExecutionRequest(input) 2077 return out, req.Send() 2078} 2079 2080// StopExecutionWithContext is the same as StopExecution with the addition of 2081// the ability to pass a context and additional request options. 2082// 2083// See StopExecution for details on how to use this API operation. 2084// 2085// The context must be non-nil and will be used for request cancellation. If 2086// the context is nil a panic will occur. In the future the SDK may create 2087// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 2088// for more information on using Contexts. 2089func (c *SFN) StopExecutionWithContext(ctx aws.Context, input *StopExecutionInput, opts ...request.Option) (*StopExecutionOutput, error) { 2090 req, out := c.StopExecutionRequest(input) 2091 req.SetContext(ctx) 2092 req.ApplyOptions(opts...) 2093 return out, req.Send() 2094} 2095 2096const opTagResource = "TagResource" 2097 2098// TagResourceRequest generates a "aws/request.Request" representing the 2099// client's request for the TagResource operation. The "output" return 2100// value will be populated with the request's response once the request completes 2101// successfully. 2102// 2103// Use "Send" method on the returned Request to send the API call to the service. 2104// the "output" return value is not valid until after Send returns without error. 2105// 2106// See TagResource for more information on using the TagResource 2107// API call, and error handling. 2108// 2109// This method is useful when you want to inject custom logic or configuration 2110// into the SDK's request lifecycle. Such as custom headers, or retry logic. 2111// 2112// 2113// // Example sending a request using the TagResourceRequest method. 2114// req, resp := client.TagResourceRequest(params) 2115// 2116// err := req.Send() 2117// if err == nil { // resp is now filled 2118// fmt.Println(resp) 2119// } 2120// 2121// See also, https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/TagResource 2122func (c *SFN) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput) { 2123 op := &request.Operation{ 2124 Name: opTagResource, 2125 HTTPMethod: "POST", 2126 HTTPPath: "/", 2127 } 2128 2129 if input == nil { 2130 input = &TagResourceInput{} 2131 } 2132 2133 output = &TagResourceOutput{} 2134 req = c.newRequest(op, input, output) 2135 req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) 2136 return 2137} 2138 2139// TagResource API operation for AWS Step Functions. 2140// 2141// Add a tag to a Step Functions resource. 2142// 2143// An array of key-value pairs. For more information, see Using Cost Allocation 2144// Tags (https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html) 2145// in the AWS Billing and Cost Management User Guide, and Controlling Access 2146// Using IAM Tags (https://docs.aws.amazon.com/IAM/latest/UserGuide/access_iam-tags.html). 2147// 2148// Tags may only contain Unicode letters, digits, white space, or these symbols: 2149// _ . : / = + - @. 2150// 2151// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 2152// with awserr.Error's Code and Message methods to get detailed information about 2153// the error. 2154// 2155// See the AWS API reference guide for AWS Step Functions's 2156// API operation TagResource for usage and error information. 2157// 2158// Returned Error Types: 2159// * InvalidArn 2160// The provided Amazon Resource Name (ARN) is invalid. 2161// 2162// * ResourceNotFound 2163// Could not find the referenced resource. Only state machine and activity ARNs 2164// are supported. 2165// 2166// * TooManyTags 2167// You've exceeded the number of tags allowed for a resource. See the Limits 2168// Topic (https://docs.aws.amazon.com/step-functions/latest/dg/limits.html) 2169// in the AWS Step Functions Developer Guide. 2170// 2171// See also, https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/TagResource 2172func (c *SFN) TagResource(input *TagResourceInput) (*TagResourceOutput, error) { 2173 req, out := c.TagResourceRequest(input) 2174 return out, req.Send() 2175} 2176 2177// TagResourceWithContext is the same as TagResource with the addition of 2178// the ability to pass a context and additional request options. 2179// 2180// See TagResource for details on how to use this API operation. 2181// 2182// The context must be non-nil and will be used for request cancellation. If 2183// the context is nil a panic will occur. In the future the SDK may create 2184// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 2185// for more information on using Contexts. 2186func (c *SFN) TagResourceWithContext(ctx aws.Context, input *TagResourceInput, opts ...request.Option) (*TagResourceOutput, error) { 2187 req, out := c.TagResourceRequest(input) 2188 req.SetContext(ctx) 2189 req.ApplyOptions(opts...) 2190 return out, req.Send() 2191} 2192 2193const opUntagResource = "UntagResource" 2194 2195// UntagResourceRequest generates a "aws/request.Request" representing the 2196// client's request for the UntagResource operation. The "output" return 2197// value will be populated with the request's response once the request completes 2198// successfully. 2199// 2200// Use "Send" method on the returned Request to send the API call to the service. 2201// the "output" return value is not valid until after Send returns without error. 2202// 2203// See UntagResource for more information on using the UntagResource 2204// API call, and error handling. 2205// 2206// This method is useful when you want to inject custom logic or configuration 2207// into the SDK's request lifecycle. Such as custom headers, or retry logic. 2208// 2209// 2210// // Example sending a request using the UntagResourceRequest method. 2211// req, resp := client.UntagResourceRequest(params) 2212// 2213// err := req.Send() 2214// if err == nil { // resp is now filled 2215// fmt.Println(resp) 2216// } 2217// 2218// See also, https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/UntagResource 2219func (c *SFN) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput) { 2220 op := &request.Operation{ 2221 Name: opUntagResource, 2222 HTTPMethod: "POST", 2223 HTTPPath: "/", 2224 } 2225 2226 if input == nil { 2227 input = &UntagResourceInput{} 2228 } 2229 2230 output = &UntagResourceOutput{} 2231 req = c.newRequest(op, input, output) 2232 req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) 2233 return 2234} 2235 2236// UntagResource API operation for AWS Step Functions. 2237// 2238// Remove a tag from a Step Functions resource 2239// 2240// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 2241// with awserr.Error's Code and Message methods to get detailed information about 2242// the error. 2243// 2244// See the AWS API reference guide for AWS Step Functions's 2245// API operation UntagResource for usage and error information. 2246// 2247// Returned Error Types: 2248// * InvalidArn 2249// The provided Amazon Resource Name (ARN) is invalid. 2250// 2251// * ResourceNotFound 2252// Could not find the referenced resource. Only state machine and activity ARNs 2253// are supported. 2254// 2255// See also, https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/UntagResource 2256func (c *SFN) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) { 2257 req, out := c.UntagResourceRequest(input) 2258 return out, req.Send() 2259} 2260 2261// UntagResourceWithContext is the same as UntagResource with the addition of 2262// the ability to pass a context and additional request options. 2263// 2264// See UntagResource for details on how to use this API operation. 2265// 2266// The context must be non-nil and will be used for request cancellation. If 2267// the context is nil a panic will occur. In the future the SDK may create 2268// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 2269// for more information on using Contexts. 2270func (c *SFN) UntagResourceWithContext(ctx aws.Context, input *UntagResourceInput, opts ...request.Option) (*UntagResourceOutput, error) { 2271 req, out := c.UntagResourceRequest(input) 2272 req.SetContext(ctx) 2273 req.ApplyOptions(opts...) 2274 return out, req.Send() 2275} 2276 2277const opUpdateStateMachine = "UpdateStateMachine" 2278 2279// UpdateStateMachineRequest generates a "aws/request.Request" representing the 2280// client's request for the UpdateStateMachine operation. The "output" return 2281// value will be populated with the request's response once the request completes 2282// successfully. 2283// 2284// Use "Send" method on the returned Request to send the API call to the service. 2285// the "output" return value is not valid until after Send returns without error. 2286// 2287// See UpdateStateMachine for more information on using the UpdateStateMachine 2288// API call, and error handling. 2289// 2290// This method is useful when you want to inject custom logic or configuration 2291// into the SDK's request lifecycle. Such as custom headers, or retry logic. 2292// 2293// 2294// // Example sending a request using the UpdateStateMachineRequest method. 2295// req, resp := client.UpdateStateMachineRequest(params) 2296// 2297// err := req.Send() 2298// if err == nil { // resp is now filled 2299// fmt.Println(resp) 2300// } 2301// 2302// See also, https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/UpdateStateMachine 2303func (c *SFN) UpdateStateMachineRequest(input *UpdateStateMachineInput) (req *request.Request, output *UpdateStateMachineOutput) { 2304 op := &request.Operation{ 2305 Name: opUpdateStateMachine, 2306 HTTPMethod: "POST", 2307 HTTPPath: "/", 2308 } 2309 2310 if input == nil { 2311 input = &UpdateStateMachineInput{} 2312 } 2313 2314 output = &UpdateStateMachineOutput{} 2315 req = c.newRequest(op, input, output) 2316 return 2317} 2318 2319// UpdateStateMachine API operation for AWS Step Functions. 2320// 2321// Updates an existing state machine by modifying its definition, roleArn, or 2322// loggingConfiguration. Running executions will continue to use the previous 2323// definition and roleArn. You must include at least one of definition or roleArn 2324// or you will receive a MissingRequiredParameter error. 2325// 2326// All StartExecution calls within a few seconds will use the updated definition 2327// and roleArn. Executions started immediately after calling UpdateStateMachine 2328// may use the previous state machine definition and roleArn. 2329// 2330// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 2331// with awserr.Error's Code and Message methods to get detailed information about 2332// the error. 2333// 2334// See the AWS API reference guide for AWS Step Functions's 2335// API operation UpdateStateMachine for usage and error information. 2336// 2337// Returned Error Types: 2338// * InvalidArn 2339// The provided Amazon Resource Name (ARN) is invalid. 2340// 2341// * InvalidDefinition 2342// The provided Amazon States Language definition is invalid. 2343// 2344// * InvalidLoggingConfiguration 2345// 2346// * InvalidTracingConfiguration 2347// Your tracingConfiguration key does not match, or enabled has not been set 2348// to true or false. 2349// 2350// * MissingRequiredParameter 2351// Request is missing a required parameter. This error occurs if both definition 2352// and roleArn are not specified. 2353// 2354// * StateMachineDeleting 2355// The specified state machine is being deleted. 2356// 2357// * StateMachineDoesNotExist 2358// The specified state machine does not exist. 2359// 2360// See also, https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/UpdateStateMachine 2361func (c *SFN) UpdateStateMachine(input *UpdateStateMachineInput) (*UpdateStateMachineOutput, error) { 2362 req, out := c.UpdateStateMachineRequest(input) 2363 return out, req.Send() 2364} 2365 2366// UpdateStateMachineWithContext is the same as UpdateStateMachine with the addition of 2367// the ability to pass a context and additional request options. 2368// 2369// See UpdateStateMachine for details on how to use this API operation. 2370// 2371// The context must be non-nil and will be used for request cancellation. If 2372// the context is nil a panic will occur. In the future the SDK may create 2373// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 2374// for more information on using Contexts. 2375func (c *SFN) UpdateStateMachineWithContext(ctx aws.Context, input *UpdateStateMachineInput, opts ...request.Option) (*UpdateStateMachineOutput, error) { 2376 req, out := c.UpdateStateMachineRequest(input) 2377 req.SetContext(ctx) 2378 req.ApplyOptions(opts...) 2379 return out, req.Send() 2380} 2381 2382// The specified activity does not exist. 2383type ActivityDoesNotExist struct { 2384 _ struct{} `type:"structure"` 2385 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 2386 2387 Message_ *string `locationName:"message" type:"string"` 2388} 2389 2390// String returns the string representation 2391func (s ActivityDoesNotExist) String() string { 2392 return awsutil.Prettify(s) 2393} 2394 2395// GoString returns the string representation 2396func (s ActivityDoesNotExist) GoString() string { 2397 return s.String() 2398} 2399 2400func newErrorActivityDoesNotExist(v protocol.ResponseMetadata) error { 2401 return &ActivityDoesNotExist{ 2402 RespMetadata: v, 2403 } 2404} 2405 2406// Code returns the exception type name. 2407func (s *ActivityDoesNotExist) Code() string { 2408 return "ActivityDoesNotExist" 2409} 2410 2411// Message returns the exception's message. 2412func (s *ActivityDoesNotExist) Message() string { 2413 if s.Message_ != nil { 2414 return *s.Message_ 2415 } 2416 return "" 2417} 2418 2419// OrigErr always returns nil, satisfies awserr.Error interface. 2420func (s *ActivityDoesNotExist) OrigErr() error { 2421 return nil 2422} 2423 2424func (s *ActivityDoesNotExist) Error() string { 2425 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 2426} 2427 2428// Status code returns the HTTP status code for the request's response error. 2429func (s *ActivityDoesNotExist) StatusCode() int { 2430 return s.RespMetadata.StatusCode 2431} 2432 2433// RequestID returns the service's response RequestID for request. 2434func (s *ActivityDoesNotExist) RequestID() string { 2435 return s.RespMetadata.RequestID 2436} 2437 2438// Contains details about an activity that failed during an execution. 2439type ActivityFailedEventDetails struct { 2440 _ struct{} `type:"structure"` 2441 2442 // A more detailed explanation of the cause of the failure. 2443 Cause *string `locationName:"cause" type:"string" sensitive:"true"` 2444 2445 // The error code of the failure. 2446 Error *string `locationName:"error" type:"string" sensitive:"true"` 2447} 2448 2449// String returns the string representation 2450func (s ActivityFailedEventDetails) String() string { 2451 return awsutil.Prettify(s) 2452} 2453 2454// GoString returns the string representation 2455func (s ActivityFailedEventDetails) GoString() string { 2456 return s.String() 2457} 2458 2459// SetCause sets the Cause field's value. 2460func (s *ActivityFailedEventDetails) SetCause(v string) *ActivityFailedEventDetails { 2461 s.Cause = &v 2462 return s 2463} 2464 2465// SetError sets the Error field's value. 2466func (s *ActivityFailedEventDetails) SetError(v string) *ActivityFailedEventDetails { 2467 s.Error = &v 2468 return s 2469} 2470 2471// The maximum number of activities has been reached. Existing activities must 2472// be deleted before a new activity can be created. 2473type ActivityLimitExceeded struct { 2474 _ struct{} `type:"structure"` 2475 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 2476 2477 Message_ *string `locationName:"message" type:"string"` 2478} 2479 2480// String returns the string representation 2481func (s ActivityLimitExceeded) String() string { 2482 return awsutil.Prettify(s) 2483} 2484 2485// GoString returns the string representation 2486func (s ActivityLimitExceeded) GoString() string { 2487 return s.String() 2488} 2489 2490func newErrorActivityLimitExceeded(v protocol.ResponseMetadata) error { 2491 return &ActivityLimitExceeded{ 2492 RespMetadata: v, 2493 } 2494} 2495 2496// Code returns the exception type name. 2497func (s *ActivityLimitExceeded) Code() string { 2498 return "ActivityLimitExceeded" 2499} 2500 2501// Message returns the exception's message. 2502func (s *ActivityLimitExceeded) Message() string { 2503 if s.Message_ != nil { 2504 return *s.Message_ 2505 } 2506 return "" 2507} 2508 2509// OrigErr always returns nil, satisfies awserr.Error interface. 2510func (s *ActivityLimitExceeded) OrigErr() error { 2511 return nil 2512} 2513 2514func (s *ActivityLimitExceeded) Error() string { 2515 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 2516} 2517 2518// Status code returns the HTTP status code for the request's response error. 2519func (s *ActivityLimitExceeded) StatusCode() int { 2520 return s.RespMetadata.StatusCode 2521} 2522 2523// RequestID returns the service's response RequestID for request. 2524func (s *ActivityLimitExceeded) RequestID() string { 2525 return s.RespMetadata.RequestID 2526} 2527 2528// Contains details about an activity. 2529type ActivityListItem struct { 2530 _ struct{} `type:"structure"` 2531 2532 // The Amazon Resource Name (ARN) that identifies the activity. 2533 // 2534 // ActivityArn is a required field 2535 ActivityArn *string `locationName:"activityArn" min:"1" type:"string" required:"true"` 2536 2537 // The date the activity is created. 2538 // 2539 // CreationDate is a required field 2540 CreationDate *time.Time `locationName:"creationDate" type:"timestamp" required:"true"` 2541 2542 // The name of the activity. 2543 // 2544 // A name must not contain: 2545 // 2546 // * white space 2547 // 2548 // * brackets < > { } [ ] 2549 // 2550 // * wildcard characters ? * 2551 // 2552 // * special characters " # % \ ^ | ~ ` $ & , ; : / 2553 // 2554 // * control characters (U+0000-001F, U+007F-009F) 2555 // 2556 // To enable logging with CloudWatch Logs, the name should only contain 0-9, 2557 // A-Z, a-z, - and _. 2558 // 2559 // Name is a required field 2560 Name *string `locationName:"name" min:"1" type:"string" required:"true"` 2561} 2562 2563// String returns the string representation 2564func (s ActivityListItem) String() string { 2565 return awsutil.Prettify(s) 2566} 2567 2568// GoString returns the string representation 2569func (s ActivityListItem) GoString() string { 2570 return s.String() 2571} 2572 2573// SetActivityArn sets the ActivityArn field's value. 2574func (s *ActivityListItem) SetActivityArn(v string) *ActivityListItem { 2575 s.ActivityArn = &v 2576 return s 2577} 2578 2579// SetCreationDate sets the CreationDate field's value. 2580func (s *ActivityListItem) SetCreationDate(v time.Time) *ActivityListItem { 2581 s.CreationDate = &v 2582 return s 2583} 2584 2585// SetName sets the Name field's value. 2586func (s *ActivityListItem) SetName(v string) *ActivityListItem { 2587 s.Name = &v 2588 return s 2589} 2590 2591// Contains details about an activity schedule failure that occurred during 2592// an execution. 2593type ActivityScheduleFailedEventDetails struct { 2594 _ struct{} `type:"structure"` 2595 2596 // A more detailed explanation of the cause of the failure. 2597 Cause *string `locationName:"cause" type:"string" sensitive:"true"` 2598 2599 // The error code of the failure. 2600 Error *string `locationName:"error" type:"string" sensitive:"true"` 2601} 2602 2603// String returns the string representation 2604func (s ActivityScheduleFailedEventDetails) String() string { 2605 return awsutil.Prettify(s) 2606} 2607 2608// GoString returns the string representation 2609func (s ActivityScheduleFailedEventDetails) GoString() string { 2610 return s.String() 2611} 2612 2613// SetCause sets the Cause field's value. 2614func (s *ActivityScheduleFailedEventDetails) SetCause(v string) *ActivityScheduleFailedEventDetails { 2615 s.Cause = &v 2616 return s 2617} 2618 2619// SetError sets the Error field's value. 2620func (s *ActivityScheduleFailedEventDetails) SetError(v string) *ActivityScheduleFailedEventDetails { 2621 s.Error = &v 2622 return s 2623} 2624 2625// Contains details about an activity scheduled during an execution. 2626type ActivityScheduledEventDetails struct { 2627 _ struct{} `type:"structure"` 2628 2629 // The maximum allowed duration between two heartbeats for the activity task. 2630 HeartbeatInSeconds *int64 `locationName:"heartbeatInSeconds" type:"long"` 2631 2632 // The JSON data input to the activity task. Length constraints apply to the 2633 // payload size, and are expressed as bytes in UTF-8 encoding. 2634 Input *string `locationName:"input" type:"string" sensitive:"true"` 2635 2636 // Contains details about the input for an execution history event. 2637 InputDetails *HistoryEventExecutionDataDetails `locationName:"inputDetails" type:"structure"` 2638 2639 // The Amazon Resource Name (ARN) of the scheduled activity. 2640 // 2641 // Resource is a required field 2642 Resource *string `locationName:"resource" min:"1" type:"string" required:"true"` 2643 2644 // The maximum allowed duration of the activity task. 2645 TimeoutInSeconds *int64 `locationName:"timeoutInSeconds" type:"long"` 2646} 2647 2648// String returns the string representation 2649func (s ActivityScheduledEventDetails) String() string { 2650 return awsutil.Prettify(s) 2651} 2652 2653// GoString returns the string representation 2654func (s ActivityScheduledEventDetails) GoString() string { 2655 return s.String() 2656} 2657 2658// SetHeartbeatInSeconds sets the HeartbeatInSeconds field's value. 2659func (s *ActivityScheduledEventDetails) SetHeartbeatInSeconds(v int64) *ActivityScheduledEventDetails { 2660 s.HeartbeatInSeconds = &v 2661 return s 2662} 2663 2664// SetInput sets the Input field's value. 2665func (s *ActivityScheduledEventDetails) SetInput(v string) *ActivityScheduledEventDetails { 2666 s.Input = &v 2667 return s 2668} 2669 2670// SetInputDetails sets the InputDetails field's value. 2671func (s *ActivityScheduledEventDetails) SetInputDetails(v *HistoryEventExecutionDataDetails) *ActivityScheduledEventDetails { 2672 s.InputDetails = v 2673 return s 2674} 2675 2676// SetResource sets the Resource field's value. 2677func (s *ActivityScheduledEventDetails) SetResource(v string) *ActivityScheduledEventDetails { 2678 s.Resource = &v 2679 return s 2680} 2681 2682// SetTimeoutInSeconds sets the TimeoutInSeconds field's value. 2683func (s *ActivityScheduledEventDetails) SetTimeoutInSeconds(v int64) *ActivityScheduledEventDetails { 2684 s.TimeoutInSeconds = &v 2685 return s 2686} 2687 2688// Contains details about the start of an activity during an execution. 2689type ActivityStartedEventDetails struct { 2690 _ struct{} `type:"structure"` 2691 2692 // The name of the worker that the task is assigned to. These names are provided 2693 // by the workers when calling GetActivityTask. 2694 WorkerName *string `locationName:"workerName" type:"string"` 2695} 2696 2697// String returns the string representation 2698func (s ActivityStartedEventDetails) String() string { 2699 return awsutil.Prettify(s) 2700} 2701 2702// GoString returns the string representation 2703func (s ActivityStartedEventDetails) GoString() string { 2704 return s.String() 2705} 2706 2707// SetWorkerName sets the WorkerName field's value. 2708func (s *ActivityStartedEventDetails) SetWorkerName(v string) *ActivityStartedEventDetails { 2709 s.WorkerName = &v 2710 return s 2711} 2712 2713// Contains details about an activity that successfully terminated during an 2714// execution. 2715type ActivitySucceededEventDetails struct { 2716 _ struct{} `type:"structure"` 2717 2718 // The JSON data output by the activity task. Length constraints apply to the 2719 // payload size, and are expressed as bytes in UTF-8 encoding. 2720 Output *string `locationName:"output" type:"string" sensitive:"true"` 2721 2722 // Contains details about the output of an execution history event. 2723 OutputDetails *HistoryEventExecutionDataDetails `locationName:"outputDetails" type:"structure"` 2724} 2725 2726// String returns the string representation 2727func (s ActivitySucceededEventDetails) String() string { 2728 return awsutil.Prettify(s) 2729} 2730 2731// GoString returns the string representation 2732func (s ActivitySucceededEventDetails) GoString() string { 2733 return s.String() 2734} 2735 2736// SetOutput sets the Output field's value. 2737func (s *ActivitySucceededEventDetails) SetOutput(v string) *ActivitySucceededEventDetails { 2738 s.Output = &v 2739 return s 2740} 2741 2742// SetOutputDetails sets the OutputDetails field's value. 2743func (s *ActivitySucceededEventDetails) SetOutputDetails(v *HistoryEventExecutionDataDetails) *ActivitySucceededEventDetails { 2744 s.OutputDetails = v 2745 return s 2746} 2747 2748// Contains details about an activity timeout that occurred during an execution. 2749type ActivityTimedOutEventDetails struct { 2750 _ struct{} `type:"structure"` 2751 2752 // A more detailed explanation of the cause of the timeout. 2753 Cause *string `locationName:"cause" type:"string" sensitive:"true"` 2754 2755 // The error code of the failure. 2756 Error *string `locationName:"error" type:"string" sensitive:"true"` 2757} 2758 2759// String returns the string representation 2760func (s ActivityTimedOutEventDetails) String() string { 2761 return awsutil.Prettify(s) 2762} 2763 2764// GoString returns the string representation 2765func (s ActivityTimedOutEventDetails) GoString() string { 2766 return s.String() 2767} 2768 2769// SetCause sets the Cause field's value. 2770func (s *ActivityTimedOutEventDetails) SetCause(v string) *ActivityTimedOutEventDetails { 2771 s.Cause = &v 2772 return s 2773} 2774 2775// SetError sets the Error field's value. 2776func (s *ActivityTimedOutEventDetails) SetError(v string) *ActivityTimedOutEventDetails { 2777 s.Error = &v 2778 return s 2779} 2780 2781// The maximum number of workers concurrently polling for activity tasks has 2782// been reached. 2783type ActivityWorkerLimitExceeded struct { 2784 _ struct{} `type:"structure"` 2785 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 2786 2787 Message_ *string `locationName:"message" type:"string"` 2788} 2789 2790// String returns the string representation 2791func (s ActivityWorkerLimitExceeded) String() string { 2792 return awsutil.Prettify(s) 2793} 2794 2795// GoString returns the string representation 2796func (s ActivityWorkerLimitExceeded) GoString() string { 2797 return s.String() 2798} 2799 2800func newErrorActivityWorkerLimitExceeded(v protocol.ResponseMetadata) error { 2801 return &ActivityWorkerLimitExceeded{ 2802 RespMetadata: v, 2803 } 2804} 2805 2806// Code returns the exception type name. 2807func (s *ActivityWorkerLimitExceeded) Code() string { 2808 return "ActivityWorkerLimitExceeded" 2809} 2810 2811// Message returns the exception's message. 2812func (s *ActivityWorkerLimitExceeded) Message() string { 2813 if s.Message_ != nil { 2814 return *s.Message_ 2815 } 2816 return "" 2817} 2818 2819// OrigErr always returns nil, satisfies awserr.Error interface. 2820func (s *ActivityWorkerLimitExceeded) OrigErr() error { 2821 return nil 2822} 2823 2824func (s *ActivityWorkerLimitExceeded) Error() string { 2825 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 2826} 2827 2828// Status code returns the HTTP status code for the request's response error. 2829func (s *ActivityWorkerLimitExceeded) StatusCode() int { 2830 return s.RespMetadata.StatusCode 2831} 2832 2833// RequestID returns the service's response RequestID for request. 2834func (s *ActivityWorkerLimitExceeded) RequestID() string { 2835 return s.RespMetadata.RequestID 2836} 2837 2838// An object that describes workflow billing details. 2839type BillingDetails struct { 2840 _ struct{} `type:"structure"` 2841 2842 // Billed duration of your workflow, in milliseconds. 2843 BilledDurationInMilliseconds *int64 `locationName:"billedDurationInMilliseconds" type:"long"` 2844 2845 // Billed memory consumption of your workflow, in MB. 2846 BilledMemoryUsedInMB *int64 `locationName:"billedMemoryUsedInMB" type:"long"` 2847} 2848 2849// String returns the string representation 2850func (s BillingDetails) String() string { 2851 return awsutil.Prettify(s) 2852} 2853 2854// GoString returns the string representation 2855func (s BillingDetails) GoString() string { 2856 return s.String() 2857} 2858 2859// SetBilledDurationInMilliseconds sets the BilledDurationInMilliseconds field's value. 2860func (s *BillingDetails) SetBilledDurationInMilliseconds(v int64) *BillingDetails { 2861 s.BilledDurationInMilliseconds = &v 2862 return s 2863} 2864 2865// SetBilledMemoryUsedInMB sets the BilledMemoryUsedInMB field's value. 2866func (s *BillingDetails) SetBilledMemoryUsedInMB(v int64) *BillingDetails { 2867 s.BilledMemoryUsedInMB = &v 2868 return s 2869} 2870 2871// Provides details about execution input or output. 2872type CloudWatchEventsExecutionDataDetails struct { 2873 _ struct{} `type:"structure"` 2874 2875 // Indicates whether input or output was included in the response. Always true 2876 // for API calls. 2877 Included *bool `locationName:"included" type:"boolean"` 2878} 2879 2880// String returns the string representation 2881func (s CloudWatchEventsExecutionDataDetails) String() string { 2882 return awsutil.Prettify(s) 2883} 2884 2885// GoString returns the string representation 2886func (s CloudWatchEventsExecutionDataDetails) GoString() string { 2887 return s.String() 2888} 2889 2890// SetIncluded sets the Included field's value. 2891func (s *CloudWatchEventsExecutionDataDetails) SetIncluded(v bool) *CloudWatchEventsExecutionDataDetails { 2892 s.Included = &v 2893 return s 2894} 2895 2896type CloudWatchLogsLogGroup struct { 2897 _ struct{} `type:"structure"` 2898 2899 // The ARN of the the CloudWatch log group to which you want your logs emitted 2900 // to. The ARN must end with :* 2901 LogGroupArn *string `locationName:"logGroupArn" min:"1" type:"string"` 2902} 2903 2904// String returns the string representation 2905func (s CloudWatchLogsLogGroup) String() string { 2906 return awsutil.Prettify(s) 2907} 2908 2909// GoString returns the string representation 2910func (s CloudWatchLogsLogGroup) GoString() string { 2911 return s.String() 2912} 2913 2914// Validate inspects the fields of the type to determine if they are valid. 2915func (s *CloudWatchLogsLogGroup) Validate() error { 2916 invalidParams := request.ErrInvalidParams{Context: "CloudWatchLogsLogGroup"} 2917 if s.LogGroupArn != nil && len(*s.LogGroupArn) < 1 { 2918 invalidParams.Add(request.NewErrParamMinLen("LogGroupArn", 1)) 2919 } 2920 2921 if invalidParams.Len() > 0 { 2922 return invalidParams 2923 } 2924 return nil 2925} 2926 2927// SetLogGroupArn sets the LogGroupArn field's value. 2928func (s *CloudWatchLogsLogGroup) SetLogGroupArn(v string) *CloudWatchLogsLogGroup { 2929 s.LogGroupArn = &v 2930 return s 2931} 2932 2933type CreateActivityInput struct { 2934 _ struct{} `type:"structure"` 2935 2936 // The name of the activity to create. This name must be unique for your AWS 2937 // account and region for 90 days. For more information, see Limits Related 2938 // to State Machine Executions (https://docs.aws.amazon.com/step-functions/latest/dg/limits.html#service-limits-state-machine-executions) 2939 // in the AWS Step Functions Developer Guide. 2940 // 2941 // A name must not contain: 2942 // 2943 // * white space 2944 // 2945 // * brackets < > { } [ ] 2946 // 2947 // * wildcard characters ? * 2948 // 2949 // * special characters " # % \ ^ | ~ ` $ & , ; : / 2950 // 2951 // * control characters (U+0000-001F, U+007F-009F) 2952 // 2953 // To enable logging with CloudWatch Logs, the name should only contain 0-9, 2954 // A-Z, a-z, - and _. 2955 // 2956 // Name is a required field 2957 Name *string `locationName:"name" min:"1" type:"string" required:"true"` 2958 2959 // The list of tags to add to a resource. 2960 // 2961 // An array of key-value pairs. For more information, see Using Cost Allocation 2962 // Tags (https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html) 2963 // in the AWS Billing and Cost Management User Guide, and Controlling Access 2964 // Using IAM Tags (https://docs.aws.amazon.com/IAM/latest/UserGuide/access_iam-tags.html). 2965 // 2966 // Tags may only contain Unicode letters, digits, white space, or these symbols: 2967 // _ . : / = + - @. 2968 Tags []*Tag `locationName:"tags" type:"list"` 2969} 2970 2971// String returns the string representation 2972func (s CreateActivityInput) String() string { 2973 return awsutil.Prettify(s) 2974} 2975 2976// GoString returns the string representation 2977func (s CreateActivityInput) GoString() string { 2978 return s.String() 2979} 2980 2981// Validate inspects the fields of the type to determine if they are valid. 2982func (s *CreateActivityInput) Validate() error { 2983 invalidParams := request.ErrInvalidParams{Context: "CreateActivityInput"} 2984 if s.Name == nil { 2985 invalidParams.Add(request.NewErrParamRequired("Name")) 2986 } 2987 if s.Name != nil && len(*s.Name) < 1 { 2988 invalidParams.Add(request.NewErrParamMinLen("Name", 1)) 2989 } 2990 if s.Tags != nil { 2991 for i, v := range s.Tags { 2992 if v == nil { 2993 continue 2994 } 2995 if err := v.Validate(); err != nil { 2996 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) 2997 } 2998 } 2999 } 3000 3001 if invalidParams.Len() > 0 { 3002 return invalidParams 3003 } 3004 return nil 3005} 3006 3007// SetName sets the Name field's value. 3008func (s *CreateActivityInput) SetName(v string) *CreateActivityInput { 3009 s.Name = &v 3010 return s 3011} 3012 3013// SetTags sets the Tags field's value. 3014func (s *CreateActivityInput) SetTags(v []*Tag) *CreateActivityInput { 3015 s.Tags = v 3016 return s 3017} 3018 3019type CreateActivityOutput struct { 3020 _ struct{} `type:"structure"` 3021 3022 // The Amazon Resource Name (ARN) that identifies the created activity. 3023 // 3024 // ActivityArn is a required field 3025 ActivityArn *string `locationName:"activityArn" min:"1" type:"string" required:"true"` 3026 3027 // The date the activity is created. 3028 // 3029 // CreationDate is a required field 3030 CreationDate *time.Time `locationName:"creationDate" type:"timestamp" required:"true"` 3031} 3032 3033// String returns the string representation 3034func (s CreateActivityOutput) String() string { 3035 return awsutil.Prettify(s) 3036} 3037 3038// GoString returns the string representation 3039func (s CreateActivityOutput) GoString() string { 3040 return s.String() 3041} 3042 3043// SetActivityArn sets the ActivityArn field's value. 3044func (s *CreateActivityOutput) SetActivityArn(v string) *CreateActivityOutput { 3045 s.ActivityArn = &v 3046 return s 3047} 3048 3049// SetCreationDate sets the CreationDate field's value. 3050func (s *CreateActivityOutput) SetCreationDate(v time.Time) *CreateActivityOutput { 3051 s.CreationDate = &v 3052 return s 3053} 3054 3055type CreateStateMachineInput struct { 3056 _ struct{} `type:"structure"` 3057 3058 // The Amazon States Language definition of the state machine. See Amazon States 3059 // Language (https://docs.aws.amazon.com/step-functions/latest/dg/concepts-amazon-states-language.html). 3060 // 3061 // Definition is a required field 3062 Definition *string `locationName:"definition" min:"1" type:"string" required:"true" sensitive:"true"` 3063 3064 // Defines what execution history events are logged and where they are logged. 3065 // 3066 // By default, the level is set to OFF. For more information see Log Levels 3067 // (https://docs.aws.amazon.com/step-functions/latest/dg/cloudwatch-log-level.html) 3068 // in the AWS Step Functions User Guide. 3069 LoggingConfiguration *LoggingConfiguration `locationName:"loggingConfiguration" type:"structure"` 3070 3071 // The name of the state machine. 3072 // 3073 // A name must not contain: 3074 // 3075 // * white space 3076 // 3077 // * brackets < > { } [ ] 3078 // 3079 // * wildcard characters ? * 3080 // 3081 // * special characters " # % \ ^ | ~ ` $ & , ; : / 3082 // 3083 // * control characters (U+0000-001F, U+007F-009F) 3084 // 3085 // To enable logging with CloudWatch Logs, the name should only contain 0-9, 3086 // A-Z, a-z, - and _. 3087 // 3088 // Name is a required field 3089 Name *string `locationName:"name" min:"1" type:"string" required:"true"` 3090 3091 // The Amazon Resource Name (ARN) of the IAM role to use for this state machine. 3092 // 3093 // RoleArn is a required field 3094 RoleArn *string `locationName:"roleArn" min:"1" type:"string" required:"true"` 3095 3096 // Tags to be added when creating a state machine. 3097 // 3098 // An array of key-value pairs. For more information, see Using Cost Allocation 3099 // Tags (https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html) 3100 // in the AWS Billing and Cost Management User Guide, and Controlling Access 3101 // Using IAM Tags (https://docs.aws.amazon.com/IAM/latest/UserGuide/access_iam-tags.html). 3102 // 3103 // Tags may only contain Unicode letters, digits, white space, or these symbols: 3104 // _ . : / = + - @. 3105 Tags []*Tag `locationName:"tags" type:"list"` 3106 3107 // Selects whether AWS X-Ray tracing is enabled. 3108 TracingConfiguration *TracingConfiguration `locationName:"tracingConfiguration" type:"structure"` 3109 3110 // Determines whether a Standard or Express state machine is created. The default 3111 // is STANDARD. You cannot update the type of a state machine once it has been 3112 // created. 3113 Type *string `locationName:"type" type:"string" enum:"StateMachineType"` 3114} 3115 3116// String returns the string representation 3117func (s CreateStateMachineInput) String() string { 3118 return awsutil.Prettify(s) 3119} 3120 3121// GoString returns the string representation 3122func (s CreateStateMachineInput) GoString() string { 3123 return s.String() 3124} 3125 3126// Validate inspects the fields of the type to determine if they are valid. 3127func (s *CreateStateMachineInput) Validate() error { 3128 invalidParams := request.ErrInvalidParams{Context: "CreateStateMachineInput"} 3129 if s.Definition == nil { 3130 invalidParams.Add(request.NewErrParamRequired("Definition")) 3131 } 3132 if s.Definition != nil && len(*s.Definition) < 1 { 3133 invalidParams.Add(request.NewErrParamMinLen("Definition", 1)) 3134 } 3135 if s.Name == nil { 3136 invalidParams.Add(request.NewErrParamRequired("Name")) 3137 } 3138 if s.Name != nil && len(*s.Name) < 1 { 3139 invalidParams.Add(request.NewErrParamMinLen("Name", 1)) 3140 } 3141 if s.RoleArn == nil { 3142 invalidParams.Add(request.NewErrParamRequired("RoleArn")) 3143 } 3144 if s.RoleArn != nil && len(*s.RoleArn) < 1 { 3145 invalidParams.Add(request.NewErrParamMinLen("RoleArn", 1)) 3146 } 3147 if s.LoggingConfiguration != nil { 3148 if err := s.LoggingConfiguration.Validate(); err != nil { 3149 invalidParams.AddNested("LoggingConfiguration", err.(request.ErrInvalidParams)) 3150 } 3151 } 3152 if s.Tags != nil { 3153 for i, v := range s.Tags { 3154 if v == nil { 3155 continue 3156 } 3157 if err := v.Validate(); err != nil { 3158 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) 3159 } 3160 } 3161 } 3162 3163 if invalidParams.Len() > 0 { 3164 return invalidParams 3165 } 3166 return nil 3167} 3168 3169// SetDefinition sets the Definition field's value. 3170func (s *CreateStateMachineInput) SetDefinition(v string) *CreateStateMachineInput { 3171 s.Definition = &v 3172 return s 3173} 3174 3175// SetLoggingConfiguration sets the LoggingConfiguration field's value. 3176func (s *CreateStateMachineInput) SetLoggingConfiguration(v *LoggingConfiguration) *CreateStateMachineInput { 3177 s.LoggingConfiguration = v 3178 return s 3179} 3180 3181// SetName sets the Name field's value. 3182func (s *CreateStateMachineInput) SetName(v string) *CreateStateMachineInput { 3183 s.Name = &v 3184 return s 3185} 3186 3187// SetRoleArn sets the RoleArn field's value. 3188func (s *CreateStateMachineInput) SetRoleArn(v string) *CreateStateMachineInput { 3189 s.RoleArn = &v 3190 return s 3191} 3192 3193// SetTags sets the Tags field's value. 3194func (s *CreateStateMachineInput) SetTags(v []*Tag) *CreateStateMachineInput { 3195 s.Tags = v 3196 return s 3197} 3198 3199// SetTracingConfiguration sets the TracingConfiguration field's value. 3200func (s *CreateStateMachineInput) SetTracingConfiguration(v *TracingConfiguration) *CreateStateMachineInput { 3201 s.TracingConfiguration = v 3202 return s 3203} 3204 3205// SetType sets the Type field's value. 3206func (s *CreateStateMachineInput) SetType(v string) *CreateStateMachineInput { 3207 s.Type = &v 3208 return s 3209} 3210 3211type CreateStateMachineOutput struct { 3212 _ struct{} `type:"structure"` 3213 3214 // The date the state machine is created. 3215 // 3216 // CreationDate is a required field 3217 CreationDate *time.Time `locationName:"creationDate" type:"timestamp" required:"true"` 3218 3219 // The Amazon Resource Name (ARN) that identifies the created state machine. 3220 // 3221 // StateMachineArn is a required field 3222 StateMachineArn *string `locationName:"stateMachineArn" min:"1" type:"string" required:"true"` 3223} 3224 3225// String returns the string representation 3226func (s CreateStateMachineOutput) String() string { 3227 return awsutil.Prettify(s) 3228} 3229 3230// GoString returns the string representation 3231func (s CreateStateMachineOutput) GoString() string { 3232 return s.String() 3233} 3234 3235// SetCreationDate sets the CreationDate field's value. 3236func (s *CreateStateMachineOutput) SetCreationDate(v time.Time) *CreateStateMachineOutput { 3237 s.CreationDate = &v 3238 return s 3239} 3240 3241// SetStateMachineArn sets the StateMachineArn field's value. 3242func (s *CreateStateMachineOutput) SetStateMachineArn(v string) *CreateStateMachineOutput { 3243 s.StateMachineArn = &v 3244 return s 3245} 3246 3247type DeleteActivityInput struct { 3248 _ struct{} `type:"structure"` 3249 3250 // The Amazon Resource Name (ARN) of the activity to delete. 3251 // 3252 // ActivityArn is a required field 3253 ActivityArn *string `locationName:"activityArn" min:"1" type:"string" required:"true"` 3254} 3255 3256// String returns the string representation 3257func (s DeleteActivityInput) String() string { 3258 return awsutil.Prettify(s) 3259} 3260 3261// GoString returns the string representation 3262func (s DeleteActivityInput) GoString() string { 3263 return s.String() 3264} 3265 3266// Validate inspects the fields of the type to determine if they are valid. 3267func (s *DeleteActivityInput) Validate() error { 3268 invalidParams := request.ErrInvalidParams{Context: "DeleteActivityInput"} 3269 if s.ActivityArn == nil { 3270 invalidParams.Add(request.NewErrParamRequired("ActivityArn")) 3271 } 3272 if s.ActivityArn != nil && len(*s.ActivityArn) < 1 { 3273 invalidParams.Add(request.NewErrParamMinLen("ActivityArn", 1)) 3274 } 3275 3276 if invalidParams.Len() > 0 { 3277 return invalidParams 3278 } 3279 return nil 3280} 3281 3282// SetActivityArn sets the ActivityArn field's value. 3283func (s *DeleteActivityInput) SetActivityArn(v string) *DeleteActivityInput { 3284 s.ActivityArn = &v 3285 return s 3286} 3287 3288type DeleteActivityOutput struct { 3289 _ struct{} `type:"structure"` 3290} 3291 3292// String returns the string representation 3293func (s DeleteActivityOutput) String() string { 3294 return awsutil.Prettify(s) 3295} 3296 3297// GoString returns the string representation 3298func (s DeleteActivityOutput) GoString() string { 3299 return s.String() 3300} 3301 3302type DeleteStateMachineInput struct { 3303 _ struct{} `type:"structure"` 3304 3305 // The Amazon Resource Name (ARN) of the state machine to delete. 3306 // 3307 // StateMachineArn is a required field 3308 StateMachineArn *string `locationName:"stateMachineArn" min:"1" type:"string" required:"true"` 3309} 3310 3311// String returns the string representation 3312func (s DeleteStateMachineInput) String() string { 3313 return awsutil.Prettify(s) 3314} 3315 3316// GoString returns the string representation 3317func (s DeleteStateMachineInput) GoString() string { 3318 return s.String() 3319} 3320 3321// Validate inspects the fields of the type to determine if they are valid. 3322func (s *DeleteStateMachineInput) Validate() error { 3323 invalidParams := request.ErrInvalidParams{Context: "DeleteStateMachineInput"} 3324 if s.StateMachineArn == nil { 3325 invalidParams.Add(request.NewErrParamRequired("StateMachineArn")) 3326 } 3327 if s.StateMachineArn != nil && len(*s.StateMachineArn) < 1 { 3328 invalidParams.Add(request.NewErrParamMinLen("StateMachineArn", 1)) 3329 } 3330 3331 if invalidParams.Len() > 0 { 3332 return invalidParams 3333 } 3334 return nil 3335} 3336 3337// SetStateMachineArn sets the StateMachineArn field's value. 3338func (s *DeleteStateMachineInput) SetStateMachineArn(v string) *DeleteStateMachineInput { 3339 s.StateMachineArn = &v 3340 return s 3341} 3342 3343type DeleteStateMachineOutput struct { 3344 _ struct{} `type:"structure"` 3345} 3346 3347// String returns the string representation 3348func (s DeleteStateMachineOutput) String() string { 3349 return awsutil.Prettify(s) 3350} 3351 3352// GoString returns the string representation 3353func (s DeleteStateMachineOutput) GoString() string { 3354 return s.String() 3355} 3356 3357type DescribeActivityInput struct { 3358 _ struct{} `type:"structure"` 3359 3360 // The Amazon Resource Name (ARN) of the activity to describe. 3361 // 3362 // ActivityArn is a required field 3363 ActivityArn *string `locationName:"activityArn" min:"1" type:"string" required:"true"` 3364} 3365 3366// String returns the string representation 3367func (s DescribeActivityInput) String() string { 3368 return awsutil.Prettify(s) 3369} 3370 3371// GoString returns the string representation 3372func (s DescribeActivityInput) GoString() string { 3373 return s.String() 3374} 3375 3376// Validate inspects the fields of the type to determine if they are valid. 3377func (s *DescribeActivityInput) Validate() error { 3378 invalidParams := request.ErrInvalidParams{Context: "DescribeActivityInput"} 3379 if s.ActivityArn == nil { 3380 invalidParams.Add(request.NewErrParamRequired("ActivityArn")) 3381 } 3382 if s.ActivityArn != nil && len(*s.ActivityArn) < 1 { 3383 invalidParams.Add(request.NewErrParamMinLen("ActivityArn", 1)) 3384 } 3385 3386 if invalidParams.Len() > 0 { 3387 return invalidParams 3388 } 3389 return nil 3390} 3391 3392// SetActivityArn sets the ActivityArn field's value. 3393func (s *DescribeActivityInput) SetActivityArn(v string) *DescribeActivityInput { 3394 s.ActivityArn = &v 3395 return s 3396} 3397 3398type DescribeActivityOutput struct { 3399 _ struct{} `type:"structure"` 3400 3401 // The Amazon Resource Name (ARN) that identifies the activity. 3402 // 3403 // ActivityArn is a required field 3404 ActivityArn *string `locationName:"activityArn" min:"1" type:"string" required:"true"` 3405 3406 // The date the activity is created. 3407 // 3408 // CreationDate is a required field 3409 CreationDate *time.Time `locationName:"creationDate" type:"timestamp" required:"true"` 3410 3411 // The name of the activity. 3412 // 3413 // A name must not contain: 3414 // 3415 // * white space 3416 // 3417 // * brackets < > { } [ ] 3418 // 3419 // * wildcard characters ? * 3420 // 3421 // * special characters " # % \ ^ | ~ ` $ & , ; : / 3422 // 3423 // * control characters (U+0000-001F, U+007F-009F) 3424 // 3425 // To enable logging with CloudWatch Logs, the name should only contain 0-9, 3426 // A-Z, a-z, - and _. 3427 // 3428 // Name is a required field 3429 Name *string `locationName:"name" min:"1" type:"string" required:"true"` 3430} 3431 3432// String returns the string representation 3433func (s DescribeActivityOutput) String() string { 3434 return awsutil.Prettify(s) 3435} 3436 3437// GoString returns the string representation 3438func (s DescribeActivityOutput) GoString() string { 3439 return s.String() 3440} 3441 3442// SetActivityArn sets the ActivityArn field's value. 3443func (s *DescribeActivityOutput) SetActivityArn(v string) *DescribeActivityOutput { 3444 s.ActivityArn = &v 3445 return s 3446} 3447 3448// SetCreationDate sets the CreationDate field's value. 3449func (s *DescribeActivityOutput) SetCreationDate(v time.Time) *DescribeActivityOutput { 3450 s.CreationDate = &v 3451 return s 3452} 3453 3454// SetName sets the Name field's value. 3455func (s *DescribeActivityOutput) SetName(v string) *DescribeActivityOutput { 3456 s.Name = &v 3457 return s 3458} 3459 3460type DescribeExecutionInput struct { 3461 _ struct{} `type:"structure"` 3462 3463 // The Amazon Resource Name (ARN) of the execution to describe. 3464 // 3465 // ExecutionArn is a required field 3466 ExecutionArn *string `locationName:"executionArn" min:"1" type:"string" required:"true"` 3467} 3468 3469// String returns the string representation 3470func (s DescribeExecutionInput) String() string { 3471 return awsutil.Prettify(s) 3472} 3473 3474// GoString returns the string representation 3475func (s DescribeExecutionInput) GoString() string { 3476 return s.String() 3477} 3478 3479// Validate inspects the fields of the type to determine if they are valid. 3480func (s *DescribeExecutionInput) Validate() error { 3481 invalidParams := request.ErrInvalidParams{Context: "DescribeExecutionInput"} 3482 if s.ExecutionArn == nil { 3483 invalidParams.Add(request.NewErrParamRequired("ExecutionArn")) 3484 } 3485 if s.ExecutionArn != nil && len(*s.ExecutionArn) < 1 { 3486 invalidParams.Add(request.NewErrParamMinLen("ExecutionArn", 1)) 3487 } 3488 3489 if invalidParams.Len() > 0 { 3490 return invalidParams 3491 } 3492 return nil 3493} 3494 3495// SetExecutionArn sets the ExecutionArn field's value. 3496func (s *DescribeExecutionInput) SetExecutionArn(v string) *DescribeExecutionInput { 3497 s.ExecutionArn = &v 3498 return s 3499} 3500 3501type DescribeExecutionOutput struct { 3502 _ struct{} `type:"structure"` 3503 3504 // The Amazon Resource Name (ARN) that identifies the execution. 3505 // 3506 // ExecutionArn is a required field 3507 ExecutionArn *string `locationName:"executionArn" min:"1" type:"string" required:"true"` 3508 3509 // The string that contains the JSON input data of the execution. Length constraints 3510 // apply to the payload size, and are expressed as bytes in UTF-8 encoding. 3511 Input *string `locationName:"input" type:"string" sensitive:"true"` 3512 3513 // Provides details about execution input or output. 3514 InputDetails *CloudWatchEventsExecutionDataDetails `locationName:"inputDetails" type:"structure"` 3515 3516 // The name of the execution. 3517 // 3518 // A name must not contain: 3519 // 3520 // * white space 3521 // 3522 // * brackets < > { } [ ] 3523 // 3524 // * wildcard characters ? * 3525 // 3526 // * special characters " # % \ ^ | ~ ` $ & , ; : / 3527 // 3528 // * control characters (U+0000-001F, U+007F-009F) 3529 // 3530 // To enable logging with CloudWatch Logs, the name should only contain 0-9, 3531 // A-Z, a-z, - and _. 3532 Name *string `locationName:"name" min:"1" type:"string"` 3533 3534 // The JSON output data of the execution. Length constraints apply to the payload 3535 // size, and are expressed as bytes in UTF-8 encoding. 3536 // 3537 // This field is set only if the execution succeeds. If the execution fails, 3538 // this field is null. 3539 Output *string `locationName:"output" type:"string" sensitive:"true"` 3540 3541 // Provides details about execution input or output. 3542 OutputDetails *CloudWatchEventsExecutionDataDetails `locationName:"outputDetails" type:"structure"` 3543 3544 // The date the execution is started. 3545 // 3546 // StartDate is a required field 3547 StartDate *time.Time `locationName:"startDate" type:"timestamp" required:"true"` 3548 3549 // The Amazon Resource Name (ARN) of the executed stated machine. 3550 // 3551 // StateMachineArn is a required field 3552 StateMachineArn *string `locationName:"stateMachineArn" min:"1" type:"string" required:"true"` 3553 3554 // The current status of the execution. 3555 // 3556 // Status is a required field 3557 Status *string `locationName:"status" type:"string" required:"true" enum:"ExecutionStatus"` 3558 3559 // If the execution has already ended, the date the execution stopped. 3560 StopDate *time.Time `locationName:"stopDate" type:"timestamp"` 3561 3562 // The AWS X-Ray trace header that was passed to the execution. 3563 TraceHeader *string `locationName:"traceHeader" type:"string"` 3564} 3565 3566// String returns the string representation 3567func (s DescribeExecutionOutput) String() string { 3568 return awsutil.Prettify(s) 3569} 3570 3571// GoString returns the string representation 3572func (s DescribeExecutionOutput) GoString() string { 3573 return s.String() 3574} 3575 3576// SetExecutionArn sets the ExecutionArn field's value. 3577func (s *DescribeExecutionOutput) SetExecutionArn(v string) *DescribeExecutionOutput { 3578 s.ExecutionArn = &v 3579 return s 3580} 3581 3582// SetInput sets the Input field's value. 3583func (s *DescribeExecutionOutput) SetInput(v string) *DescribeExecutionOutput { 3584 s.Input = &v 3585 return s 3586} 3587 3588// SetInputDetails sets the InputDetails field's value. 3589func (s *DescribeExecutionOutput) SetInputDetails(v *CloudWatchEventsExecutionDataDetails) *DescribeExecutionOutput { 3590 s.InputDetails = v 3591 return s 3592} 3593 3594// SetName sets the Name field's value. 3595func (s *DescribeExecutionOutput) SetName(v string) *DescribeExecutionOutput { 3596 s.Name = &v 3597 return s 3598} 3599 3600// SetOutput sets the Output field's value. 3601func (s *DescribeExecutionOutput) SetOutput(v string) *DescribeExecutionOutput { 3602 s.Output = &v 3603 return s 3604} 3605 3606// SetOutputDetails sets the OutputDetails field's value. 3607func (s *DescribeExecutionOutput) SetOutputDetails(v *CloudWatchEventsExecutionDataDetails) *DescribeExecutionOutput { 3608 s.OutputDetails = v 3609 return s 3610} 3611 3612// SetStartDate sets the StartDate field's value. 3613func (s *DescribeExecutionOutput) SetStartDate(v time.Time) *DescribeExecutionOutput { 3614 s.StartDate = &v 3615 return s 3616} 3617 3618// SetStateMachineArn sets the StateMachineArn field's value. 3619func (s *DescribeExecutionOutput) SetStateMachineArn(v string) *DescribeExecutionOutput { 3620 s.StateMachineArn = &v 3621 return s 3622} 3623 3624// SetStatus sets the Status field's value. 3625func (s *DescribeExecutionOutput) SetStatus(v string) *DescribeExecutionOutput { 3626 s.Status = &v 3627 return s 3628} 3629 3630// SetStopDate sets the StopDate field's value. 3631func (s *DescribeExecutionOutput) SetStopDate(v time.Time) *DescribeExecutionOutput { 3632 s.StopDate = &v 3633 return s 3634} 3635 3636// SetTraceHeader sets the TraceHeader field's value. 3637func (s *DescribeExecutionOutput) SetTraceHeader(v string) *DescribeExecutionOutput { 3638 s.TraceHeader = &v 3639 return s 3640} 3641 3642type DescribeStateMachineForExecutionInput struct { 3643 _ struct{} `type:"structure"` 3644 3645 // The Amazon Resource Name (ARN) of the execution you want state machine information 3646 // for. 3647 // 3648 // ExecutionArn is a required field 3649 ExecutionArn *string `locationName:"executionArn" min:"1" type:"string" required:"true"` 3650} 3651 3652// String returns the string representation 3653func (s DescribeStateMachineForExecutionInput) String() string { 3654 return awsutil.Prettify(s) 3655} 3656 3657// GoString returns the string representation 3658func (s DescribeStateMachineForExecutionInput) GoString() string { 3659 return s.String() 3660} 3661 3662// Validate inspects the fields of the type to determine if they are valid. 3663func (s *DescribeStateMachineForExecutionInput) Validate() error { 3664 invalidParams := request.ErrInvalidParams{Context: "DescribeStateMachineForExecutionInput"} 3665 if s.ExecutionArn == nil { 3666 invalidParams.Add(request.NewErrParamRequired("ExecutionArn")) 3667 } 3668 if s.ExecutionArn != nil && len(*s.ExecutionArn) < 1 { 3669 invalidParams.Add(request.NewErrParamMinLen("ExecutionArn", 1)) 3670 } 3671 3672 if invalidParams.Len() > 0 { 3673 return invalidParams 3674 } 3675 return nil 3676} 3677 3678// SetExecutionArn sets the ExecutionArn field's value. 3679func (s *DescribeStateMachineForExecutionInput) SetExecutionArn(v string) *DescribeStateMachineForExecutionInput { 3680 s.ExecutionArn = &v 3681 return s 3682} 3683 3684type DescribeStateMachineForExecutionOutput struct { 3685 _ struct{} `type:"structure"` 3686 3687 // The Amazon States Language definition of the state machine. See Amazon States 3688 // Language (https://docs.aws.amazon.com/step-functions/latest/dg/concepts-amazon-states-language.html). 3689 // 3690 // Definition is a required field 3691 Definition *string `locationName:"definition" min:"1" type:"string" required:"true" sensitive:"true"` 3692 3693 // The LoggingConfiguration data type is used to set CloudWatch Logs options. 3694 LoggingConfiguration *LoggingConfiguration `locationName:"loggingConfiguration" type:"structure"` 3695 3696 // The name of the state machine associated with the execution. 3697 // 3698 // Name is a required field 3699 Name *string `locationName:"name" min:"1" type:"string" required:"true"` 3700 3701 // The Amazon Resource Name (ARN) of the IAM role of the State Machine for the 3702 // execution. 3703 // 3704 // RoleArn is a required field 3705 RoleArn *string `locationName:"roleArn" min:"1" type:"string" required:"true"` 3706 3707 // The Amazon Resource Name (ARN) of the state machine associated with the execution. 3708 // 3709 // StateMachineArn is a required field 3710 StateMachineArn *string `locationName:"stateMachineArn" min:"1" type:"string" required:"true"` 3711 3712 // Selects whether AWS X-Ray tracing is enabled. 3713 TracingConfiguration *TracingConfiguration `locationName:"tracingConfiguration" type:"structure"` 3714 3715 // The date and time the state machine associated with an execution was updated. 3716 // For a newly created state machine, this is the creation date. 3717 // 3718 // UpdateDate is a required field 3719 UpdateDate *time.Time `locationName:"updateDate" type:"timestamp" required:"true"` 3720} 3721 3722// String returns the string representation 3723func (s DescribeStateMachineForExecutionOutput) String() string { 3724 return awsutil.Prettify(s) 3725} 3726 3727// GoString returns the string representation 3728func (s DescribeStateMachineForExecutionOutput) GoString() string { 3729 return s.String() 3730} 3731 3732// SetDefinition sets the Definition field's value. 3733func (s *DescribeStateMachineForExecutionOutput) SetDefinition(v string) *DescribeStateMachineForExecutionOutput { 3734 s.Definition = &v 3735 return s 3736} 3737 3738// SetLoggingConfiguration sets the LoggingConfiguration field's value. 3739func (s *DescribeStateMachineForExecutionOutput) SetLoggingConfiguration(v *LoggingConfiguration) *DescribeStateMachineForExecutionOutput { 3740 s.LoggingConfiguration = v 3741 return s 3742} 3743 3744// SetName sets the Name field's value. 3745func (s *DescribeStateMachineForExecutionOutput) SetName(v string) *DescribeStateMachineForExecutionOutput { 3746 s.Name = &v 3747 return s 3748} 3749 3750// SetRoleArn sets the RoleArn field's value. 3751func (s *DescribeStateMachineForExecutionOutput) SetRoleArn(v string) *DescribeStateMachineForExecutionOutput { 3752 s.RoleArn = &v 3753 return s 3754} 3755 3756// SetStateMachineArn sets the StateMachineArn field's value. 3757func (s *DescribeStateMachineForExecutionOutput) SetStateMachineArn(v string) *DescribeStateMachineForExecutionOutput { 3758 s.StateMachineArn = &v 3759 return s 3760} 3761 3762// SetTracingConfiguration sets the TracingConfiguration field's value. 3763func (s *DescribeStateMachineForExecutionOutput) SetTracingConfiguration(v *TracingConfiguration) *DescribeStateMachineForExecutionOutput { 3764 s.TracingConfiguration = v 3765 return s 3766} 3767 3768// SetUpdateDate sets the UpdateDate field's value. 3769func (s *DescribeStateMachineForExecutionOutput) SetUpdateDate(v time.Time) *DescribeStateMachineForExecutionOutput { 3770 s.UpdateDate = &v 3771 return s 3772} 3773 3774type DescribeStateMachineInput struct { 3775 _ struct{} `type:"structure"` 3776 3777 // The Amazon Resource Name (ARN) of the state machine to describe. 3778 // 3779 // StateMachineArn is a required field 3780 StateMachineArn *string `locationName:"stateMachineArn" min:"1" type:"string" required:"true"` 3781} 3782 3783// String returns the string representation 3784func (s DescribeStateMachineInput) String() string { 3785 return awsutil.Prettify(s) 3786} 3787 3788// GoString returns the string representation 3789func (s DescribeStateMachineInput) GoString() string { 3790 return s.String() 3791} 3792 3793// Validate inspects the fields of the type to determine if they are valid. 3794func (s *DescribeStateMachineInput) Validate() error { 3795 invalidParams := request.ErrInvalidParams{Context: "DescribeStateMachineInput"} 3796 if s.StateMachineArn == nil { 3797 invalidParams.Add(request.NewErrParamRequired("StateMachineArn")) 3798 } 3799 if s.StateMachineArn != nil && len(*s.StateMachineArn) < 1 { 3800 invalidParams.Add(request.NewErrParamMinLen("StateMachineArn", 1)) 3801 } 3802 3803 if invalidParams.Len() > 0 { 3804 return invalidParams 3805 } 3806 return nil 3807} 3808 3809// SetStateMachineArn sets the StateMachineArn field's value. 3810func (s *DescribeStateMachineInput) SetStateMachineArn(v string) *DescribeStateMachineInput { 3811 s.StateMachineArn = &v 3812 return s 3813} 3814 3815type DescribeStateMachineOutput struct { 3816 _ struct{} `type:"structure"` 3817 3818 // The date the state machine is created. 3819 // 3820 // CreationDate is a required field 3821 CreationDate *time.Time `locationName:"creationDate" type:"timestamp" required:"true"` 3822 3823 // The Amazon States Language definition of the state machine. See Amazon States 3824 // Language (https://docs.aws.amazon.com/step-functions/latest/dg/concepts-amazon-states-language.html). 3825 // 3826 // Definition is a required field 3827 Definition *string `locationName:"definition" min:"1" type:"string" required:"true" sensitive:"true"` 3828 3829 // The LoggingConfiguration data type is used to set CloudWatch Logs options. 3830 LoggingConfiguration *LoggingConfiguration `locationName:"loggingConfiguration" type:"structure"` 3831 3832 // The name of the state machine. 3833 // 3834 // A name must not contain: 3835 // 3836 // * white space 3837 // 3838 // * brackets < > { } [ ] 3839 // 3840 // * wildcard characters ? * 3841 // 3842 // * special characters " # % \ ^ | ~ ` $ & , ; : / 3843 // 3844 // * control characters (U+0000-001F, U+007F-009F) 3845 // 3846 // To enable logging with CloudWatch Logs, the name should only contain 0-9, 3847 // A-Z, a-z, - and _. 3848 // 3849 // Name is a required field 3850 Name *string `locationName:"name" min:"1" type:"string" required:"true"` 3851 3852 // The Amazon Resource Name (ARN) of the IAM role used when creating this state 3853 // machine. (The IAM role maintains security by granting Step Functions access 3854 // to AWS resources.) 3855 // 3856 // RoleArn is a required field 3857 RoleArn *string `locationName:"roleArn" min:"1" type:"string" required:"true"` 3858 3859 // The Amazon Resource Name (ARN) that identifies the state machine. 3860 // 3861 // StateMachineArn is a required field 3862 StateMachineArn *string `locationName:"stateMachineArn" min:"1" type:"string" required:"true"` 3863 3864 // The current status of the state machine. 3865 Status *string `locationName:"status" type:"string" enum:"StateMachineStatus"` 3866 3867 // Selects whether AWS X-Ray tracing is enabled. 3868 TracingConfiguration *TracingConfiguration `locationName:"tracingConfiguration" type:"structure"` 3869 3870 // The type of the state machine (STANDARD or EXPRESS). 3871 // 3872 // Type is a required field 3873 Type *string `locationName:"type" type:"string" required:"true" enum:"StateMachineType"` 3874} 3875 3876// String returns the string representation 3877func (s DescribeStateMachineOutput) String() string { 3878 return awsutil.Prettify(s) 3879} 3880 3881// GoString returns the string representation 3882func (s DescribeStateMachineOutput) GoString() string { 3883 return s.String() 3884} 3885 3886// SetCreationDate sets the CreationDate field's value. 3887func (s *DescribeStateMachineOutput) SetCreationDate(v time.Time) *DescribeStateMachineOutput { 3888 s.CreationDate = &v 3889 return s 3890} 3891 3892// SetDefinition sets the Definition field's value. 3893func (s *DescribeStateMachineOutput) SetDefinition(v string) *DescribeStateMachineOutput { 3894 s.Definition = &v 3895 return s 3896} 3897 3898// SetLoggingConfiguration sets the LoggingConfiguration field's value. 3899func (s *DescribeStateMachineOutput) SetLoggingConfiguration(v *LoggingConfiguration) *DescribeStateMachineOutput { 3900 s.LoggingConfiguration = v 3901 return s 3902} 3903 3904// SetName sets the Name field's value. 3905func (s *DescribeStateMachineOutput) SetName(v string) *DescribeStateMachineOutput { 3906 s.Name = &v 3907 return s 3908} 3909 3910// SetRoleArn sets the RoleArn field's value. 3911func (s *DescribeStateMachineOutput) SetRoleArn(v string) *DescribeStateMachineOutput { 3912 s.RoleArn = &v 3913 return s 3914} 3915 3916// SetStateMachineArn sets the StateMachineArn field's value. 3917func (s *DescribeStateMachineOutput) SetStateMachineArn(v string) *DescribeStateMachineOutput { 3918 s.StateMachineArn = &v 3919 return s 3920} 3921 3922// SetStatus sets the Status field's value. 3923func (s *DescribeStateMachineOutput) SetStatus(v string) *DescribeStateMachineOutput { 3924 s.Status = &v 3925 return s 3926} 3927 3928// SetTracingConfiguration sets the TracingConfiguration field's value. 3929func (s *DescribeStateMachineOutput) SetTracingConfiguration(v *TracingConfiguration) *DescribeStateMachineOutput { 3930 s.TracingConfiguration = v 3931 return s 3932} 3933 3934// SetType sets the Type field's value. 3935func (s *DescribeStateMachineOutput) SetType(v string) *DescribeStateMachineOutput { 3936 s.Type = &v 3937 return s 3938} 3939 3940// Contains details about an abort of an execution. 3941type ExecutionAbortedEventDetails struct { 3942 _ struct{} `type:"structure"` 3943 3944 // A more detailed explanation of the cause of the failure. 3945 Cause *string `locationName:"cause" type:"string" sensitive:"true"` 3946 3947 // The error code of the failure. 3948 Error *string `locationName:"error" type:"string" sensitive:"true"` 3949} 3950 3951// String returns the string representation 3952func (s ExecutionAbortedEventDetails) String() string { 3953 return awsutil.Prettify(s) 3954} 3955 3956// GoString returns the string representation 3957func (s ExecutionAbortedEventDetails) GoString() string { 3958 return s.String() 3959} 3960 3961// SetCause sets the Cause field's value. 3962func (s *ExecutionAbortedEventDetails) SetCause(v string) *ExecutionAbortedEventDetails { 3963 s.Cause = &v 3964 return s 3965} 3966 3967// SetError sets the Error field's value. 3968func (s *ExecutionAbortedEventDetails) SetError(v string) *ExecutionAbortedEventDetails { 3969 s.Error = &v 3970 return s 3971} 3972 3973// The execution has the same name as another execution (but a different input). 3974// 3975// Executions with the same name and input are considered idempotent. 3976type ExecutionAlreadyExists struct { 3977 _ struct{} `type:"structure"` 3978 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 3979 3980 Message_ *string `locationName:"message" type:"string"` 3981} 3982 3983// String returns the string representation 3984func (s ExecutionAlreadyExists) String() string { 3985 return awsutil.Prettify(s) 3986} 3987 3988// GoString returns the string representation 3989func (s ExecutionAlreadyExists) GoString() string { 3990 return s.String() 3991} 3992 3993func newErrorExecutionAlreadyExists(v protocol.ResponseMetadata) error { 3994 return &ExecutionAlreadyExists{ 3995 RespMetadata: v, 3996 } 3997} 3998 3999// Code returns the exception type name. 4000func (s *ExecutionAlreadyExists) Code() string { 4001 return "ExecutionAlreadyExists" 4002} 4003 4004// Message returns the exception's message. 4005func (s *ExecutionAlreadyExists) Message() string { 4006 if s.Message_ != nil { 4007 return *s.Message_ 4008 } 4009 return "" 4010} 4011 4012// OrigErr always returns nil, satisfies awserr.Error interface. 4013func (s *ExecutionAlreadyExists) OrigErr() error { 4014 return nil 4015} 4016 4017func (s *ExecutionAlreadyExists) Error() string { 4018 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 4019} 4020 4021// Status code returns the HTTP status code for the request's response error. 4022func (s *ExecutionAlreadyExists) StatusCode() int { 4023 return s.RespMetadata.StatusCode 4024} 4025 4026// RequestID returns the service's response RequestID for request. 4027func (s *ExecutionAlreadyExists) RequestID() string { 4028 return s.RespMetadata.RequestID 4029} 4030 4031// The specified execution does not exist. 4032type ExecutionDoesNotExist struct { 4033 _ struct{} `type:"structure"` 4034 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 4035 4036 Message_ *string `locationName:"message" type:"string"` 4037} 4038 4039// String returns the string representation 4040func (s ExecutionDoesNotExist) String() string { 4041 return awsutil.Prettify(s) 4042} 4043 4044// GoString returns the string representation 4045func (s ExecutionDoesNotExist) GoString() string { 4046 return s.String() 4047} 4048 4049func newErrorExecutionDoesNotExist(v protocol.ResponseMetadata) error { 4050 return &ExecutionDoesNotExist{ 4051 RespMetadata: v, 4052 } 4053} 4054 4055// Code returns the exception type name. 4056func (s *ExecutionDoesNotExist) Code() string { 4057 return "ExecutionDoesNotExist" 4058} 4059 4060// Message returns the exception's message. 4061func (s *ExecutionDoesNotExist) Message() string { 4062 if s.Message_ != nil { 4063 return *s.Message_ 4064 } 4065 return "" 4066} 4067 4068// OrigErr always returns nil, satisfies awserr.Error interface. 4069func (s *ExecutionDoesNotExist) OrigErr() error { 4070 return nil 4071} 4072 4073func (s *ExecutionDoesNotExist) Error() string { 4074 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 4075} 4076 4077// Status code returns the HTTP status code for the request's response error. 4078func (s *ExecutionDoesNotExist) StatusCode() int { 4079 return s.RespMetadata.StatusCode 4080} 4081 4082// RequestID returns the service's response RequestID for request. 4083func (s *ExecutionDoesNotExist) RequestID() string { 4084 return s.RespMetadata.RequestID 4085} 4086 4087// Contains details about an execution failure event. 4088type ExecutionFailedEventDetails struct { 4089 _ struct{} `type:"structure"` 4090 4091 // A more detailed explanation of the cause of the failure. 4092 Cause *string `locationName:"cause" type:"string" sensitive:"true"` 4093 4094 // The error code of the failure. 4095 Error *string `locationName:"error" type:"string" sensitive:"true"` 4096} 4097 4098// String returns the string representation 4099func (s ExecutionFailedEventDetails) String() string { 4100 return awsutil.Prettify(s) 4101} 4102 4103// GoString returns the string representation 4104func (s ExecutionFailedEventDetails) GoString() string { 4105 return s.String() 4106} 4107 4108// SetCause sets the Cause field's value. 4109func (s *ExecutionFailedEventDetails) SetCause(v string) *ExecutionFailedEventDetails { 4110 s.Cause = &v 4111 return s 4112} 4113 4114// SetError sets the Error field's value. 4115func (s *ExecutionFailedEventDetails) SetError(v string) *ExecutionFailedEventDetails { 4116 s.Error = &v 4117 return s 4118} 4119 4120// The maximum number of running executions has been reached. Running executions 4121// must end or be stopped before a new execution can be started. 4122type ExecutionLimitExceeded struct { 4123 _ struct{} `type:"structure"` 4124 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 4125 4126 Message_ *string `locationName:"message" type:"string"` 4127} 4128 4129// String returns the string representation 4130func (s ExecutionLimitExceeded) String() string { 4131 return awsutil.Prettify(s) 4132} 4133 4134// GoString returns the string representation 4135func (s ExecutionLimitExceeded) GoString() string { 4136 return s.String() 4137} 4138 4139func newErrorExecutionLimitExceeded(v protocol.ResponseMetadata) error { 4140 return &ExecutionLimitExceeded{ 4141 RespMetadata: v, 4142 } 4143} 4144 4145// Code returns the exception type name. 4146func (s *ExecutionLimitExceeded) Code() string { 4147 return "ExecutionLimitExceeded" 4148} 4149 4150// Message returns the exception's message. 4151func (s *ExecutionLimitExceeded) Message() string { 4152 if s.Message_ != nil { 4153 return *s.Message_ 4154 } 4155 return "" 4156} 4157 4158// OrigErr always returns nil, satisfies awserr.Error interface. 4159func (s *ExecutionLimitExceeded) OrigErr() error { 4160 return nil 4161} 4162 4163func (s *ExecutionLimitExceeded) Error() string { 4164 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 4165} 4166 4167// Status code returns the HTTP status code for the request's response error. 4168func (s *ExecutionLimitExceeded) StatusCode() int { 4169 return s.RespMetadata.StatusCode 4170} 4171 4172// RequestID returns the service's response RequestID for request. 4173func (s *ExecutionLimitExceeded) RequestID() string { 4174 return s.RespMetadata.RequestID 4175} 4176 4177// Contains details about an execution. 4178type ExecutionListItem struct { 4179 _ struct{} `type:"structure"` 4180 4181 // The Amazon Resource Name (ARN) that identifies the execution. 4182 // 4183 // ExecutionArn is a required field 4184 ExecutionArn *string `locationName:"executionArn" min:"1" type:"string" required:"true"` 4185 4186 // The name of the execution. 4187 // 4188 // A name must not contain: 4189 // 4190 // * white space 4191 // 4192 // * brackets < > { } [ ] 4193 // 4194 // * wildcard characters ? * 4195 // 4196 // * special characters " # % \ ^ | ~ ` $ & , ; : / 4197 // 4198 // * control characters (U+0000-001F, U+007F-009F) 4199 // 4200 // To enable logging with CloudWatch Logs, the name should only contain 0-9, 4201 // A-Z, a-z, - and _. 4202 // 4203 // Name is a required field 4204 Name *string `locationName:"name" min:"1" type:"string" required:"true"` 4205 4206 // The date the execution started. 4207 // 4208 // StartDate is a required field 4209 StartDate *time.Time `locationName:"startDate" type:"timestamp" required:"true"` 4210 4211 // The Amazon Resource Name (ARN) of the executed state machine. 4212 // 4213 // StateMachineArn is a required field 4214 StateMachineArn *string `locationName:"stateMachineArn" min:"1" type:"string" required:"true"` 4215 4216 // The current status of the execution. 4217 // 4218 // Status is a required field 4219 Status *string `locationName:"status" type:"string" required:"true" enum:"ExecutionStatus"` 4220 4221 // If the execution already ended, the date the execution stopped. 4222 StopDate *time.Time `locationName:"stopDate" type:"timestamp"` 4223} 4224 4225// String returns the string representation 4226func (s ExecutionListItem) String() string { 4227 return awsutil.Prettify(s) 4228} 4229 4230// GoString returns the string representation 4231func (s ExecutionListItem) GoString() string { 4232 return s.String() 4233} 4234 4235// SetExecutionArn sets the ExecutionArn field's value. 4236func (s *ExecutionListItem) SetExecutionArn(v string) *ExecutionListItem { 4237 s.ExecutionArn = &v 4238 return s 4239} 4240 4241// SetName sets the Name field's value. 4242func (s *ExecutionListItem) SetName(v string) *ExecutionListItem { 4243 s.Name = &v 4244 return s 4245} 4246 4247// SetStartDate sets the StartDate field's value. 4248func (s *ExecutionListItem) SetStartDate(v time.Time) *ExecutionListItem { 4249 s.StartDate = &v 4250 return s 4251} 4252 4253// SetStateMachineArn sets the StateMachineArn field's value. 4254func (s *ExecutionListItem) SetStateMachineArn(v string) *ExecutionListItem { 4255 s.StateMachineArn = &v 4256 return s 4257} 4258 4259// SetStatus sets the Status field's value. 4260func (s *ExecutionListItem) SetStatus(v string) *ExecutionListItem { 4261 s.Status = &v 4262 return s 4263} 4264 4265// SetStopDate sets the StopDate field's value. 4266func (s *ExecutionListItem) SetStopDate(v time.Time) *ExecutionListItem { 4267 s.StopDate = &v 4268 return s 4269} 4270 4271// Contains details about the start of the execution. 4272type ExecutionStartedEventDetails struct { 4273 _ struct{} `type:"structure"` 4274 4275 // The JSON data input to the execution. Length constraints apply to the payload 4276 // size, and are expressed as bytes in UTF-8 encoding. 4277 Input *string `locationName:"input" type:"string" sensitive:"true"` 4278 4279 // Contains details about the input for an execution history event. 4280 InputDetails *HistoryEventExecutionDataDetails `locationName:"inputDetails" type:"structure"` 4281 4282 // The Amazon Resource Name (ARN) of the IAM role used for executing AWS Lambda 4283 // tasks. 4284 RoleArn *string `locationName:"roleArn" min:"1" type:"string"` 4285} 4286 4287// String returns the string representation 4288func (s ExecutionStartedEventDetails) String() string { 4289 return awsutil.Prettify(s) 4290} 4291 4292// GoString returns the string representation 4293func (s ExecutionStartedEventDetails) GoString() string { 4294 return s.String() 4295} 4296 4297// SetInput sets the Input field's value. 4298func (s *ExecutionStartedEventDetails) SetInput(v string) *ExecutionStartedEventDetails { 4299 s.Input = &v 4300 return s 4301} 4302 4303// SetInputDetails sets the InputDetails field's value. 4304func (s *ExecutionStartedEventDetails) SetInputDetails(v *HistoryEventExecutionDataDetails) *ExecutionStartedEventDetails { 4305 s.InputDetails = v 4306 return s 4307} 4308 4309// SetRoleArn sets the RoleArn field's value. 4310func (s *ExecutionStartedEventDetails) SetRoleArn(v string) *ExecutionStartedEventDetails { 4311 s.RoleArn = &v 4312 return s 4313} 4314 4315// Contains details about the successful termination of the execution. 4316type ExecutionSucceededEventDetails struct { 4317 _ struct{} `type:"structure"` 4318 4319 // The JSON data output by the execution. Length constraints apply to the payload 4320 // size, and are expressed as bytes in UTF-8 encoding. 4321 Output *string `locationName:"output" type:"string" sensitive:"true"` 4322 4323 // Contains details about the output of an execution history event. 4324 OutputDetails *HistoryEventExecutionDataDetails `locationName:"outputDetails" type:"structure"` 4325} 4326 4327// String returns the string representation 4328func (s ExecutionSucceededEventDetails) String() string { 4329 return awsutil.Prettify(s) 4330} 4331 4332// GoString returns the string representation 4333func (s ExecutionSucceededEventDetails) GoString() string { 4334 return s.String() 4335} 4336 4337// SetOutput sets the Output field's value. 4338func (s *ExecutionSucceededEventDetails) SetOutput(v string) *ExecutionSucceededEventDetails { 4339 s.Output = &v 4340 return s 4341} 4342 4343// SetOutputDetails sets the OutputDetails field's value. 4344func (s *ExecutionSucceededEventDetails) SetOutputDetails(v *HistoryEventExecutionDataDetails) *ExecutionSucceededEventDetails { 4345 s.OutputDetails = v 4346 return s 4347} 4348 4349// Contains details about the execution timeout that occurred during the execution. 4350type ExecutionTimedOutEventDetails struct { 4351 _ struct{} `type:"structure"` 4352 4353 // A more detailed explanation of the cause of the timeout. 4354 Cause *string `locationName:"cause" type:"string" sensitive:"true"` 4355 4356 // The error code of the failure. 4357 Error *string `locationName:"error" type:"string" sensitive:"true"` 4358} 4359 4360// String returns the string representation 4361func (s ExecutionTimedOutEventDetails) String() string { 4362 return awsutil.Prettify(s) 4363} 4364 4365// GoString returns the string representation 4366func (s ExecutionTimedOutEventDetails) GoString() string { 4367 return s.String() 4368} 4369 4370// SetCause sets the Cause field's value. 4371func (s *ExecutionTimedOutEventDetails) SetCause(v string) *ExecutionTimedOutEventDetails { 4372 s.Cause = &v 4373 return s 4374} 4375 4376// SetError sets the Error field's value. 4377func (s *ExecutionTimedOutEventDetails) SetError(v string) *ExecutionTimedOutEventDetails { 4378 s.Error = &v 4379 return s 4380} 4381 4382type GetActivityTaskInput struct { 4383 _ struct{} `type:"structure"` 4384 4385 // The Amazon Resource Name (ARN) of the activity to retrieve tasks from (assigned 4386 // when you create the task using CreateActivity.) 4387 // 4388 // ActivityArn is a required field 4389 ActivityArn *string `locationName:"activityArn" min:"1" type:"string" required:"true"` 4390 4391 // You can provide an arbitrary name in order to identify the worker that the 4392 // task is assigned to. This name is used when it is logged in the execution 4393 // history. 4394 WorkerName *string `locationName:"workerName" min:"1" type:"string"` 4395} 4396 4397// String returns the string representation 4398func (s GetActivityTaskInput) String() string { 4399 return awsutil.Prettify(s) 4400} 4401 4402// GoString returns the string representation 4403func (s GetActivityTaskInput) GoString() string { 4404 return s.String() 4405} 4406 4407// Validate inspects the fields of the type to determine if they are valid. 4408func (s *GetActivityTaskInput) Validate() error { 4409 invalidParams := request.ErrInvalidParams{Context: "GetActivityTaskInput"} 4410 if s.ActivityArn == nil { 4411 invalidParams.Add(request.NewErrParamRequired("ActivityArn")) 4412 } 4413 if s.ActivityArn != nil && len(*s.ActivityArn) < 1 { 4414 invalidParams.Add(request.NewErrParamMinLen("ActivityArn", 1)) 4415 } 4416 if s.WorkerName != nil && len(*s.WorkerName) < 1 { 4417 invalidParams.Add(request.NewErrParamMinLen("WorkerName", 1)) 4418 } 4419 4420 if invalidParams.Len() > 0 { 4421 return invalidParams 4422 } 4423 return nil 4424} 4425 4426// SetActivityArn sets the ActivityArn field's value. 4427func (s *GetActivityTaskInput) SetActivityArn(v string) *GetActivityTaskInput { 4428 s.ActivityArn = &v 4429 return s 4430} 4431 4432// SetWorkerName sets the WorkerName field's value. 4433func (s *GetActivityTaskInput) SetWorkerName(v string) *GetActivityTaskInput { 4434 s.WorkerName = &v 4435 return s 4436} 4437 4438type GetActivityTaskOutput struct { 4439 _ struct{} `type:"structure"` 4440 4441 // The string that contains the JSON input data for the task. Length constraints 4442 // apply to the payload size, and are expressed as bytes in UTF-8 encoding. 4443 Input *string `locationName:"input" type:"string" sensitive:"true"` 4444 4445 // A token that identifies the scheduled task. This token must be copied and 4446 // included in subsequent calls to SendTaskHeartbeat, SendTaskSuccess or SendTaskFailure 4447 // in order to report the progress or completion of the task. 4448 TaskToken *string `locationName:"taskToken" min:"1" type:"string"` 4449} 4450 4451// String returns the string representation 4452func (s GetActivityTaskOutput) String() string { 4453 return awsutil.Prettify(s) 4454} 4455 4456// GoString returns the string representation 4457func (s GetActivityTaskOutput) GoString() string { 4458 return s.String() 4459} 4460 4461// SetInput sets the Input field's value. 4462func (s *GetActivityTaskOutput) SetInput(v string) *GetActivityTaskOutput { 4463 s.Input = &v 4464 return s 4465} 4466 4467// SetTaskToken sets the TaskToken field's value. 4468func (s *GetActivityTaskOutput) SetTaskToken(v string) *GetActivityTaskOutput { 4469 s.TaskToken = &v 4470 return s 4471} 4472 4473type GetExecutionHistoryInput struct { 4474 _ struct{} `type:"structure"` 4475 4476 // The Amazon Resource Name (ARN) of the execution. 4477 // 4478 // ExecutionArn is a required field 4479 ExecutionArn *string `locationName:"executionArn" min:"1" type:"string" required:"true"` 4480 4481 // You can select whether execution data (input or output of a history event) 4482 // is returned. The default is true. 4483 IncludeExecutionData *bool `locationName:"includeExecutionData" type:"boolean"` 4484 4485 // The maximum number of results that are returned per call. You can use nextToken 4486 // to obtain further pages of results. The default is 100 and the maximum allowed 4487 // page size is 1000. A value of 0 uses the default. 4488 // 4489 // This is only an upper limit. The actual number of results returned per call 4490 // might be fewer than the specified maximum. 4491 MaxResults *int64 `locationName:"maxResults" type:"integer"` 4492 4493 // If nextToken is returned, there are more results available. The value of 4494 // nextToken is a unique pagination token for each page. Make the call again 4495 // using the returned token to retrieve the next page. Keep all other arguments 4496 // unchanged. Each pagination token expires after 24 hours. Using an expired 4497 // pagination token will return an HTTP 400 InvalidToken error. 4498 NextToken *string `locationName:"nextToken" min:"1" type:"string"` 4499 4500 // Lists events in descending order of their timeStamp. 4501 ReverseOrder *bool `locationName:"reverseOrder" type:"boolean"` 4502} 4503 4504// String returns the string representation 4505func (s GetExecutionHistoryInput) String() string { 4506 return awsutil.Prettify(s) 4507} 4508 4509// GoString returns the string representation 4510func (s GetExecutionHistoryInput) GoString() string { 4511 return s.String() 4512} 4513 4514// Validate inspects the fields of the type to determine if they are valid. 4515func (s *GetExecutionHistoryInput) Validate() error { 4516 invalidParams := request.ErrInvalidParams{Context: "GetExecutionHistoryInput"} 4517 if s.ExecutionArn == nil { 4518 invalidParams.Add(request.NewErrParamRequired("ExecutionArn")) 4519 } 4520 if s.ExecutionArn != nil && len(*s.ExecutionArn) < 1 { 4521 invalidParams.Add(request.NewErrParamMinLen("ExecutionArn", 1)) 4522 } 4523 if s.NextToken != nil && len(*s.NextToken) < 1 { 4524 invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) 4525 } 4526 4527 if invalidParams.Len() > 0 { 4528 return invalidParams 4529 } 4530 return nil 4531} 4532 4533// SetExecutionArn sets the ExecutionArn field's value. 4534func (s *GetExecutionHistoryInput) SetExecutionArn(v string) *GetExecutionHistoryInput { 4535 s.ExecutionArn = &v 4536 return s 4537} 4538 4539// SetIncludeExecutionData sets the IncludeExecutionData field's value. 4540func (s *GetExecutionHistoryInput) SetIncludeExecutionData(v bool) *GetExecutionHistoryInput { 4541 s.IncludeExecutionData = &v 4542 return s 4543} 4544 4545// SetMaxResults sets the MaxResults field's value. 4546func (s *GetExecutionHistoryInput) SetMaxResults(v int64) *GetExecutionHistoryInput { 4547 s.MaxResults = &v 4548 return s 4549} 4550 4551// SetNextToken sets the NextToken field's value. 4552func (s *GetExecutionHistoryInput) SetNextToken(v string) *GetExecutionHistoryInput { 4553 s.NextToken = &v 4554 return s 4555} 4556 4557// SetReverseOrder sets the ReverseOrder field's value. 4558func (s *GetExecutionHistoryInput) SetReverseOrder(v bool) *GetExecutionHistoryInput { 4559 s.ReverseOrder = &v 4560 return s 4561} 4562 4563type GetExecutionHistoryOutput struct { 4564 _ struct{} `type:"structure"` 4565 4566 // The list of events that occurred in the execution. 4567 // 4568 // Events is a required field 4569 Events []*HistoryEvent `locationName:"events" type:"list" required:"true"` 4570 4571 // If nextToken is returned, there are more results available. The value of 4572 // nextToken is a unique pagination token for each page. Make the call again 4573 // using the returned token to retrieve the next page. Keep all other arguments 4574 // unchanged. Each pagination token expires after 24 hours. Using an expired 4575 // pagination token will return an HTTP 400 InvalidToken error. 4576 NextToken *string `locationName:"nextToken" min:"1" type:"string"` 4577} 4578 4579// String returns the string representation 4580func (s GetExecutionHistoryOutput) String() string { 4581 return awsutil.Prettify(s) 4582} 4583 4584// GoString returns the string representation 4585func (s GetExecutionHistoryOutput) GoString() string { 4586 return s.String() 4587} 4588 4589// SetEvents sets the Events field's value. 4590func (s *GetExecutionHistoryOutput) SetEvents(v []*HistoryEvent) *GetExecutionHistoryOutput { 4591 s.Events = v 4592 return s 4593} 4594 4595// SetNextToken sets the NextToken field's value. 4596func (s *GetExecutionHistoryOutput) SetNextToken(v string) *GetExecutionHistoryOutput { 4597 s.NextToken = &v 4598 return s 4599} 4600 4601// Contains details about the events of an execution. 4602type HistoryEvent struct { 4603 _ struct{} `type:"structure"` 4604 4605 // Contains details about an activity that failed during an execution. 4606 ActivityFailedEventDetails *ActivityFailedEventDetails `locationName:"activityFailedEventDetails" type:"structure"` 4607 4608 // Contains details about an activity schedule event that failed during an execution. 4609 ActivityScheduleFailedEventDetails *ActivityScheduleFailedEventDetails `locationName:"activityScheduleFailedEventDetails" type:"structure"` 4610 4611 // Contains details about an activity scheduled during an execution. 4612 ActivityScheduledEventDetails *ActivityScheduledEventDetails `locationName:"activityScheduledEventDetails" type:"structure"` 4613 4614 // Contains details about the start of an activity during an execution. 4615 ActivityStartedEventDetails *ActivityStartedEventDetails `locationName:"activityStartedEventDetails" type:"structure"` 4616 4617 // Contains details about an activity that successfully terminated during an 4618 // execution. 4619 ActivitySucceededEventDetails *ActivitySucceededEventDetails `locationName:"activitySucceededEventDetails" type:"structure"` 4620 4621 // Contains details about an activity timeout that occurred during an execution. 4622 ActivityTimedOutEventDetails *ActivityTimedOutEventDetails `locationName:"activityTimedOutEventDetails" type:"structure"` 4623 4624 // Contains details about an abort of an execution. 4625 ExecutionAbortedEventDetails *ExecutionAbortedEventDetails `locationName:"executionAbortedEventDetails" type:"structure"` 4626 4627 // Contains details about an execution failure event. 4628 ExecutionFailedEventDetails *ExecutionFailedEventDetails `locationName:"executionFailedEventDetails" type:"structure"` 4629 4630 // Contains details about the start of the execution. 4631 ExecutionStartedEventDetails *ExecutionStartedEventDetails `locationName:"executionStartedEventDetails" type:"structure"` 4632 4633 // Contains details about the successful termination of the execution. 4634 ExecutionSucceededEventDetails *ExecutionSucceededEventDetails `locationName:"executionSucceededEventDetails" type:"structure"` 4635 4636 // Contains details about the execution timeout that occurred during the execution. 4637 ExecutionTimedOutEventDetails *ExecutionTimedOutEventDetails `locationName:"executionTimedOutEventDetails" type:"structure"` 4638 4639 // The id of the event. Events are numbered sequentially, starting at one. 4640 // 4641 // Id is a required field 4642 Id *int64 `locationName:"id" type:"long" required:"true"` 4643 4644 // Contains details about a lambda function that failed during an execution. 4645 LambdaFunctionFailedEventDetails *LambdaFunctionFailedEventDetails `locationName:"lambdaFunctionFailedEventDetails" type:"structure"` 4646 4647 // Contains details about a failed lambda function schedule event that occurred 4648 // during an execution. 4649 LambdaFunctionScheduleFailedEventDetails *LambdaFunctionScheduleFailedEventDetails `locationName:"lambdaFunctionScheduleFailedEventDetails" type:"structure"` 4650 4651 // Contains details about a lambda function scheduled during an execution. 4652 LambdaFunctionScheduledEventDetails *LambdaFunctionScheduledEventDetails `locationName:"lambdaFunctionScheduledEventDetails" type:"structure"` 4653 4654 // Contains details about a lambda function that failed to start during an execution. 4655 LambdaFunctionStartFailedEventDetails *LambdaFunctionStartFailedEventDetails `locationName:"lambdaFunctionStartFailedEventDetails" type:"structure"` 4656 4657 // Contains details about a lambda function that terminated successfully during 4658 // an execution. 4659 LambdaFunctionSucceededEventDetails *LambdaFunctionSucceededEventDetails `locationName:"lambdaFunctionSucceededEventDetails" type:"structure"` 4660 4661 // Contains details about a lambda function timeout that occurred during an 4662 // execution. 4663 LambdaFunctionTimedOutEventDetails *LambdaFunctionTimedOutEventDetails `locationName:"lambdaFunctionTimedOutEventDetails" type:"structure"` 4664 4665 // Contains details about an iteration of a Map state that was aborted. 4666 MapIterationAbortedEventDetails *MapIterationEventDetails `locationName:"mapIterationAbortedEventDetails" type:"structure"` 4667 4668 // Contains details about an iteration of a Map state that failed. 4669 MapIterationFailedEventDetails *MapIterationEventDetails `locationName:"mapIterationFailedEventDetails" type:"structure"` 4670 4671 // Contains details about an iteration of a Map state that was started. 4672 MapIterationStartedEventDetails *MapIterationEventDetails `locationName:"mapIterationStartedEventDetails" type:"structure"` 4673 4674 // Contains details about an iteration of a Map state that succeeded. 4675 MapIterationSucceededEventDetails *MapIterationEventDetails `locationName:"mapIterationSucceededEventDetails" type:"structure"` 4676 4677 // Contains details about Map state that was started. 4678 MapStateStartedEventDetails *MapStateStartedEventDetails `locationName:"mapStateStartedEventDetails" type:"structure"` 4679 4680 // The id of the previous event. 4681 PreviousEventId *int64 `locationName:"previousEventId" type:"long"` 4682 4683 // Contains details about a state entered during an execution. 4684 StateEnteredEventDetails *StateEnteredEventDetails `locationName:"stateEnteredEventDetails" type:"structure"` 4685 4686 // Contains details about an exit from a state during an execution. 4687 StateExitedEventDetails *StateExitedEventDetails `locationName:"stateExitedEventDetails" type:"structure"` 4688 4689 // Contains details about the failure of a task. 4690 TaskFailedEventDetails *TaskFailedEventDetails `locationName:"taskFailedEventDetails" type:"structure"` 4691 4692 // Contains details about a task that was scheduled. 4693 TaskScheduledEventDetails *TaskScheduledEventDetails `locationName:"taskScheduledEventDetails" type:"structure"` 4694 4695 // Contains details about a task that failed to start. 4696 TaskStartFailedEventDetails *TaskStartFailedEventDetails `locationName:"taskStartFailedEventDetails" type:"structure"` 4697 4698 // Contains details about a task that was started. 4699 TaskStartedEventDetails *TaskStartedEventDetails `locationName:"taskStartedEventDetails" type:"structure"` 4700 4701 // Contains details about a task that where the submit failed. 4702 TaskSubmitFailedEventDetails *TaskSubmitFailedEventDetails `locationName:"taskSubmitFailedEventDetails" type:"structure"` 4703 4704 // Contains details about a submitted task. 4705 TaskSubmittedEventDetails *TaskSubmittedEventDetails `locationName:"taskSubmittedEventDetails" type:"structure"` 4706 4707 // Contains details about a task that succeeded. 4708 TaskSucceededEventDetails *TaskSucceededEventDetails `locationName:"taskSucceededEventDetails" type:"structure"` 4709 4710 // Contains details about a task that timed out. 4711 TaskTimedOutEventDetails *TaskTimedOutEventDetails `locationName:"taskTimedOutEventDetails" type:"structure"` 4712 4713 // The date and time the event occurred. 4714 // 4715 // Timestamp is a required field 4716 Timestamp *time.Time `locationName:"timestamp" type:"timestamp" required:"true"` 4717 4718 // The type of the event. 4719 // 4720 // Type is a required field 4721 Type *string `locationName:"type" type:"string" required:"true" enum:"HistoryEventType"` 4722} 4723 4724// String returns the string representation 4725func (s HistoryEvent) String() string { 4726 return awsutil.Prettify(s) 4727} 4728 4729// GoString returns the string representation 4730func (s HistoryEvent) GoString() string { 4731 return s.String() 4732} 4733 4734// SetActivityFailedEventDetails sets the ActivityFailedEventDetails field's value. 4735func (s *HistoryEvent) SetActivityFailedEventDetails(v *ActivityFailedEventDetails) *HistoryEvent { 4736 s.ActivityFailedEventDetails = v 4737 return s 4738} 4739 4740// SetActivityScheduleFailedEventDetails sets the ActivityScheduleFailedEventDetails field's value. 4741func (s *HistoryEvent) SetActivityScheduleFailedEventDetails(v *ActivityScheduleFailedEventDetails) *HistoryEvent { 4742 s.ActivityScheduleFailedEventDetails = v 4743 return s 4744} 4745 4746// SetActivityScheduledEventDetails sets the ActivityScheduledEventDetails field's value. 4747func (s *HistoryEvent) SetActivityScheduledEventDetails(v *ActivityScheduledEventDetails) *HistoryEvent { 4748 s.ActivityScheduledEventDetails = v 4749 return s 4750} 4751 4752// SetActivityStartedEventDetails sets the ActivityStartedEventDetails field's value. 4753func (s *HistoryEvent) SetActivityStartedEventDetails(v *ActivityStartedEventDetails) *HistoryEvent { 4754 s.ActivityStartedEventDetails = v 4755 return s 4756} 4757 4758// SetActivitySucceededEventDetails sets the ActivitySucceededEventDetails field's value. 4759func (s *HistoryEvent) SetActivitySucceededEventDetails(v *ActivitySucceededEventDetails) *HistoryEvent { 4760 s.ActivitySucceededEventDetails = v 4761 return s 4762} 4763 4764// SetActivityTimedOutEventDetails sets the ActivityTimedOutEventDetails field's value. 4765func (s *HistoryEvent) SetActivityTimedOutEventDetails(v *ActivityTimedOutEventDetails) *HistoryEvent { 4766 s.ActivityTimedOutEventDetails = v 4767 return s 4768} 4769 4770// SetExecutionAbortedEventDetails sets the ExecutionAbortedEventDetails field's value. 4771func (s *HistoryEvent) SetExecutionAbortedEventDetails(v *ExecutionAbortedEventDetails) *HistoryEvent { 4772 s.ExecutionAbortedEventDetails = v 4773 return s 4774} 4775 4776// SetExecutionFailedEventDetails sets the ExecutionFailedEventDetails field's value. 4777func (s *HistoryEvent) SetExecutionFailedEventDetails(v *ExecutionFailedEventDetails) *HistoryEvent { 4778 s.ExecutionFailedEventDetails = v 4779 return s 4780} 4781 4782// SetExecutionStartedEventDetails sets the ExecutionStartedEventDetails field's value. 4783func (s *HistoryEvent) SetExecutionStartedEventDetails(v *ExecutionStartedEventDetails) *HistoryEvent { 4784 s.ExecutionStartedEventDetails = v 4785 return s 4786} 4787 4788// SetExecutionSucceededEventDetails sets the ExecutionSucceededEventDetails field's value. 4789func (s *HistoryEvent) SetExecutionSucceededEventDetails(v *ExecutionSucceededEventDetails) *HistoryEvent { 4790 s.ExecutionSucceededEventDetails = v 4791 return s 4792} 4793 4794// SetExecutionTimedOutEventDetails sets the ExecutionTimedOutEventDetails field's value. 4795func (s *HistoryEvent) SetExecutionTimedOutEventDetails(v *ExecutionTimedOutEventDetails) *HistoryEvent { 4796 s.ExecutionTimedOutEventDetails = v 4797 return s 4798} 4799 4800// SetId sets the Id field's value. 4801func (s *HistoryEvent) SetId(v int64) *HistoryEvent { 4802 s.Id = &v 4803 return s 4804} 4805 4806// SetLambdaFunctionFailedEventDetails sets the LambdaFunctionFailedEventDetails field's value. 4807func (s *HistoryEvent) SetLambdaFunctionFailedEventDetails(v *LambdaFunctionFailedEventDetails) *HistoryEvent { 4808 s.LambdaFunctionFailedEventDetails = v 4809 return s 4810} 4811 4812// SetLambdaFunctionScheduleFailedEventDetails sets the LambdaFunctionScheduleFailedEventDetails field's value. 4813func (s *HistoryEvent) SetLambdaFunctionScheduleFailedEventDetails(v *LambdaFunctionScheduleFailedEventDetails) *HistoryEvent { 4814 s.LambdaFunctionScheduleFailedEventDetails = v 4815 return s 4816} 4817 4818// SetLambdaFunctionScheduledEventDetails sets the LambdaFunctionScheduledEventDetails field's value. 4819func (s *HistoryEvent) SetLambdaFunctionScheduledEventDetails(v *LambdaFunctionScheduledEventDetails) *HistoryEvent { 4820 s.LambdaFunctionScheduledEventDetails = v 4821 return s 4822} 4823 4824// SetLambdaFunctionStartFailedEventDetails sets the LambdaFunctionStartFailedEventDetails field's value. 4825func (s *HistoryEvent) SetLambdaFunctionStartFailedEventDetails(v *LambdaFunctionStartFailedEventDetails) *HistoryEvent { 4826 s.LambdaFunctionStartFailedEventDetails = v 4827 return s 4828} 4829 4830// SetLambdaFunctionSucceededEventDetails sets the LambdaFunctionSucceededEventDetails field's value. 4831func (s *HistoryEvent) SetLambdaFunctionSucceededEventDetails(v *LambdaFunctionSucceededEventDetails) *HistoryEvent { 4832 s.LambdaFunctionSucceededEventDetails = v 4833 return s 4834} 4835 4836// SetLambdaFunctionTimedOutEventDetails sets the LambdaFunctionTimedOutEventDetails field's value. 4837func (s *HistoryEvent) SetLambdaFunctionTimedOutEventDetails(v *LambdaFunctionTimedOutEventDetails) *HistoryEvent { 4838 s.LambdaFunctionTimedOutEventDetails = v 4839 return s 4840} 4841 4842// SetMapIterationAbortedEventDetails sets the MapIterationAbortedEventDetails field's value. 4843func (s *HistoryEvent) SetMapIterationAbortedEventDetails(v *MapIterationEventDetails) *HistoryEvent { 4844 s.MapIterationAbortedEventDetails = v 4845 return s 4846} 4847 4848// SetMapIterationFailedEventDetails sets the MapIterationFailedEventDetails field's value. 4849func (s *HistoryEvent) SetMapIterationFailedEventDetails(v *MapIterationEventDetails) *HistoryEvent { 4850 s.MapIterationFailedEventDetails = v 4851 return s 4852} 4853 4854// SetMapIterationStartedEventDetails sets the MapIterationStartedEventDetails field's value. 4855func (s *HistoryEvent) SetMapIterationStartedEventDetails(v *MapIterationEventDetails) *HistoryEvent { 4856 s.MapIterationStartedEventDetails = v 4857 return s 4858} 4859 4860// SetMapIterationSucceededEventDetails sets the MapIterationSucceededEventDetails field's value. 4861func (s *HistoryEvent) SetMapIterationSucceededEventDetails(v *MapIterationEventDetails) *HistoryEvent { 4862 s.MapIterationSucceededEventDetails = v 4863 return s 4864} 4865 4866// SetMapStateStartedEventDetails sets the MapStateStartedEventDetails field's value. 4867func (s *HistoryEvent) SetMapStateStartedEventDetails(v *MapStateStartedEventDetails) *HistoryEvent { 4868 s.MapStateStartedEventDetails = v 4869 return s 4870} 4871 4872// SetPreviousEventId sets the PreviousEventId field's value. 4873func (s *HistoryEvent) SetPreviousEventId(v int64) *HistoryEvent { 4874 s.PreviousEventId = &v 4875 return s 4876} 4877 4878// SetStateEnteredEventDetails sets the StateEnteredEventDetails field's value. 4879func (s *HistoryEvent) SetStateEnteredEventDetails(v *StateEnteredEventDetails) *HistoryEvent { 4880 s.StateEnteredEventDetails = v 4881 return s 4882} 4883 4884// SetStateExitedEventDetails sets the StateExitedEventDetails field's value. 4885func (s *HistoryEvent) SetStateExitedEventDetails(v *StateExitedEventDetails) *HistoryEvent { 4886 s.StateExitedEventDetails = v 4887 return s 4888} 4889 4890// SetTaskFailedEventDetails sets the TaskFailedEventDetails field's value. 4891func (s *HistoryEvent) SetTaskFailedEventDetails(v *TaskFailedEventDetails) *HistoryEvent { 4892 s.TaskFailedEventDetails = v 4893 return s 4894} 4895 4896// SetTaskScheduledEventDetails sets the TaskScheduledEventDetails field's value. 4897func (s *HistoryEvent) SetTaskScheduledEventDetails(v *TaskScheduledEventDetails) *HistoryEvent { 4898 s.TaskScheduledEventDetails = v 4899 return s 4900} 4901 4902// SetTaskStartFailedEventDetails sets the TaskStartFailedEventDetails field's value. 4903func (s *HistoryEvent) SetTaskStartFailedEventDetails(v *TaskStartFailedEventDetails) *HistoryEvent { 4904 s.TaskStartFailedEventDetails = v 4905 return s 4906} 4907 4908// SetTaskStartedEventDetails sets the TaskStartedEventDetails field's value. 4909func (s *HistoryEvent) SetTaskStartedEventDetails(v *TaskStartedEventDetails) *HistoryEvent { 4910 s.TaskStartedEventDetails = v 4911 return s 4912} 4913 4914// SetTaskSubmitFailedEventDetails sets the TaskSubmitFailedEventDetails field's value. 4915func (s *HistoryEvent) SetTaskSubmitFailedEventDetails(v *TaskSubmitFailedEventDetails) *HistoryEvent { 4916 s.TaskSubmitFailedEventDetails = v 4917 return s 4918} 4919 4920// SetTaskSubmittedEventDetails sets the TaskSubmittedEventDetails field's value. 4921func (s *HistoryEvent) SetTaskSubmittedEventDetails(v *TaskSubmittedEventDetails) *HistoryEvent { 4922 s.TaskSubmittedEventDetails = v 4923 return s 4924} 4925 4926// SetTaskSucceededEventDetails sets the TaskSucceededEventDetails field's value. 4927func (s *HistoryEvent) SetTaskSucceededEventDetails(v *TaskSucceededEventDetails) *HistoryEvent { 4928 s.TaskSucceededEventDetails = v 4929 return s 4930} 4931 4932// SetTaskTimedOutEventDetails sets the TaskTimedOutEventDetails field's value. 4933func (s *HistoryEvent) SetTaskTimedOutEventDetails(v *TaskTimedOutEventDetails) *HistoryEvent { 4934 s.TaskTimedOutEventDetails = v 4935 return s 4936} 4937 4938// SetTimestamp sets the Timestamp field's value. 4939func (s *HistoryEvent) SetTimestamp(v time.Time) *HistoryEvent { 4940 s.Timestamp = &v 4941 return s 4942} 4943 4944// SetType sets the Type field's value. 4945func (s *HistoryEvent) SetType(v string) *HistoryEvent { 4946 s.Type = &v 4947 return s 4948} 4949 4950// Provides details about input or output in an execution history event. 4951type HistoryEventExecutionDataDetails struct { 4952 _ struct{} `type:"structure"` 4953 4954 // Indicates whether input or output was truncated in the response. Always false 4955 // for API calls. 4956 Truncated *bool `locationName:"truncated" type:"boolean"` 4957} 4958 4959// String returns the string representation 4960func (s HistoryEventExecutionDataDetails) String() string { 4961 return awsutil.Prettify(s) 4962} 4963 4964// GoString returns the string representation 4965func (s HistoryEventExecutionDataDetails) GoString() string { 4966 return s.String() 4967} 4968 4969// SetTruncated sets the Truncated field's value. 4970func (s *HistoryEventExecutionDataDetails) SetTruncated(v bool) *HistoryEventExecutionDataDetails { 4971 s.Truncated = &v 4972 return s 4973} 4974 4975// The provided Amazon Resource Name (ARN) is invalid. 4976type InvalidArn struct { 4977 _ struct{} `type:"structure"` 4978 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 4979 4980 Message_ *string `locationName:"message" type:"string"` 4981} 4982 4983// String returns the string representation 4984func (s InvalidArn) String() string { 4985 return awsutil.Prettify(s) 4986} 4987 4988// GoString returns the string representation 4989func (s InvalidArn) GoString() string { 4990 return s.String() 4991} 4992 4993func newErrorInvalidArn(v protocol.ResponseMetadata) error { 4994 return &InvalidArn{ 4995 RespMetadata: v, 4996 } 4997} 4998 4999// Code returns the exception type name. 5000func (s *InvalidArn) Code() string { 5001 return "InvalidArn" 5002} 5003 5004// Message returns the exception's message. 5005func (s *InvalidArn) Message() string { 5006 if s.Message_ != nil { 5007 return *s.Message_ 5008 } 5009 return "" 5010} 5011 5012// OrigErr always returns nil, satisfies awserr.Error interface. 5013func (s *InvalidArn) OrigErr() error { 5014 return nil 5015} 5016 5017func (s *InvalidArn) Error() string { 5018 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 5019} 5020 5021// Status code returns the HTTP status code for the request's response error. 5022func (s *InvalidArn) StatusCode() int { 5023 return s.RespMetadata.StatusCode 5024} 5025 5026// RequestID returns the service's response RequestID for request. 5027func (s *InvalidArn) RequestID() string { 5028 return s.RespMetadata.RequestID 5029} 5030 5031// The provided Amazon States Language definition is invalid. 5032type InvalidDefinition struct { 5033 _ struct{} `type:"structure"` 5034 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 5035 5036 Message_ *string `locationName:"message" type:"string"` 5037} 5038 5039// String returns the string representation 5040func (s InvalidDefinition) String() string { 5041 return awsutil.Prettify(s) 5042} 5043 5044// GoString returns the string representation 5045func (s InvalidDefinition) GoString() string { 5046 return s.String() 5047} 5048 5049func newErrorInvalidDefinition(v protocol.ResponseMetadata) error { 5050 return &InvalidDefinition{ 5051 RespMetadata: v, 5052 } 5053} 5054 5055// Code returns the exception type name. 5056func (s *InvalidDefinition) Code() string { 5057 return "InvalidDefinition" 5058} 5059 5060// Message returns the exception's message. 5061func (s *InvalidDefinition) Message() string { 5062 if s.Message_ != nil { 5063 return *s.Message_ 5064 } 5065 return "" 5066} 5067 5068// OrigErr always returns nil, satisfies awserr.Error interface. 5069func (s *InvalidDefinition) OrigErr() error { 5070 return nil 5071} 5072 5073func (s *InvalidDefinition) Error() string { 5074 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 5075} 5076 5077// Status code returns the HTTP status code for the request's response error. 5078func (s *InvalidDefinition) StatusCode() int { 5079 return s.RespMetadata.StatusCode 5080} 5081 5082// RequestID returns the service's response RequestID for request. 5083func (s *InvalidDefinition) RequestID() string { 5084 return s.RespMetadata.RequestID 5085} 5086 5087// The provided JSON input data is invalid. 5088type InvalidExecutionInput struct { 5089 _ struct{} `type:"structure"` 5090 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 5091 5092 Message_ *string `locationName:"message" type:"string"` 5093} 5094 5095// String returns the string representation 5096func (s InvalidExecutionInput) String() string { 5097 return awsutil.Prettify(s) 5098} 5099 5100// GoString returns the string representation 5101func (s InvalidExecutionInput) GoString() string { 5102 return s.String() 5103} 5104 5105func newErrorInvalidExecutionInput(v protocol.ResponseMetadata) error { 5106 return &InvalidExecutionInput{ 5107 RespMetadata: v, 5108 } 5109} 5110 5111// Code returns the exception type name. 5112func (s *InvalidExecutionInput) Code() string { 5113 return "InvalidExecutionInput" 5114} 5115 5116// Message returns the exception's message. 5117func (s *InvalidExecutionInput) Message() string { 5118 if s.Message_ != nil { 5119 return *s.Message_ 5120 } 5121 return "" 5122} 5123 5124// OrigErr always returns nil, satisfies awserr.Error interface. 5125func (s *InvalidExecutionInput) OrigErr() error { 5126 return nil 5127} 5128 5129func (s *InvalidExecutionInput) Error() string { 5130 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 5131} 5132 5133// Status code returns the HTTP status code for the request's response error. 5134func (s *InvalidExecutionInput) StatusCode() int { 5135 return s.RespMetadata.StatusCode 5136} 5137 5138// RequestID returns the service's response RequestID for request. 5139func (s *InvalidExecutionInput) RequestID() string { 5140 return s.RespMetadata.RequestID 5141} 5142 5143type InvalidLoggingConfiguration struct { 5144 _ struct{} `type:"structure"` 5145 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 5146 5147 Message_ *string `locationName:"message" type:"string"` 5148} 5149 5150// String returns the string representation 5151func (s InvalidLoggingConfiguration) String() string { 5152 return awsutil.Prettify(s) 5153} 5154 5155// GoString returns the string representation 5156func (s InvalidLoggingConfiguration) GoString() string { 5157 return s.String() 5158} 5159 5160func newErrorInvalidLoggingConfiguration(v protocol.ResponseMetadata) error { 5161 return &InvalidLoggingConfiguration{ 5162 RespMetadata: v, 5163 } 5164} 5165 5166// Code returns the exception type name. 5167func (s *InvalidLoggingConfiguration) Code() string { 5168 return "InvalidLoggingConfiguration" 5169} 5170 5171// Message returns the exception's message. 5172func (s *InvalidLoggingConfiguration) Message() string { 5173 if s.Message_ != nil { 5174 return *s.Message_ 5175 } 5176 return "" 5177} 5178 5179// OrigErr always returns nil, satisfies awserr.Error interface. 5180func (s *InvalidLoggingConfiguration) OrigErr() error { 5181 return nil 5182} 5183 5184func (s *InvalidLoggingConfiguration) Error() string { 5185 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 5186} 5187 5188// Status code returns the HTTP status code for the request's response error. 5189func (s *InvalidLoggingConfiguration) StatusCode() int { 5190 return s.RespMetadata.StatusCode 5191} 5192 5193// RequestID returns the service's response RequestID for request. 5194func (s *InvalidLoggingConfiguration) RequestID() string { 5195 return s.RespMetadata.RequestID 5196} 5197 5198// The provided name is invalid. 5199type InvalidName struct { 5200 _ struct{} `type:"structure"` 5201 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 5202 5203 Message_ *string `locationName:"message" type:"string"` 5204} 5205 5206// String returns the string representation 5207func (s InvalidName) String() string { 5208 return awsutil.Prettify(s) 5209} 5210 5211// GoString returns the string representation 5212func (s InvalidName) GoString() string { 5213 return s.String() 5214} 5215 5216func newErrorInvalidName(v protocol.ResponseMetadata) error { 5217 return &InvalidName{ 5218 RespMetadata: v, 5219 } 5220} 5221 5222// Code returns the exception type name. 5223func (s *InvalidName) Code() string { 5224 return "InvalidName" 5225} 5226 5227// Message returns the exception's message. 5228func (s *InvalidName) Message() string { 5229 if s.Message_ != nil { 5230 return *s.Message_ 5231 } 5232 return "" 5233} 5234 5235// OrigErr always returns nil, satisfies awserr.Error interface. 5236func (s *InvalidName) OrigErr() error { 5237 return nil 5238} 5239 5240func (s *InvalidName) Error() string { 5241 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 5242} 5243 5244// Status code returns the HTTP status code for the request's response error. 5245func (s *InvalidName) StatusCode() int { 5246 return s.RespMetadata.StatusCode 5247} 5248 5249// RequestID returns the service's response RequestID for request. 5250func (s *InvalidName) RequestID() string { 5251 return s.RespMetadata.RequestID 5252} 5253 5254// The provided JSON output data is invalid. 5255type InvalidOutput struct { 5256 _ struct{} `type:"structure"` 5257 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 5258 5259 Message_ *string `locationName:"message" type:"string"` 5260} 5261 5262// String returns the string representation 5263func (s InvalidOutput) String() string { 5264 return awsutil.Prettify(s) 5265} 5266 5267// GoString returns the string representation 5268func (s InvalidOutput) GoString() string { 5269 return s.String() 5270} 5271 5272func newErrorInvalidOutput(v protocol.ResponseMetadata) error { 5273 return &InvalidOutput{ 5274 RespMetadata: v, 5275 } 5276} 5277 5278// Code returns the exception type name. 5279func (s *InvalidOutput) Code() string { 5280 return "InvalidOutput" 5281} 5282 5283// Message returns the exception's message. 5284func (s *InvalidOutput) Message() string { 5285 if s.Message_ != nil { 5286 return *s.Message_ 5287 } 5288 return "" 5289} 5290 5291// OrigErr always returns nil, satisfies awserr.Error interface. 5292func (s *InvalidOutput) OrigErr() error { 5293 return nil 5294} 5295 5296func (s *InvalidOutput) Error() string { 5297 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 5298} 5299 5300// Status code returns the HTTP status code for the request's response error. 5301func (s *InvalidOutput) StatusCode() int { 5302 return s.RespMetadata.StatusCode 5303} 5304 5305// RequestID returns the service's response RequestID for request. 5306func (s *InvalidOutput) RequestID() string { 5307 return s.RespMetadata.RequestID 5308} 5309 5310// The provided token is invalid. 5311type InvalidToken struct { 5312 _ struct{} `type:"structure"` 5313 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 5314 5315 Message_ *string `locationName:"message" type:"string"` 5316} 5317 5318// String returns the string representation 5319func (s InvalidToken) String() string { 5320 return awsutil.Prettify(s) 5321} 5322 5323// GoString returns the string representation 5324func (s InvalidToken) GoString() string { 5325 return s.String() 5326} 5327 5328func newErrorInvalidToken(v protocol.ResponseMetadata) error { 5329 return &InvalidToken{ 5330 RespMetadata: v, 5331 } 5332} 5333 5334// Code returns the exception type name. 5335func (s *InvalidToken) Code() string { 5336 return "InvalidToken" 5337} 5338 5339// Message returns the exception's message. 5340func (s *InvalidToken) Message() string { 5341 if s.Message_ != nil { 5342 return *s.Message_ 5343 } 5344 return "" 5345} 5346 5347// OrigErr always returns nil, satisfies awserr.Error interface. 5348func (s *InvalidToken) OrigErr() error { 5349 return nil 5350} 5351 5352func (s *InvalidToken) Error() string { 5353 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 5354} 5355 5356// Status code returns the HTTP status code for the request's response error. 5357func (s *InvalidToken) StatusCode() int { 5358 return s.RespMetadata.StatusCode 5359} 5360 5361// RequestID returns the service's response RequestID for request. 5362func (s *InvalidToken) RequestID() string { 5363 return s.RespMetadata.RequestID 5364} 5365 5366// Your tracingConfiguration key does not match, or enabled has not been set 5367// to true or false. 5368type InvalidTracingConfiguration struct { 5369 _ struct{} `type:"structure"` 5370 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 5371 5372 Message_ *string `locationName:"message" type:"string"` 5373} 5374 5375// String returns the string representation 5376func (s InvalidTracingConfiguration) String() string { 5377 return awsutil.Prettify(s) 5378} 5379 5380// GoString returns the string representation 5381func (s InvalidTracingConfiguration) GoString() string { 5382 return s.String() 5383} 5384 5385func newErrorInvalidTracingConfiguration(v protocol.ResponseMetadata) error { 5386 return &InvalidTracingConfiguration{ 5387 RespMetadata: v, 5388 } 5389} 5390 5391// Code returns the exception type name. 5392func (s *InvalidTracingConfiguration) Code() string { 5393 return "InvalidTracingConfiguration" 5394} 5395 5396// Message returns the exception's message. 5397func (s *InvalidTracingConfiguration) Message() string { 5398 if s.Message_ != nil { 5399 return *s.Message_ 5400 } 5401 return "" 5402} 5403 5404// OrigErr always returns nil, satisfies awserr.Error interface. 5405func (s *InvalidTracingConfiguration) OrigErr() error { 5406 return nil 5407} 5408 5409func (s *InvalidTracingConfiguration) Error() string { 5410 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 5411} 5412 5413// Status code returns the HTTP status code for the request's response error. 5414func (s *InvalidTracingConfiguration) StatusCode() int { 5415 return s.RespMetadata.StatusCode 5416} 5417 5418// RequestID returns the service's response RequestID for request. 5419func (s *InvalidTracingConfiguration) RequestID() string { 5420 return s.RespMetadata.RequestID 5421} 5422 5423// Contains details about a lambda function that failed during an execution. 5424type LambdaFunctionFailedEventDetails struct { 5425 _ struct{} `type:"structure"` 5426 5427 // A more detailed explanation of the cause of the failure. 5428 Cause *string `locationName:"cause" type:"string" sensitive:"true"` 5429 5430 // The error code of the failure. 5431 Error *string `locationName:"error" type:"string" sensitive:"true"` 5432} 5433 5434// String returns the string representation 5435func (s LambdaFunctionFailedEventDetails) String() string { 5436 return awsutil.Prettify(s) 5437} 5438 5439// GoString returns the string representation 5440func (s LambdaFunctionFailedEventDetails) GoString() string { 5441 return s.String() 5442} 5443 5444// SetCause sets the Cause field's value. 5445func (s *LambdaFunctionFailedEventDetails) SetCause(v string) *LambdaFunctionFailedEventDetails { 5446 s.Cause = &v 5447 return s 5448} 5449 5450// SetError sets the Error field's value. 5451func (s *LambdaFunctionFailedEventDetails) SetError(v string) *LambdaFunctionFailedEventDetails { 5452 s.Error = &v 5453 return s 5454} 5455 5456// Contains details about a failed lambda function schedule event that occurred 5457// during an execution. 5458type LambdaFunctionScheduleFailedEventDetails struct { 5459 _ struct{} `type:"structure"` 5460 5461 // A more detailed explanation of the cause of the failure. 5462 Cause *string `locationName:"cause" type:"string" sensitive:"true"` 5463 5464 // The error code of the failure. 5465 Error *string `locationName:"error" type:"string" sensitive:"true"` 5466} 5467 5468// String returns the string representation 5469func (s LambdaFunctionScheduleFailedEventDetails) String() string { 5470 return awsutil.Prettify(s) 5471} 5472 5473// GoString returns the string representation 5474func (s LambdaFunctionScheduleFailedEventDetails) GoString() string { 5475 return s.String() 5476} 5477 5478// SetCause sets the Cause field's value. 5479func (s *LambdaFunctionScheduleFailedEventDetails) SetCause(v string) *LambdaFunctionScheduleFailedEventDetails { 5480 s.Cause = &v 5481 return s 5482} 5483 5484// SetError sets the Error field's value. 5485func (s *LambdaFunctionScheduleFailedEventDetails) SetError(v string) *LambdaFunctionScheduleFailedEventDetails { 5486 s.Error = &v 5487 return s 5488} 5489 5490// Contains details about a lambda function scheduled during an execution. 5491type LambdaFunctionScheduledEventDetails struct { 5492 _ struct{} `type:"structure"` 5493 5494 // The JSON data input to the lambda function. Length constraints apply to the 5495 // payload size, and are expressed as bytes in UTF-8 encoding. 5496 Input *string `locationName:"input" type:"string" sensitive:"true"` 5497 5498 // Contains details about input for an execution history event. 5499 InputDetails *HistoryEventExecutionDataDetails `locationName:"inputDetails" type:"structure"` 5500 5501 // The Amazon Resource Name (ARN) of the scheduled lambda function. 5502 // 5503 // Resource is a required field 5504 Resource *string `locationName:"resource" min:"1" type:"string" required:"true"` 5505 5506 // The maximum allowed duration of the lambda function. 5507 TimeoutInSeconds *int64 `locationName:"timeoutInSeconds" type:"long"` 5508} 5509 5510// String returns the string representation 5511func (s LambdaFunctionScheduledEventDetails) String() string { 5512 return awsutil.Prettify(s) 5513} 5514 5515// GoString returns the string representation 5516func (s LambdaFunctionScheduledEventDetails) GoString() string { 5517 return s.String() 5518} 5519 5520// SetInput sets the Input field's value. 5521func (s *LambdaFunctionScheduledEventDetails) SetInput(v string) *LambdaFunctionScheduledEventDetails { 5522 s.Input = &v 5523 return s 5524} 5525 5526// SetInputDetails sets the InputDetails field's value. 5527func (s *LambdaFunctionScheduledEventDetails) SetInputDetails(v *HistoryEventExecutionDataDetails) *LambdaFunctionScheduledEventDetails { 5528 s.InputDetails = v 5529 return s 5530} 5531 5532// SetResource sets the Resource field's value. 5533func (s *LambdaFunctionScheduledEventDetails) SetResource(v string) *LambdaFunctionScheduledEventDetails { 5534 s.Resource = &v 5535 return s 5536} 5537 5538// SetTimeoutInSeconds sets the TimeoutInSeconds field's value. 5539func (s *LambdaFunctionScheduledEventDetails) SetTimeoutInSeconds(v int64) *LambdaFunctionScheduledEventDetails { 5540 s.TimeoutInSeconds = &v 5541 return s 5542} 5543 5544// Contains details about a lambda function that failed to start during an execution. 5545type LambdaFunctionStartFailedEventDetails struct { 5546 _ struct{} `type:"structure"` 5547 5548 // A more detailed explanation of the cause of the failure. 5549 Cause *string `locationName:"cause" type:"string" sensitive:"true"` 5550 5551 // The error code of the failure. 5552 Error *string `locationName:"error" type:"string" sensitive:"true"` 5553} 5554 5555// String returns the string representation 5556func (s LambdaFunctionStartFailedEventDetails) String() string { 5557 return awsutil.Prettify(s) 5558} 5559 5560// GoString returns the string representation 5561func (s LambdaFunctionStartFailedEventDetails) GoString() string { 5562 return s.String() 5563} 5564 5565// SetCause sets the Cause field's value. 5566func (s *LambdaFunctionStartFailedEventDetails) SetCause(v string) *LambdaFunctionStartFailedEventDetails { 5567 s.Cause = &v 5568 return s 5569} 5570 5571// SetError sets the Error field's value. 5572func (s *LambdaFunctionStartFailedEventDetails) SetError(v string) *LambdaFunctionStartFailedEventDetails { 5573 s.Error = &v 5574 return s 5575} 5576 5577// Contains details about a lambda function that successfully terminated during 5578// an execution. 5579type LambdaFunctionSucceededEventDetails struct { 5580 _ struct{} `type:"structure"` 5581 5582 // The JSON data output by the lambda function. Length constraints apply to 5583 // the payload size, and are expressed as bytes in UTF-8 encoding. 5584 Output *string `locationName:"output" type:"string" sensitive:"true"` 5585 5586 // Contains details about the output of an execution history event. 5587 OutputDetails *HistoryEventExecutionDataDetails `locationName:"outputDetails" type:"structure"` 5588} 5589 5590// String returns the string representation 5591func (s LambdaFunctionSucceededEventDetails) String() string { 5592 return awsutil.Prettify(s) 5593} 5594 5595// GoString returns the string representation 5596func (s LambdaFunctionSucceededEventDetails) GoString() string { 5597 return s.String() 5598} 5599 5600// SetOutput sets the Output field's value. 5601func (s *LambdaFunctionSucceededEventDetails) SetOutput(v string) *LambdaFunctionSucceededEventDetails { 5602 s.Output = &v 5603 return s 5604} 5605 5606// SetOutputDetails sets the OutputDetails field's value. 5607func (s *LambdaFunctionSucceededEventDetails) SetOutputDetails(v *HistoryEventExecutionDataDetails) *LambdaFunctionSucceededEventDetails { 5608 s.OutputDetails = v 5609 return s 5610} 5611 5612// Contains details about a lambda function timeout that occurred during an 5613// execution. 5614type LambdaFunctionTimedOutEventDetails struct { 5615 _ struct{} `type:"structure"` 5616 5617 // A more detailed explanation of the cause of the timeout. 5618 Cause *string `locationName:"cause" type:"string" sensitive:"true"` 5619 5620 // The error code of the failure. 5621 Error *string `locationName:"error" type:"string" sensitive:"true"` 5622} 5623 5624// String returns the string representation 5625func (s LambdaFunctionTimedOutEventDetails) String() string { 5626 return awsutil.Prettify(s) 5627} 5628 5629// GoString returns the string representation 5630func (s LambdaFunctionTimedOutEventDetails) GoString() string { 5631 return s.String() 5632} 5633 5634// SetCause sets the Cause field's value. 5635func (s *LambdaFunctionTimedOutEventDetails) SetCause(v string) *LambdaFunctionTimedOutEventDetails { 5636 s.Cause = &v 5637 return s 5638} 5639 5640// SetError sets the Error field's value. 5641func (s *LambdaFunctionTimedOutEventDetails) SetError(v string) *LambdaFunctionTimedOutEventDetails { 5642 s.Error = &v 5643 return s 5644} 5645 5646type ListActivitiesInput struct { 5647 _ struct{} `type:"structure"` 5648 5649 // The maximum number of results that are returned per call. You can use nextToken 5650 // to obtain further pages of results. The default is 100 and the maximum allowed 5651 // page size is 1000. A value of 0 uses the default. 5652 // 5653 // This is only an upper limit. The actual number of results returned per call 5654 // might be fewer than the specified maximum. 5655 MaxResults *int64 `locationName:"maxResults" type:"integer"` 5656 5657 // If nextToken is returned, there are more results available. The value of 5658 // nextToken is a unique pagination token for each page. Make the call again 5659 // using the returned token to retrieve the next page. Keep all other arguments 5660 // unchanged. Each pagination token expires after 24 hours. Using an expired 5661 // pagination token will return an HTTP 400 InvalidToken error. 5662 NextToken *string `locationName:"nextToken" min:"1" type:"string"` 5663} 5664 5665// String returns the string representation 5666func (s ListActivitiesInput) String() string { 5667 return awsutil.Prettify(s) 5668} 5669 5670// GoString returns the string representation 5671func (s ListActivitiesInput) GoString() string { 5672 return s.String() 5673} 5674 5675// Validate inspects the fields of the type to determine if they are valid. 5676func (s *ListActivitiesInput) Validate() error { 5677 invalidParams := request.ErrInvalidParams{Context: "ListActivitiesInput"} 5678 if s.NextToken != nil && len(*s.NextToken) < 1 { 5679 invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) 5680 } 5681 5682 if invalidParams.Len() > 0 { 5683 return invalidParams 5684 } 5685 return nil 5686} 5687 5688// SetMaxResults sets the MaxResults field's value. 5689func (s *ListActivitiesInput) SetMaxResults(v int64) *ListActivitiesInput { 5690 s.MaxResults = &v 5691 return s 5692} 5693 5694// SetNextToken sets the NextToken field's value. 5695func (s *ListActivitiesInput) SetNextToken(v string) *ListActivitiesInput { 5696 s.NextToken = &v 5697 return s 5698} 5699 5700type ListActivitiesOutput struct { 5701 _ struct{} `type:"structure"` 5702 5703 // The list of activities. 5704 // 5705 // Activities is a required field 5706 Activities []*ActivityListItem `locationName:"activities" type:"list" required:"true"` 5707 5708 // If nextToken is returned, there are more results available. The value of 5709 // nextToken is a unique pagination token for each page. Make the call again 5710 // using the returned token to retrieve the next page. Keep all other arguments 5711 // unchanged. Each pagination token expires after 24 hours. Using an expired 5712 // pagination token will return an HTTP 400 InvalidToken error. 5713 NextToken *string `locationName:"nextToken" min:"1" type:"string"` 5714} 5715 5716// String returns the string representation 5717func (s ListActivitiesOutput) String() string { 5718 return awsutil.Prettify(s) 5719} 5720 5721// GoString returns the string representation 5722func (s ListActivitiesOutput) GoString() string { 5723 return s.String() 5724} 5725 5726// SetActivities sets the Activities field's value. 5727func (s *ListActivitiesOutput) SetActivities(v []*ActivityListItem) *ListActivitiesOutput { 5728 s.Activities = v 5729 return s 5730} 5731 5732// SetNextToken sets the NextToken field's value. 5733func (s *ListActivitiesOutput) SetNextToken(v string) *ListActivitiesOutput { 5734 s.NextToken = &v 5735 return s 5736} 5737 5738type ListExecutionsInput struct { 5739 _ struct{} `type:"structure"` 5740 5741 // The maximum number of results that are returned per call. You can use nextToken 5742 // to obtain further pages of results. The default is 100 and the maximum allowed 5743 // page size is 1000. A value of 0 uses the default. 5744 // 5745 // This is only an upper limit. The actual number of results returned per call 5746 // might be fewer than the specified maximum. 5747 MaxResults *int64 `locationName:"maxResults" type:"integer"` 5748 5749 // If nextToken is returned, there are more results available. The value of 5750 // nextToken is a unique pagination token for each page. Make the call again 5751 // using the returned token to retrieve the next page. Keep all other arguments 5752 // unchanged. Each pagination token expires after 24 hours. Using an expired 5753 // pagination token will return an HTTP 400 InvalidToken error. 5754 NextToken *string `locationName:"nextToken" min:"1" type:"string"` 5755 5756 // The Amazon Resource Name (ARN) of the state machine whose executions is listed. 5757 // 5758 // StateMachineArn is a required field 5759 StateMachineArn *string `locationName:"stateMachineArn" min:"1" type:"string" required:"true"` 5760 5761 // If specified, only list the executions whose current execution status matches 5762 // the given filter. 5763 StatusFilter *string `locationName:"statusFilter" type:"string" enum:"ExecutionStatus"` 5764} 5765 5766// String returns the string representation 5767func (s ListExecutionsInput) String() string { 5768 return awsutil.Prettify(s) 5769} 5770 5771// GoString returns the string representation 5772func (s ListExecutionsInput) GoString() string { 5773 return s.String() 5774} 5775 5776// Validate inspects the fields of the type to determine if they are valid. 5777func (s *ListExecutionsInput) Validate() error { 5778 invalidParams := request.ErrInvalidParams{Context: "ListExecutionsInput"} 5779 if s.NextToken != nil && len(*s.NextToken) < 1 { 5780 invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) 5781 } 5782 if s.StateMachineArn == nil { 5783 invalidParams.Add(request.NewErrParamRequired("StateMachineArn")) 5784 } 5785 if s.StateMachineArn != nil && len(*s.StateMachineArn) < 1 { 5786 invalidParams.Add(request.NewErrParamMinLen("StateMachineArn", 1)) 5787 } 5788 5789 if invalidParams.Len() > 0 { 5790 return invalidParams 5791 } 5792 return nil 5793} 5794 5795// SetMaxResults sets the MaxResults field's value. 5796func (s *ListExecutionsInput) SetMaxResults(v int64) *ListExecutionsInput { 5797 s.MaxResults = &v 5798 return s 5799} 5800 5801// SetNextToken sets the NextToken field's value. 5802func (s *ListExecutionsInput) SetNextToken(v string) *ListExecutionsInput { 5803 s.NextToken = &v 5804 return s 5805} 5806 5807// SetStateMachineArn sets the StateMachineArn field's value. 5808func (s *ListExecutionsInput) SetStateMachineArn(v string) *ListExecutionsInput { 5809 s.StateMachineArn = &v 5810 return s 5811} 5812 5813// SetStatusFilter sets the StatusFilter field's value. 5814func (s *ListExecutionsInput) SetStatusFilter(v string) *ListExecutionsInput { 5815 s.StatusFilter = &v 5816 return s 5817} 5818 5819type ListExecutionsOutput struct { 5820 _ struct{} `type:"structure"` 5821 5822 // The list of matching executions. 5823 // 5824 // Executions is a required field 5825 Executions []*ExecutionListItem `locationName:"executions" type:"list" required:"true"` 5826 5827 // If nextToken is returned, there are more results available. The value of 5828 // nextToken is a unique pagination token for each page. Make the call again 5829 // using the returned token to retrieve the next page. Keep all other arguments 5830 // unchanged. Each pagination token expires after 24 hours. Using an expired 5831 // pagination token will return an HTTP 400 InvalidToken error. 5832 NextToken *string `locationName:"nextToken" min:"1" type:"string"` 5833} 5834 5835// String returns the string representation 5836func (s ListExecutionsOutput) String() string { 5837 return awsutil.Prettify(s) 5838} 5839 5840// GoString returns the string representation 5841func (s ListExecutionsOutput) GoString() string { 5842 return s.String() 5843} 5844 5845// SetExecutions sets the Executions field's value. 5846func (s *ListExecutionsOutput) SetExecutions(v []*ExecutionListItem) *ListExecutionsOutput { 5847 s.Executions = v 5848 return s 5849} 5850 5851// SetNextToken sets the NextToken field's value. 5852func (s *ListExecutionsOutput) SetNextToken(v string) *ListExecutionsOutput { 5853 s.NextToken = &v 5854 return s 5855} 5856 5857type ListStateMachinesInput struct { 5858 _ struct{} `type:"structure"` 5859 5860 // The maximum number of results that are returned per call. You can use nextToken 5861 // to obtain further pages of results. The default is 100 and the maximum allowed 5862 // page size is 1000. A value of 0 uses the default. 5863 // 5864 // This is only an upper limit. The actual number of results returned per call 5865 // might be fewer than the specified maximum. 5866 MaxResults *int64 `locationName:"maxResults" type:"integer"` 5867 5868 // If nextToken is returned, there are more results available. The value of 5869 // nextToken is a unique pagination token for each page. Make the call again 5870 // using the returned token to retrieve the next page. Keep all other arguments 5871 // unchanged. Each pagination token expires after 24 hours. Using an expired 5872 // pagination token will return an HTTP 400 InvalidToken error. 5873 NextToken *string `locationName:"nextToken" min:"1" type:"string"` 5874} 5875 5876// String returns the string representation 5877func (s ListStateMachinesInput) String() string { 5878 return awsutil.Prettify(s) 5879} 5880 5881// GoString returns the string representation 5882func (s ListStateMachinesInput) GoString() string { 5883 return s.String() 5884} 5885 5886// Validate inspects the fields of the type to determine if they are valid. 5887func (s *ListStateMachinesInput) Validate() error { 5888 invalidParams := request.ErrInvalidParams{Context: "ListStateMachinesInput"} 5889 if s.NextToken != nil && len(*s.NextToken) < 1 { 5890 invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) 5891 } 5892 5893 if invalidParams.Len() > 0 { 5894 return invalidParams 5895 } 5896 return nil 5897} 5898 5899// SetMaxResults sets the MaxResults field's value. 5900func (s *ListStateMachinesInput) SetMaxResults(v int64) *ListStateMachinesInput { 5901 s.MaxResults = &v 5902 return s 5903} 5904 5905// SetNextToken sets the NextToken field's value. 5906func (s *ListStateMachinesInput) SetNextToken(v string) *ListStateMachinesInput { 5907 s.NextToken = &v 5908 return s 5909} 5910 5911type ListStateMachinesOutput struct { 5912 _ struct{} `type:"structure"` 5913 5914 // If nextToken is returned, there are more results available. The value of 5915 // nextToken is a unique pagination token for each page. Make the call again 5916 // using the returned token to retrieve the next page. Keep all other arguments 5917 // unchanged. Each pagination token expires after 24 hours. Using an expired 5918 // pagination token will return an HTTP 400 InvalidToken error. 5919 NextToken *string `locationName:"nextToken" min:"1" type:"string"` 5920 5921 // StateMachines is a required field 5922 StateMachines []*StateMachineListItem `locationName:"stateMachines" type:"list" required:"true"` 5923} 5924 5925// String returns the string representation 5926func (s ListStateMachinesOutput) String() string { 5927 return awsutil.Prettify(s) 5928} 5929 5930// GoString returns the string representation 5931func (s ListStateMachinesOutput) GoString() string { 5932 return s.String() 5933} 5934 5935// SetNextToken sets the NextToken field's value. 5936func (s *ListStateMachinesOutput) SetNextToken(v string) *ListStateMachinesOutput { 5937 s.NextToken = &v 5938 return s 5939} 5940 5941// SetStateMachines sets the StateMachines field's value. 5942func (s *ListStateMachinesOutput) SetStateMachines(v []*StateMachineListItem) *ListStateMachinesOutput { 5943 s.StateMachines = v 5944 return s 5945} 5946 5947type ListTagsForResourceInput struct { 5948 _ struct{} `type:"structure"` 5949 5950 // The Amazon Resource Name (ARN) for the Step Functions state machine or activity. 5951 // 5952 // ResourceArn is a required field 5953 ResourceArn *string `locationName:"resourceArn" min:"1" type:"string" required:"true"` 5954} 5955 5956// String returns the string representation 5957func (s ListTagsForResourceInput) String() string { 5958 return awsutil.Prettify(s) 5959} 5960 5961// GoString returns the string representation 5962func (s ListTagsForResourceInput) GoString() string { 5963 return s.String() 5964} 5965 5966// Validate inspects the fields of the type to determine if they are valid. 5967func (s *ListTagsForResourceInput) Validate() error { 5968 invalidParams := request.ErrInvalidParams{Context: "ListTagsForResourceInput"} 5969 if s.ResourceArn == nil { 5970 invalidParams.Add(request.NewErrParamRequired("ResourceArn")) 5971 } 5972 if s.ResourceArn != nil && len(*s.ResourceArn) < 1 { 5973 invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1)) 5974 } 5975 5976 if invalidParams.Len() > 0 { 5977 return invalidParams 5978 } 5979 return nil 5980} 5981 5982// SetResourceArn sets the ResourceArn field's value. 5983func (s *ListTagsForResourceInput) SetResourceArn(v string) *ListTagsForResourceInput { 5984 s.ResourceArn = &v 5985 return s 5986} 5987 5988type ListTagsForResourceOutput struct { 5989 _ struct{} `type:"structure"` 5990 5991 // An array of tags associated with the resource. 5992 Tags []*Tag `locationName:"tags" type:"list"` 5993} 5994 5995// String returns the string representation 5996func (s ListTagsForResourceOutput) String() string { 5997 return awsutil.Prettify(s) 5998} 5999 6000// GoString returns the string representation 6001func (s ListTagsForResourceOutput) GoString() string { 6002 return s.String() 6003} 6004 6005// SetTags sets the Tags field's value. 6006func (s *ListTagsForResourceOutput) SetTags(v []*Tag) *ListTagsForResourceOutput { 6007 s.Tags = v 6008 return s 6009} 6010 6011type LogDestination struct { 6012 _ struct{} `type:"structure"` 6013 6014 // An object describing a CloudWatch log group. For more information, see AWS::Logs::LogGroup 6015 // (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-loggroup.html) 6016 // in the AWS CloudFormation User Guide. 6017 CloudWatchLogsLogGroup *CloudWatchLogsLogGroup `locationName:"cloudWatchLogsLogGroup" type:"structure"` 6018} 6019 6020// String returns the string representation 6021func (s LogDestination) String() string { 6022 return awsutil.Prettify(s) 6023} 6024 6025// GoString returns the string representation 6026func (s LogDestination) GoString() string { 6027 return s.String() 6028} 6029 6030// Validate inspects the fields of the type to determine if they are valid. 6031func (s *LogDestination) Validate() error { 6032 invalidParams := request.ErrInvalidParams{Context: "LogDestination"} 6033 if s.CloudWatchLogsLogGroup != nil { 6034 if err := s.CloudWatchLogsLogGroup.Validate(); err != nil { 6035 invalidParams.AddNested("CloudWatchLogsLogGroup", err.(request.ErrInvalidParams)) 6036 } 6037 } 6038 6039 if invalidParams.Len() > 0 { 6040 return invalidParams 6041 } 6042 return nil 6043} 6044 6045// SetCloudWatchLogsLogGroup sets the CloudWatchLogsLogGroup field's value. 6046func (s *LogDestination) SetCloudWatchLogsLogGroup(v *CloudWatchLogsLogGroup) *LogDestination { 6047 s.CloudWatchLogsLogGroup = v 6048 return s 6049} 6050 6051// The LoggingConfiguration data type is used to set CloudWatch Logs options. 6052type LoggingConfiguration struct { 6053 _ struct{} `type:"structure"` 6054 6055 // An array of objects that describes where your execution history events will 6056 // be logged. Limited to size 1. Required, if your log level is not set to OFF. 6057 Destinations []*LogDestination `locationName:"destinations" type:"list"` 6058 6059 // Determines whether execution data is included in your log. When set to false, 6060 // data is excluded. 6061 IncludeExecutionData *bool `locationName:"includeExecutionData" type:"boolean"` 6062 6063 // Defines which category of execution history events are logged. 6064 Level *string `locationName:"level" type:"string" enum:"LogLevel"` 6065} 6066 6067// String returns the string representation 6068func (s LoggingConfiguration) String() string { 6069 return awsutil.Prettify(s) 6070} 6071 6072// GoString returns the string representation 6073func (s LoggingConfiguration) GoString() string { 6074 return s.String() 6075} 6076 6077// Validate inspects the fields of the type to determine if they are valid. 6078func (s *LoggingConfiguration) Validate() error { 6079 invalidParams := request.ErrInvalidParams{Context: "LoggingConfiguration"} 6080 if s.Destinations != nil { 6081 for i, v := range s.Destinations { 6082 if v == nil { 6083 continue 6084 } 6085 if err := v.Validate(); err != nil { 6086 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Destinations", i), err.(request.ErrInvalidParams)) 6087 } 6088 } 6089 } 6090 6091 if invalidParams.Len() > 0 { 6092 return invalidParams 6093 } 6094 return nil 6095} 6096 6097// SetDestinations sets the Destinations field's value. 6098func (s *LoggingConfiguration) SetDestinations(v []*LogDestination) *LoggingConfiguration { 6099 s.Destinations = v 6100 return s 6101} 6102 6103// SetIncludeExecutionData sets the IncludeExecutionData field's value. 6104func (s *LoggingConfiguration) SetIncludeExecutionData(v bool) *LoggingConfiguration { 6105 s.IncludeExecutionData = &v 6106 return s 6107} 6108 6109// SetLevel sets the Level field's value. 6110func (s *LoggingConfiguration) SetLevel(v string) *LoggingConfiguration { 6111 s.Level = &v 6112 return s 6113} 6114 6115// Contains details about an iteration of a Map state. 6116type MapIterationEventDetails struct { 6117 _ struct{} `type:"structure"` 6118 6119 // The index of the array belonging to the Map state iteration. 6120 Index *int64 `locationName:"index" type:"integer"` 6121 6122 // The name of the iteration’s parent Map state. 6123 Name *string `locationName:"name" min:"1" type:"string"` 6124} 6125 6126// String returns the string representation 6127func (s MapIterationEventDetails) String() string { 6128 return awsutil.Prettify(s) 6129} 6130 6131// GoString returns the string representation 6132func (s MapIterationEventDetails) GoString() string { 6133 return s.String() 6134} 6135 6136// SetIndex sets the Index field's value. 6137func (s *MapIterationEventDetails) SetIndex(v int64) *MapIterationEventDetails { 6138 s.Index = &v 6139 return s 6140} 6141 6142// SetName sets the Name field's value. 6143func (s *MapIterationEventDetails) SetName(v string) *MapIterationEventDetails { 6144 s.Name = &v 6145 return s 6146} 6147 6148// Details about a Map state that was started. 6149type MapStateStartedEventDetails struct { 6150 _ struct{} `type:"structure"` 6151 6152 // The size of the array for Map state iterations. 6153 Length *int64 `locationName:"length" type:"integer"` 6154} 6155 6156// String returns the string representation 6157func (s MapStateStartedEventDetails) String() string { 6158 return awsutil.Prettify(s) 6159} 6160 6161// GoString returns the string representation 6162func (s MapStateStartedEventDetails) GoString() string { 6163 return s.String() 6164} 6165 6166// SetLength sets the Length field's value. 6167func (s *MapStateStartedEventDetails) SetLength(v int64) *MapStateStartedEventDetails { 6168 s.Length = &v 6169 return s 6170} 6171 6172// Request is missing a required parameter. This error occurs if both definition 6173// and roleArn are not specified. 6174type MissingRequiredParameter struct { 6175 _ struct{} `type:"structure"` 6176 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 6177 6178 Message_ *string `locationName:"message" type:"string"` 6179} 6180 6181// String returns the string representation 6182func (s MissingRequiredParameter) String() string { 6183 return awsutil.Prettify(s) 6184} 6185 6186// GoString returns the string representation 6187func (s MissingRequiredParameter) GoString() string { 6188 return s.String() 6189} 6190 6191func newErrorMissingRequiredParameter(v protocol.ResponseMetadata) error { 6192 return &MissingRequiredParameter{ 6193 RespMetadata: v, 6194 } 6195} 6196 6197// Code returns the exception type name. 6198func (s *MissingRequiredParameter) Code() string { 6199 return "MissingRequiredParameter" 6200} 6201 6202// Message returns the exception's message. 6203func (s *MissingRequiredParameter) Message() string { 6204 if s.Message_ != nil { 6205 return *s.Message_ 6206 } 6207 return "" 6208} 6209 6210// OrigErr always returns nil, satisfies awserr.Error interface. 6211func (s *MissingRequiredParameter) OrigErr() error { 6212 return nil 6213} 6214 6215func (s *MissingRequiredParameter) Error() string { 6216 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 6217} 6218 6219// Status code returns the HTTP status code for the request's response error. 6220func (s *MissingRequiredParameter) StatusCode() int { 6221 return s.RespMetadata.StatusCode 6222} 6223 6224// RequestID returns the service's response RequestID for request. 6225func (s *MissingRequiredParameter) RequestID() string { 6226 return s.RespMetadata.RequestID 6227} 6228 6229// Could not find the referenced resource. Only state machine and activity ARNs 6230// are supported. 6231type ResourceNotFound struct { 6232 _ struct{} `type:"structure"` 6233 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 6234 6235 Message_ *string `locationName:"message" type:"string"` 6236 6237 ResourceName *string `locationName:"resourceName" min:"1" type:"string"` 6238} 6239 6240// String returns the string representation 6241func (s ResourceNotFound) String() string { 6242 return awsutil.Prettify(s) 6243} 6244 6245// GoString returns the string representation 6246func (s ResourceNotFound) GoString() string { 6247 return s.String() 6248} 6249 6250func newErrorResourceNotFound(v protocol.ResponseMetadata) error { 6251 return &ResourceNotFound{ 6252 RespMetadata: v, 6253 } 6254} 6255 6256// Code returns the exception type name. 6257func (s *ResourceNotFound) Code() string { 6258 return "ResourceNotFound" 6259} 6260 6261// Message returns the exception's message. 6262func (s *ResourceNotFound) Message() string { 6263 if s.Message_ != nil { 6264 return *s.Message_ 6265 } 6266 return "" 6267} 6268 6269// OrigErr always returns nil, satisfies awserr.Error interface. 6270func (s *ResourceNotFound) OrigErr() error { 6271 return nil 6272} 6273 6274func (s *ResourceNotFound) Error() string { 6275 return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) 6276} 6277 6278// Status code returns the HTTP status code for the request's response error. 6279func (s *ResourceNotFound) StatusCode() int { 6280 return s.RespMetadata.StatusCode 6281} 6282 6283// RequestID returns the service's response RequestID for request. 6284func (s *ResourceNotFound) RequestID() string { 6285 return s.RespMetadata.RequestID 6286} 6287 6288type SendTaskFailureInput struct { 6289 _ struct{} `type:"structure"` 6290 6291 // A more detailed explanation of the cause of the failure. 6292 Cause *string `locationName:"cause" type:"string" sensitive:"true"` 6293 6294 // The error code of the failure. 6295 Error *string `locationName:"error" type:"string" sensitive:"true"` 6296 6297 // The token that represents this task. Task tokens are generated by Step Functions 6298 // 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) 6299 // when a workflow enters a task state. See GetActivityTaskOutput$taskToken. 6300 // 6301 // TaskToken is a required field 6302 TaskToken *string `locationName:"taskToken" min:"1" type:"string" required:"true"` 6303} 6304 6305// String returns the string representation 6306func (s SendTaskFailureInput) String() string { 6307 return awsutil.Prettify(s) 6308} 6309 6310// GoString returns the string representation 6311func (s SendTaskFailureInput) GoString() string { 6312 return s.String() 6313} 6314 6315// Validate inspects the fields of the type to determine if they are valid. 6316func (s *SendTaskFailureInput) Validate() error { 6317 invalidParams := request.ErrInvalidParams{Context: "SendTaskFailureInput"} 6318 if s.TaskToken == nil { 6319 invalidParams.Add(request.NewErrParamRequired("TaskToken")) 6320 } 6321 if s.TaskToken != nil && len(*s.TaskToken) < 1 { 6322 invalidParams.Add(request.NewErrParamMinLen("TaskToken", 1)) 6323 } 6324 6325 if invalidParams.Len() > 0 { 6326 return invalidParams 6327 } 6328 return nil 6329} 6330 6331// SetCause sets the Cause field's value. 6332func (s *SendTaskFailureInput) SetCause(v string) *SendTaskFailureInput { 6333 s.Cause = &v 6334 return s 6335} 6336 6337// SetError sets the Error field's value. 6338func (s *SendTaskFailureInput) SetError(v string) *SendTaskFailureInput { 6339 s.Error = &v 6340 return s 6341} 6342 6343// SetTaskToken sets the TaskToken field's value. 6344func (s *SendTaskFailureInput) SetTaskToken(v string) *SendTaskFailureInput { 6345 s.TaskToken = &v 6346 return s 6347} 6348 6349type SendTaskFailureOutput struct { 6350 _ struct{} `type:"structure"` 6351} 6352 6353// String returns the string representation 6354func (s SendTaskFailureOutput) String() string { 6355 return awsutil.Prettify(s) 6356} 6357 6358// GoString returns the string representation 6359func (s SendTaskFailureOutput) GoString() string { 6360 return s.String() 6361} 6362 6363type SendTaskHeartbeatInput struct { 6364 _ struct{} `type:"structure"` 6365 6366 // The token that represents this task. Task tokens are generated by Step Functions 6367 // 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) 6368 // when a workflow enters a task state. See GetActivityTaskOutput$taskToken. 6369 // 6370 // TaskToken is a required field 6371 TaskToken *string `locationName:"taskToken" min:"1" type:"string" required:"true"` 6372} 6373 6374// String returns the string representation 6375func (s SendTaskHeartbeatInput) String() string { 6376 return awsutil.Prettify(s) 6377} 6378 6379// GoString returns the string representation 6380func (s SendTaskHeartbeatInput) GoString() string { 6381 return s.String() 6382} 6383 6384// Validate inspects the fields of the type to determine if they are valid. 6385func (s *SendTaskHeartbeatInput) Validate() error { 6386 invalidParams := request.ErrInvalidParams{Context: "SendTaskHeartbeatInput"} 6387 if s.TaskToken == nil { 6388 invalidParams.Add(request.NewErrParamRequired("TaskToken")) 6389 } 6390 if s.TaskToken != nil && len(*s.TaskToken) < 1 { 6391 invalidParams.Add(request.NewErrParamMinLen("TaskToken", 1)) 6392 } 6393 6394 if invalidParams.Len() > 0 { 6395 return invalidParams 6396 } 6397 return nil 6398} 6399 6400// SetTaskToken sets the TaskToken field's value. 6401func (s *SendTaskHeartbeatInput) SetTaskToken(v string) *SendTaskHeartbeatInput { 6402 s.TaskToken = &v 6403 return s 6404} 6405 6406type SendTaskHeartbeatOutput struct { 6407 _ struct{} `type:"structure"` 6408} 6409 6410// String returns the string representation 6411func (s SendTaskHeartbeatOutput) String() string { 6412 return awsutil.Prettify(s) 6413} 6414 6415// GoString returns the string representation 6416func (s SendTaskHeartbeatOutput) GoString() string { 6417 return s.String() 6418} 6419 6420type SendTaskSuccessInput struct { 6421 _ struct{} `type:"structure"` 6422 6423 // The JSON output of the task. Length constraints apply to the payload size, 6424 // and are expressed as bytes in UTF-8 encoding. 6425 // 6426 // Output is a required field 6427 Output *string `locationName:"output" type:"string" required:"true" sensitive:"true"` 6428 6429 // The token that represents this task. Task tokens are generated by Step Functions 6430 // 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) 6431 // when a workflow enters a task state. See GetActivityTaskOutput$taskToken. 6432 // 6433 // TaskToken is a required field 6434 TaskToken *string `locationName:"taskToken" min:"1" type:"string" required:"true"` 6435} 6436 6437// String returns the string representation 6438func (s SendTaskSuccessInput) String() string { 6439 return awsutil.Prettify(s) 6440} 6441 6442// GoString returns the string representation 6443func (s SendTaskSuccessInput) GoString() string { 6444 return s.String() 6445} 6446 6447// Validate inspects the fields of the type to determine if they are valid. 6448func (s *SendTaskSuccessInput) Validate() error { 6449 invalidParams := request.ErrInvalidParams{Context: "SendTaskSuccessInput"} 6450 if s.Output == nil { 6451 invalidParams.Add(request.NewErrParamRequired("Output")) 6452 } 6453 if s.TaskToken == nil { 6454 invalidParams.Add(request.NewErrParamRequired("TaskToken")) 6455 } 6456 if s.TaskToken != nil && len(*s.TaskToken) < 1 { 6457 invalidParams.Add(request.NewErrParamMinLen("TaskToken", 1)) 6458 } 6459 6460 if invalidParams.Len() > 0 { 6461 return invalidParams 6462 } 6463 return nil 6464} 6465 6466// SetOutput sets the Output field's value. 6467func (s *SendTaskSuccessInput) SetOutput(v string) *SendTaskSuccessInput { 6468 s.Output = &v 6469 return s 6470} 6471 6472// SetTaskToken sets the TaskToken field's value. 6473func (s *SendTaskSuccessInput) SetTaskToken(v string) *SendTaskSuccessInput { 6474 s.TaskToken = &v 6475 return s 6476} 6477 6478type SendTaskSuccessOutput struct { 6479 _ struct{} `type:"structure"` 6480} 6481 6482// String returns the string representation 6483func (s SendTaskSuccessOutput) String() string { 6484 return awsutil.Prettify(s) 6485} 6486 6487// GoString returns the string representation 6488func (s SendTaskSuccessOutput) GoString() string { 6489 return s.String() 6490} 6491 6492type StartExecutionInput struct { 6493 _ struct{} `type:"structure"` 6494 6495 // The string that contains the JSON input data for the execution, for example: 6496 // 6497 // "input": "{\"first_name\" : \"test\"}" 6498 // 6499 // If you don't include any JSON input data, you still must include the two 6500 // braces, for example: "input": "{}" 6501 // 6502 // Length constraints apply to the payload size, and are expressed as bytes 6503 // in UTF-8 encoding. 6504 Input *string `locationName:"input" type:"string" sensitive:"true"` 6505 6506 // The name of the execution. This name must be unique for your AWS account, 6507 // region, and state machine for 90 days. For more information, see Limits Related 6508 // to State Machine Executions (https://docs.aws.amazon.com/step-functions/latest/dg/limits.html#service-limits-state-machine-executions) 6509 // in the AWS Step Functions Developer Guide. 6510 // 6511 // A name must not contain: 6512 // 6513 // * white space 6514 // 6515 // * brackets < > { } [ ] 6516 // 6517 // * wildcard characters ? * 6518 // 6519 // * special characters " # % \ ^ | ~ ` $ & , ; : / 6520 // 6521 // * control characters (U+0000-001F, U+007F-009F) 6522 // 6523 // To enable logging with CloudWatch Logs, the name should only contain 0-9, 6524 // A-Z, a-z, - and _. 6525 Name *string `locationName:"name" min:"1" type:"string"` 6526 6527 // The Amazon Resource Name (ARN) of the state machine to execute. 6528 // 6529 // StateMachineArn is a required field 6530 StateMachineArn *string `locationName:"stateMachineArn" min:"1" type:"string" required:"true"` 6531 6532 // Passes the AWS X-Ray trace header. The trace header can also be passed in 6533 // the request payload. 6534 TraceHeader *string `locationName:"traceHeader" type:"string"` 6535} 6536 6537// String returns the string representation 6538func (s StartExecutionInput) String() string { 6539 return awsutil.Prettify(s) 6540} 6541 6542// GoString returns the string representation 6543func (s StartExecutionInput) GoString() string { 6544 return s.String() 6545} 6546 6547// Validate inspects the fields of the type to determine if they are valid. 6548func (s *StartExecutionInput) Validate() error { 6549 invalidParams := request.ErrInvalidParams{Context: "StartExecutionInput"} 6550 if s.Name != nil && len(*s.Name) < 1 { 6551 invalidParams.Add(request.NewErrParamMinLen("Name", 1)) 6552 } 6553 if s.StateMachineArn == nil { 6554 invalidParams.Add(request.NewErrParamRequired("StateMachineArn")) 6555 } 6556 if s.StateMachineArn != nil && len(*s.StateMachineArn) < 1 { 6557 invalidParams.Add(request.NewErrParamMinLen("StateMachineArn", 1)) 6558 } 6559 6560 if invalidParams.Len() > 0 { 6561 return invalidParams 6562 } 6563 return nil 6564} 6565 6566// SetInput sets the Input field's value. 6567func (s *StartExecutionInput) SetInput(v string) *StartExecutionInput { 6568 s.Input = &v 6569 return s 6570} 6571 6572// SetName sets the Name field's value. 6573func (s *StartExecutionInput) SetName(v string) *StartExecutionInput { 6574 s.Name = &v 6575 return s 6576} 6577 6578// SetStateMachineArn sets the StateMachineArn field's value. 6579func (s *StartExecutionInput) SetStateMachineArn(v string) *StartExecutionInput { 6580 s.StateMachineArn = &v 6581 return s 6582} 6583 6584// SetTraceHeader sets the TraceHeader field's value. 6585func (s *StartExecutionInput) SetTraceHeader(v string) *StartExecutionInput { 6586 s.TraceHeader = &v 6587 return s 6588} 6589 6590type StartExecutionOutput struct { 6591 _ struct{} `type:"structure"` 6592 6593 // The Amazon Resource Name (ARN) that identifies the execution. 6594 // 6595 // ExecutionArn is a required field 6596 ExecutionArn *string `locationName:"executionArn" min:"1" type:"string" required:"true"` 6597 6598 // The date the execution is started. 6599 // 6600 // StartDate is a required field 6601 StartDate *time.Time `locationName:"startDate" type:"timestamp" required:"true"` 6602} 6603 6604// String returns the string representation 6605func (s StartExecutionOutput) String() string { 6606 return awsutil.Prettify(s) 6607} 6608 6609// GoString returns the string representation 6610func (s StartExecutionOutput) GoString() string { 6611 return s.String() 6612} 6613 6614// SetExecutionArn sets the ExecutionArn field's value. 6615func (s *StartExecutionOutput) SetExecutionArn(v string) *StartExecutionOutput { 6616 s.ExecutionArn = &v 6617 return s 6618} 6619 6620// SetStartDate sets the StartDate field's value. 6621func (s *StartExecutionOutput) SetStartDate(v time.Time) *StartExecutionOutput { 6622 s.StartDate = &v 6623 return s 6624} 6625 6626type StartSyncExecutionInput struct { 6627 _ struct{} `type:"structure"` 6628 6629 // The string that contains the JSON input data for the execution, for example: 6630 // 6631 // "input": "{\"first_name\" : \"test\"}" 6632 // 6633 // If you don't include any JSON input data, you still must include the two 6634 // braces, for example: "input": "{}" 6635 // 6636 // Length constraints apply to the payload size, and are expressed as bytes 6637 // in UTF-8 encoding. 6638 Input *string `locationName:"input" type:"string" sensitive:"true"` 6639 6640 // The name of the execution. 6641 Name *string `locationName:"name" min:"1" type:"string"` 6642 6643 // The Amazon Resource Name (ARN) of the state machine to execute. 6644 // 6645 // StateMachineArn is a required field 6646 StateMachineArn *string `locationName:"stateMachineArn" min:"1" type:"string" required:"true"` 6647 6648 // Passes the AWS X-Ray trace header. The trace header can also be passed in 6649 // the request payload. 6650 TraceHeader *string `locationName:"traceHeader" type:"string"` 6651} 6652 6653// String returns the string representation 6654func (s StartSyncExecutionInput) String() string { 6655 return awsutil.Prettify(s) 6656} 6657 6658// GoString returns the string representation 6659func (s StartSyncExecutionInput) GoString() string { 6660 return s.String() 6661} 6662 6663// Validate inspects the fields of the type to determine if they are valid. 6664func (s *StartSyncExecutionInput) Validate() error { 6665 invalidParams := request.ErrInvalidParams{Context: "StartSyncExecutionInput"} 6666 if s.Name != nil && len(*s.Name) < 1 { 6667 invalidParams.Add(request.NewErrParamMinLen("Name", 1)) 6668 } 6669 if s.StateMachineArn == nil { 6670 invalidParams.Add(request.NewErrParamRequired("StateMachineArn")) 6671 } 6672 if s.StateMachineArn != nil && len(*s.StateMachineArn) < 1 { 6673 invalidParams.Add(request.NewErrParamMinLen("StateMachineArn", 1)) 6674 } 6675 6676 if invalidParams.Len() > 0 { 6677 return invalidParams 6678 } 6679 return nil 6680} 6681 6682// SetInput sets the Input field's value. 6683func (s *StartSyncExecutionInput) SetInput(v string) *StartSyncExecutionInput { 6684 s.Input = &v 6685 return s 6686} 6687 6688// SetName sets the Name field's value. 6689func (s *StartSyncExecutionInput) SetName(v string) *StartSyncExecutionInput { 6690 s.Name = &v 6691 return s 6692} 6693 6694// SetStateMachineArn sets the StateMachineArn field's value. 6695func (s *StartSyncExecutionInput) SetStateMachineArn(v string) *StartSyncExecutionInput { 6696 s.StateMachineArn = &v 6697 return s 6698} 6699 6700// SetTraceHeader sets the TraceHeader field's value. 6701func (s *StartSyncExecutionInput) SetTraceHeader(v string) *StartSyncExecutionInput { 6702 s.TraceHeader = &v 6703 return s 6704} 6705 6706type StartSyncExecutionOutput struct { 6707 _ struct{} `type:"structure"` 6708 6709 // An object that describes workflow billing details, including billed duration 6710 // and memory use. 6711 BillingDetails *BillingDetails `locationName:"billingDetails" type:"structure"` 6712 6713 // A more detailed explanation of the cause of the failure. 6714 Cause *string `locationName:"cause" type:"string" sensitive:"true"` 6715 6716 // The error code of the failure. 6717 Error *string `locationName:"error" type:"string" sensitive:"true"` 6718 6719 // The Amazon Resource Name (ARN) that identifies the execution. 6720 // 6721 // ExecutionArn is a required field 6722 ExecutionArn *string `locationName:"executionArn" min:"1" type:"string" required:"true"` 6723 6724 // The string that contains the JSON input data of the execution. Length constraints 6725 // apply to the payload size, and are expressed as bytes in UTF-8 encoding. 6726 Input *string `locationName:"input" type:"string" sensitive:"true"` 6727 6728 // Provides details about execution input or output. 6729 InputDetails *CloudWatchEventsExecutionDataDetails `locationName:"inputDetails" type:"structure"` 6730 6731 // The name of the execution. 6732 Name *string `locationName:"name" min:"1" type:"string"` 6733 6734 // The JSON output data of the execution. Length constraints apply to the payload 6735 // size, and are expressed as bytes in UTF-8 encoding. 6736 // 6737 // This field is set only if the execution succeeds. If the execution fails, 6738 // this field is null. 6739 Output *string `locationName:"output" type:"string" sensitive:"true"` 6740 6741 // Provides details about execution input or output. 6742 OutputDetails *CloudWatchEventsExecutionDataDetails `locationName:"outputDetails" type:"structure"` 6743 6744 // The date the execution is started. 6745 // 6746 // StartDate is a required field 6747 StartDate *time.Time `locationName:"startDate" type:"timestamp" required:"true"` 6748 6749 // The Amazon Resource Name (ARN) that identifies the state machine. 6750 StateMachineArn *string `locationName:"stateMachineArn" min:"1" type:"string"` 6751 6752 // The current status of the execution. 6753 // 6754 // Status is a required field 6755 Status *string `locationName:"status" type:"string" required:"true" enum:"SyncExecutionStatus"` 6756 6757 // If the execution has already ended, the date the execution stopped. 6758 // 6759 // StopDate is a required field 6760 StopDate *time.Time `locationName:"stopDate" type:"timestamp" required:"true"` 6761 6762 // The AWS X-Ray trace header that was passed to the execution. 6763 TraceHeader *string `locationName:"traceHeader" type:"string"` 6764} 6765 6766// String returns the string representation 6767func (s StartSyncExecutionOutput) String() string { 6768 return awsutil.Prettify(s) 6769} 6770 6771// GoString returns the string representation 6772func (s StartSyncExecutionOutput) GoString() string { 6773 return s.String() 6774} 6775 6776// SetBillingDetails sets the BillingDetails field's value. 6777func (s *StartSyncExecutionOutput) SetBillingDetails(v *BillingDetails) *StartSyncExecutionOutput { 6778 s.BillingDetails = v 6779 return s 6780} 6781 6782// SetCause sets the Cause field's value. 6783func (s *StartSyncExecutionOutput) SetCause(v string) *StartSyncExecutionOutput { 6784 s.Cause = &v 6785 return s 6786} 6787 6788// SetError sets the Error field's value. 6789func (s *StartSyncExecutionOutput) SetError(v string) *StartSyncExecutionOutput { 6790 s.Error = &v 6791 return s 6792} 6793 6794// SetExecutionArn sets the ExecutionArn field's value. 6795func (s *StartSyncExecutionOutput) SetExecutionArn(v string) *StartSyncExecutionOutput { 6796 s.ExecutionArn = &v 6797 return s 6798} 6799 6800// SetInput sets the Input field's value. 6801func (s *StartSyncExecutionOutput) SetInput(v string) *StartSyncExecutionOutput { 6802 s.Input = &v 6803 return s 6804} 6805 6806// SetInputDetails sets the InputDetails field's value. 6807func (s *StartSyncExecutionOutput) SetInputDetails(v *CloudWatchEventsExecutionDataDetails) *StartSyncExecutionOutput { 6808 s.InputDetails = v 6809 return s 6810} 6811 6812// SetName sets the Name field's value. 6813func (s *StartSyncExecutionOutput) SetName(v string) *StartSyncExecutionOutput { 6814 s.Name = &v 6815 return s 6816} 6817 6818// SetOutput sets the Output field's value. 6819func (s *StartSyncExecutionOutput) SetOutput(v string) *StartSyncExecutionOutput { 6820 s.Output = &v 6821 return s 6822} 6823 6824// SetOutputDetails sets the OutputDetails field's value. 6825func (s *StartSyncExecutionOutput) SetOutputDetails(v *CloudWatchEventsExecutionDataDetails) *StartSyncExecutionOutput { 6826 s.OutputDetails = v 6827 return s 6828} 6829 6830// SetStartDate sets the StartDate field's value. 6831func (s *StartSyncExecutionOutput) SetStartDate(v time.Time) *StartSyncExecutionOutput { 6832 s.StartDate = &v 6833 return s 6834} 6835 6836// SetStateMachineArn sets the StateMachineArn field's value. 6837func (s *StartSyncExecutionOutput) SetStateMachineArn(v string) *StartSyncExecutionOutput { 6838 s.StateMachineArn = &v 6839 return s 6840} 6841 6842// SetStatus sets the Status field's value. 6843func (s *StartSyncExecutionOutput) SetStatus(v string) *StartSyncExecutionOutput { 6844 s.Status = &v 6845 return s 6846} 6847 6848// SetStopDate sets the StopDate field's value. 6849func (s *StartSyncExecutionOutput) SetStopDate(v time.Time) *StartSyncExecutionOutput { 6850 s.StopDate = &v 6851 return s 6852} 6853 6854// SetTraceHeader sets the TraceHeader field's value. 6855func (s *StartSyncExecutionOutput) SetTraceHeader(v string) *StartSyncExecutionOutput { 6856 s.TraceHeader = &v 6857 return s 6858} 6859 6860// Contains details about a state entered during an execution. 6861type StateEnteredEventDetails struct { 6862 _ struct{} `type:"structure"` 6863 6864 // The string that contains the JSON input data for the state. Length constraints 6865 // apply to the payload size, and are expressed as bytes in UTF-8 encoding. 6866 Input *string `locationName:"input" type:"string" sensitive:"true"` 6867 6868 // Contains details about the input for an execution history event. 6869 InputDetails *HistoryEventExecutionDataDetails `locationName:"inputDetails" type:"structure"` 6870 6871 // The name of the state. 6872 // 6873 // Name is a required field 6874 Name *string `locationName:"name" min:"1" type:"string" required:"true"` 6875} 6876 6877// String returns the string representation 6878func (s StateEnteredEventDetails) String() string { 6879 return awsutil.Prettify(s) 6880} 6881 6882// GoString returns the string representation 6883func (s StateEnteredEventDetails) GoString() string { 6884 return s.String() 6885} 6886 6887// SetInput sets the Input field's value. 6888func (s *StateEnteredEventDetails) SetInput(v string) *StateEnteredEventDetails { 6889 s.Input = &v 6890 return s 6891} 6892 6893// SetInputDetails sets the InputDetails field's value. 6894func (s *StateEnteredEventDetails) SetInputDetails(v *HistoryEventExecutionDataDetails) *StateEnteredEventDetails { 6895 s.InputDetails = v 6896 return s 6897} 6898 6899// SetName sets the Name field's value. 6900func (s *StateEnteredEventDetails) SetName(v string) *StateEnteredEventDetails { 6901 s.Name = &v 6902 return s 6903} 6904 6905// Contains details about an exit from a state during an execution. 6906type StateExitedEventDetails struct { 6907 _ struct{} `type:"structure"` 6908 6909 // The name of the state. 6910 // 6911 // A name must not contain: 6912 // 6913 // * white space 6914 // 6915 // * brackets < > { } [ ] 6916 // 6917 // * wildcard characters ? * 6918 // 6919 // * special characters " # % \ ^ | ~ ` $ & , ; : / 6920 // 6921 // * control characters (U+0000-001F, U+007F-009F) 6922 // 6923 // To enable logging with CloudWatch Logs, the name should only contain 0-9, 6924 // A-Z, a-z, - and _. 6925 // 6926 // Name is a required field 6927 Name *string `locationName:"name" min:"1" type:"string" required:"true"` 6928 6929 // The JSON output data of the state. Length constraints apply to the payload 6930 // size, and are expressed as bytes in UTF-8 encoding. 6931 Output *string `locationName:"output" type:"string" sensitive:"true"` 6932 6933 // Contains details about the output of an execution history event. 6934 OutputDetails *HistoryEventExecutionDataDetails `locationName:"outputDetails" type:"structure"` 6935} 6936 6937// String returns the string representation 6938func (s StateExitedEventDetails) String() string { 6939 return awsutil.Prettify(s) 6940} 6941 6942// GoString returns the string representation 6943func (s StateExitedEventDetails) GoString() string { 6944 return s.String() 6945} 6946 6947// SetName sets the Name field's value. 6948func (s *StateExitedEventDetails) SetName(v string) *StateExitedEventDetails { 6949 s.Name = &v 6950 return s 6951} 6952 6953// SetOutput sets the Output field's value. 6954func (s *StateExitedEventDetails) SetOutput(v string) *StateExitedEventDetails { 6955 s.Output = &v 6956 return s 6957} 6958 6959// SetOutputDetails sets the OutputDetails field's value. 6960func (s *StateExitedEventDetails) SetOutputDetails(v *HistoryEventExecutionDataDetails) *StateExitedEventDetails { 6961 s.OutputDetails = v 6962 return s 6963} 6964 6965// A state machine with the same name but a different definition or role ARN 6966// already exists. 6967type StateMachineAlreadyExists struct { 6968 _ struct{} `type:"structure"` 6969 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 6970 6971 Message_ *string `locationName:"message" type:"string"` 6972} 6973 6974// String returns the string representation 6975func (s StateMachineAlreadyExists) String() string { 6976 return awsutil.Prettify(s) 6977} 6978 6979// GoString returns the string representation 6980func (s StateMachineAlreadyExists) GoString() string { 6981 return s.String() 6982} 6983 6984func newErrorStateMachineAlreadyExists(v protocol.ResponseMetadata) error { 6985 return &StateMachineAlreadyExists{ 6986 RespMetadata: v, 6987 } 6988} 6989 6990// Code returns the exception type name. 6991func (s *StateMachineAlreadyExists) Code() string { 6992 return "StateMachineAlreadyExists" 6993} 6994 6995// Message returns the exception's message. 6996func (s *StateMachineAlreadyExists) Message() string { 6997 if s.Message_ != nil { 6998 return *s.Message_ 6999 } 7000 return "" 7001} 7002 7003// OrigErr always returns nil, satisfies awserr.Error interface. 7004func (s *StateMachineAlreadyExists) OrigErr() error { 7005 return nil 7006} 7007 7008func (s *StateMachineAlreadyExists) Error() string { 7009 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 7010} 7011 7012// Status code returns the HTTP status code for the request's response error. 7013func (s *StateMachineAlreadyExists) StatusCode() int { 7014 return s.RespMetadata.StatusCode 7015} 7016 7017// RequestID returns the service's response RequestID for request. 7018func (s *StateMachineAlreadyExists) RequestID() string { 7019 return s.RespMetadata.RequestID 7020} 7021 7022// The specified state machine is being deleted. 7023type StateMachineDeleting struct { 7024 _ struct{} `type:"structure"` 7025 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 7026 7027 Message_ *string `locationName:"message" type:"string"` 7028} 7029 7030// String returns the string representation 7031func (s StateMachineDeleting) String() string { 7032 return awsutil.Prettify(s) 7033} 7034 7035// GoString returns the string representation 7036func (s StateMachineDeleting) GoString() string { 7037 return s.String() 7038} 7039 7040func newErrorStateMachineDeleting(v protocol.ResponseMetadata) error { 7041 return &StateMachineDeleting{ 7042 RespMetadata: v, 7043 } 7044} 7045 7046// Code returns the exception type name. 7047func (s *StateMachineDeleting) Code() string { 7048 return "StateMachineDeleting" 7049} 7050 7051// Message returns the exception's message. 7052func (s *StateMachineDeleting) Message() string { 7053 if s.Message_ != nil { 7054 return *s.Message_ 7055 } 7056 return "" 7057} 7058 7059// OrigErr always returns nil, satisfies awserr.Error interface. 7060func (s *StateMachineDeleting) OrigErr() error { 7061 return nil 7062} 7063 7064func (s *StateMachineDeleting) Error() string { 7065 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 7066} 7067 7068// Status code returns the HTTP status code for the request's response error. 7069func (s *StateMachineDeleting) StatusCode() int { 7070 return s.RespMetadata.StatusCode 7071} 7072 7073// RequestID returns the service's response RequestID for request. 7074func (s *StateMachineDeleting) RequestID() string { 7075 return s.RespMetadata.RequestID 7076} 7077 7078// The specified state machine does not exist. 7079type StateMachineDoesNotExist struct { 7080 _ struct{} `type:"structure"` 7081 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 7082 7083 Message_ *string `locationName:"message" type:"string"` 7084} 7085 7086// String returns the string representation 7087func (s StateMachineDoesNotExist) String() string { 7088 return awsutil.Prettify(s) 7089} 7090 7091// GoString returns the string representation 7092func (s StateMachineDoesNotExist) GoString() string { 7093 return s.String() 7094} 7095 7096func newErrorStateMachineDoesNotExist(v protocol.ResponseMetadata) error { 7097 return &StateMachineDoesNotExist{ 7098 RespMetadata: v, 7099 } 7100} 7101 7102// Code returns the exception type name. 7103func (s *StateMachineDoesNotExist) Code() string { 7104 return "StateMachineDoesNotExist" 7105} 7106 7107// Message returns the exception's message. 7108func (s *StateMachineDoesNotExist) Message() string { 7109 if s.Message_ != nil { 7110 return *s.Message_ 7111 } 7112 return "" 7113} 7114 7115// OrigErr always returns nil, satisfies awserr.Error interface. 7116func (s *StateMachineDoesNotExist) OrigErr() error { 7117 return nil 7118} 7119 7120func (s *StateMachineDoesNotExist) Error() string { 7121 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 7122} 7123 7124// Status code returns the HTTP status code for the request's response error. 7125func (s *StateMachineDoesNotExist) StatusCode() int { 7126 return s.RespMetadata.StatusCode 7127} 7128 7129// RequestID returns the service's response RequestID for request. 7130func (s *StateMachineDoesNotExist) RequestID() string { 7131 return s.RespMetadata.RequestID 7132} 7133 7134// The maximum number of state machines has been reached. Existing state machines 7135// must be deleted before a new state machine can be created. 7136type StateMachineLimitExceeded struct { 7137 _ struct{} `type:"structure"` 7138 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 7139 7140 Message_ *string `locationName:"message" type:"string"` 7141} 7142 7143// String returns the string representation 7144func (s StateMachineLimitExceeded) String() string { 7145 return awsutil.Prettify(s) 7146} 7147 7148// GoString returns the string representation 7149func (s StateMachineLimitExceeded) GoString() string { 7150 return s.String() 7151} 7152 7153func newErrorStateMachineLimitExceeded(v protocol.ResponseMetadata) error { 7154 return &StateMachineLimitExceeded{ 7155 RespMetadata: v, 7156 } 7157} 7158 7159// Code returns the exception type name. 7160func (s *StateMachineLimitExceeded) Code() string { 7161 return "StateMachineLimitExceeded" 7162} 7163 7164// Message returns the exception's message. 7165func (s *StateMachineLimitExceeded) Message() string { 7166 if s.Message_ != nil { 7167 return *s.Message_ 7168 } 7169 return "" 7170} 7171 7172// OrigErr always returns nil, satisfies awserr.Error interface. 7173func (s *StateMachineLimitExceeded) OrigErr() error { 7174 return nil 7175} 7176 7177func (s *StateMachineLimitExceeded) Error() string { 7178 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 7179} 7180 7181// Status code returns the HTTP status code for the request's response error. 7182func (s *StateMachineLimitExceeded) StatusCode() int { 7183 return s.RespMetadata.StatusCode 7184} 7185 7186// RequestID returns the service's response RequestID for request. 7187func (s *StateMachineLimitExceeded) RequestID() string { 7188 return s.RespMetadata.RequestID 7189} 7190 7191// Contains details about the state machine. 7192type StateMachineListItem struct { 7193 _ struct{} `type:"structure"` 7194 7195 // The date the state machine is created. 7196 // 7197 // CreationDate is a required field 7198 CreationDate *time.Time `locationName:"creationDate" type:"timestamp" required:"true"` 7199 7200 // The name of the state machine. 7201 // 7202 // A name must not contain: 7203 // 7204 // * white space 7205 // 7206 // * brackets < > { } [ ] 7207 // 7208 // * wildcard characters ? * 7209 // 7210 // * special characters " # % \ ^ | ~ ` $ & , ; : / 7211 // 7212 // * control characters (U+0000-001F, U+007F-009F) 7213 // 7214 // To enable logging with CloudWatch Logs, the name should only contain 0-9, 7215 // A-Z, a-z, - and _. 7216 // 7217 // Name is a required field 7218 Name *string `locationName:"name" min:"1" type:"string" required:"true"` 7219 7220 // The Amazon Resource Name (ARN) that identifies the state machine. 7221 // 7222 // StateMachineArn is a required field 7223 StateMachineArn *string `locationName:"stateMachineArn" min:"1" type:"string" required:"true"` 7224 7225 // Type is a required field 7226 Type *string `locationName:"type" type:"string" required:"true" enum:"StateMachineType"` 7227} 7228 7229// String returns the string representation 7230func (s StateMachineListItem) String() string { 7231 return awsutil.Prettify(s) 7232} 7233 7234// GoString returns the string representation 7235func (s StateMachineListItem) GoString() string { 7236 return s.String() 7237} 7238 7239// SetCreationDate sets the CreationDate field's value. 7240func (s *StateMachineListItem) SetCreationDate(v time.Time) *StateMachineListItem { 7241 s.CreationDate = &v 7242 return s 7243} 7244 7245// SetName sets the Name field's value. 7246func (s *StateMachineListItem) SetName(v string) *StateMachineListItem { 7247 s.Name = &v 7248 return s 7249} 7250 7251// SetStateMachineArn sets the StateMachineArn field's value. 7252func (s *StateMachineListItem) SetStateMachineArn(v string) *StateMachineListItem { 7253 s.StateMachineArn = &v 7254 return s 7255} 7256 7257// SetType sets the Type field's value. 7258func (s *StateMachineListItem) SetType(v string) *StateMachineListItem { 7259 s.Type = &v 7260 return s 7261} 7262 7263type StateMachineTypeNotSupported struct { 7264 _ struct{} `type:"structure"` 7265 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 7266 7267 Message_ *string `locationName:"message" type:"string"` 7268} 7269 7270// String returns the string representation 7271func (s StateMachineTypeNotSupported) String() string { 7272 return awsutil.Prettify(s) 7273} 7274 7275// GoString returns the string representation 7276func (s StateMachineTypeNotSupported) GoString() string { 7277 return s.String() 7278} 7279 7280func newErrorStateMachineTypeNotSupported(v protocol.ResponseMetadata) error { 7281 return &StateMachineTypeNotSupported{ 7282 RespMetadata: v, 7283 } 7284} 7285 7286// Code returns the exception type name. 7287func (s *StateMachineTypeNotSupported) Code() string { 7288 return "StateMachineTypeNotSupported" 7289} 7290 7291// Message returns the exception's message. 7292func (s *StateMachineTypeNotSupported) Message() string { 7293 if s.Message_ != nil { 7294 return *s.Message_ 7295 } 7296 return "" 7297} 7298 7299// OrigErr always returns nil, satisfies awserr.Error interface. 7300func (s *StateMachineTypeNotSupported) OrigErr() error { 7301 return nil 7302} 7303 7304func (s *StateMachineTypeNotSupported) Error() string { 7305 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 7306} 7307 7308// Status code returns the HTTP status code for the request's response error. 7309func (s *StateMachineTypeNotSupported) StatusCode() int { 7310 return s.RespMetadata.StatusCode 7311} 7312 7313// RequestID returns the service's response RequestID for request. 7314func (s *StateMachineTypeNotSupported) RequestID() string { 7315 return s.RespMetadata.RequestID 7316} 7317 7318type StopExecutionInput struct { 7319 _ struct{} `type:"structure"` 7320 7321 // A more detailed explanation of the cause of the failure. 7322 Cause *string `locationName:"cause" type:"string" sensitive:"true"` 7323 7324 // The error code of the failure. 7325 Error *string `locationName:"error" type:"string" sensitive:"true"` 7326 7327 // The Amazon Resource Name (ARN) of the execution to stop. 7328 // 7329 // ExecutionArn is a required field 7330 ExecutionArn *string `locationName:"executionArn" min:"1" type:"string" required:"true"` 7331} 7332 7333// String returns the string representation 7334func (s StopExecutionInput) String() string { 7335 return awsutil.Prettify(s) 7336} 7337 7338// GoString returns the string representation 7339func (s StopExecutionInput) GoString() string { 7340 return s.String() 7341} 7342 7343// Validate inspects the fields of the type to determine if they are valid. 7344func (s *StopExecutionInput) Validate() error { 7345 invalidParams := request.ErrInvalidParams{Context: "StopExecutionInput"} 7346 if s.ExecutionArn == nil { 7347 invalidParams.Add(request.NewErrParamRequired("ExecutionArn")) 7348 } 7349 if s.ExecutionArn != nil && len(*s.ExecutionArn) < 1 { 7350 invalidParams.Add(request.NewErrParamMinLen("ExecutionArn", 1)) 7351 } 7352 7353 if invalidParams.Len() > 0 { 7354 return invalidParams 7355 } 7356 return nil 7357} 7358 7359// SetCause sets the Cause field's value. 7360func (s *StopExecutionInput) SetCause(v string) *StopExecutionInput { 7361 s.Cause = &v 7362 return s 7363} 7364 7365// SetError sets the Error field's value. 7366func (s *StopExecutionInput) SetError(v string) *StopExecutionInput { 7367 s.Error = &v 7368 return s 7369} 7370 7371// SetExecutionArn sets the ExecutionArn field's value. 7372func (s *StopExecutionInput) SetExecutionArn(v string) *StopExecutionInput { 7373 s.ExecutionArn = &v 7374 return s 7375} 7376 7377type StopExecutionOutput struct { 7378 _ struct{} `type:"structure"` 7379 7380 // The date the execution is stopped. 7381 // 7382 // StopDate is a required field 7383 StopDate *time.Time `locationName:"stopDate" type:"timestamp" required:"true"` 7384} 7385 7386// String returns the string representation 7387func (s StopExecutionOutput) String() string { 7388 return awsutil.Prettify(s) 7389} 7390 7391// GoString returns the string representation 7392func (s StopExecutionOutput) GoString() string { 7393 return s.String() 7394} 7395 7396// SetStopDate sets the StopDate field's value. 7397func (s *StopExecutionOutput) SetStopDate(v time.Time) *StopExecutionOutput { 7398 s.StopDate = &v 7399 return s 7400} 7401 7402// Tags are key-value pairs that can be associated with Step Functions state 7403// machines and activities. 7404// 7405// An array of key-value pairs. For more information, see Using Cost Allocation 7406// Tags (https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html) 7407// in the AWS Billing and Cost Management User Guide, and Controlling Access 7408// Using IAM Tags (https://docs.aws.amazon.com/IAM/latest/UserGuide/access_iam-tags.html). 7409// 7410// Tags may only contain Unicode letters, digits, white space, or these symbols: 7411// _ . : / = + - @. 7412type Tag struct { 7413 _ struct{} `type:"structure"` 7414 7415 // The key of a tag. 7416 Key *string `locationName:"key" min:"1" type:"string"` 7417 7418 // The value of a tag. 7419 Value *string `locationName:"value" type:"string"` 7420} 7421 7422// String returns the string representation 7423func (s Tag) String() string { 7424 return awsutil.Prettify(s) 7425} 7426 7427// GoString returns the string representation 7428func (s Tag) GoString() string { 7429 return s.String() 7430} 7431 7432// Validate inspects the fields of the type to determine if they are valid. 7433func (s *Tag) Validate() error { 7434 invalidParams := request.ErrInvalidParams{Context: "Tag"} 7435 if s.Key != nil && len(*s.Key) < 1 { 7436 invalidParams.Add(request.NewErrParamMinLen("Key", 1)) 7437 } 7438 7439 if invalidParams.Len() > 0 { 7440 return invalidParams 7441 } 7442 return nil 7443} 7444 7445// SetKey sets the Key field's value. 7446func (s *Tag) SetKey(v string) *Tag { 7447 s.Key = &v 7448 return s 7449} 7450 7451// SetValue sets the Value field's value. 7452func (s *Tag) SetValue(v string) *Tag { 7453 s.Value = &v 7454 return s 7455} 7456 7457type TagResourceInput struct { 7458 _ struct{} `type:"structure"` 7459 7460 // The Amazon Resource Name (ARN) for the Step Functions state machine or activity. 7461 // 7462 // ResourceArn is a required field 7463 ResourceArn *string `locationName:"resourceArn" min:"1" type:"string" required:"true"` 7464 7465 // The list of tags to add to a resource. 7466 // 7467 // Tags may only contain Unicode letters, digits, white space, or these symbols: 7468 // _ . : / = + - @. 7469 // 7470 // Tags is a required field 7471 Tags []*Tag `locationName:"tags" type:"list" required:"true"` 7472} 7473 7474// String returns the string representation 7475func (s TagResourceInput) String() string { 7476 return awsutil.Prettify(s) 7477} 7478 7479// GoString returns the string representation 7480func (s TagResourceInput) GoString() string { 7481 return s.String() 7482} 7483 7484// Validate inspects the fields of the type to determine if they are valid. 7485func (s *TagResourceInput) Validate() error { 7486 invalidParams := request.ErrInvalidParams{Context: "TagResourceInput"} 7487 if s.ResourceArn == nil { 7488 invalidParams.Add(request.NewErrParamRequired("ResourceArn")) 7489 } 7490 if s.ResourceArn != nil && len(*s.ResourceArn) < 1 { 7491 invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1)) 7492 } 7493 if s.Tags == nil { 7494 invalidParams.Add(request.NewErrParamRequired("Tags")) 7495 } 7496 if s.Tags != nil { 7497 for i, v := range s.Tags { 7498 if v == nil { 7499 continue 7500 } 7501 if err := v.Validate(); err != nil { 7502 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) 7503 } 7504 } 7505 } 7506 7507 if invalidParams.Len() > 0 { 7508 return invalidParams 7509 } 7510 return nil 7511} 7512 7513// SetResourceArn sets the ResourceArn field's value. 7514func (s *TagResourceInput) SetResourceArn(v string) *TagResourceInput { 7515 s.ResourceArn = &v 7516 return s 7517} 7518 7519// SetTags sets the Tags field's value. 7520func (s *TagResourceInput) SetTags(v []*Tag) *TagResourceInput { 7521 s.Tags = v 7522 return s 7523} 7524 7525type TagResourceOutput struct { 7526 _ struct{} `type:"structure"` 7527} 7528 7529// String returns the string representation 7530func (s TagResourceOutput) String() string { 7531 return awsutil.Prettify(s) 7532} 7533 7534// GoString returns the string representation 7535func (s TagResourceOutput) GoString() string { 7536 return s.String() 7537} 7538 7539type TaskDoesNotExist struct { 7540 _ struct{} `type:"structure"` 7541 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 7542 7543 Message_ *string `locationName:"message" type:"string"` 7544} 7545 7546// String returns the string representation 7547func (s TaskDoesNotExist) String() string { 7548 return awsutil.Prettify(s) 7549} 7550 7551// GoString returns the string representation 7552func (s TaskDoesNotExist) GoString() string { 7553 return s.String() 7554} 7555 7556func newErrorTaskDoesNotExist(v protocol.ResponseMetadata) error { 7557 return &TaskDoesNotExist{ 7558 RespMetadata: v, 7559 } 7560} 7561 7562// Code returns the exception type name. 7563func (s *TaskDoesNotExist) Code() string { 7564 return "TaskDoesNotExist" 7565} 7566 7567// Message returns the exception's message. 7568func (s *TaskDoesNotExist) Message() string { 7569 if s.Message_ != nil { 7570 return *s.Message_ 7571 } 7572 return "" 7573} 7574 7575// OrigErr always returns nil, satisfies awserr.Error interface. 7576func (s *TaskDoesNotExist) OrigErr() error { 7577 return nil 7578} 7579 7580func (s *TaskDoesNotExist) Error() string { 7581 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 7582} 7583 7584// Status code returns the HTTP status code for the request's response error. 7585func (s *TaskDoesNotExist) StatusCode() int { 7586 return s.RespMetadata.StatusCode 7587} 7588 7589// RequestID returns the service's response RequestID for request. 7590func (s *TaskDoesNotExist) RequestID() string { 7591 return s.RespMetadata.RequestID 7592} 7593 7594// Contains details about a task failure event. 7595type TaskFailedEventDetails struct { 7596 _ struct{} `type:"structure"` 7597 7598 // A more detailed explanation of the cause of the failure. 7599 Cause *string `locationName:"cause" type:"string" sensitive:"true"` 7600 7601 // The error code of the failure. 7602 Error *string `locationName:"error" type:"string" sensitive:"true"` 7603 7604 // The service name of the resource in a task state. 7605 // 7606 // Resource is a required field 7607 Resource *string `locationName:"resource" min:"1" type:"string" required:"true"` 7608 7609 // The action of the resource called by a task state. 7610 // 7611 // ResourceType is a required field 7612 ResourceType *string `locationName:"resourceType" min:"1" type:"string" required:"true"` 7613} 7614 7615// String returns the string representation 7616func (s TaskFailedEventDetails) String() string { 7617 return awsutil.Prettify(s) 7618} 7619 7620// GoString returns the string representation 7621func (s TaskFailedEventDetails) GoString() string { 7622 return s.String() 7623} 7624 7625// SetCause sets the Cause field's value. 7626func (s *TaskFailedEventDetails) SetCause(v string) *TaskFailedEventDetails { 7627 s.Cause = &v 7628 return s 7629} 7630 7631// SetError sets the Error field's value. 7632func (s *TaskFailedEventDetails) SetError(v string) *TaskFailedEventDetails { 7633 s.Error = &v 7634 return s 7635} 7636 7637// SetResource sets the Resource field's value. 7638func (s *TaskFailedEventDetails) SetResource(v string) *TaskFailedEventDetails { 7639 s.Resource = &v 7640 return s 7641} 7642 7643// SetResourceType sets the ResourceType field's value. 7644func (s *TaskFailedEventDetails) SetResourceType(v string) *TaskFailedEventDetails { 7645 s.ResourceType = &v 7646 return s 7647} 7648 7649// Contains details about a task scheduled during an execution. 7650type TaskScheduledEventDetails struct { 7651 _ struct{} `type:"structure"` 7652 7653 // The maximum allowed duration between two heartbeats for the task. 7654 HeartbeatInSeconds *int64 `locationName:"heartbeatInSeconds" type:"long"` 7655 7656 // The JSON data passed to the resource referenced in a task state. Length constraints 7657 // apply to the payload size, and are expressed as bytes in UTF-8 encoding. 7658 // 7659 // Parameters is a required field 7660 Parameters *string `locationName:"parameters" type:"string" required:"true" sensitive:"true"` 7661 7662 // The region of the scheduled task 7663 // 7664 // Region is a required field 7665 Region *string `locationName:"region" min:"1" type:"string" required:"true"` 7666 7667 // The service name of the resource in a task state. 7668 // 7669 // Resource is a required field 7670 Resource *string `locationName:"resource" min:"1" type:"string" required:"true"` 7671 7672 // The action of the resource called by a task state. 7673 // 7674 // ResourceType is a required field 7675 ResourceType *string `locationName:"resourceType" min:"1" type:"string" required:"true"` 7676 7677 // The maximum allowed duration of the task. 7678 TimeoutInSeconds *int64 `locationName:"timeoutInSeconds" type:"long"` 7679} 7680 7681// String returns the string representation 7682func (s TaskScheduledEventDetails) String() string { 7683 return awsutil.Prettify(s) 7684} 7685 7686// GoString returns the string representation 7687func (s TaskScheduledEventDetails) GoString() string { 7688 return s.String() 7689} 7690 7691// SetHeartbeatInSeconds sets the HeartbeatInSeconds field's value. 7692func (s *TaskScheduledEventDetails) SetHeartbeatInSeconds(v int64) *TaskScheduledEventDetails { 7693 s.HeartbeatInSeconds = &v 7694 return s 7695} 7696 7697// SetParameters sets the Parameters field's value. 7698func (s *TaskScheduledEventDetails) SetParameters(v string) *TaskScheduledEventDetails { 7699 s.Parameters = &v 7700 return s 7701} 7702 7703// SetRegion sets the Region field's value. 7704func (s *TaskScheduledEventDetails) SetRegion(v string) *TaskScheduledEventDetails { 7705 s.Region = &v 7706 return s 7707} 7708 7709// SetResource sets the Resource field's value. 7710func (s *TaskScheduledEventDetails) SetResource(v string) *TaskScheduledEventDetails { 7711 s.Resource = &v 7712 return s 7713} 7714 7715// SetResourceType sets the ResourceType field's value. 7716func (s *TaskScheduledEventDetails) SetResourceType(v string) *TaskScheduledEventDetails { 7717 s.ResourceType = &v 7718 return s 7719} 7720 7721// SetTimeoutInSeconds sets the TimeoutInSeconds field's value. 7722func (s *TaskScheduledEventDetails) SetTimeoutInSeconds(v int64) *TaskScheduledEventDetails { 7723 s.TimeoutInSeconds = &v 7724 return s 7725} 7726 7727// Contains details about a task that failed to start during an execution. 7728type TaskStartFailedEventDetails struct { 7729 _ struct{} `type:"structure"` 7730 7731 // A more detailed explanation of the cause of the failure. 7732 Cause *string `locationName:"cause" type:"string" sensitive:"true"` 7733 7734 // The error code of the failure. 7735 Error *string `locationName:"error" type:"string" sensitive:"true"` 7736 7737 // The service name of the resource in a task state. 7738 // 7739 // Resource is a required field 7740 Resource *string `locationName:"resource" min:"1" type:"string" required:"true"` 7741 7742 // The action of the resource called by a task state. 7743 // 7744 // ResourceType is a required field 7745 ResourceType *string `locationName:"resourceType" min:"1" type:"string" required:"true"` 7746} 7747 7748// String returns the string representation 7749func (s TaskStartFailedEventDetails) String() string { 7750 return awsutil.Prettify(s) 7751} 7752 7753// GoString returns the string representation 7754func (s TaskStartFailedEventDetails) GoString() string { 7755 return s.String() 7756} 7757 7758// SetCause sets the Cause field's value. 7759func (s *TaskStartFailedEventDetails) SetCause(v string) *TaskStartFailedEventDetails { 7760 s.Cause = &v 7761 return s 7762} 7763 7764// SetError sets the Error field's value. 7765func (s *TaskStartFailedEventDetails) SetError(v string) *TaskStartFailedEventDetails { 7766 s.Error = &v 7767 return s 7768} 7769 7770// SetResource sets the Resource field's value. 7771func (s *TaskStartFailedEventDetails) SetResource(v string) *TaskStartFailedEventDetails { 7772 s.Resource = &v 7773 return s 7774} 7775 7776// SetResourceType sets the ResourceType field's value. 7777func (s *TaskStartFailedEventDetails) SetResourceType(v string) *TaskStartFailedEventDetails { 7778 s.ResourceType = &v 7779 return s 7780} 7781 7782// Contains details about the start of a task during an execution. 7783type TaskStartedEventDetails struct { 7784 _ struct{} `type:"structure"` 7785 7786 // The service name of the resource in a task state. 7787 // 7788 // Resource is a required field 7789 Resource *string `locationName:"resource" min:"1" type:"string" required:"true"` 7790 7791 // The action of the resource called by a task state. 7792 // 7793 // ResourceType is a required field 7794 ResourceType *string `locationName:"resourceType" min:"1" type:"string" required:"true"` 7795} 7796 7797// String returns the string representation 7798func (s TaskStartedEventDetails) String() string { 7799 return awsutil.Prettify(s) 7800} 7801 7802// GoString returns the string representation 7803func (s TaskStartedEventDetails) GoString() string { 7804 return s.String() 7805} 7806 7807// SetResource sets the Resource field's value. 7808func (s *TaskStartedEventDetails) SetResource(v string) *TaskStartedEventDetails { 7809 s.Resource = &v 7810 return s 7811} 7812 7813// SetResourceType sets the ResourceType field's value. 7814func (s *TaskStartedEventDetails) SetResourceType(v string) *TaskStartedEventDetails { 7815 s.ResourceType = &v 7816 return s 7817} 7818 7819// Contains details about a task that failed to submit during an execution. 7820type TaskSubmitFailedEventDetails struct { 7821 _ struct{} `type:"structure"` 7822 7823 // A more detailed explanation of the cause of the failure. 7824 Cause *string `locationName:"cause" type:"string" sensitive:"true"` 7825 7826 // The error code of the failure. 7827 Error *string `locationName:"error" type:"string" sensitive:"true"` 7828 7829 // The service name of the resource in a task state. 7830 // 7831 // Resource is a required field 7832 Resource *string `locationName:"resource" min:"1" type:"string" required:"true"` 7833 7834 // The action of the resource called by a task state. 7835 // 7836 // ResourceType is a required field 7837 ResourceType *string `locationName:"resourceType" min:"1" type:"string" required:"true"` 7838} 7839 7840// String returns the string representation 7841func (s TaskSubmitFailedEventDetails) String() string { 7842 return awsutil.Prettify(s) 7843} 7844 7845// GoString returns the string representation 7846func (s TaskSubmitFailedEventDetails) GoString() string { 7847 return s.String() 7848} 7849 7850// SetCause sets the Cause field's value. 7851func (s *TaskSubmitFailedEventDetails) SetCause(v string) *TaskSubmitFailedEventDetails { 7852 s.Cause = &v 7853 return s 7854} 7855 7856// SetError sets the Error field's value. 7857func (s *TaskSubmitFailedEventDetails) SetError(v string) *TaskSubmitFailedEventDetails { 7858 s.Error = &v 7859 return s 7860} 7861 7862// SetResource sets the Resource field's value. 7863func (s *TaskSubmitFailedEventDetails) SetResource(v string) *TaskSubmitFailedEventDetails { 7864 s.Resource = &v 7865 return s 7866} 7867 7868// SetResourceType sets the ResourceType field's value. 7869func (s *TaskSubmitFailedEventDetails) SetResourceType(v string) *TaskSubmitFailedEventDetails { 7870 s.ResourceType = &v 7871 return s 7872} 7873 7874// Contains details about a task submitted to a resource . 7875type TaskSubmittedEventDetails struct { 7876 _ struct{} `type:"structure"` 7877 7878 // The response from a resource when a task has started. Length constraints 7879 // apply to the payload size, and are expressed as bytes in UTF-8 encoding. 7880 Output *string `locationName:"output" type:"string" sensitive:"true"` 7881 7882 // Contains details about the output of an execution history event. 7883 OutputDetails *HistoryEventExecutionDataDetails `locationName:"outputDetails" type:"structure"` 7884 7885 // The service name of the resource in a task state. 7886 // 7887 // Resource is a required field 7888 Resource *string `locationName:"resource" min:"1" type:"string" required:"true"` 7889 7890 // The action of the resource called by a task state. 7891 // 7892 // ResourceType is a required field 7893 ResourceType *string `locationName:"resourceType" min:"1" type:"string" required:"true"` 7894} 7895 7896// String returns the string representation 7897func (s TaskSubmittedEventDetails) String() string { 7898 return awsutil.Prettify(s) 7899} 7900 7901// GoString returns the string representation 7902func (s TaskSubmittedEventDetails) GoString() string { 7903 return s.String() 7904} 7905 7906// SetOutput sets the Output field's value. 7907func (s *TaskSubmittedEventDetails) SetOutput(v string) *TaskSubmittedEventDetails { 7908 s.Output = &v 7909 return s 7910} 7911 7912// SetOutputDetails sets the OutputDetails field's value. 7913func (s *TaskSubmittedEventDetails) SetOutputDetails(v *HistoryEventExecutionDataDetails) *TaskSubmittedEventDetails { 7914 s.OutputDetails = v 7915 return s 7916} 7917 7918// SetResource sets the Resource field's value. 7919func (s *TaskSubmittedEventDetails) SetResource(v string) *TaskSubmittedEventDetails { 7920 s.Resource = &v 7921 return s 7922} 7923 7924// SetResourceType sets the ResourceType field's value. 7925func (s *TaskSubmittedEventDetails) SetResourceType(v string) *TaskSubmittedEventDetails { 7926 s.ResourceType = &v 7927 return s 7928} 7929 7930// Contains details about the successful completion of a task state. 7931type TaskSucceededEventDetails struct { 7932 _ struct{} `type:"structure"` 7933 7934 // The full JSON response from a resource when a task has succeeded. This response 7935 // becomes the output of the related task. Length constraints apply to the payload 7936 // size, and are expressed as bytes in UTF-8 encoding. 7937 Output *string `locationName:"output" type:"string" sensitive:"true"` 7938 7939 // Contains details about the output of an execution history event. 7940 OutputDetails *HistoryEventExecutionDataDetails `locationName:"outputDetails" type:"structure"` 7941 7942 // The service name of the resource in a task state. 7943 // 7944 // Resource is a required field 7945 Resource *string `locationName:"resource" min:"1" type:"string" required:"true"` 7946 7947 // The action of the resource called by a task state. 7948 // 7949 // ResourceType is a required field 7950 ResourceType *string `locationName:"resourceType" min:"1" type:"string" required:"true"` 7951} 7952 7953// String returns the string representation 7954func (s TaskSucceededEventDetails) String() string { 7955 return awsutil.Prettify(s) 7956} 7957 7958// GoString returns the string representation 7959func (s TaskSucceededEventDetails) GoString() string { 7960 return s.String() 7961} 7962 7963// SetOutput sets the Output field's value. 7964func (s *TaskSucceededEventDetails) SetOutput(v string) *TaskSucceededEventDetails { 7965 s.Output = &v 7966 return s 7967} 7968 7969// SetOutputDetails sets the OutputDetails field's value. 7970func (s *TaskSucceededEventDetails) SetOutputDetails(v *HistoryEventExecutionDataDetails) *TaskSucceededEventDetails { 7971 s.OutputDetails = v 7972 return s 7973} 7974 7975// SetResource sets the Resource field's value. 7976func (s *TaskSucceededEventDetails) SetResource(v string) *TaskSucceededEventDetails { 7977 s.Resource = &v 7978 return s 7979} 7980 7981// SetResourceType sets the ResourceType field's value. 7982func (s *TaskSucceededEventDetails) SetResourceType(v string) *TaskSucceededEventDetails { 7983 s.ResourceType = &v 7984 return s 7985} 7986 7987type TaskTimedOut struct { 7988 _ struct{} `type:"structure"` 7989 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 7990 7991 Message_ *string `locationName:"message" type:"string"` 7992} 7993 7994// String returns the string representation 7995func (s TaskTimedOut) String() string { 7996 return awsutil.Prettify(s) 7997} 7998 7999// GoString returns the string representation 8000func (s TaskTimedOut) GoString() string { 8001 return s.String() 8002} 8003 8004func newErrorTaskTimedOut(v protocol.ResponseMetadata) error { 8005 return &TaskTimedOut{ 8006 RespMetadata: v, 8007 } 8008} 8009 8010// Code returns the exception type name. 8011func (s *TaskTimedOut) Code() string { 8012 return "TaskTimedOut" 8013} 8014 8015// Message returns the exception's message. 8016func (s *TaskTimedOut) Message() string { 8017 if s.Message_ != nil { 8018 return *s.Message_ 8019 } 8020 return "" 8021} 8022 8023// OrigErr always returns nil, satisfies awserr.Error interface. 8024func (s *TaskTimedOut) OrigErr() error { 8025 return nil 8026} 8027 8028func (s *TaskTimedOut) Error() string { 8029 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 8030} 8031 8032// Status code returns the HTTP status code for the request's response error. 8033func (s *TaskTimedOut) StatusCode() int { 8034 return s.RespMetadata.StatusCode 8035} 8036 8037// RequestID returns the service's response RequestID for request. 8038func (s *TaskTimedOut) RequestID() string { 8039 return s.RespMetadata.RequestID 8040} 8041 8042// Contains details about a resource timeout that occurred during an execution. 8043type TaskTimedOutEventDetails struct { 8044 _ struct{} `type:"structure"` 8045 8046 // A more detailed explanation of the cause of the failure. 8047 Cause *string `locationName:"cause" type:"string" sensitive:"true"` 8048 8049 // The error code of the failure. 8050 Error *string `locationName:"error" type:"string" sensitive:"true"` 8051 8052 // The service name of the resource in a task state. 8053 // 8054 // Resource is a required field 8055 Resource *string `locationName:"resource" min:"1" type:"string" required:"true"` 8056 8057 // The action of the resource called by a task state. 8058 // 8059 // ResourceType is a required field 8060 ResourceType *string `locationName:"resourceType" min:"1" type:"string" required:"true"` 8061} 8062 8063// String returns the string representation 8064func (s TaskTimedOutEventDetails) String() string { 8065 return awsutil.Prettify(s) 8066} 8067 8068// GoString returns the string representation 8069func (s TaskTimedOutEventDetails) GoString() string { 8070 return s.String() 8071} 8072 8073// SetCause sets the Cause field's value. 8074func (s *TaskTimedOutEventDetails) SetCause(v string) *TaskTimedOutEventDetails { 8075 s.Cause = &v 8076 return s 8077} 8078 8079// SetError sets the Error field's value. 8080func (s *TaskTimedOutEventDetails) SetError(v string) *TaskTimedOutEventDetails { 8081 s.Error = &v 8082 return s 8083} 8084 8085// SetResource sets the Resource field's value. 8086func (s *TaskTimedOutEventDetails) SetResource(v string) *TaskTimedOutEventDetails { 8087 s.Resource = &v 8088 return s 8089} 8090 8091// SetResourceType sets the ResourceType field's value. 8092func (s *TaskTimedOutEventDetails) SetResourceType(v string) *TaskTimedOutEventDetails { 8093 s.ResourceType = &v 8094 return s 8095} 8096 8097// You've exceeded the number of tags allowed for a resource. See the Limits 8098// Topic (https://docs.aws.amazon.com/step-functions/latest/dg/limits.html) 8099// in the AWS Step Functions Developer Guide. 8100type TooManyTags struct { 8101 _ struct{} `type:"structure"` 8102 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 8103 8104 Message_ *string `locationName:"message" type:"string"` 8105 8106 ResourceName *string `locationName:"resourceName" min:"1" type:"string"` 8107} 8108 8109// String returns the string representation 8110func (s TooManyTags) String() string { 8111 return awsutil.Prettify(s) 8112} 8113 8114// GoString returns the string representation 8115func (s TooManyTags) GoString() string { 8116 return s.String() 8117} 8118 8119func newErrorTooManyTags(v protocol.ResponseMetadata) error { 8120 return &TooManyTags{ 8121 RespMetadata: v, 8122 } 8123} 8124 8125// Code returns the exception type name. 8126func (s *TooManyTags) Code() string { 8127 return "TooManyTags" 8128} 8129 8130// Message returns the exception's message. 8131func (s *TooManyTags) Message() string { 8132 if s.Message_ != nil { 8133 return *s.Message_ 8134 } 8135 return "" 8136} 8137 8138// OrigErr always returns nil, satisfies awserr.Error interface. 8139func (s *TooManyTags) OrigErr() error { 8140 return nil 8141} 8142 8143func (s *TooManyTags) Error() string { 8144 return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) 8145} 8146 8147// Status code returns the HTTP status code for the request's response error. 8148func (s *TooManyTags) StatusCode() int { 8149 return s.RespMetadata.StatusCode 8150} 8151 8152// RequestID returns the service's response RequestID for request. 8153func (s *TooManyTags) RequestID() string { 8154 return s.RespMetadata.RequestID 8155} 8156 8157// Selects whether or not the state machine's AWS X-Ray tracing is enabled. 8158// Default is false 8159type TracingConfiguration struct { 8160 _ struct{} `type:"structure"` 8161 8162 // When set to true, AWS X-Ray tracing is enabled. 8163 Enabled *bool `locationName:"enabled" type:"boolean"` 8164} 8165 8166// String returns the string representation 8167func (s TracingConfiguration) String() string { 8168 return awsutil.Prettify(s) 8169} 8170 8171// GoString returns the string representation 8172func (s TracingConfiguration) GoString() string { 8173 return s.String() 8174} 8175 8176// SetEnabled sets the Enabled field's value. 8177func (s *TracingConfiguration) SetEnabled(v bool) *TracingConfiguration { 8178 s.Enabled = &v 8179 return s 8180} 8181 8182type UntagResourceInput struct { 8183 _ struct{} `type:"structure"` 8184 8185 // The Amazon Resource Name (ARN) for the Step Functions state machine or activity. 8186 // 8187 // ResourceArn is a required field 8188 ResourceArn *string `locationName:"resourceArn" min:"1" type:"string" required:"true"` 8189 8190 // The list of tags to remove from the resource. 8191 // 8192 // TagKeys is a required field 8193 TagKeys []*string `locationName:"tagKeys" type:"list" required:"true"` 8194} 8195 8196// String returns the string representation 8197func (s UntagResourceInput) String() string { 8198 return awsutil.Prettify(s) 8199} 8200 8201// GoString returns the string representation 8202func (s UntagResourceInput) GoString() string { 8203 return s.String() 8204} 8205 8206// Validate inspects the fields of the type to determine if they are valid. 8207func (s *UntagResourceInput) Validate() error { 8208 invalidParams := request.ErrInvalidParams{Context: "UntagResourceInput"} 8209 if s.ResourceArn == nil { 8210 invalidParams.Add(request.NewErrParamRequired("ResourceArn")) 8211 } 8212 if s.ResourceArn != nil && len(*s.ResourceArn) < 1 { 8213 invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1)) 8214 } 8215 if s.TagKeys == nil { 8216 invalidParams.Add(request.NewErrParamRequired("TagKeys")) 8217 } 8218 8219 if invalidParams.Len() > 0 { 8220 return invalidParams 8221 } 8222 return nil 8223} 8224 8225// SetResourceArn sets the ResourceArn field's value. 8226func (s *UntagResourceInput) SetResourceArn(v string) *UntagResourceInput { 8227 s.ResourceArn = &v 8228 return s 8229} 8230 8231// SetTagKeys sets the TagKeys field's value. 8232func (s *UntagResourceInput) SetTagKeys(v []*string) *UntagResourceInput { 8233 s.TagKeys = v 8234 return s 8235} 8236 8237type UntagResourceOutput struct { 8238 _ struct{} `type:"structure"` 8239} 8240 8241// String returns the string representation 8242func (s UntagResourceOutput) String() string { 8243 return awsutil.Prettify(s) 8244} 8245 8246// GoString returns the string representation 8247func (s UntagResourceOutput) GoString() string { 8248 return s.String() 8249} 8250 8251type UpdateStateMachineInput struct { 8252 _ struct{} `type:"structure"` 8253 8254 // The Amazon States Language definition of the state machine. See Amazon States 8255 // Language (https://docs.aws.amazon.com/step-functions/latest/dg/concepts-amazon-states-language.html). 8256 Definition *string `locationName:"definition" min:"1" type:"string" sensitive:"true"` 8257 8258 // The LoggingConfiguration data type is used to set CloudWatch Logs options. 8259 LoggingConfiguration *LoggingConfiguration `locationName:"loggingConfiguration" type:"structure"` 8260 8261 // The Amazon Resource Name (ARN) of the IAM role of the state machine. 8262 RoleArn *string `locationName:"roleArn" min:"1" type:"string"` 8263 8264 // The Amazon Resource Name (ARN) of the state machine. 8265 // 8266 // StateMachineArn is a required field 8267 StateMachineArn *string `locationName:"stateMachineArn" min:"1" type:"string" required:"true"` 8268 8269 // Selects whether AWS X-Ray tracing is enabled. 8270 TracingConfiguration *TracingConfiguration `locationName:"tracingConfiguration" type:"structure"` 8271} 8272 8273// String returns the string representation 8274func (s UpdateStateMachineInput) String() string { 8275 return awsutil.Prettify(s) 8276} 8277 8278// GoString returns the string representation 8279func (s UpdateStateMachineInput) GoString() string { 8280 return s.String() 8281} 8282 8283// Validate inspects the fields of the type to determine if they are valid. 8284func (s *UpdateStateMachineInput) Validate() error { 8285 invalidParams := request.ErrInvalidParams{Context: "UpdateStateMachineInput"} 8286 if s.Definition != nil && len(*s.Definition) < 1 { 8287 invalidParams.Add(request.NewErrParamMinLen("Definition", 1)) 8288 } 8289 if s.RoleArn != nil && len(*s.RoleArn) < 1 { 8290 invalidParams.Add(request.NewErrParamMinLen("RoleArn", 1)) 8291 } 8292 if s.StateMachineArn == nil { 8293 invalidParams.Add(request.NewErrParamRequired("StateMachineArn")) 8294 } 8295 if s.StateMachineArn != nil && len(*s.StateMachineArn) < 1 { 8296 invalidParams.Add(request.NewErrParamMinLen("StateMachineArn", 1)) 8297 } 8298 if s.LoggingConfiguration != nil { 8299 if err := s.LoggingConfiguration.Validate(); err != nil { 8300 invalidParams.AddNested("LoggingConfiguration", err.(request.ErrInvalidParams)) 8301 } 8302 } 8303 8304 if invalidParams.Len() > 0 { 8305 return invalidParams 8306 } 8307 return nil 8308} 8309 8310// SetDefinition sets the Definition field's value. 8311func (s *UpdateStateMachineInput) SetDefinition(v string) *UpdateStateMachineInput { 8312 s.Definition = &v 8313 return s 8314} 8315 8316// SetLoggingConfiguration sets the LoggingConfiguration field's value. 8317func (s *UpdateStateMachineInput) SetLoggingConfiguration(v *LoggingConfiguration) *UpdateStateMachineInput { 8318 s.LoggingConfiguration = v 8319 return s 8320} 8321 8322// SetRoleArn sets the RoleArn field's value. 8323func (s *UpdateStateMachineInput) SetRoleArn(v string) *UpdateStateMachineInput { 8324 s.RoleArn = &v 8325 return s 8326} 8327 8328// SetStateMachineArn sets the StateMachineArn field's value. 8329func (s *UpdateStateMachineInput) SetStateMachineArn(v string) *UpdateStateMachineInput { 8330 s.StateMachineArn = &v 8331 return s 8332} 8333 8334// SetTracingConfiguration sets the TracingConfiguration field's value. 8335func (s *UpdateStateMachineInput) SetTracingConfiguration(v *TracingConfiguration) *UpdateStateMachineInput { 8336 s.TracingConfiguration = v 8337 return s 8338} 8339 8340type UpdateStateMachineOutput struct { 8341 _ struct{} `type:"structure"` 8342 8343 // The date and time the state machine was updated. 8344 // 8345 // UpdateDate is a required field 8346 UpdateDate *time.Time `locationName:"updateDate" type:"timestamp" required:"true"` 8347} 8348 8349// String returns the string representation 8350func (s UpdateStateMachineOutput) String() string { 8351 return awsutil.Prettify(s) 8352} 8353 8354// GoString returns the string representation 8355func (s UpdateStateMachineOutput) GoString() string { 8356 return s.String() 8357} 8358 8359// SetUpdateDate sets the UpdateDate field's value. 8360func (s *UpdateStateMachineOutput) SetUpdateDate(v time.Time) *UpdateStateMachineOutput { 8361 s.UpdateDate = &v 8362 return s 8363} 8364 8365const ( 8366 // ExecutionStatusRunning is a ExecutionStatus enum value 8367 ExecutionStatusRunning = "RUNNING" 8368 8369 // ExecutionStatusSucceeded is a ExecutionStatus enum value 8370 ExecutionStatusSucceeded = "SUCCEEDED" 8371 8372 // ExecutionStatusFailed is a ExecutionStatus enum value 8373 ExecutionStatusFailed = "FAILED" 8374 8375 // ExecutionStatusTimedOut is a ExecutionStatus enum value 8376 ExecutionStatusTimedOut = "TIMED_OUT" 8377 8378 // ExecutionStatusAborted is a ExecutionStatus enum value 8379 ExecutionStatusAborted = "ABORTED" 8380) 8381 8382// ExecutionStatus_Values returns all elements of the ExecutionStatus enum 8383func ExecutionStatus_Values() []string { 8384 return []string{ 8385 ExecutionStatusRunning, 8386 ExecutionStatusSucceeded, 8387 ExecutionStatusFailed, 8388 ExecutionStatusTimedOut, 8389 ExecutionStatusAborted, 8390 } 8391} 8392 8393const ( 8394 // HistoryEventTypeActivityFailed is a HistoryEventType enum value 8395 HistoryEventTypeActivityFailed = "ActivityFailed" 8396 8397 // HistoryEventTypeActivityScheduled is a HistoryEventType enum value 8398 HistoryEventTypeActivityScheduled = "ActivityScheduled" 8399 8400 // HistoryEventTypeActivityScheduleFailed is a HistoryEventType enum value 8401 HistoryEventTypeActivityScheduleFailed = "ActivityScheduleFailed" 8402 8403 // HistoryEventTypeActivityStarted is a HistoryEventType enum value 8404 HistoryEventTypeActivityStarted = "ActivityStarted" 8405 8406 // HistoryEventTypeActivitySucceeded is a HistoryEventType enum value 8407 HistoryEventTypeActivitySucceeded = "ActivitySucceeded" 8408 8409 // HistoryEventTypeActivityTimedOut is a HistoryEventType enum value 8410 HistoryEventTypeActivityTimedOut = "ActivityTimedOut" 8411 8412 // HistoryEventTypeChoiceStateEntered is a HistoryEventType enum value 8413 HistoryEventTypeChoiceStateEntered = "ChoiceStateEntered" 8414 8415 // HistoryEventTypeChoiceStateExited is a HistoryEventType enum value 8416 HistoryEventTypeChoiceStateExited = "ChoiceStateExited" 8417 8418 // HistoryEventTypeExecutionAborted is a HistoryEventType enum value 8419 HistoryEventTypeExecutionAborted = "ExecutionAborted" 8420 8421 // HistoryEventTypeExecutionFailed is a HistoryEventType enum value 8422 HistoryEventTypeExecutionFailed = "ExecutionFailed" 8423 8424 // HistoryEventTypeExecutionStarted is a HistoryEventType enum value 8425 HistoryEventTypeExecutionStarted = "ExecutionStarted" 8426 8427 // HistoryEventTypeExecutionSucceeded is a HistoryEventType enum value 8428 HistoryEventTypeExecutionSucceeded = "ExecutionSucceeded" 8429 8430 // HistoryEventTypeExecutionTimedOut is a HistoryEventType enum value 8431 HistoryEventTypeExecutionTimedOut = "ExecutionTimedOut" 8432 8433 // HistoryEventTypeFailStateEntered is a HistoryEventType enum value 8434 HistoryEventTypeFailStateEntered = "FailStateEntered" 8435 8436 // HistoryEventTypeLambdaFunctionFailed is a HistoryEventType enum value 8437 HistoryEventTypeLambdaFunctionFailed = "LambdaFunctionFailed" 8438 8439 // HistoryEventTypeLambdaFunctionScheduled is a HistoryEventType enum value 8440 HistoryEventTypeLambdaFunctionScheduled = "LambdaFunctionScheduled" 8441 8442 // HistoryEventTypeLambdaFunctionScheduleFailed is a HistoryEventType enum value 8443 HistoryEventTypeLambdaFunctionScheduleFailed = "LambdaFunctionScheduleFailed" 8444 8445 // HistoryEventTypeLambdaFunctionStarted is a HistoryEventType enum value 8446 HistoryEventTypeLambdaFunctionStarted = "LambdaFunctionStarted" 8447 8448 // HistoryEventTypeLambdaFunctionStartFailed is a HistoryEventType enum value 8449 HistoryEventTypeLambdaFunctionStartFailed = "LambdaFunctionStartFailed" 8450 8451 // HistoryEventTypeLambdaFunctionSucceeded is a HistoryEventType enum value 8452 HistoryEventTypeLambdaFunctionSucceeded = "LambdaFunctionSucceeded" 8453 8454 // HistoryEventTypeLambdaFunctionTimedOut is a HistoryEventType enum value 8455 HistoryEventTypeLambdaFunctionTimedOut = "LambdaFunctionTimedOut" 8456 8457 // HistoryEventTypeMapIterationAborted is a HistoryEventType enum value 8458 HistoryEventTypeMapIterationAborted = "MapIterationAborted" 8459 8460 // HistoryEventTypeMapIterationFailed is a HistoryEventType enum value 8461 HistoryEventTypeMapIterationFailed = "MapIterationFailed" 8462 8463 // HistoryEventTypeMapIterationStarted is a HistoryEventType enum value 8464 HistoryEventTypeMapIterationStarted = "MapIterationStarted" 8465 8466 // HistoryEventTypeMapIterationSucceeded is a HistoryEventType enum value 8467 HistoryEventTypeMapIterationSucceeded = "MapIterationSucceeded" 8468 8469 // HistoryEventTypeMapStateAborted is a HistoryEventType enum value 8470 HistoryEventTypeMapStateAborted = "MapStateAborted" 8471 8472 // HistoryEventTypeMapStateEntered is a HistoryEventType enum value 8473 HistoryEventTypeMapStateEntered = "MapStateEntered" 8474 8475 // HistoryEventTypeMapStateExited is a HistoryEventType enum value 8476 HistoryEventTypeMapStateExited = "MapStateExited" 8477 8478 // HistoryEventTypeMapStateFailed is a HistoryEventType enum value 8479 HistoryEventTypeMapStateFailed = "MapStateFailed" 8480 8481 // HistoryEventTypeMapStateStarted is a HistoryEventType enum value 8482 HistoryEventTypeMapStateStarted = "MapStateStarted" 8483 8484 // HistoryEventTypeMapStateSucceeded is a HistoryEventType enum value 8485 HistoryEventTypeMapStateSucceeded = "MapStateSucceeded" 8486 8487 // HistoryEventTypeParallelStateAborted is a HistoryEventType enum value 8488 HistoryEventTypeParallelStateAborted = "ParallelStateAborted" 8489 8490 // HistoryEventTypeParallelStateEntered is a HistoryEventType enum value 8491 HistoryEventTypeParallelStateEntered = "ParallelStateEntered" 8492 8493 // HistoryEventTypeParallelStateExited is a HistoryEventType enum value 8494 HistoryEventTypeParallelStateExited = "ParallelStateExited" 8495 8496 // HistoryEventTypeParallelStateFailed is a HistoryEventType enum value 8497 HistoryEventTypeParallelStateFailed = "ParallelStateFailed" 8498 8499 // HistoryEventTypeParallelStateStarted is a HistoryEventType enum value 8500 HistoryEventTypeParallelStateStarted = "ParallelStateStarted" 8501 8502 // HistoryEventTypeParallelStateSucceeded is a HistoryEventType enum value 8503 HistoryEventTypeParallelStateSucceeded = "ParallelStateSucceeded" 8504 8505 // HistoryEventTypePassStateEntered is a HistoryEventType enum value 8506 HistoryEventTypePassStateEntered = "PassStateEntered" 8507 8508 // HistoryEventTypePassStateExited is a HistoryEventType enum value 8509 HistoryEventTypePassStateExited = "PassStateExited" 8510 8511 // HistoryEventTypeSucceedStateEntered is a HistoryEventType enum value 8512 HistoryEventTypeSucceedStateEntered = "SucceedStateEntered" 8513 8514 // HistoryEventTypeSucceedStateExited is a HistoryEventType enum value 8515 HistoryEventTypeSucceedStateExited = "SucceedStateExited" 8516 8517 // HistoryEventTypeTaskFailed is a HistoryEventType enum value 8518 HistoryEventTypeTaskFailed = "TaskFailed" 8519 8520 // HistoryEventTypeTaskScheduled is a HistoryEventType enum value 8521 HistoryEventTypeTaskScheduled = "TaskScheduled" 8522 8523 // HistoryEventTypeTaskStarted is a HistoryEventType enum value 8524 HistoryEventTypeTaskStarted = "TaskStarted" 8525 8526 // HistoryEventTypeTaskStartFailed is a HistoryEventType enum value 8527 HistoryEventTypeTaskStartFailed = "TaskStartFailed" 8528 8529 // HistoryEventTypeTaskStateAborted is a HistoryEventType enum value 8530 HistoryEventTypeTaskStateAborted = "TaskStateAborted" 8531 8532 // HistoryEventTypeTaskStateEntered is a HistoryEventType enum value 8533 HistoryEventTypeTaskStateEntered = "TaskStateEntered" 8534 8535 // HistoryEventTypeTaskStateExited is a HistoryEventType enum value 8536 HistoryEventTypeTaskStateExited = "TaskStateExited" 8537 8538 // HistoryEventTypeTaskSubmitFailed is a HistoryEventType enum value 8539 HistoryEventTypeTaskSubmitFailed = "TaskSubmitFailed" 8540 8541 // HistoryEventTypeTaskSubmitted is a HistoryEventType enum value 8542 HistoryEventTypeTaskSubmitted = "TaskSubmitted" 8543 8544 // HistoryEventTypeTaskSucceeded is a HistoryEventType enum value 8545 HistoryEventTypeTaskSucceeded = "TaskSucceeded" 8546 8547 // HistoryEventTypeTaskTimedOut is a HistoryEventType enum value 8548 HistoryEventTypeTaskTimedOut = "TaskTimedOut" 8549 8550 // HistoryEventTypeWaitStateAborted is a HistoryEventType enum value 8551 HistoryEventTypeWaitStateAborted = "WaitStateAborted" 8552 8553 // HistoryEventTypeWaitStateEntered is a HistoryEventType enum value 8554 HistoryEventTypeWaitStateEntered = "WaitStateEntered" 8555 8556 // HistoryEventTypeWaitStateExited is a HistoryEventType enum value 8557 HistoryEventTypeWaitStateExited = "WaitStateExited" 8558) 8559 8560// HistoryEventType_Values returns all elements of the HistoryEventType enum 8561func HistoryEventType_Values() []string { 8562 return []string{ 8563 HistoryEventTypeActivityFailed, 8564 HistoryEventTypeActivityScheduled, 8565 HistoryEventTypeActivityScheduleFailed, 8566 HistoryEventTypeActivityStarted, 8567 HistoryEventTypeActivitySucceeded, 8568 HistoryEventTypeActivityTimedOut, 8569 HistoryEventTypeChoiceStateEntered, 8570 HistoryEventTypeChoiceStateExited, 8571 HistoryEventTypeExecutionAborted, 8572 HistoryEventTypeExecutionFailed, 8573 HistoryEventTypeExecutionStarted, 8574 HistoryEventTypeExecutionSucceeded, 8575 HistoryEventTypeExecutionTimedOut, 8576 HistoryEventTypeFailStateEntered, 8577 HistoryEventTypeLambdaFunctionFailed, 8578 HistoryEventTypeLambdaFunctionScheduled, 8579 HistoryEventTypeLambdaFunctionScheduleFailed, 8580 HistoryEventTypeLambdaFunctionStarted, 8581 HistoryEventTypeLambdaFunctionStartFailed, 8582 HistoryEventTypeLambdaFunctionSucceeded, 8583 HistoryEventTypeLambdaFunctionTimedOut, 8584 HistoryEventTypeMapIterationAborted, 8585 HistoryEventTypeMapIterationFailed, 8586 HistoryEventTypeMapIterationStarted, 8587 HistoryEventTypeMapIterationSucceeded, 8588 HistoryEventTypeMapStateAborted, 8589 HistoryEventTypeMapStateEntered, 8590 HistoryEventTypeMapStateExited, 8591 HistoryEventTypeMapStateFailed, 8592 HistoryEventTypeMapStateStarted, 8593 HistoryEventTypeMapStateSucceeded, 8594 HistoryEventTypeParallelStateAborted, 8595 HistoryEventTypeParallelStateEntered, 8596 HistoryEventTypeParallelStateExited, 8597 HistoryEventTypeParallelStateFailed, 8598 HistoryEventTypeParallelStateStarted, 8599 HistoryEventTypeParallelStateSucceeded, 8600 HistoryEventTypePassStateEntered, 8601 HistoryEventTypePassStateExited, 8602 HistoryEventTypeSucceedStateEntered, 8603 HistoryEventTypeSucceedStateExited, 8604 HistoryEventTypeTaskFailed, 8605 HistoryEventTypeTaskScheduled, 8606 HistoryEventTypeTaskStarted, 8607 HistoryEventTypeTaskStartFailed, 8608 HistoryEventTypeTaskStateAborted, 8609 HistoryEventTypeTaskStateEntered, 8610 HistoryEventTypeTaskStateExited, 8611 HistoryEventTypeTaskSubmitFailed, 8612 HistoryEventTypeTaskSubmitted, 8613 HistoryEventTypeTaskSucceeded, 8614 HistoryEventTypeTaskTimedOut, 8615 HistoryEventTypeWaitStateAborted, 8616 HistoryEventTypeWaitStateEntered, 8617 HistoryEventTypeWaitStateExited, 8618 } 8619} 8620 8621const ( 8622 // LogLevelAll is a LogLevel enum value 8623 LogLevelAll = "ALL" 8624 8625 // LogLevelError is a LogLevel enum value 8626 LogLevelError = "ERROR" 8627 8628 // LogLevelFatal is a LogLevel enum value 8629 LogLevelFatal = "FATAL" 8630 8631 // LogLevelOff is a LogLevel enum value 8632 LogLevelOff = "OFF" 8633) 8634 8635// LogLevel_Values returns all elements of the LogLevel enum 8636func LogLevel_Values() []string { 8637 return []string{ 8638 LogLevelAll, 8639 LogLevelError, 8640 LogLevelFatal, 8641 LogLevelOff, 8642 } 8643} 8644 8645const ( 8646 // StateMachineStatusActive is a StateMachineStatus enum value 8647 StateMachineStatusActive = "ACTIVE" 8648 8649 // StateMachineStatusDeleting is a StateMachineStatus enum value 8650 StateMachineStatusDeleting = "DELETING" 8651) 8652 8653// StateMachineStatus_Values returns all elements of the StateMachineStatus enum 8654func StateMachineStatus_Values() []string { 8655 return []string{ 8656 StateMachineStatusActive, 8657 StateMachineStatusDeleting, 8658 } 8659} 8660 8661const ( 8662 // StateMachineTypeStandard is a StateMachineType enum value 8663 StateMachineTypeStandard = "STANDARD" 8664 8665 // StateMachineTypeExpress is a StateMachineType enum value 8666 StateMachineTypeExpress = "EXPRESS" 8667) 8668 8669// StateMachineType_Values returns all elements of the StateMachineType enum 8670func StateMachineType_Values() []string { 8671 return []string{ 8672 StateMachineTypeStandard, 8673 StateMachineTypeExpress, 8674 } 8675} 8676 8677const ( 8678 // SyncExecutionStatusSucceeded is a SyncExecutionStatus enum value 8679 SyncExecutionStatusSucceeded = "SUCCEEDED" 8680 8681 // SyncExecutionStatusFailed is a SyncExecutionStatus enum value 8682 SyncExecutionStatusFailed = "FAILED" 8683 8684 // SyncExecutionStatusTimedOut is a SyncExecutionStatus enum value 8685 SyncExecutionStatusTimedOut = "TIMED_OUT" 8686) 8687 8688// SyncExecutionStatus_Values returns all elements of the SyncExecutionStatus enum 8689func SyncExecutionStatus_Values() []string { 8690 return []string{ 8691 SyncExecutionStatusSucceeded, 8692 SyncExecutionStatusFailed, 8693 SyncExecutionStatusTimedOut, 8694 } 8695} 8696