1// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. 2 3package codedeploy 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 opAddTagsToOnPremisesInstances = "AddTagsToOnPremisesInstances" 17 18// AddTagsToOnPremisesInstancesRequest generates a "aws/request.Request" representing the 19// client's request for the AddTagsToOnPremisesInstances 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 AddTagsToOnPremisesInstances for more information on using the AddTagsToOnPremisesInstances 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 AddTagsToOnPremisesInstancesRequest method. 34// req, resp := client.AddTagsToOnPremisesInstancesRequest(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/codedeploy-2014-10-06/AddTagsToOnPremisesInstances 42func (c *CodeDeploy) AddTagsToOnPremisesInstancesRequest(input *AddTagsToOnPremisesInstancesInput) (req *request.Request, output *AddTagsToOnPremisesInstancesOutput) { 43 op := &request.Operation{ 44 Name: opAddTagsToOnPremisesInstances, 45 HTTPMethod: "POST", 46 HTTPPath: "/", 47 } 48 49 if input == nil { 50 input = &AddTagsToOnPremisesInstancesInput{} 51 } 52 53 output = &AddTagsToOnPremisesInstancesOutput{} 54 req = c.newRequest(op, input, output) 55 req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) 56 return 57} 58 59// AddTagsToOnPremisesInstances API operation for AWS CodeDeploy. 60// 61// Adds tags to on-premises instances. 62// 63// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 64// with awserr.Error's Code and Message methods to get detailed information about 65// the error. 66// 67// See the AWS API reference guide for AWS CodeDeploy's 68// API operation AddTagsToOnPremisesInstances for usage and error information. 69// 70// Returned Error Types: 71// * InstanceNameRequiredException 72// An on-premises instance name was not specified. 73// 74// * InvalidInstanceNameException 75// The on-premises instance name was specified in an invalid format. 76// 77// * TagRequiredException 78// A tag was not specified. 79// 80// * InvalidTagException 81// The tag was specified in an invalid format. 82// 83// * TagLimitExceededException 84// The maximum allowed number of tags was exceeded. 85// 86// * InstanceLimitExceededException 87// The maximum number of allowed on-premises instances in a single call was 88// exceeded. 89// 90// * InstanceNotRegisteredException 91// The specified on-premises instance is not registered. 92// 93// See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/AddTagsToOnPremisesInstances 94func (c *CodeDeploy) AddTagsToOnPremisesInstances(input *AddTagsToOnPremisesInstancesInput) (*AddTagsToOnPremisesInstancesOutput, error) { 95 req, out := c.AddTagsToOnPremisesInstancesRequest(input) 96 return out, req.Send() 97} 98 99// AddTagsToOnPremisesInstancesWithContext is the same as AddTagsToOnPremisesInstances with the addition of 100// the ability to pass a context and additional request options. 101// 102// See AddTagsToOnPremisesInstances for details on how to use this API operation. 103// 104// The context must be non-nil and will be used for request cancellation. If 105// the context is nil a panic will occur. In the future the SDK may create 106// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 107// for more information on using Contexts. 108func (c *CodeDeploy) AddTagsToOnPremisesInstancesWithContext(ctx aws.Context, input *AddTagsToOnPremisesInstancesInput, opts ...request.Option) (*AddTagsToOnPremisesInstancesOutput, error) { 109 req, out := c.AddTagsToOnPremisesInstancesRequest(input) 110 req.SetContext(ctx) 111 req.ApplyOptions(opts...) 112 return out, req.Send() 113} 114 115const opBatchGetApplicationRevisions = "BatchGetApplicationRevisions" 116 117// BatchGetApplicationRevisionsRequest generates a "aws/request.Request" representing the 118// client's request for the BatchGetApplicationRevisions operation. The "output" return 119// value will be populated with the request's response once the request completes 120// successfully. 121// 122// Use "Send" method on the returned Request to send the API call to the service. 123// the "output" return value is not valid until after Send returns without error. 124// 125// See BatchGetApplicationRevisions for more information on using the BatchGetApplicationRevisions 126// API call, and error handling. 127// 128// This method is useful when you want to inject custom logic or configuration 129// into the SDK's request lifecycle. Such as custom headers, or retry logic. 130// 131// 132// // Example sending a request using the BatchGetApplicationRevisionsRequest method. 133// req, resp := client.BatchGetApplicationRevisionsRequest(params) 134// 135// err := req.Send() 136// if err == nil { // resp is now filled 137// fmt.Println(resp) 138// } 139// 140// See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/BatchGetApplicationRevisions 141func (c *CodeDeploy) BatchGetApplicationRevisionsRequest(input *BatchGetApplicationRevisionsInput) (req *request.Request, output *BatchGetApplicationRevisionsOutput) { 142 op := &request.Operation{ 143 Name: opBatchGetApplicationRevisions, 144 HTTPMethod: "POST", 145 HTTPPath: "/", 146 } 147 148 if input == nil { 149 input = &BatchGetApplicationRevisionsInput{} 150 } 151 152 output = &BatchGetApplicationRevisionsOutput{} 153 req = c.newRequest(op, input, output) 154 return 155} 156 157// BatchGetApplicationRevisions API operation for AWS CodeDeploy. 158// 159// Gets information about one or more application revisions. The maximum number 160// of application revisions that can be returned is 25. 161// 162// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 163// with awserr.Error's Code and Message methods to get detailed information about 164// the error. 165// 166// See the AWS API reference guide for AWS CodeDeploy's 167// API operation BatchGetApplicationRevisions for usage and error information. 168// 169// Returned Error Types: 170// * ApplicationDoesNotExistException 171// The application does not exist with the IAM user or AWS account. 172// 173// * ApplicationNameRequiredException 174// The minimum number of required application names was not specified. 175// 176// * InvalidApplicationNameException 177// The application name was specified in an invalid format. 178// 179// * RevisionRequiredException 180// The revision ID was not specified. 181// 182// * InvalidRevisionException 183// The revision was specified in an invalid format. 184// 185// * BatchLimitExceededException 186// The maximum number of names or IDs allowed for this request (100) was exceeded. 187// 188// See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/BatchGetApplicationRevisions 189func (c *CodeDeploy) BatchGetApplicationRevisions(input *BatchGetApplicationRevisionsInput) (*BatchGetApplicationRevisionsOutput, error) { 190 req, out := c.BatchGetApplicationRevisionsRequest(input) 191 return out, req.Send() 192} 193 194// BatchGetApplicationRevisionsWithContext is the same as BatchGetApplicationRevisions with the addition of 195// the ability to pass a context and additional request options. 196// 197// See BatchGetApplicationRevisions for details on how to use this API operation. 198// 199// The context must be non-nil and will be used for request cancellation. If 200// the context is nil a panic will occur. In the future the SDK may create 201// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 202// for more information on using Contexts. 203func (c *CodeDeploy) BatchGetApplicationRevisionsWithContext(ctx aws.Context, input *BatchGetApplicationRevisionsInput, opts ...request.Option) (*BatchGetApplicationRevisionsOutput, error) { 204 req, out := c.BatchGetApplicationRevisionsRequest(input) 205 req.SetContext(ctx) 206 req.ApplyOptions(opts...) 207 return out, req.Send() 208} 209 210const opBatchGetApplications = "BatchGetApplications" 211 212// BatchGetApplicationsRequest generates a "aws/request.Request" representing the 213// client's request for the BatchGetApplications operation. The "output" return 214// value will be populated with the request's response once the request completes 215// successfully. 216// 217// Use "Send" method on the returned Request to send the API call to the service. 218// the "output" return value is not valid until after Send returns without error. 219// 220// See BatchGetApplications for more information on using the BatchGetApplications 221// API call, and error handling. 222// 223// This method is useful when you want to inject custom logic or configuration 224// into the SDK's request lifecycle. Such as custom headers, or retry logic. 225// 226// 227// // Example sending a request using the BatchGetApplicationsRequest method. 228// req, resp := client.BatchGetApplicationsRequest(params) 229// 230// err := req.Send() 231// if err == nil { // resp is now filled 232// fmt.Println(resp) 233// } 234// 235// See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/BatchGetApplications 236func (c *CodeDeploy) BatchGetApplicationsRequest(input *BatchGetApplicationsInput) (req *request.Request, output *BatchGetApplicationsOutput) { 237 op := &request.Operation{ 238 Name: opBatchGetApplications, 239 HTTPMethod: "POST", 240 HTTPPath: "/", 241 } 242 243 if input == nil { 244 input = &BatchGetApplicationsInput{} 245 } 246 247 output = &BatchGetApplicationsOutput{} 248 req = c.newRequest(op, input, output) 249 return 250} 251 252// BatchGetApplications API operation for AWS CodeDeploy. 253// 254// Gets information about one or more applications. The maximum number of applications 255// that can be returned is 100. 256// 257// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 258// with awserr.Error's Code and Message methods to get detailed information about 259// the error. 260// 261// See the AWS API reference guide for AWS CodeDeploy's 262// API operation BatchGetApplications for usage and error information. 263// 264// Returned Error Types: 265// * ApplicationNameRequiredException 266// The minimum number of required application names was not specified. 267// 268// * InvalidApplicationNameException 269// The application name was specified in an invalid format. 270// 271// * ApplicationDoesNotExistException 272// The application does not exist with the IAM user or AWS account. 273// 274// * BatchLimitExceededException 275// The maximum number of names or IDs allowed for this request (100) was exceeded. 276// 277// See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/BatchGetApplications 278func (c *CodeDeploy) BatchGetApplications(input *BatchGetApplicationsInput) (*BatchGetApplicationsOutput, error) { 279 req, out := c.BatchGetApplicationsRequest(input) 280 return out, req.Send() 281} 282 283// BatchGetApplicationsWithContext is the same as BatchGetApplications with the addition of 284// the ability to pass a context and additional request options. 285// 286// See BatchGetApplications for details on how to use this API operation. 287// 288// The context must be non-nil and will be used for request cancellation. If 289// the context is nil a panic will occur. In the future the SDK may create 290// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 291// for more information on using Contexts. 292func (c *CodeDeploy) BatchGetApplicationsWithContext(ctx aws.Context, input *BatchGetApplicationsInput, opts ...request.Option) (*BatchGetApplicationsOutput, error) { 293 req, out := c.BatchGetApplicationsRequest(input) 294 req.SetContext(ctx) 295 req.ApplyOptions(opts...) 296 return out, req.Send() 297} 298 299const opBatchGetDeploymentGroups = "BatchGetDeploymentGroups" 300 301// BatchGetDeploymentGroupsRequest generates a "aws/request.Request" representing the 302// client's request for the BatchGetDeploymentGroups operation. The "output" return 303// value will be populated with the request's response once the request completes 304// successfully. 305// 306// Use "Send" method on the returned Request to send the API call to the service. 307// the "output" return value is not valid until after Send returns without error. 308// 309// See BatchGetDeploymentGroups for more information on using the BatchGetDeploymentGroups 310// API call, and error handling. 311// 312// This method is useful when you want to inject custom logic or configuration 313// into the SDK's request lifecycle. Such as custom headers, or retry logic. 314// 315// 316// // Example sending a request using the BatchGetDeploymentGroupsRequest method. 317// req, resp := client.BatchGetDeploymentGroupsRequest(params) 318// 319// err := req.Send() 320// if err == nil { // resp is now filled 321// fmt.Println(resp) 322// } 323// 324// See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/BatchGetDeploymentGroups 325func (c *CodeDeploy) BatchGetDeploymentGroupsRequest(input *BatchGetDeploymentGroupsInput) (req *request.Request, output *BatchGetDeploymentGroupsOutput) { 326 op := &request.Operation{ 327 Name: opBatchGetDeploymentGroups, 328 HTTPMethod: "POST", 329 HTTPPath: "/", 330 } 331 332 if input == nil { 333 input = &BatchGetDeploymentGroupsInput{} 334 } 335 336 output = &BatchGetDeploymentGroupsOutput{} 337 req = c.newRequest(op, input, output) 338 return 339} 340 341// BatchGetDeploymentGroups API operation for AWS CodeDeploy. 342// 343// Gets information about one or more deployment groups. 344// 345// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 346// with awserr.Error's Code and Message methods to get detailed information about 347// the error. 348// 349// See the AWS API reference guide for AWS CodeDeploy's 350// API operation BatchGetDeploymentGroups for usage and error information. 351// 352// Returned Error Types: 353// * ApplicationNameRequiredException 354// The minimum number of required application names was not specified. 355// 356// * InvalidApplicationNameException 357// The application name was specified in an invalid format. 358// 359// * ApplicationDoesNotExistException 360// The application does not exist with the IAM user or AWS account. 361// 362// * DeploymentGroupNameRequiredException 363// The deployment group name was not specified. 364// 365// * InvalidDeploymentGroupNameException 366// The deployment group name was specified in an invalid format. 367// 368// * BatchLimitExceededException 369// The maximum number of names or IDs allowed for this request (100) was exceeded. 370// 371// * DeploymentConfigDoesNotExistException 372// The deployment configuration does not exist with the IAM user or AWS account. 373// 374// See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/BatchGetDeploymentGroups 375func (c *CodeDeploy) BatchGetDeploymentGroups(input *BatchGetDeploymentGroupsInput) (*BatchGetDeploymentGroupsOutput, error) { 376 req, out := c.BatchGetDeploymentGroupsRequest(input) 377 return out, req.Send() 378} 379 380// BatchGetDeploymentGroupsWithContext is the same as BatchGetDeploymentGroups with the addition of 381// the ability to pass a context and additional request options. 382// 383// See BatchGetDeploymentGroups for details on how to use this API operation. 384// 385// The context must be non-nil and will be used for request cancellation. If 386// the context is nil a panic will occur. In the future the SDK may create 387// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 388// for more information on using Contexts. 389func (c *CodeDeploy) BatchGetDeploymentGroupsWithContext(ctx aws.Context, input *BatchGetDeploymentGroupsInput, opts ...request.Option) (*BatchGetDeploymentGroupsOutput, error) { 390 req, out := c.BatchGetDeploymentGroupsRequest(input) 391 req.SetContext(ctx) 392 req.ApplyOptions(opts...) 393 return out, req.Send() 394} 395 396const opBatchGetDeploymentInstances = "BatchGetDeploymentInstances" 397 398// BatchGetDeploymentInstancesRequest generates a "aws/request.Request" representing the 399// client's request for the BatchGetDeploymentInstances operation. The "output" return 400// value will be populated with the request's response once the request completes 401// successfully. 402// 403// Use "Send" method on the returned Request to send the API call to the service. 404// the "output" return value is not valid until after Send returns without error. 405// 406// See BatchGetDeploymentInstances for more information on using the BatchGetDeploymentInstances 407// API call, and error handling. 408// 409// This method is useful when you want to inject custom logic or configuration 410// into the SDK's request lifecycle. Such as custom headers, or retry logic. 411// 412// 413// // Example sending a request using the BatchGetDeploymentInstancesRequest method. 414// req, resp := client.BatchGetDeploymentInstancesRequest(params) 415// 416// err := req.Send() 417// if err == nil { // resp is now filled 418// fmt.Println(resp) 419// } 420// 421// See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/BatchGetDeploymentInstances 422// 423// Deprecated: This operation is deprecated, use BatchGetDeploymentTargets instead. 424func (c *CodeDeploy) BatchGetDeploymentInstancesRequest(input *BatchGetDeploymentInstancesInput) (req *request.Request, output *BatchGetDeploymentInstancesOutput) { 425 if c.Client.Config.Logger != nil { 426 c.Client.Config.Logger.Log("This operation, BatchGetDeploymentInstances, has been deprecated") 427 } 428 op := &request.Operation{ 429 Name: opBatchGetDeploymentInstances, 430 HTTPMethod: "POST", 431 HTTPPath: "/", 432 } 433 434 if input == nil { 435 input = &BatchGetDeploymentInstancesInput{} 436 } 437 438 output = &BatchGetDeploymentInstancesOutput{} 439 req = c.newRequest(op, input, output) 440 return 441} 442 443// BatchGetDeploymentInstances API operation for AWS CodeDeploy. 444// 445// 446// This method works, but is deprecated. Use BatchGetDeploymentTargets instead. 447// 448// Returns an array of one or more instances associated with a deployment. This 449// method works with EC2/On-premises and AWS Lambda compute platforms. The newer 450// BatchGetDeploymentTargets works with all compute platforms. The maximum number 451// of instances that can be returned is 25. 452// 453// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 454// with awserr.Error's Code and Message methods to get detailed information about 455// the error. 456// 457// See the AWS API reference guide for AWS CodeDeploy's 458// API operation BatchGetDeploymentInstances for usage and error information. 459// 460// Returned Error Types: 461// * DeploymentIdRequiredException 462// At least one deployment ID must be specified. 463// 464// * DeploymentDoesNotExistException 465// The deployment with the IAM user or AWS account does not exist. 466// 467// * InstanceIdRequiredException 468// The instance ID was not specified. 469// 470// * InvalidDeploymentIdException 471// At least one of the deployment IDs was specified in an invalid format. 472// 473// * InvalidInstanceNameException 474// The on-premises instance name was specified in an invalid format. 475// 476// * BatchLimitExceededException 477// The maximum number of names or IDs allowed for this request (100) was exceeded. 478// 479// * InvalidComputePlatformException 480// The computePlatform is invalid. The computePlatform should be Lambda, Server, 481// or ECS. 482// 483// See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/BatchGetDeploymentInstances 484// 485// Deprecated: This operation is deprecated, use BatchGetDeploymentTargets instead. 486func (c *CodeDeploy) BatchGetDeploymentInstances(input *BatchGetDeploymentInstancesInput) (*BatchGetDeploymentInstancesOutput, error) { 487 req, out := c.BatchGetDeploymentInstancesRequest(input) 488 return out, req.Send() 489} 490 491// BatchGetDeploymentInstancesWithContext is the same as BatchGetDeploymentInstances with the addition of 492// the ability to pass a context and additional request options. 493// 494// See BatchGetDeploymentInstances for details on how to use this API operation. 495// 496// The context must be non-nil and will be used for request cancellation. If 497// the context is nil a panic will occur. In the future the SDK may create 498// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 499// for more information on using Contexts. 500// 501// Deprecated: This operation is deprecated, use BatchGetDeploymentTargets instead. 502func (c *CodeDeploy) BatchGetDeploymentInstancesWithContext(ctx aws.Context, input *BatchGetDeploymentInstancesInput, opts ...request.Option) (*BatchGetDeploymentInstancesOutput, error) { 503 req, out := c.BatchGetDeploymentInstancesRequest(input) 504 req.SetContext(ctx) 505 req.ApplyOptions(opts...) 506 return out, req.Send() 507} 508 509const opBatchGetDeploymentTargets = "BatchGetDeploymentTargets" 510 511// BatchGetDeploymentTargetsRequest generates a "aws/request.Request" representing the 512// client's request for the BatchGetDeploymentTargets operation. The "output" return 513// value will be populated with the request's response once the request completes 514// successfully. 515// 516// Use "Send" method on the returned Request to send the API call to the service. 517// the "output" return value is not valid until after Send returns without error. 518// 519// See BatchGetDeploymentTargets for more information on using the BatchGetDeploymentTargets 520// API call, and error handling. 521// 522// This method is useful when you want to inject custom logic or configuration 523// into the SDK's request lifecycle. Such as custom headers, or retry logic. 524// 525// 526// // Example sending a request using the BatchGetDeploymentTargetsRequest method. 527// req, resp := client.BatchGetDeploymentTargetsRequest(params) 528// 529// err := req.Send() 530// if err == nil { // resp is now filled 531// fmt.Println(resp) 532// } 533// 534// See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/BatchGetDeploymentTargets 535func (c *CodeDeploy) BatchGetDeploymentTargetsRequest(input *BatchGetDeploymentTargetsInput) (req *request.Request, output *BatchGetDeploymentTargetsOutput) { 536 op := &request.Operation{ 537 Name: opBatchGetDeploymentTargets, 538 HTTPMethod: "POST", 539 HTTPPath: "/", 540 } 541 542 if input == nil { 543 input = &BatchGetDeploymentTargetsInput{} 544 } 545 546 output = &BatchGetDeploymentTargetsOutput{} 547 req = c.newRequest(op, input, output) 548 return 549} 550 551// BatchGetDeploymentTargets API operation for AWS CodeDeploy. 552// 553// Returns an array of one or more targets associated with a deployment. This 554// method works with all compute types and should be used instead of the deprecated 555// BatchGetDeploymentInstances. The maximum number of targets that can be returned 556// is 25. 557// 558// The type of targets returned depends on the deployment's compute platform 559// or deployment method: 560// 561// * EC2/On-premises: Information about EC2 instance targets. 562// 563// * AWS Lambda: Information about Lambda functions targets. 564// 565// * Amazon ECS: Information about Amazon ECS service targets. 566// 567// * CloudFormation: Information about targets of blue/green deployments 568// initiated by a CloudFormation stack update. 569// 570// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 571// with awserr.Error's Code and Message methods to get detailed information about 572// the error. 573// 574// See the AWS API reference guide for AWS CodeDeploy's 575// API operation BatchGetDeploymentTargets for usage and error information. 576// 577// Returned Error Types: 578// * InvalidDeploymentIdException 579// At least one of the deployment IDs was specified in an invalid format. 580// 581// * DeploymentIdRequiredException 582// At least one deployment ID must be specified. 583// 584// * DeploymentDoesNotExistException 585// The deployment with the IAM user or AWS account does not exist. 586// 587// * DeploymentNotStartedException 588// The specified deployment has not started. 589// 590// * DeploymentTargetIdRequiredException 591// A deployment target ID was not provided. 592// 593// * InvalidDeploymentTargetIdException 594// The target ID provided was not valid. 595// 596// * DeploymentTargetDoesNotExistException 597// The provided target ID does not belong to the attempted deployment. 598// 599// * DeploymentTargetListSizeExceededException 600// The maximum number of targets that can be associated with an Amazon ECS or 601// AWS Lambda deployment was exceeded. The target list of both types of deployments 602// must have exactly one item. This exception does not apply to EC2/On-premises 603// deployments. 604// 605// * InstanceDoesNotExistException 606// The specified instance does not exist in the deployment group. 607// 608// See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/BatchGetDeploymentTargets 609func (c *CodeDeploy) BatchGetDeploymentTargets(input *BatchGetDeploymentTargetsInput) (*BatchGetDeploymentTargetsOutput, error) { 610 req, out := c.BatchGetDeploymentTargetsRequest(input) 611 return out, req.Send() 612} 613 614// BatchGetDeploymentTargetsWithContext is the same as BatchGetDeploymentTargets with the addition of 615// the ability to pass a context and additional request options. 616// 617// See BatchGetDeploymentTargets for details on how to use this API operation. 618// 619// The context must be non-nil and will be used for request cancellation. If 620// the context is nil a panic will occur. In the future the SDK may create 621// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 622// for more information on using Contexts. 623func (c *CodeDeploy) BatchGetDeploymentTargetsWithContext(ctx aws.Context, input *BatchGetDeploymentTargetsInput, opts ...request.Option) (*BatchGetDeploymentTargetsOutput, error) { 624 req, out := c.BatchGetDeploymentTargetsRequest(input) 625 req.SetContext(ctx) 626 req.ApplyOptions(opts...) 627 return out, req.Send() 628} 629 630const opBatchGetDeployments = "BatchGetDeployments" 631 632// BatchGetDeploymentsRequest generates a "aws/request.Request" representing the 633// client's request for the BatchGetDeployments operation. The "output" return 634// value will be populated with the request's response once the request completes 635// successfully. 636// 637// Use "Send" method on the returned Request to send the API call to the service. 638// the "output" return value is not valid until after Send returns without error. 639// 640// See BatchGetDeployments for more information on using the BatchGetDeployments 641// API call, and error handling. 642// 643// This method is useful when you want to inject custom logic or configuration 644// into the SDK's request lifecycle. Such as custom headers, or retry logic. 645// 646// 647// // Example sending a request using the BatchGetDeploymentsRequest method. 648// req, resp := client.BatchGetDeploymentsRequest(params) 649// 650// err := req.Send() 651// if err == nil { // resp is now filled 652// fmt.Println(resp) 653// } 654// 655// See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/BatchGetDeployments 656func (c *CodeDeploy) BatchGetDeploymentsRequest(input *BatchGetDeploymentsInput) (req *request.Request, output *BatchGetDeploymentsOutput) { 657 op := &request.Operation{ 658 Name: opBatchGetDeployments, 659 HTTPMethod: "POST", 660 HTTPPath: "/", 661 } 662 663 if input == nil { 664 input = &BatchGetDeploymentsInput{} 665 } 666 667 output = &BatchGetDeploymentsOutput{} 668 req = c.newRequest(op, input, output) 669 return 670} 671 672// BatchGetDeployments API operation for AWS CodeDeploy. 673// 674// Gets information about one or more deployments. The maximum number of deployments 675// that can be returned is 25. 676// 677// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 678// with awserr.Error's Code and Message methods to get detailed information about 679// the error. 680// 681// See the AWS API reference guide for AWS CodeDeploy's 682// API operation BatchGetDeployments for usage and error information. 683// 684// Returned Error Types: 685// * DeploymentIdRequiredException 686// At least one deployment ID must be specified. 687// 688// * InvalidDeploymentIdException 689// At least one of the deployment IDs was specified in an invalid format. 690// 691// * BatchLimitExceededException 692// The maximum number of names or IDs allowed for this request (100) was exceeded. 693// 694// See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/BatchGetDeployments 695func (c *CodeDeploy) BatchGetDeployments(input *BatchGetDeploymentsInput) (*BatchGetDeploymentsOutput, error) { 696 req, out := c.BatchGetDeploymentsRequest(input) 697 return out, req.Send() 698} 699 700// BatchGetDeploymentsWithContext is the same as BatchGetDeployments with the addition of 701// the ability to pass a context and additional request options. 702// 703// See BatchGetDeployments for details on how to use this API operation. 704// 705// The context must be non-nil and will be used for request cancellation. If 706// the context is nil a panic will occur. In the future the SDK may create 707// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 708// for more information on using Contexts. 709func (c *CodeDeploy) BatchGetDeploymentsWithContext(ctx aws.Context, input *BatchGetDeploymentsInput, opts ...request.Option) (*BatchGetDeploymentsOutput, error) { 710 req, out := c.BatchGetDeploymentsRequest(input) 711 req.SetContext(ctx) 712 req.ApplyOptions(opts...) 713 return out, req.Send() 714} 715 716const opBatchGetOnPremisesInstances = "BatchGetOnPremisesInstances" 717 718// BatchGetOnPremisesInstancesRequest generates a "aws/request.Request" representing the 719// client's request for the BatchGetOnPremisesInstances operation. The "output" return 720// value will be populated with the request's response once the request completes 721// successfully. 722// 723// Use "Send" method on the returned Request to send the API call to the service. 724// the "output" return value is not valid until after Send returns without error. 725// 726// See BatchGetOnPremisesInstances for more information on using the BatchGetOnPremisesInstances 727// API call, and error handling. 728// 729// This method is useful when you want to inject custom logic or configuration 730// into the SDK's request lifecycle. Such as custom headers, or retry logic. 731// 732// 733// // Example sending a request using the BatchGetOnPremisesInstancesRequest method. 734// req, resp := client.BatchGetOnPremisesInstancesRequest(params) 735// 736// err := req.Send() 737// if err == nil { // resp is now filled 738// fmt.Println(resp) 739// } 740// 741// See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/BatchGetOnPremisesInstances 742func (c *CodeDeploy) BatchGetOnPremisesInstancesRequest(input *BatchGetOnPremisesInstancesInput) (req *request.Request, output *BatchGetOnPremisesInstancesOutput) { 743 op := &request.Operation{ 744 Name: opBatchGetOnPremisesInstances, 745 HTTPMethod: "POST", 746 HTTPPath: "/", 747 } 748 749 if input == nil { 750 input = &BatchGetOnPremisesInstancesInput{} 751 } 752 753 output = &BatchGetOnPremisesInstancesOutput{} 754 req = c.newRequest(op, input, output) 755 return 756} 757 758// BatchGetOnPremisesInstances API operation for AWS CodeDeploy. 759// 760// Gets information about one or more on-premises instances. The maximum number 761// of on-premises instances that can be returned is 25. 762// 763// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 764// with awserr.Error's Code and Message methods to get detailed information about 765// the error. 766// 767// See the AWS API reference guide for AWS CodeDeploy's 768// API operation BatchGetOnPremisesInstances for usage and error information. 769// 770// Returned Error Types: 771// * InstanceNameRequiredException 772// An on-premises instance name was not specified. 773// 774// * InvalidInstanceNameException 775// The on-premises instance name was specified in an invalid format. 776// 777// * BatchLimitExceededException 778// The maximum number of names or IDs allowed for this request (100) was exceeded. 779// 780// See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/BatchGetOnPremisesInstances 781func (c *CodeDeploy) BatchGetOnPremisesInstances(input *BatchGetOnPremisesInstancesInput) (*BatchGetOnPremisesInstancesOutput, error) { 782 req, out := c.BatchGetOnPremisesInstancesRequest(input) 783 return out, req.Send() 784} 785 786// BatchGetOnPremisesInstancesWithContext is the same as BatchGetOnPremisesInstances with the addition of 787// the ability to pass a context and additional request options. 788// 789// See BatchGetOnPremisesInstances for details on how to use this API operation. 790// 791// The context must be non-nil and will be used for request cancellation. If 792// the context is nil a panic will occur. In the future the SDK may create 793// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 794// for more information on using Contexts. 795func (c *CodeDeploy) BatchGetOnPremisesInstancesWithContext(ctx aws.Context, input *BatchGetOnPremisesInstancesInput, opts ...request.Option) (*BatchGetOnPremisesInstancesOutput, error) { 796 req, out := c.BatchGetOnPremisesInstancesRequest(input) 797 req.SetContext(ctx) 798 req.ApplyOptions(opts...) 799 return out, req.Send() 800} 801 802const opContinueDeployment = "ContinueDeployment" 803 804// ContinueDeploymentRequest generates a "aws/request.Request" representing the 805// client's request for the ContinueDeployment operation. The "output" return 806// value will be populated with the request's response once the request completes 807// successfully. 808// 809// Use "Send" method on the returned Request to send the API call to the service. 810// the "output" return value is not valid until after Send returns without error. 811// 812// See ContinueDeployment for more information on using the ContinueDeployment 813// API call, and error handling. 814// 815// This method is useful when you want to inject custom logic or configuration 816// into the SDK's request lifecycle. Such as custom headers, or retry logic. 817// 818// 819// // Example sending a request using the ContinueDeploymentRequest method. 820// req, resp := client.ContinueDeploymentRequest(params) 821// 822// err := req.Send() 823// if err == nil { // resp is now filled 824// fmt.Println(resp) 825// } 826// 827// See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ContinueDeployment 828func (c *CodeDeploy) ContinueDeploymentRequest(input *ContinueDeploymentInput) (req *request.Request, output *ContinueDeploymentOutput) { 829 op := &request.Operation{ 830 Name: opContinueDeployment, 831 HTTPMethod: "POST", 832 HTTPPath: "/", 833 } 834 835 if input == nil { 836 input = &ContinueDeploymentInput{} 837 } 838 839 output = &ContinueDeploymentOutput{} 840 req = c.newRequest(op, input, output) 841 req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) 842 return 843} 844 845// ContinueDeployment API operation for AWS CodeDeploy. 846// 847// For a blue/green deployment, starts the process of rerouting traffic from 848// instances in the original environment to instances in the replacement environment 849// without waiting for a specified wait time to elapse. (Traffic rerouting, 850// which is achieved by registering instances in the replacement environment 851// with the load balancer, can start as soon as all instances have a status 852// of Ready.) 853// 854// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 855// with awserr.Error's Code and Message methods to get detailed information about 856// the error. 857// 858// See the AWS API reference guide for AWS CodeDeploy's 859// API operation ContinueDeployment for usage and error information. 860// 861// Returned Error Types: 862// * DeploymentIdRequiredException 863// At least one deployment ID must be specified. 864// 865// * DeploymentDoesNotExistException 866// The deployment with the IAM user or AWS account does not exist. 867// 868// * DeploymentAlreadyCompletedException 869// The deployment is already complete. 870// 871// * InvalidDeploymentIdException 872// At least one of the deployment IDs was specified in an invalid format. 873// 874// * DeploymentIsNotInReadyStateException 875// The deployment does not have a status of Ready and can't continue yet. 876// 877// * UnsupportedActionForDeploymentTypeException 878// A call was submitted that is not supported for the specified deployment type. 879// 880// * InvalidDeploymentWaitTypeException 881// The wait type is invalid. 882// 883// * InvalidDeploymentStatusException 884// The specified deployment status doesn't exist or cannot be determined. 885// 886// See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ContinueDeployment 887func (c *CodeDeploy) ContinueDeployment(input *ContinueDeploymentInput) (*ContinueDeploymentOutput, error) { 888 req, out := c.ContinueDeploymentRequest(input) 889 return out, req.Send() 890} 891 892// ContinueDeploymentWithContext is the same as ContinueDeployment with the addition of 893// the ability to pass a context and additional request options. 894// 895// See ContinueDeployment for details on how to use this API operation. 896// 897// The context must be non-nil and will be used for request cancellation. If 898// the context is nil a panic will occur. In the future the SDK may create 899// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 900// for more information on using Contexts. 901func (c *CodeDeploy) ContinueDeploymentWithContext(ctx aws.Context, input *ContinueDeploymentInput, opts ...request.Option) (*ContinueDeploymentOutput, error) { 902 req, out := c.ContinueDeploymentRequest(input) 903 req.SetContext(ctx) 904 req.ApplyOptions(opts...) 905 return out, req.Send() 906} 907 908const opCreateApplication = "CreateApplication" 909 910// CreateApplicationRequest generates a "aws/request.Request" representing the 911// client's request for the CreateApplication operation. The "output" return 912// value will be populated with the request's response once the request completes 913// successfully. 914// 915// Use "Send" method on the returned Request to send the API call to the service. 916// the "output" return value is not valid until after Send returns without error. 917// 918// See CreateApplication for more information on using the CreateApplication 919// API call, and error handling. 920// 921// This method is useful when you want to inject custom logic or configuration 922// into the SDK's request lifecycle. Such as custom headers, or retry logic. 923// 924// 925// // Example sending a request using the CreateApplicationRequest method. 926// req, resp := client.CreateApplicationRequest(params) 927// 928// err := req.Send() 929// if err == nil { // resp is now filled 930// fmt.Println(resp) 931// } 932// 933// See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/CreateApplication 934func (c *CodeDeploy) CreateApplicationRequest(input *CreateApplicationInput) (req *request.Request, output *CreateApplicationOutput) { 935 op := &request.Operation{ 936 Name: opCreateApplication, 937 HTTPMethod: "POST", 938 HTTPPath: "/", 939 } 940 941 if input == nil { 942 input = &CreateApplicationInput{} 943 } 944 945 output = &CreateApplicationOutput{} 946 req = c.newRequest(op, input, output) 947 return 948} 949 950// CreateApplication API operation for AWS CodeDeploy. 951// 952// Creates an application. 953// 954// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 955// with awserr.Error's Code and Message methods to get detailed information about 956// the error. 957// 958// See the AWS API reference guide for AWS CodeDeploy's 959// API operation CreateApplication for usage and error information. 960// 961// Returned Error Types: 962// * ApplicationNameRequiredException 963// The minimum number of required application names was not specified. 964// 965// * InvalidApplicationNameException 966// The application name was specified in an invalid format. 967// 968// * ApplicationAlreadyExistsException 969// An application with the specified name with the IAM user or AWS account already 970// exists. 971// 972// * ApplicationLimitExceededException 973// More applications were attempted to be created than are allowed. 974// 975// * InvalidComputePlatformException 976// The computePlatform is invalid. The computePlatform should be Lambda, Server, 977// or ECS. 978// 979// * InvalidTagsToAddException 980// The specified tags are not valid. 981// 982// See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/CreateApplication 983func (c *CodeDeploy) CreateApplication(input *CreateApplicationInput) (*CreateApplicationOutput, error) { 984 req, out := c.CreateApplicationRequest(input) 985 return out, req.Send() 986} 987 988// CreateApplicationWithContext is the same as CreateApplication with the addition of 989// the ability to pass a context and additional request options. 990// 991// See CreateApplication for details on how to use this API operation. 992// 993// The context must be non-nil and will be used for request cancellation. If 994// the context is nil a panic will occur. In the future the SDK may create 995// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 996// for more information on using Contexts. 997func (c *CodeDeploy) CreateApplicationWithContext(ctx aws.Context, input *CreateApplicationInput, opts ...request.Option) (*CreateApplicationOutput, error) { 998 req, out := c.CreateApplicationRequest(input) 999 req.SetContext(ctx) 1000 req.ApplyOptions(opts...) 1001 return out, req.Send() 1002} 1003 1004const opCreateDeployment = "CreateDeployment" 1005 1006// CreateDeploymentRequest generates a "aws/request.Request" representing the 1007// client's request for the CreateDeployment operation. The "output" return 1008// value will be populated with the request's response once the request completes 1009// successfully. 1010// 1011// Use "Send" method on the returned Request to send the API call to the service. 1012// the "output" return value is not valid until after Send returns without error. 1013// 1014// See CreateDeployment for more information on using the CreateDeployment 1015// API call, and error handling. 1016// 1017// This method is useful when you want to inject custom logic or configuration 1018// into the SDK's request lifecycle. Such as custom headers, or retry logic. 1019// 1020// 1021// // Example sending a request using the CreateDeploymentRequest method. 1022// req, resp := client.CreateDeploymentRequest(params) 1023// 1024// err := req.Send() 1025// if err == nil { // resp is now filled 1026// fmt.Println(resp) 1027// } 1028// 1029// See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/CreateDeployment 1030func (c *CodeDeploy) CreateDeploymentRequest(input *CreateDeploymentInput) (req *request.Request, output *CreateDeploymentOutput) { 1031 op := &request.Operation{ 1032 Name: opCreateDeployment, 1033 HTTPMethod: "POST", 1034 HTTPPath: "/", 1035 } 1036 1037 if input == nil { 1038 input = &CreateDeploymentInput{} 1039 } 1040 1041 output = &CreateDeploymentOutput{} 1042 req = c.newRequest(op, input, output) 1043 return 1044} 1045 1046// CreateDeployment API operation for AWS CodeDeploy. 1047// 1048// Deploys an application revision through the specified deployment group. 1049// 1050// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1051// with awserr.Error's Code and Message methods to get detailed information about 1052// the error. 1053// 1054// See the AWS API reference guide for AWS CodeDeploy's 1055// API operation CreateDeployment for usage and error information. 1056// 1057// Returned Error Types: 1058// * ApplicationNameRequiredException 1059// The minimum number of required application names was not specified. 1060// 1061// * InvalidApplicationNameException 1062// The application name was specified in an invalid format. 1063// 1064// * ApplicationDoesNotExistException 1065// The application does not exist with the IAM user or AWS account. 1066// 1067// * DeploymentGroupNameRequiredException 1068// The deployment group name was not specified. 1069// 1070// * InvalidDeploymentGroupNameException 1071// The deployment group name was specified in an invalid format. 1072// 1073// * DeploymentGroupDoesNotExistException 1074// The named deployment group with the IAM user or AWS account does not exist. 1075// 1076// * RevisionRequiredException 1077// The revision ID was not specified. 1078// 1079// * RevisionDoesNotExistException 1080// The named revision does not exist with the IAM user or AWS account. 1081// 1082// * InvalidRevisionException 1083// The revision was specified in an invalid format. 1084// 1085// * InvalidDeploymentConfigNameException 1086// The deployment configuration name was specified in an invalid format. 1087// 1088// * DeploymentConfigDoesNotExistException 1089// The deployment configuration does not exist with the IAM user or AWS account. 1090// 1091// * DescriptionTooLongException 1092// The description is too long. 1093// 1094// * DeploymentLimitExceededException 1095// The number of allowed deployments was exceeded. 1096// 1097// * InvalidTargetInstancesException 1098// The target instance configuration is invalid. Possible causes include: 1099// 1100// * Configuration data for target instances was entered for an in-place 1101// deployment. 1102// 1103// * The limit of 10 tags for a tag type was exceeded. 1104// 1105// * The combined length of the tag names exceeded the limit. 1106// 1107// * A specified tag is not currently applied to any instances. 1108// 1109// * InvalidAutoRollbackConfigException 1110// The automatic rollback configuration was specified in an invalid format. 1111// For example, automatic rollback is enabled, but an invalid triggering event 1112// type or no event types were listed. 1113// 1114// * InvalidLoadBalancerInfoException 1115// An invalid load balancer name, or no load balancer name, was specified. 1116// 1117// * InvalidFileExistsBehaviorException 1118// An invalid fileExistsBehavior option was specified to determine how AWS CodeDeploy 1119// handles files or directories that already exist in a deployment target location, 1120// but weren't part of the previous successful deployment. Valid values include 1121// "DISALLOW," "OVERWRITE," and "RETAIN." 1122// 1123// * InvalidRoleException 1124// The service role ARN was specified in an invalid format. Or, if an Auto Scaling 1125// group was specified, the specified service role does not grant the appropriate 1126// permissions to Amazon EC2 Auto Scaling. 1127// 1128// * InvalidAutoScalingGroupException 1129// The Auto Scaling group was specified in an invalid format or does not exist. 1130// 1131// * ThrottlingException 1132// An API function was called too frequently. 1133// 1134// * InvalidUpdateOutdatedInstancesOnlyValueException 1135// The UpdateOutdatedInstancesOnly value is invalid. For AWS Lambda deployments, 1136// false is expected. For EC2/On-premises deployments, true or false is expected. 1137// 1138// * InvalidIgnoreApplicationStopFailuresValueException 1139// The IgnoreApplicationStopFailures value is invalid. For AWS Lambda deployments, 1140// false is expected. For EC2/On-premises deployments, true or false is expected. 1141// 1142// * InvalidGitHubAccountTokenException 1143// The GitHub token is not valid. 1144// 1145// * InvalidTrafficRoutingConfigurationException 1146// The configuration that specifies how traffic is routed during a deployment 1147// is invalid. 1148// 1149// See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/CreateDeployment 1150func (c *CodeDeploy) CreateDeployment(input *CreateDeploymentInput) (*CreateDeploymentOutput, error) { 1151 req, out := c.CreateDeploymentRequest(input) 1152 return out, req.Send() 1153} 1154 1155// CreateDeploymentWithContext is the same as CreateDeployment with the addition of 1156// the ability to pass a context and additional request options. 1157// 1158// See CreateDeployment for details on how to use this API operation. 1159// 1160// The context must be non-nil and will be used for request cancellation. If 1161// the context is nil a panic will occur. In the future the SDK may create 1162// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1163// for more information on using Contexts. 1164func (c *CodeDeploy) CreateDeploymentWithContext(ctx aws.Context, input *CreateDeploymentInput, opts ...request.Option) (*CreateDeploymentOutput, error) { 1165 req, out := c.CreateDeploymentRequest(input) 1166 req.SetContext(ctx) 1167 req.ApplyOptions(opts...) 1168 return out, req.Send() 1169} 1170 1171const opCreateDeploymentConfig = "CreateDeploymentConfig" 1172 1173// CreateDeploymentConfigRequest generates a "aws/request.Request" representing the 1174// client's request for the CreateDeploymentConfig operation. The "output" return 1175// value will be populated with the request's response once the request completes 1176// successfully. 1177// 1178// Use "Send" method on the returned Request to send the API call to the service. 1179// the "output" return value is not valid until after Send returns without error. 1180// 1181// See CreateDeploymentConfig for more information on using the CreateDeploymentConfig 1182// API call, and error handling. 1183// 1184// This method is useful when you want to inject custom logic or configuration 1185// into the SDK's request lifecycle. Such as custom headers, or retry logic. 1186// 1187// 1188// // Example sending a request using the CreateDeploymentConfigRequest method. 1189// req, resp := client.CreateDeploymentConfigRequest(params) 1190// 1191// err := req.Send() 1192// if err == nil { // resp is now filled 1193// fmt.Println(resp) 1194// } 1195// 1196// See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/CreateDeploymentConfig 1197func (c *CodeDeploy) CreateDeploymentConfigRequest(input *CreateDeploymentConfigInput) (req *request.Request, output *CreateDeploymentConfigOutput) { 1198 op := &request.Operation{ 1199 Name: opCreateDeploymentConfig, 1200 HTTPMethod: "POST", 1201 HTTPPath: "/", 1202 } 1203 1204 if input == nil { 1205 input = &CreateDeploymentConfigInput{} 1206 } 1207 1208 output = &CreateDeploymentConfigOutput{} 1209 req = c.newRequest(op, input, output) 1210 return 1211} 1212 1213// CreateDeploymentConfig API operation for AWS CodeDeploy. 1214// 1215// Creates a deployment configuration. 1216// 1217// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1218// with awserr.Error's Code and Message methods to get detailed information about 1219// the error. 1220// 1221// See the AWS API reference guide for AWS CodeDeploy's 1222// API operation CreateDeploymentConfig for usage and error information. 1223// 1224// Returned Error Types: 1225// * InvalidDeploymentConfigNameException 1226// The deployment configuration name was specified in an invalid format. 1227// 1228// * DeploymentConfigNameRequiredException 1229// The deployment configuration name was not specified. 1230// 1231// * DeploymentConfigAlreadyExistsException 1232// A deployment configuration with the specified name with the IAM user or AWS 1233// account already exists. 1234// 1235// * InvalidMinimumHealthyHostValueException 1236// The minimum healthy instance value was specified in an invalid format. 1237// 1238// * DeploymentConfigLimitExceededException 1239// The deployment configurations limit was exceeded. 1240// 1241// * InvalidComputePlatformException 1242// The computePlatform is invalid. The computePlatform should be Lambda, Server, 1243// or ECS. 1244// 1245// * InvalidTrafficRoutingConfigurationException 1246// The configuration that specifies how traffic is routed during a deployment 1247// is invalid. 1248// 1249// See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/CreateDeploymentConfig 1250func (c *CodeDeploy) CreateDeploymentConfig(input *CreateDeploymentConfigInput) (*CreateDeploymentConfigOutput, error) { 1251 req, out := c.CreateDeploymentConfigRequest(input) 1252 return out, req.Send() 1253} 1254 1255// CreateDeploymentConfigWithContext is the same as CreateDeploymentConfig with the addition of 1256// the ability to pass a context and additional request options. 1257// 1258// See CreateDeploymentConfig for details on how to use this API operation. 1259// 1260// The context must be non-nil and will be used for request cancellation. If 1261// the context is nil a panic will occur. In the future the SDK may create 1262// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1263// for more information on using Contexts. 1264func (c *CodeDeploy) CreateDeploymentConfigWithContext(ctx aws.Context, input *CreateDeploymentConfigInput, opts ...request.Option) (*CreateDeploymentConfigOutput, error) { 1265 req, out := c.CreateDeploymentConfigRequest(input) 1266 req.SetContext(ctx) 1267 req.ApplyOptions(opts...) 1268 return out, req.Send() 1269} 1270 1271const opCreateDeploymentGroup = "CreateDeploymentGroup" 1272 1273// CreateDeploymentGroupRequest generates a "aws/request.Request" representing the 1274// client's request for the CreateDeploymentGroup operation. The "output" return 1275// value will be populated with the request's response once the request completes 1276// successfully. 1277// 1278// Use "Send" method on the returned Request to send the API call to the service. 1279// the "output" return value is not valid until after Send returns without error. 1280// 1281// See CreateDeploymentGroup for more information on using the CreateDeploymentGroup 1282// API call, and error handling. 1283// 1284// This method is useful when you want to inject custom logic or configuration 1285// into the SDK's request lifecycle. Such as custom headers, or retry logic. 1286// 1287// 1288// // Example sending a request using the CreateDeploymentGroupRequest method. 1289// req, resp := client.CreateDeploymentGroupRequest(params) 1290// 1291// err := req.Send() 1292// if err == nil { // resp is now filled 1293// fmt.Println(resp) 1294// } 1295// 1296// See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/CreateDeploymentGroup 1297func (c *CodeDeploy) CreateDeploymentGroupRequest(input *CreateDeploymentGroupInput) (req *request.Request, output *CreateDeploymentGroupOutput) { 1298 op := &request.Operation{ 1299 Name: opCreateDeploymentGroup, 1300 HTTPMethod: "POST", 1301 HTTPPath: "/", 1302 } 1303 1304 if input == nil { 1305 input = &CreateDeploymentGroupInput{} 1306 } 1307 1308 output = &CreateDeploymentGroupOutput{} 1309 req = c.newRequest(op, input, output) 1310 return 1311} 1312 1313// CreateDeploymentGroup API operation for AWS CodeDeploy. 1314// 1315// Creates a deployment group to which application revisions are deployed. 1316// 1317// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1318// with awserr.Error's Code and Message methods to get detailed information about 1319// the error. 1320// 1321// See the AWS API reference guide for AWS CodeDeploy's 1322// API operation CreateDeploymentGroup for usage and error information. 1323// 1324// Returned Error Types: 1325// * ApplicationNameRequiredException 1326// The minimum number of required application names was not specified. 1327// 1328// * InvalidApplicationNameException 1329// The application name was specified in an invalid format. 1330// 1331// * ApplicationDoesNotExistException 1332// The application does not exist with the IAM user or AWS account. 1333// 1334// * DeploymentGroupNameRequiredException 1335// The deployment group name was not specified. 1336// 1337// * InvalidDeploymentGroupNameException 1338// The deployment group name was specified in an invalid format. 1339// 1340// * DeploymentGroupAlreadyExistsException 1341// A deployment group with the specified name with the IAM user or AWS account 1342// already exists. 1343// 1344// * InvalidEC2TagException 1345// The tag was specified in an invalid format. 1346// 1347// * InvalidTagException 1348// The tag was specified in an invalid format. 1349// 1350// * InvalidAutoScalingGroupException 1351// The Auto Scaling group was specified in an invalid format or does not exist. 1352// 1353// * InvalidDeploymentConfigNameException 1354// The deployment configuration name was specified in an invalid format. 1355// 1356// * DeploymentConfigDoesNotExistException 1357// The deployment configuration does not exist with the IAM user or AWS account. 1358// 1359// * RoleRequiredException 1360// The role ID was not specified. 1361// 1362// * InvalidRoleException 1363// The service role ARN was specified in an invalid format. Or, if an Auto Scaling 1364// group was specified, the specified service role does not grant the appropriate 1365// permissions to Amazon EC2 Auto Scaling. 1366// 1367// * DeploymentGroupLimitExceededException 1368// The deployment groups limit was exceeded. 1369// 1370// * LifecycleHookLimitExceededException 1371// The limit for lifecycle hooks was exceeded. 1372// 1373// * InvalidTriggerConfigException 1374// The trigger was specified in an invalid format. 1375// 1376// * TriggerTargetsLimitExceededException 1377// The maximum allowed number of triggers was exceeded. 1378// 1379// * InvalidAlarmConfigException 1380// The format of the alarm configuration is invalid. Possible causes include: 1381// 1382// * The alarm list is null. 1383// 1384// * The alarm object is null. 1385// 1386// * The alarm name is empty or null or exceeds the limit of 255 characters. 1387// 1388// * Two alarms with the same name have been specified. 1389// 1390// * The alarm configuration is enabled, but the alarm list is empty. 1391// 1392// * AlarmsLimitExceededException 1393// The maximum number of alarms for a deployment group (10) was exceeded. 1394// 1395// * InvalidAutoRollbackConfigException 1396// The automatic rollback configuration was specified in an invalid format. 1397// For example, automatic rollback is enabled, but an invalid triggering event 1398// type or no event types were listed. 1399// 1400// * InvalidLoadBalancerInfoException 1401// An invalid load balancer name, or no load balancer name, was specified. 1402// 1403// * InvalidDeploymentStyleException 1404// An invalid deployment style was specified. Valid deployment types include 1405// "IN_PLACE" and "BLUE_GREEN." Valid deployment options include "WITH_TRAFFIC_CONTROL" 1406// and "WITHOUT_TRAFFIC_CONTROL." 1407// 1408// * InvalidBlueGreenDeploymentConfigurationException 1409// The configuration for the blue/green deployment group was provided in an 1410// invalid format. For information about deployment configuration format, see 1411// CreateDeploymentConfig. 1412// 1413// * InvalidEC2TagCombinationException 1414// A call was submitted that specified both Ec2TagFilters and Ec2TagSet, but 1415// only one of these data types can be used in a single call. 1416// 1417// * InvalidOnPremisesTagCombinationException 1418// A call was submitted that specified both OnPremisesTagFilters and OnPremisesTagSet, 1419// but only one of these data types can be used in a single call. 1420// 1421// * TagSetListLimitExceededException 1422// The number of tag groups included in the tag set list exceeded the maximum 1423// allowed limit of 3. 1424// 1425// * InvalidInputException 1426// The input was specified in an invalid format. 1427// 1428// * ThrottlingException 1429// An API function was called too frequently. 1430// 1431// * InvalidECSServiceException 1432// The Amazon ECS service identifier is not valid. 1433// 1434// * InvalidTargetGroupPairException 1435// A target group pair associated with this deployment is not valid. 1436// 1437// * ECSServiceMappingLimitExceededException 1438// The Amazon ECS service is associated with more than one deployment groups. 1439// An Amazon ECS service can be associated with only one deployment group. 1440// 1441// * InvalidTagsToAddException 1442// The specified tags are not valid. 1443// 1444// * InvalidTrafficRoutingConfigurationException 1445// The configuration that specifies how traffic is routed during a deployment 1446// is invalid. 1447// 1448// See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/CreateDeploymentGroup 1449func (c *CodeDeploy) CreateDeploymentGroup(input *CreateDeploymentGroupInput) (*CreateDeploymentGroupOutput, error) { 1450 req, out := c.CreateDeploymentGroupRequest(input) 1451 return out, req.Send() 1452} 1453 1454// CreateDeploymentGroupWithContext is the same as CreateDeploymentGroup with the addition of 1455// the ability to pass a context and additional request options. 1456// 1457// See CreateDeploymentGroup for details on how to use this API operation. 1458// 1459// The context must be non-nil and will be used for request cancellation. If 1460// the context is nil a panic will occur. In the future the SDK may create 1461// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1462// for more information on using Contexts. 1463func (c *CodeDeploy) CreateDeploymentGroupWithContext(ctx aws.Context, input *CreateDeploymentGroupInput, opts ...request.Option) (*CreateDeploymentGroupOutput, error) { 1464 req, out := c.CreateDeploymentGroupRequest(input) 1465 req.SetContext(ctx) 1466 req.ApplyOptions(opts...) 1467 return out, req.Send() 1468} 1469 1470const opDeleteApplication = "DeleteApplication" 1471 1472// DeleteApplicationRequest generates a "aws/request.Request" representing the 1473// client's request for the DeleteApplication operation. The "output" return 1474// value will be populated with the request's response once the request completes 1475// successfully. 1476// 1477// Use "Send" method on the returned Request to send the API call to the service. 1478// the "output" return value is not valid until after Send returns without error. 1479// 1480// See DeleteApplication for more information on using the DeleteApplication 1481// API call, and error handling. 1482// 1483// This method is useful when you want to inject custom logic or configuration 1484// into the SDK's request lifecycle. Such as custom headers, or retry logic. 1485// 1486// 1487// // Example sending a request using the DeleteApplicationRequest method. 1488// req, resp := client.DeleteApplicationRequest(params) 1489// 1490// err := req.Send() 1491// if err == nil { // resp is now filled 1492// fmt.Println(resp) 1493// } 1494// 1495// See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/DeleteApplication 1496func (c *CodeDeploy) DeleteApplicationRequest(input *DeleteApplicationInput) (req *request.Request, output *DeleteApplicationOutput) { 1497 op := &request.Operation{ 1498 Name: opDeleteApplication, 1499 HTTPMethod: "POST", 1500 HTTPPath: "/", 1501 } 1502 1503 if input == nil { 1504 input = &DeleteApplicationInput{} 1505 } 1506 1507 output = &DeleteApplicationOutput{} 1508 req = c.newRequest(op, input, output) 1509 req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) 1510 return 1511} 1512 1513// DeleteApplication API operation for AWS CodeDeploy. 1514// 1515// Deletes an application. 1516// 1517// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1518// with awserr.Error's Code and Message methods to get detailed information about 1519// the error. 1520// 1521// See the AWS API reference guide for AWS CodeDeploy's 1522// API operation DeleteApplication for usage and error information. 1523// 1524// Returned Error Types: 1525// * ApplicationNameRequiredException 1526// The minimum number of required application names was not specified. 1527// 1528// * InvalidApplicationNameException 1529// The application name was specified in an invalid format. 1530// 1531// * InvalidRoleException 1532// The service role ARN was specified in an invalid format. Or, if an Auto Scaling 1533// group was specified, the specified service role does not grant the appropriate 1534// permissions to Amazon EC2 Auto Scaling. 1535// 1536// See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/DeleteApplication 1537func (c *CodeDeploy) DeleteApplication(input *DeleteApplicationInput) (*DeleteApplicationOutput, error) { 1538 req, out := c.DeleteApplicationRequest(input) 1539 return out, req.Send() 1540} 1541 1542// DeleteApplicationWithContext is the same as DeleteApplication with the addition of 1543// the ability to pass a context and additional request options. 1544// 1545// See DeleteApplication for details on how to use this API operation. 1546// 1547// The context must be non-nil and will be used for request cancellation. If 1548// the context is nil a panic will occur. In the future the SDK may create 1549// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1550// for more information on using Contexts. 1551func (c *CodeDeploy) DeleteApplicationWithContext(ctx aws.Context, input *DeleteApplicationInput, opts ...request.Option) (*DeleteApplicationOutput, error) { 1552 req, out := c.DeleteApplicationRequest(input) 1553 req.SetContext(ctx) 1554 req.ApplyOptions(opts...) 1555 return out, req.Send() 1556} 1557 1558const opDeleteDeploymentConfig = "DeleteDeploymentConfig" 1559 1560// DeleteDeploymentConfigRequest generates a "aws/request.Request" representing the 1561// client's request for the DeleteDeploymentConfig operation. The "output" return 1562// value will be populated with the request's response once the request completes 1563// successfully. 1564// 1565// Use "Send" method on the returned Request to send the API call to the service. 1566// the "output" return value is not valid until after Send returns without error. 1567// 1568// See DeleteDeploymentConfig for more information on using the DeleteDeploymentConfig 1569// API call, and error handling. 1570// 1571// This method is useful when you want to inject custom logic or configuration 1572// into the SDK's request lifecycle. Such as custom headers, or retry logic. 1573// 1574// 1575// // Example sending a request using the DeleteDeploymentConfigRequest method. 1576// req, resp := client.DeleteDeploymentConfigRequest(params) 1577// 1578// err := req.Send() 1579// if err == nil { // resp is now filled 1580// fmt.Println(resp) 1581// } 1582// 1583// See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/DeleteDeploymentConfig 1584func (c *CodeDeploy) DeleteDeploymentConfigRequest(input *DeleteDeploymentConfigInput) (req *request.Request, output *DeleteDeploymentConfigOutput) { 1585 op := &request.Operation{ 1586 Name: opDeleteDeploymentConfig, 1587 HTTPMethod: "POST", 1588 HTTPPath: "/", 1589 } 1590 1591 if input == nil { 1592 input = &DeleteDeploymentConfigInput{} 1593 } 1594 1595 output = &DeleteDeploymentConfigOutput{} 1596 req = c.newRequest(op, input, output) 1597 req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) 1598 return 1599} 1600 1601// DeleteDeploymentConfig API operation for AWS CodeDeploy. 1602// 1603// Deletes a deployment configuration. 1604// 1605// A deployment configuration cannot be deleted if it is currently in use. Predefined 1606// configurations cannot be deleted. 1607// 1608// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1609// with awserr.Error's Code and Message methods to get detailed information about 1610// the error. 1611// 1612// See the AWS API reference guide for AWS CodeDeploy's 1613// API operation DeleteDeploymentConfig for usage and error information. 1614// 1615// Returned Error Types: 1616// * InvalidDeploymentConfigNameException 1617// The deployment configuration name was specified in an invalid format. 1618// 1619// * DeploymentConfigNameRequiredException 1620// The deployment configuration name was not specified. 1621// 1622// * DeploymentConfigInUseException 1623// The deployment configuration is still in use. 1624// 1625// * InvalidOperationException 1626// An invalid operation was detected. 1627// 1628// See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/DeleteDeploymentConfig 1629func (c *CodeDeploy) DeleteDeploymentConfig(input *DeleteDeploymentConfigInput) (*DeleteDeploymentConfigOutput, error) { 1630 req, out := c.DeleteDeploymentConfigRequest(input) 1631 return out, req.Send() 1632} 1633 1634// DeleteDeploymentConfigWithContext is the same as DeleteDeploymentConfig with the addition of 1635// the ability to pass a context and additional request options. 1636// 1637// See DeleteDeploymentConfig for details on how to use this API operation. 1638// 1639// The context must be non-nil and will be used for request cancellation. If 1640// the context is nil a panic will occur. In the future the SDK may create 1641// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1642// for more information on using Contexts. 1643func (c *CodeDeploy) DeleteDeploymentConfigWithContext(ctx aws.Context, input *DeleteDeploymentConfigInput, opts ...request.Option) (*DeleteDeploymentConfigOutput, error) { 1644 req, out := c.DeleteDeploymentConfigRequest(input) 1645 req.SetContext(ctx) 1646 req.ApplyOptions(opts...) 1647 return out, req.Send() 1648} 1649 1650const opDeleteDeploymentGroup = "DeleteDeploymentGroup" 1651 1652// DeleteDeploymentGroupRequest generates a "aws/request.Request" representing the 1653// client's request for the DeleteDeploymentGroup operation. The "output" return 1654// value will be populated with the request's response once the request completes 1655// successfully. 1656// 1657// Use "Send" method on the returned Request to send the API call to the service. 1658// the "output" return value is not valid until after Send returns without error. 1659// 1660// See DeleteDeploymentGroup for more information on using the DeleteDeploymentGroup 1661// API call, and error handling. 1662// 1663// This method is useful when you want to inject custom logic or configuration 1664// into the SDK's request lifecycle. Such as custom headers, or retry logic. 1665// 1666// 1667// // Example sending a request using the DeleteDeploymentGroupRequest method. 1668// req, resp := client.DeleteDeploymentGroupRequest(params) 1669// 1670// err := req.Send() 1671// if err == nil { // resp is now filled 1672// fmt.Println(resp) 1673// } 1674// 1675// See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/DeleteDeploymentGroup 1676func (c *CodeDeploy) DeleteDeploymentGroupRequest(input *DeleteDeploymentGroupInput) (req *request.Request, output *DeleteDeploymentGroupOutput) { 1677 op := &request.Operation{ 1678 Name: opDeleteDeploymentGroup, 1679 HTTPMethod: "POST", 1680 HTTPPath: "/", 1681 } 1682 1683 if input == nil { 1684 input = &DeleteDeploymentGroupInput{} 1685 } 1686 1687 output = &DeleteDeploymentGroupOutput{} 1688 req = c.newRequest(op, input, output) 1689 return 1690} 1691 1692// DeleteDeploymentGroup API operation for AWS CodeDeploy. 1693// 1694// Deletes a deployment group. 1695// 1696// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1697// with awserr.Error's Code and Message methods to get detailed information about 1698// the error. 1699// 1700// See the AWS API reference guide for AWS CodeDeploy's 1701// API operation DeleteDeploymentGroup for usage and error information. 1702// 1703// Returned Error Types: 1704// * ApplicationNameRequiredException 1705// The minimum number of required application names was not specified. 1706// 1707// * InvalidApplicationNameException 1708// The application name was specified in an invalid format. 1709// 1710// * DeploymentGroupNameRequiredException 1711// The deployment group name was not specified. 1712// 1713// * InvalidDeploymentGroupNameException 1714// The deployment group name was specified in an invalid format. 1715// 1716// * InvalidRoleException 1717// The service role ARN was specified in an invalid format. Or, if an Auto Scaling 1718// group was specified, the specified service role does not grant the appropriate 1719// permissions to Amazon EC2 Auto Scaling. 1720// 1721// See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/DeleteDeploymentGroup 1722func (c *CodeDeploy) DeleteDeploymentGroup(input *DeleteDeploymentGroupInput) (*DeleteDeploymentGroupOutput, error) { 1723 req, out := c.DeleteDeploymentGroupRequest(input) 1724 return out, req.Send() 1725} 1726 1727// DeleteDeploymentGroupWithContext is the same as DeleteDeploymentGroup with the addition of 1728// the ability to pass a context and additional request options. 1729// 1730// See DeleteDeploymentGroup for details on how to use this API operation. 1731// 1732// The context must be non-nil and will be used for request cancellation. If 1733// the context is nil a panic will occur. In the future the SDK may create 1734// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1735// for more information on using Contexts. 1736func (c *CodeDeploy) DeleteDeploymentGroupWithContext(ctx aws.Context, input *DeleteDeploymentGroupInput, opts ...request.Option) (*DeleteDeploymentGroupOutput, error) { 1737 req, out := c.DeleteDeploymentGroupRequest(input) 1738 req.SetContext(ctx) 1739 req.ApplyOptions(opts...) 1740 return out, req.Send() 1741} 1742 1743const opDeleteGitHubAccountToken = "DeleteGitHubAccountToken" 1744 1745// DeleteGitHubAccountTokenRequest generates a "aws/request.Request" representing the 1746// client's request for the DeleteGitHubAccountToken operation. The "output" return 1747// value will be populated with the request's response once the request completes 1748// successfully. 1749// 1750// Use "Send" method on the returned Request to send the API call to the service. 1751// the "output" return value is not valid until after Send returns without error. 1752// 1753// See DeleteGitHubAccountToken for more information on using the DeleteGitHubAccountToken 1754// API call, and error handling. 1755// 1756// This method is useful when you want to inject custom logic or configuration 1757// into the SDK's request lifecycle. Such as custom headers, or retry logic. 1758// 1759// 1760// // Example sending a request using the DeleteGitHubAccountTokenRequest method. 1761// req, resp := client.DeleteGitHubAccountTokenRequest(params) 1762// 1763// err := req.Send() 1764// if err == nil { // resp is now filled 1765// fmt.Println(resp) 1766// } 1767// 1768// See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/DeleteGitHubAccountToken 1769func (c *CodeDeploy) DeleteGitHubAccountTokenRequest(input *DeleteGitHubAccountTokenInput) (req *request.Request, output *DeleteGitHubAccountTokenOutput) { 1770 op := &request.Operation{ 1771 Name: opDeleteGitHubAccountToken, 1772 HTTPMethod: "POST", 1773 HTTPPath: "/", 1774 } 1775 1776 if input == nil { 1777 input = &DeleteGitHubAccountTokenInput{} 1778 } 1779 1780 output = &DeleteGitHubAccountTokenOutput{} 1781 req = c.newRequest(op, input, output) 1782 return 1783} 1784 1785// DeleteGitHubAccountToken API operation for AWS CodeDeploy. 1786// 1787// Deletes a GitHub account connection. 1788// 1789// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1790// with awserr.Error's Code and Message methods to get detailed information about 1791// the error. 1792// 1793// See the AWS API reference guide for AWS CodeDeploy's 1794// API operation DeleteGitHubAccountToken for usage and error information. 1795// 1796// Returned Error Types: 1797// * GitHubAccountTokenNameRequiredException 1798// The call is missing a required GitHub account connection name. 1799// 1800// * GitHubAccountTokenDoesNotExistException 1801// No GitHub account connection exists with the named specified in the call. 1802// 1803// * InvalidGitHubAccountTokenNameException 1804// The format of the specified GitHub account connection name is invalid. 1805// 1806// * ResourceValidationException 1807// The specified resource could not be validated. 1808// 1809// * OperationNotSupportedException 1810// The API used does not support the deployment. 1811// 1812// See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/DeleteGitHubAccountToken 1813func (c *CodeDeploy) DeleteGitHubAccountToken(input *DeleteGitHubAccountTokenInput) (*DeleteGitHubAccountTokenOutput, error) { 1814 req, out := c.DeleteGitHubAccountTokenRequest(input) 1815 return out, req.Send() 1816} 1817 1818// DeleteGitHubAccountTokenWithContext is the same as DeleteGitHubAccountToken with the addition of 1819// the ability to pass a context and additional request options. 1820// 1821// See DeleteGitHubAccountToken for details on how to use this API operation. 1822// 1823// The context must be non-nil and will be used for request cancellation. If 1824// the context is nil a panic will occur. In the future the SDK may create 1825// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1826// for more information on using Contexts. 1827func (c *CodeDeploy) DeleteGitHubAccountTokenWithContext(ctx aws.Context, input *DeleteGitHubAccountTokenInput, opts ...request.Option) (*DeleteGitHubAccountTokenOutput, error) { 1828 req, out := c.DeleteGitHubAccountTokenRequest(input) 1829 req.SetContext(ctx) 1830 req.ApplyOptions(opts...) 1831 return out, req.Send() 1832} 1833 1834const opDeleteResourcesByExternalId = "DeleteResourcesByExternalId" 1835 1836// DeleteResourcesByExternalIdRequest generates a "aws/request.Request" representing the 1837// client's request for the DeleteResourcesByExternalId operation. The "output" return 1838// value will be populated with the request's response once the request completes 1839// successfully. 1840// 1841// Use "Send" method on the returned Request to send the API call to the service. 1842// the "output" return value is not valid until after Send returns without error. 1843// 1844// See DeleteResourcesByExternalId for more information on using the DeleteResourcesByExternalId 1845// API call, and error handling. 1846// 1847// This method is useful when you want to inject custom logic or configuration 1848// into the SDK's request lifecycle. Such as custom headers, or retry logic. 1849// 1850// 1851// // Example sending a request using the DeleteResourcesByExternalIdRequest method. 1852// req, resp := client.DeleteResourcesByExternalIdRequest(params) 1853// 1854// err := req.Send() 1855// if err == nil { // resp is now filled 1856// fmt.Println(resp) 1857// } 1858// 1859// See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/DeleteResourcesByExternalId 1860func (c *CodeDeploy) DeleteResourcesByExternalIdRequest(input *DeleteResourcesByExternalIdInput) (req *request.Request, output *DeleteResourcesByExternalIdOutput) { 1861 op := &request.Operation{ 1862 Name: opDeleteResourcesByExternalId, 1863 HTTPMethod: "POST", 1864 HTTPPath: "/", 1865 } 1866 1867 if input == nil { 1868 input = &DeleteResourcesByExternalIdInput{} 1869 } 1870 1871 output = &DeleteResourcesByExternalIdOutput{} 1872 req = c.newRequest(op, input, output) 1873 req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) 1874 return 1875} 1876 1877// DeleteResourcesByExternalId API operation for AWS CodeDeploy. 1878// 1879// Deletes resources linked to an external ID. 1880// 1881// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1882// with awserr.Error's Code and Message methods to get detailed information about 1883// the error. 1884// 1885// See the AWS API reference guide for AWS CodeDeploy's 1886// API operation DeleteResourcesByExternalId for usage and error information. 1887// See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/DeleteResourcesByExternalId 1888func (c *CodeDeploy) DeleteResourcesByExternalId(input *DeleteResourcesByExternalIdInput) (*DeleteResourcesByExternalIdOutput, error) { 1889 req, out := c.DeleteResourcesByExternalIdRequest(input) 1890 return out, req.Send() 1891} 1892 1893// DeleteResourcesByExternalIdWithContext is the same as DeleteResourcesByExternalId with the addition of 1894// the ability to pass a context and additional request options. 1895// 1896// See DeleteResourcesByExternalId for details on how to use this API operation. 1897// 1898// The context must be non-nil and will be used for request cancellation. If 1899// the context is nil a panic will occur. In the future the SDK may create 1900// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1901// for more information on using Contexts. 1902func (c *CodeDeploy) DeleteResourcesByExternalIdWithContext(ctx aws.Context, input *DeleteResourcesByExternalIdInput, opts ...request.Option) (*DeleteResourcesByExternalIdOutput, error) { 1903 req, out := c.DeleteResourcesByExternalIdRequest(input) 1904 req.SetContext(ctx) 1905 req.ApplyOptions(opts...) 1906 return out, req.Send() 1907} 1908 1909const opDeregisterOnPremisesInstance = "DeregisterOnPremisesInstance" 1910 1911// DeregisterOnPremisesInstanceRequest generates a "aws/request.Request" representing the 1912// client's request for the DeregisterOnPremisesInstance operation. The "output" return 1913// value will be populated with the request's response once the request completes 1914// successfully. 1915// 1916// Use "Send" method on the returned Request to send the API call to the service. 1917// the "output" return value is not valid until after Send returns without error. 1918// 1919// See DeregisterOnPremisesInstance for more information on using the DeregisterOnPremisesInstance 1920// API call, and error handling. 1921// 1922// This method is useful when you want to inject custom logic or configuration 1923// into the SDK's request lifecycle. Such as custom headers, or retry logic. 1924// 1925// 1926// // Example sending a request using the DeregisterOnPremisesInstanceRequest method. 1927// req, resp := client.DeregisterOnPremisesInstanceRequest(params) 1928// 1929// err := req.Send() 1930// if err == nil { // resp is now filled 1931// fmt.Println(resp) 1932// } 1933// 1934// See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/DeregisterOnPremisesInstance 1935func (c *CodeDeploy) DeregisterOnPremisesInstanceRequest(input *DeregisterOnPremisesInstanceInput) (req *request.Request, output *DeregisterOnPremisesInstanceOutput) { 1936 op := &request.Operation{ 1937 Name: opDeregisterOnPremisesInstance, 1938 HTTPMethod: "POST", 1939 HTTPPath: "/", 1940 } 1941 1942 if input == nil { 1943 input = &DeregisterOnPremisesInstanceInput{} 1944 } 1945 1946 output = &DeregisterOnPremisesInstanceOutput{} 1947 req = c.newRequest(op, input, output) 1948 req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) 1949 return 1950} 1951 1952// DeregisterOnPremisesInstance API operation for AWS CodeDeploy. 1953// 1954// Deregisters an on-premises instance. 1955// 1956// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1957// with awserr.Error's Code and Message methods to get detailed information about 1958// the error. 1959// 1960// See the AWS API reference guide for AWS CodeDeploy's 1961// API operation DeregisterOnPremisesInstance for usage and error information. 1962// 1963// Returned Error Types: 1964// * InstanceNameRequiredException 1965// An on-premises instance name was not specified. 1966// 1967// * InvalidInstanceNameException 1968// The on-premises instance name was specified in an invalid format. 1969// 1970// See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/DeregisterOnPremisesInstance 1971func (c *CodeDeploy) DeregisterOnPremisesInstance(input *DeregisterOnPremisesInstanceInput) (*DeregisterOnPremisesInstanceOutput, error) { 1972 req, out := c.DeregisterOnPremisesInstanceRequest(input) 1973 return out, req.Send() 1974} 1975 1976// DeregisterOnPremisesInstanceWithContext is the same as DeregisterOnPremisesInstance with the addition of 1977// the ability to pass a context and additional request options. 1978// 1979// See DeregisterOnPremisesInstance for details on how to use this API operation. 1980// 1981// The context must be non-nil and will be used for request cancellation. If 1982// the context is nil a panic will occur. In the future the SDK may create 1983// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1984// for more information on using Contexts. 1985func (c *CodeDeploy) DeregisterOnPremisesInstanceWithContext(ctx aws.Context, input *DeregisterOnPremisesInstanceInput, opts ...request.Option) (*DeregisterOnPremisesInstanceOutput, error) { 1986 req, out := c.DeregisterOnPremisesInstanceRequest(input) 1987 req.SetContext(ctx) 1988 req.ApplyOptions(opts...) 1989 return out, req.Send() 1990} 1991 1992const opGetApplication = "GetApplication" 1993 1994// GetApplicationRequest generates a "aws/request.Request" representing the 1995// client's request for the GetApplication operation. The "output" return 1996// value will be populated with the request's response once the request completes 1997// successfully. 1998// 1999// Use "Send" method on the returned Request to send the API call to the service. 2000// the "output" return value is not valid until after Send returns without error. 2001// 2002// See GetApplication for more information on using the GetApplication 2003// API call, and error handling. 2004// 2005// This method is useful when you want to inject custom logic or configuration 2006// into the SDK's request lifecycle. Such as custom headers, or retry logic. 2007// 2008// 2009// // Example sending a request using the GetApplicationRequest method. 2010// req, resp := client.GetApplicationRequest(params) 2011// 2012// err := req.Send() 2013// if err == nil { // resp is now filled 2014// fmt.Println(resp) 2015// } 2016// 2017// See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GetApplication 2018func (c *CodeDeploy) GetApplicationRequest(input *GetApplicationInput) (req *request.Request, output *GetApplicationOutput) { 2019 op := &request.Operation{ 2020 Name: opGetApplication, 2021 HTTPMethod: "POST", 2022 HTTPPath: "/", 2023 } 2024 2025 if input == nil { 2026 input = &GetApplicationInput{} 2027 } 2028 2029 output = &GetApplicationOutput{} 2030 req = c.newRequest(op, input, output) 2031 return 2032} 2033 2034// GetApplication API operation for AWS CodeDeploy. 2035// 2036// Gets information about an application. 2037// 2038// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 2039// with awserr.Error's Code and Message methods to get detailed information about 2040// the error. 2041// 2042// See the AWS API reference guide for AWS CodeDeploy's 2043// API operation GetApplication for usage and error information. 2044// 2045// Returned Error Types: 2046// * ApplicationNameRequiredException 2047// The minimum number of required application names was not specified. 2048// 2049// * InvalidApplicationNameException 2050// The application name was specified in an invalid format. 2051// 2052// * ApplicationDoesNotExistException 2053// The application does not exist with the IAM user or AWS account. 2054// 2055// See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GetApplication 2056func (c *CodeDeploy) GetApplication(input *GetApplicationInput) (*GetApplicationOutput, error) { 2057 req, out := c.GetApplicationRequest(input) 2058 return out, req.Send() 2059} 2060 2061// GetApplicationWithContext is the same as GetApplication with the addition of 2062// the ability to pass a context and additional request options. 2063// 2064// See GetApplication for details on how to use this API operation. 2065// 2066// The context must be non-nil and will be used for request cancellation. If 2067// the context is nil a panic will occur. In the future the SDK may create 2068// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 2069// for more information on using Contexts. 2070func (c *CodeDeploy) GetApplicationWithContext(ctx aws.Context, input *GetApplicationInput, opts ...request.Option) (*GetApplicationOutput, error) { 2071 req, out := c.GetApplicationRequest(input) 2072 req.SetContext(ctx) 2073 req.ApplyOptions(opts...) 2074 return out, req.Send() 2075} 2076 2077const opGetApplicationRevision = "GetApplicationRevision" 2078 2079// GetApplicationRevisionRequest generates a "aws/request.Request" representing the 2080// client's request for the GetApplicationRevision operation. The "output" return 2081// value will be populated with the request's response once the request completes 2082// successfully. 2083// 2084// Use "Send" method on the returned Request to send the API call to the service. 2085// the "output" return value is not valid until after Send returns without error. 2086// 2087// See GetApplicationRevision for more information on using the GetApplicationRevision 2088// API call, and error handling. 2089// 2090// This method is useful when you want to inject custom logic or configuration 2091// into the SDK's request lifecycle. Such as custom headers, or retry logic. 2092// 2093// 2094// // Example sending a request using the GetApplicationRevisionRequest method. 2095// req, resp := client.GetApplicationRevisionRequest(params) 2096// 2097// err := req.Send() 2098// if err == nil { // resp is now filled 2099// fmt.Println(resp) 2100// } 2101// 2102// See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GetApplicationRevision 2103func (c *CodeDeploy) GetApplicationRevisionRequest(input *GetApplicationRevisionInput) (req *request.Request, output *GetApplicationRevisionOutput) { 2104 op := &request.Operation{ 2105 Name: opGetApplicationRevision, 2106 HTTPMethod: "POST", 2107 HTTPPath: "/", 2108 } 2109 2110 if input == nil { 2111 input = &GetApplicationRevisionInput{} 2112 } 2113 2114 output = &GetApplicationRevisionOutput{} 2115 req = c.newRequest(op, input, output) 2116 return 2117} 2118 2119// GetApplicationRevision API operation for AWS CodeDeploy. 2120// 2121// Gets information about an application revision. 2122// 2123// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 2124// with awserr.Error's Code and Message methods to get detailed information about 2125// the error. 2126// 2127// See the AWS API reference guide for AWS CodeDeploy's 2128// API operation GetApplicationRevision for usage and error information. 2129// 2130// Returned Error Types: 2131// * ApplicationDoesNotExistException 2132// The application does not exist with the IAM user or AWS account. 2133// 2134// * ApplicationNameRequiredException 2135// The minimum number of required application names was not specified. 2136// 2137// * InvalidApplicationNameException 2138// The application name was specified in an invalid format. 2139// 2140// * RevisionDoesNotExistException 2141// The named revision does not exist with the IAM user or AWS account. 2142// 2143// * RevisionRequiredException 2144// The revision ID was not specified. 2145// 2146// * InvalidRevisionException 2147// The revision was specified in an invalid format. 2148// 2149// See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GetApplicationRevision 2150func (c *CodeDeploy) GetApplicationRevision(input *GetApplicationRevisionInput) (*GetApplicationRevisionOutput, error) { 2151 req, out := c.GetApplicationRevisionRequest(input) 2152 return out, req.Send() 2153} 2154 2155// GetApplicationRevisionWithContext is the same as GetApplicationRevision with the addition of 2156// the ability to pass a context and additional request options. 2157// 2158// See GetApplicationRevision for details on how to use this API operation. 2159// 2160// The context must be non-nil and will be used for request cancellation. If 2161// the context is nil a panic will occur. In the future the SDK may create 2162// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 2163// for more information on using Contexts. 2164func (c *CodeDeploy) GetApplicationRevisionWithContext(ctx aws.Context, input *GetApplicationRevisionInput, opts ...request.Option) (*GetApplicationRevisionOutput, error) { 2165 req, out := c.GetApplicationRevisionRequest(input) 2166 req.SetContext(ctx) 2167 req.ApplyOptions(opts...) 2168 return out, req.Send() 2169} 2170 2171const opGetDeployment = "GetDeployment" 2172 2173// GetDeploymentRequest generates a "aws/request.Request" representing the 2174// client's request for the GetDeployment operation. The "output" return 2175// value will be populated with the request's response once the request completes 2176// successfully. 2177// 2178// Use "Send" method on the returned Request to send the API call to the service. 2179// the "output" return value is not valid until after Send returns without error. 2180// 2181// See GetDeployment for more information on using the GetDeployment 2182// API call, and error handling. 2183// 2184// This method is useful when you want to inject custom logic or configuration 2185// into the SDK's request lifecycle. Such as custom headers, or retry logic. 2186// 2187// 2188// // Example sending a request using the GetDeploymentRequest method. 2189// req, resp := client.GetDeploymentRequest(params) 2190// 2191// err := req.Send() 2192// if err == nil { // resp is now filled 2193// fmt.Println(resp) 2194// } 2195// 2196// See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GetDeployment 2197func (c *CodeDeploy) GetDeploymentRequest(input *GetDeploymentInput) (req *request.Request, output *GetDeploymentOutput) { 2198 op := &request.Operation{ 2199 Name: opGetDeployment, 2200 HTTPMethod: "POST", 2201 HTTPPath: "/", 2202 } 2203 2204 if input == nil { 2205 input = &GetDeploymentInput{} 2206 } 2207 2208 output = &GetDeploymentOutput{} 2209 req = c.newRequest(op, input, output) 2210 return 2211} 2212 2213// GetDeployment API operation for AWS CodeDeploy. 2214// 2215// Gets information about a deployment. 2216// 2217// The content property of the appSpecContent object in the returned revision 2218// is always null. Use GetApplicationRevision and the sha256 property of the 2219// returned appSpecContent object to get the content of the deployment’s AppSpec 2220// file. 2221// 2222// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 2223// with awserr.Error's Code and Message methods to get detailed information about 2224// the error. 2225// 2226// See the AWS API reference guide for AWS CodeDeploy's 2227// API operation GetDeployment for usage and error information. 2228// 2229// Returned Error Types: 2230// * DeploymentIdRequiredException 2231// At least one deployment ID must be specified. 2232// 2233// * InvalidDeploymentIdException 2234// At least one of the deployment IDs was specified in an invalid format. 2235// 2236// * DeploymentDoesNotExistException 2237// The deployment with the IAM user or AWS account does not exist. 2238// 2239// See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GetDeployment 2240func (c *CodeDeploy) GetDeployment(input *GetDeploymentInput) (*GetDeploymentOutput, error) { 2241 req, out := c.GetDeploymentRequest(input) 2242 return out, req.Send() 2243} 2244 2245// GetDeploymentWithContext is the same as GetDeployment with the addition of 2246// the ability to pass a context and additional request options. 2247// 2248// See GetDeployment for details on how to use this API operation. 2249// 2250// The context must be non-nil and will be used for request cancellation. If 2251// the context is nil a panic will occur. In the future the SDK may create 2252// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 2253// for more information on using Contexts. 2254func (c *CodeDeploy) GetDeploymentWithContext(ctx aws.Context, input *GetDeploymentInput, opts ...request.Option) (*GetDeploymentOutput, error) { 2255 req, out := c.GetDeploymentRequest(input) 2256 req.SetContext(ctx) 2257 req.ApplyOptions(opts...) 2258 return out, req.Send() 2259} 2260 2261const opGetDeploymentConfig = "GetDeploymentConfig" 2262 2263// GetDeploymentConfigRequest generates a "aws/request.Request" representing the 2264// client's request for the GetDeploymentConfig operation. The "output" return 2265// value will be populated with the request's response once the request completes 2266// successfully. 2267// 2268// Use "Send" method on the returned Request to send the API call to the service. 2269// the "output" return value is not valid until after Send returns without error. 2270// 2271// See GetDeploymentConfig for more information on using the GetDeploymentConfig 2272// API call, and error handling. 2273// 2274// This method is useful when you want to inject custom logic or configuration 2275// into the SDK's request lifecycle. Such as custom headers, or retry logic. 2276// 2277// 2278// // Example sending a request using the GetDeploymentConfigRequest method. 2279// req, resp := client.GetDeploymentConfigRequest(params) 2280// 2281// err := req.Send() 2282// if err == nil { // resp is now filled 2283// fmt.Println(resp) 2284// } 2285// 2286// See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GetDeploymentConfig 2287func (c *CodeDeploy) GetDeploymentConfigRequest(input *GetDeploymentConfigInput) (req *request.Request, output *GetDeploymentConfigOutput) { 2288 op := &request.Operation{ 2289 Name: opGetDeploymentConfig, 2290 HTTPMethod: "POST", 2291 HTTPPath: "/", 2292 } 2293 2294 if input == nil { 2295 input = &GetDeploymentConfigInput{} 2296 } 2297 2298 output = &GetDeploymentConfigOutput{} 2299 req = c.newRequest(op, input, output) 2300 return 2301} 2302 2303// GetDeploymentConfig API operation for AWS CodeDeploy. 2304// 2305// Gets information about a deployment configuration. 2306// 2307// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 2308// with awserr.Error's Code and Message methods to get detailed information about 2309// the error. 2310// 2311// See the AWS API reference guide for AWS CodeDeploy's 2312// API operation GetDeploymentConfig for usage and error information. 2313// 2314// Returned Error Types: 2315// * InvalidDeploymentConfigNameException 2316// The deployment configuration name was specified in an invalid format. 2317// 2318// * DeploymentConfigNameRequiredException 2319// The deployment configuration name was not specified. 2320// 2321// * DeploymentConfigDoesNotExistException 2322// The deployment configuration does not exist with the IAM user or AWS account. 2323// 2324// * InvalidComputePlatformException 2325// The computePlatform is invalid. The computePlatform should be Lambda, Server, 2326// or ECS. 2327// 2328// See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GetDeploymentConfig 2329func (c *CodeDeploy) GetDeploymentConfig(input *GetDeploymentConfigInput) (*GetDeploymentConfigOutput, error) { 2330 req, out := c.GetDeploymentConfigRequest(input) 2331 return out, req.Send() 2332} 2333 2334// GetDeploymentConfigWithContext is the same as GetDeploymentConfig with the addition of 2335// the ability to pass a context and additional request options. 2336// 2337// See GetDeploymentConfig for details on how to use this API operation. 2338// 2339// The context must be non-nil and will be used for request cancellation. If 2340// the context is nil a panic will occur. In the future the SDK may create 2341// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 2342// for more information on using Contexts. 2343func (c *CodeDeploy) GetDeploymentConfigWithContext(ctx aws.Context, input *GetDeploymentConfigInput, opts ...request.Option) (*GetDeploymentConfigOutput, error) { 2344 req, out := c.GetDeploymentConfigRequest(input) 2345 req.SetContext(ctx) 2346 req.ApplyOptions(opts...) 2347 return out, req.Send() 2348} 2349 2350const opGetDeploymentGroup = "GetDeploymentGroup" 2351 2352// GetDeploymentGroupRequest generates a "aws/request.Request" representing the 2353// client's request for the GetDeploymentGroup operation. The "output" return 2354// value will be populated with the request's response once the request completes 2355// successfully. 2356// 2357// Use "Send" method on the returned Request to send the API call to the service. 2358// the "output" return value is not valid until after Send returns without error. 2359// 2360// See GetDeploymentGroup for more information on using the GetDeploymentGroup 2361// API call, and error handling. 2362// 2363// This method is useful when you want to inject custom logic or configuration 2364// into the SDK's request lifecycle. Such as custom headers, or retry logic. 2365// 2366// 2367// // Example sending a request using the GetDeploymentGroupRequest method. 2368// req, resp := client.GetDeploymentGroupRequest(params) 2369// 2370// err := req.Send() 2371// if err == nil { // resp is now filled 2372// fmt.Println(resp) 2373// } 2374// 2375// See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GetDeploymentGroup 2376func (c *CodeDeploy) GetDeploymentGroupRequest(input *GetDeploymentGroupInput) (req *request.Request, output *GetDeploymentGroupOutput) { 2377 op := &request.Operation{ 2378 Name: opGetDeploymentGroup, 2379 HTTPMethod: "POST", 2380 HTTPPath: "/", 2381 } 2382 2383 if input == nil { 2384 input = &GetDeploymentGroupInput{} 2385 } 2386 2387 output = &GetDeploymentGroupOutput{} 2388 req = c.newRequest(op, input, output) 2389 return 2390} 2391 2392// GetDeploymentGroup API operation for AWS CodeDeploy. 2393// 2394// Gets information about a deployment group. 2395// 2396// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 2397// with awserr.Error's Code and Message methods to get detailed information about 2398// the error. 2399// 2400// See the AWS API reference guide for AWS CodeDeploy's 2401// API operation GetDeploymentGroup for usage and error information. 2402// 2403// Returned Error Types: 2404// * ApplicationNameRequiredException 2405// The minimum number of required application names was not specified. 2406// 2407// * InvalidApplicationNameException 2408// The application name was specified in an invalid format. 2409// 2410// * ApplicationDoesNotExistException 2411// The application does not exist with the IAM user or AWS account. 2412// 2413// * DeploymentGroupNameRequiredException 2414// The deployment group name was not specified. 2415// 2416// * InvalidDeploymentGroupNameException 2417// The deployment group name was specified in an invalid format. 2418// 2419// * DeploymentGroupDoesNotExistException 2420// The named deployment group with the IAM user or AWS account does not exist. 2421// 2422// * DeploymentConfigDoesNotExistException 2423// The deployment configuration does not exist with the IAM user or AWS account. 2424// 2425// See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GetDeploymentGroup 2426func (c *CodeDeploy) GetDeploymentGroup(input *GetDeploymentGroupInput) (*GetDeploymentGroupOutput, error) { 2427 req, out := c.GetDeploymentGroupRequest(input) 2428 return out, req.Send() 2429} 2430 2431// GetDeploymentGroupWithContext is the same as GetDeploymentGroup with the addition of 2432// the ability to pass a context and additional request options. 2433// 2434// See GetDeploymentGroup for details on how to use this API operation. 2435// 2436// The context must be non-nil and will be used for request cancellation. If 2437// the context is nil a panic will occur. In the future the SDK may create 2438// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 2439// for more information on using Contexts. 2440func (c *CodeDeploy) GetDeploymentGroupWithContext(ctx aws.Context, input *GetDeploymentGroupInput, opts ...request.Option) (*GetDeploymentGroupOutput, error) { 2441 req, out := c.GetDeploymentGroupRequest(input) 2442 req.SetContext(ctx) 2443 req.ApplyOptions(opts...) 2444 return out, req.Send() 2445} 2446 2447const opGetDeploymentInstance = "GetDeploymentInstance" 2448 2449// GetDeploymentInstanceRequest generates a "aws/request.Request" representing the 2450// client's request for the GetDeploymentInstance operation. The "output" return 2451// value will be populated with the request's response once the request completes 2452// successfully. 2453// 2454// Use "Send" method on the returned Request to send the API call to the service. 2455// the "output" return value is not valid until after Send returns without error. 2456// 2457// See GetDeploymentInstance for more information on using the GetDeploymentInstance 2458// API call, and error handling. 2459// 2460// This method is useful when you want to inject custom logic or configuration 2461// into the SDK's request lifecycle. Such as custom headers, or retry logic. 2462// 2463// 2464// // Example sending a request using the GetDeploymentInstanceRequest method. 2465// req, resp := client.GetDeploymentInstanceRequest(params) 2466// 2467// err := req.Send() 2468// if err == nil { // resp is now filled 2469// fmt.Println(resp) 2470// } 2471// 2472// See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GetDeploymentInstance 2473// 2474// Deprecated: This operation is deprecated, use GetDeploymentTarget instead. 2475func (c *CodeDeploy) GetDeploymentInstanceRequest(input *GetDeploymentInstanceInput) (req *request.Request, output *GetDeploymentInstanceOutput) { 2476 if c.Client.Config.Logger != nil { 2477 c.Client.Config.Logger.Log("This operation, GetDeploymentInstance, has been deprecated") 2478 } 2479 op := &request.Operation{ 2480 Name: opGetDeploymentInstance, 2481 HTTPMethod: "POST", 2482 HTTPPath: "/", 2483 } 2484 2485 if input == nil { 2486 input = &GetDeploymentInstanceInput{} 2487 } 2488 2489 output = &GetDeploymentInstanceOutput{} 2490 req = c.newRequest(op, input, output) 2491 return 2492} 2493 2494// GetDeploymentInstance API operation for AWS CodeDeploy. 2495// 2496// Gets information about an instance as part of a deployment. 2497// 2498// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 2499// with awserr.Error's Code and Message methods to get detailed information about 2500// the error. 2501// 2502// See the AWS API reference guide for AWS CodeDeploy's 2503// API operation GetDeploymentInstance for usage and error information. 2504// 2505// Returned Error Types: 2506// * DeploymentIdRequiredException 2507// At least one deployment ID must be specified. 2508// 2509// * DeploymentDoesNotExistException 2510// The deployment with the IAM user or AWS account does not exist. 2511// 2512// * InstanceIdRequiredException 2513// The instance ID was not specified. 2514// 2515// * InvalidDeploymentIdException 2516// At least one of the deployment IDs was specified in an invalid format. 2517// 2518// * InstanceDoesNotExistException 2519// The specified instance does not exist in the deployment group. 2520// 2521// * InvalidInstanceNameException 2522// The on-premises instance name was specified in an invalid format. 2523// 2524// * InvalidComputePlatformException 2525// The computePlatform is invalid. The computePlatform should be Lambda, Server, 2526// or ECS. 2527// 2528// See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GetDeploymentInstance 2529// 2530// Deprecated: This operation is deprecated, use GetDeploymentTarget instead. 2531func (c *CodeDeploy) GetDeploymentInstance(input *GetDeploymentInstanceInput) (*GetDeploymentInstanceOutput, error) { 2532 req, out := c.GetDeploymentInstanceRequest(input) 2533 return out, req.Send() 2534} 2535 2536// GetDeploymentInstanceWithContext is the same as GetDeploymentInstance with the addition of 2537// the ability to pass a context and additional request options. 2538// 2539// See GetDeploymentInstance for details on how to use this API operation. 2540// 2541// The context must be non-nil and will be used for request cancellation. If 2542// the context is nil a panic will occur. In the future the SDK may create 2543// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 2544// for more information on using Contexts. 2545// 2546// Deprecated: This operation is deprecated, use GetDeploymentTarget instead. 2547func (c *CodeDeploy) GetDeploymentInstanceWithContext(ctx aws.Context, input *GetDeploymentInstanceInput, opts ...request.Option) (*GetDeploymentInstanceOutput, error) { 2548 req, out := c.GetDeploymentInstanceRequest(input) 2549 req.SetContext(ctx) 2550 req.ApplyOptions(opts...) 2551 return out, req.Send() 2552} 2553 2554const opGetDeploymentTarget = "GetDeploymentTarget" 2555 2556// GetDeploymentTargetRequest generates a "aws/request.Request" representing the 2557// client's request for the GetDeploymentTarget operation. The "output" return 2558// value will be populated with the request's response once the request completes 2559// successfully. 2560// 2561// Use "Send" method on the returned Request to send the API call to the service. 2562// the "output" return value is not valid until after Send returns without error. 2563// 2564// See GetDeploymentTarget for more information on using the GetDeploymentTarget 2565// API call, and error handling. 2566// 2567// This method is useful when you want to inject custom logic or configuration 2568// into the SDK's request lifecycle. Such as custom headers, or retry logic. 2569// 2570// 2571// // Example sending a request using the GetDeploymentTargetRequest method. 2572// req, resp := client.GetDeploymentTargetRequest(params) 2573// 2574// err := req.Send() 2575// if err == nil { // resp is now filled 2576// fmt.Println(resp) 2577// } 2578// 2579// See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GetDeploymentTarget 2580func (c *CodeDeploy) GetDeploymentTargetRequest(input *GetDeploymentTargetInput) (req *request.Request, output *GetDeploymentTargetOutput) { 2581 op := &request.Operation{ 2582 Name: opGetDeploymentTarget, 2583 HTTPMethod: "POST", 2584 HTTPPath: "/", 2585 } 2586 2587 if input == nil { 2588 input = &GetDeploymentTargetInput{} 2589 } 2590 2591 output = &GetDeploymentTargetOutput{} 2592 req = c.newRequest(op, input, output) 2593 return 2594} 2595 2596// GetDeploymentTarget API operation for AWS CodeDeploy. 2597// 2598// Returns information about a deployment target. 2599// 2600// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 2601// with awserr.Error's Code and Message methods to get detailed information about 2602// the error. 2603// 2604// See the AWS API reference guide for AWS CodeDeploy's 2605// API operation GetDeploymentTarget for usage and error information. 2606// 2607// Returned Error Types: 2608// * InvalidDeploymentIdException 2609// At least one of the deployment IDs was specified in an invalid format. 2610// 2611// * DeploymentIdRequiredException 2612// At least one deployment ID must be specified. 2613// 2614// * DeploymentDoesNotExistException 2615// The deployment with the IAM user or AWS account does not exist. 2616// 2617// * DeploymentNotStartedException 2618// The specified deployment has not started. 2619// 2620// * DeploymentTargetIdRequiredException 2621// A deployment target ID was not provided. 2622// 2623// * InvalidDeploymentTargetIdException 2624// The target ID provided was not valid. 2625// 2626// * DeploymentTargetDoesNotExistException 2627// The provided target ID does not belong to the attempted deployment. 2628// 2629// * InvalidInstanceNameException 2630// The on-premises instance name was specified in an invalid format. 2631// 2632// See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GetDeploymentTarget 2633func (c *CodeDeploy) GetDeploymentTarget(input *GetDeploymentTargetInput) (*GetDeploymentTargetOutput, error) { 2634 req, out := c.GetDeploymentTargetRequest(input) 2635 return out, req.Send() 2636} 2637 2638// GetDeploymentTargetWithContext is the same as GetDeploymentTarget with the addition of 2639// the ability to pass a context and additional request options. 2640// 2641// See GetDeploymentTarget for details on how to use this API operation. 2642// 2643// The context must be non-nil and will be used for request cancellation. If 2644// the context is nil a panic will occur. In the future the SDK may create 2645// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 2646// for more information on using Contexts. 2647func (c *CodeDeploy) GetDeploymentTargetWithContext(ctx aws.Context, input *GetDeploymentTargetInput, opts ...request.Option) (*GetDeploymentTargetOutput, error) { 2648 req, out := c.GetDeploymentTargetRequest(input) 2649 req.SetContext(ctx) 2650 req.ApplyOptions(opts...) 2651 return out, req.Send() 2652} 2653 2654const opGetOnPremisesInstance = "GetOnPremisesInstance" 2655 2656// GetOnPremisesInstanceRequest generates a "aws/request.Request" representing the 2657// client's request for the GetOnPremisesInstance operation. The "output" return 2658// value will be populated with the request's response once the request completes 2659// successfully. 2660// 2661// Use "Send" method on the returned Request to send the API call to the service. 2662// the "output" return value is not valid until after Send returns without error. 2663// 2664// See GetOnPremisesInstance for more information on using the GetOnPremisesInstance 2665// API call, and error handling. 2666// 2667// This method is useful when you want to inject custom logic or configuration 2668// into the SDK's request lifecycle. Such as custom headers, or retry logic. 2669// 2670// 2671// // Example sending a request using the GetOnPremisesInstanceRequest method. 2672// req, resp := client.GetOnPremisesInstanceRequest(params) 2673// 2674// err := req.Send() 2675// if err == nil { // resp is now filled 2676// fmt.Println(resp) 2677// } 2678// 2679// See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GetOnPremisesInstance 2680func (c *CodeDeploy) GetOnPremisesInstanceRequest(input *GetOnPremisesInstanceInput) (req *request.Request, output *GetOnPremisesInstanceOutput) { 2681 op := &request.Operation{ 2682 Name: opGetOnPremisesInstance, 2683 HTTPMethod: "POST", 2684 HTTPPath: "/", 2685 } 2686 2687 if input == nil { 2688 input = &GetOnPremisesInstanceInput{} 2689 } 2690 2691 output = &GetOnPremisesInstanceOutput{} 2692 req = c.newRequest(op, input, output) 2693 return 2694} 2695 2696// GetOnPremisesInstance API operation for AWS CodeDeploy. 2697// 2698// Gets information about an on-premises instance. 2699// 2700// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 2701// with awserr.Error's Code and Message methods to get detailed information about 2702// the error. 2703// 2704// See the AWS API reference guide for AWS CodeDeploy's 2705// API operation GetOnPremisesInstance for usage and error information. 2706// 2707// Returned Error Types: 2708// * InstanceNameRequiredException 2709// An on-premises instance name was not specified. 2710// 2711// * InstanceNotRegisteredException 2712// The specified on-premises instance is not registered. 2713// 2714// * InvalidInstanceNameException 2715// The on-premises instance name was specified in an invalid format. 2716// 2717// See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GetOnPremisesInstance 2718func (c *CodeDeploy) GetOnPremisesInstance(input *GetOnPremisesInstanceInput) (*GetOnPremisesInstanceOutput, error) { 2719 req, out := c.GetOnPremisesInstanceRequest(input) 2720 return out, req.Send() 2721} 2722 2723// GetOnPremisesInstanceWithContext is the same as GetOnPremisesInstance with the addition of 2724// the ability to pass a context and additional request options. 2725// 2726// See GetOnPremisesInstance for details on how to use this API operation. 2727// 2728// The context must be non-nil and will be used for request cancellation. If 2729// the context is nil a panic will occur. In the future the SDK may create 2730// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 2731// for more information on using Contexts. 2732func (c *CodeDeploy) GetOnPremisesInstanceWithContext(ctx aws.Context, input *GetOnPremisesInstanceInput, opts ...request.Option) (*GetOnPremisesInstanceOutput, error) { 2733 req, out := c.GetOnPremisesInstanceRequest(input) 2734 req.SetContext(ctx) 2735 req.ApplyOptions(opts...) 2736 return out, req.Send() 2737} 2738 2739const opListApplicationRevisions = "ListApplicationRevisions" 2740 2741// ListApplicationRevisionsRequest generates a "aws/request.Request" representing the 2742// client's request for the ListApplicationRevisions operation. The "output" return 2743// value will be populated with the request's response once the request completes 2744// successfully. 2745// 2746// Use "Send" method on the returned Request to send the API call to the service. 2747// the "output" return value is not valid until after Send returns without error. 2748// 2749// See ListApplicationRevisions for more information on using the ListApplicationRevisions 2750// API call, and error handling. 2751// 2752// This method is useful when you want to inject custom logic or configuration 2753// into the SDK's request lifecycle. Such as custom headers, or retry logic. 2754// 2755// 2756// // Example sending a request using the ListApplicationRevisionsRequest method. 2757// req, resp := client.ListApplicationRevisionsRequest(params) 2758// 2759// err := req.Send() 2760// if err == nil { // resp is now filled 2761// fmt.Println(resp) 2762// } 2763// 2764// See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ListApplicationRevisions 2765func (c *CodeDeploy) ListApplicationRevisionsRequest(input *ListApplicationRevisionsInput) (req *request.Request, output *ListApplicationRevisionsOutput) { 2766 op := &request.Operation{ 2767 Name: opListApplicationRevisions, 2768 HTTPMethod: "POST", 2769 HTTPPath: "/", 2770 Paginator: &request.Paginator{ 2771 InputTokens: []string{"nextToken"}, 2772 OutputTokens: []string{"nextToken"}, 2773 LimitToken: "", 2774 TruncationToken: "", 2775 }, 2776 } 2777 2778 if input == nil { 2779 input = &ListApplicationRevisionsInput{} 2780 } 2781 2782 output = &ListApplicationRevisionsOutput{} 2783 req = c.newRequest(op, input, output) 2784 return 2785} 2786 2787// ListApplicationRevisions API operation for AWS CodeDeploy. 2788// 2789// Lists information about revisions for an application. 2790// 2791// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 2792// with awserr.Error's Code and Message methods to get detailed information about 2793// the error. 2794// 2795// See the AWS API reference guide for AWS CodeDeploy's 2796// API operation ListApplicationRevisions for usage and error information. 2797// 2798// Returned Error Types: 2799// * ApplicationDoesNotExistException 2800// The application does not exist with the IAM user or AWS account. 2801// 2802// * ApplicationNameRequiredException 2803// The minimum number of required application names was not specified. 2804// 2805// * InvalidApplicationNameException 2806// The application name was specified in an invalid format. 2807// 2808// * InvalidSortByException 2809// The column name to sort by is either not present or was specified in an invalid 2810// format. 2811// 2812// * InvalidSortOrderException 2813// The sort order was specified in an invalid format. 2814// 2815// * InvalidBucketNameFilterException 2816// The bucket name either doesn't exist or was specified in an invalid format. 2817// 2818// * InvalidKeyPrefixFilterException 2819// The specified key prefix filter was specified in an invalid format. 2820// 2821// * BucketNameFilterRequiredException 2822// A bucket name is required, but was not provided. 2823// 2824// * InvalidDeployedStateFilterException 2825// The deployed state filter was specified in an invalid format. 2826// 2827// * InvalidNextTokenException 2828// The next token was specified in an invalid format. 2829// 2830// See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ListApplicationRevisions 2831func (c *CodeDeploy) ListApplicationRevisions(input *ListApplicationRevisionsInput) (*ListApplicationRevisionsOutput, error) { 2832 req, out := c.ListApplicationRevisionsRequest(input) 2833 return out, req.Send() 2834} 2835 2836// ListApplicationRevisionsWithContext is the same as ListApplicationRevisions with the addition of 2837// the ability to pass a context and additional request options. 2838// 2839// See ListApplicationRevisions for details on how to use this API operation. 2840// 2841// The context must be non-nil and will be used for request cancellation. If 2842// the context is nil a panic will occur. In the future the SDK may create 2843// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 2844// for more information on using Contexts. 2845func (c *CodeDeploy) ListApplicationRevisionsWithContext(ctx aws.Context, input *ListApplicationRevisionsInput, opts ...request.Option) (*ListApplicationRevisionsOutput, error) { 2846 req, out := c.ListApplicationRevisionsRequest(input) 2847 req.SetContext(ctx) 2848 req.ApplyOptions(opts...) 2849 return out, req.Send() 2850} 2851 2852// ListApplicationRevisionsPages iterates over the pages of a ListApplicationRevisions operation, 2853// calling the "fn" function with the response data for each page. To stop 2854// iterating, return false from the fn function. 2855// 2856// See ListApplicationRevisions method for more information on how to use this operation. 2857// 2858// Note: This operation can generate multiple requests to a service. 2859// 2860// // Example iterating over at most 3 pages of a ListApplicationRevisions operation. 2861// pageNum := 0 2862// err := client.ListApplicationRevisionsPages(params, 2863// func(page *codedeploy.ListApplicationRevisionsOutput, lastPage bool) bool { 2864// pageNum++ 2865// fmt.Println(page) 2866// return pageNum <= 3 2867// }) 2868// 2869func (c *CodeDeploy) ListApplicationRevisionsPages(input *ListApplicationRevisionsInput, fn func(*ListApplicationRevisionsOutput, bool) bool) error { 2870 return c.ListApplicationRevisionsPagesWithContext(aws.BackgroundContext(), input, fn) 2871} 2872 2873// ListApplicationRevisionsPagesWithContext same as ListApplicationRevisionsPages except 2874// it takes a Context and allows setting request options on the pages. 2875// 2876// The context must be non-nil and will be used for request cancellation. If 2877// the context is nil a panic will occur. In the future the SDK may create 2878// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 2879// for more information on using Contexts. 2880func (c *CodeDeploy) ListApplicationRevisionsPagesWithContext(ctx aws.Context, input *ListApplicationRevisionsInput, fn func(*ListApplicationRevisionsOutput, bool) bool, opts ...request.Option) error { 2881 p := request.Pagination{ 2882 NewRequest: func() (*request.Request, error) { 2883 var inCpy *ListApplicationRevisionsInput 2884 if input != nil { 2885 tmp := *input 2886 inCpy = &tmp 2887 } 2888 req, _ := c.ListApplicationRevisionsRequest(inCpy) 2889 req.SetContext(ctx) 2890 req.ApplyOptions(opts...) 2891 return req, nil 2892 }, 2893 } 2894 2895 for p.Next() { 2896 if !fn(p.Page().(*ListApplicationRevisionsOutput), !p.HasNextPage()) { 2897 break 2898 } 2899 } 2900 2901 return p.Err() 2902} 2903 2904const opListApplications = "ListApplications" 2905 2906// ListApplicationsRequest generates a "aws/request.Request" representing the 2907// client's request for the ListApplications operation. The "output" return 2908// value will be populated with the request's response once the request completes 2909// successfully. 2910// 2911// Use "Send" method on the returned Request to send the API call to the service. 2912// the "output" return value is not valid until after Send returns without error. 2913// 2914// See ListApplications for more information on using the ListApplications 2915// API call, and error handling. 2916// 2917// This method is useful when you want to inject custom logic or configuration 2918// into the SDK's request lifecycle. Such as custom headers, or retry logic. 2919// 2920// 2921// // Example sending a request using the ListApplicationsRequest method. 2922// req, resp := client.ListApplicationsRequest(params) 2923// 2924// err := req.Send() 2925// if err == nil { // resp is now filled 2926// fmt.Println(resp) 2927// } 2928// 2929// See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ListApplications 2930func (c *CodeDeploy) ListApplicationsRequest(input *ListApplicationsInput) (req *request.Request, output *ListApplicationsOutput) { 2931 op := &request.Operation{ 2932 Name: opListApplications, 2933 HTTPMethod: "POST", 2934 HTTPPath: "/", 2935 Paginator: &request.Paginator{ 2936 InputTokens: []string{"nextToken"}, 2937 OutputTokens: []string{"nextToken"}, 2938 LimitToken: "", 2939 TruncationToken: "", 2940 }, 2941 } 2942 2943 if input == nil { 2944 input = &ListApplicationsInput{} 2945 } 2946 2947 output = &ListApplicationsOutput{} 2948 req = c.newRequest(op, input, output) 2949 return 2950} 2951 2952// ListApplications API operation for AWS CodeDeploy. 2953// 2954// Lists the applications registered with the IAM user or AWS account. 2955// 2956// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 2957// with awserr.Error's Code and Message methods to get detailed information about 2958// the error. 2959// 2960// See the AWS API reference guide for AWS CodeDeploy's 2961// API operation ListApplications for usage and error information. 2962// 2963// Returned Error Types: 2964// * InvalidNextTokenException 2965// The next token was specified in an invalid format. 2966// 2967// See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ListApplications 2968func (c *CodeDeploy) ListApplications(input *ListApplicationsInput) (*ListApplicationsOutput, error) { 2969 req, out := c.ListApplicationsRequest(input) 2970 return out, req.Send() 2971} 2972 2973// ListApplicationsWithContext is the same as ListApplications with the addition of 2974// the ability to pass a context and additional request options. 2975// 2976// See ListApplications for details on how to use this API operation. 2977// 2978// The context must be non-nil and will be used for request cancellation. If 2979// the context is nil a panic will occur. In the future the SDK may create 2980// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 2981// for more information on using Contexts. 2982func (c *CodeDeploy) ListApplicationsWithContext(ctx aws.Context, input *ListApplicationsInput, opts ...request.Option) (*ListApplicationsOutput, error) { 2983 req, out := c.ListApplicationsRequest(input) 2984 req.SetContext(ctx) 2985 req.ApplyOptions(opts...) 2986 return out, req.Send() 2987} 2988 2989// ListApplicationsPages iterates over the pages of a ListApplications operation, 2990// calling the "fn" function with the response data for each page. To stop 2991// iterating, return false from the fn function. 2992// 2993// See ListApplications method for more information on how to use this operation. 2994// 2995// Note: This operation can generate multiple requests to a service. 2996// 2997// // Example iterating over at most 3 pages of a ListApplications operation. 2998// pageNum := 0 2999// err := client.ListApplicationsPages(params, 3000// func(page *codedeploy.ListApplicationsOutput, lastPage bool) bool { 3001// pageNum++ 3002// fmt.Println(page) 3003// return pageNum <= 3 3004// }) 3005// 3006func (c *CodeDeploy) ListApplicationsPages(input *ListApplicationsInput, fn func(*ListApplicationsOutput, bool) bool) error { 3007 return c.ListApplicationsPagesWithContext(aws.BackgroundContext(), input, fn) 3008} 3009 3010// ListApplicationsPagesWithContext same as ListApplicationsPages except 3011// it takes a Context and allows setting request options on the pages. 3012// 3013// The context must be non-nil and will be used for request cancellation. If 3014// the context is nil a panic will occur. In the future the SDK may create 3015// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 3016// for more information on using Contexts. 3017func (c *CodeDeploy) ListApplicationsPagesWithContext(ctx aws.Context, input *ListApplicationsInput, fn func(*ListApplicationsOutput, bool) bool, opts ...request.Option) error { 3018 p := request.Pagination{ 3019 NewRequest: func() (*request.Request, error) { 3020 var inCpy *ListApplicationsInput 3021 if input != nil { 3022 tmp := *input 3023 inCpy = &tmp 3024 } 3025 req, _ := c.ListApplicationsRequest(inCpy) 3026 req.SetContext(ctx) 3027 req.ApplyOptions(opts...) 3028 return req, nil 3029 }, 3030 } 3031 3032 for p.Next() { 3033 if !fn(p.Page().(*ListApplicationsOutput), !p.HasNextPage()) { 3034 break 3035 } 3036 } 3037 3038 return p.Err() 3039} 3040 3041const opListDeploymentConfigs = "ListDeploymentConfigs" 3042 3043// ListDeploymentConfigsRequest generates a "aws/request.Request" representing the 3044// client's request for the ListDeploymentConfigs operation. The "output" return 3045// value will be populated with the request's response once the request completes 3046// successfully. 3047// 3048// Use "Send" method on the returned Request to send the API call to the service. 3049// the "output" return value is not valid until after Send returns without error. 3050// 3051// See ListDeploymentConfigs for more information on using the ListDeploymentConfigs 3052// API call, and error handling. 3053// 3054// This method is useful when you want to inject custom logic or configuration 3055// into the SDK's request lifecycle. Such as custom headers, or retry logic. 3056// 3057// 3058// // Example sending a request using the ListDeploymentConfigsRequest method. 3059// req, resp := client.ListDeploymentConfigsRequest(params) 3060// 3061// err := req.Send() 3062// if err == nil { // resp is now filled 3063// fmt.Println(resp) 3064// } 3065// 3066// See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ListDeploymentConfigs 3067func (c *CodeDeploy) ListDeploymentConfigsRequest(input *ListDeploymentConfigsInput) (req *request.Request, output *ListDeploymentConfigsOutput) { 3068 op := &request.Operation{ 3069 Name: opListDeploymentConfigs, 3070 HTTPMethod: "POST", 3071 HTTPPath: "/", 3072 Paginator: &request.Paginator{ 3073 InputTokens: []string{"nextToken"}, 3074 OutputTokens: []string{"nextToken"}, 3075 LimitToken: "", 3076 TruncationToken: "", 3077 }, 3078 } 3079 3080 if input == nil { 3081 input = &ListDeploymentConfigsInput{} 3082 } 3083 3084 output = &ListDeploymentConfigsOutput{} 3085 req = c.newRequest(op, input, output) 3086 return 3087} 3088 3089// ListDeploymentConfigs API operation for AWS CodeDeploy. 3090// 3091// Lists the deployment configurations with the IAM user or AWS account. 3092// 3093// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 3094// with awserr.Error's Code and Message methods to get detailed information about 3095// the error. 3096// 3097// See the AWS API reference guide for AWS CodeDeploy's 3098// API operation ListDeploymentConfigs for usage and error information. 3099// 3100// Returned Error Types: 3101// * InvalidNextTokenException 3102// The next token was specified in an invalid format. 3103// 3104// See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ListDeploymentConfigs 3105func (c *CodeDeploy) ListDeploymentConfigs(input *ListDeploymentConfigsInput) (*ListDeploymentConfigsOutput, error) { 3106 req, out := c.ListDeploymentConfigsRequest(input) 3107 return out, req.Send() 3108} 3109 3110// ListDeploymentConfigsWithContext is the same as ListDeploymentConfigs with the addition of 3111// the ability to pass a context and additional request options. 3112// 3113// See ListDeploymentConfigs for details on how to use this API operation. 3114// 3115// The context must be non-nil and will be used for request cancellation. If 3116// the context is nil a panic will occur. In the future the SDK may create 3117// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 3118// for more information on using Contexts. 3119func (c *CodeDeploy) ListDeploymentConfigsWithContext(ctx aws.Context, input *ListDeploymentConfigsInput, opts ...request.Option) (*ListDeploymentConfigsOutput, error) { 3120 req, out := c.ListDeploymentConfigsRequest(input) 3121 req.SetContext(ctx) 3122 req.ApplyOptions(opts...) 3123 return out, req.Send() 3124} 3125 3126// ListDeploymentConfigsPages iterates over the pages of a ListDeploymentConfigs operation, 3127// calling the "fn" function with the response data for each page. To stop 3128// iterating, return false from the fn function. 3129// 3130// See ListDeploymentConfigs method for more information on how to use this operation. 3131// 3132// Note: This operation can generate multiple requests to a service. 3133// 3134// // Example iterating over at most 3 pages of a ListDeploymentConfigs operation. 3135// pageNum := 0 3136// err := client.ListDeploymentConfigsPages(params, 3137// func(page *codedeploy.ListDeploymentConfigsOutput, lastPage bool) bool { 3138// pageNum++ 3139// fmt.Println(page) 3140// return pageNum <= 3 3141// }) 3142// 3143func (c *CodeDeploy) ListDeploymentConfigsPages(input *ListDeploymentConfigsInput, fn func(*ListDeploymentConfigsOutput, bool) bool) error { 3144 return c.ListDeploymentConfigsPagesWithContext(aws.BackgroundContext(), input, fn) 3145} 3146 3147// ListDeploymentConfigsPagesWithContext same as ListDeploymentConfigsPages except 3148// it takes a Context and allows setting request options on the pages. 3149// 3150// The context must be non-nil and will be used for request cancellation. If 3151// the context is nil a panic will occur. In the future the SDK may create 3152// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 3153// for more information on using Contexts. 3154func (c *CodeDeploy) ListDeploymentConfigsPagesWithContext(ctx aws.Context, input *ListDeploymentConfigsInput, fn func(*ListDeploymentConfigsOutput, bool) bool, opts ...request.Option) error { 3155 p := request.Pagination{ 3156 NewRequest: func() (*request.Request, error) { 3157 var inCpy *ListDeploymentConfigsInput 3158 if input != nil { 3159 tmp := *input 3160 inCpy = &tmp 3161 } 3162 req, _ := c.ListDeploymentConfigsRequest(inCpy) 3163 req.SetContext(ctx) 3164 req.ApplyOptions(opts...) 3165 return req, nil 3166 }, 3167 } 3168 3169 for p.Next() { 3170 if !fn(p.Page().(*ListDeploymentConfigsOutput), !p.HasNextPage()) { 3171 break 3172 } 3173 } 3174 3175 return p.Err() 3176} 3177 3178const opListDeploymentGroups = "ListDeploymentGroups" 3179 3180// ListDeploymentGroupsRequest generates a "aws/request.Request" representing the 3181// client's request for the ListDeploymentGroups operation. The "output" return 3182// value will be populated with the request's response once the request completes 3183// successfully. 3184// 3185// Use "Send" method on the returned Request to send the API call to the service. 3186// the "output" return value is not valid until after Send returns without error. 3187// 3188// See ListDeploymentGroups for more information on using the ListDeploymentGroups 3189// API call, and error handling. 3190// 3191// This method is useful when you want to inject custom logic or configuration 3192// into the SDK's request lifecycle. Such as custom headers, or retry logic. 3193// 3194// 3195// // Example sending a request using the ListDeploymentGroupsRequest method. 3196// req, resp := client.ListDeploymentGroupsRequest(params) 3197// 3198// err := req.Send() 3199// if err == nil { // resp is now filled 3200// fmt.Println(resp) 3201// } 3202// 3203// See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ListDeploymentGroups 3204func (c *CodeDeploy) ListDeploymentGroupsRequest(input *ListDeploymentGroupsInput) (req *request.Request, output *ListDeploymentGroupsOutput) { 3205 op := &request.Operation{ 3206 Name: opListDeploymentGroups, 3207 HTTPMethod: "POST", 3208 HTTPPath: "/", 3209 Paginator: &request.Paginator{ 3210 InputTokens: []string{"nextToken"}, 3211 OutputTokens: []string{"nextToken"}, 3212 LimitToken: "", 3213 TruncationToken: "", 3214 }, 3215 } 3216 3217 if input == nil { 3218 input = &ListDeploymentGroupsInput{} 3219 } 3220 3221 output = &ListDeploymentGroupsOutput{} 3222 req = c.newRequest(op, input, output) 3223 return 3224} 3225 3226// ListDeploymentGroups API operation for AWS CodeDeploy. 3227// 3228// Lists the deployment groups for an application registered with the IAM user 3229// or AWS account. 3230// 3231// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 3232// with awserr.Error's Code and Message methods to get detailed information about 3233// the error. 3234// 3235// See the AWS API reference guide for AWS CodeDeploy's 3236// API operation ListDeploymentGroups for usage and error information. 3237// 3238// Returned Error Types: 3239// * ApplicationNameRequiredException 3240// The minimum number of required application names was not specified. 3241// 3242// * InvalidApplicationNameException 3243// The application name was specified in an invalid format. 3244// 3245// * ApplicationDoesNotExistException 3246// The application does not exist with the IAM user or AWS account. 3247// 3248// * InvalidNextTokenException 3249// The next token was specified in an invalid format. 3250// 3251// See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ListDeploymentGroups 3252func (c *CodeDeploy) ListDeploymentGroups(input *ListDeploymentGroupsInput) (*ListDeploymentGroupsOutput, error) { 3253 req, out := c.ListDeploymentGroupsRequest(input) 3254 return out, req.Send() 3255} 3256 3257// ListDeploymentGroupsWithContext is the same as ListDeploymentGroups with the addition of 3258// the ability to pass a context and additional request options. 3259// 3260// See ListDeploymentGroups for details on how to use this API operation. 3261// 3262// The context must be non-nil and will be used for request cancellation. If 3263// the context is nil a panic will occur. In the future the SDK may create 3264// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 3265// for more information on using Contexts. 3266func (c *CodeDeploy) ListDeploymentGroupsWithContext(ctx aws.Context, input *ListDeploymentGroupsInput, opts ...request.Option) (*ListDeploymentGroupsOutput, error) { 3267 req, out := c.ListDeploymentGroupsRequest(input) 3268 req.SetContext(ctx) 3269 req.ApplyOptions(opts...) 3270 return out, req.Send() 3271} 3272 3273// ListDeploymentGroupsPages iterates over the pages of a ListDeploymentGroups operation, 3274// calling the "fn" function with the response data for each page. To stop 3275// iterating, return false from the fn function. 3276// 3277// See ListDeploymentGroups method for more information on how to use this operation. 3278// 3279// Note: This operation can generate multiple requests to a service. 3280// 3281// // Example iterating over at most 3 pages of a ListDeploymentGroups operation. 3282// pageNum := 0 3283// err := client.ListDeploymentGroupsPages(params, 3284// func(page *codedeploy.ListDeploymentGroupsOutput, lastPage bool) bool { 3285// pageNum++ 3286// fmt.Println(page) 3287// return pageNum <= 3 3288// }) 3289// 3290func (c *CodeDeploy) ListDeploymentGroupsPages(input *ListDeploymentGroupsInput, fn func(*ListDeploymentGroupsOutput, bool) bool) error { 3291 return c.ListDeploymentGroupsPagesWithContext(aws.BackgroundContext(), input, fn) 3292} 3293 3294// ListDeploymentGroupsPagesWithContext same as ListDeploymentGroupsPages except 3295// it takes a Context and allows setting request options on the pages. 3296// 3297// The context must be non-nil and will be used for request cancellation. If 3298// the context is nil a panic will occur. In the future the SDK may create 3299// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 3300// for more information on using Contexts. 3301func (c *CodeDeploy) ListDeploymentGroupsPagesWithContext(ctx aws.Context, input *ListDeploymentGroupsInput, fn func(*ListDeploymentGroupsOutput, bool) bool, opts ...request.Option) error { 3302 p := request.Pagination{ 3303 NewRequest: func() (*request.Request, error) { 3304 var inCpy *ListDeploymentGroupsInput 3305 if input != nil { 3306 tmp := *input 3307 inCpy = &tmp 3308 } 3309 req, _ := c.ListDeploymentGroupsRequest(inCpy) 3310 req.SetContext(ctx) 3311 req.ApplyOptions(opts...) 3312 return req, nil 3313 }, 3314 } 3315 3316 for p.Next() { 3317 if !fn(p.Page().(*ListDeploymentGroupsOutput), !p.HasNextPage()) { 3318 break 3319 } 3320 } 3321 3322 return p.Err() 3323} 3324 3325const opListDeploymentInstances = "ListDeploymentInstances" 3326 3327// ListDeploymentInstancesRequest generates a "aws/request.Request" representing the 3328// client's request for the ListDeploymentInstances operation. The "output" return 3329// value will be populated with the request's response once the request completes 3330// successfully. 3331// 3332// Use "Send" method on the returned Request to send the API call to the service. 3333// the "output" return value is not valid until after Send returns without error. 3334// 3335// See ListDeploymentInstances for more information on using the ListDeploymentInstances 3336// API call, and error handling. 3337// 3338// This method is useful when you want to inject custom logic or configuration 3339// into the SDK's request lifecycle. Such as custom headers, or retry logic. 3340// 3341// 3342// // Example sending a request using the ListDeploymentInstancesRequest method. 3343// req, resp := client.ListDeploymentInstancesRequest(params) 3344// 3345// err := req.Send() 3346// if err == nil { // resp is now filled 3347// fmt.Println(resp) 3348// } 3349// 3350// See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ListDeploymentInstances 3351// 3352// Deprecated: This operation is deprecated, use ListDeploymentTargets instead. 3353func (c *CodeDeploy) ListDeploymentInstancesRequest(input *ListDeploymentInstancesInput) (req *request.Request, output *ListDeploymentInstancesOutput) { 3354 if c.Client.Config.Logger != nil { 3355 c.Client.Config.Logger.Log("This operation, ListDeploymentInstances, has been deprecated") 3356 } 3357 op := &request.Operation{ 3358 Name: opListDeploymentInstances, 3359 HTTPMethod: "POST", 3360 HTTPPath: "/", 3361 Paginator: &request.Paginator{ 3362 InputTokens: []string{"nextToken"}, 3363 OutputTokens: []string{"nextToken"}, 3364 LimitToken: "", 3365 TruncationToken: "", 3366 }, 3367 } 3368 3369 if input == nil { 3370 input = &ListDeploymentInstancesInput{} 3371 } 3372 3373 output = &ListDeploymentInstancesOutput{} 3374 req = c.newRequest(op, input, output) 3375 return 3376} 3377 3378// ListDeploymentInstances API operation for AWS CodeDeploy. 3379// 3380// 3381// The newer BatchGetDeploymentTargets should be used instead because it works 3382// with all compute types. ListDeploymentInstances throws an exception if it 3383// is used with a compute platform other than EC2/On-premises or AWS Lambda. 3384// 3385// Lists the instance for a deployment associated with the IAM user or AWS account. 3386// 3387// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 3388// with awserr.Error's Code and Message methods to get detailed information about 3389// the error. 3390// 3391// See the AWS API reference guide for AWS CodeDeploy's 3392// API operation ListDeploymentInstances for usage and error information. 3393// 3394// Returned Error Types: 3395// * DeploymentIdRequiredException 3396// At least one deployment ID must be specified. 3397// 3398// * DeploymentDoesNotExistException 3399// The deployment with the IAM user or AWS account does not exist. 3400// 3401// * DeploymentNotStartedException 3402// The specified deployment has not started. 3403// 3404// * InvalidNextTokenException 3405// The next token was specified in an invalid format. 3406// 3407// * InvalidDeploymentIdException 3408// At least one of the deployment IDs was specified in an invalid format. 3409// 3410// * InvalidInstanceStatusException 3411// The specified instance status does not exist. 3412// 3413// * InvalidInstanceTypeException 3414// An invalid instance type was specified for instances in a blue/green deployment. 3415// Valid values include "Blue" for an original environment and "Green" for a 3416// replacement environment. 3417// 3418// * InvalidDeploymentInstanceTypeException 3419// An instance type was specified for an in-place deployment. Instance types 3420// are supported for blue/green deployments only. 3421// 3422// * InvalidTargetFilterNameException 3423// The target filter name is invalid. 3424// 3425// * InvalidComputePlatformException 3426// The computePlatform is invalid. The computePlatform should be Lambda, Server, 3427// or ECS. 3428// 3429// See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ListDeploymentInstances 3430// 3431// Deprecated: This operation is deprecated, use ListDeploymentTargets instead. 3432func (c *CodeDeploy) ListDeploymentInstances(input *ListDeploymentInstancesInput) (*ListDeploymentInstancesOutput, error) { 3433 req, out := c.ListDeploymentInstancesRequest(input) 3434 return out, req.Send() 3435} 3436 3437// ListDeploymentInstancesWithContext is the same as ListDeploymentInstances with the addition of 3438// the ability to pass a context and additional request options. 3439// 3440// See ListDeploymentInstances for details on how to use this API operation. 3441// 3442// The context must be non-nil and will be used for request cancellation. If 3443// the context is nil a panic will occur. In the future the SDK may create 3444// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 3445// for more information on using Contexts. 3446// 3447// Deprecated: This operation is deprecated, use ListDeploymentTargets instead. 3448func (c *CodeDeploy) ListDeploymentInstancesWithContext(ctx aws.Context, input *ListDeploymentInstancesInput, opts ...request.Option) (*ListDeploymentInstancesOutput, error) { 3449 req, out := c.ListDeploymentInstancesRequest(input) 3450 req.SetContext(ctx) 3451 req.ApplyOptions(opts...) 3452 return out, req.Send() 3453} 3454 3455// ListDeploymentInstancesPages iterates over the pages of a ListDeploymentInstances operation, 3456// calling the "fn" function with the response data for each page. To stop 3457// iterating, return false from the fn function. 3458// 3459// See ListDeploymentInstances method for more information on how to use this operation. 3460// 3461// Note: This operation can generate multiple requests to a service. 3462// 3463// // Example iterating over at most 3 pages of a ListDeploymentInstances operation. 3464// pageNum := 0 3465// err := client.ListDeploymentInstancesPages(params, 3466// func(page *codedeploy.ListDeploymentInstancesOutput, lastPage bool) bool { 3467// pageNum++ 3468// fmt.Println(page) 3469// return pageNum <= 3 3470// }) 3471// 3472// 3473// Deprecated: This operation is deprecated, use ListDeploymentTargets instead. 3474func (c *CodeDeploy) ListDeploymentInstancesPages(input *ListDeploymentInstancesInput, fn func(*ListDeploymentInstancesOutput, bool) bool) error { 3475 return c.ListDeploymentInstancesPagesWithContext(aws.BackgroundContext(), input, fn) 3476} 3477 3478// ListDeploymentInstancesPagesWithContext same as ListDeploymentInstancesPages except 3479// it takes a Context and allows setting request options on the pages. 3480// 3481// The context must be non-nil and will be used for request cancellation. If 3482// the context is nil a panic will occur. In the future the SDK may create 3483// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 3484// for more information on using Contexts. 3485// 3486// Deprecated: This operation is deprecated, use ListDeploymentTargets instead. 3487func (c *CodeDeploy) ListDeploymentInstancesPagesWithContext(ctx aws.Context, input *ListDeploymentInstancesInput, fn func(*ListDeploymentInstancesOutput, bool) bool, opts ...request.Option) error { 3488 p := request.Pagination{ 3489 NewRequest: func() (*request.Request, error) { 3490 var inCpy *ListDeploymentInstancesInput 3491 if input != nil { 3492 tmp := *input 3493 inCpy = &tmp 3494 } 3495 req, _ := c.ListDeploymentInstancesRequest(inCpy) 3496 req.SetContext(ctx) 3497 req.ApplyOptions(opts...) 3498 return req, nil 3499 }, 3500 } 3501 3502 for p.Next() { 3503 if !fn(p.Page().(*ListDeploymentInstancesOutput), !p.HasNextPage()) { 3504 break 3505 } 3506 } 3507 3508 return p.Err() 3509} 3510 3511const opListDeploymentTargets = "ListDeploymentTargets" 3512 3513// ListDeploymentTargetsRequest generates a "aws/request.Request" representing the 3514// client's request for the ListDeploymentTargets operation. The "output" return 3515// value will be populated with the request's response once the request completes 3516// successfully. 3517// 3518// Use "Send" method on the returned Request to send the API call to the service. 3519// the "output" return value is not valid until after Send returns without error. 3520// 3521// See ListDeploymentTargets for more information on using the ListDeploymentTargets 3522// API call, and error handling. 3523// 3524// This method is useful when you want to inject custom logic or configuration 3525// into the SDK's request lifecycle. Such as custom headers, or retry logic. 3526// 3527// 3528// // Example sending a request using the ListDeploymentTargetsRequest method. 3529// req, resp := client.ListDeploymentTargetsRequest(params) 3530// 3531// err := req.Send() 3532// if err == nil { // resp is now filled 3533// fmt.Println(resp) 3534// } 3535// 3536// See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ListDeploymentTargets 3537func (c *CodeDeploy) ListDeploymentTargetsRequest(input *ListDeploymentTargetsInput) (req *request.Request, output *ListDeploymentTargetsOutput) { 3538 op := &request.Operation{ 3539 Name: opListDeploymentTargets, 3540 HTTPMethod: "POST", 3541 HTTPPath: "/", 3542 } 3543 3544 if input == nil { 3545 input = &ListDeploymentTargetsInput{} 3546 } 3547 3548 output = &ListDeploymentTargetsOutput{} 3549 req = c.newRequest(op, input, output) 3550 return 3551} 3552 3553// ListDeploymentTargets API operation for AWS CodeDeploy. 3554// 3555// Returns an array of target IDs that are associated a deployment. 3556// 3557// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 3558// with awserr.Error's Code and Message methods to get detailed information about 3559// the error. 3560// 3561// See the AWS API reference guide for AWS CodeDeploy's 3562// API operation ListDeploymentTargets for usage and error information. 3563// 3564// Returned Error Types: 3565// * DeploymentIdRequiredException 3566// At least one deployment ID must be specified. 3567// 3568// * DeploymentDoesNotExistException 3569// The deployment with the IAM user or AWS account does not exist. 3570// 3571// * DeploymentNotStartedException 3572// The specified deployment has not started. 3573// 3574// * InvalidNextTokenException 3575// The next token was specified in an invalid format. 3576// 3577// * InvalidDeploymentIdException 3578// At least one of the deployment IDs was specified in an invalid format. 3579// 3580// * InvalidInstanceStatusException 3581// The specified instance status does not exist. 3582// 3583// * InvalidInstanceTypeException 3584// An invalid instance type was specified for instances in a blue/green deployment. 3585// Valid values include "Blue" for an original environment and "Green" for a 3586// replacement environment. 3587// 3588// * InvalidDeploymentInstanceTypeException 3589// An instance type was specified for an in-place deployment. Instance types 3590// are supported for blue/green deployments only. 3591// 3592// See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ListDeploymentTargets 3593func (c *CodeDeploy) ListDeploymentTargets(input *ListDeploymentTargetsInput) (*ListDeploymentTargetsOutput, error) { 3594 req, out := c.ListDeploymentTargetsRequest(input) 3595 return out, req.Send() 3596} 3597 3598// ListDeploymentTargetsWithContext is the same as ListDeploymentTargets with the addition of 3599// the ability to pass a context and additional request options. 3600// 3601// See ListDeploymentTargets for details on how to use this API operation. 3602// 3603// The context must be non-nil and will be used for request cancellation. If 3604// the context is nil a panic will occur. In the future the SDK may create 3605// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 3606// for more information on using Contexts. 3607func (c *CodeDeploy) ListDeploymentTargetsWithContext(ctx aws.Context, input *ListDeploymentTargetsInput, opts ...request.Option) (*ListDeploymentTargetsOutput, error) { 3608 req, out := c.ListDeploymentTargetsRequest(input) 3609 req.SetContext(ctx) 3610 req.ApplyOptions(opts...) 3611 return out, req.Send() 3612} 3613 3614const opListDeployments = "ListDeployments" 3615 3616// ListDeploymentsRequest generates a "aws/request.Request" representing the 3617// client's request for the ListDeployments operation. The "output" return 3618// value will be populated with the request's response once the request completes 3619// successfully. 3620// 3621// Use "Send" method on the returned Request to send the API call to the service. 3622// the "output" return value is not valid until after Send returns without error. 3623// 3624// See ListDeployments for more information on using the ListDeployments 3625// API call, and error handling. 3626// 3627// This method is useful when you want to inject custom logic or configuration 3628// into the SDK's request lifecycle. Such as custom headers, or retry logic. 3629// 3630// 3631// // Example sending a request using the ListDeploymentsRequest method. 3632// req, resp := client.ListDeploymentsRequest(params) 3633// 3634// err := req.Send() 3635// if err == nil { // resp is now filled 3636// fmt.Println(resp) 3637// } 3638// 3639// See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ListDeployments 3640func (c *CodeDeploy) ListDeploymentsRequest(input *ListDeploymentsInput) (req *request.Request, output *ListDeploymentsOutput) { 3641 op := &request.Operation{ 3642 Name: opListDeployments, 3643 HTTPMethod: "POST", 3644 HTTPPath: "/", 3645 Paginator: &request.Paginator{ 3646 InputTokens: []string{"nextToken"}, 3647 OutputTokens: []string{"nextToken"}, 3648 LimitToken: "", 3649 TruncationToken: "", 3650 }, 3651 } 3652 3653 if input == nil { 3654 input = &ListDeploymentsInput{} 3655 } 3656 3657 output = &ListDeploymentsOutput{} 3658 req = c.newRequest(op, input, output) 3659 return 3660} 3661 3662// ListDeployments API operation for AWS CodeDeploy. 3663// 3664// Lists the deployments in a deployment group for an application registered 3665// with the IAM user or AWS account. 3666// 3667// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 3668// with awserr.Error's Code and Message methods to get detailed information about 3669// the error. 3670// 3671// See the AWS API reference guide for AWS CodeDeploy's 3672// API operation ListDeployments for usage and error information. 3673// 3674// Returned Error Types: 3675// * ApplicationNameRequiredException 3676// The minimum number of required application names was not specified. 3677// 3678// * InvalidApplicationNameException 3679// The application name was specified in an invalid format. 3680// 3681// * ApplicationDoesNotExistException 3682// The application does not exist with the IAM user or AWS account. 3683// 3684// * InvalidDeploymentGroupNameException 3685// The deployment group name was specified in an invalid format. 3686// 3687// * DeploymentGroupDoesNotExistException 3688// The named deployment group with the IAM user or AWS account does not exist. 3689// 3690// * DeploymentGroupNameRequiredException 3691// The deployment group name was not specified. 3692// 3693// * InvalidTimeRangeException 3694// The specified time range was specified in an invalid format. 3695// 3696// * InvalidDeploymentStatusException 3697// The specified deployment status doesn't exist or cannot be determined. 3698// 3699// * InvalidNextTokenException 3700// The next token was specified in an invalid format. 3701// 3702// * InvalidExternalIdException 3703// The external ID was specified in an invalid format. 3704// 3705// * InvalidInputException 3706// The input was specified in an invalid format. 3707// 3708// See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ListDeployments 3709func (c *CodeDeploy) ListDeployments(input *ListDeploymentsInput) (*ListDeploymentsOutput, error) { 3710 req, out := c.ListDeploymentsRequest(input) 3711 return out, req.Send() 3712} 3713 3714// ListDeploymentsWithContext is the same as ListDeployments with the addition of 3715// the ability to pass a context and additional request options. 3716// 3717// See ListDeployments for details on how to use this API operation. 3718// 3719// The context must be non-nil and will be used for request cancellation. If 3720// the context is nil a panic will occur. In the future the SDK may create 3721// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 3722// for more information on using Contexts. 3723func (c *CodeDeploy) ListDeploymentsWithContext(ctx aws.Context, input *ListDeploymentsInput, opts ...request.Option) (*ListDeploymentsOutput, error) { 3724 req, out := c.ListDeploymentsRequest(input) 3725 req.SetContext(ctx) 3726 req.ApplyOptions(opts...) 3727 return out, req.Send() 3728} 3729 3730// ListDeploymentsPages iterates over the pages of a ListDeployments operation, 3731// calling the "fn" function with the response data for each page. To stop 3732// iterating, return false from the fn function. 3733// 3734// See ListDeployments method for more information on how to use this operation. 3735// 3736// Note: This operation can generate multiple requests to a service. 3737// 3738// // Example iterating over at most 3 pages of a ListDeployments operation. 3739// pageNum := 0 3740// err := client.ListDeploymentsPages(params, 3741// func(page *codedeploy.ListDeploymentsOutput, lastPage bool) bool { 3742// pageNum++ 3743// fmt.Println(page) 3744// return pageNum <= 3 3745// }) 3746// 3747func (c *CodeDeploy) ListDeploymentsPages(input *ListDeploymentsInput, fn func(*ListDeploymentsOutput, bool) bool) error { 3748 return c.ListDeploymentsPagesWithContext(aws.BackgroundContext(), input, fn) 3749} 3750 3751// ListDeploymentsPagesWithContext same as ListDeploymentsPages except 3752// it takes a Context and allows setting request options on the pages. 3753// 3754// The context must be non-nil and will be used for request cancellation. If 3755// the context is nil a panic will occur. In the future the SDK may create 3756// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 3757// for more information on using Contexts. 3758func (c *CodeDeploy) ListDeploymentsPagesWithContext(ctx aws.Context, input *ListDeploymentsInput, fn func(*ListDeploymentsOutput, bool) bool, opts ...request.Option) error { 3759 p := request.Pagination{ 3760 NewRequest: func() (*request.Request, error) { 3761 var inCpy *ListDeploymentsInput 3762 if input != nil { 3763 tmp := *input 3764 inCpy = &tmp 3765 } 3766 req, _ := c.ListDeploymentsRequest(inCpy) 3767 req.SetContext(ctx) 3768 req.ApplyOptions(opts...) 3769 return req, nil 3770 }, 3771 } 3772 3773 for p.Next() { 3774 if !fn(p.Page().(*ListDeploymentsOutput), !p.HasNextPage()) { 3775 break 3776 } 3777 } 3778 3779 return p.Err() 3780} 3781 3782const opListGitHubAccountTokenNames = "ListGitHubAccountTokenNames" 3783 3784// ListGitHubAccountTokenNamesRequest generates a "aws/request.Request" representing the 3785// client's request for the ListGitHubAccountTokenNames operation. The "output" return 3786// value will be populated with the request's response once the request completes 3787// successfully. 3788// 3789// Use "Send" method on the returned Request to send the API call to the service. 3790// the "output" return value is not valid until after Send returns without error. 3791// 3792// See ListGitHubAccountTokenNames for more information on using the ListGitHubAccountTokenNames 3793// API call, and error handling. 3794// 3795// This method is useful when you want to inject custom logic or configuration 3796// into the SDK's request lifecycle. Such as custom headers, or retry logic. 3797// 3798// 3799// // Example sending a request using the ListGitHubAccountTokenNamesRequest method. 3800// req, resp := client.ListGitHubAccountTokenNamesRequest(params) 3801// 3802// err := req.Send() 3803// if err == nil { // resp is now filled 3804// fmt.Println(resp) 3805// } 3806// 3807// See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ListGitHubAccountTokenNames 3808func (c *CodeDeploy) ListGitHubAccountTokenNamesRequest(input *ListGitHubAccountTokenNamesInput) (req *request.Request, output *ListGitHubAccountTokenNamesOutput) { 3809 op := &request.Operation{ 3810 Name: opListGitHubAccountTokenNames, 3811 HTTPMethod: "POST", 3812 HTTPPath: "/", 3813 } 3814 3815 if input == nil { 3816 input = &ListGitHubAccountTokenNamesInput{} 3817 } 3818 3819 output = &ListGitHubAccountTokenNamesOutput{} 3820 req = c.newRequest(op, input, output) 3821 return 3822} 3823 3824// ListGitHubAccountTokenNames API operation for AWS CodeDeploy. 3825// 3826// Lists the names of stored connections to GitHub accounts. 3827// 3828// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 3829// with awserr.Error's Code and Message methods to get detailed information about 3830// the error. 3831// 3832// See the AWS API reference guide for AWS CodeDeploy's 3833// API operation ListGitHubAccountTokenNames for usage and error information. 3834// 3835// Returned Error Types: 3836// * InvalidNextTokenException 3837// The next token was specified in an invalid format. 3838// 3839// * ResourceValidationException 3840// The specified resource could not be validated. 3841// 3842// * OperationNotSupportedException 3843// The API used does not support the deployment. 3844// 3845// See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ListGitHubAccountTokenNames 3846func (c *CodeDeploy) ListGitHubAccountTokenNames(input *ListGitHubAccountTokenNamesInput) (*ListGitHubAccountTokenNamesOutput, error) { 3847 req, out := c.ListGitHubAccountTokenNamesRequest(input) 3848 return out, req.Send() 3849} 3850 3851// ListGitHubAccountTokenNamesWithContext is the same as ListGitHubAccountTokenNames with the addition of 3852// the ability to pass a context and additional request options. 3853// 3854// See ListGitHubAccountTokenNames for details on how to use this API operation. 3855// 3856// The context must be non-nil and will be used for request cancellation. If 3857// the context is nil a panic will occur. In the future the SDK may create 3858// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 3859// for more information on using Contexts. 3860func (c *CodeDeploy) ListGitHubAccountTokenNamesWithContext(ctx aws.Context, input *ListGitHubAccountTokenNamesInput, opts ...request.Option) (*ListGitHubAccountTokenNamesOutput, error) { 3861 req, out := c.ListGitHubAccountTokenNamesRequest(input) 3862 req.SetContext(ctx) 3863 req.ApplyOptions(opts...) 3864 return out, req.Send() 3865} 3866 3867const opListOnPremisesInstances = "ListOnPremisesInstances" 3868 3869// ListOnPremisesInstancesRequest generates a "aws/request.Request" representing the 3870// client's request for the ListOnPremisesInstances operation. The "output" return 3871// value will be populated with the request's response once the request completes 3872// successfully. 3873// 3874// Use "Send" method on the returned Request to send the API call to the service. 3875// the "output" return value is not valid until after Send returns without error. 3876// 3877// See ListOnPremisesInstances for more information on using the ListOnPremisesInstances 3878// API call, and error handling. 3879// 3880// This method is useful when you want to inject custom logic or configuration 3881// into the SDK's request lifecycle. Such as custom headers, or retry logic. 3882// 3883// 3884// // Example sending a request using the ListOnPremisesInstancesRequest method. 3885// req, resp := client.ListOnPremisesInstancesRequest(params) 3886// 3887// err := req.Send() 3888// if err == nil { // resp is now filled 3889// fmt.Println(resp) 3890// } 3891// 3892// See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ListOnPremisesInstances 3893func (c *CodeDeploy) ListOnPremisesInstancesRequest(input *ListOnPremisesInstancesInput) (req *request.Request, output *ListOnPremisesInstancesOutput) { 3894 op := &request.Operation{ 3895 Name: opListOnPremisesInstances, 3896 HTTPMethod: "POST", 3897 HTTPPath: "/", 3898 } 3899 3900 if input == nil { 3901 input = &ListOnPremisesInstancesInput{} 3902 } 3903 3904 output = &ListOnPremisesInstancesOutput{} 3905 req = c.newRequest(op, input, output) 3906 return 3907} 3908 3909// ListOnPremisesInstances API operation for AWS CodeDeploy. 3910// 3911// Gets a list of names for one or more on-premises instances. 3912// 3913// Unless otherwise specified, both registered and deregistered on-premises 3914// instance names are listed. To list only registered or deregistered on-premises 3915// instance names, use the registration status parameter. 3916// 3917// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 3918// with awserr.Error's Code and Message methods to get detailed information about 3919// the error. 3920// 3921// See the AWS API reference guide for AWS CodeDeploy's 3922// API operation ListOnPremisesInstances for usage and error information. 3923// 3924// Returned Error Types: 3925// * InvalidRegistrationStatusException 3926// The registration status was specified in an invalid format. 3927// 3928// * InvalidTagFilterException 3929// The tag filter was specified in an invalid format. 3930// 3931// * InvalidNextTokenException 3932// The next token was specified in an invalid format. 3933// 3934// See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ListOnPremisesInstances 3935func (c *CodeDeploy) ListOnPremisesInstances(input *ListOnPremisesInstancesInput) (*ListOnPremisesInstancesOutput, error) { 3936 req, out := c.ListOnPremisesInstancesRequest(input) 3937 return out, req.Send() 3938} 3939 3940// ListOnPremisesInstancesWithContext is the same as ListOnPremisesInstances with the addition of 3941// the ability to pass a context and additional request options. 3942// 3943// See ListOnPremisesInstances for details on how to use this API operation. 3944// 3945// The context must be non-nil and will be used for request cancellation. If 3946// the context is nil a panic will occur. In the future the SDK may create 3947// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 3948// for more information on using Contexts. 3949func (c *CodeDeploy) ListOnPremisesInstancesWithContext(ctx aws.Context, input *ListOnPremisesInstancesInput, opts ...request.Option) (*ListOnPremisesInstancesOutput, error) { 3950 req, out := c.ListOnPremisesInstancesRequest(input) 3951 req.SetContext(ctx) 3952 req.ApplyOptions(opts...) 3953 return out, req.Send() 3954} 3955 3956const opListTagsForResource = "ListTagsForResource" 3957 3958// ListTagsForResourceRequest generates a "aws/request.Request" representing the 3959// client's request for the ListTagsForResource operation. The "output" return 3960// value will be populated with the request's response once the request completes 3961// successfully. 3962// 3963// Use "Send" method on the returned Request to send the API call to the service. 3964// the "output" return value is not valid until after Send returns without error. 3965// 3966// See ListTagsForResource for more information on using the ListTagsForResource 3967// API call, and error handling. 3968// 3969// This method is useful when you want to inject custom logic or configuration 3970// into the SDK's request lifecycle. Such as custom headers, or retry logic. 3971// 3972// 3973// // Example sending a request using the ListTagsForResourceRequest method. 3974// req, resp := client.ListTagsForResourceRequest(params) 3975// 3976// err := req.Send() 3977// if err == nil { // resp is now filled 3978// fmt.Println(resp) 3979// } 3980// 3981// See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ListTagsForResource 3982func (c *CodeDeploy) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) { 3983 op := &request.Operation{ 3984 Name: opListTagsForResource, 3985 HTTPMethod: "POST", 3986 HTTPPath: "/", 3987 } 3988 3989 if input == nil { 3990 input = &ListTagsForResourceInput{} 3991 } 3992 3993 output = &ListTagsForResourceOutput{} 3994 req = c.newRequest(op, input, output) 3995 return 3996} 3997 3998// ListTagsForResource API operation for AWS CodeDeploy. 3999// 4000// Returns a list of tags for the resource identified by a specified Amazon 4001// Resource Name (ARN). Tags are used to organize and categorize your CodeDeploy 4002// resources. 4003// 4004// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 4005// with awserr.Error's Code and Message methods to get detailed information about 4006// the error. 4007// 4008// See the AWS API reference guide for AWS CodeDeploy's 4009// API operation ListTagsForResource for usage and error information. 4010// 4011// Returned Error Types: 4012// * ArnNotSupportedException 4013// The specified ARN is not supported. For example, it might be an ARN for a 4014// resource that is not expected. 4015// 4016// * InvalidArnException 4017// The specified ARN is not in a valid format. 4018// 4019// * ResourceArnRequiredException 4020// The ARN of a resource is required, but was not found. 4021// 4022// See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ListTagsForResource 4023func (c *CodeDeploy) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) { 4024 req, out := c.ListTagsForResourceRequest(input) 4025 return out, req.Send() 4026} 4027 4028// ListTagsForResourceWithContext is the same as ListTagsForResource with the addition of 4029// the ability to pass a context and additional request options. 4030// 4031// See ListTagsForResource for details on how to use this API operation. 4032// 4033// The context must be non-nil and will be used for request cancellation. If 4034// the context is nil a panic will occur. In the future the SDK may create 4035// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 4036// for more information on using Contexts. 4037func (c *CodeDeploy) ListTagsForResourceWithContext(ctx aws.Context, input *ListTagsForResourceInput, opts ...request.Option) (*ListTagsForResourceOutput, error) { 4038 req, out := c.ListTagsForResourceRequest(input) 4039 req.SetContext(ctx) 4040 req.ApplyOptions(opts...) 4041 return out, req.Send() 4042} 4043 4044const opPutLifecycleEventHookExecutionStatus = "PutLifecycleEventHookExecutionStatus" 4045 4046// PutLifecycleEventHookExecutionStatusRequest generates a "aws/request.Request" representing the 4047// client's request for the PutLifecycleEventHookExecutionStatus operation. The "output" return 4048// value will be populated with the request's response once the request completes 4049// successfully. 4050// 4051// Use "Send" method on the returned Request to send the API call to the service. 4052// the "output" return value is not valid until after Send returns without error. 4053// 4054// See PutLifecycleEventHookExecutionStatus for more information on using the PutLifecycleEventHookExecutionStatus 4055// API call, and error handling. 4056// 4057// This method is useful when you want to inject custom logic or configuration 4058// into the SDK's request lifecycle. Such as custom headers, or retry logic. 4059// 4060// 4061// // Example sending a request using the PutLifecycleEventHookExecutionStatusRequest method. 4062// req, resp := client.PutLifecycleEventHookExecutionStatusRequest(params) 4063// 4064// err := req.Send() 4065// if err == nil { // resp is now filled 4066// fmt.Println(resp) 4067// } 4068// 4069// See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/PutLifecycleEventHookExecutionStatus 4070func (c *CodeDeploy) PutLifecycleEventHookExecutionStatusRequest(input *PutLifecycleEventHookExecutionStatusInput) (req *request.Request, output *PutLifecycleEventHookExecutionStatusOutput) { 4071 op := &request.Operation{ 4072 Name: opPutLifecycleEventHookExecutionStatus, 4073 HTTPMethod: "POST", 4074 HTTPPath: "/", 4075 } 4076 4077 if input == nil { 4078 input = &PutLifecycleEventHookExecutionStatusInput{} 4079 } 4080 4081 output = &PutLifecycleEventHookExecutionStatusOutput{} 4082 req = c.newRequest(op, input, output) 4083 return 4084} 4085 4086// PutLifecycleEventHookExecutionStatus API operation for AWS CodeDeploy. 4087// 4088// Sets the result of a Lambda validation function. The function validates lifecycle 4089// hooks during a deployment that uses the AWS Lambda or Amazon ECS compute 4090// platform. For AWS Lambda deployments, the available lifecycle hooks are BeforeAllowTraffic 4091// and AfterAllowTraffic. For Amazon ECS deployments, the available lifecycle 4092// hooks are BeforeInstall, AfterInstall, AfterAllowTestTraffic, BeforeAllowTraffic, 4093// and AfterAllowTraffic. Lambda validation functions return Succeeded or Failed. 4094// For more information, see AppSpec 'hooks' Section for an AWS Lambda Deployment 4095// (https://docs.aws.amazon.com/codedeploy/latest/userguide/reference-appspec-file-structure-hooks.html#appspec-hooks-lambda) 4096// and AppSpec 'hooks' Section for an Amazon ECS Deployment (https://docs.aws.amazon.com/codedeploy/latest/userguide/reference-appspec-file-structure-hooks.html#appspec-hooks-ecs). 4097// 4098// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 4099// with awserr.Error's Code and Message methods to get detailed information about 4100// the error. 4101// 4102// See the AWS API reference guide for AWS CodeDeploy's 4103// API operation PutLifecycleEventHookExecutionStatus for usage and error information. 4104// 4105// Returned Error Types: 4106// * InvalidLifecycleEventHookExecutionStatusException 4107// The result of a Lambda validation function that verifies a lifecycle event 4108// is invalid. It should return Succeeded or Failed. 4109// 4110// * InvalidLifecycleEventHookExecutionIdException 4111// A lifecycle event hook is invalid. Review the hooks section in your AppSpec 4112// file to ensure the lifecycle events and hooks functions are valid. 4113// 4114// * LifecycleEventAlreadyCompletedException 4115// An attempt to return the status of an already completed lifecycle event occurred. 4116// 4117// * DeploymentIdRequiredException 4118// At least one deployment ID must be specified. 4119// 4120// * DeploymentDoesNotExistException 4121// The deployment with the IAM user or AWS account does not exist. 4122// 4123// * InvalidDeploymentIdException 4124// At least one of the deployment IDs was specified in an invalid format. 4125// 4126// * UnsupportedActionForDeploymentTypeException 4127// A call was submitted that is not supported for the specified deployment type. 4128// 4129// See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/PutLifecycleEventHookExecutionStatus 4130func (c *CodeDeploy) PutLifecycleEventHookExecutionStatus(input *PutLifecycleEventHookExecutionStatusInput) (*PutLifecycleEventHookExecutionStatusOutput, error) { 4131 req, out := c.PutLifecycleEventHookExecutionStatusRequest(input) 4132 return out, req.Send() 4133} 4134 4135// PutLifecycleEventHookExecutionStatusWithContext is the same as PutLifecycleEventHookExecutionStatus with the addition of 4136// the ability to pass a context and additional request options. 4137// 4138// See PutLifecycleEventHookExecutionStatus for details on how to use this API operation. 4139// 4140// The context must be non-nil and will be used for request cancellation. If 4141// the context is nil a panic will occur. In the future the SDK may create 4142// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 4143// for more information on using Contexts. 4144func (c *CodeDeploy) PutLifecycleEventHookExecutionStatusWithContext(ctx aws.Context, input *PutLifecycleEventHookExecutionStatusInput, opts ...request.Option) (*PutLifecycleEventHookExecutionStatusOutput, error) { 4145 req, out := c.PutLifecycleEventHookExecutionStatusRequest(input) 4146 req.SetContext(ctx) 4147 req.ApplyOptions(opts...) 4148 return out, req.Send() 4149} 4150 4151const opRegisterApplicationRevision = "RegisterApplicationRevision" 4152 4153// RegisterApplicationRevisionRequest generates a "aws/request.Request" representing the 4154// client's request for the RegisterApplicationRevision operation. The "output" return 4155// value will be populated with the request's response once the request completes 4156// successfully. 4157// 4158// Use "Send" method on the returned Request to send the API call to the service. 4159// the "output" return value is not valid until after Send returns without error. 4160// 4161// See RegisterApplicationRevision for more information on using the RegisterApplicationRevision 4162// API call, and error handling. 4163// 4164// This method is useful when you want to inject custom logic or configuration 4165// into the SDK's request lifecycle. Such as custom headers, or retry logic. 4166// 4167// 4168// // Example sending a request using the RegisterApplicationRevisionRequest method. 4169// req, resp := client.RegisterApplicationRevisionRequest(params) 4170// 4171// err := req.Send() 4172// if err == nil { // resp is now filled 4173// fmt.Println(resp) 4174// } 4175// 4176// See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/RegisterApplicationRevision 4177func (c *CodeDeploy) RegisterApplicationRevisionRequest(input *RegisterApplicationRevisionInput) (req *request.Request, output *RegisterApplicationRevisionOutput) { 4178 op := &request.Operation{ 4179 Name: opRegisterApplicationRevision, 4180 HTTPMethod: "POST", 4181 HTTPPath: "/", 4182 } 4183 4184 if input == nil { 4185 input = &RegisterApplicationRevisionInput{} 4186 } 4187 4188 output = &RegisterApplicationRevisionOutput{} 4189 req = c.newRequest(op, input, output) 4190 req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) 4191 return 4192} 4193 4194// RegisterApplicationRevision API operation for AWS CodeDeploy. 4195// 4196// Registers with AWS CodeDeploy a revision for the specified application. 4197// 4198// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 4199// with awserr.Error's Code and Message methods to get detailed information about 4200// the error. 4201// 4202// See the AWS API reference guide for AWS CodeDeploy's 4203// API operation RegisterApplicationRevision for usage and error information. 4204// 4205// Returned Error Types: 4206// * ApplicationDoesNotExistException 4207// The application does not exist with the IAM user or AWS account. 4208// 4209// * ApplicationNameRequiredException 4210// The minimum number of required application names was not specified. 4211// 4212// * InvalidApplicationNameException 4213// The application name was specified in an invalid format. 4214// 4215// * DescriptionTooLongException 4216// The description is too long. 4217// 4218// * RevisionRequiredException 4219// The revision ID was not specified. 4220// 4221// * InvalidRevisionException 4222// The revision was specified in an invalid format. 4223// 4224// See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/RegisterApplicationRevision 4225func (c *CodeDeploy) RegisterApplicationRevision(input *RegisterApplicationRevisionInput) (*RegisterApplicationRevisionOutput, error) { 4226 req, out := c.RegisterApplicationRevisionRequest(input) 4227 return out, req.Send() 4228} 4229 4230// RegisterApplicationRevisionWithContext is the same as RegisterApplicationRevision with the addition of 4231// the ability to pass a context and additional request options. 4232// 4233// See RegisterApplicationRevision for details on how to use this API operation. 4234// 4235// The context must be non-nil and will be used for request cancellation. If 4236// the context is nil a panic will occur. In the future the SDK may create 4237// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 4238// for more information on using Contexts. 4239func (c *CodeDeploy) RegisterApplicationRevisionWithContext(ctx aws.Context, input *RegisterApplicationRevisionInput, opts ...request.Option) (*RegisterApplicationRevisionOutput, error) { 4240 req, out := c.RegisterApplicationRevisionRequest(input) 4241 req.SetContext(ctx) 4242 req.ApplyOptions(opts...) 4243 return out, req.Send() 4244} 4245 4246const opRegisterOnPremisesInstance = "RegisterOnPremisesInstance" 4247 4248// RegisterOnPremisesInstanceRequest generates a "aws/request.Request" representing the 4249// client's request for the RegisterOnPremisesInstance operation. The "output" return 4250// value will be populated with the request's response once the request completes 4251// successfully. 4252// 4253// Use "Send" method on the returned Request to send the API call to the service. 4254// the "output" return value is not valid until after Send returns without error. 4255// 4256// See RegisterOnPremisesInstance for more information on using the RegisterOnPremisesInstance 4257// API call, and error handling. 4258// 4259// This method is useful when you want to inject custom logic or configuration 4260// into the SDK's request lifecycle. Such as custom headers, or retry logic. 4261// 4262// 4263// // Example sending a request using the RegisterOnPremisesInstanceRequest method. 4264// req, resp := client.RegisterOnPremisesInstanceRequest(params) 4265// 4266// err := req.Send() 4267// if err == nil { // resp is now filled 4268// fmt.Println(resp) 4269// } 4270// 4271// See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/RegisterOnPremisesInstance 4272func (c *CodeDeploy) RegisterOnPremisesInstanceRequest(input *RegisterOnPremisesInstanceInput) (req *request.Request, output *RegisterOnPremisesInstanceOutput) { 4273 op := &request.Operation{ 4274 Name: opRegisterOnPremisesInstance, 4275 HTTPMethod: "POST", 4276 HTTPPath: "/", 4277 } 4278 4279 if input == nil { 4280 input = &RegisterOnPremisesInstanceInput{} 4281 } 4282 4283 output = &RegisterOnPremisesInstanceOutput{} 4284 req = c.newRequest(op, input, output) 4285 req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) 4286 return 4287} 4288 4289// RegisterOnPremisesInstance API operation for AWS CodeDeploy. 4290// 4291// Registers an on-premises instance. 4292// 4293// Only one IAM ARN (an IAM session ARN or IAM user ARN) is supported in the 4294// request. You cannot use both. 4295// 4296// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 4297// with awserr.Error's Code and Message methods to get detailed information about 4298// the error. 4299// 4300// See the AWS API reference guide for AWS CodeDeploy's 4301// API operation RegisterOnPremisesInstance for usage and error information. 4302// 4303// Returned Error Types: 4304// * InstanceNameAlreadyRegisteredException 4305// The specified on-premises instance name is already registered. 4306// 4307// * IamArnRequiredException 4308// No IAM ARN was included in the request. You must use an IAM session ARN or 4309// IAM user ARN in the request. 4310// 4311// * IamSessionArnAlreadyRegisteredException 4312// The request included an IAM session ARN that has already been used to register 4313// a different instance. 4314// 4315// * IamUserArnAlreadyRegisteredException 4316// The specified IAM user ARN is already registered with an on-premises instance. 4317// 4318// * InstanceNameRequiredException 4319// An on-premises instance name was not specified. 4320// 4321// * IamUserArnRequiredException 4322// An IAM user ARN was not specified. 4323// 4324// * InvalidInstanceNameException 4325// The on-premises instance name was specified in an invalid format. 4326// 4327// * InvalidIamSessionArnException 4328// The IAM session ARN was specified in an invalid format. 4329// 4330// * InvalidIamUserArnException 4331// The IAM user ARN was specified in an invalid format. 4332// 4333// * MultipleIamArnsProvidedException 4334// Both an IAM user ARN and an IAM session ARN were included in the request. 4335// Use only one ARN type. 4336// 4337// See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/RegisterOnPremisesInstance 4338func (c *CodeDeploy) RegisterOnPremisesInstance(input *RegisterOnPremisesInstanceInput) (*RegisterOnPremisesInstanceOutput, error) { 4339 req, out := c.RegisterOnPremisesInstanceRequest(input) 4340 return out, req.Send() 4341} 4342 4343// RegisterOnPremisesInstanceWithContext is the same as RegisterOnPremisesInstance with the addition of 4344// the ability to pass a context and additional request options. 4345// 4346// See RegisterOnPremisesInstance for details on how to use this API operation. 4347// 4348// The context must be non-nil and will be used for request cancellation. If 4349// the context is nil a panic will occur. In the future the SDK may create 4350// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 4351// for more information on using Contexts. 4352func (c *CodeDeploy) RegisterOnPremisesInstanceWithContext(ctx aws.Context, input *RegisterOnPremisesInstanceInput, opts ...request.Option) (*RegisterOnPremisesInstanceOutput, error) { 4353 req, out := c.RegisterOnPremisesInstanceRequest(input) 4354 req.SetContext(ctx) 4355 req.ApplyOptions(opts...) 4356 return out, req.Send() 4357} 4358 4359const opRemoveTagsFromOnPremisesInstances = "RemoveTagsFromOnPremisesInstances" 4360 4361// RemoveTagsFromOnPremisesInstancesRequest generates a "aws/request.Request" representing the 4362// client's request for the RemoveTagsFromOnPremisesInstances operation. The "output" return 4363// value will be populated with the request's response once the request completes 4364// successfully. 4365// 4366// Use "Send" method on the returned Request to send the API call to the service. 4367// the "output" return value is not valid until after Send returns without error. 4368// 4369// See RemoveTagsFromOnPremisesInstances for more information on using the RemoveTagsFromOnPremisesInstances 4370// API call, and error handling. 4371// 4372// This method is useful when you want to inject custom logic or configuration 4373// into the SDK's request lifecycle. Such as custom headers, or retry logic. 4374// 4375// 4376// // Example sending a request using the RemoveTagsFromOnPremisesInstancesRequest method. 4377// req, resp := client.RemoveTagsFromOnPremisesInstancesRequest(params) 4378// 4379// err := req.Send() 4380// if err == nil { // resp is now filled 4381// fmt.Println(resp) 4382// } 4383// 4384// See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/RemoveTagsFromOnPremisesInstances 4385func (c *CodeDeploy) RemoveTagsFromOnPremisesInstancesRequest(input *RemoveTagsFromOnPremisesInstancesInput) (req *request.Request, output *RemoveTagsFromOnPremisesInstancesOutput) { 4386 op := &request.Operation{ 4387 Name: opRemoveTagsFromOnPremisesInstances, 4388 HTTPMethod: "POST", 4389 HTTPPath: "/", 4390 } 4391 4392 if input == nil { 4393 input = &RemoveTagsFromOnPremisesInstancesInput{} 4394 } 4395 4396 output = &RemoveTagsFromOnPremisesInstancesOutput{} 4397 req = c.newRequest(op, input, output) 4398 req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) 4399 return 4400} 4401 4402// RemoveTagsFromOnPremisesInstances API operation for AWS CodeDeploy. 4403// 4404// Removes one or more tags from one or more on-premises instances. 4405// 4406// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 4407// with awserr.Error's Code and Message methods to get detailed information about 4408// the error. 4409// 4410// See the AWS API reference guide for AWS CodeDeploy's 4411// API operation RemoveTagsFromOnPremisesInstances for usage and error information. 4412// 4413// Returned Error Types: 4414// * InstanceNameRequiredException 4415// An on-premises instance name was not specified. 4416// 4417// * InvalidInstanceNameException 4418// The on-premises instance name was specified in an invalid format. 4419// 4420// * TagRequiredException 4421// A tag was not specified. 4422// 4423// * InvalidTagException 4424// The tag was specified in an invalid format. 4425// 4426// * TagLimitExceededException 4427// The maximum allowed number of tags was exceeded. 4428// 4429// * InstanceLimitExceededException 4430// The maximum number of allowed on-premises instances in a single call was 4431// exceeded. 4432// 4433// * InstanceNotRegisteredException 4434// The specified on-premises instance is not registered. 4435// 4436// See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/RemoveTagsFromOnPremisesInstances 4437func (c *CodeDeploy) RemoveTagsFromOnPremisesInstances(input *RemoveTagsFromOnPremisesInstancesInput) (*RemoveTagsFromOnPremisesInstancesOutput, error) { 4438 req, out := c.RemoveTagsFromOnPremisesInstancesRequest(input) 4439 return out, req.Send() 4440} 4441 4442// RemoveTagsFromOnPremisesInstancesWithContext is the same as RemoveTagsFromOnPremisesInstances with the addition of 4443// the ability to pass a context and additional request options. 4444// 4445// See RemoveTagsFromOnPremisesInstances for details on how to use this API operation. 4446// 4447// The context must be non-nil and will be used for request cancellation. If 4448// the context is nil a panic will occur. In the future the SDK may create 4449// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 4450// for more information on using Contexts. 4451func (c *CodeDeploy) RemoveTagsFromOnPremisesInstancesWithContext(ctx aws.Context, input *RemoveTagsFromOnPremisesInstancesInput, opts ...request.Option) (*RemoveTagsFromOnPremisesInstancesOutput, error) { 4452 req, out := c.RemoveTagsFromOnPremisesInstancesRequest(input) 4453 req.SetContext(ctx) 4454 req.ApplyOptions(opts...) 4455 return out, req.Send() 4456} 4457 4458const opSkipWaitTimeForInstanceTermination = "SkipWaitTimeForInstanceTermination" 4459 4460// SkipWaitTimeForInstanceTerminationRequest generates a "aws/request.Request" representing the 4461// client's request for the SkipWaitTimeForInstanceTermination operation. The "output" return 4462// value will be populated with the request's response once the request completes 4463// successfully. 4464// 4465// Use "Send" method on the returned Request to send the API call to the service. 4466// the "output" return value is not valid until after Send returns without error. 4467// 4468// See SkipWaitTimeForInstanceTermination for more information on using the SkipWaitTimeForInstanceTermination 4469// API call, and error handling. 4470// 4471// This method is useful when you want to inject custom logic or configuration 4472// into the SDK's request lifecycle. Such as custom headers, or retry logic. 4473// 4474// 4475// // Example sending a request using the SkipWaitTimeForInstanceTerminationRequest method. 4476// req, resp := client.SkipWaitTimeForInstanceTerminationRequest(params) 4477// 4478// err := req.Send() 4479// if err == nil { // resp is now filled 4480// fmt.Println(resp) 4481// } 4482// 4483// See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/SkipWaitTimeForInstanceTermination 4484// 4485// Deprecated: This operation is deprecated, use ContinueDeployment with DeploymentWaitType instead. 4486func (c *CodeDeploy) SkipWaitTimeForInstanceTerminationRequest(input *SkipWaitTimeForInstanceTerminationInput) (req *request.Request, output *SkipWaitTimeForInstanceTerminationOutput) { 4487 if c.Client.Config.Logger != nil { 4488 c.Client.Config.Logger.Log("This operation, SkipWaitTimeForInstanceTermination, has been deprecated") 4489 } 4490 op := &request.Operation{ 4491 Name: opSkipWaitTimeForInstanceTermination, 4492 HTTPMethod: "POST", 4493 HTTPPath: "/", 4494 } 4495 4496 if input == nil { 4497 input = &SkipWaitTimeForInstanceTerminationInput{} 4498 } 4499 4500 output = &SkipWaitTimeForInstanceTerminationOutput{} 4501 req = c.newRequest(op, input, output) 4502 req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) 4503 return 4504} 4505 4506// SkipWaitTimeForInstanceTermination API operation for AWS CodeDeploy. 4507// 4508// In a blue/green deployment, overrides any specified wait time and starts 4509// terminating instances immediately after the traffic routing is complete. 4510// 4511// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 4512// with awserr.Error's Code and Message methods to get detailed information about 4513// the error. 4514// 4515// See the AWS API reference guide for AWS CodeDeploy's 4516// API operation SkipWaitTimeForInstanceTermination for usage and error information. 4517// 4518// Returned Error Types: 4519// * DeploymentIdRequiredException 4520// At least one deployment ID must be specified. 4521// 4522// * DeploymentDoesNotExistException 4523// The deployment with the IAM user or AWS account does not exist. 4524// 4525// * DeploymentAlreadyCompletedException 4526// The deployment is already complete. 4527// 4528// * InvalidDeploymentIdException 4529// At least one of the deployment IDs was specified in an invalid format. 4530// 4531// * DeploymentNotStartedException 4532// The specified deployment has not started. 4533// 4534// * UnsupportedActionForDeploymentTypeException 4535// A call was submitted that is not supported for the specified deployment type. 4536// 4537// See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/SkipWaitTimeForInstanceTermination 4538// 4539// Deprecated: This operation is deprecated, use ContinueDeployment with DeploymentWaitType instead. 4540func (c *CodeDeploy) SkipWaitTimeForInstanceTermination(input *SkipWaitTimeForInstanceTerminationInput) (*SkipWaitTimeForInstanceTerminationOutput, error) { 4541 req, out := c.SkipWaitTimeForInstanceTerminationRequest(input) 4542 return out, req.Send() 4543} 4544 4545// SkipWaitTimeForInstanceTerminationWithContext is the same as SkipWaitTimeForInstanceTermination with the addition of 4546// the ability to pass a context and additional request options. 4547// 4548// See SkipWaitTimeForInstanceTermination for details on how to use this API operation. 4549// 4550// The context must be non-nil and will be used for request cancellation. If 4551// the context is nil a panic will occur. In the future the SDK may create 4552// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 4553// for more information on using Contexts. 4554// 4555// Deprecated: This operation is deprecated, use ContinueDeployment with DeploymentWaitType instead. 4556func (c *CodeDeploy) SkipWaitTimeForInstanceTerminationWithContext(ctx aws.Context, input *SkipWaitTimeForInstanceTerminationInput, opts ...request.Option) (*SkipWaitTimeForInstanceTerminationOutput, error) { 4557 req, out := c.SkipWaitTimeForInstanceTerminationRequest(input) 4558 req.SetContext(ctx) 4559 req.ApplyOptions(opts...) 4560 return out, req.Send() 4561} 4562 4563const opStopDeployment = "StopDeployment" 4564 4565// StopDeploymentRequest generates a "aws/request.Request" representing the 4566// client's request for the StopDeployment operation. The "output" return 4567// value will be populated with the request's response once the request completes 4568// successfully. 4569// 4570// Use "Send" method on the returned Request to send the API call to the service. 4571// the "output" return value is not valid until after Send returns without error. 4572// 4573// See StopDeployment for more information on using the StopDeployment 4574// API call, and error handling. 4575// 4576// This method is useful when you want to inject custom logic or configuration 4577// into the SDK's request lifecycle. Such as custom headers, or retry logic. 4578// 4579// 4580// // Example sending a request using the StopDeploymentRequest method. 4581// req, resp := client.StopDeploymentRequest(params) 4582// 4583// err := req.Send() 4584// if err == nil { // resp is now filled 4585// fmt.Println(resp) 4586// } 4587// 4588// See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/StopDeployment 4589func (c *CodeDeploy) StopDeploymentRequest(input *StopDeploymentInput) (req *request.Request, output *StopDeploymentOutput) { 4590 op := &request.Operation{ 4591 Name: opStopDeployment, 4592 HTTPMethod: "POST", 4593 HTTPPath: "/", 4594 } 4595 4596 if input == nil { 4597 input = &StopDeploymentInput{} 4598 } 4599 4600 output = &StopDeploymentOutput{} 4601 req = c.newRequest(op, input, output) 4602 return 4603} 4604 4605// StopDeployment API operation for AWS CodeDeploy. 4606// 4607// Attempts to stop an ongoing deployment. 4608// 4609// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 4610// with awserr.Error's Code and Message methods to get detailed information about 4611// the error. 4612// 4613// See the AWS API reference guide for AWS CodeDeploy's 4614// API operation StopDeployment for usage and error information. 4615// 4616// Returned Error Types: 4617// * DeploymentIdRequiredException 4618// At least one deployment ID must be specified. 4619// 4620// * DeploymentDoesNotExistException 4621// The deployment with the IAM user or AWS account does not exist. 4622// 4623// * DeploymentGroupDoesNotExistException 4624// The named deployment group with the IAM user or AWS account does not exist. 4625// 4626// * DeploymentAlreadyCompletedException 4627// The deployment is already complete. 4628// 4629// * InvalidDeploymentIdException 4630// At least one of the deployment IDs was specified in an invalid format. 4631// 4632// * UnsupportedActionForDeploymentTypeException 4633// A call was submitted that is not supported for the specified deployment type. 4634// 4635// See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/StopDeployment 4636func (c *CodeDeploy) StopDeployment(input *StopDeploymentInput) (*StopDeploymentOutput, error) { 4637 req, out := c.StopDeploymentRequest(input) 4638 return out, req.Send() 4639} 4640 4641// StopDeploymentWithContext is the same as StopDeployment with the addition of 4642// the ability to pass a context and additional request options. 4643// 4644// See StopDeployment for details on how to use this API operation. 4645// 4646// The context must be non-nil and will be used for request cancellation. If 4647// the context is nil a panic will occur. In the future the SDK may create 4648// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 4649// for more information on using Contexts. 4650func (c *CodeDeploy) StopDeploymentWithContext(ctx aws.Context, input *StopDeploymentInput, opts ...request.Option) (*StopDeploymentOutput, error) { 4651 req, out := c.StopDeploymentRequest(input) 4652 req.SetContext(ctx) 4653 req.ApplyOptions(opts...) 4654 return out, req.Send() 4655} 4656 4657const opTagResource = "TagResource" 4658 4659// TagResourceRequest generates a "aws/request.Request" representing the 4660// client's request for the TagResource operation. The "output" return 4661// value will be populated with the request's response once the request completes 4662// successfully. 4663// 4664// Use "Send" method on the returned Request to send the API call to the service. 4665// the "output" return value is not valid until after Send returns without error. 4666// 4667// See TagResource for more information on using the TagResource 4668// API call, and error handling. 4669// 4670// This method is useful when you want to inject custom logic or configuration 4671// into the SDK's request lifecycle. Such as custom headers, or retry logic. 4672// 4673// 4674// // Example sending a request using the TagResourceRequest method. 4675// req, resp := client.TagResourceRequest(params) 4676// 4677// err := req.Send() 4678// if err == nil { // resp is now filled 4679// fmt.Println(resp) 4680// } 4681// 4682// See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/TagResource 4683func (c *CodeDeploy) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput) { 4684 op := &request.Operation{ 4685 Name: opTagResource, 4686 HTTPMethod: "POST", 4687 HTTPPath: "/", 4688 } 4689 4690 if input == nil { 4691 input = &TagResourceInput{} 4692 } 4693 4694 output = &TagResourceOutput{} 4695 req = c.newRequest(op, input, output) 4696 req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) 4697 return 4698} 4699 4700// TagResource API operation for AWS CodeDeploy. 4701// 4702// Associates the list of tags in the input Tags parameter with the resource 4703// identified by the ResourceArn input parameter. 4704// 4705// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 4706// with awserr.Error's Code and Message methods to get detailed information about 4707// the error. 4708// 4709// See the AWS API reference guide for AWS CodeDeploy's 4710// API operation TagResource for usage and error information. 4711// 4712// Returned Error Types: 4713// * ResourceArnRequiredException 4714// The ARN of a resource is required, but was not found. 4715// 4716// * ApplicationDoesNotExistException 4717// The application does not exist with the IAM user or AWS account. 4718// 4719// * DeploymentGroupDoesNotExistException 4720// The named deployment group with the IAM user or AWS account does not exist. 4721// 4722// * DeploymentConfigDoesNotExistException 4723// The deployment configuration does not exist with the IAM user or AWS account. 4724// 4725// * TagRequiredException 4726// A tag was not specified. 4727// 4728// * InvalidTagsToAddException 4729// The specified tags are not valid. 4730// 4731// * ArnNotSupportedException 4732// The specified ARN is not supported. For example, it might be an ARN for a 4733// resource that is not expected. 4734// 4735// * InvalidArnException 4736// The specified ARN is not in a valid format. 4737// 4738// See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/TagResource 4739func (c *CodeDeploy) TagResource(input *TagResourceInput) (*TagResourceOutput, error) { 4740 req, out := c.TagResourceRequest(input) 4741 return out, req.Send() 4742} 4743 4744// TagResourceWithContext is the same as TagResource with the addition of 4745// the ability to pass a context and additional request options. 4746// 4747// See TagResource for details on how to use this API operation. 4748// 4749// The context must be non-nil and will be used for request cancellation. If 4750// the context is nil a panic will occur. In the future the SDK may create 4751// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 4752// for more information on using Contexts. 4753func (c *CodeDeploy) TagResourceWithContext(ctx aws.Context, input *TagResourceInput, opts ...request.Option) (*TagResourceOutput, error) { 4754 req, out := c.TagResourceRequest(input) 4755 req.SetContext(ctx) 4756 req.ApplyOptions(opts...) 4757 return out, req.Send() 4758} 4759 4760const opUntagResource = "UntagResource" 4761 4762// UntagResourceRequest generates a "aws/request.Request" representing the 4763// client's request for the UntagResource operation. The "output" return 4764// value will be populated with the request's response once the request completes 4765// successfully. 4766// 4767// Use "Send" method on the returned Request to send the API call to the service. 4768// the "output" return value is not valid until after Send returns without error. 4769// 4770// See UntagResource for more information on using the UntagResource 4771// API call, and error handling. 4772// 4773// This method is useful when you want to inject custom logic or configuration 4774// into the SDK's request lifecycle. Such as custom headers, or retry logic. 4775// 4776// 4777// // Example sending a request using the UntagResourceRequest method. 4778// req, resp := client.UntagResourceRequest(params) 4779// 4780// err := req.Send() 4781// if err == nil { // resp is now filled 4782// fmt.Println(resp) 4783// } 4784// 4785// See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/UntagResource 4786func (c *CodeDeploy) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput) { 4787 op := &request.Operation{ 4788 Name: opUntagResource, 4789 HTTPMethod: "POST", 4790 HTTPPath: "/", 4791 } 4792 4793 if input == nil { 4794 input = &UntagResourceInput{} 4795 } 4796 4797 output = &UntagResourceOutput{} 4798 req = c.newRequest(op, input, output) 4799 req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) 4800 return 4801} 4802 4803// UntagResource API operation for AWS CodeDeploy. 4804// 4805// Disassociates a resource from a list of tags. The resource is identified 4806// by the ResourceArn input parameter. The tags are identified by the list of 4807// keys in the TagKeys input parameter. 4808// 4809// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 4810// with awserr.Error's Code and Message methods to get detailed information about 4811// the error. 4812// 4813// See the AWS API reference guide for AWS CodeDeploy's 4814// API operation UntagResource for usage and error information. 4815// 4816// Returned Error Types: 4817// * ResourceArnRequiredException 4818// The ARN of a resource is required, but was not found. 4819// 4820// * ApplicationDoesNotExistException 4821// The application does not exist with the IAM user or AWS account. 4822// 4823// * DeploymentGroupDoesNotExistException 4824// The named deployment group with the IAM user or AWS account does not exist. 4825// 4826// * DeploymentConfigDoesNotExistException 4827// The deployment configuration does not exist with the IAM user or AWS account. 4828// 4829// * TagRequiredException 4830// A tag was not specified. 4831// 4832// * InvalidTagsToAddException 4833// The specified tags are not valid. 4834// 4835// * ArnNotSupportedException 4836// The specified ARN is not supported. For example, it might be an ARN for a 4837// resource that is not expected. 4838// 4839// * InvalidArnException 4840// The specified ARN is not in a valid format. 4841// 4842// See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/UntagResource 4843func (c *CodeDeploy) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) { 4844 req, out := c.UntagResourceRequest(input) 4845 return out, req.Send() 4846} 4847 4848// UntagResourceWithContext is the same as UntagResource with the addition of 4849// the ability to pass a context and additional request options. 4850// 4851// See UntagResource for details on how to use this API operation. 4852// 4853// The context must be non-nil and will be used for request cancellation. If 4854// the context is nil a panic will occur. In the future the SDK may create 4855// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 4856// for more information on using Contexts. 4857func (c *CodeDeploy) UntagResourceWithContext(ctx aws.Context, input *UntagResourceInput, opts ...request.Option) (*UntagResourceOutput, error) { 4858 req, out := c.UntagResourceRequest(input) 4859 req.SetContext(ctx) 4860 req.ApplyOptions(opts...) 4861 return out, req.Send() 4862} 4863 4864const opUpdateApplication = "UpdateApplication" 4865 4866// UpdateApplicationRequest generates a "aws/request.Request" representing the 4867// client's request for the UpdateApplication operation. The "output" return 4868// value will be populated with the request's response once the request completes 4869// successfully. 4870// 4871// Use "Send" method on the returned Request to send the API call to the service. 4872// the "output" return value is not valid until after Send returns without error. 4873// 4874// See UpdateApplication for more information on using the UpdateApplication 4875// API call, and error handling. 4876// 4877// This method is useful when you want to inject custom logic or configuration 4878// into the SDK's request lifecycle. Such as custom headers, or retry logic. 4879// 4880// 4881// // Example sending a request using the UpdateApplicationRequest method. 4882// req, resp := client.UpdateApplicationRequest(params) 4883// 4884// err := req.Send() 4885// if err == nil { // resp is now filled 4886// fmt.Println(resp) 4887// } 4888// 4889// See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/UpdateApplication 4890func (c *CodeDeploy) UpdateApplicationRequest(input *UpdateApplicationInput) (req *request.Request, output *UpdateApplicationOutput) { 4891 op := &request.Operation{ 4892 Name: opUpdateApplication, 4893 HTTPMethod: "POST", 4894 HTTPPath: "/", 4895 } 4896 4897 if input == nil { 4898 input = &UpdateApplicationInput{} 4899 } 4900 4901 output = &UpdateApplicationOutput{} 4902 req = c.newRequest(op, input, output) 4903 req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) 4904 return 4905} 4906 4907// UpdateApplication API operation for AWS CodeDeploy. 4908// 4909// Changes the name of an application. 4910// 4911// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 4912// with awserr.Error's Code and Message methods to get detailed information about 4913// the error. 4914// 4915// See the AWS API reference guide for AWS CodeDeploy's 4916// API operation UpdateApplication for usage and error information. 4917// 4918// Returned Error Types: 4919// * ApplicationNameRequiredException 4920// The minimum number of required application names was not specified. 4921// 4922// * InvalidApplicationNameException 4923// The application name was specified in an invalid format. 4924// 4925// * ApplicationAlreadyExistsException 4926// An application with the specified name with the IAM user or AWS account already 4927// exists. 4928// 4929// * ApplicationDoesNotExistException 4930// The application does not exist with the IAM user or AWS account. 4931// 4932// See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/UpdateApplication 4933func (c *CodeDeploy) UpdateApplication(input *UpdateApplicationInput) (*UpdateApplicationOutput, error) { 4934 req, out := c.UpdateApplicationRequest(input) 4935 return out, req.Send() 4936} 4937 4938// UpdateApplicationWithContext is the same as UpdateApplication with the addition of 4939// the ability to pass a context and additional request options. 4940// 4941// See UpdateApplication for details on how to use this API operation. 4942// 4943// The context must be non-nil and will be used for request cancellation. If 4944// the context is nil a panic will occur. In the future the SDK may create 4945// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 4946// for more information on using Contexts. 4947func (c *CodeDeploy) UpdateApplicationWithContext(ctx aws.Context, input *UpdateApplicationInput, opts ...request.Option) (*UpdateApplicationOutput, error) { 4948 req, out := c.UpdateApplicationRequest(input) 4949 req.SetContext(ctx) 4950 req.ApplyOptions(opts...) 4951 return out, req.Send() 4952} 4953 4954const opUpdateDeploymentGroup = "UpdateDeploymentGroup" 4955 4956// UpdateDeploymentGroupRequest generates a "aws/request.Request" representing the 4957// client's request for the UpdateDeploymentGroup operation. The "output" return 4958// value will be populated with the request's response once the request completes 4959// successfully. 4960// 4961// Use "Send" method on the returned Request to send the API call to the service. 4962// the "output" return value is not valid until after Send returns without error. 4963// 4964// See UpdateDeploymentGroup for more information on using the UpdateDeploymentGroup 4965// API call, and error handling. 4966// 4967// This method is useful when you want to inject custom logic or configuration 4968// into the SDK's request lifecycle. Such as custom headers, or retry logic. 4969// 4970// 4971// // Example sending a request using the UpdateDeploymentGroupRequest method. 4972// req, resp := client.UpdateDeploymentGroupRequest(params) 4973// 4974// err := req.Send() 4975// if err == nil { // resp is now filled 4976// fmt.Println(resp) 4977// } 4978// 4979// See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/UpdateDeploymentGroup 4980func (c *CodeDeploy) UpdateDeploymentGroupRequest(input *UpdateDeploymentGroupInput) (req *request.Request, output *UpdateDeploymentGroupOutput) { 4981 op := &request.Operation{ 4982 Name: opUpdateDeploymentGroup, 4983 HTTPMethod: "POST", 4984 HTTPPath: "/", 4985 } 4986 4987 if input == nil { 4988 input = &UpdateDeploymentGroupInput{} 4989 } 4990 4991 output = &UpdateDeploymentGroupOutput{} 4992 req = c.newRequest(op, input, output) 4993 return 4994} 4995 4996// UpdateDeploymentGroup API operation for AWS CodeDeploy. 4997// 4998// Changes information about a deployment group. 4999// 5000// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 5001// with awserr.Error's Code and Message methods to get detailed information about 5002// the error. 5003// 5004// See the AWS API reference guide for AWS CodeDeploy's 5005// API operation UpdateDeploymentGroup for usage and error information. 5006// 5007// Returned Error Types: 5008// * ApplicationNameRequiredException 5009// The minimum number of required application names was not specified. 5010// 5011// * InvalidApplicationNameException 5012// The application name was specified in an invalid format. 5013// 5014// * ApplicationDoesNotExistException 5015// The application does not exist with the IAM user or AWS account. 5016// 5017// * InvalidDeploymentGroupNameException 5018// The deployment group name was specified in an invalid format. 5019// 5020// * DeploymentGroupAlreadyExistsException 5021// A deployment group with the specified name with the IAM user or AWS account 5022// already exists. 5023// 5024// * DeploymentGroupNameRequiredException 5025// The deployment group name was not specified. 5026// 5027// * DeploymentGroupDoesNotExistException 5028// The named deployment group with the IAM user or AWS account does not exist. 5029// 5030// * InvalidEC2TagException 5031// The tag was specified in an invalid format. 5032// 5033// * InvalidTagException 5034// The tag was specified in an invalid format. 5035// 5036// * InvalidAutoScalingGroupException 5037// The Auto Scaling group was specified in an invalid format or does not exist. 5038// 5039// * InvalidDeploymentConfigNameException 5040// The deployment configuration name was specified in an invalid format. 5041// 5042// * DeploymentConfigDoesNotExistException 5043// The deployment configuration does not exist with the IAM user or AWS account. 5044// 5045// * InvalidRoleException 5046// The service role ARN was specified in an invalid format. Or, if an Auto Scaling 5047// group was specified, the specified service role does not grant the appropriate 5048// permissions to Amazon EC2 Auto Scaling. 5049// 5050// * LifecycleHookLimitExceededException 5051// The limit for lifecycle hooks was exceeded. 5052// 5053// * InvalidTriggerConfigException 5054// The trigger was specified in an invalid format. 5055// 5056// * TriggerTargetsLimitExceededException 5057// The maximum allowed number of triggers was exceeded. 5058// 5059// * InvalidAlarmConfigException 5060// The format of the alarm configuration is invalid. Possible causes include: 5061// 5062// * The alarm list is null. 5063// 5064// * The alarm object is null. 5065// 5066// * The alarm name is empty or null or exceeds the limit of 255 characters. 5067// 5068// * Two alarms with the same name have been specified. 5069// 5070// * The alarm configuration is enabled, but the alarm list is empty. 5071// 5072// * AlarmsLimitExceededException 5073// The maximum number of alarms for a deployment group (10) was exceeded. 5074// 5075// * InvalidAutoRollbackConfigException 5076// The automatic rollback configuration was specified in an invalid format. 5077// For example, automatic rollback is enabled, but an invalid triggering event 5078// type or no event types were listed. 5079// 5080// * InvalidLoadBalancerInfoException 5081// An invalid load balancer name, or no load balancer name, was specified. 5082// 5083// * InvalidDeploymentStyleException 5084// An invalid deployment style was specified. Valid deployment types include 5085// "IN_PLACE" and "BLUE_GREEN." Valid deployment options include "WITH_TRAFFIC_CONTROL" 5086// and "WITHOUT_TRAFFIC_CONTROL." 5087// 5088// * InvalidBlueGreenDeploymentConfigurationException 5089// The configuration for the blue/green deployment group was provided in an 5090// invalid format. For information about deployment configuration format, see 5091// CreateDeploymentConfig. 5092// 5093// * InvalidEC2TagCombinationException 5094// A call was submitted that specified both Ec2TagFilters and Ec2TagSet, but 5095// only one of these data types can be used in a single call. 5096// 5097// * InvalidOnPremisesTagCombinationException 5098// A call was submitted that specified both OnPremisesTagFilters and OnPremisesTagSet, 5099// but only one of these data types can be used in a single call. 5100// 5101// * TagSetListLimitExceededException 5102// The number of tag groups included in the tag set list exceeded the maximum 5103// allowed limit of 3. 5104// 5105// * InvalidInputException 5106// The input was specified in an invalid format. 5107// 5108// * ThrottlingException 5109// An API function was called too frequently. 5110// 5111// * InvalidECSServiceException 5112// The Amazon ECS service identifier is not valid. 5113// 5114// * InvalidTargetGroupPairException 5115// A target group pair associated with this deployment is not valid. 5116// 5117// * ECSServiceMappingLimitExceededException 5118// The Amazon ECS service is associated with more than one deployment groups. 5119// An Amazon ECS service can be associated with only one deployment group. 5120// 5121// * InvalidTrafficRoutingConfigurationException 5122// The configuration that specifies how traffic is routed during a deployment 5123// is invalid. 5124// 5125// See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/UpdateDeploymentGroup 5126func (c *CodeDeploy) UpdateDeploymentGroup(input *UpdateDeploymentGroupInput) (*UpdateDeploymentGroupOutput, error) { 5127 req, out := c.UpdateDeploymentGroupRequest(input) 5128 return out, req.Send() 5129} 5130 5131// UpdateDeploymentGroupWithContext is the same as UpdateDeploymentGroup with the addition of 5132// the ability to pass a context and additional request options. 5133// 5134// See UpdateDeploymentGroup for details on how to use this API operation. 5135// 5136// The context must be non-nil and will be used for request cancellation. If 5137// the context is nil a panic will occur. In the future the SDK may create 5138// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 5139// for more information on using Contexts. 5140func (c *CodeDeploy) UpdateDeploymentGroupWithContext(ctx aws.Context, input *UpdateDeploymentGroupInput, opts ...request.Option) (*UpdateDeploymentGroupOutput, error) { 5141 req, out := c.UpdateDeploymentGroupRequest(input) 5142 req.SetContext(ctx) 5143 req.ApplyOptions(opts...) 5144 return out, req.Send() 5145} 5146 5147// Represents the input of, and adds tags to, an on-premises instance operation. 5148type AddTagsToOnPremisesInstancesInput struct { 5149 _ struct{} `type:"structure"` 5150 5151 // The names of the on-premises instances to which to add tags. 5152 // 5153 // InstanceNames is a required field 5154 InstanceNames []*string `locationName:"instanceNames" type:"list" required:"true"` 5155 5156 // The tag key-value pairs to add to the on-premises instances. 5157 // 5158 // Keys and values are both required. Keys cannot be null or empty strings. 5159 // Value-only tags are not allowed. 5160 // 5161 // Tags is a required field 5162 Tags []*Tag `locationName:"tags" type:"list" required:"true"` 5163} 5164 5165// String returns the string representation 5166func (s AddTagsToOnPremisesInstancesInput) String() string { 5167 return awsutil.Prettify(s) 5168} 5169 5170// GoString returns the string representation 5171func (s AddTagsToOnPremisesInstancesInput) GoString() string { 5172 return s.String() 5173} 5174 5175// Validate inspects the fields of the type to determine if they are valid. 5176func (s *AddTagsToOnPremisesInstancesInput) Validate() error { 5177 invalidParams := request.ErrInvalidParams{Context: "AddTagsToOnPremisesInstancesInput"} 5178 if s.InstanceNames == nil { 5179 invalidParams.Add(request.NewErrParamRequired("InstanceNames")) 5180 } 5181 if s.Tags == nil { 5182 invalidParams.Add(request.NewErrParamRequired("Tags")) 5183 } 5184 5185 if invalidParams.Len() > 0 { 5186 return invalidParams 5187 } 5188 return nil 5189} 5190 5191// SetInstanceNames sets the InstanceNames field's value. 5192func (s *AddTagsToOnPremisesInstancesInput) SetInstanceNames(v []*string) *AddTagsToOnPremisesInstancesInput { 5193 s.InstanceNames = v 5194 return s 5195} 5196 5197// SetTags sets the Tags field's value. 5198func (s *AddTagsToOnPremisesInstancesInput) SetTags(v []*Tag) *AddTagsToOnPremisesInstancesInput { 5199 s.Tags = v 5200 return s 5201} 5202 5203type AddTagsToOnPremisesInstancesOutput struct { 5204 _ struct{} `type:"structure"` 5205} 5206 5207// String returns the string representation 5208func (s AddTagsToOnPremisesInstancesOutput) String() string { 5209 return awsutil.Prettify(s) 5210} 5211 5212// GoString returns the string representation 5213func (s AddTagsToOnPremisesInstancesOutput) GoString() string { 5214 return s.String() 5215} 5216 5217// Information about an alarm. 5218type Alarm struct { 5219 _ struct{} `type:"structure"` 5220 5221 // The name of the alarm. Maximum length is 255 characters. Each alarm name 5222 // can be used only once in a list of alarms. 5223 Name *string `locationName:"name" type:"string"` 5224} 5225 5226// String returns the string representation 5227func (s Alarm) String() string { 5228 return awsutil.Prettify(s) 5229} 5230 5231// GoString returns the string representation 5232func (s Alarm) GoString() string { 5233 return s.String() 5234} 5235 5236// SetName sets the Name field's value. 5237func (s *Alarm) SetName(v string) *Alarm { 5238 s.Name = &v 5239 return s 5240} 5241 5242// Information about alarms associated with the deployment group. 5243type AlarmConfiguration struct { 5244 _ struct{} `type:"structure"` 5245 5246 // A list of alarms configured for the deployment group. A maximum of 10 alarms 5247 // can be added to a deployment group. 5248 Alarms []*Alarm `locationName:"alarms" type:"list"` 5249 5250 // Indicates whether the alarm configuration is enabled. 5251 Enabled *bool `locationName:"enabled" type:"boolean"` 5252 5253 // Indicates whether a deployment should continue if information about the current 5254 // state of alarms cannot be retrieved from Amazon CloudWatch. The default value 5255 // is false. 5256 // 5257 // * true: The deployment proceeds even if alarm status information can't 5258 // be retrieved from Amazon CloudWatch. 5259 // 5260 // * false: The deployment stops if alarm status information can't be retrieved 5261 // from Amazon CloudWatch. 5262 IgnorePollAlarmFailure *bool `locationName:"ignorePollAlarmFailure" type:"boolean"` 5263} 5264 5265// String returns the string representation 5266func (s AlarmConfiguration) String() string { 5267 return awsutil.Prettify(s) 5268} 5269 5270// GoString returns the string representation 5271func (s AlarmConfiguration) GoString() string { 5272 return s.String() 5273} 5274 5275// SetAlarms sets the Alarms field's value. 5276func (s *AlarmConfiguration) SetAlarms(v []*Alarm) *AlarmConfiguration { 5277 s.Alarms = v 5278 return s 5279} 5280 5281// SetEnabled sets the Enabled field's value. 5282func (s *AlarmConfiguration) SetEnabled(v bool) *AlarmConfiguration { 5283 s.Enabled = &v 5284 return s 5285} 5286 5287// SetIgnorePollAlarmFailure sets the IgnorePollAlarmFailure field's value. 5288func (s *AlarmConfiguration) SetIgnorePollAlarmFailure(v bool) *AlarmConfiguration { 5289 s.IgnorePollAlarmFailure = &v 5290 return s 5291} 5292 5293// The maximum number of alarms for a deployment group (10) was exceeded. 5294type AlarmsLimitExceededException struct { 5295 _ struct{} `type:"structure"` 5296 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 5297 5298 Message_ *string `locationName:"message" type:"string"` 5299} 5300 5301// String returns the string representation 5302func (s AlarmsLimitExceededException) String() string { 5303 return awsutil.Prettify(s) 5304} 5305 5306// GoString returns the string representation 5307func (s AlarmsLimitExceededException) GoString() string { 5308 return s.String() 5309} 5310 5311func newErrorAlarmsLimitExceededException(v protocol.ResponseMetadata) error { 5312 return &AlarmsLimitExceededException{ 5313 RespMetadata: v, 5314 } 5315} 5316 5317// Code returns the exception type name. 5318func (s *AlarmsLimitExceededException) Code() string { 5319 return "AlarmsLimitExceededException" 5320} 5321 5322// Message returns the exception's message. 5323func (s *AlarmsLimitExceededException) Message() string { 5324 if s.Message_ != nil { 5325 return *s.Message_ 5326 } 5327 return "" 5328} 5329 5330// OrigErr always returns nil, satisfies awserr.Error interface. 5331func (s *AlarmsLimitExceededException) OrigErr() error { 5332 return nil 5333} 5334 5335func (s *AlarmsLimitExceededException) Error() string { 5336 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 5337} 5338 5339// Status code returns the HTTP status code for the request's response error. 5340func (s *AlarmsLimitExceededException) StatusCode() int { 5341 return s.RespMetadata.StatusCode 5342} 5343 5344// RequestID returns the service's response RequestID for request. 5345func (s *AlarmsLimitExceededException) RequestID() string { 5346 return s.RespMetadata.RequestID 5347} 5348 5349// A revision for an AWS Lambda or Amazon ECS deployment that is a YAML-formatted 5350// or JSON-formatted string. For AWS Lambda and Amazon ECS deployments, the 5351// revision is the same as the AppSpec file. This method replaces the deprecated 5352// RawString data type. 5353type AppSpecContent struct { 5354 _ struct{} `type:"structure"` 5355 5356 // The YAML-formatted or JSON-formatted revision string. 5357 // 5358 // For an AWS Lambda deployment, the content includes a Lambda function name, 5359 // the alias for its original version, and the alias for its replacement version. 5360 // The deployment shifts traffic from the original version of the Lambda function 5361 // to the replacement version. 5362 // 5363 // For an Amazon ECS deployment, the content includes the task name, information 5364 // about the load balancer that serves traffic to the container, and more. 5365 // 5366 // For both types of deployments, the content can specify Lambda functions that 5367 // run at specified hooks, such as BeforeInstall, during a deployment. 5368 Content *string `locationName:"content" type:"string"` 5369 5370 // The SHA256 hash value of the revision content. 5371 Sha256 *string `locationName:"sha256" type:"string"` 5372} 5373 5374// String returns the string representation 5375func (s AppSpecContent) String() string { 5376 return awsutil.Prettify(s) 5377} 5378 5379// GoString returns the string representation 5380func (s AppSpecContent) GoString() string { 5381 return s.String() 5382} 5383 5384// SetContent sets the Content field's value. 5385func (s *AppSpecContent) SetContent(v string) *AppSpecContent { 5386 s.Content = &v 5387 return s 5388} 5389 5390// SetSha256 sets the Sha256 field's value. 5391func (s *AppSpecContent) SetSha256(v string) *AppSpecContent { 5392 s.Sha256 = &v 5393 return s 5394} 5395 5396// An application with the specified name with the IAM user or AWS account already 5397// exists. 5398type ApplicationAlreadyExistsException struct { 5399 _ struct{} `type:"structure"` 5400 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 5401 5402 Message_ *string `locationName:"message" type:"string"` 5403} 5404 5405// String returns the string representation 5406func (s ApplicationAlreadyExistsException) String() string { 5407 return awsutil.Prettify(s) 5408} 5409 5410// GoString returns the string representation 5411func (s ApplicationAlreadyExistsException) GoString() string { 5412 return s.String() 5413} 5414 5415func newErrorApplicationAlreadyExistsException(v protocol.ResponseMetadata) error { 5416 return &ApplicationAlreadyExistsException{ 5417 RespMetadata: v, 5418 } 5419} 5420 5421// Code returns the exception type name. 5422func (s *ApplicationAlreadyExistsException) Code() string { 5423 return "ApplicationAlreadyExistsException" 5424} 5425 5426// Message returns the exception's message. 5427func (s *ApplicationAlreadyExistsException) Message() string { 5428 if s.Message_ != nil { 5429 return *s.Message_ 5430 } 5431 return "" 5432} 5433 5434// OrigErr always returns nil, satisfies awserr.Error interface. 5435func (s *ApplicationAlreadyExistsException) OrigErr() error { 5436 return nil 5437} 5438 5439func (s *ApplicationAlreadyExistsException) Error() string { 5440 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 5441} 5442 5443// Status code returns the HTTP status code for the request's response error. 5444func (s *ApplicationAlreadyExistsException) StatusCode() int { 5445 return s.RespMetadata.StatusCode 5446} 5447 5448// RequestID returns the service's response RequestID for request. 5449func (s *ApplicationAlreadyExistsException) RequestID() string { 5450 return s.RespMetadata.RequestID 5451} 5452 5453// The application does not exist with the IAM user or AWS account. 5454type ApplicationDoesNotExistException struct { 5455 _ struct{} `type:"structure"` 5456 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 5457 5458 Message_ *string `locationName:"message" type:"string"` 5459} 5460 5461// String returns the string representation 5462func (s ApplicationDoesNotExistException) String() string { 5463 return awsutil.Prettify(s) 5464} 5465 5466// GoString returns the string representation 5467func (s ApplicationDoesNotExistException) GoString() string { 5468 return s.String() 5469} 5470 5471func newErrorApplicationDoesNotExistException(v protocol.ResponseMetadata) error { 5472 return &ApplicationDoesNotExistException{ 5473 RespMetadata: v, 5474 } 5475} 5476 5477// Code returns the exception type name. 5478func (s *ApplicationDoesNotExistException) Code() string { 5479 return "ApplicationDoesNotExistException" 5480} 5481 5482// Message returns the exception's message. 5483func (s *ApplicationDoesNotExistException) Message() string { 5484 if s.Message_ != nil { 5485 return *s.Message_ 5486 } 5487 return "" 5488} 5489 5490// OrigErr always returns nil, satisfies awserr.Error interface. 5491func (s *ApplicationDoesNotExistException) OrigErr() error { 5492 return nil 5493} 5494 5495func (s *ApplicationDoesNotExistException) Error() string { 5496 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 5497} 5498 5499// Status code returns the HTTP status code for the request's response error. 5500func (s *ApplicationDoesNotExistException) StatusCode() int { 5501 return s.RespMetadata.StatusCode 5502} 5503 5504// RequestID returns the service's response RequestID for request. 5505func (s *ApplicationDoesNotExistException) RequestID() string { 5506 return s.RespMetadata.RequestID 5507} 5508 5509// Information about an application. 5510type ApplicationInfo struct { 5511 _ struct{} `type:"structure"` 5512 5513 // The application ID. 5514 ApplicationId *string `locationName:"applicationId" type:"string"` 5515 5516 // The application name. 5517 ApplicationName *string `locationName:"applicationName" min:"1" type:"string"` 5518 5519 // The destination platform type for deployment of the application (Lambda or 5520 // Server). 5521 ComputePlatform *string `locationName:"computePlatform" type:"string" enum:"ComputePlatform"` 5522 5523 // The time at which the application was created. 5524 CreateTime *time.Time `locationName:"createTime" type:"timestamp"` 5525 5526 // The name for a connection to a GitHub account. 5527 GitHubAccountName *string `locationName:"gitHubAccountName" type:"string"` 5528 5529 // True if the user has authenticated with GitHub for the specified application. 5530 // Otherwise, false. 5531 LinkedToGitHub *bool `locationName:"linkedToGitHub" type:"boolean"` 5532} 5533 5534// String returns the string representation 5535func (s ApplicationInfo) String() string { 5536 return awsutil.Prettify(s) 5537} 5538 5539// GoString returns the string representation 5540func (s ApplicationInfo) GoString() string { 5541 return s.String() 5542} 5543 5544// SetApplicationId sets the ApplicationId field's value. 5545func (s *ApplicationInfo) SetApplicationId(v string) *ApplicationInfo { 5546 s.ApplicationId = &v 5547 return s 5548} 5549 5550// SetApplicationName sets the ApplicationName field's value. 5551func (s *ApplicationInfo) SetApplicationName(v string) *ApplicationInfo { 5552 s.ApplicationName = &v 5553 return s 5554} 5555 5556// SetComputePlatform sets the ComputePlatform field's value. 5557func (s *ApplicationInfo) SetComputePlatform(v string) *ApplicationInfo { 5558 s.ComputePlatform = &v 5559 return s 5560} 5561 5562// SetCreateTime sets the CreateTime field's value. 5563func (s *ApplicationInfo) SetCreateTime(v time.Time) *ApplicationInfo { 5564 s.CreateTime = &v 5565 return s 5566} 5567 5568// SetGitHubAccountName sets the GitHubAccountName field's value. 5569func (s *ApplicationInfo) SetGitHubAccountName(v string) *ApplicationInfo { 5570 s.GitHubAccountName = &v 5571 return s 5572} 5573 5574// SetLinkedToGitHub sets the LinkedToGitHub field's value. 5575func (s *ApplicationInfo) SetLinkedToGitHub(v bool) *ApplicationInfo { 5576 s.LinkedToGitHub = &v 5577 return s 5578} 5579 5580// More applications were attempted to be created than are allowed. 5581type ApplicationLimitExceededException struct { 5582 _ struct{} `type:"structure"` 5583 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 5584 5585 Message_ *string `locationName:"message" type:"string"` 5586} 5587 5588// String returns the string representation 5589func (s ApplicationLimitExceededException) String() string { 5590 return awsutil.Prettify(s) 5591} 5592 5593// GoString returns the string representation 5594func (s ApplicationLimitExceededException) GoString() string { 5595 return s.String() 5596} 5597 5598func newErrorApplicationLimitExceededException(v protocol.ResponseMetadata) error { 5599 return &ApplicationLimitExceededException{ 5600 RespMetadata: v, 5601 } 5602} 5603 5604// Code returns the exception type name. 5605func (s *ApplicationLimitExceededException) Code() string { 5606 return "ApplicationLimitExceededException" 5607} 5608 5609// Message returns the exception's message. 5610func (s *ApplicationLimitExceededException) Message() string { 5611 if s.Message_ != nil { 5612 return *s.Message_ 5613 } 5614 return "" 5615} 5616 5617// OrigErr always returns nil, satisfies awserr.Error interface. 5618func (s *ApplicationLimitExceededException) OrigErr() error { 5619 return nil 5620} 5621 5622func (s *ApplicationLimitExceededException) Error() string { 5623 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 5624} 5625 5626// Status code returns the HTTP status code for the request's response error. 5627func (s *ApplicationLimitExceededException) StatusCode() int { 5628 return s.RespMetadata.StatusCode 5629} 5630 5631// RequestID returns the service's response RequestID for request. 5632func (s *ApplicationLimitExceededException) RequestID() string { 5633 return s.RespMetadata.RequestID 5634} 5635 5636// The minimum number of required application names was not specified. 5637type ApplicationNameRequiredException struct { 5638 _ struct{} `type:"structure"` 5639 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 5640 5641 Message_ *string `locationName:"message" type:"string"` 5642} 5643 5644// String returns the string representation 5645func (s ApplicationNameRequiredException) String() string { 5646 return awsutil.Prettify(s) 5647} 5648 5649// GoString returns the string representation 5650func (s ApplicationNameRequiredException) GoString() string { 5651 return s.String() 5652} 5653 5654func newErrorApplicationNameRequiredException(v protocol.ResponseMetadata) error { 5655 return &ApplicationNameRequiredException{ 5656 RespMetadata: v, 5657 } 5658} 5659 5660// Code returns the exception type name. 5661func (s *ApplicationNameRequiredException) Code() string { 5662 return "ApplicationNameRequiredException" 5663} 5664 5665// Message returns the exception's message. 5666func (s *ApplicationNameRequiredException) Message() string { 5667 if s.Message_ != nil { 5668 return *s.Message_ 5669 } 5670 return "" 5671} 5672 5673// OrigErr always returns nil, satisfies awserr.Error interface. 5674func (s *ApplicationNameRequiredException) OrigErr() error { 5675 return nil 5676} 5677 5678func (s *ApplicationNameRequiredException) Error() string { 5679 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 5680} 5681 5682// Status code returns the HTTP status code for the request's response error. 5683func (s *ApplicationNameRequiredException) StatusCode() int { 5684 return s.RespMetadata.StatusCode 5685} 5686 5687// RequestID returns the service's response RequestID for request. 5688func (s *ApplicationNameRequiredException) RequestID() string { 5689 return s.RespMetadata.RequestID 5690} 5691 5692// The specified ARN is not supported. For example, it might be an ARN for a 5693// resource that is not expected. 5694type ArnNotSupportedException struct { 5695 _ struct{} `type:"structure"` 5696 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 5697 5698 Message_ *string `locationName:"message" type:"string"` 5699} 5700 5701// String returns the string representation 5702func (s ArnNotSupportedException) String() string { 5703 return awsutil.Prettify(s) 5704} 5705 5706// GoString returns the string representation 5707func (s ArnNotSupportedException) GoString() string { 5708 return s.String() 5709} 5710 5711func newErrorArnNotSupportedException(v protocol.ResponseMetadata) error { 5712 return &ArnNotSupportedException{ 5713 RespMetadata: v, 5714 } 5715} 5716 5717// Code returns the exception type name. 5718func (s *ArnNotSupportedException) Code() string { 5719 return "ArnNotSupportedException" 5720} 5721 5722// Message returns the exception's message. 5723func (s *ArnNotSupportedException) Message() string { 5724 if s.Message_ != nil { 5725 return *s.Message_ 5726 } 5727 return "" 5728} 5729 5730// OrigErr always returns nil, satisfies awserr.Error interface. 5731func (s *ArnNotSupportedException) OrigErr() error { 5732 return nil 5733} 5734 5735func (s *ArnNotSupportedException) Error() string { 5736 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 5737} 5738 5739// Status code returns the HTTP status code for the request's response error. 5740func (s *ArnNotSupportedException) StatusCode() int { 5741 return s.RespMetadata.StatusCode 5742} 5743 5744// RequestID returns the service's response RequestID for request. 5745func (s *ArnNotSupportedException) RequestID() string { 5746 return s.RespMetadata.RequestID 5747} 5748 5749// Information about a configuration for automatically rolling back to a previous 5750// version of an application revision when a deployment is not completed successfully. 5751type AutoRollbackConfiguration struct { 5752 _ struct{} `type:"structure"` 5753 5754 // Indicates whether a defined automatic rollback configuration is currently 5755 // enabled. 5756 Enabled *bool `locationName:"enabled" type:"boolean"` 5757 5758 // The event type or types that trigger a rollback. 5759 Events []*string `locationName:"events" type:"list"` 5760} 5761 5762// String returns the string representation 5763func (s AutoRollbackConfiguration) String() string { 5764 return awsutil.Prettify(s) 5765} 5766 5767// GoString returns the string representation 5768func (s AutoRollbackConfiguration) GoString() string { 5769 return s.String() 5770} 5771 5772// SetEnabled sets the Enabled field's value. 5773func (s *AutoRollbackConfiguration) SetEnabled(v bool) *AutoRollbackConfiguration { 5774 s.Enabled = &v 5775 return s 5776} 5777 5778// SetEvents sets the Events field's value. 5779func (s *AutoRollbackConfiguration) SetEvents(v []*string) *AutoRollbackConfiguration { 5780 s.Events = v 5781 return s 5782} 5783 5784// Information about an Auto Scaling group. 5785type AutoScalingGroup struct { 5786 _ struct{} `type:"structure"` 5787 5788 // An Auto Scaling lifecycle event hook name. 5789 Hook *string `locationName:"hook" type:"string"` 5790 5791 // The Auto Scaling group name. 5792 Name *string `locationName:"name" type:"string"` 5793} 5794 5795// String returns the string representation 5796func (s AutoScalingGroup) String() string { 5797 return awsutil.Prettify(s) 5798} 5799 5800// GoString returns the string representation 5801func (s AutoScalingGroup) GoString() string { 5802 return s.String() 5803} 5804 5805// SetHook sets the Hook field's value. 5806func (s *AutoScalingGroup) SetHook(v string) *AutoScalingGroup { 5807 s.Hook = &v 5808 return s 5809} 5810 5811// SetName sets the Name field's value. 5812func (s *AutoScalingGroup) SetName(v string) *AutoScalingGroup { 5813 s.Name = &v 5814 return s 5815} 5816 5817// Represents the input of a BatchGetApplicationRevisions operation. 5818type BatchGetApplicationRevisionsInput struct { 5819 _ struct{} `type:"structure"` 5820 5821 // The name of an AWS CodeDeploy application about which to get revision information. 5822 // 5823 // ApplicationName is a required field 5824 ApplicationName *string `locationName:"applicationName" min:"1" type:"string" required:"true"` 5825 5826 // An array of RevisionLocation objects that specify information to get about 5827 // the application revisions, including type and location. The maximum number 5828 // of RevisionLocation objects you can specify is 25. 5829 // 5830 // Revisions is a required field 5831 Revisions []*RevisionLocation `locationName:"revisions" type:"list" required:"true"` 5832} 5833 5834// String returns the string representation 5835func (s BatchGetApplicationRevisionsInput) String() string { 5836 return awsutil.Prettify(s) 5837} 5838 5839// GoString returns the string representation 5840func (s BatchGetApplicationRevisionsInput) GoString() string { 5841 return s.String() 5842} 5843 5844// Validate inspects the fields of the type to determine if they are valid. 5845func (s *BatchGetApplicationRevisionsInput) Validate() error { 5846 invalidParams := request.ErrInvalidParams{Context: "BatchGetApplicationRevisionsInput"} 5847 if s.ApplicationName == nil { 5848 invalidParams.Add(request.NewErrParamRequired("ApplicationName")) 5849 } 5850 if s.ApplicationName != nil && len(*s.ApplicationName) < 1 { 5851 invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1)) 5852 } 5853 if s.Revisions == nil { 5854 invalidParams.Add(request.NewErrParamRequired("Revisions")) 5855 } 5856 5857 if invalidParams.Len() > 0 { 5858 return invalidParams 5859 } 5860 return nil 5861} 5862 5863// SetApplicationName sets the ApplicationName field's value. 5864func (s *BatchGetApplicationRevisionsInput) SetApplicationName(v string) *BatchGetApplicationRevisionsInput { 5865 s.ApplicationName = &v 5866 return s 5867} 5868 5869// SetRevisions sets the Revisions field's value. 5870func (s *BatchGetApplicationRevisionsInput) SetRevisions(v []*RevisionLocation) *BatchGetApplicationRevisionsInput { 5871 s.Revisions = v 5872 return s 5873} 5874 5875// Represents the output of a BatchGetApplicationRevisions operation. 5876type BatchGetApplicationRevisionsOutput struct { 5877 _ struct{} `type:"structure"` 5878 5879 // The name of the application that corresponds to the revisions. 5880 ApplicationName *string `locationName:"applicationName" min:"1" type:"string"` 5881 5882 // Information about errors that might have occurred during the API call. 5883 ErrorMessage *string `locationName:"errorMessage" type:"string"` 5884 5885 // Additional information about the revisions, including the type and location. 5886 Revisions []*RevisionInfo `locationName:"revisions" type:"list"` 5887} 5888 5889// String returns the string representation 5890func (s BatchGetApplicationRevisionsOutput) String() string { 5891 return awsutil.Prettify(s) 5892} 5893 5894// GoString returns the string representation 5895func (s BatchGetApplicationRevisionsOutput) GoString() string { 5896 return s.String() 5897} 5898 5899// SetApplicationName sets the ApplicationName field's value. 5900func (s *BatchGetApplicationRevisionsOutput) SetApplicationName(v string) *BatchGetApplicationRevisionsOutput { 5901 s.ApplicationName = &v 5902 return s 5903} 5904 5905// SetErrorMessage sets the ErrorMessage field's value. 5906func (s *BatchGetApplicationRevisionsOutput) SetErrorMessage(v string) *BatchGetApplicationRevisionsOutput { 5907 s.ErrorMessage = &v 5908 return s 5909} 5910 5911// SetRevisions sets the Revisions field's value. 5912func (s *BatchGetApplicationRevisionsOutput) SetRevisions(v []*RevisionInfo) *BatchGetApplicationRevisionsOutput { 5913 s.Revisions = v 5914 return s 5915} 5916 5917// Represents the input of a BatchGetApplications operation. 5918type BatchGetApplicationsInput struct { 5919 _ struct{} `type:"structure"` 5920 5921 // A list of application names separated by spaces. The maximum number of application 5922 // names you can specify is 100. 5923 // 5924 // ApplicationNames is a required field 5925 ApplicationNames []*string `locationName:"applicationNames" type:"list" required:"true"` 5926} 5927 5928// String returns the string representation 5929func (s BatchGetApplicationsInput) String() string { 5930 return awsutil.Prettify(s) 5931} 5932 5933// GoString returns the string representation 5934func (s BatchGetApplicationsInput) GoString() string { 5935 return s.String() 5936} 5937 5938// Validate inspects the fields of the type to determine if they are valid. 5939func (s *BatchGetApplicationsInput) Validate() error { 5940 invalidParams := request.ErrInvalidParams{Context: "BatchGetApplicationsInput"} 5941 if s.ApplicationNames == nil { 5942 invalidParams.Add(request.NewErrParamRequired("ApplicationNames")) 5943 } 5944 5945 if invalidParams.Len() > 0 { 5946 return invalidParams 5947 } 5948 return nil 5949} 5950 5951// SetApplicationNames sets the ApplicationNames field's value. 5952func (s *BatchGetApplicationsInput) SetApplicationNames(v []*string) *BatchGetApplicationsInput { 5953 s.ApplicationNames = v 5954 return s 5955} 5956 5957// Represents the output of a BatchGetApplications operation. 5958type BatchGetApplicationsOutput struct { 5959 _ struct{} `type:"structure"` 5960 5961 // Information about the applications. 5962 ApplicationsInfo []*ApplicationInfo `locationName:"applicationsInfo" type:"list"` 5963} 5964 5965// String returns the string representation 5966func (s BatchGetApplicationsOutput) String() string { 5967 return awsutil.Prettify(s) 5968} 5969 5970// GoString returns the string representation 5971func (s BatchGetApplicationsOutput) GoString() string { 5972 return s.String() 5973} 5974 5975// SetApplicationsInfo sets the ApplicationsInfo field's value. 5976func (s *BatchGetApplicationsOutput) SetApplicationsInfo(v []*ApplicationInfo) *BatchGetApplicationsOutput { 5977 s.ApplicationsInfo = v 5978 return s 5979} 5980 5981// Represents the input of a BatchGetDeploymentGroups operation. 5982type BatchGetDeploymentGroupsInput struct { 5983 _ struct{} `type:"structure"` 5984 5985 // The name of an AWS CodeDeploy application associated with the applicable 5986 // IAM user or AWS account. 5987 // 5988 // ApplicationName is a required field 5989 ApplicationName *string `locationName:"applicationName" min:"1" type:"string" required:"true"` 5990 5991 // The names of the deployment groups. 5992 // 5993 // DeploymentGroupNames is a required field 5994 DeploymentGroupNames []*string `locationName:"deploymentGroupNames" type:"list" required:"true"` 5995} 5996 5997// String returns the string representation 5998func (s BatchGetDeploymentGroupsInput) String() string { 5999 return awsutil.Prettify(s) 6000} 6001 6002// GoString returns the string representation 6003func (s BatchGetDeploymentGroupsInput) GoString() string { 6004 return s.String() 6005} 6006 6007// Validate inspects the fields of the type to determine if they are valid. 6008func (s *BatchGetDeploymentGroupsInput) Validate() error { 6009 invalidParams := request.ErrInvalidParams{Context: "BatchGetDeploymentGroupsInput"} 6010 if s.ApplicationName == nil { 6011 invalidParams.Add(request.NewErrParamRequired("ApplicationName")) 6012 } 6013 if s.ApplicationName != nil && len(*s.ApplicationName) < 1 { 6014 invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1)) 6015 } 6016 if s.DeploymentGroupNames == nil { 6017 invalidParams.Add(request.NewErrParamRequired("DeploymentGroupNames")) 6018 } 6019 6020 if invalidParams.Len() > 0 { 6021 return invalidParams 6022 } 6023 return nil 6024} 6025 6026// SetApplicationName sets the ApplicationName field's value. 6027func (s *BatchGetDeploymentGroupsInput) SetApplicationName(v string) *BatchGetDeploymentGroupsInput { 6028 s.ApplicationName = &v 6029 return s 6030} 6031 6032// SetDeploymentGroupNames sets the DeploymentGroupNames field's value. 6033func (s *BatchGetDeploymentGroupsInput) SetDeploymentGroupNames(v []*string) *BatchGetDeploymentGroupsInput { 6034 s.DeploymentGroupNames = v 6035 return s 6036} 6037 6038// Represents the output of a BatchGetDeploymentGroups operation. 6039type BatchGetDeploymentGroupsOutput struct { 6040 _ struct{} `type:"structure"` 6041 6042 // Information about the deployment groups. 6043 DeploymentGroupsInfo []*DeploymentGroupInfo `locationName:"deploymentGroupsInfo" type:"list"` 6044 6045 // Information about errors that might have occurred during the API call. 6046 ErrorMessage *string `locationName:"errorMessage" type:"string"` 6047} 6048 6049// String returns the string representation 6050func (s BatchGetDeploymentGroupsOutput) String() string { 6051 return awsutil.Prettify(s) 6052} 6053 6054// GoString returns the string representation 6055func (s BatchGetDeploymentGroupsOutput) GoString() string { 6056 return s.String() 6057} 6058 6059// SetDeploymentGroupsInfo sets the DeploymentGroupsInfo field's value. 6060func (s *BatchGetDeploymentGroupsOutput) SetDeploymentGroupsInfo(v []*DeploymentGroupInfo) *BatchGetDeploymentGroupsOutput { 6061 s.DeploymentGroupsInfo = v 6062 return s 6063} 6064 6065// SetErrorMessage sets the ErrorMessage field's value. 6066func (s *BatchGetDeploymentGroupsOutput) SetErrorMessage(v string) *BatchGetDeploymentGroupsOutput { 6067 s.ErrorMessage = &v 6068 return s 6069} 6070 6071// Represents the input of a BatchGetDeploymentInstances operation. 6072type BatchGetDeploymentInstancesInput struct { 6073 _ struct{} `type:"structure"` 6074 6075 // The unique ID of a deployment. 6076 // 6077 // DeploymentId is a required field 6078 DeploymentId *string `locationName:"deploymentId" type:"string" required:"true"` 6079 6080 // The unique IDs of instances used in the deployment. The maximum number of 6081 // instance IDs you can specify is 25. 6082 // 6083 // InstanceIds is a required field 6084 InstanceIds []*string `locationName:"instanceIds" type:"list" required:"true"` 6085} 6086 6087// String returns the string representation 6088func (s BatchGetDeploymentInstancesInput) String() string { 6089 return awsutil.Prettify(s) 6090} 6091 6092// GoString returns the string representation 6093func (s BatchGetDeploymentInstancesInput) GoString() string { 6094 return s.String() 6095} 6096 6097// Validate inspects the fields of the type to determine if they are valid. 6098func (s *BatchGetDeploymentInstancesInput) Validate() error { 6099 invalidParams := request.ErrInvalidParams{Context: "BatchGetDeploymentInstancesInput"} 6100 if s.DeploymentId == nil { 6101 invalidParams.Add(request.NewErrParamRequired("DeploymentId")) 6102 } 6103 if s.InstanceIds == nil { 6104 invalidParams.Add(request.NewErrParamRequired("InstanceIds")) 6105 } 6106 6107 if invalidParams.Len() > 0 { 6108 return invalidParams 6109 } 6110 return nil 6111} 6112 6113// SetDeploymentId sets the DeploymentId field's value. 6114func (s *BatchGetDeploymentInstancesInput) SetDeploymentId(v string) *BatchGetDeploymentInstancesInput { 6115 s.DeploymentId = &v 6116 return s 6117} 6118 6119// SetInstanceIds sets the InstanceIds field's value. 6120func (s *BatchGetDeploymentInstancesInput) SetInstanceIds(v []*string) *BatchGetDeploymentInstancesInput { 6121 s.InstanceIds = v 6122 return s 6123} 6124 6125// Represents the output of a BatchGetDeploymentInstances operation. 6126type BatchGetDeploymentInstancesOutput struct { 6127 _ struct{} `type:"structure"` 6128 6129 // Information about errors that might have occurred during the API call. 6130 ErrorMessage *string `locationName:"errorMessage" type:"string"` 6131 6132 // Information about the instance. 6133 InstancesSummary []*InstanceSummary `locationName:"instancesSummary" type:"list"` 6134} 6135 6136// String returns the string representation 6137func (s BatchGetDeploymentInstancesOutput) String() string { 6138 return awsutil.Prettify(s) 6139} 6140 6141// GoString returns the string representation 6142func (s BatchGetDeploymentInstancesOutput) GoString() string { 6143 return s.String() 6144} 6145 6146// SetErrorMessage sets the ErrorMessage field's value. 6147func (s *BatchGetDeploymentInstancesOutput) SetErrorMessage(v string) *BatchGetDeploymentInstancesOutput { 6148 s.ErrorMessage = &v 6149 return s 6150} 6151 6152// SetInstancesSummary sets the InstancesSummary field's value. 6153func (s *BatchGetDeploymentInstancesOutput) SetInstancesSummary(v []*InstanceSummary) *BatchGetDeploymentInstancesOutput { 6154 s.InstancesSummary = v 6155 return s 6156} 6157 6158type BatchGetDeploymentTargetsInput struct { 6159 _ struct{} `type:"structure"` 6160 6161 // The unique ID of a deployment. 6162 DeploymentId *string `locationName:"deploymentId" type:"string"` 6163 6164 // The unique IDs of the deployment targets. The compute platform of the deployment 6165 // determines the type of the targets and their formats. The maximum number 6166 // of deployment target IDs you can specify is 25. 6167 // 6168 // * For deployments that use the EC2/On-premises compute platform, the target 6169 // IDs are EC2 or on-premises instances IDs, and their target type is instanceTarget. 6170 // 6171 // * For deployments that use the AWS Lambda compute platform, the target 6172 // IDs are the names of Lambda functions, and their target type is instanceTarget. 6173 // 6174 // * For deployments that use the Amazon ECS compute platform, the target 6175 // IDs are pairs of Amazon ECS clusters and services specified using the 6176 // format <clustername>:<servicename>. Their target type is ecsTarget. 6177 // 6178 // * For deployments that are deployed with AWS CloudFormation, the target 6179 // IDs are CloudFormation stack IDs. Their target type is cloudFormationTarget. 6180 TargetIds []*string `locationName:"targetIds" type:"list"` 6181} 6182 6183// String returns the string representation 6184func (s BatchGetDeploymentTargetsInput) String() string { 6185 return awsutil.Prettify(s) 6186} 6187 6188// GoString returns the string representation 6189func (s BatchGetDeploymentTargetsInput) GoString() string { 6190 return s.String() 6191} 6192 6193// SetDeploymentId sets the DeploymentId field's value. 6194func (s *BatchGetDeploymentTargetsInput) SetDeploymentId(v string) *BatchGetDeploymentTargetsInput { 6195 s.DeploymentId = &v 6196 return s 6197} 6198 6199// SetTargetIds sets the TargetIds field's value. 6200func (s *BatchGetDeploymentTargetsInput) SetTargetIds(v []*string) *BatchGetDeploymentTargetsInput { 6201 s.TargetIds = v 6202 return s 6203} 6204 6205type BatchGetDeploymentTargetsOutput struct { 6206 _ struct{} `type:"structure"` 6207 6208 // A list of target objects for a deployment. Each target object contains details 6209 // about the target, such as its status and lifecycle events. The type of the 6210 // target objects depends on the deployment' compute platform. 6211 // 6212 // * EC2/On-premises: Each target object is an EC2 or on-premises instance. 6213 // 6214 // * AWS Lambda: The target object is a specific version of an AWS Lambda 6215 // function. 6216 // 6217 // * Amazon ECS: The target object is an Amazon ECS service. 6218 // 6219 // * CloudFormation: The target object is an AWS CloudFormation blue/green 6220 // deployment. 6221 DeploymentTargets []*DeploymentTarget `locationName:"deploymentTargets" type:"list"` 6222} 6223 6224// String returns the string representation 6225func (s BatchGetDeploymentTargetsOutput) String() string { 6226 return awsutil.Prettify(s) 6227} 6228 6229// GoString returns the string representation 6230func (s BatchGetDeploymentTargetsOutput) GoString() string { 6231 return s.String() 6232} 6233 6234// SetDeploymentTargets sets the DeploymentTargets field's value. 6235func (s *BatchGetDeploymentTargetsOutput) SetDeploymentTargets(v []*DeploymentTarget) *BatchGetDeploymentTargetsOutput { 6236 s.DeploymentTargets = v 6237 return s 6238} 6239 6240// Represents the input of a BatchGetDeployments operation. 6241type BatchGetDeploymentsInput struct { 6242 _ struct{} `type:"structure"` 6243 6244 // A list of deployment IDs, separated by spaces. The maximum number of deployment 6245 // IDs you can specify is 25. 6246 // 6247 // DeploymentIds is a required field 6248 DeploymentIds []*string `locationName:"deploymentIds" type:"list" required:"true"` 6249} 6250 6251// String returns the string representation 6252func (s BatchGetDeploymentsInput) String() string { 6253 return awsutil.Prettify(s) 6254} 6255 6256// GoString returns the string representation 6257func (s BatchGetDeploymentsInput) GoString() string { 6258 return s.String() 6259} 6260 6261// Validate inspects the fields of the type to determine if they are valid. 6262func (s *BatchGetDeploymentsInput) Validate() error { 6263 invalidParams := request.ErrInvalidParams{Context: "BatchGetDeploymentsInput"} 6264 if s.DeploymentIds == nil { 6265 invalidParams.Add(request.NewErrParamRequired("DeploymentIds")) 6266 } 6267 6268 if invalidParams.Len() > 0 { 6269 return invalidParams 6270 } 6271 return nil 6272} 6273 6274// SetDeploymentIds sets the DeploymentIds field's value. 6275func (s *BatchGetDeploymentsInput) SetDeploymentIds(v []*string) *BatchGetDeploymentsInput { 6276 s.DeploymentIds = v 6277 return s 6278} 6279 6280// Represents the output of a BatchGetDeployments operation. 6281type BatchGetDeploymentsOutput struct { 6282 _ struct{} `type:"structure"` 6283 6284 // Information about the deployments. 6285 DeploymentsInfo []*DeploymentInfo `locationName:"deploymentsInfo" type:"list"` 6286} 6287 6288// String returns the string representation 6289func (s BatchGetDeploymentsOutput) String() string { 6290 return awsutil.Prettify(s) 6291} 6292 6293// GoString returns the string representation 6294func (s BatchGetDeploymentsOutput) GoString() string { 6295 return s.String() 6296} 6297 6298// SetDeploymentsInfo sets the DeploymentsInfo field's value. 6299func (s *BatchGetDeploymentsOutput) SetDeploymentsInfo(v []*DeploymentInfo) *BatchGetDeploymentsOutput { 6300 s.DeploymentsInfo = v 6301 return s 6302} 6303 6304// Represents the input of a BatchGetOnPremisesInstances operation. 6305type BatchGetOnPremisesInstancesInput struct { 6306 _ struct{} `type:"structure"` 6307 6308 // The names of the on-premises instances about which to get information. The 6309 // maximum number of instance names you can specify is 25. 6310 // 6311 // InstanceNames is a required field 6312 InstanceNames []*string `locationName:"instanceNames" type:"list" required:"true"` 6313} 6314 6315// String returns the string representation 6316func (s BatchGetOnPremisesInstancesInput) String() string { 6317 return awsutil.Prettify(s) 6318} 6319 6320// GoString returns the string representation 6321func (s BatchGetOnPremisesInstancesInput) GoString() string { 6322 return s.String() 6323} 6324 6325// Validate inspects the fields of the type to determine if they are valid. 6326func (s *BatchGetOnPremisesInstancesInput) Validate() error { 6327 invalidParams := request.ErrInvalidParams{Context: "BatchGetOnPremisesInstancesInput"} 6328 if s.InstanceNames == nil { 6329 invalidParams.Add(request.NewErrParamRequired("InstanceNames")) 6330 } 6331 6332 if invalidParams.Len() > 0 { 6333 return invalidParams 6334 } 6335 return nil 6336} 6337 6338// SetInstanceNames sets the InstanceNames field's value. 6339func (s *BatchGetOnPremisesInstancesInput) SetInstanceNames(v []*string) *BatchGetOnPremisesInstancesInput { 6340 s.InstanceNames = v 6341 return s 6342} 6343 6344// Represents the output of a BatchGetOnPremisesInstances operation. 6345type BatchGetOnPremisesInstancesOutput struct { 6346 _ struct{} `type:"structure"` 6347 6348 // Information about the on-premises instances. 6349 InstanceInfos []*InstanceInfo `locationName:"instanceInfos" type:"list"` 6350} 6351 6352// String returns the string representation 6353func (s BatchGetOnPremisesInstancesOutput) String() string { 6354 return awsutil.Prettify(s) 6355} 6356 6357// GoString returns the string representation 6358func (s BatchGetOnPremisesInstancesOutput) GoString() string { 6359 return s.String() 6360} 6361 6362// SetInstanceInfos sets the InstanceInfos field's value. 6363func (s *BatchGetOnPremisesInstancesOutput) SetInstanceInfos(v []*InstanceInfo) *BatchGetOnPremisesInstancesOutput { 6364 s.InstanceInfos = v 6365 return s 6366} 6367 6368// The maximum number of names or IDs allowed for this request (100) was exceeded. 6369type BatchLimitExceededException struct { 6370 _ struct{} `type:"structure"` 6371 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 6372 6373 Message_ *string `locationName:"message" type:"string"` 6374} 6375 6376// String returns the string representation 6377func (s BatchLimitExceededException) String() string { 6378 return awsutil.Prettify(s) 6379} 6380 6381// GoString returns the string representation 6382func (s BatchLimitExceededException) GoString() string { 6383 return s.String() 6384} 6385 6386func newErrorBatchLimitExceededException(v protocol.ResponseMetadata) error { 6387 return &BatchLimitExceededException{ 6388 RespMetadata: v, 6389 } 6390} 6391 6392// Code returns the exception type name. 6393func (s *BatchLimitExceededException) Code() string { 6394 return "BatchLimitExceededException" 6395} 6396 6397// Message returns the exception's message. 6398func (s *BatchLimitExceededException) Message() string { 6399 if s.Message_ != nil { 6400 return *s.Message_ 6401 } 6402 return "" 6403} 6404 6405// OrigErr always returns nil, satisfies awserr.Error interface. 6406func (s *BatchLimitExceededException) OrigErr() error { 6407 return nil 6408} 6409 6410func (s *BatchLimitExceededException) Error() string { 6411 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 6412} 6413 6414// Status code returns the HTTP status code for the request's response error. 6415func (s *BatchLimitExceededException) StatusCode() int { 6416 return s.RespMetadata.StatusCode 6417} 6418 6419// RequestID returns the service's response RequestID for request. 6420func (s *BatchLimitExceededException) RequestID() string { 6421 return s.RespMetadata.RequestID 6422} 6423 6424// Information about blue/green deployment options for a deployment group. 6425type BlueGreenDeploymentConfiguration struct { 6426 _ struct{} `type:"structure"` 6427 6428 // Information about the action to take when newly provisioned instances are 6429 // ready to receive traffic in a blue/green deployment. 6430 DeploymentReadyOption *DeploymentReadyOption `locationName:"deploymentReadyOption" type:"structure"` 6431 6432 // Information about how instances are provisioned for a replacement environment 6433 // in a blue/green deployment. 6434 GreenFleetProvisioningOption *GreenFleetProvisioningOption `locationName:"greenFleetProvisioningOption" type:"structure"` 6435 6436 // Information about whether to terminate instances in the original fleet during 6437 // a blue/green deployment. 6438 TerminateBlueInstancesOnDeploymentSuccess *BlueInstanceTerminationOption `locationName:"terminateBlueInstancesOnDeploymentSuccess" type:"structure"` 6439} 6440 6441// String returns the string representation 6442func (s BlueGreenDeploymentConfiguration) String() string { 6443 return awsutil.Prettify(s) 6444} 6445 6446// GoString returns the string representation 6447func (s BlueGreenDeploymentConfiguration) GoString() string { 6448 return s.String() 6449} 6450 6451// SetDeploymentReadyOption sets the DeploymentReadyOption field's value. 6452func (s *BlueGreenDeploymentConfiguration) SetDeploymentReadyOption(v *DeploymentReadyOption) *BlueGreenDeploymentConfiguration { 6453 s.DeploymentReadyOption = v 6454 return s 6455} 6456 6457// SetGreenFleetProvisioningOption sets the GreenFleetProvisioningOption field's value. 6458func (s *BlueGreenDeploymentConfiguration) SetGreenFleetProvisioningOption(v *GreenFleetProvisioningOption) *BlueGreenDeploymentConfiguration { 6459 s.GreenFleetProvisioningOption = v 6460 return s 6461} 6462 6463// SetTerminateBlueInstancesOnDeploymentSuccess sets the TerminateBlueInstancesOnDeploymentSuccess field's value. 6464func (s *BlueGreenDeploymentConfiguration) SetTerminateBlueInstancesOnDeploymentSuccess(v *BlueInstanceTerminationOption) *BlueGreenDeploymentConfiguration { 6465 s.TerminateBlueInstancesOnDeploymentSuccess = v 6466 return s 6467} 6468 6469// Information about whether instances in the original environment are terminated 6470// when a blue/green deployment is successful. BlueInstanceTerminationOption 6471// does not apply to Lambda deployments. 6472type BlueInstanceTerminationOption struct { 6473 _ struct{} `type:"structure"` 6474 6475 // The action to take on instances in the original environment after a successful 6476 // blue/green deployment. 6477 // 6478 // * TERMINATE: Instances are terminated after a specified wait time. 6479 // 6480 // * KEEP_ALIVE: Instances are left running after they are deregistered from 6481 // the load balancer and removed from the deployment group. 6482 Action *string `locationName:"action" type:"string" enum:"InstanceAction"` 6483 6484 // For an Amazon EC2 deployment, the number of minutes to wait after a successful 6485 // blue/green deployment before terminating instances from the original environment. 6486 // 6487 // For an Amazon ECS deployment, the number of minutes before deleting the original 6488 // (blue) task set. During an Amazon ECS deployment, CodeDeploy shifts traffic 6489 // from the original (blue) task set to a replacement (green) task set. 6490 // 6491 // The maximum setting is 2880 minutes (2 days). 6492 TerminationWaitTimeInMinutes *int64 `locationName:"terminationWaitTimeInMinutes" type:"integer"` 6493} 6494 6495// String returns the string representation 6496func (s BlueInstanceTerminationOption) String() string { 6497 return awsutil.Prettify(s) 6498} 6499 6500// GoString returns the string representation 6501func (s BlueInstanceTerminationOption) GoString() string { 6502 return s.String() 6503} 6504 6505// SetAction sets the Action field's value. 6506func (s *BlueInstanceTerminationOption) SetAction(v string) *BlueInstanceTerminationOption { 6507 s.Action = &v 6508 return s 6509} 6510 6511// SetTerminationWaitTimeInMinutes sets the TerminationWaitTimeInMinutes field's value. 6512func (s *BlueInstanceTerminationOption) SetTerminationWaitTimeInMinutes(v int64) *BlueInstanceTerminationOption { 6513 s.TerminationWaitTimeInMinutes = &v 6514 return s 6515} 6516 6517// A bucket name is required, but was not provided. 6518type BucketNameFilterRequiredException struct { 6519 _ struct{} `type:"structure"` 6520 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 6521 6522 Message_ *string `locationName:"message" type:"string"` 6523} 6524 6525// String returns the string representation 6526func (s BucketNameFilterRequiredException) String() string { 6527 return awsutil.Prettify(s) 6528} 6529 6530// GoString returns the string representation 6531func (s BucketNameFilterRequiredException) GoString() string { 6532 return s.String() 6533} 6534 6535func newErrorBucketNameFilterRequiredException(v protocol.ResponseMetadata) error { 6536 return &BucketNameFilterRequiredException{ 6537 RespMetadata: v, 6538 } 6539} 6540 6541// Code returns the exception type name. 6542func (s *BucketNameFilterRequiredException) Code() string { 6543 return "BucketNameFilterRequiredException" 6544} 6545 6546// Message returns the exception's message. 6547func (s *BucketNameFilterRequiredException) Message() string { 6548 if s.Message_ != nil { 6549 return *s.Message_ 6550 } 6551 return "" 6552} 6553 6554// OrigErr always returns nil, satisfies awserr.Error interface. 6555func (s *BucketNameFilterRequiredException) OrigErr() error { 6556 return nil 6557} 6558 6559func (s *BucketNameFilterRequiredException) Error() string { 6560 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 6561} 6562 6563// Status code returns the HTTP status code for the request's response error. 6564func (s *BucketNameFilterRequiredException) StatusCode() int { 6565 return s.RespMetadata.StatusCode 6566} 6567 6568// RequestID returns the service's response RequestID for request. 6569func (s *BucketNameFilterRequiredException) RequestID() string { 6570 return s.RespMetadata.RequestID 6571} 6572 6573// Information about the target to be updated by an AWS CloudFormation blue/green 6574// deployment. This target type is used for all deployments initiated by a CloudFormation 6575// stack update. 6576type CloudFormationTarget struct { 6577 _ struct{} `type:"structure"` 6578 6579 // The unique ID of an AWS CloudFormation blue/green deployment. 6580 DeploymentId *string `locationName:"deploymentId" type:"string"` 6581 6582 // The date and time when the target application was updated by an AWS CloudFormation 6583 // blue/green deployment. 6584 LastUpdatedAt *time.Time `locationName:"lastUpdatedAt" type:"timestamp"` 6585 6586 // The lifecycle events of the AWS CloudFormation blue/green deployment to this 6587 // target application. 6588 LifecycleEvents []*LifecycleEvent `locationName:"lifecycleEvents" type:"list"` 6589 6590 // The resource type for the AWS CloudFormation blue/green deployment. 6591 ResourceType *string `locationName:"resourceType" type:"string"` 6592 6593 // The status of an AWS CloudFormation blue/green deployment's target application. 6594 Status *string `locationName:"status" type:"string" enum:"TargetStatus"` 6595 6596 // The unique ID of a deployment target that has a type of CloudFormationTarget. 6597 TargetId *string `locationName:"targetId" type:"string"` 6598 6599 // The percentage of production traffic that the target version of an AWS CloudFormation 6600 // blue/green deployment receives. 6601 TargetVersionWeight *float64 `locationName:"targetVersionWeight" type:"double"` 6602} 6603 6604// String returns the string representation 6605func (s CloudFormationTarget) String() string { 6606 return awsutil.Prettify(s) 6607} 6608 6609// GoString returns the string representation 6610func (s CloudFormationTarget) GoString() string { 6611 return s.String() 6612} 6613 6614// SetDeploymentId sets the DeploymentId field's value. 6615func (s *CloudFormationTarget) SetDeploymentId(v string) *CloudFormationTarget { 6616 s.DeploymentId = &v 6617 return s 6618} 6619 6620// SetLastUpdatedAt sets the LastUpdatedAt field's value. 6621func (s *CloudFormationTarget) SetLastUpdatedAt(v time.Time) *CloudFormationTarget { 6622 s.LastUpdatedAt = &v 6623 return s 6624} 6625 6626// SetLifecycleEvents sets the LifecycleEvents field's value. 6627func (s *CloudFormationTarget) SetLifecycleEvents(v []*LifecycleEvent) *CloudFormationTarget { 6628 s.LifecycleEvents = v 6629 return s 6630} 6631 6632// SetResourceType sets the ResourceType field's value. 6633func (s *CloudFormationTarget) SetResourceType(v string) *CloudFormationTarget { 6634 s.ResourceType = &v 6635 return s 6636} 6637 6638// SetStatus sets the Status field's value. 6639func (s *CloudFormationTarget) SetStatus(v string) *CloudFormationTarget { 6640 s.Status = &v 6641 return s 6642} 6643 6644// SetTargetId sets the TargetId field's value. 6645func (s *CloudFormationTarget) SetTargetId(v string) *CloudFormationTarget { 6646 s.TargetId = &v 6647 return s 6648} 6649 6650// SetTargetVersionWeight sets the TargetVersionWeight field's value. 6651func (s *CloudFormationTarget) SetTargetVersionWeight(v float64) *CloudFormationTarget { 6652 s.TargetVersionWeight = &v 6653 return s 6654} 6655 6656type ContinueDeploymentInput struct { 6657 _ struct{} `type:"structure"` 6658 6659 // The unique ID of a blue/green deployment for which you want to start rerouting 6660 // traffic to the replacement environment. 6661 DeploymentId *string `locationName:"deploymentId" type:"string"` 6662 6663 // The status of the deployment's waiting period. READY_WAIT indicates that 6664 // the deployment is ready to start shifting traffic. TERMINATION_WAIT indicates 6665 // that the traffic is shifted, but the original target is not terminated. 6666 DeploymentWaitType *string `locationName:"deploymentWaitType" type:"string" enum:"DeploymentWaitType"` 6667} 6668 6669// String returns the string representation 6670func (s ContinueDeploymentInput) String() string { 6671 return awsutil.Prettify(s) 6672} 6673 6674// GoString returns the string representation 6675func (s ContinueDeploymentInput) GoString() string { 6676 return s.String() 6677} 6678 6679// SetDeploymentId sets the DeploymentId field's value. 6680func (s *ContinueDeploymentInput) SetDeploymentId(v string) *ContinueDeploymentInput { 6681 s.DeploymentId = &v 6682 return s 6683} 6684 6685// SetDeploymentWaitType sets the DeploymentWaitType field's value. 6686func (s *ContinueDeploymentInput) SetDeploymentWaitType(v string) *ContinueDeploymentInput { 6687 s.DeploymentWaitType = &v 6688 return s 6689} 6690 6691type ContinueDeploymentOutput struct { 6692 _ struct{} `type:"structure"` 6693} 6694 6695// String returns the string representation 6696func (s ContinueDeploymentOutput) String() string { 6697 return awsutil.Prettify(s) 6698} 6699 6700// GoString returns the string representation 6701func (s ContinueDeploymentOutput) GoString() string { 6702 return s.String() 6703} 6704 6705// Represents the input of a CreateApplication operation. 6706type CreateApplicationInput struct { 6707 _ struct{} `type:"structure"` 6708 6709 // The name of the application. This name must be unique with the applicable 6710 // IAM user or AWS account. 6711 // 6712 // ApplicationName is a required field 6713 ApplicationName *string `locationName:"applicationName" min:"1" type:"string" required:"true"` 6714 6715 // The destination platform type for the deployment (Lambda, Server, or ECS). 6716 ComputePlatform *string `locationName:"computePlatform" type:"string" enum:"ComputePlatform"` 6717 6718 // The metadata that you apply to CodeDeploy applications to help you organize 6719 // and categorize them. Each tag consists of a key and an optional value, both 6720 // of which you define. 6721 Tags []*Tag `locationName:"tags" type:"list"` 6722} 6723 6724// String returns the string representation 6725func (s CreateApplicationInput) String() string { 6726 return awsutil.Prettify(s) 6727} 6728 6729// GoString returns the string representation 6730func (s CreateApplicationInput) GoString() string { 6731 return s.String() 6732} 6733 6734// Validate inspects the fields of the type to determine if they are valid. 6735func (s *CreateApplicationInput) Validate() error { 6736 invalidParams := request.ErrInvalidParams{Context: "CreateApplicationInput"} 6737 if s.ApplicationName == nil { 6738 invalidParams.Add(request.NewErrParamRequired("ApplicationName")) 6739 } 6740 if s.ApplicationName != nil && len(*s.ApplicationName) < 1 { 6741 invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1)) 6742 } 6743 6744 if invalidParams.Len() > 0 { 6745 return invalidParams 6746 } 6747 return nil 6748} 6749 6750// SetApplicationName sets the ApplicationName field's value. 6751func (s *CreateApplicationInput) SetApplicationName(v string) *CreateApplicationInput { 6752 s.ApplicationName = &v 6753 return s 6754} 6755 6756// SetComputePlatform sets the ComputePlatform field's value. 6757func (s *CreateApplicationInput) SetComputePlatform(v string) *CreateApplicationInput { 6758 s.ComputePlatform = &v 6759 return s 6760} 6761 6762// SetTags sets the Tags field's value. 6763func (s *CreateApplicationInput) SetTags(v []*Tag) *CreateApplicationInput { 6764 s.Tags = v 6765 return s 6766} 6767 6768// Represents the output of a CreateApplication operation. 6769type CreateApplicationOutput struct { 6770 _ struct{} `type:"structure"` 6771 6772 // A unique application ID. 6773 ApplicationId *string `locationName:"applicationId" type:"string"` 6774} 6775 6776// String returns the string representation 6777func (s CreateApplicationOutput) String() string { 6778 return awsutil.Prettify(s) 6779} 6780 6781// GoString returns the string representation 6782func (s CreateApplicationOutput) GoString() string { 6783 return s.String() 6784} 6785 6786// SetApplicationId sets the ApplicationId field's value. 6787func (s *CreateApplicationOutput) SetApplicationId(v string) *CreateApplicationOutput { 6788 s.ApplicationId = &v 6789 return s 6790} 6791 6792// Represents the input of a CreateDeploymentConfig operation. 6793type CreateDeploymentConfigInput struct { 6794 _ struct{} `type:"structure"` 6795 6796 // The destination platform type for the deployment (Lambda, Server, or ECS). 6797 ComputePlatform *string `locationName:"computePlatform" type:"string" enum:"ComputePlatform"` 6798 6799 // The name of the deployment configuration to create. 6800 // 6801 // DeploymentConfigName is a required field 6802 DeploymentConfigName *string `locationName:"deploymentConfigName" min:"1" type:"string" required:"true"` 6803 6804 // The minimum number of healthy instances that should be available at any time 6805 // during the deployment. There are two parameters expected in the input: type 6806 // and value. 6807 // 6808 // The type parameter takes either of the following values: 6809 // 6810 // * HOST_COUNT: The value parameter represents the minimum number of healthy 6811 // instances as an absolute value. 6812 // 6813 // * FLEET_PERCENT: The value parameter represents the minimum number of 6814 // healthy instances as a percentage of the total number of instances in 6815 // the deployment. If you specify FLEET_PERCENT, at the start of the deployment, 6816 // AWS CodeDeploy converts the percentage to the equivalent number of instances 6817 // and rounds up fractional instances. 6818 // 6819 // The value parameter takes an integer. 6820 // 6821 // For example, to set a minimum of 95% healthy instance, specify a type of 6822 // FLEET_PERCENT and a value of 95. 6823 MinimumHealthyHosts *MinimumHealthyHosts `locationName:"minimumHealthyHosts" type:"structure"` 6824 6825 // The configuration that specifies how the deployment traffic is routed. 6826 TrafficRoutingConfig *TrafficRoutingConfig `locationName:"trafficRoutingConfig" type:"structure"` 6827} 6828 6829// String returns the string representation 6830func (s CreateDeploymentConfigInput) String() string { 6831 return awsutil.Prettify(s) 6832} 6833 6834// GoString returns the string representation 6835func (s CreateDeploymentConfigInput) GoString() string { 6836 return s.String() 6837} 6838 6839// Validate inspects the fields of the type to determine if they are valid. 6840func (s *CreateDeploymentConfigInput) Validate() error { 6841 invalidParams := request.ErrInvalidParams{Context: "CreateDeploymentConfigInput"} 6842 if s.DeploymentConfigName == nil { 6843 invalidParams.Add(request.NewErrParamRequired("DeploymentConfigName")) 6844 } 6845 if s.DeploymentConfigName != nil && len(*s.DeploymentConfigName) < 1 { 6846 invalidParams.Add(request.NewErrParamMinLen("DeploymentConfigName", 1)) 6847 } 6848 6849 if invalidParams.Len() > 0 { 6850 return invalidParams 6851 } 6852 return nil 6853} 6854 6855// SetComputePlatform sets the ComputePlatform field's value. 6856func (s *CreateDeploymentConfigInput) SetComputePlatform(v string) *CreateDeploymentConfigInput { 6857 s.ComputePlatform = &v 6858 return s 6859} 6860 6861// SetDeploymentConfigName sets the DeploymentConfigName field's value. 6862func (s *CreateDeploymentConfigInput) SetDeploymentConfigName(v string) *CreateDeploymentConfigInput { 6863 s.DeploymentConfigName = &v 6864 return s 6865} 6866 6867// SetMinimumHealthyHosts sets the MinimumHealthyHosts field's value. 6868func (s *CreateDeploymentConfigInput) SetMinimumHealthyHosts(v *MinimumHealthyHosts) *CreateDeploymentConfigInput { 6869 s.MinimumHealthyHosts = v 6870 return s 6871} 6872 6873// SetTrafficRoutingConfig sets the TrafficRoutingConfig field's value. 6874func (s *CreateDeploymentConfigInput) SetTrafficRoutingConfig(v *TrafficRoutingConfig) *CreateDeploymentConfigInput { 6875 s.TrafficRoutingConfig = v 6876 return s 6877} 6878 6879// Represents the output of a CreateDeploymentConfig operation. 6880type CreateDeploymentConfigOutput struct { 6881 _ struct{} `type:"structure"` 6882 6883 // A unique deployment configuration ID. 6884 DeploymentConfigId *string `locationName:"deploymentConfigId" type:"string"` 6885} 6886 6887// String returns the string representation 6888func (s CreateDeploymentConfigOutput) String() string { 6889 return awsutil.Prettify(s) 6890} 6891 6892// GoString returns the string representation 6893func (s CreateDeploymentConfigOutput) GoString() string { 6894 return s.String() 6895} 6896 6897// SetDeploymentConfigId sets the DeploymentConfigId field's value. 6898func (s *CreateDeploymentConfigOutput) SetDeploymentConfigId(v string) *CreateDeploymentConfigOutput { 6899 s.DeploymentConfigId = &v 6900 return s 6901} 6902 6903// Represents the input of a CreateDeploymentGroup operation. 6904type CreateDeploymentGroupInput struct { 6905 _ struct{} `type:"structure"` 6906 6907 // Information to add about Amazon CloudWatch alarms when the deployment group 6908 // is created. 6909 AlarmConfiguration *AlarmConfiguration `locationName:"alarmConfiguration" type:"structure"` 6910 6911 // The name of an AWS CodeDeploy application associated with the IAM user or 6912 // AWS account. 6913 // 6914 // ApplicationName is a required field 6915 ApplicationName *string `locationName:"applicationName" min:"1" type:"string" required:"true"` 6916 6917 // Configuration information for an automatic rollback that is added when a 6918 // deployment group is created. 6919 AutoRollbackConfiguration *AutoRollbackConfiguration `locationName:"autoRollbackConfiguration" type:"structure"` 6920 6921 // A list of associated Amazon EC2 Auto Scaling groups. 6922 AutoScalingGroups []*string `locationName:"autoScalingGroups" type:"list"` 6923 6924 // Information about blue/green deployment options for a deployment group. 6925 BlueGreenDeploymentConfiguration *BlueGreenDeploymentConfiguration `locationName:"blueGreenDeploymentConfiguration" type:"structure"` 6926 6927 // If specified, the deployment configuration name can be either one of the 6928 // predefined configurations provided with AWS CodeDeploy or a custom deployment 6929 // configuration that you create by calling the create deployment configuration 6930 // operation. 6931 // 6932 // CodeDeployDefault.OneAtATime is the default deployment configuration. It 6933 // is used if a configuration isn't specified for the deployment or deployment 6934 // group. 6935 // 6936 // For more information about the predefined deployment configurations in AWS 6937 // CodeDeploy, see Working with Deployment Configurations in CodeDeploy (https://docs.aws.amazon.com/codedeploy/latest/userguide/deployment-configurations.html) 6938 // in the AWS CodeDeploy User Guide. 6939 DeploymentConfigName *string `locationName:"deploymentConfigName" min:"1" type:"string"` 6940 6941 // The name of a new deployment group for the specified application. 6942 // 6943 // DeploymentGroupName is a required field 6944 DeploymentGroupName *string `locationName:"deploymentGroupName" min:"1" type:"string" required:"true"` 6945 6946 // Information about the type of deployment, in-place or blue/green, that you 6947 // want to run and whether to route deployment traffic behind a load balancer. 6948 DeploymentStyle *DeploymentStyle `locationName:"deploymentStyle" type:"structure"` 6949 6950 // The Amazon EC2 tags on which to filter. The deployment group includes EC2 6951 // instances with any of the specified tags. Cannot be used in the same call 6952 // as ec2TagSet. 6953 Ec2TagFilters []*EC2TagFilter `locationName:"ec2TagFilters" type:"list"` 6954 6955 // Information about groups of tags applied to EC2 instances. The deployment 6956 // group includes only EC2 instances identified by all the tag groups. Cannot 6957 // be used in the same call as ec2TagFilters. 6958 Ec2TagSet *EC2TagSet `locationName:"ec2TagSet" type:"structure"` 6959 6960 // The target Amazon ECS services in the deployment group. This applies only 6961 // to deployment groups that use the Amazon ECS compute platform. A target Amazon 6962 // ECS service is specified as an Amazon ECS cluster and service name pair using 6963 // the format <clustername>:<servicename>. 6964 EcsServices []*ECSService `locationName:"ecsServices" type:"list"` 6965 6966 // Information about the load balancer used in a deployment. 6967 LoadBalancerInfo *LoadBalancerInfo `locationName:"loadBalancerInfo" type:"structure"` 6968 6969 // The on-premises instance tags on which to filter. The deployment group includes 6970 // on-premises instances with any of the specified tags. Cannot be used in the 6971 // same call as OnPremisesTagSet. 6972 OnPremisesInstanceTagFilters []*TagFilter `locationName:"onPremisesInstanceTagFilters" type:"list"` 6973 6974 // Information about groups of tags applied to on-premises instances. The deployment 6975 // group includes only on-premises instances identified by all of the tag groups. 6976 // Cannot be used in the same call as onPremisesInstanceTagFilters. 6977 OnPremisesTagSet *OnPremisesTagSet `locationName:"onPremisesTagSet" type:"structure"` 6978 6979 // Indicates what happens when new EC2 instances are launched mid-deployment 6980 // and do not receive the deployed application revision. 6981 // 6982 // If this option is set to UPDATE or is unspecified, CodeDeploy initiates one 6983 // or more 'auto-update outdated instances' deployments to apply the deployed 6984 // application revision to the new EC2 instances. 6985 // 6986 // If this option is set to IGNORE, CodeDeploy does not initiate a deployment 6987 // to update the new EC2 instances. This may result in instances having different 6988 // revisions. 6989 OutdatedInstancesStrategy *string `locationName:"outdatedInstancesStrategy" type:"string" enum:"OutdatedInstancesStrategy"` 6990 6991 // A service role Amazon Resource Name (ARN) that allows AWS CodeDeploy to act 6992 // on the user's behalf when interacting with AWS services. 6993 // 6994 // ServiceRoleArn is a required field 6995 ServiceRoleArn *string `locationName:"serviceRoleArn" type:"string" required:"true"` 6996 6997 // The metadata that you apply to CodeDeploy deployment groups to help you organize 6998 // and categorize them. Each tag consists of a key and an optional value, both 6999 // of which you define. 7000 Tags []*Tag `locationName:"tags" type:"list"` 7001 7002 // Information about triggers to create when the deployment group is created. 7003 // For examples, see Create a Trigger for an AWS CodeDeploy Event (https://docs.aws.amazon.com/codedeploy/latest/userguide/how-to-notify-sns.html) 7004 // in the AWS CodeDeploy User Guide. 7005 TriggerConfigurations []*TriggerConfig `locationName:"triggerConfigurations" type:"list"` 7006} 7007 7008// String returns the string representation 7009func (s CreateDeploymentGroupInput) String() string { 7010 return awsutil.Prettify(s) 7011} 7012 7013// GoString returns the string representation 7014func (s CreateDeploymentGroupInput) GoString() string { 7015 return s.String() 7016} 7017 7018// Validate inspects the fields of the type to determine if they are valid. 7019func (s *CreateDeploymentGroupInput) Validate() error { 7020 invalidParams := request.ErrInvalidParams{Context: "CreateDeploymentGroupInput"} 7021 if s.ApplicationName == nil { 7022 invalidParams.Add(request.NewErrParamRequired("ApplicationName")) 7023 } 7024 if s.ApplicationName != nil && len(*s.ApplicationName) < 1 { 7025 invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1)) 7026 } 7027 if s.DeploymentConfigName != nil && len(*s.DeploymentConfigName) < 1 { 7028 invalidParams.Add(request.NewErrParamMinLen("DeploymentConfigName", 1)) 7029 } 7030 if s.DeploymentGroupName == nil { 7031 invalidParams.Add(request.NewErrParamRequired("DeploymentGroupName")) 7032 } 7033 if s.DeploymentGroupName != nil && len(*s.DeploymentGroupName) < 1 { 7034 invalidParams.Add(request.NewErrParamMinLen("DeploymentGroupName", 1)) 7035 } 7036 if s.ServiceRoleArn == nil { 7037 invalidParams.Add(request.NewErrParamRequired("ServiceRoleArn")) 7038 } 7039 7040 if invalidParams.Len() > 0 { 7041 return invalidParams 7042 } 7043 return nil 7044} 7045 7046// SetAlarmConfiguration sets the AlarmConfiguration field's value. 7047func (s *CreateDeploymentGroupInput) SetAlarmConfiguration(v *AlarmConfiguration) *CreateDeploymentGroupInput { 7048 s.AlarmConfiguration = v 7049 return s 7050} 7051 7052// SetApplicationName sets the ApplicationName field's value. 7053func (s *CreateDeploymentGroupInput) SetApplicationName(v string) *CreateDeploymentGroupInput { 7054 s.ApplicationName = &v 7055 return s 7056} 7057 7058// SetAutoRollbackConfiguration sets the AutoRollbackConfiguration field's value. 7059func (s *CreateDeploymentGroupInput) SetAutoRollbackConfiguration(v *AutoRollbackConfiguration) *CreateDeploymentGroupInput { 7060 s.AutoRollbackConfiguration = v 7061 return s 7062} 7063 7064// SetAutoScalingGroups sets the AutoScalingGroups field's value. 7065func (s *CreateDeploymentGroupInput) SetAutoScalingGroups(v []*string) *CreateDeploymentGroupInput { 7066 s.AutoScalingGroups = v 7067 return s 7068} 7069 7070// SetBlueGreenDeploymentConfiguration sets the BlueGreenDeploymentConfiguration field's value. 7071func (s *CreateDeploymentGroupInput) SetBlueGreenDeploymentConfiguration(v *BlueGreenDeploymentConfiguration) *CreateDeploymentGroupInput { 7072 s.BlueGreenDeploymentConfiguration = v 7073 return s 7074} 7075 7076// SetDeploymentConfigName sets the DeploymentConfigName field's value. 7077func (s *CreateDeploymentGroupInput) SetDeploymentConfigName(v string) *CreateDeploymentGroupInput { 7078 s.DeploymentConfigName = &v 7079 return s 7080} 7081 7082// SetDeploymentGroupName sets the DeploymentGroupName field's value. 7083func (s *CreateDeploymentGroupInput) SetDeploymentGroupName(v string) *CreateDeploymentGroupInput { 7084 s.DeploymentGroupName = &v 7085 return s 7086} 7087 7088// SetDeploymentStyle sets the DeploymentStyle field's value. 7089func (s *CreateDeploymentGroupInput) SetDeploymentStyle(v *DeploymentStyle) *CreateDeploymentGroupInput { 7090 s.DeploymentStyle = v 7091 return s 7092} 7093 7094// SetEc2TagFilters sets the Ec2TagFilters field's value. 7095func (s *CreateDeploymentGroupInput) SetEc2TagFilters(v []*EC2TagFilter) *CreateDeploymentGroupInput { 7096 s.Ec2TagFilters = v 7097 return s 7098} 7099 7100// SetEc2TagSet sets the Ec2TagSet field's value. 7101func (s *CreateDeploymentGroupInput) SetEc2TagSet(v *EC2TagSet) *CreateDeploymentGroupInput { 7102 s.Ec2TagSet = v 7103 return s 7104} 7105 7106// SetEcsServices sets the EcsServices field's value. 7107func (s *CreateDeploymentGroupInput) SetEcsServices(v []*ECSService) *CreateDeploymentGroupInput { 7108 s.EcsServices = v 7109 return s 7110} 7111 7112// SetLoadBalancerInfo sets the LoadBalancerInfo field's value. 7113func (s *CreateDeploymentGroupInput) SetLoadBalancerInfo(v *LoadBalancerInfo) *CreateDeploymentGroupInput { 7114 s.LoadBalancerInfo = v 7115 return s 7116} 7117 7118// SetOnPremisesInstanceTagFilters sets the OnPremisesInstanceTagFilters field's value. 7119func (s *CreateDeploymentGroupInput) SetOnPremisesInstanceTagFilters(v []*TagFilter) *CreateDeploymentGroupInput { 7120 s.OnPremisesInstanceTagFilters = v 7121 return s 7122} 7123 7124// SetOnPremisesTagSet sets the OnPremisesTagSet field's value. 7125func (s *CreateDeploymentGroupInput) SetOnPremisesTagSet(v *OnPremisesTagSet) *CreateDeploymentGroupInput { 7126 s.OnPremisesTagSet = v 7127 return s 7128} 7129 7130// SetOutdatedInstancesStrategy sets the OutdatedInstancesStrategy field's value. 7131func (s *CreateDeploymentGroupInput) SetOutdatedInstancesStrategy(v string) *CreateDeploymentGroupInput { 7132 s.OutdatedInstancesStrategy = &v 7133 return s 7134} 7135 7136// SetServiceRoleArn sets the ServiceRoleArn field's value. 7137func (s *CreateDeploymentGroupInput) SetServiceRoleArn(v string) *CreateDeploymentGroupInput { 7138 s.ServiceRoleArn = &v 7139 return s 7140} 7141 7142// SetTags sets the Tags field's value. 7143func (s *CreateDeploymentGroupInput) SetTags(v []*Tag) *CreateDeploymentGroupInput { 7144 s.Tags = v 7145 return s 7146} 7147 7148// SetTriggerConfigurations sets the TriggerConfigurations field's value. 7149func (s *CreateDeploymentGroupInput) SetTriggerConfigurations(v []*TriggerConfig) *CreateDeploymentGroupInput { 7150 s.TriggerConfigurations = v 7151 return s 7152} 7153 7154// Represents the output of a CreateDeploymentGroup operation. 7155type CreateDeploymentGroupOutput struct { 7156 _ struct{} `type:"structure"` 7157 7158 // A unique deployment group ID. 7159 DeploymentGroupId *string `locationName:"deploymentGroupId" type:"string"` 7160} 7161 7162// String returns the string representation 7163func (s CreateDeploymentGroupOutput) String() string { 7164 return awsutil.Prettify(s) 7165} 7166 7167// GoString returns the string representation 7168func (s CreateDeploymentGroupOutput) GoString() string { 7169 return s.String() 7170} 7171 7172// SetDeploymentGroupId sets the DeploymentGroupId field's value. 7173func (s *CreateDeploymentGroupOutput) SetDeploymentGroupId(v string) *CreateDeploymentGroupOutput { 7174 s.DeploymentGroupId = &v 7175 return s 7176} 7177 7178// Represents the input of a CreateDeployment operation. 7179type CreateDeploymentInput struct { 7180 _ struct{} `type:"structure"` 7181 7182 // The name of an AWS CodeDeploy application associated with the IAM user or 7183 // AWS account. 7184 // 7185 // ApplicationName is a required field 7186 ApplicationName *string `locationName:"applicationName" min:"1" type:"string" required:"true"` 7187 7188 // Configuration information for an automatic rollback that is added when a 7189 // deployment is created. 7190 AutoRollbackConfiguration *AutoRollbackConfiguration `locationName:"autoRollbackConfiguration" type:"structure"` 7191 7192 // The name of a deployment configuration associated with the IAM user or AWS 7193 // account. 7194 // 7195 // If not specified, the value configured in the deployment group is used as 7196 // the default. If the deployment group does not have a deployment configuration 7197 // associated with it, CodeDeployDefault.OneAtATime is used by default. 7198 DeploymentConfigName *string `locationName:"deploymentConfigName" min:"1" type:"string"` 7199 7200 // The name of the deployment group. 7201 DeploymentGroupName *string `locationName:"deploymentGroupName" min:"1" type:"string"` 7202 7203 // A comment about the deployment. 7204 Description *string `locationName:"description" type:"string"` 7205 7206 // Information about how AWS CodeDeploy handles files that already exist in 7207 // a deployment target location but weren't part of the previous successful 7208 // deployment. 7209 // 7210 // The fileExistsBehavior parameter takes any of the following values: 7211 // 7212 // * DISALLOW: The deployment fails. This is also the default behavior if 7213 // no option is specified. 7214 // 7215 // * OVERWRITE: The version of the file from the application revision currently 7216 // being deployed replaces the version already on the instance. 7217 // 7218 // * RETAIN: The version of the file already on the instance is kept and 7219 // used as part of the new deployment. 7220 FileExistsBehavior *string `locationName:"fileExistsBehavior" type:"string" enum:"FileExistsBehavior"` 7221 7222 // If true, then if an ApplicationStop, BeforeBlockTraffic, or AfterBlockTraffic 7223 // deployment lifecycle event to an instance fails, then the deployment continues 7224 // to the next deployment lifecycle event. For example, if ApplicationStop fails, 7225 // the deployment continues with DownloadBundle. If BeforeBlockTraffic fails, 7226 // the deployment continues with BlockTraffic. If AfterBlockTraffic fails, the 7227 // deployment continues with ApplicationStop. 7228 // 7229 // If false or not specified, then if a lifecycle event fails during a deployment 7230 // to an instance, that deployment fails. If deployment to that instance is 7231 // part of an overall deployment and the number of healthy hosts is not less 7232 // than the minimum number of healthy hosts, then a deployment to the next instance 7233 // is attempted. 7234 // 7235 // During a deployment, the AWS CodeDeploy agent runs the scripts specified 7236 // for ApplicationStop, BeforeBlockTraffic, and AfterBlockTraffic in the AppSpec 7237 // file from the previous successful deployment. (All other scripts are run 7238 // from the AppSpec file in the current deployment.) If one of these scripts 7239 // contains an error and does not run successfully, the deployment can fail. 7240 // 7241 // If the cause of the failure is a script from the last successful deployment 7242 // that will never run successfully, create a new deployment and use ignoreApplicationStopFailures 7243 // to specify that the ApplicationStop, BeforeBlockTraffic, and AfterBlockTraffic 7244 // failures should be ignored. 7245 IgnoreApplicationStopFailures *bool `locationName:"ignoreApplicationStopFailures" type:"boolean"` 7246 7247 // The type and location of the revision to deploy. 7248 Revision *RevisionLocation `locationName:"revision" type:"structure"` 7249 7250 // Information about the instances that belong to the replacement environment 7251 // in a blue/green deployment. 7252 TargetInstances *TargetInstances `locationName:"targetInstances" type:"structure"` 7253 7254 // Indicates whether to deploy to all instances or only to instances that are 7255 // not running the latest application revision. 7256 UpdateOutdatedInstancesOnly *bool `locationName:"updateOutdatedInstancesOnly" type:"boolean"` 7257} 7258 7259// String returns the string representation 7260func (s CreateDeploymentInput) String() string { 7261 return awsutil.Prettify(s) 7262} 7263 7264// GoString returns the string representation 7265func (s CreateDeploymentInput) GoString() string { 7266 return s.String() 7267} 7268 7269// Validate inspects the fields of the type to determine if they are valid. 7270func (s *CreateDeploymentInput) Validate() error { 7271 invalidParams := request.ErrInvalidParams{Context: "CreateDeploymentInput"} 7272 if s.ApplicationName == nil { 7273 invalidParams.Add(request.NewErrParamRequired("ApplicationName")) 7274 } 7275 if s.ApplicationName != nil && len(*s.ApplicationName) < 1 { 7276 invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1)) 7277 } 7278 if s.DeploymentConfigName != nil && len(*s.DeploymentConfigName) < 1 { 7279 invalidParams.Add(request.NewErrParamMinLen("DeploymentConfigName", 1)) 7280 } 7281 if s.DeploymentGroupName != nil && len(*s.DeploymentGroupName) < 1 { 7282 invalidParams.Add(request.NewErrParamMinLen("DeploymentGroupName", 1)) 7283 } 7284 7285 if invalidParams.Len() > 0 { 7286 return invalidParams 7287 } 7288 return nil 7289} 7290 7291// SetApplicationName sets the ApplicationName field's value. 7292func (s *CreateDeploymentInput) SetApplicationName(v string) *CreateDeploymentInput { 7293 s.ApplicationName = &v 7294 return s 7295} 7296 7297// SetAutoRollbackConfiguration sets the AutoRollbackConfiguration field's value. 7298func (s *CreateDeploymentInput) SetAutoRollbackConfiguration(v *AutoRollbackConfiguration) *CreateDeploymentInput { 7299 s.AutoRollbackConfiguration = v 7300 return s 7301} 7302 7303// SetDeploymentConfigName sets the DeploymentConfigName field's value. 7304func (s *CreateDeploymentInput) SetDeploymentConfigName(v string) *CreateDeploymentInput { 7305 s.DeploymentConfigName = &v 7306 return s 7307} 7308 7309// SetDeploymentGroupName sets the DeploymentGroupName field's value. 7310func (s *CreateDeploymentInput) SetDeploymentGroupName(v string) *CreateDeploymentInput { 7311 s.DeploymentGroupName = &v 7312 return s 7313} 7314 7315// SetDescription sets the Description field's value. 7316func (s *CreateDeploymentInput) SetDescription(v string) *CreateDeploymentInput { 7317 s.Description = &v 7318 return s 7319} 7320 7321// SetFileExistsBehavior sets the FileExistsBehavior field's value. 7322func (s *CreateDeploymentInput) SetFileExistsBehavior(v string) *CreateDeploymentInput { 7323 s.FileExistsBehavior = &v 7324 return s 7325} 7326 7327// SetIgnoreApplicationStopFailures sets the IgnoreApplicationStopFailures field's value. 7328func (s *CreateDeploymentInput) SetIgnoreApplicationStopFailures(v bool) *CreateDeploymentInput { 7329 s.IgnoreApplicationStopFailures = &v 7330 return s 7331} 7332 7333// SetRevision sets the Revision field's value. 7334func (s *CreateDeploymentInput) SetRevision(v *RevisionLocation) *CreateDeploymentInput { 7335 s.Revision = v 7336 return s 7337} 7338 7339// SetTargetInstances sets the TargetInstances field's value. 7340func (s *CreateDeploymentInput) SetTargetInstances(v *TargetInstances) *CreateDeploymentInput { 7341 s.TargetInstances = v 7342 return s 7343} 7344 7345// SetUpdateOutdatedInstancesOnly sets the UpdateOutdatedInstancesOnly field's value. 7346func (s *CreateDeploymentInput) SetUpdateOutdatedInstancesOnly(v bool) *CreateDeploymentInput { 7347 s.UpdateOutdatedInstancesOnly = &v 7348 return s 7349} 7350 7351// Represents the output of a CreateDeployment operation. 7352type CreateDeploymentOutput struct { 7353 _ struct{} `type:"structure"` 7354 7355 // The unique ID of a deployment. 7356 DeploymentId *string `locationName:"deploymentId" type:"string"` 7357} 7358 7359// String returns the string representation 7360func (s CreateDeploymentOutput) String() string { 7361 return awsutil.Prettify(s) 7362} 7363 7364// GoString returns the string representation 7365func (s CreateDeploymentOutput) GoString() string { 7366 return s.String() 7367} 7368 7369// SetDeploymentId sets the DeploymentId field's value. 7370func (s *CreateDeploymentOutput) SetDeploymentId(v string) *CreateDeploymentOutput { 7371 s.DeploymentId = &v 7372 return s 7373} 7374 7375// Represents the input of a DeleteApplication operation. 7376type DeleteApplicationInput struct { 7377 _ struct{} `type:"structure"` 7378 7379 // The name of an AWS CodeDeploy application associated with the IAM user or 7380 // AWS account. 7381 // 7382 // ApplicationName is a required field 7383 ApplicationName *string `locationName:"applicationName" min:"1" type:"string" required:"true"` 7384} 7385 7386// String returns the string representation 7387func (s DeleteApplicationInput) String() string { 7388 return awsutil.Prettify(s) 7389} 7390 7391// GoString returns the string representation 7392func (s DeleteApplicationInput) GoString() string { 7393 return s.String() 7394} 7395 7396// Validate inspects the fields of the type to determine if they are valid. 7397func (s *DeleteApplicationInput) Validate() error { 7398 invalidParams := request.ErrInvalidParams{Context: "DeleteApplicationInput"} 7399 if s.ApplicationName == nil { 7400 invalidParams.Add(request.NewErrParamRequired("ApplicationName")) 7401 } 7402 if s.ApplicationName != nil && len(*s.ApplicationName) < 1 { 7403 invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1)) 7404 } 7405 7406 if invalidParams.Len() > 0 { 7407 return invalidParams 7408 } 7409 return nil 7410} 7411 7412// SetApplicationName sets the ApplicationName field's value. 7413func (s *DeleteApplicationInput) SetApplicationName(v string) *DeleteApplicationInput { 7414 s.ApplicationName = &v 7415 return s 7416} 7417 7418type DeleteApplicationOutput struct { 7419 _ struct{} `type:"structure"` 7420} 7421 7422// String returns the string representation 7423func (s DeleteApplicationOutput) String() string { 7424 return awsutil.Prettify(s) 7425} 7426 7427// GoString returns the string representation 7428func (s DeleteApplicationOutput) GoString() string { 7429 return s.String() 7430} 7431 7432// Represents the input of a DeleteDeploymentConfig operation. 7433type DeleteDeploymentConfigInput struct { 7434 _ struct{} `type:"structure"` 7435 7436 // The name of a deployment configuration associated with the IAM user or AWS 7437 // account. 7438 // 7439 // DeploymentConfigName is a required field 7440 DeploymentConfigName *string `locationName:"deploymentConfigName" min:"1" type:"string" required:"true"` 7441} 7442 7443// String returns the string representation 7444func (s DeleteDeploymentConfigInput) String() string { 7445 return awsutil.Prettify(s) 7446} 7447 7448// GoString returns the string representation 7449func (s DeleteDeploymentConfigInput) GoString() string { 7450 return s.String() 7451} 7452 7453// Validate inspects the fields of the type to determine if they are valid. 7454func (s *DeleteDeploymentConfigInput) Validate() error { 7455 invalidParams := request.ErrInvalidParams{Context: "DeleteDeploymentConfigInput"} 7456 if s.DeploymentConfigName == nil { 7457 invalidParams.Add(request.NewErrParamRequired("DeploymentConfigName")) 7458 } 7459 if s.DeploymentConfigName != nil && len(*s.DeploymentConfigName) < 1 { 7460 invalidParams.Add(request.NewErrParamMinLen("DeploymentConfigName", 1)) 7461 } 7462 7463 if invalidParams.Len() > 0 { 7464 return invalidParams 7465 } 7466 return nil 7467} 7468 7469// SetDeploymentConfigName sets the DeploymentConfigName field's value. 7470func (s *DeleteDeploymentConfigInput) SetDeploymentConfigName(v string) *DeleteDeploymentConfigInput { 7471 s.DeploymentConfigName = &v 7472 return s 7473} 7474 7475type DeleteDeploymentConfigOutput struct { 7476 _ struct{} `type:"structure"` 7477} 7478 7479// String returns the string representation 7480func (s DeleteDeploymentConfigOutput) String() string { 7481 return awsutil.Prettify(s) 7482} 7483 7484// GoString returns the string representation 7485func (s DeleteDeploymentConfigOutput) GoString() string { 7486 return s.String() 7487} 7488 7489// Represents the input of a DeleteDeploymentGroup operation. 7490type DeleteDeploymentGroupInput struct { 7491 _ struct{} `type:"structure"` 7492 7493 // The name of an AWS CodeDeploy application associated with the IAM user or 7494 // AWS account. 7495 // 7496 // ApplicationName is a required field 7497 ApplicationName *string `locationName:"applicationName" min:"1" type:"string" required:"true"` 7498 7499 // The name of a deployment group for the specified application. 7500 // 7501 // DeploymentGroupName is a required field 7502 DeploymentGroupName *string `locationName:"deploymentGroupName" min:"1" type:"string" required:"true"` 7503} 7504 7505// String returns the string representation 7506func (s DeleteDeploymentGroupInput) String() string { 7507 return awsutil.Prettify(s) 7508} 7509 7510// GoString returns the string representation 7511func (s DeleteDeploymentGroupInput) GoString() string { 7512 return s.String() 7513} 7514 7515// Validate inspects the fields of the type to determine if they are valid. 7516func (s *DeleteDeploymentGroupInput) Validate() error { 7517 invalidParams := request.ErrInvalidParams{Context: "DeleteDeploymentGroupInput"} 7518 if s.ApplicationName == nil { 7519 invalidParams.Add(request.NewErrParamRequired("ApplicationName")) 7520 } 7521 if s.ApplicationName != nil && len(*s.ApplicationName) < 1 { 7522 invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1)) 7523 } 7524 if s.DeploymentGroupName == nil { 7525 invalidParams.Add(request.NewErrParamRequired("DeploymentGroupName")) 7526 } 7527 if s.DeploymentGroupName != nil && len(*s.DeploymentGroupName) < 1 { 7528 invalidParams.Add(request.NewErrParamMinLen("DeploymentGroupName", 1)) 7529 } 7530 7531 if invalidParams.Len() > 0 { 7532 return invalidParams 7533 } 7534 return nil 7535} 7536 7537// SetApplicationName sets the ApplicationName field's value. 7538func (s *DeleteDeploymentGroupInput) SetApplicationName(v string) *DeleteDeploymentGroupInput { 7539 s.ApplicationName = &v 7540 return s 7541} 7542 7543// SetDeploymentGroupName sets the DeploymentGroupName field's value. 7544func (s *DeleteDeploymentGroupInput) SetDeploymentGroupName(v string) *DeleteDeploymentGroupInput { 7545 s.DeploymentGroupName = &v 7546 return s 7547} 7548 7549// Represents the output of a DeleteDeploymentGroup operation. 7550type DeleteDeploymentGroupOutput struct { 7551 _ struct{} `type:"structure"` 7552 7553 // If the output contains no data, and the corresponding deployment group contained 7554 // at least one Auto Scaling group, AWS CodeDeploy successfully removed all 7555 // corresponding Auto Scaling lifecycle event hooks from the Amazon EC2 instances 7556 // in the Auto Scaling group. If the output contains data, AWS CodeDeploy could 7557 // not remove some Auto Scaling lifecycle event hooks from the Amazon EC2 instances 7558 // in the Auto Scaling group. 7559 HooksNotCleanedUp []*AutoScalingGroup `locationName:"hooksNotCleanedUp" type:"list"` 7560} 7561 7562// String returns the string representation 7563func (s DeleteDeploymentGroupOutput) String() string { 7564 return awsutil.Prettify(s) 7565} 7566 7567// GoString returns the string representation 7568func (s DeleteDeploymentGroupOutput) GoString() string { 7569 return s.String() 7570} 7571 7572// SetHooksNotCleanedUp sets the HooksNotCleanedUp field's value. 7573func (s *DeleteDeploymentGroupOutput) SetHooksNotCleanedUp(v []*AutoScalingGroup) *DeleteDeploymentGroupOutput { 7574 s.HooksNotCleanedUp = v 7575 return s 7576} 7577 7578// Represents the input of a DeleteGitHubAccount operation. 7579type DeleteGitHubAccountTokenInput struct { 7580 _ struct{} `type:"structure"` 7581 7582 // The name of the GitHub account connection to delete. 7583 TokenName *string `locationName:"tokenName" type:"string"` 7584} 7585 7586// String returns the string representation 7587func (s DeleteGitHubAccountTokenInput) String() string { 7588 return awsutil.Prettify(s) 7589} 7590 7591// GoString returns the string representation 7592func (s DeleteGitHubAccountTokenInput) GoString() string { 7593 return s.String() 7594} 7595 7596// SetTokenName sets the TokenName field's value. 7597func (s *DeleteGitHubAccountTokenInput) SetTokenName(v string) *DeleteGitHubAccountTokenInput { 7598 s.TokenName = &v 7599 return s 7600} 7601 7602// Represents the output of a DeleteGitHubAccountToken operation. 7603type DeleteGitHubAccountTokenOutput struct { 7604 _ struct{} `type:"structure"` 7605 7606 // The name of the GitHub account connection that was deleted. 7607 TokenName *string `locationName:"tokenName" type:"string"` 7608} 7609 7610// String returns the string representation 7611func (s DeleteGitHubAccountTokenOutput) String() string { 7612 return awsutil.Prettify(s) 7613} 7614 7615// GoString returns the string representation 7616func (s DeleteGitHubAccountTokenOutput) GoString() string { 7617 return s.String() 7618} 7619 7620// SetTokenName sets the TokenName field's value. 7621func (s *DeleteGitHubAccountTokenOutput) SetTokenName(v string) *DeleteGitHubAccountTokenOutput { 7622 s.TokenName = &v 7623 return s 7624} 7625 7626type DeleteResourcesByExternalIdInput struct { 7627 _ struct{} `type:"structure"` 7628 7629 // The unique ID of an external resource (for example, a CloudFormation stack 7630 // ID) that is linked to one or more CodeDeploy resources. 7631 ExternalId *string `locationName:"externalId" type:"string"` 7632} 7633 7634// String returns the string representation 7635func (s DeleteResourcesByExternalIdInput) String() string { 7636 return awsutil.Prettify(s) 7637} 7638 7639// GoString returns the string representation 7640func (s DeleteResourcesByExternalIdInput) GoString() string { 7641 return s.String() 7642} 7643 7644// SetExternalId sets the ExternalId field's value. 7645func (s *DeleteResourcesByExternalIdInput) SetExternalId(v string) *DeleteResourcesByExternalIdInput { 7646 s.ExternalId = &v 7647 return s 7648} 7649 7650type DeleteResourcesByExternalIdOutput struct { 7651 _ struct{} `type:"structure"` 7652} 7653 7654// String returns the string representation 7655func (s DeleteResourcesByExternalIdOutput) String() string { 7656 return awsutil.Prettify(s) 7657} 7658 7659// GoString returns the string representation 7660func (s DeleteResourcesByExternalIdOutput) GoString() string { 7661 return s.String() 7662} 7663 7664// The deployment is already complete. 7665type DeploymentAlreadyCompletedException struct { 7666 _ struct{} `type:"structure"` 7667 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 7668 7669 Message_ *string `locationName:"message" type:"string"` 7670} 7671 7672// String returns the string representation 7673func (s DeploymentAlreadyCompletedException) String() string { 7674 return awsutil.Prettify(s) 7675} 7676 7677// GoString returns the string representation 7678func (s DeploymentAlreadyCompletedException) GoString() string { 7679 return s.String() 7680} 7681 7682func newErrorDeploymentAlreadyCompletedException(v protocol.ResponseMetadata) error { 7683 return &DeploymentAlreadyCompletedException{ 7684 RespMetadata: v, 7685 } 7686} 7687 7688// Code returns the exception type name. 7689func (s *DeploymentAlreadyCompletedException) Code() string { 7690 return "DeploymentAlreadyCompletedException" 7691} 7692 7693// Message returns the exception's message. 7694func (s *DeploymentAlreadyCompletedException) Message() string { 7695 if s.Message_ != nil { 7696 return *s.Message_ 7697 } 7698 return "" 7699} 7700 7701// OrigErr always returns nil, satisfies awserr.Error interface. 7702func (s *DeploymentAlreadyCompletedException) OrigErr() error { 7703 return nil 7704} 7705 7706func (s *DeploymentAlreadyCompletedException) Error() string { 7707 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 7708} 7709 7710// Status code returns the HTTP status code for the request's response error. 7711func (s *DeploymentAlreadyCompletedException) StatusCode() int { 7712 return s.RespMetadata.StatusCode 7713} 7714 7715// RequestID returns the service's response RequestID for request. 7716func (s *DeploymentAlreadyCompletedException) RequestID() string { 7717 return s.RespMetadata.RequestID 7718} 7719 7720// A deployment configuration with the specified name with the IAM user or AWS 7721// account already exists. 7722type DeploymentConfigAlreadyExistsException struct { 7723 _ struct{} `type:"structure"` 7724 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 7725 7726 Message_ *string `locationName:"message" type:"string"` 7727} 7728 7729// String returns the string representation 7730func (s DeploymentConfigAlreadyExistsException) String() string { 7731 return awsutil.Prettify(s) 7732} 7733 7734// GoString returns the string representation 7735func (s DeploymentConfigAlreadyExistsException) GoString() string { 7736 return s.String() 7737} 7738 7739func newErrorDeploymentConfigAlreadyExistsException(v protocol.ResponseMetadata) error { 7740 return &DeploymentConfigAlreadyExistsException{ 7741 RespMetadata: v, 7742 } 7743} 7744 7745// Code returns the exception type name. 7746func (s *DeploymentConfigAlreadyExistsException) Code() string { 7747 return "DeploymentConfigAlreadyExistsException" 7748} 7749 7750// Message returns the exception's message. 7751func (s *DeploymentConfigAlreadyExistsException) Message() string { 7752 if s.Message_ != nil { 7753 return *s.Message_ 7754 } 7755 return "" 7756} 7757 7758// OrigErr always returns nil, satisfies awserr.Error interface. 7759func (s *DeploymentConfigAlreadyExistsException) OrigErr() error { 7760 return nil 7761} 7762 7763func (s *DeploymentConfigAlreadyExistsException) Error() string { 7764 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 7765} 7766 7767// Status code returns the HTTP status code for the request's response error. 7768func (s *DeploymentConfigAlreadyExistsException) StatusCode() int { 7769 return s.RespMetadata.StatusCode 7770} 7771 7772// RequestID returns the service's response RequestID for request. 7773func (s *DeploymentConfigAlreadyExistsException) RequestID() string { 7774 return s.RespMetadata.RequestID 7775} 7776 7777// The deployment configuration does not exist with the IAM user or AWS account. 7778type DeploymentConfigDoesNotExistException struct { 7779 _ struct{} `type:"structure"` 7780 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 7781 7782 Message_ *string `locationName:"message" type:"string"` 7783} 7784 7785// String returns the string representation 7786func (s DeploymentConfigDoesNotExistException) String() string { 7787 return awsutil.Prettify(s) 7788} 7789 7790// GoString returns the string representation 7791func (s DeploymentConfigDoesNotExistException) GoString() string { 7792 return s.String() 7793} 7794 7795func newErrorDeploymentConfigDoesNotExistException(v protocol.ResponseMetadata) error { 7796 return &DeploymentConfigDoesNotExistException{ 7797 RespMetadata: v, 7798 } 7799} 7800 7801// Code returns the exception type name. 7802func (s *DeploymentConfigDoesNotExistException) Code() string { 7803 return "DeploymentConfigDoesNotExistException" 7804} 7805 7806// Message returns the exception's message. 7807func (s *DeploymentConfigDoesNotExistException) Message() string { 7808 if s.Message_ != nil { 7809 return *s.Message_ 7810 } 7811 return "" 7812} 7813 7814// OrigErr always returns nil, satisfies awserr.Error interface. 7815func (s *DeploymentConfigDoesNotExistException) OrigErr() error { 7816 return nil 7817} 7818 7819func (s *DeploymentConfigDoesNotExistException) Error() string { 7820 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 7821} 7822 7823// Status code returns the HTTP status code for the request's response error. 7824func (s *DeploymentConfigDoesNotExistException) StatusCode() int { 7825 return s.RespMetadata.StatusCode 7826} 7827 7828// RequestID returns the service's response RequestID for request. 7829func (s *DeploymentConfigDoesNotExistException) RequestID() string { 7830 return s.RespMetadata.RequestID 7831} 7832 7833// The deployment configuration is still in use. 7834type DeploymentConfigInUseException struct { 7835 _ struct{} `type:"structure"` 7836 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 7837 7838 Message_ *string `locationName:"message" type:"string"` 7839} 7840 7841// String returns the string representation 7842func (s DeploymentConfigInUseException) String() string { 7843 return awsutil.Prettify(s) 7844} 7845 7846// GoString returns the string representation 7847func (s DeploymentConfigInUseException) GoString() string { 7848 return s.String() 7849} 7850 7851func newErrorDeploymentConfigInUseException(v protocol.ResponseMetadata) error { 7852 return &DeploymentConfigInUseException{ 7853 RespMetadata: v, 7854 } 7855} 7856 7857// Code returns the exception type name. 7858func (s *DeploymentConfigInUseException) Code() string { 7859 return "DeploymentConfigInUseException" 7860} 7861 7862// Message returns the exception's message. 7863func (s *DeploymentConfigInUseException) Message() string { 7864 if s.Message_ != nil { 7865 return *s.Message_ 7866 } 7867 return "" 7868} 7869 7870// OrigErr always returns nil, satisfies awserr.Error interface. 7871func (s *DeploymentConfigInUseException) OrigErr() error { 7872 return nil 7873} 7874 7875func (s *DeploymentConfigInUseException) Error() string { 7876 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 7877} 7878 7879// Status code returns the HTTP status code for the request's response error. 7880func (s *DeploymentConfigInUseException) StatusCode() int { 7881 return s.RespMetadata.StatusCode 7882} 7883 7884// RequestID returns the service's response RequestID for request. 7885func (s *DeploymentConfigInUseException) RequestID() string { 7886 return s.RespMetadata.RequestID 7887} 7888 7889// Information about a deployment configuration. 7890type DeploymentConfigInfo struct { 7891 _ struct{} `type:"structure"` 7892 7893 // The destination platform type for the deployment (Lambda, Server, or ECS). 7894 ComputePlatform *string `locationName:"computePlatform" type:"string" enum:"ComputePlatform"` 7895 7896 // The time at which the deployment configuration was created. 7897 CreateTime *time.Time `locationName:"createTime" type:"timestamp"` 7898 7899 // The deployment configuration ID. 7900 DeploymentConfigId *string `locationName:"deploymentConfigId" type:"string"` 7901 7902 // The deployment configuration name. 7903 DeploymentConfigName *string `locationName:"deploymentConfigName" min:"1" type:"string"` 7904 7905 // Information about the number or percentage of minimum healthy instance. 7906 MinimumHealthyHosts *MinimumHealthyHosts `locationName:"minimumHealthyHosts" type:"structure"` 7907 7908 // The configuration that specifies how the deployment traffic is routed. Used 7909 // for deployments with a Lambda or ECS compute platform only. 7910 TrafficRoutingConfig *TrafficRoutingConfig `locationName:"trafficRoutingConfig" type:"structure"` 7911} 7912 7913// String returns the string representation 7914func (s DeploymentConfigInfo) String() string { 7915 return awsutil.Prettify(s) 7916} 7917 7918// GoString returns the string representation 7919func (s DeploymentConfigInfo) GoString() string { 7920 return s.String() 7921} 7922 7923// SetComputePlatform sets the ComputePlatform field's value. 7924func (s *DeploymentConfigInfo) SetComputePlatform(v string) *DeploymentConfigInfo { 7925 s.ComputePlatform = &v 7926 return s 7927} 7928 7929// SetCreateTime sets the CreateTime field's value. 7930func (s *DeploymentConfigInfo) SetCreateTime(v time.Time) *DeploymentConfigInfo { 7931 s.CreateTime = &v 7932 return s 7933} 7934 7935// SetDeploymentConfigId sets the DeploymentConfigId field's value. 7936func (s *DeploymentConfigInfo) SetDeploymentConfigId(v string) *DeploymentConfigInfo { 7937 s.DeploymentConfigId = &v 7938 return s 7939} 7940 7941// SetDeploymentConfigName sets the DeploymentConfigName field's value. 7942func (s *DeploymentConfigInfo) SetDeploymentConfigName(v string) *DeploymentConfigInfo { 7943 s.DeploymentConfigName = &v 7944 return s 7945} 7946 7947// SetMinimumHealthyHosts sets the MinimumHealthyHosts field's value. 7948func (s *DeploymentConfigInfo) SetMinimumHealthyHosts(v *MinimumHealthyHosts) *DeploymentConfigInfo { 7949 s.MinimumHealthyHosts = v 7950 return s 7951} 7952 7953// SetTrafficRoutingConfig sets the TrafficRoutingConfig field's value. 7954func (s *DeploymentConfigInfo) SetTrafficRoutingConfig(v *TrafficRoutingConfig) *DeploymentConfigInfo { 7955 s.TrafficRoutingConfig = v 7956 return s 7957} 7958 7959// The deployment configurations limit was exceeded. 7960type DeploymentConfigLimitExceededException struct { 7961 _ struct{} `type:"structure"` 7962 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 7963 7964 Message_ *string `locationName:"message" type:"string"` 7965} 7966 7967// String returns the string representation 7968func (s DeploymentConfigLimitExceededException) String() string { 7969 return awsutil.Prettify(s) 7970} 7971 7972// GoString returns the string representation 7973func (s DeploymentConfigLimitExceededException) GoString() string { 7974 return s.String() 7975} 7976 7977func newErrorDeploymentConfigLimitExceededException(v protocol.ResponseMetadata) error { 7978 return &DeploymentConfigLimitExceededException{ 7979 RespMetadata: v, 7980 } 7981} 7982 7983// Code returns the exception type name. 7984func (s *DeploymentConfigLimitExceededException) Code() string { 7985 return "DeploymentConfigLimitExceededException" 7986} 7987 7988// Message returns the exception's message. 7989func (s *DeploymentConfigLimitExceededException) Message() string { 7990 if s.Message_ != nil { 7991 return *s.Message_ 7992 } 7993 return "" 7994} 7995 7996// OrigErr always returns nil, satisfies awserr.Error interface. 7997func (s *DeploymentConfigLimitExceededException) OrigErr() error { 7998 return nil 7999} 8000 8001func (s *DeploymentConfigLimitExceededException) Error() string { 8002 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 8003} 8004 8005// Status code returns the HTTP status code for the request's response error. 8006func (s *DeploymentConfigLimitExceededException) StatusCode() int { 8007 return s.RespMetadata.StatusCode 8008} 8009 8010// RequestID returns the service's response RequestID for request. 8011func (s *DeploymentConfigLimitExceededException) RequestID() string { 8012 return s.RespMetadata.RequestID 8013} 8014 8015// The deployment configuration name was not specified. 8016type DeploymentConfigNameRequiredException struct { 8017 _ struct{} `type:"structure"` 8018 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 8019 8020 Message_ *string `locationName:"message" type:"string"` 8021} 8022 8023// String returns the string representation 8024func (s DeploymentConfigNameRequiredException) String() string { 8025 return awsutil.Prettify(s) 8026} 8027 8028// GoString returns the string representation 8029func (s DeploymentConfigNameRequiredException) GoString() string { 8030 return s.String() 8031} 8032 8033func newErrorDeploymentConfigNameRequiredException(v protocol.ResponseMetadata) error { 8034 return &DeploymentConfigNameRequiredException{ 8035 RespMetadata: v, 8036 } 8037} 8038 8039// Code returns the exception type name. 8040func (s *DeploymentConfigNameRequiredException) Code() string { 8041 return "DeploymentConfigNameRequiredException" 8042} 8043 8044// Message returns the exception's message. 8045func (s *DeploymentConfigNameRequiredException) Message() string { 8046 if s.Message_ != nil { 8047 return *s.Message_ 8048 } 8049 return "" 8050} 8051 8052// OrigErr always returns nil, satisfies awserr.Error interface. 8053func (s *DeploymentConfigNameRequiredException) OrigErr() error { 8054 return nil 8055} 8056 8057func (s *DeploymentConfigNameRequiredException) Error() string { 8058 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 8059} 8060 8061// Status code returns the HTTP status code for the request's response error. 8062func (s *DeploymentConfigNameRequiredException) StatusCode() int { 8063 return s.RespMetadata.StatusCode 8064} 8065 8066// RequestID returns the service's response RequestID for request. 8067func (s *DeploymentConfigNameRequiredException) RequestID() string { 8068 return s.RespMetadata.RequestID 8069} 8070 8071// The deployment with the IAM user or AWS account does not exist. 8072type DeploymentDoesNotExistException struct { 8073 _ struct{} `type:"structure"` 8074 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 8075 8076 Message_ *string `locationName:"message" type:"string"` 8077} 8078 8079// String returns the string representation 8080func (s DeploymentDoesNotExistException) String() string { 8081 return awsutil.Prettify(s) 8082} 8083 8084// GoString returns the string representation 8085func (s DeploymentDoesNotExistException) GoString() string { 8086 return s.String() 8087} 8088 8089func newErrorDeploymentDoesNotExistException(v protocol.ResponseMetadata) error { 8090 return &DeploymentDoesNotExistException{ 8091 RespMetadata: v, 8092 } 8093} 8094 8095// Code returns the exception type name. 8096func (s *DeploymentDoesNotExistException) Code() string { 8097 return "DeploymentDoesNotExistException" 8098} 8099 8100// Message returns the exception's message. 8101func (s *DeploymentDoesNotExistException) Message() string { 8102 if s.Message_ != nil { 8103 return *s.Message_ 8104 } 8105 return "" 8106} 8107 8108// OrigErr always returns nil, satisfies awserr.Error interface. 8109func (s *DeploymentDoesNotExistException) OrigErr() error { 8110 return nil 8111} 8112 8113func (s *DeploymentDoesNotExistException) Error() string { 8114 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 8115} 8116 8117// Status code returns the HTTP status code for the request's response error. 8118func (s *DeploymentDoesNotExistException) StatusCode() int { 8119 return s.RespMetadata.StatusCode 8120} 8121 8122// RequestID returns the service's response RequestID for request. 8123func (s *DeploymentDoesNotExistException) RequestID() string { 8124 return s.RespMetadata.RequestID 8125} 8126 8127// A deployment group with the specified name with the IAM user or AWS account 8128// already exists. 8129type DeploymentGroupAlreadyExistsException struct { 8130 _ struct{} `type:"structure"` 8131 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 8132 8133 Message_ *string `locationName:"message" type:"string"` 8134} 8135 8136// String returns the string representation 8137func (s DeploymentGroupAlreadyExistsException) String() string { 8138 return awsutil.Prettify(s) 8139} 8140 8141// GoString returns the string representation 8142func (s DeploymentGroupAlreadyExistsException) GoString() string { 8143 return s.String() 8144} 8145 8146func newErrorDeploymentGroupAlreadyExistsException(v protocol.ResponseMetadata) error { 8147 return &DeploymentGroupAlreadyExistsException{ 8148 RespMetadata: v, 8149 } 8150} 8151 8152// Code returns the exception type name. 8153func (s *DeploymentGroupAlreadyExistsException) Code() string { 8154 return "DeploymentGroupAlreadyExistsException" 8155} 8156 8157// Message returns the exception's message. 8158func (s *DeploymentGroupAlreadyExistsException) Message() string { 8159 if s.Message_ != nil { 8160 return *s.Message_ 8161 } 8162 return "" 8163} 8164 8165// OrigErr always returns nil, satisfies awserr.Error interface. 8166func (s *DeploymentGroupAlreadyExistsException) OrigErr() error { 8167 return nil 8168} 8169 8170func (s *DeploymentGroupAlreadyExistsException) Error() string { 8171 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 8172} 8173 8174// Status code returns the HTTP status code for the request's response error. 8175func (s *DeploymentGroupAlreadyExistsException) StatusCode() int { 8176 return s.RespMetadata.StatusCode 8177} 8178 8179// RequestID returns the service's response RequestID for request. 8180func (s *DeploymentGroupAlreadyExistsException) RequestID() string { 8181 return s.RespMetadata.RequestID 8182} 8183 8184// The named deployment group with the IAM user or AWS account does not exist. 8185type DeploymentGroupDoesNotExistException struct { 8186 _ struct{} `type:"structure"` 8187 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 8188 8189 Message_ *string `locationName:"message" type:"string"` 8190} 8191 8192// String returns the string representation 8193func (s DeploymentGroupDoesNotExistException) String() string { 8194 return awsutil.Prettify(s) 8195} 8196 8197// GoString returns the string representation 8198func (s DeploymentGroupDoesNotExistException) GoString() string { 8199 return s.String() 8200} 8201 8202func newErrorDeploymentGroupDoesNotExistException(v protocol.ResponseMetadata) error { 8203 return &DeploymentGroupDoesNotExistException{ 8204 RespMetadata: v, 8205 } 8206} 8207 8208// Code returns the exception type name. 8209func (s *DeploymentGroupDoesNotExistException) Code() string { 8210 return "DeploymentGroupDoesNotExistException" 8211} 8212 8213// Message returns the exception's message. 8214func (s *DeploymentGroupDoesNotExistException) Message() string { 8215 if s.Message_ != nil { 8216 return *s.Message_ 8217 } 8218 return "" 8219} 8220 8221// OrigErr always returns nil, satisfies awserr.Error interface. 8222func (s *DeploymentGroupDoesNotExistException) OrigErr() error { 8223 return nil 8224} 8225 8226func (s *DeploymentGroupDoesNotExistException) Error() string { 8227 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 8228} 8229 8230// Status code returns the HTTP status code for the request's response error. 8231func (s *DeploymentGroupDoesNotExistException) StatusCode() int { 8232 return s.RespMetadata.StatusCode 8233} 8234 8235// RequestID returns the service's response RequestID for request. 8236func (s *DeploymentGroupDoesNotExistException) RequestID() string { 8237 return s.RespMetadata.RequestID 8238} 8239 8240// Information about a deployment group. 8241type DeploymentGroupInfo struct { 8242 _ struct{} `type:"structure"` 8243 8244 // A list of alarms associated with the deployment group. 8245 AlarmConfiguration *AlarmConfiguration `locationName:"alarmConfiguration" type:"structure"` 8246 8247 // The application name. 8248 ApplicationName *string `locationName:"applicationName" min:"1" type:"string"` 8249 8250 // Information about the automatic rollback configuration associated with the 8251 // deployment group. 8252 AutoRollbackConfiguration *AutoRollbackConfiguration `locationName:"autoRollbackConfiguration" type:"structure"` 8253 8254 // A list of associated Auto Scaling groups. 8255 AutoScalingGroups []*AutoScalingGroup `locationName:"autoScalingGroups" type:"list"` 8256 8257 // Information about blue/green deployment options for a deployment group. 8258 BlueGreenDeploymentConfiguration *BlueGreenDeploymentConfiguration `locationName:"blueGreenDeploymentConfiguration" type:"structure"` 8259 8260 // The destination platform type for the deployment (Lambda, Server, or ECS). 8261 ComputePlatform *string `locationName:"computePlatform" type:"string" enum:"ComputePlatform"` 8262 8263 // The deployment configuration name. 8264 DeploymentConfigName *string `locationName:"deploymentConfigName" min:"1" type:"string"` 8265 8266 // The deployment group ID. 8267 DeploymentGroupId *string `locationName:"deploymentGroupId" type:"string"` 8268 8269 // The deployment group name. 8270 DeploymentGroupName *string `locationName:"deploymentGroupName" min:"1" type:"string"` 8271 8272 // Information about the type of deployment, either in-place or blue/green, 8273 // you want to run and whether to route deployment traffic behind a load balancer. 8274 DeploymentStyle *DeploymentStyle `locationName:"deploymentStyle" type:"structure"` 8275 8276 // The Amazon EC2 tags on which to filter. The deployment group includes EC2 8277 // instances with any of the specified tags. 8278 Ec2TagFilters []*EC2TagFilter `locationName:"ec2TagFilters" type:"list"` 8279 8280 // Information about groups of tags applied to an EC2 instance. The deployment 8281 // group includes only EC2 instances identified by all of the tag groups. Cannot 8282 // be used in the same call as ec2TagFilters. 8283 Ec2TagSet *EC2TagSet `locationName:"ec2TagSet" type:"structure"` 8284 8285 // The target Amazon ECS services in the deployment group. This applies only 8286 // to deployment groups that use the Amazon ECS compute platform. A target Amazon 8287 // ECS service is specified as an Amazon ECS cluster and service name pair using 8288 // the format <clustername>:<servicename>. 8289 EcsServices []*ECSService `locationName:"ecsServices" type:"list"` 8290 8291 // Information about the most recent attempted deployment to the deployment 8292 // group. 8293 LastAttemptedDeployment *LastDeploymentInfo `locationName:"lastAttemptedDeployment" type:"structure"` 8294 8295 // Information about the most recent successful deployment to the deployment 8296 // group. 8297 LastSuccessfulDeployment *LastDeploymentInfo `locationName:"lastSuccessfulDeployment" type:"structure"` 8298 8299 // Information about the load balancer to use in a deployment. 8300 LoadBalancerInfo *LoadBalancerInfo `locationName:"loadBalancerInfo" type:"structure"` 8301 8302 // The on-premises instance tags on which to filter. The deployment group includes 8303 // on-premises instances with any of the specified tags. 8304 OnPremisesInstanceTagFilters []*TagFilter `locationName:"onPremisesInstanceTagFilters" type:"list"` 8305 8306 // Information about groups of tags applied to an on-premises instance. The 8307 // deployment group includes only on-premises instances identified by all the 8308 // tag groups. Cannot be used in the same call as onPremisesInstanceTagFilters. 8309 OnPremisesTagSet *OnPremisesTagSet `locationName:"onPremisesTagSet" type:"structure"` 8310 8311 // Indicates what happens when new EC2 instances are launched mid-deployment 8312 // and do not receive the deployed application revision. 8313 // 8314 // If this option is set to UPDATE or is unspecified, CodeDeploy initiates one 8315 // or more 'auto-update outdated instances' deployments to apply the deployed 8316 // application revision to the new EC2 instances. 8317 // 8318 // If this option is set to IGNORE, CodeDeploy does not initiate a deployment 8319 // to update the new EC2 instances. This may result in instances having different 8320 // revisions. 8321 OutdatedInstancesStrategy *string `locationName:"outdatedInstancesStrategy" type:"string" enum:"OutdatedInstancesStrategy"` 8322 8323 // A service role Amazon Resource Name (ARN) that grants CodeDeploy permission 8324 // to make calls to AWS services on your behalf. For more information, see Create 8325 // a Service Role for AWS CodeDeploy (https://docs.aws.amazon.com/codedeploy/latest/userguide/getting-started-create-service-role.html) 8326 // in the AWS CodeDeploy User Guide. 8327 ServiceRoleArn *string `locationName:"serviceRoleArn" type:"string"` 8328 8329 // Information about the deployment group's target revision, including type 8330 // and location. 8331 TargetRevision *RevisionLocation `locationName:"targetRevision" type:"structure"` 8332 8333 // Information about triggers associated with the deployment group. 8334 TriggerConfigurations []*TriggerConfig `locationName:"triggerConfigurations" type:"list"` 8335} 8336 8337// String returns the string representation 8338func (s DeploymentGroupInfo) String() string { 8339 return awsutil.Prettify(s) 8340} 8341 8342// GoString returns the string representation 8343func (s DeploymentGroupInfo) GoString() string { 8344 return s.String() 8345} 8346 8347// SetAlarmConfiguration sets the AlarmConfiguration field's value. 8348func (s *DeploymentGroupInfo) SetAlarmConfiguration(v *AlarmConfiguration) *DeploymentGroupInfo { 8349 s.AlarmConfiguration = v 8350 return s 8351} 8352 8353// SetApplicationName sets the ApplicationName field's value. 8354func (s *DeploymentGroupInfo) SetApplicationName(v string) *DeploymentGroupInfo { 8355 s.ApplicationName = &v 8356 return s 8357} 8358 8359// SetAutoRollbackConfiguration sets the AutoRollbackConfiguration field's value. 8360func (s *DeploymentGroupInfo) SetAutoRollbackConfiguration(v *AutoRollbackConfiguration) *DeploymentGroupInfo { 8361 s.AutoRollbackConfiguration = v 8362 return s 8363} 8364 8365// SetAutoScalingGroups sets the AutoScalingGroups field's value. 8366func (s *DeploymentGroupInfo) SetAutoScalingGroups(v []*AutoScalingGroup) *DeploymentGroupInfo { 8367 s.AutoScalingGroups = v 8368 return s 8369} 8370 8371// SetBlueGreenDeploymentConfiguration sets the BlueGreenDeploymentConfiguration field's value. 8372func (s *DeploymentGroupInfo) SetBlueGreenDeploymentConfiguration(v *BlueGreenDeploymentConfiguration) *DeploymentGroupInfo { 8373 s.BlueGreenDeploymentConfiguration = v 8374 return s 8375} 8376 8377// SetComputePlatform sets the ComputePlatform field's value. 8378func (s *DeploymentGroupInfo) SetComputePlatform(v string) *DeploymentGroupInfo { 8379 s.ComputePlatform = &v 8380 return s 8381} 8382 8383// SetDeploymentConfigName sets the DeploymentConfigName field's value. 8384func (s *DeploymentGroupInfo) SetDeploymentConfigName(v string) *DeploymentGroupInfo { 8385 s.DeploymentConfigName = &v 8386 return s 8387} 8388 8389// SetDeploymentGroupId sets the DeploymentGroupId field's value. 8390func (s *DeploymentGroupInfo) SetDeploymentGroupId(v string) *DeploymentGroupInfo { 8391 s.DeploymentGroupId = &v 8392 return s 8393} 8394 8395// SetDeploymentGroupName sets the DeploymentGroupName field's value. 8396func (s *DeploymentGroupInfo) SetDeploymentGroupName(v string) *DeploymentGroupInfo { 8397 s.DeploymentGroupName = &v 8398 return s 8399} 8400 8401// SetDeploymentStyle sets the DeploymentStyle field's value. 8402func (s *DeploymentGroupInfo) SetDeploymentStyle(v *DeploymentStyle) *DeploymentGroupInfo { 8403 s.DeploymentStyle = v 8404 return s 8405} 8406 8407// SetEc2TagFilters sets the Ec2TagFilters field's value. 8408func (s *DeploymentGroupInfo) SetEc2TagFilters(v []*EC2TagFilter) *DeploymentGroupInfo { 8409 s.Ec2TagFilters = v 8410 return s 8411} 8412 8413// SetEc2TagSet sets the Ec2TagSet field's value. 8414func (s *DeploymentGroupInfo) SetEc2TagSet(v *EC2TagSet) *DeploymentGroupInfo { 8415 s.Ec2TagSet = v 8416 return s 8417} 8418 8419// SetEcsServices sets the EcsServices field's value. 8420func (s *DeploymentGroupInfo) SetEcsServices(v []*ECSService) *DeploymentGroupInfo { 8421 s.EcsServices = v 8422 return s 8423} 8424 8425// SetLastAttemptedDeployment sets the LastAttemptedDeployment field's value. 8426func (s *DeploymentGroupInfo) SetLastAttemptedDeployment(v *LastDeploymentInfo) *DeploymentGroupInfo { 8427 s.LastAttemptedDeployment = v 8428 return s 8429} 8430 8431// SetLastSuccessfulDeployment sets the LastSuccessfulDeployment field's value. 8432func (s *DeploymentGroupInfo) SetLastSuccessfulDeployment(v *LastDeploymentInfo) *DeploymentGroupInfo { 8433 s.LastSuccessfulDeployment = v 8434 return s 8435} 8436 8437// SetLoadBalancerInfo sets the LoadBalancerInfo field's value. 8438func (s *DeploymentGroupInfo) SetLoadBalancerInfo(v *LoadBalancerInfo) *DeploymentGroupInfo { 8439 s.LoadBalancerInfo = v 8440 return s 8441} 8442 8443// SetOnPremisesInstanceTagFilters sets the OnPremisesInstanceTagFilters field's value. 8444func (s *DeploymentGroupInfo) SetOnPremisesInstanceTagFilters(v []*TagFilter) *DeploymentGroupInfo { 8445 s.OnPremisesInstanceTagFilters = v 8446 return s 8447} 8448 8449// SetOnPremisesTagSet sets the OnPremisesTagSet field's value. 8450func (s *DeploymentGroupInfo) SetOnPremisesTagSet(v *OnPremisesTagSet) *DeploymentGroupInfo { 8451 s.OnPremisesTagSet = v 8452 return s 8453} 8454 8455// SetOutdatedInstancesStrategy sets the OutdatedInstancesStrategy field's value. 8456func (s *DeploymentGroupInfo) SetOutdatedInstancesStrategy(v string) *DeploymentGroupInfo { 8457 s.OutdatedInstancesStrategy = &v 8458 return s 8459} 8460 8461// SetServiceRoleArn sets the ServiceRoleArn field's value. 8462func (s *DeploymentGroupInfo) SetServiceRoleArn(v string) *DeploymentGroupInfo { 8463 s.ServiceRoleArn = &v 8464 return s 8465} 8466 8467// SetTargetRevision sets the TargetRevision field's value. 8468func (s *DeploymentGroupInfo) SetTargetRevision(v *RevisionLocation) *DeploymentGroupInfo { 8469 s.TargetRevision = v 8470 return s 8471} 8472 8473// SetTriggerConfigurations sets the TriggerConfigurations field's value. 8474func (s *DeploymentGroupInfo) SetTriggerConfigurations(v []*TriggerConfig) *DeploymentGroupInfo { 8475 s.TriggerConfigurations = v 8476 return s 8477} 8478 8479// The deployment groups limit was exceeded. 8480type DeploymentGroupLimitExceededException struct { 8481 _ struct{} `type:"structure"` 8482 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 8483 8484 Message_ *string `locationName:"message" type:"string"` 8485} 8486 8487// String returns the string representation 8488func (s DeploymentGroupLimitExceededException) String() string { 8489 return awsutil.Prettify(s) 8490} 8491 8492// GoString returns the string representation 8493func (s DeploymentGroupLimitExceededException) GoString() string { 8494 return s.String() 8495} 8496 8497func newErrorDeploymentGroupLimitExceededException(v protocol.ResponseMetadata) error { 8498 return &DeploymentGroupLimitExceededException{ 8499 RespMetadata: v, 8500 } 8501} 8502 8503// Code returns the exception type name. 8504func (s *DeploymentGroupLimitExceededException) Code() string { 8505 return "DeploymentGroupLimitExceededException" 8506} 8507 8508// Message returns the exception's message. 8509func (s *DeploymentGroupLimitExceededException) Message() string { 8510 if s.Message_ != nil { 8511 return *s.Message_ 8512 } 8513 return "" 8514} 8515 8516// OrigErr always returns nil, satisfies awserr.Error interface. 8517func (s *DeploymentGroupLimitExceededException) OrigErr() error { 8518 return nil 8519} 8520 8521func (s *DeploymentGroupLimitExceededException) Error() string { 8522 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 8523} 8524 8525// Status code returns the HTTP status code for the request's response error. 8526func (s *DeploymentGroupLimitExceededException) StatusCode() int { 8527 return s.RespMetadata.StatusCode 8528} 8529 8530// RequestID returns the service's response RequestID for request. 8531func (s *DeploymentGroupLimitExceededException) RequestID() string { 8532 return s.RespMetadata.RequestID 8533} 8534 8535// The deployment group name was not specified. 8536type DeploymentGroupNameRequiredException struct { 8537 _ struct{} `type:"structure"` 8538 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 8539 8540 Message_ *string `locationName:"message" type:"string"` 8541} 8542 8543// String returns the string representation 8544func (s DeploymentGroupNameRequiredException) String() string { 8545 return awsutil.Prettify(s) 8546} 8547 8548// GoString returns the string representation 8549func (s DeploymentGroupNameRequiredException) GoString() string { 8550 return s.String() 8551} 8552 8553func newErrorDeploymentGroupNameRequiredException(v protocol.ResponseMetadata) error { 8554 return &DeploymentGroupNameRequiredException{ 8555 RespMetadata: v, 8556 } 8557} 8558 8559// Code returns the exception type name. 8560func (s *DeploymentGroupNameRequiredException) Code() string { 8561 return "DeploymentGroupNameRequiredException" 8562} 8563 8564// Message returns the exception's message. 8565func (s *DeploymentGroupNameRequiredException) Message() string { 8566 if s.Message_ != nil { 8567 return *s.Message_ 8568 } 8569 return "" 8570} 8571 8572// OrigErr always returns nil, satisfies awserr.Error interface. 8573func (s *DeploymentGroupNameRequiredException) OrigErr() error { 8574 return nil 8575} 8576 8577func (s *DeploymentGroupNameRequiredException) Error() string { 8578 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 8579} 8580 8581// Status code returns the HTTP status code for the request's response error. 8582func (s *DeploymentGroupNameRequiredException) StatusCode() int { 8583 return s.RespMetadata.StatusCode 8584} 8585 8586// RequestID returns the service's response RequestID for request. 8587func (s *DeploymentGroupNameRequiredException) RequestID() string { 8588 return s.RespMetadata.RequestID 8589} 8590 8591// At least one deployment ID must be specified. 8592type DeploymentIdRequiredException struct { 8593 _ struct{} `type:"structure"` 8594 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 8595 8596 Message_ *string `locationName:"message" type:"string"` 8597} 8598 8599// String returns the string representation 8600func (s DeploymentIdRequiredException) String() string { 8601 return awsutil.Prettify(s) 8602} 8603 8604// GoString returns the string representation 8605func (s DeploymentIdRequiredException) GoString() string { 8606 return s.String() 8607} 8608 8609func newErrorDeploymentIdRequiredException(v protocol.ResponseMetadata) error { 8610 return &DeploymentIdRequiredException{ 8611 RespMetadata: v, 8612 } 8613} 8614 8615// Code returns the exception type name. 8616func (s *DeploymentIdRequiredException) Code() string { 8617 return "DeploymentIdRequiredException" 8618} 8619 8620// Message returns the exception's message. 8621func (s *DeploymentIdRequiredException) Message() string { 8622 if s.Message_ != nil { 8623 return *s.Message_ 8624 } 8625 return "" 8626} 8627 8628// OrigErr always returns nil, satisfies awserr.Error interface. 8629func (s *DeploymentIdRequiredException) OrigErr() error { 8630 return nil 8631} 8632 8633func (s *DeploymentIdRequiredException) Error() string { 8634 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 8635} 8636 8637// Status code returns the HTTP status code for the request's response error. 8638func (s *DeploymentIdRequiredException) StatusCode() int { 8639 return s.RespMetadata.StatusCode 8640} 8641 8642// RequestID returns the service's response RequestID for request. 8643func (s *DeploymentIdRequiredException) RequestID() string { 8644 return s.RespMetadata.RequestID 8645} 8646 8647// Information about a deployment. 8648type DeploymentInfo struct { 8649 _ struct{} `type:"structure"` 8650 8651 // Provides information about the results of a deployment, such as whether instances 8652 // in the original environment in a blue/green deployment were not terminated. 8653 AdditionalDeploymentStatusInfo *string `locationName:"additionalDeploymentStatusInfo" deprecated:"true" type:"string"` 8654 8655 // The application name. 8656 ApplicationName *string `locationName:"applicationName" min:"1" type:"string"` 8657 8658 // Information about the automatic rollback configuration associated with the 8659 // deployment. 8660 AutoRollbackConfiguration *AutoRollbackConfiguration `locationName:"autoRollbackConfiguration" type:"structure"` 8661 8662 // Information about blue/green deployment options for this deployment. 8663 BlueGreenDeploymentConfiguration *BlueGreenDeploymentConfiguration `locationName:"blueGreenDeploymentConfiguration" type:"structure"` 8664 8665 // A timestamp that indicates when the deployment was complete. 8666 CompleteTime *time.Time `locationName:"completeTime" type:"timestamp"` 8667 8668 // The destination platform type for the deployment (Lambda, Server, or ECS). 8669 ComputePlatform *string `locationName:"computePlatform" type:"string" enum:"ComputePlatform"` 8670 8671 // A timestamp that indicates when the deployment was created. 8672 CreateTime *time.Time `locationName:"createTime" type:"timestamp"` 8673 8674 // The means by which the deployment was created: 8675 // 8676 // * user: A user created the deployment. 8677 // 8678 // * autoscaling: Amazon EC2 Auto Scaling created the deployment. 8679 // 8680 // * codeDeployRollback: A rollback process created the deployment. 8681 // 8682 // * CodeDeployAutoUpdate: An auto-update process created the deployment 8683 // when it detected outdated EC2 instances. 8684 Creator *string `locationName:"creator" type:"string" enum:"DeploymentCreator"` 8685 8686 // The deployment configuration name. 8687 DeploymentConfigName *string `locationName:"deploymentConfigName" min:"1" type:"string"` 8688 8689 // The deployment group name. 8690 DeploymentGroupName *string `locationName:"deploymentGroupName" min:"1" type:"string"` 8691 8692 // The unique ID of a deployment. 8693 DeploymentId *string `locationName:"deploymentId" type:"string"` 8694 8695 // A summary of the deployment status of the instances in the deployment. 8696 DeploymentOverview *DeploymentOverview `locationName:"deploymentOverview" type:"structure"` 8697 8698 // Messages that contain information about the status of a deployment. 8699 DeploymentStatusMessages []*string `locationName:"deploymentStatusMessages" type:"list"` 8700 8701 // Information about the type of deployment, either in-place or blue/green, 8702 // you want to run and whether to route deployment traffic behind a load balancer. 8703 DeploymentStyle *DeploymentStyle `locationName:"deploymentStyle" type:"structure"` 8704 8705 // A comment about the deployment. 8706 Description *string `locationName:"description" type:"string"` 8707 8708 // Information about any error associated with this deployment. 8709 ErrorInformation *ErrorInformation `locationName:"errorInformation" type:"structure"` 8710 8711 // The unique ID for an external resource (for example, a CloudFormation stack 8712 // ID) that is linked to this deployment. 8713 ExternalId *string `locationName:"externalId" type:"string"` 8714 8715 // Information about how AWS CodeDeploy handles files that already exist in 8716 // a deployment target location but weren't part of the previous successful 8717 // deployment. 8718 // 8719 // * DISALLOW: The deployment fails. This is also the default behavior if 8720 // no option is specified. 8721 // 8722 // * OVERWRITE: The version of the file from the application revision currently 8723 // being deployed replaces the version already on the instance. 8724 // 8725 // * RETAIN: The version of the file already on the instance is kept and 8726 // used as part of the new deployment. 8727 FileExistsBehavior *string `locationName:"fileExistsBehavior" type:"string" enum:"FileExistsBehavior"` 8728 8729 // If true, then if an ApplicationStop, BeforeBlockTraffic, or AfterBlockTraffic 8730 // deployment lifecycle event to an instance fails, then the deployment continues 8731 // to the next deployment lifecycle event. For example, if ApplicationStop fails, 8732 // the deployment continues with DownloadBundle. If BeforeBlockTraffic fails, 8733 // the deployment continues with BlockTraffic. If AfterBlockTraffic fails, the 8734 // deployment continues with ApplicationStop. 8735 // 8736 // If false or not specified, then if a lifecycle event fails during a deployment 8737 // to an instance, that deployment fails. If deployment to that instance is 8738 // part of an overall deployment and the number of healthy hosts is not less 8739 // than the minimum number of healthy hosts, then a deployment to the next instance 8740 // is attempted. 8741 // 8742 // During a deployment, the AWS CodeDeploy agent runs the scripts specified 8743 // for ApplicationStop, BeforeBlockTraffic, and AfterBlockTraffic in the AppSpec 8744 // file from the previous successful deployment. (All other scripts are run 8745 // from the AppSpec file in the current deployment.) If one of these scripts 8746 // contains an error and does not run successfully, the deployment can fail. 8747 // 8748 // If the cause of the failure is a script from the last successful deployment 8749 // that will never run successfully, create a new deployment and use ignoreApplicationStopFailures 8750 // to specify that the ApplicationStop, BeforeBlockTraffic, and AfterBlockTraffic 8751 // failures should be ignored. 8752 IgnoreApplicationStopFailures *bool `locationName:"ignoreApplicationStopFailures" type:"boolean"` 8753 8754 // Indicates whether the wait period set for the termination of instances in 8755 // the original environment has started. Status is 'false' if the KEEP_ALIVE 8756 // option is specified. Otherwise, 'true' as soon as the termination wait period 8757 // starts. 8758 InstanceTerminationWaitTimeStarted *bool `locationName:"instanceTerminationWaitTimeStarted" type:"boolean"` 8759 8760 // Information about the load balancer used in the deployment. 8761 LoadBalancerInfo *LoadBalancerInfo `locationName:"loadBalancerInfo" type:"structure"` 8762 8763 // Information about the application revision that was deployed to the deployment 8764 // group before the most recent successful deployment. 8765 PreviousRevision *RevisionLocation `locationName:"previousRevision" type:"structure"` 8766 8767 // Information about deployments related to the specified deployment. 8768 RelatedDeployments *RelatedDeployments `locationName:"relatedDeployments" type:"structure"` 8769 8770 // Information about the location of stored application artifacts and the service 8771 // from which to retrieve them. 8772 Revision *RevisionLocation `locationName:"revision" type:"structure"` 8773 8774 // Information about a deployment rollback. 8775 RollbackInfo *RollbackInfo `locationName:"rollbackInfo" type:"structure"` 8776 8777 // A timestamp that indicates when the deployment was deployed to the deployment 8778 // group. 8779 // 8780 // In some cases, the reported value of the start time might be later than the 8781 // complete time. This is due to differences in the clock settings of backend 8782 // servers that participate in the deployment process. 8783 StartTime *time.Time `locationName:"startTime" type:"timestamp"` 8784 8785 // The current state of the deployment as a whole. 8786 Status *string `locationName:"status" type:"string" enum:"DeploymentStatus"` 8787 8788 // Information about the instances that belong to the replacement environment 8789 // in a blue/green deployment. 8790 TargetInstances *TargetInstances `locationName:"targetInstances" type:"structure"` 8791 8792 // Indicates whether only instances that are not running the latest application 8793 // revision are to be deployed to. 8794 UpdateOutdatedInstancesOnly *bool `locationName:"updateOutdatedInstancesOnly" type:"boolean"` 8795} 8796 8797// String returns the string representation 8798func (s DeploymentInfo) String() string { 8799 return awsutil.Prettify(s) 8800} 8801 8802// GoString returns the string representation 8803func (s DeploymentInfo) GoString() string { 8804 return s.String() 8805} 8806 8807// SetAdditionalDeploymentStatusInfo sets the AdditionalDeploymentStatusInfo field's value. 8808func (s *DeploymentInfo) SetAdditionalDeploymentStatusInfo(v string) *DeploymentInfo { 8809 s.AdditionalDeploymentStatusInfo = &v 8810 return s 8811} 8812 8813// SetApplicationName sets the ApplicationName field's value. 8814func (s *DeploymentInfo) SetApplicationName(v string) *DeploymentInfo { 8815 s.ApplicationName = &v 8816 return s 8817} 8818 8819// SetAutoRollbackConfiguration sets the AutoRollbackConfiguration field's value. 8820func (s *DeploymentInfo) SetAutoRollbackConfiguration(v *AutoRollbackConfiguration) *DeploymentInfo { 8821 s.AutoRollbackConfiguration = v 8822 return s 8823} 8824 8825// SetBlueGreenDeploymentConfiguration sets the BlueGreenDeploymentConfiguration field's value. 8826func (s *DeploymentInfo) SetBlueGreenDeploymentConfiguration(v *BlueGreenDeploymentConfiguration) *DeploymentInfo { 8827 s.BlueGreenDeploymentConfiguration = v 8828 return s 8829} 8830 8831// SetCompleteTime sets the CompleteTime field's value. 8832func (s *DeploymentInfo) SetCompleteTime(v time.Time) *DeploymentInfo { 8833 s.CompleteTime = &v 8834 return s 8835} 8836 8837// SetComputePlatform sets the ComputePlatform field's value. 8838func (s *DeploymentInfo) SetComputePlatform(v string) *DeploymentInfo { 8839 s.ComputePlatform = &v 8840 return s 8841} 8842 8843// SetCreateTime sets the CreateTime field's value. 8844func (s *DeploymentInfo) SetCreateTime(v time.Time) *DeploymentInfo { 8845 s.CreateTime = &v 8846 return s 8847} 8848 8849// SetCreator sets the Creator field's value. 8850func (s *DeploymentInfo) SetCreator(v string) *DeploymentInfo { 8851 s.Creator = &v 8852 return s 8853} 8854 8855// SetDeploymentConfigName sets the DeploymentConfigName field's value. 8856func (s *DeploymentInfo) SetDeploymentConfigName(v string) *DeploymentInfo { 8857 s.DeploymentConfigName = &v 8858 return s 8859} 8860 8861// SetDeploymentGroupName sets the DeploymentGroupName field's value. 8862func (s *DeploymentInfo) SetDeploymentGroupName(v string) *DeploymentInfo { 8863 s.DeploymentGroupName = &v 8864 return s 8865} 8866 8867// SetDeploymentId sets the DeploymentId field's value. 8868func (s *DeploymentInfo) SetDeploymentId(v string) *DeploymentInfo { 8869 s.DeploymentId = &v 8870 return s 8871} 8872 8873// SetDeploymentOverview sets the DeploymentOverview field's value. 8874func (s *DeploymentInfo) SetDeploymentOverview(v *DeploymentOverview) *DeploymentInfo { 8875 s.DeploymentOverview = v 8876 return s 8877} 8878 8879// SetDeploymentStatusMessages sets the DeploymentStatusMessages field's value. 8880func (s *DeploymentInfo) SetDeploymentStatusMessages(v []*string) *DeploymentInfo { 8881 s.DeploymentStatusMessages = v 8882 return s 8883} 8884 8885// SetDeploymentStyle sets the DeploymentStyle field's value. 8886func (s *DeploymentInfo) SetDeploymentStyle(v *DeploymentStyle) *DeploymentInfo { 8887 s.DeploymentStyle = v 8888 return s 8889} 8890 8891// SetDescription sets the Description field's value. 8892func (s *DeploymentInfo) SetDescription(v string) *DeploymentInfo { 8893 s.Description = &v 8894 return s 8895} 8896 8897// SetErrorInformation sets the ErrorInformation field's value. 8898func (s *DeploymentInfo) SetErrorInformation(v *ErrorInformation) *DeploymentInfo { 8899 s.ErrorInformation = v 8900 return s 8901} 8902 8903// SetExternalId sets the ExternalId field's value. 8904func (s *DeploymentInfo) SetExternalId(v string) *DeploymentInfo { 8905 s.ExternalId = &v 8906 return s 8907} 8908 8909// SetFileExistsBehavior sets the FileExistsBehavior field's value. 8910func (s *DeploymentInfo) SetFileExistsBehavior(v string) *DeploymentInfo { 8911 s.FileExistsBehavior = &v 8912 return s 8913} 8914 8915// SetIgnoreApplicationStopFailures sets the IgnoreApplicationStopFailures field's value. 8916func (s *DeploymentInfo) SetIgnoreApplicationStopFailures(v bool) *DeploymentInfo { 8917 s.IgnoreApplicationStopFailures = &v 8918 return s 8919} 8920 8921// SetInstanceTerminationWaitTimeStarted sets the InstanceTerminationWaitTimeStarted field's value. 8922func (s *DeploymentInfo) SetInstanceTerminationWaitTimeStarted(v bool) *DeploymentInfo { 8923 s.InstanceTerminationWaitTimeStarted = &v 8924 return s 8925} 8926 8927// SetLoadBalancerInfo sets the LoadBalancerInfo field's value. 8928func (s *DeploymentInfo) SetLoadBalancerInfo(v *LoadBalancerInfo) *DeploymentInfo { 8929 s.LoadBalancerInfo = v 8930 return s 8931} 8932 8933// SetPreviousRevision sets the PreviousRevision field's value. 8934func (s *DeploymentInfo) SetPreviousRevision(v *RevisionLocation) *DeploymentInfo { 8935 s.PreviousRevision = v 8936 return s 8937} 8938 8939// SetRelatedDeployments sets the RelatedDeployments field's value. 8940func (s *DeploymentInfo) SetRelatedDeployments(v *RelatedDeployments) *DeploymentInfo { 8941 s.RelatedDeployments = v 8942 return s 8943} 8944 8945// SetRevision sets the Revision field's value. 8946func (s *DeploymentInfo) SetRevision(v *RevisionLocation) *DeploymentInfo { 8947 s.Revision = v 8948 return s 8949} 8950 8951// SetRollbackInfo sets the RollbackInfo field's value. 8952func (s *DeploymentInfo) SetRollbackInfo(v *RollbackInfo) *DeploymentInfo { 8953 s.RollbackInfo = v 8954 return s 8955} 8956 8957// SetStartTime sets the StartTime field's value. 8958func (s *DeploymentInfo) SetStartTime(v time.Time) *DeploymentInfo { 8959 s.StartTime = &v 8960 return s 8961} 8962 8963// SetStatus sets the Status field's value. 8964func (s *DeploymentInfo) SetStatus(v string) *DeploymentInfo { 8965 s.Status = &v 8966 return s 8967} 8968 8969// SetTargetInstances sets the TargetInstances field's value. 8970func (s *DeploymentInfo) SetTargetInstances(v *TargetInstances) *DeploymentInfo { 8971 s.TargetInstances = v 8972 return s 8973} 8974 8975// SetUpdateOutdatedInstancesOnly sets the UpdateOutdatedInstancesOnly field's value. 8976func (s *DeploymentInfo) SetUpdateOutdatedInstancesOnly(v bool) *DeploymentInfo { 8977 s.UpdateOutdatedInstancesOnly = &v 8978 return s 8979} 8980 8981// The deployment does not have a status of Ready and can't continue yet. 8982type DeploymentIsNotInReadyStateException struct { 8983 _ struct{} `type:"structure"` 8984 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 8985 8986 Message_ *string `locationName:"message" type:"string"` 8987} 8988 8989// String returns the string representation 8990func (s DeploymentIsNotInReadyStateException) String() string { 8991 return awsutil.Prettify(s) 8992} 8993 8994// GoString returns the string representation 8995func (s DeploymentIsNotInReadyStateException) GoString() string { 8996 return s.String() 8997} 8998 8999func newErrorDeploymentIsNotInReadyStateException(v protocol.ResponseMetadata) error { 9000 return &DeploymentIsNotInReadyStateException{ 9001 RespMetadata: v, 9002 } 9003} 9004 9005// Code returns the exception type name. 9006func (s *DeploymentIsNotInReadyStateException) Code() string { 9007 return "DeploymentIsNotInReadyStateException" 9008} 9009 9010// Message returns the exception's message. 9011func (s *DeploymentIsNotInReadyStateException) Message() string { 9012 if s.Message_ != nil { 9013 return *s.Message_ 9014 } 9015 return "" 9016} 9017 9018// OrigErr always returns nil, satisfies awserr.Error interface. 9019func (s *DeploymentIsNotInReadyStateException) OrigErr() error { 9020 return nil 9021} 9022 9023func (s *DeploymentIsNotInReadyStateException) Error() string { 9024 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 9025} 9026 9027// Status code returns the HTTP status code for the request's response error. 9028func (s *DeploymentIsNotInReadyStateException) StatusCode() int { 9029 return s.RespMetadata.StatusCode 9030} 9031 9032// RequestID returns the service's response RequestID for request. 9033func (s *DeploymentIsNotInReadyStateException) RequestID() string { 9034 return s.RespMetadata.RequestID 9035} 9036 9037// The number of allowed deployments was exceeded. 9038type DeploymentLimitExceededException struct { 9039 _ struct{} `type:"structure"` 9040 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 9041 9042 Message_ *string `locationName:"message" type:"string"` 9043} 9044 9045// String returns the string representation 9046func (s DeploymentLimitExceededException) String() string { 9047 return awsutil.Prettify(s) 9048} 9049 9050// GoString returns the string representation 9051func (s DeploymentLimitExceededException) GoString() string { 9052 return s.String() 9053} 9054 9055func newErrorDeploymentLimitExceededException(v protocol.ResponseMetadata) error { 9056 return &DeploymentLimitExceededException{ 9057 RespMetadata: v, 9058 } 9059} 9060 9061// Code returns the exception type name. 9062func (s *DeploymentLimitExceededException) Code() string { 9063 return "DeploymentLimitExceededException" 9064} 9065 9066// Message returns the exception's message. 9067func (s *DeploymentLimitExceededException) Message() string { 9068 if s.Message_ != nil { 9069 return *s.Message_ 9070 } 9071 return "" 9072} 9073 9074// OrigErr always returns nil, satisfies awserr.Error interface. 9075func (s *DeploymentLimitExceededException) OrigErr() error { 9076 return nil 9077} 9078 9079func (s *DeploymentLimitExceededException) Error() string { 9080 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 9081} 9082 9083// Status code returns the HTTP status code for the request's response error. 9084func (s *DeploymentLimitExceededException) StatusCode() int { 9085 return s.RespMetadata.StatusCode 9086} 9087 9088// RequestID returns the service's response RequestID for request. 9089func (s *DeploymentLimitExceededException) RequestID() string { 9090 return s.RespMetadata.RequestID 9091} 9092 9093// The specified deployment has not started. 9094type DeploymentNotStartedException struct { 9095 _ struct{} `type:"structure"` 9096 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 9097 9098 Message_ *string `locationName:"message" type:"string"` 9099} 9100 9101// String returns the string representation 9102func (s DeploymentNotStartedException) String() string { 9103 return awsutil.Prettify(s) 9104} 9105 9106// GoString returns the string representation 9107func (s DeploymentNotStartedException) GoString() string { 9108 return s.String() 9109} 9110 9111func newErrorDeploymentNotStartedException(v protocol.ResponseMetadata) error { 9112 return &DeploymentNotStartedException{ 9113 RespMetadata: v, 9114 } 9115} 9116 9117// Code returns the exception type name. 9118func (s *DeploymentNotStartedException) Code() string { 9119 return "DeploymentNotStartedException" 9120} 9121 9122// Message returns the exception's message. 9123func (s *DeploymentNotStartedException) Message() string { 9124 if s.Message_ != nil { 9125 return *s.Message_ 9126 } 9127 return "" 9128} 9129 9130// OrigErr always returns nil, satisfies awserr.Error interface. 9131func (s *DeploymentNotStartedException) OrigErr() error { 9132 return nil 9133} 9134 9135func (s *DeploymentNotStartedException) Error() string { 9136 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 9137} 9138 9139// Status code returns the HTTP status code for the request's response error. 9140func (s *DeploymentNotStartedException) StatusCode() int { 9141 return s.RespMetadata.StatusCode 9142} 9143 9144// RequestID returns the service's response RequestID for request. 9145func (s *DeploymentNotStartedException) RequestID() string { 9146 return s.RespMetadata.RequestID 9147} 9148 9149// Information about the deployment status of the instances in the deployment. 9150type DeploymentOverview struct { 9151 _ struct{} `type:"structure"` 9152 9153 // The number of instances in the deployment in a failed state. 9154 Failed *int64 `type:"long"` 9155 9156 // The number of instances in which the deployment is in progress. 9157 InProgress *int64 `type:"long"` 9158 9159 // The number of instances in the deployment in a pending state. 9160 Pending *int64 `type:"long"` 9161 9162 // The number of instances in a replacement environment ready to receive traffic 9163 // in a blue/green deployment. 9164 Ready *int64 `type:"long"` 9165 9166 // The number of instances in the deployment in a skipped state. 9167 Skipped *int64 `type:"long"` 9168 9169 // The number of instances in the deployment to which revisions have been successfully 9170 // deployed. 9171 Succeeded *int64 `type:"long"` 9172} 9173 9174// String returns the string representation 9175func (s DeploymentOverview) String() string { 9176 return awsutil.Prettify(s) 9177} 9178 9179// GoString returns the string representation 9180func (s DeploymentOverview) GoString() string { 9181 return s.String() 9182} 9183 9184// SetFailed sets the Failed field's value. 9185func (s *DeploymentOverview) SetFailed(v int64) *DeploymentOverview { 9186 s.Failed = &v 9187 return s 9188} 9189 9190// SetInProgress sets the InProgress field's value. 9191func (s *DeploymentOverview) SetInProgress(v int64) *DeploymentOverview { 9192 s.InProgress = &v 9193 return s 9194} 9195 9196// SetPending sets the Pending field's value. 9197func (s *DeploymentOverview) SetPending(v int64) *DeploymentOverview { 9198 s.Pending = &v 9199 return s 9200} 9201 9202// SetReady sets the Ready field's value. 9203func (s *DeploymentOverview) SetReady(v int64) *DeploymentOverview { 9204 s.Ready = &v 9205 return s 9206} 9207 9208// SetSkipped sets the Skipped field's value. 9209func (s *DeploymentOverview) SetSkipped(v int64) *DeploymentOverview { 9210 s.Skipped = &v 9211 return s 9212} 9213 9214// SetSucceeded sets the Succeeded field's value. 9215func (s *DeploymentOverview) SetSucceeded(v int64) *DeploymentOverview { 9216 s.Succeeded = &v 9217 return s 9218} 9219 9220// Information about how traffic is rerouted to instances in a replacement environment 9221// in a blue/green deployment. 9222type DeploymentReadyOption struct { 9223 _ struct{} `type:"structure"` 9224 9225 // Information about when to reroute traffic from an original environment to 9226 // a replacement environment in a blue/green deployment. 9227 // 9228 // * CONTINUE_DEPLOYMENT: Register new instances with the load balancer immediately 9229 // after the new application revision is installed on the instances in the 9230 // replacement environment. 9231 // 9232 // * STOP_DEPLOYMENT: Do not register new instances with a load balancer 9233 // unless traffic rerouting is started using ContinueDeployment. If traffic 9234 // rerouting is not started before the end of the specified wait period, 9235 // the deployment status is changed to Stopped. 9236 ActionOnTimeout *string `locationName:"actionOnTimeout" type:"string" enum:"DeploymentReadyAction"` 9237 9238 // The number of minutes to wait before the status of a blue/green deployment 9239 // is changed to Stopped if rerouting is not started manually. Applies only 9240 // to the STOP_DEPLOYMENT option for actionOnTimeout. 9241 WaitTimeInMinutes *int64 `locationName:"waitTimeInMinutes" type:"integer"` 9242} 9243 9244// String returns the string representation 9245func (s DeploymentReadyOption) String() string { 9246 return awsutil.Prettify(s) 9247} 9248 9249// GoString returns the string representation 9250func (s DeploymentReadyOption) GoString() string { 9251 return s.String() 9252} 9253 9254// SetActionOnTimeout sets the ActionOnTimeout field's value. 9255func (s *DeploymentReadyOption) SetActionOnTimeout(v string) *DeploymentReadyOption { 9256 s.ActionOnTimeout = &v 9257 return s 9258} 9259 9260// SetWaitTimeInMinutes sets the WaitTimeInMinutes field's value. 9261func (s *DeploymentReadyOption) SetWaitTimeInMinutes(v int64) *DeploymentReadyOption { 9262 s.WaitTimeInMinutes = &v 9263 return s 9264} 9265 9266// Information about the type of deployment, either in-place or blue/green, 9267// you want to run and whether to route deployment traffic behind a load balancer. 9268type DeploymentStyle struct { 9269 _ struct{} `type:"structure"` 9270 9271 // Indicates whether to route deployment traffic behind a load balancer. 9272 DeploymentOption *string `locationName:"deploymentOption" type:"string" enum:"DeploymentOption"` 9273 9274 // Indicates whether to run an in-place deployment or a blue/green deployment. 9275 DeploymentType *string `locationName:"deploymentType" type:"string" enum:"DeploymentType"` 9276} 9277 9278// String returns the string representation 9279func (s DeploymentStyle) String() string { 9280 return awsutil.Prettify(s) 9281} 9282 9283// GoString returns the string representation 9284func (s DeploymentStyle) GoString() string { 9285 return s.String() 9286} 9287 9288// SetDeploymentOption sets the DeploymentOption field's value. 9289func (s *DeploymentStyle) SetDeploymentOption(v string) *DeploymentStyle { 9290 s.DeploymentOption = &v 9291 return s 9292} 9293 9294// SetDeploymentType sets the DeploymentType field's value. 9295func (s *DeploymentStyle) SetDeploymentType(v string) *DeploymentStyle { 9296 s.DeploymentType = &v 9297 return s 9298} 9299 9300// Information about the deployment target. 9301type DeploymentTarget struct { 9302 _ struct{} `type:"structure"` 9303 9304 // Information about the target to be updated by an AWS CloudFormation blue/green 9305 // deployment. This target type is used for all deployments initiated by a CloudFormation 9306 // stack update. 9307 CloudFormationTarget *CloudFormationTarget `locationName:"cloudFormationTarget" type:"structure"` 9308 9309 // The deployment type that is specific to the deployment's compute platform 9310 // or deployments initiated by a CloudFormation stack update. 9311 DeploymentTargetType *string `locationName:"deploymentTargetType" type:"string" enum:"DeploymentTargetType"` 9312 9313 // Information about the target for a deployment that uses the Amazon ECS compute 9314 // platform. 9315 EcsTarget *ECSTarget `locationName:"ecsTarget" type:"structure"` 9316 9317 // Information about the target for a deployment that uses the EC2/On-premises 9318 // compute platform. 9319 InstanceTarget *InstanceTarget `locationName:"instanceTarget" type:"structure"` 9320 9321 // Information about the target for a deployment that uses the AWS Lambda compute 9322 // platform. 9323 LambdaTarget *LambdaTarget `locationName:"lambdaTarget" type:"structure"` 9324} 9325 9326// String returns the string representation 9327func (s DeploymentTarget) String() string { 9328 return awsutil.Prettify(s) 9329} 9330 9331// GoString returns the string representation 9332func (s DeploymentTarget) GoString() string { 9333 return s.String() 9334} 9335 9336// SetCloudFormationTarget sets the CloudFormationTarget field's value. 9337func (s *DeploymentTarget) SetCloudFormationTarget(v *CloudFormationTarget) *DeploymentTarget { 9338 s.CloudFormationTarget = v 9339 return s 9340} 9341 9342// SetDeploymentTargetType sets the DeploymentTargetType field's value. 9343func (s *DeploymentTarget) SetDeploymentTargetType(v string) *DeploymentTarget { 9344 s.DeploymentTargetType = &v 9345 return s 9346} 9347 9348// SetEcsTarget sets the EcsTarget field's value. 9349func (s *DeploymentTarget) SetEcsTarget(v *ECSTarget) *DeploymentTarget { 9350 s.EcsTarget = v 9351 return s 9352} 9353 9354// SetInstanceTarget sets the InstanceTarget field's value. 9355func (s *DeploymentTarget) SetInstanceTarget(v *InstanceTarget) *DeploymentTarget { 9356 s.InstanceTarget = v 9357 return s 9358} 9359 9360// SetLambdaTarget sets the LambdaTarget field's value. 9361func (s *DeploymentTarget) SetLambdaTarget(v *LambdaTarget) *DeploymentTarget { 9362 s.LambdaTarget = v 9363 return s 9364} 9365 9366// The provided target ID does not belong to the attempted deployment. 9367type DeploymentTargetDoesNotExistException struct { 9368 _ struct{} `type:"structure"` 9369 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 9370 9371 Message_ *string `locationName:"message" type:"string"` 9372} 9373 9374// String returns the string representation 9375func (s DeploymentTargetDoesNotExistException) String() string { 9376 return awsutil.Prettify(s) 9377} 9378 9379// GoString returns the string representation 9380func (s DeploymentTargetDoesNotExistException) GoString() string { 9381 return s.String() 9382} 9383 9384func newErrorDeploymentTargetDoesNotExistException(v protocol.ResponseMetadata) error { 9385 return &DeploymentTargetDoesNotExistException{ 9386 RespMetadata: v, 9387 } 9388} 9389 9390// Code returns the exception type name. 9391func (s *DeploymentTargetDoesNotExistException) Code() string { 9392 return "DeploymentTargetDoesNotExistException" 9393} 9394 9395// Message returns the exception's message. 9396func (s *DeploymentTargetDoesNotExistException) Message() string { 9397 if s.Message_ != nil { 9398 return *s.Message_ 9399 } 9400 return "" 9401} 9402 9403// OrigErr always returns nil, satisfies awserr.Error interface. 9404func (s *DeploymentTargetDoesNotExistException) OrigErr() error { 9405 return nil 9406} 9407 9408func (s *DeploymentTargetDoesNotExistException) Error() string { 9409 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 9410} 9411 9412// Status code returns the HTTP status code for the request's response error. 9413func (s *DeploymentTargetDoesNotExistException) StatusCode() int { 9414 return s.RespMetadata.StatusCode 9415} 9416 9417// RequestID returns the service's response RequestID for request. 9418func (s *DeploymentTargetDoesNotExistException) RequestID() string { 9419 return s.RespMetadata.RequestID 9420} 9421 9422// A deployment target ID was not provided. 9423type DeploymentTargetIdRequiredException struct { 9424 _ struct{} `type:"structure"` 9425 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 9426 9427 Message_ *string `locationName:"message" type:"string"` 9428} 9429 9430// String returns the string representation 9431func (s DeploymentTargetIdRequiredException) String() string { 9432 return awsutil.Prettify(s) 9433} 9434 9435// GoString returns the string representation 9436func (s DeploymentTargetIdRequiredException) GoString() string { 9437 return s.String() 9438} 9439 9440func newErrorDeploymentTargetIdRequiredException(v protocol.ResponseMetadata) error { 9441 return &DeploymentTargetIdRequiredException{ 9442 RespMetadata: v, 9443 } 9444} 9445 9446// Code returns the exception type name. 9447func (s *DeploymentTargetIdRequiredException) Code() string { 9448 return "DeploymentTargetIdRequiredException" 9449} 9450 9451// Message returns the exception's message. 9452func (s *DeploymentTargetIdRequiredException) Message() string { 9453 if s.Message_ != nil { 9454 return *s.Message_ 9455 } 9456 return "" 9457} 9458 9459// OrigErr always returns nil, satisfies awserr.Error interface. 9460func (s *DeploymentTargetIdRequiredException) OrigErr() error { 9461 return nil 9462} 9463 9464func (s *DeploymentTargetIdRequiredException) Error() string { 9465 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 9466} 9467 9468// Status code returns the HTTP status code for the request's response error. 9469func (s *DeploymentTargetIdRequiredException) StatusCode() int { 9470 return s.RespMetadata.StatusCode 9471} 9472 9473// RequestID returns the service's response RequestID for request. 9474func (s *DeploymentTargetIdRequiredException) RequestID() string { 9475 return s.RespMetadata.RequestID 9476} 9477 9478// The maximum number of targets that can be associated with an Amazon ECS or 9479// AWS Lambda deployment was exceeded. The target list of both types of deployments 9480// must have exactly one item. This exception does not apply to EC2/On-premises 9481// deployments. 9482type DeploymentTargetListSizeExceededException struct { 9483 _ struct{} `type:"structure"` 9484 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 9485 9486 Message_ *string `locationName:"message" type:"string"` 9487} 9488 9489// String returns the string representation 9490func (s DeploymentTargetListSizeExceededException) String() string { 9491 return awsutil.Prettify(s) 9492} 9493 9494// GoString returns the string representation 9495func (s DeploymentTargetListSizeExceededException) GoString() string { 9496 return s.String() 9497} 9498 9499func newErrorDeploymentTargetListSizeExceededException(v protocol.ResponseMetadata) error { 9500 return &DeploymentTargetListSizeExceededException{ 9501 RespMetadata: v, 9502 } 9503} 9504 9505// Code returns the exception type name. 9506func (s *DeploymentTargetListSizeExceededException) Code() string { 9507 return "DeploymentTargetListSizeExceededException" 9508} 9509 9510// Message returns the exception's message. 9511func (s *DeploymentTargetListSizeExceededException) Message() string { 9512 if s.Message_ != nil { 9513 return *s.Message_ 9514 } 9515 return "" 9516} 9517 9518// OrigErr always returns nil, satisfies awserr.Error interface. 9519func (s *DeploymentTargetListSizeExceededException) OrigErr() error { 9520 return nil 9521} 9522 9523func (s *DeploymentTargetListSizeExceededException) Error() string { 9524 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 9525} 9526 9527// Status code returns the HTTP status code for the request's response error. 9528func (s *DeploymentTargetListSizeExceededException) StatusCode() int { 9529 return s.RespMetadata.StatusCode 9530} 9531 9532// RequestID returns the service's response RequestID for request. 9533func (s *DeploymentTargetListSizeExceededException) RequestID() string { 9534 return s.RespMetadata.RequestID 9535} 9536 9537// Represents the input of a DeregisterOnPremisesInstance operation. 9538type DeregisterOnPremisesInstanceInput struct { 9539 _ struct{} `type:"structure"` 9540 9541 // The name of the on-premises instance to deregister. 9542 // 9543 // InstanceName is a required field 9544 InstanceName *string `locationName:"instanceName" type:"string" required:"true"` 9545} 9546 9547// String returns the string representation 9548func (s DeregisterOnPremisesInstanceInput) String() string { 9549 return awsutil.Prettify(s) 9550} 9551 9552// GoString returns the string representation 9553func (s DeregisterOnPremisesInstanceInput) GoString() string { 9554 return s.String() 9555} 9556 9557// Validate inspects the fields of the type to determine if they are valid. 9558func (s *DeregisterOnPremisesInstanceInput) Validate() error { 9559 invalidParams := request.ErrInvalidParams{Context: "DeregisterOnPremisesInstanceInput"} 9560 if s.InstanceName == nil { 9561 invalidParams.Add(request.NewErrParamRequired("InstanceName")) 9562 } 9563 9564 if invalidParams.Len() > 0 { 9565 return invalidParams 9566 } 9567 return nil 9568} 9569 9570// SetInstanceName sets the InstanceName field's value. 9571func (s *DeregisterOnPremisesInstanceInput) SetInstanceName(v string) *DeregisterOnPremisesInstanceInput { 9572 s.InstanceName = &v 9573 return s 9574} 9575 9576type DeregisterOnPremisesInstanceOutput struct { 9577 _ struct{} `type:"structure"` 9578} 9579 9580// String returns the string representation 9581func (s DeregisterOnPremisesInstanceOutput) String() string { 9582 return awsutil.Prettify(s) 9583} 9584 9585// GoString returns the string representation 9586func (s DeregisterOnPremisesInstanceOutput) GoString() string { 9587 return s.String() 9588} 9589 9590// The description is too long. 9591type DescriptionTooLongException struct { 9592 _ struct{} `type:"structure"` 9593 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 9594 9595 Message_ *string `locationName:"message" type:"string"` 9596} 9597 9598// String returns the string representation 9599func (s DescriptionTooLongException) String() string { 9600 return awsutil.Prettify(s) 9601} 9602 9603// GoString returns the string representation 9604func (s DescriptionTooLongException) GoString() string { 9605 return s.String() 9606} 9607 9608func newErrorDescriptionTooLongException(v protocol.ResponseMetadata) error { 9609 return &DescriptionTooLongException{ 9610 RespMetadata: v, 9611 } 9612} 9613 9614// Code returns the exception type name. 9615func (s *DescriptionTooLongException) Code() string { 9616 return "DescriptionTooLongException" 9617} 9618 9619// Message returns the exception's message. 9620func (s *DescriptionTooLongException) Message() string { 9621 if s.Message_ != nil { 9622 return *s.Message_ 9623 } 9624 return "" 9625} 9626 9627// OrigErr always returns nil, satisfies awserr.Error interface. 9628func (s *DescriptionTooLongException) OrigErr() error { 9629 return nil 9630} 9631 9632func (s *DescriptionTooLongException) Error() string { 9633 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 9634} 9635 9636// Status code returns the HTTP status code for the request's response error. 9637func (s *DescriptionTooLongException) StatusCode() int { 9638 return s.RespMetadata.StatusCode 9639} 9640 9641// RequestID returns the service's response RequestID for request. 9642func (s *DescriptionTooLongException) RequestID() string { 9643 return s.RespMetadata.RequestID 9644} 9645 9646// Diagnostic information about executable scripts that are part of a deployment. 9647type Diagnostics struct { 9648 _ struct{} `type:"structure"` 9649 9650 // The associated error code: 9651 // 9652 // * Success: The specified script ran. 9653 // 9654 // * ScriptMissing: The specified script was not found in the specified location. 9655 // 9656 // * ScriptNotExecutable: The specified script is not a recognized executable 9657 // file type. 9658 // 9659 // * ScriptTimedOut: The specified script did not finish running in the specified 9660 // time period. 9661 // 9662 // * ScriptFailed: The specified script failed to run as expected. 9663 // 9664 // * UnknownError: The specified script did not run for an unknown reason. 9665 ErrorCode *string `locationName:"errorCode" type:"string" enum:"LifecycleErrorCode"` 9666 9667 // The last portion of the diagnostic log. 9668 // 9669 // If available, AWS CodeDeploy returns up to the last 4 KB of the diagnostic 9670 // log. 9671 LogTail *string `locationName:"logTail" type:"string"` 9672 9673 // The message associated with the error. 9674 Message *string `locationName:"message" type:"string"` 9675 9676 // The name of the script. 9677 ScriptName *string `locationName:"scriptName" type:"string"` 9678} 9679 9680// String returns the string representation 9681func (s Diagnostics) String() string { 9682 return awsutil.Prettify(s) 9683} 9684 9685// GoString returns the string representation 9686func (s Diagnostics) GoString() string { 9687 return s.String() 9688} 9689 9690// SetErrorCode sets the ErrorCode field's value. 9691func (s *Diagnostics) SetErrorCode(v string) *Diagnostics { 9692 s.ErrorCode = &v 9693 return s 9694} 9695 9696// SetLogTail sets the LogTail field's value. 9697func (s *Diagnostics) SetLogTail(v string) *Diagnostics { 9698 s.LogTail = &v 9699 return s 9700} 9701 9702// SetMessage sets the Message field's value. 9703func (s *Diagnostics) SetMessage(v string) *Diagnostics { 9704 s.Message = &v 9705 return s 9706} 9707 9708// SetScriptName sets the ScriptName field's value. 9709func (s *Diagnostics) SetScriptName(v string) *Diagnostics { 9710 s.ScriptName = &v 9711 return s 9712} 9713 9714// Information about an EC2 tag filter. 9715type EC2TagFilter struct { 9716 _ struct{} `type:"structure"` 9717 9718 // The tag filter key. 9719 Key *string `type:"string"` 9720 9721 // The tag filter type: 9722 // 9723 // * KEY_ONLY: Key only. 9724 // 9725 // * VALUE_ONLY: Value only. 9726 // 9727 // * KEY_AND_VALUE: Key and value. 9728 Type *string `type:"string" enum:"EC2TagFilterType"` 9729 9730 // The tag filter value. 9731 Value *string `type:"string"` 9732} 9733 9734// String returns the string representation 9735func (s EC2TagFilter) String() string { 9736 return awsutil.Prettify(s) 9737} 9738 9739// GoString returns the string representation 9740func (s EC2TagFilter) GoString() string { 9741 return s.String() 9742} 9743 9744// SetKey sets the Key field's value. 9745func (s *EC2TagFilter) SetKey(v string) *EC2TagFilter { 9746 s.Key = &v 9747 return s 9748} 9749 9750// SetType sets the Type field's value. 9751func (s *EC2TagFilter) SetType(v string) *EC2TagFilter { 9752 s.Type = &v 9753 return s 9754} 9755 9756// SetValue sets the Value field's value. 9757func (s *EC2TagFilter) SetValue(v string) *EC2TagFilter { 9758 s.Value = &v 9759 return s 9760} 9761 9762// Information about groups of EC2 instance tags. 9763type EC2TagSet struct { 9764 _ struct{} `type:"structure"` 9765 9766 // A list that contains other lists of EC2 instance tag groups. For an instance 9767 // to be included in the deployment group, it must be identified by all of the 9768 // tag groups in the list. 9769 Ec2TagSetList [][]*EC2TagFilter `locationName:"ec2TagSetList" type:"list"` 9770} 9771 9772// String returns the string representation 9773func (s EC2TagSet) String() string { 9774 return awsutil.Prettify(s) 9775} 9776 9777// GoString returns the string representation 9778func (s EC2TagSet) GoString() string { 9779 return s.String() 9780} 9781 9782// SetEc2TagSetList sets the Ec2TagSetList field's value. 9783func (s *EC2TagSet) SetEc2TagSetList(v [][]*EC2TagFilter) *EC2TagSet { 9784 s.Ec2TagSetList = v 9785 return s 9786} 9787 9788// Contains the service and cluster names used to identify an Amazon ECS deployment's 9789// target. 9790type ECSService struct { 9791 _ struct{} `type:"structure"` 9792 9793 // The name of the cluster that the Amazon ECS service is associated with. 9794 ClusterName *string `locationName:"clusterName" type:"string"` 9795 9796 // The name of the target Amazon ECS service. 9797 ServiceName *string `locationName:"serviceName" type:"string"` 9798} 9799 9800// String returns the string representation 9801func (s ECSService) String() string { 9802 return awsutil.Prettify(s) 9803} 9804 9805// GoString returns the string representation 9806func (s ECSService) GoString() string { 9807 return s.String() 9808} 9809 9810// SetClusterName sets the ClusterName field's value. 9811func (s *ECSService) SetClusterName(v string) *ECSService { 9812 s.ClusterName = &v 9813 return s 9814} 9815 9816// SetServiceName sets the ServiceName field's value. 9817func (s *ECSService) SetServiceName(v string) *ECSService { 9818 s.ServiceName = &v 9819 return s 9820} 9821 9822// The Amazon ECS service is associated with more than one deployment groups. 9823// An Amazon ECS service can be associated with only one deployment group. 9824type ECSServiceMappingLimitExceededException struct { 9825 _ struct{} `type:"structure"` 9826 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 9827 9828 Message_ *string `locationName:"message" type:"string"` 9829} 9830 9831// String returns the string representation 9832func (s ECSServiceMappingLimitExceededException) String() string { 9833 return awsutil.Prettify(s) 9834} 9835 9836// GoString returns the string representation 9837func (s ECSServiceMappingLimitExceededException) GoString() string { 9838 return s.String() 9839} 9840 9841func newErrorECSServiceMappingLimitExceededException(v protocol.ResponseMetadata) error { 9842 return &ECSServiceMappingLimitExceededException{ 9843 RespMetadata: v, 9844 } 9845} 9846 9847// Code returns the exception type name. 9848func (s *ECSServiceMappingLimitExceededException) Code() string { 9849 return "ECSServiceMappingLimitExceededException" 9850} 9851 9852// Message returns the exception's message. 9853func (s *ECSServiceMappingLimitExceededException) Message() string { 9854 if s.Message_ != nil { 9855 return *s.Message_ 9856 } 9857 return "" 9858} 9859 9860// OrigErr always returns nil, satisfies awserr.Error interface. 9861func (s *ECSServiceMappingLimitExceededException) OrigErr() error { 9862 return nil 9863} 9864 9865func (s *ECSServiceMappingLimitExceededException) Error() string { 9866 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 9867} 9868 9869// Status code returns the HTTP status code for the request's response error. 9870func (s *ECSServiceMappingLimitExceededException) StatusCode() int { 9871 return s.RespMetadata.StatusCode 9872} 9873 9874// RequestID returns the service's response RequestID for request. 9875func (s *ECSServiceMappingLimitExceededException) RequestID() string { 9876 return s.RespMetadata.RequestID 9877} 9878 9879// Information about the target of an Amazon ECS deployment. 9880type ECSTarget struct { 9881 _ struct{} `type:"structure"` 9882 9883 // The unique ID of a deployment. 9884 DeploymentId *string `locationName:"deploymentId" type:"string"` 9885 9886 // The date and time when the target Amazon ECS application was updated by a 9887 // deployment. 9888 LastUpdatedAt *time.Time `locationName:"lastUpdatedAt" type:"timestamp"` 9889 9890 // The lifecycle events of the deployment to this target Amazon ECS application. 9891 LifecycleEvents []*LifecycleEvent `locationName:"lifecycleEvents" type:"list"` 9892 9893 // The status an Amazon ECS deployment's target ECS application. 9894 Status *string `locationName:"status" type:"string" enum:"TargetStatus"` 9895 9896 // The Amazon Resource Name (ARN) of the target. 9897 TargetArn *string `locationName:"targetArn" type:"string"` 9898 9899 // The unique ID of a deployment target that has a type of ecsTarget. 9900 TargetId *string `locationName:"targetId" type:"string"` 9901 9902 // The ECSTaskSet objects associated with the ECS target. 9903 TaskSetsInfo []*ECSTaskSet `locationName:"taskSetsInfo" type:"list"` 9904} 9905 9906// String returns the string representation 9907func (s ECSTarget) String() string { 9908 return awsutil.Prettify(s) 9909} 9910 9911// GoString returns the string representation 9912func (s ECSTarget) GoString() string { 9913 return s.String() 9914} 9915 9916// SetDeploymentId sets the DeploymentId field's value. 9917func (s *ECSTarget) SetDeploymentId(v string) *ECSTarget { 9918 s.DeploymentId = &v 9919 return s 9920} 9921 9922// SetLastUpdatedAt sets the LastUpdatedAt field's value. 9923func (s *ECSTarget) SetLastUpdatedAt(v time.Time) *ECSTarget { 9924 s.LastUpdatedAt = &v 9925 return s 9926} 9927 9928// SetLifecycleEvents sets the LifecycleEvents field's value. 9929func (s *ECSTarget) SetLifecycleEvents(v []*LifecycleEvent) *ECSTarget { 9930 s.LifecycleEvents = v 9931 return s 9932} 9933 9934// SetStatus sets the Status field's value. 9935func (s *ECSTarget) SetStatus(v string) *ECSTarget { 9936 s.Status = &v 9937 return s 9938} 9939 9940// SetTargetArn sets the TargetArn field's value. 9941func (s *ECSTarget) SetTargetArn(v string) *ECSTarget { 9942 s.TargetArn = &v 9943 return s 9944} 9945 9946// SetTargetId sets the TargetId field's value. 9947func (s *ECSTarget) SetTargetId(v string) *ECSTarget { 9948 s.TargetId = &v 9949 return s 9950} 9951 9952// SetTaskSetsInfo sets the TaskSetsInfo field's value. 9953func (s *ECSTarget) SetTaskSetsInfo(v []*ECSTaskSet) *ECSTarget { 9954 s.TaskSetsInfo = v 9955 return s 9956} 9957 9958// Information about a set of Amazon ECS tasks in an AWS CodeDeploy deployment. 9959// An Amazon ECS task set includes details such as the desired number of tasks, 9960// how many tasks are running, and whether the task set serves production traffic. 9961// An AWS CodeDeploy application that uses the Amazon ECS compute platform deploys 9962// a containerized application in an Amazon ECS service as a task set. 9963type ECSTaskSet struct { 9964 _ struct{} `type:"structure"` 9965 9966 // The number of tasks in a task set. During a deployment that uses the Amazon 9967 // ECS compute type, CodeDeploy instructs Amazon ECS to create a new task set 9968 // and uses this value to determine how many tasks to create. After the updated 9969 // task set is created, CodeDeploy shifts traffic to the new task set. 9970 DesiredCount *int64 `locationName:"desiredCount" type:"long"` 9971 9972 // A unique ID of an ECSTaskSet. 9973 Identifer *string `locationName:"identifer" type:"string"` 9974 9975 // The number of tasks in the task set that are in the PENDING status during 9976 // an Amazon ECS deployment. A task in the PENDING state is preparing to enter 9977 // the RUNNING state. A task set enters the PENDING status when it launches 9978 // for the first time, or when it is restarted after being in the STOPPED state. 9979 PendingCount *int64 `locationName:"pendingCount" type:"long"` 9980 9981 // The number of tasks in the task set that are in the RUNNING status during 9982 // an Amazon ECS deployment. A task in the RUNNING state is running and ready 9983 // for use. 9984 RunningCount *int64 `locationName:"runningCount" type:"long"` 9985 9986 // The status of the task set. There are three valid task set statuses: 9987 // 9988 // * PRIMARY: Indicates the task set is serving production traffic. 9989 // 9990 // * ACTIVE: Indicates the task set is not serving production traffic. 9991 // 9992 // * DRAINING: Indicates the tasks in the task set are being stopped and 9993 // their corresponding targets are being deregistered from their target group. 9994 Status *string `locationName:"status" type:"string"` 9995 9996 // The target group associated with the task set. The target group is used by 9997 // AWS CodeDeploy to manage traffic to a task set. 9998 TargetGroup *TargetGroupInfo `locationName:"targetGroup" type:"structure"` 9999 10000 // A label that identifies whether the ECS task set is an original target (BLUE) 10001 // or a replacement target (GREEN). 10002 TaskSetLabel *string `locationName:"taskSetLabel" type:"string" enum:"TargetLabel"` 10003 10004 // The percentage of traffic served by this task set. 10005 TrafficWeight *float64 `locationName:"trafficWeight" type:"double"` 10006} 10007 10008// String returns the string representation 10009func (s ECSTaskSet) String() string { 10010 return awsutil.Prettify(s) 10011} 10012 10013// GoString returns the string representation 10014func (s ECSTaskSet) GoString() string { 10015 return s.String() 10016} 10017 10018// SetDesiredCount sets the DesiredCount field's value. 10019func (s *ECSTaskSet) SetDesiredCount(v int64) *ECSTaskSet { 10020 s.DesiredCount = &v 10021 return s 10022} 10023 10024// SetIdentifer sets the Identifer field's value. 10025func (s *ECSTaskSet) SetIdentifer(v string) *ECSTaskSet { 10026 s.Identifer = &v 10027 return s 10028} 10029 10030// SetPendingCount sets the PendingCount field's value. 10031func (s *ECSTaskSet) SetPendingCount(v int64) *ECSTaskSet { 10032 s.PendingCount = &v 10033 return s 10034} 10035 10036// SetRunningCount sets the RunningCount field's value. 10037func (s *ECSTaskSet) SetRunningCount(v int64) *ECSTaskSet { 10038 s.RunningCount = &v 10039 return s 10040} 10041 10042// SetStatus sets the Status field's value. 10043func (s *ECSTaskSet) SetStatus(v string) *ECSTaskSet { 10044 s.Status = &v 10045 return s 10046} 10047 10048// SetTargetGroup sets the TargetGroup field's value. 10049func (s *ECSTaskSet) SetTargetGroup(v *TargetGroupInfo) *ECSTaskSet { 10050 s.TargetGroup = v 10051 return s 10052} 10053 10054// SetTaskSetLabel sets the TaskSetLabel field's value. 10055func (s *ECSTaskSet) SetTaskSetLabel(v string) *ECSTaskSet { 10056 s.TaskSetLabel = &v 10057 return s 10058} 10059 10060// SetTrafficWeight sets the TrafficWeight field's value. 10061func (s *ECSTaskSet) SetTrafficWeight(v float64) *ECSTaskSet { 10062 s.TrafficWeight = &v 10063 return s 10064} 10065 10066// Information about a load balancer in Elastic Load Balancing to use in a deployment. 10067// Instances are registered directly with a load balancer, and traffic is routed 10068// to the load balancer. 10069type ELBInfo struct { 10070 _ struct{} `type:"structure"` 10071 10072 // For blue/green deployments, the name of the load balancer that is used to 10073 // route traffic from original instances to replacement instances in a blue/green 10074 // deployment. For in-place deployments, the name of the load balancer that 10075 // instances are deregistered from so they are not serving traffic during a 10076 // deployment, and then re-registered with after the deployment is complete. 10077 Name *string `locationName:"name" type:"string"` 10078} 10079 10080// String returns the string representation 10081func (s ELBInfo) String() string { 10082 return awsutil.Prettify(s) 10083} 10084 10085// GoString returns the string representation 10086func (s ELBInfo) GoString() string { 10087 return s.String() 10088} 10089 10090// SetName sets the Name field's value. 10091func (s *ELBInfo) SetName(v string) *ELBInfo { 10092 s.Name = &v 10093 return s 10094} 10095 10096// Information about a deployment error. 10097type ErrorInformation struct { 10098 _ struct{} `type:"structure"` 10099 10100 // For more information, see Error Codes for AWS CodeDeploy (https://docs.aws.amazon.com/codedeploy/latest/userguide/error-codes.html) 10101 // in the AWS CodeDeploy User Guide (https://docs.aws.amazon.com/codedeploy/latest/userguide). 10102 // 10103 // The error code: 10104 // 10105 // * APPLICATION_MISSING: The application was missing. This error code is 10106 // most likely raised if the application is deleted after the deployment 10107 // is created, but before it is started. 10108 // 10109 // * DEPLOYMENT_GROUP_MISSING: The deployment group was missing. This error 10110 // code is most likely raised if the deployment group is deleted after the 10111 // deployment is created, but before it is started. 10112 // 10113 // * HEALTH_CONSTRAINTS: The deployment failed on too many instances to be 10114 // successfully deployed within the instance health constraints specified. 10115 // 10116 // * HEALTH_CONSTRAINTS_INVALID: The revision cannot be successfully deployed 10117 // within the instance health constraints specified. 10118 // 10119 // * IAM_ROLE_MISSING: The service role cannot be accessed. 10120 // 10121 // * IAM_ROLE_PERMISSIONS: The service role does not have the correct permissions. 10122 // 10123 // * INTERNAL_ERROR: There was an internal error. 10124 // 10125 // * NO_EC2_SUBSCRIPTION: The calling account is not subscribed to Amazon 10126 // EC2. 10127 // 10128 // * NO_INSTANCES: No instances were specified, or no instances can be found. 10129 // 10130 // * OVER_MAX_INSTANCES: The maximum number of instances was exceeded. 10131 // 10132 // * THROTTLED: The operation was throttled because the calling account exceeded 10133 // the throttling limits of one or more AWS services. 10134 // 10135 // * TIMEOUT: The deployment has timed out. 10136 // 10137 // * REVISION_MISSING: The revision ID was missing. This error code is most 10138 // likely raised if the revision is deleted after the deployment is created, 10139 // but before it is started. 10140 Code *string `locationName:"code" type:"string" enum:"ErrorCode"` 10141 10142 // An accompanying error message. 10143 Message *string `locationName:"message" type:"string"` 10144} 10145 10146// String returns the string representation 10147func (s ErrorInformation) String() string { 10148 return awsutil.Prettify(s) 10149} 10150 10151// GoString returns the string representation 10152func (s ErrorInformation) GoString() string { 10153 return s.String() 10154} 10155 10156// SetCode sets the Code field's value. 10157func (s *ErrorInformation) SetCode(v string) *ErrorInformation { 10158 s.Code = &v 10159 return s 10160} 10161 10162// SetMessage sets the Message field's value. 10163func (s *ErrorInformation) SetMessage(v string) *ErrorInformation { 10164 s.Message = &v 10165 return s 10166} 10167 10168// Information about an application revision. 10169type GenericRevisionInfo struct { 10170 _ struct{} `type:"structure"` 10171 10172 // The deployment groups for which this is the current target revision. 10173 DeploymentGroups []*string `locationName:"deploymentGroups" type:"list"` 10174 10175 // A comment about the revision. 10176 Description *string `locationName:"description" type:"string"` 10177 10178 // When the revision was first used by AWS CodeDeploy. 10179 FirstUsedTime *time.Time `locationName:"firstUsedTime" type:"timestamp"` 10180 10181 // When the revision was last used by AWS CodeDeploy. 10182 LastUsedTime *time.Time `locationName:"lastUsedTime" type:"timestamp"` 10183 10184 // When the revision was registered with AWS CodeDeploy. 10185 RegisterTime *time.Time `locationName:"registerTime" type:"timestamp"` 10186} 10187 10188// String returns the string representation 10189func (s GenericRevisionInfo) String() string { 10190 return awsutil.Prettify(s) 10191} 10192 10193// GoString returns the string representation 10194func (s GenericRevisionInfo) GoString() string { 10195 return s.String() 10196} 10197 10198// SetDeploymentGroups sets the DeploymentGroups field's value. 10199func (s *GenericRevisionInfo) SetDeploymentGroups(v []*string) *GenericRevisionInfo { 10200 s.DeploymentGroups = v 10201 return s 10202} 10203 10204// SetDescription sets the Description field's value. 10205func (s *GenericRevisionInfo) SetDescription(v string) *GenericRevisionInfo { 10206 s.Description = &v 10207 return s 10208} 10209 10210// SetFirstUsedTime sets the FirstUsedTime field's value. 10211func (s *GenericRevisionInfo) SetFirstUsedTime(v time.Time) *GenericRevisionInfo { 10212 s.FirstUsedTime = &v 10213 return s 10214} 10215 10216// SetLastUsedTime sets the LastUsedTime field's value. 10217func (s *GenericRevisionInfo) SetLastUsedTime(v time.Time) *GenericRevisionInfo { 10218 s.LastUsedTime = &v 10219 return s 10220} 10221 10222// SetRegisterTime sets the RegisterTime field's value. 10223func (s *GenericRevisionInfo) SetRegisterTime(v time.Time) *GenericRevisionInfo { 10224 s.RegisterTime = &v 10225 return s 10226} 10227 10228// Represents the input of a GetApplication operation. 10229type GetApplicationInput struct { 10230 _ struct{} `type:"structure"` 10231 10232 // The name of an AWS CodeDeploy application associated with the IAM user or 10233 // AWS account. 10234 // 10235 // ApplicationName is a required field 10236 ApplicationName *string `locationName:"applicationName" min:"1" type:"string" required:"true"` 10237} 10238 10239// String returns the string representation 10240func (s GetApplicationInput) String() string { 10241 return awsutil.Prettify(s) 10242} 10243 10244// GoString returns the string representation 10245func (s GetApplicationInput) GoString() string { 10246 return s.String() 10247} 10248 10249// Validate inspects the fields of the type to determine if they are valid. 10250func (s *GetApplicationInput) Validate() error { 10251 invalidParams := request.ErrInvalidParams{Context: "GetApplicationInput"} 10252 if s.ApplicationName == nil { 10253 invalidParams.Add(request.NewErrParamRequired("ApplicationName")) 10254 } 10255 if s.ApplicationName != nil && len(*s.ApplicationName) < 1 { 10256 invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1)) 10257 } 10258 10259 if invalidParams.Len() > 0 { 10260 return invalidParams 10261 } 10262 return nil 10263} 10264 10265// SetApplicationName sets the ApplicationName field's value. 10266func (s *GetApplicationInput) SetApplicationName(v string) *GetApplicationInput { 10267 s.ApplicationName = &v 10268 return s 10269} 10270 10271// Represents the output of a GetApplication operation. 10272type GetApplicationOutput struct { 10273 _ struct{} `type:"structure"` 10274 10275 // Information about the application. 10276 Application *ApplicationInfo `locationName:"application" type:"structure"` 10277} 10278 10279// String returns the string representation 10280func (s GetApplicationOutput) String() string { 10281 return awsutil.Prettify(s) 10282} 10283 10284// GoString returns the string representation 10285func (s GetApplicationOutput) GoString() string { 10286 return s.String() 10287} 10288 10289// SetApplication sets the Application field's value. 10290func (s *GetApplicationOutput) SetApplication(v *ApplicationInfo) *GetApplicationOutput { 10291 s.Application = v 10292 return s 10293} 10294 10295// Represents the input of a GetApplicationRevision operation. 10296type GetApplicationRevisionInput struct { 10297 _ struct{} `type:"structure"` 10298 10299 // The name of the application that corresponds to the revision. 10300 // 10301 // ApplicationName is a required field 10302 ApplicationName *string `locationName:"applicationName" min:"1" type:"string" required:"true"` 10303 10304 // Information about the application revision to get, including type and location. 10305 // 10306 // Revision is a required field 10307 Revision *RevisionLocation `locationName:"revision" type:"structure" required:"true"` 10308} 10309 10310// String returns the string representation 10311func (s GetApplicationRevisionInput) String() string { 10312 return awsutil.Prettify(s) 10313} 10314 10315// GoString returns the string representation 10316func (s GetApplicationRevisionInput) GoString() string { 10317 return s.String() 10318} 10319 10320// Validate inspects the fields of the type to determine if they are valid. 10321func (s *GetApplicationRevisionInput) Validate() error { 10322 invalidParams := request.ErrInvalidParams{Context: "GetApplicationRevisionInput"} 10323 if s.ApplicationName == nil { 10324 invalidParams.Add(request.NewErrParamRequired("ApplicationName")) 10325 } 10326 if s.ApplicationName != nil && len(*s.ApplicationName) < 1 { 10327 invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1)) 10328 } 10329 if s.Revision == nil { 10330 invalidParams.Add(request.NewErrParamRequired("Revision")) 10331 } 10332 10333 if invalidParams.Len() > 0 { 10334 return invalidParams 10335 } 10336 return nil 10337} 10338 10339// SetApplicationName sets the ApplicationName field's value. 10340func (s *GetApplicationRevisionInput) SetApplicationName(v string) *GetApplicationRevisionInput { 10341 s.ApplicationName = &v 10342 return s 10343} 10344 10345// SetRevision sets the Revision field's value. 10346func (s *GetApplicationRevisionInput) SetRevision(v *RevisionLocation) *GetApplicationRevisionInput { 10347 s.Revision = v 10348 return s 10349} 10350 10351// Represents the output of a GetApplicationRevision operation. 10352type GetApplicationRevisionOutput struct { 10353 _ struct{} `type:"structure"` 10354 10355 // The name of the application that corresponds to the revision. 10356 ApplicationName *string `locationName:"applicationName" min:"1" type:"string"` 10357 10358 // Additional information about the revision, including type and location. 10359 Revision *RevisionLocation `locationName:"revision" type:"structure"` 10360 10361 // General information about the revision. 10362 RevisionInfo *GenericRevisionInfo `locationName:"revisionInfo" type:"structure"` 10363} 10364 10365// String returns the string representation 10366func (s GetApplicationRevisionOutput) String() string { 10367 return awsutil.Prettify(s) 10368} 10369 10370// GoString returns the string representation 10371func (s GetApplicationRevisionOutput) GoString() string { 10372 return s.String() 10373} 10374 10375// SetApplicationName sets the ApplicationName field's value. 10376func (s *GetApplicationRevisionOutput) SetApplicationName(v string) *GetApplicationRevisionOutput { 10377 s.ApplicationName = &v 10378 return s 10379} 10380 10381// SetRevision sets the Revision field's value. 10382func (s *GetApplicationRevisionOutput) SetRevision(v *RevisionLocation) *GetApplicationRevisionOutput { 10383 s.Revision = v 10384 return s 10385} 10386 10387// SetRevisionInfo sets the RevisionInfo field's value. 10388func (s *GetApplicationRevisionOutput) SetRevisionInfo(v *GenericRevisionInfo) *GetApplicationRevisionOutput { 10389 s.RevisionInfo = v 10390 return s 10391} 10392 10393// Represents the input of a GetDeploymentConfig operation. 10394type GetDeploymentConfigInput struct { 10395 _ struct{} `type:"structure"` 10396 10397 // The name of a deployment configuration associated with the IAM user or AWS 10398 // account. 10399 // 10400 // DeploymentConfigName is a required field 10401 DeploymentConfigName *string `locationName:"deploymentConfigName" min:"1" type:"string" required:"true"` 10402} 10403 10404// String returns the string representation 10405func (s GetDeploymentConfigInput) String() string { 10406 return awsutil.Prettify(s) 10407} 10408 10409// GoString returns the string representation 10410func (s GetDeploymentConfigInput) GoString() string { 10411 return s.String() 10412} 10413 10414// Validate inspects the fields of the type to determine if they are valid. 10415func (s *GetDeploymentConfigInput) Validate() error { 10416 invalidParams := request.ErrInvalidParams{Context: "GetDeploymentConfigInput"} 10417 if s.DeploymentConfigName == nil { 10418 invalidParams.Add(request.NewErrParamRequired("DeploymentConfigName")) 10419 } 10420 if s.DeploymentConfigName != nil && len(*s.DeploymentConfigName) < 1 { 10421 invalidParams.Add(request.NewErrParamMinLen("DeploymentConfigName", 1)) 10422 } 10423 10424 if invalidParams.Len() > 0 { 10425 return invalidParams 10426 } 10427 return nil 10428} 10429 10430// SetDeploymentConfigName sets the DeploymentConfigName field's value. 10431func (s *GetDeploymentConfigInput) SetDeploymentConfigName(v string) *GetDeploymentConfigInput { 10432 s.DeploymentConfigName = &v 10433 return s 10434} 10435 10436// Represents the output of a GetDeploymentConfig operation. 10437type GetDeploymentConfigOutput struct { 10438 _ struct{} `type:"structure"` 10439 10440 // Information about the deployment configuration. 10441 DeploymentConfigInfo *DeploymentConfigInfo `locationName:"deploymentConfigInfo" type:"structure"` 10442} 10443 10444// String returns the string representation 10445func (s GetDeploymentConfigOutput) String() string { 10446 return awsutil.Prettify(s) 10447} 10448 10449// GoString returns the string representation 10450func (s GetDeploymentConfigOutput) GoString() string { 10451 return s.String() 10452} 10453 10454// SetDeploymentConfigInfo sets the DeploymentConfigInfo field's value. 10455func (s *GetDeploymentConfigOutput) SetDeploymentConfigInfo(v *DeploymentConfigInfo) *GetDeploymentConfigOutput { 10456 s.DeploymentConfigInfo = v 10457 return s 10458} 10459 10460// Represents the input of a GetDeploymentGroup operation. 10461type GetDeploymentGroupInput struct { 10462 _ struct{} `type:"structure"` 10463 10464 // The name of an AWS CodeDeploy application associated with the IAM user or 10465 // AWS account. 10466 // 10467 // ApplicationName is a required field 10468 ApplicationName *string `locationName:"applicationName" min:"1" type:"string" required:"true"` 10469 10470 // The name of a deployment group for the specified application. 10471 // 10472 // DeploymentGroupName is a required field 10473 DeploymentGroupName *string `locationName:"deploymentGroupName" min:"1" type:"string" required:"true"` 10474} 10475 10476// String returns the string representation 10477func (s GetDeploymentGroupInput) String() string { 10478 return awsutil.Prettify(s) 10479} 10480 10481// GoString returns the string representation 10482func (s GetDeploymentGroupInput) GoString() string { 10483 return s.String() 10484} 10485 10486// Validate inspects the fields of the type to determine if they are valid. 10487func (s *GetDeploymentGroupInput) Validate() error { 10488 invalidParams := request.ErrInvalidParams{Context: "GetDeploymentGroupInput"} 10489 if s.ApplicationName == nil { 10490 invalidParams.Add(request.NewErrParamRequired("ApplicationName")) 10491 } 10492 if s.ApplicationName != nil && len(*s.ApplicationName) < 1 { 10493 invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1)) 10494 } 10495 if s.DeploymentGroupName == nil { 10496 invalidParams.Add(request.NewErrParamRequired("DeploymentGroupName")) 10497 } 10498 if s.DeploymentGroupName != nil && len(*s.DeploymentGroupName) < 1 { 10499 invalidParams.Add(request.NewErrParamMinLen("DeploymentGroupName", 1)) 10500 } 10501 10502 if invalidParams.Len() > 0 { 10503 return invalidParams 10504 } 10505 return nil 10506} 10507 10508// SetApplicationName sets the ApplicationName field's value. 10509func (s *GetDeploymentGroupInput) SetApplicationName(v string) *GetDeploymentGroupInput { 10510 s.ApplicationName = &v 10511 return s 10512} 10513 10514// SetDeploymentGroupName sets the DeploymentGroupName field's value. 10515func (s *GetDeploymentGroupInput) SetDeploymentGroupName(v string) *GetDeploymentGroupInput { 10516 s.DeploymentGroupName = &v 10517 return s 10518} 10519 10520// Represents the output of a GetDeploymentGroup operation. 10521type GetDeploymentGroupOutput struct { 10522 _ struct{} `type:"structure"` 10523 10524 // Information about the deployment group. 10525 DeploymentGroupInfo *DeploymentGroupInfo `locationName:"deploymentGroupInfo" type:"structure"` 10526} 10527 10528// String returns the string representation 10529func (s GetDeploymentGroupOutput) String() string { 10530 return awsutil.Prettify(s) 10531} 10532 10533// GoString returns the string representation 10534func (s GetDeploymentGroupOutput) GoString() string { 10535 return s.String() 10536} 10537 10538// SetDeploymentGroupInfo sets the DeploymentGroupInfo field's value. 10539func (s *GetDeploymentGroupOutput) SetDeploymentGroupInfo(v *DeploymentGroupInfo) *GetDeploymentGroupOutput { 10540 s.DeploymentGroupInfo = v 10541 return s 10542} 10543 10544// Represents the input of a GetDeployment operation. 10545type GetDeploymentInput struct { 10546 _ struct{} `type:"structure"` 10547 10548 // The unique ID of a deployment associated with the IAM user or AWS account. 10549 // 10550 // DeploymentId is a required field 10551 DeploymentId *string `locationName:"deploymentId" type:"string" required:"true"` 10552} 10553 10554// String returns the string representation 10555func (s GetDeploymentInput) String() string { 10556 return awsutil.Prettify(s) 10557} 10558 10559// GoString returns the string representation 10560func (s GetDeploymentInput) GoString() string { 10561 return s.String() 10562} 10563 10564// Validate inspects the fields of the type to determine if they are valid. 10565func (s *GetDeploymentInput) Validate() error { 10566 invalidParams := request.ErrInvalidParams{Context: "GetDeploymentInput"} 10567 if s.DeploymentId == nil { 10568 invalidParams.Add(request.NewErrParamRequired("DeploymentId")) 10569 } 10570 10571 if invalidParams.Len() > 0 { 10572 return invalidParams 10573 } 10574 return nil 10575} 10576 10577// SetDeploymentId sets the DeploymentId field's value. 10578func (s *GetDeploymentInput) SetDeploymentId(v string) *GetDeploymentInput { 10579 s.DeploymentId = &v 10580 return s 10581} 10582 10583// Represents the input of a GetDeploymentInstance operation. 10584type GetDeploymentInstanceInput struct { 10585 _ struct{} `type:"structure"` 10586 10587 // The unique ID of a deployment. 10588 // 10589 // DeploymentId is a required field 10590 DeploymentId *string `locationName:"deploymentId" type:"string" required:"true"` 10591 10592 // The unique ID of an instance in the deployment group. 10593 // 10594 // InstanceId is a required field 10595 InstanceId *string `locationName:"instanceId" type:"string" required:"true"` 10596} 10597 10598// String returns the string representation 10599func (s GetDeploymentInstanceInput) String() string { 10600 return awsutil.Prettify(s) 10601} 10602 10603// GoString returns the string representation 10604func (s GetDeploymentInstanceInput) GoString() string { 10605 return s.String() 10606} 10607 10608// Validate inspects the fields of the type to determine if they are valid. 10609func (s *GetDeploymentInstanceInput) Validate() error { 10610 invalidParams := request.ErrInvalidParams{Context: "GetDeploymentInstanceInput"} 10611 if s.DeploymentId == nil { 10612 invalidParams.Add(request.NewErrParamRequired("DeploymentId")) 10613 } 10614 if s.InstanceId == nil { 10615 invalidParams.Add(request.NewErrParamRequired("InstanceId")) 10616 } 10617 10618 if invalidParams.Len() > 0 { 10619 return invalidParams 10620 } 10621 return nil 10622} 10623 10624// SetDeploymentId sets the DeploymentId field's value. 10625func (s *GetDeploymentInstanceInput) SetDeploymentId(v string) *GetDeploymentInstanceInput { 10626 s.DeploymentId = &v 10627 return s 10628} 10629 10630// SetInstanceId sets the InstanceId field's value. 10631func (s *GetDeploymentInstanceInput) SetInstanceId(v string) *GetDeploymentInstanceInput { 10632 s.InstanceId = &v 10633 return s 10634} 10635 10636// Represents the output of a GetDeploymentInstance operation. 10637type GetDeploymentInstanceOutput struct { 10638 _ struct{} `type:"structure"` 10639 10640 // Information about the instance. 10641 InstanceSummary *InstanceSummary `locationName:"instanceSummary" deprecated:"true" type:"structure"` 10642} 10643 10644// String returns the string representation 10645func (s GetDeploymentInstanceOutput) String() string { 10646 return awsutil.Prettify(s) 10647} 10648 10649// GoString returns the string representation 10650func (s GetDeploymentInstanceOutput) GoString() string { 10651 return s.String() 10652} 10653 10654// SetInstanceSummary sets the InstanceSummary field's value. 10655func (s *GetDeploymentInstanceOutput) SetInstanceSummary(v *InstanceSummary) *GetDeploymentInstanceOutput { 10656 s.InstanceSummary = v 10657 return s 10658} 10659 10660// Represents the output of a GetDeployment operation. 10661type GetDeploymentOutput struct { 10662 _ struct{} `type:"structure"` 10663 10664 // Information about the deployment. 10665 DeploymentInfo *DeploymentInfo `locationName:"deploymentInfo" type:"structure"` 10666} 10667 10668// String returns the string representation 10669func (s GetDeploymentOutput) String() string { 10670 return awsutil.Prettify(s) 10671} 10672 10673// GoString returns the string representation 10674func (s GetDeploymentOutput) GoString() string { 10675 return s.String() 10676} 10677 10678// SetDeploymentInfo sets the DeploymentInfo field's value. 10679func (s *GetDeploymentOutput) SetDeploymentInfo(v *DeploymentInfo) *GetDeploymentOutput { 10680 s.DeploymentInfo = v 10681 return s 10682} 10683 10684type GetDeploymentTargetInput struct { 10685 _ struct{} `type:"structure"` 10686 10687 // The unique ID of a deployment. 10688 DeploymentId *string `locationName:"deploymentId" type:"string"` 10689 10690 // The unique ID of a deployment target. 10691 TargetId *string `locationName:"targetId" type:"string"` 10692} 10693 10694// String returns the string representation 10695func (s GetDeploymentTargetInput) String() string { 10696 return awsutil.Prettify(s) 10697} 10698 10699// GoString returns the string representation 10700func (s GetDeploymentTargetInput) GoString() string { 10701 return s.String() 10702} 10703 10704// SetDeploymentId sets the DeploymentId field's value. 10705func (s *GetDeploymentTargetInput) SetDeploymentId(v string) *GetDeploymentTargetInput { 10706 s.DeploymentId = &v 10707 return s 10708} 10709 10710// SetTargetId sets the TargetId field's value. 10711func (s *GetDeploymentTargetInput) SetTargetId(v string) *GetDeploymentTargetInput { 10712 s.TargetId = &v 10713 return s 10714} 10715 10716type GetDeploymentTargetOutput struct { 10717 _ struct{} `type:"structure"` 10718 10719 // A deployment target that contains information about a deployment such as 10720 // its status, lifecycle events, and when it was last updated. It also contains 10721 // metadata about the deployment target. The deployment target metadata depends 10722 // on the deployment target's type (instanceTarget, lambdaTarget, or ecsTarget). 10723 DeploymentTarget *DeploymentTarget `locationName:"deploymentTarget" type:"structure"` 10724} 10725 10726// String returns the string representation 10727func (s GetDeploymentTargetOutput) String() string { 10728 return awsutil.Prettify(s) 10729} 10730 10731// GoString returns the string representation 10732func (s GetDeploymentTargetOutput) GoString() string { 10733 return s.String() 10734} 10735 10736// SetDeploymentTarget sets the DeploymentTarget field's value. 10737func (s *GetDeploymentTargetOutput) SetDeploymentTarget(v *DeploymentTarget) *GetDeploymentTargetOutput { 10738 s.DeploymentTarget = v 10739 return s 10740} 10741 10742// Represents the input of a GetOnPremisesInstance operation. 10743type GetOnPremisesInstanceInput struct { 10744 _ struct{} `type:"structure"` 10745 10746 // The name of the on-premises instance about which to get information. 10747 // 10748 // InstanceName is a required field 10749 InstanceName *string `locationName:"instanceName" type:"string" required:"true"` 10750} 10751 10752// String returns the string representation 10753func (s GetOnPremisesInstanceInput) String() string { 10754 return awsutil.Prettify(s) 10755} 10756 10757// GoString returns the string representation 10758func (s GetOnPremisesInstanceInput) GoString() string { 10759 return s.String() 10760} 10761 10762// Validate inspects the fields of the type to determine if they are valid. 10763func (s *GetOnPremisesInstanceInput) Validate() error { 10764 invalidParams := request.ErrInvalidParams{Context: "GetOnPremisesInstanceInput"} 10765 if s.InstanceName == nil { 10766 invalidParams.Add(request.NewErrParamRequired("InstanceName")) 10767 } 10768 10769 if invalidParams.Len() > 0 { 10770 return invalidParams 10771 } 10772 return nil 10773} 10774 10775// SetInstanceName sets the InstanceName field's value. 10776func (s *GetOnPremisesInstanceInput) SetInstanceName(v string) *GetOnPremisesInstanceInput { 10777 s.InstanceName = &v 10778 return s 10779} 10780 10781// Represents the output of a GetOnPremisesInstance operation. 10782type GetOnPremisesInstanceOutput struct { 10783 _ struct{} `type:"structure"` 10784 10785 // Information about the on-premises instance. 10786 InstanceInfo *InstanceInfo `locationName:"instanceInfo" type:"structure"` 10787} 10788 10789// String returns the string representation 10790func (s GetOnPremisesInstanceOutput) String() string { 10791 return awsutil.Prettify(s) 10792} 10793 10794// GoString returns the string representation 10795func (s GetOnPremisesInstanceOutput) GoString() string { 10796 return s.String() 10797} 10798 10799// SetInstanceInfo sets the InstanceInfo field's value. 10800func (s *GetOnPremisesInstanceOutput) SetInstanceInfo(v *InstanceInfo) *GetOnPremisesInstanceOutput { 10801 s.InstanceInfo = v 10802 return s 10803} 10804 10805// No GitHub account connection exists with the named specified in the call. 10806type GitHubAccountTokenDoesNotExistException struct { 10807 _ struct{} `type:"structure"` 10808 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 10809 10810 Message_ *string `locationName:"message" type:"string"` 10811} 10812 10813// String returns the string representation 10814func (s GitHubAccountTokenDoesNotExistException) String() string { 10815 return awsutil.Prettify(s) 10816} 10817 10818// GoString returns the string representation 10819func (s GitHubAccountTokenDoesNotExistException) GoString() string { 10820 return s.String() 10821} 10822 10823func newErrorGitHubAccountTokenDoesNotExistException(v protocol.ResponseMetadata) error { 10824 return &GitHubAccountTokenDoesNotExistException{ 10825 RespMetadata: v, 10826 } 10827} 10828 10829// Code returns the exception type name. 10830func (s *GitHubAccountTokenDoesNotExistException) Code() string { 10831 return "GitHubAccountTokenDoesNotExistException" 10832} 10833 10834// Message returns the exception's message. 10835func (s *GitHubAccountTokenDoesNotExistException) Message() string { 10836 if s.Message_ != nil { 10837 return *s.Message_ 10838 } 10839 return "" 10840} 10841 10842// OrigErr always returns nil, satisfies awserr.Error interface. 10843func (s *GitHubAccountTokenDoesNotExistException) OrigErr() error { 10844 return nil 10845} 10846 10847func (s *GitHubAccountTokenDoesNotExistException) Error() string { 10848 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 10849} 10850 10851// Status code returns the HTTP status code for the request's response error. 10852func (s *GitHubAccountTokenDoesNotExistException) StatusCode() int { 10853 return s.RespMetadata.StatusCode 10854} 10855 10856// RequestID returns the service's response RequestID for request. 10857func (s *GitHubAccountTokenDoesNotExistException) RequestID() string { 10858 return s.RespMetadata.RequestID 10859} 10860 10861// The call is missing a required GitHub account connection name. 10862type GitHubAccountTokenNameRequiredException struct { 10863 _ struct{} `type:"structure"` 10864 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 10865 10866 Message_ *string `locationName:"message" type:"string"` 10867} 10868 10869// String returns the string representation 10870func (s GitHubAccountTokenNameRequiredException) String() string { 10871 return awsutil.Prettify(s) 10872} 10873 10874// GoString returns the string representation 10875func (s GitHubAccountTokenNameRequiredException) GoString() string { 10876 return s.String() 10877} 10878 10879func newErrorGitHubAccountTokenNameRequiredException(v protocol.ResponseMetadata) error { 10880 return &GitHubAccountTokenNameRequiredException{ 10881 RespMetadata: v, 10882 } 10883} 10884 10885// Code returns the exception type name. 10886func (s *GitHubAccountTokenNameRequiredException) Code() string { 10887 return "GitHubAccountTokenNameRequiredException" 10888} 10889 10890// Message returns the exception's message. 10891func (s *GitHubAccountTokenNameRequiredException) Message() string { 10892 if s.Message_ != nil { 10893 return *s.Message_ 10894 } 10895 return "" 10896} 10897 10898// OrigErr always returns nil, satisfies awserr.Error interface. 10899func (s *GitHubAccountTokenNameRequiredException) OrigErr() error { 10900 return nil 10901} 10902 10903func (s *GitHubAccountTokenNameRequiredException) Error() string { 10904 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 10905} 10906 10907// Status code returns the HTTP status code for the request's response error. 10908func (s *GitHubAccountTokenNameRequiredException) StatusCode() int { 10909 return s.RespMetadata.StatusCode 10910} 10911 10912// RequestID returns the service's response RequestID for request. 10913func (s *GitHubAccountTokenNameRequiredException) RequestID() string { 10914 return s.RespMetadata.RequestID 10915} 10916 10917// Information about the location of application artifacts stored in GitHub. 10918type GitHubLocation struct { 10919 _ struct{} `type:"structure"` 10920 10921 // The SHA1 commit ID of the GitHub commit that represents the bundled artifacts 10922 // for the application revision. 10923 CommitId *string `locationName:"commitId" type:"string"` 10924 10925 // The GitHub account and repository pair that stores a reference to the commit 10926 // that represents the bundled artifacts for the application revision. 10927 // 10928 // Specified as account/repository. 10929 Repository *string `locationName:"repository" type:"string"` 10930} 10931 10932// String returns the string representation 10933func (s GitHubLocation) String() string { 10934 return awsutil.Prettify(s) 10935} 10936 10937// GoString returns the string representation 10938func (s GitHubLocation) GoString() string { 10939 return s.String() 10940} 10941 10942// SetCommitId sets the CommitId field's value. 10943func (s *GitHubLocation) SetCommitId(v string) *GitHubLocation { 10944 s.CommitId = &v 10945 return s 10946} 10947 10948// SetRepository sets the Repository field's value. 10949func (s *GitHubLocation) SetRepository(v string) *GitHubLocation { 10950 s.Repository = &v 10951 return s 10952} 10953 10954// Information about the instances that belong to the replacement environment 10955// in a blue/green deployment. 10956type GreenFleetProvisioningOption struct { 10957 _ struct{} `type:"structure"` 10958 10959 // The method used to add instances to a replacement environment. 10960 // 10961 // * DISCOVER_EXISTING: Use instances that already exist or will be created 10962 // manually. 10963 // 10964 // * COPY_AUTO_SCALING_GROUP: Use settings from a specified Auto Scaling 10965 // group to define and create instances in a new Auto Scaling group. 10966 Action *string `locationName:"action" type:"string" enum:"GreenFleetProvisioningAction"` 10967} 10968 10969// String returns the string representation 10970func (s GreenFleetProvisioningOption) String() string { 10971 return awsutil.Prettify(s) 10972} 10973 10974// GoString returns the string representation 10975func (s GreenFleetProvisioningOption) GoString() string { 10976 return s.String() 10977} 10978 10979// SetAction sets the Action field's value. 10980func (s *GreenFleetProvisioningOption) SetAction(v string) *GreenFleetProvisioningOption { 10981 s.Action = &v 10982 return s 10983} 10984 10985// No IAM ARN was included in the request. You must use an IAM session ARN or 10986// IAM user ARN in the request. 10987type IamArnRequiredException struct { 10988 _ struct{} `type:"structure"` 10989 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 10990 10991 Message_ *string `locationName:"message" type:"string"` 10992} 10993 10994// String returns the string representation 10995func (s IamArnRequiredException) String() string { 10996 return awsutil.Prettify(s) 10997} 10998 10999// GoString returns the string representation 11000func (s IamArnRequiredException) GoString() string { 11001 return s.String() 11002} 11003 11004func newErrorIamArnRequiredException(v protocol.ResponseMetadata) error { 11005 return &IamArnRequiredException{ 11006 RespMetadata: v, 11007 } 11008} 11009 11010// Code returns the exception type name. 11011func (s *IamArnRequiredException) Code() string { 11012 return "IamArnRequiredException" 11013} 11014 11015// Message returns the exception's message. 11016func (s *IamArnRequiredException) Message() string { 11017 if s.Message_ != nil { 11018 return *s.Message_ 11019 } 11020 return "" 11021} 11022 11023// OrigErr always returns nil, satisfies awserr.Error interface. 11024func (s *IamArnRequiredException) OrigErr() error { 11025 return nil 11026} 11027 11028func (s *IamArnRequiredException) Error() string { 11029 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 11030} 11031 11032// Status code returns the HTTP status code for the request's response error. 11033func (s *IamArnRequiredException) StatusCode() int { 11034 return s.RespMetadata.StatusCode 11035} 11036 11037// RequestID returns the service's response RequestID for request. 11038func (s *IamArnRequiredException) RequestID() string { 11039 return s.RespMetadata.RequestID 11040} 11041 11042// The request included an IAM session ARN that has already been used to register 11043// a different instance. 11044type IamSessionArnAlreadyRegisteredException struct { 11045 _ struct{} `type:"structure"` 11046 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 11047 11048 Message_ *string `locationName:"message" type:"string"` 11049} 11050 11051// String returns the string representation 11052func (s IamSessionArnAlreadyRegisteredException) String() string { 11053 return awsutil.Prettify(s) 11054} 11055 11056// GoString returns the string representation 11057func (s IamSessionArnAlreadyRegisteredException) GoString() string { 11058 return s.String() 11059} 11060 11061func newErrorIamSessionArnAlreadyRegisteredException(v protocol.ResponseMetadata) error { 11062 return &IamSessionArnAlreadyRegisteredException{ 11063 RespMetadata: v, 11064 } 11065} 11066 11067// Code returns the exception type name. 11068func (s *IamSessionArnAlreadyRegisteredException) Code() string { 11069 return "IamSessionArnAlreadyRegisteredException" 11070} 11071 11072// Message returns the exception's message. 11073func (s *IamSessionArnAlreadyRegisteredException) Message() string { 11074 if s.Message_ != nil { 11075 return *s.Message_ 11076 } 11077 return "" 11078} 11079 11080// OrigErr always returns nil, satisfies awserr.Error interface. 11081func (s *IamSessionArnAlreadyRegisteredException) OrigErr() error { 11082 return nil 11083} 11084 11085func (s *IamSessionArnAlreadyRegisteredException) Error() string { 11086 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 11087} 11088 11089// Status code returns the HTTP status code for the request's response error. 11090func (s *IamSessionArnAlreadyRegisteredException) StatusCode() int { 11091 return s.RespMetadata.StatusCode 11092} 11093 11094// RequestID returns the service's response RequestID for request. 11095func (s *IamSessionArnAlreadyRegisteredException) RequestID() string { 11096 return s.RespMetadata.RequestID 11097} 11098 11099// The specified IAM user ARN is already registered with an on-premises instance. 11100type IamUserArnAlreadyRegisteredException struct { 11101 _ struct{} `type:"structure"` 11102 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 11103 11104 Message_ *string `locationName:"message" type:"string"` 11105} 11106 11107// String returns the string representation 11108func (s IamUserArnAlreadyRegisteredException) String() string { 11109 return awsutil.Prettify(s) 11110} 11111 11112// GoString returns the string representation 11113func (s IamUserArnAlreadyRegisteredException) GoString() string { 11114 return s.String() 11115} 11116 11117func newErrorIamUserArnAlreadyRegisteredException(v protocol.ResponseMetadata) error { 11118 return &IamUserArnAlreadyRegisteredException{ 11119 RespMetadata: v, 11120 } 11121} 11122 11123// Code returns the exception type name. 11124func (s *IamUserArnAlreadyRegisteredException) Code() string { 11125 return "IamUserArnAlreadyRegisteredException" 11126} 11127 11128// Message returns the exception's message. 11129func (s *IamUserArnAlreadyRegisteredException) Message() string { 11130 if s.Message_ != nil { 11131 return *s.Message_ 11132 } 11133 return "" 11134} 11135 11136// OrigErr always returns nil, satisfies awserr.Error interface. 11137func (s *IamUserArnAlreadyRegisteredException) OrigErr() error { 11138 return nil 11139} 11140 11141func (s *IamUserArnAlreadyRegisteredException) Error() string { 11142 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 11143} 11144 11145// Status code returns the HTTP status code for the request's response error. 11146func (s *IamUserArnAlreadyRegisteredException) StatusCode() int { 11147 return s.RespMetadata.StatusCode 11148} 11149 11150// RequestID returns the service's response RequestID for request. 11151func (s *IamUserArnAlreadyRegisteredException) RequestID() string { 11152 return s.RespMetadata.RequestID 11153} 11154 11155// An IAM user ARN was not specified. 11156type IamUserArnRequiredException struct { 11157 _ struct{} `type:"structure"` 11158 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 11159 11160 Message_ *string `locationName:"message" type:"string"` 11161} 11162 11163// String returns the string representation 11164func (s IamUserArnRequiredException) String() string { 11165 return awsutil.Prettify(s) 11166} 11167 11168// GoString returns the string representation 11169func (s IamUserArnRequiredException) GoString() string { 11170 return s.String() 11171} 11172 11173func newErrorIamUserArnRequiredException(v protocol.ResponseMetadata) error { 11174 return &IamUserArnRequiredException{ 11175 RespMetadata: v, 11176 } 11177} 11178 11179// Code returns the exception type name. 11180func (s *IamUserArnRequiredException) Code() string { 11181 return "IamUserArnRequiredException" 11182} 11183 11184// Message returns the exception's message. 11185func (s *IamUserArnRequiredException) Message() string { 11186 if s.Message_ != nil { 11187 return *s.Message_ 11188 } 11189 return "" 11190} 11191 11192// OrigErr always returns nil, satisfies awserr.Error interface. 11193func (s *IamUserArnRequiredException) OrigErr() error { 11194 return nil 11195} 11196 11197func (s *IamUserArnRequiredException) Error() string { 11198 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 11199} 11200 11201// Status code returns the HTTP status code for the request's response error. 11202func (s *IamUserArnRequiredException) StatusCode() int { 11203 return s.RespMetadata.StatusCode 11204} 11205 11206// RequestID returns the service's response RequestID for request. 11207func (s *IamUserArnRequiredException) RequestID() string { 11208 return s.RespMetadata.RequestID 11209} 11210 11211// The specified instance does not exist in the deployment group. 11212// 11213// Deprecated: This exception is deprecated, use DeploymentTargetDoesNotExistException instead. 11214type InstanceDoesNotExistException struct { 11215 _ struct{} `deprecated:"true" type:"structure"` 11216 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 11217 11218 Message_ *string `locationName:"message" type:"string"` 11219} 11220 11221// String returns the string representation 11222func (s InstanceDoesNotExistException) String() string { 11223 return awsutil.Prettify(s) 11224} 11225 11226// GoString returns the string representation 11227func (s InstanceDoesNotExistException) GoString() string { 11228 return s.String() 11229} 11230 11231func newErrorInstanceDoesNotExistException(v protocol.ResponseMetadata) error { 11232 return &InstanceDoesNotExistException{ 11233 RespMetadata: v, 11234 } 11235} 11236 11237// Code returns the exception type name. 11238func (s *InstanceDoesNotExistException) Code() string { 11239 return "InstanceDoesNotExistException" 11240} 11241 11242// Message returns the exception's message. 11243func (s *InstanceDoesNotExistException) Message() string { 11244 if s.Message_ != nil { 11245 return *s.Message_ 11246 } 11247 return "" 11248} 11249 11250// OrigErr always returns nil, satisfies awserr.Error interface. 11251func (s *InstanceDoesNotExistException) OrigErr() error { 11252 return nil 11253} 11254 11255func (s *InstanceDoesNotExistException) Error() string { 11256 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 11257} 11258 11259// Status code returns the HTTP status code for the request's response error. 11260func (s *InstanceDoesNotExistException) StatusCode() int { 11261 return s.RespMetadata.StatusCode 11262} 11263 11264// RequestID returns the service's response RequestID for request. 11265func (s *InstanceDoesNotExistException) RequestID() string { 11266 return s.RespMetadata.RequestID 11267} 11268 11269// The instance ID was not specified. 11270// 11271// Deprecated: This exception is deprecated, use DeploymentTargetIdRequiredException instead. 11272type InstanceIdRequiredException struct { 11273 _ struct{} `deprecated:"true" type:"structure"` 11274 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 11275 11276 Message_ *string `locationName:"message" type:"string"` 11277} 11278 11279// String returns the string representation 11280func (s InstanceIdRequiredException) String() string { 11281 return awsutil.Prettify(s) 11282} 11283 11284// GoString returns the string representation 11285func (s InstanceIdRequiredException) GoString() string { 11286 return s.String() 11287} 11288 11289func newErrorInstanceIdRequiredException(v protocol.ResponseMetadata) error { 11290 return &InstanceIdRequiredException{ 11291 RespMetadata: v, 11292 } 11293} 11294 11295// Code returns the exception type name. 11296func (s *InstanceIdRequiredException) Code() string { 11297 return "InstanceIdRequiredException" 11298} 11299 11300// Message returns the exception's message. 11301func (s *InstanceIdRequiredException) Message() string { 11302 if s.Message_ != nil { 11303 return *s.Message_ 11304 } 11305 return "" 11306} 11307 11308// OrigErr always returns nil, satisfies awserr.Error interface. 11309func (s *InstanceIdRequiredException) OrigErr() error { 11310 return nil 11311} 11312 11313func (s *InstanceIdRequiredException) Error() string { 11314 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 11315} 11316 11317// Status code returns the HTTP status code for the request's response error. 11318func (s *InstanceIdRequiredException) StatusCode() int { 11319 return s.RespMetadata.StatusCode 11320} 11321 11322// RequestID returns the service's response RequestID for request. 11323func (s *InstanceIdRequiredException) RequestID() string { 11324 return s.RespMetadata.RequestID 11325} 11326 11327// Information about an on-premises instance. 11328type InstanceInfo struct { 11329 _ struct{} `type:"structure"` 11330 11331 // If the on-premises instance was deregistered, the time at which the on-premises 11332 // instance was deregistered. 11333 DeregisterTime *time.Time `locationName:"deregisterTime" type:"timestamp"` 11334 11335 // The ARN of the IAM session associated with the on-premises instance. 11336 IamSessionArn *string `locationName:"iamSessionArn" type:"string"` 11337 11338 // The IAM user ARN associated with the on-premises instance. 11339 IamUserArn *string `locationName:"iamUserArn" type:"string"` 11340 11341 // The ARN of the on-premises instance. 11342 InstanceArn *string `locationName:"instanceArn" type:"string"` 11343 11344 // The name of the on-premises instance. 11345 InstanceName *string `locationName:"instanceName" type:"string"` 11346 11347 // The time at which the on-premises instance was registered. 11348 RegisterTime *time.Time `locationName:"registerTime" type:"timestamp"` 11349 11350 // The tags currently associated with the on-premises instance. 11351 Tags []*Tag `locationName:"tags" type:"list"` 11352} 11353 11354// String returns the string representation 11355func (s InstanceInfo) String() string { 11356 return awsutil.Prettify(s) 11357} 11358 11359// GoString returns the string representation 11360func (s InstanceInfo) GoString() string { 11361 return s.String() 11362} 11363 11364// SetDeregisterTime sets the DeregisterTime field's value. 11365func (s *InstanceInfo) SetDeregisterTime(v time.Time) *InstanceInfo { 11366 s.DeregisterTime = &v 11367 return s 11368} 11369 11370// SetIamSessionArn sets the IamSessionArn field's value. 11371func (s *InstanceInfo) SetIamSessionArn(v string) *InstanceInfo { 11372 s.IamSessionArn = &v 11373 return s 11374} 11375 11376// SetIamUserArn sets the IamUserArn field's value. 11377func (s *InstanceInfo) SetIamUserArn(v string) *InstanceInfo { 11378 s.IamUserArn = &v 11379 return s 11380} 11381 11382// SetInstanceArn sets the InstanceArn field's value. 11383func (s *InstanceInfo) SetInstanceArn(v string) *InstanceInfo { 11384 s.InstanceArn = &v 11385 return s 11386} 11387 11388// SetInstanceName sets the InstanceName field's value. 11389func (s *InstanceInfo) SetInstanceName(v string) *InstanceInfo { 11390 s.InstanceName = &v 11391 return s 11392} 11393 11394// SetRegisterTime sets the RegisterTime field's value. 11395func (s *InstanceInfo) SetRegisterTime(v time.Time) *InstanceInfo { 11396 s.RegisterTime = &v 11397 return s 11398} 11399 11400// SetTags sets the Tags field's value. 11401func (s *InstanceInfo) SetTags(v []*Tag) *InstanceInfo { 11402 s.Tags = v 11403 return s 11404} 11405 11406// The maximum number of allowed on-premises instances in a single call was 11407// exceeded. 11408type InstanceLimitExceededException struct { 11409 _ struct{} `type:"structure"` 11410 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 11411 11412 Message_ *string `locationName:"message" type:"string"` 11413} 11414 11415// String returns the string representation 11416func (s InstanceLimitExceededException) String() string { 11417 return awsutil.Prettify(s) 11418} 11419 11420// GoString returns the string representation 11421func (s InstanceLimitExceededException) GoString() string { 11422 return s.String() 11423} 11424 11425func newErrorInstanceLimitExceededException(v protocol.ResponseMetadata) error { 11426 return &InstanceLimitExceededException{ 11427 RespMetadata: v, 11428 } 11429} 11430 11431// Code returns the exception type name. 11432func (s *InstanceLimitExceededException) Code() string { 11433 return "InstanceLimitExceededException" 11434} 11435 11436// Message returns the exception's message. 11437func (s *InstanceLimitExceededException) Message() string { 11438 if s.Message_ != nil { 11439 return *s.Message_ 11440 } 11441 return "" 11442} 11443 11444// OrigErr always returns nil, satisfies awserr.Error interface. 11445func (s *InstanceLimitExceededException) OrigErr() error { 11446 return nil 11447} 11448 11449func (s *InstanceLimitExceededException) Error() string { 11450 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 11451} 11452 11453// Status code returns the HTTP status code for the request's response error. 11454func (s *InstanceLimitExceededException) StatusCode() int { 11455 return s.RespMetadata.StatusCode 11456} 11457 11458// RequestID returns the service's response RequestID for request. 11459func (s *InstanceLimitExceededException) RequestID() string { 11460 return s.RespMetadata.RequestID 11461} 11462 11463// The specified on-premises instance name is already registered. 11464type InstanceNameAlreadyRegisteredException struct { 11465 _ struct{} `type:"structure"` 11466 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 11467 11468 Message_ *string `locationName:"message" type:"string"` 11469} 11470 11471// String returns the string representation 11472func (s InstanceNameAlreadyRegisteredException) String() string { 11473 return awsutil.Prettify(s) 11474} 11475 11476// GoString returns the string representation 11477func (s InstanceNameAlreadyRegisteredException) GoString() string { 11478 return s.String() 11479} 11480 11481func newErrorInstanceNameAlreadyRegisteredException(v protocol.ResponseMetadata) error { 11482 return &InstanceNameAlreadyRegisteredException{ 11483 RespMetadata: v, 11484 } 11485} 11486 11487// Code returns the exception type name. 11488func (s *InstanceNameAlreadyRegisteredException) Code() string { 11489 return "InstanceNameAlreadyRegisteredException" 11490} 11491 11492// Message returns the exception's message. 11493func (s *InstanceNameAlreadyRegisteredException) Message() string { 11494 if s.Message_ != nil { 11495 return *s.Message_ 11496 } 11497 return "" 11498} 11499 11500// OrigErr always returns nil, satisfies awserr.Error interface. 11501func (s *InstanceNameAlreadyRegisteredException) OrigErr() error { 11502 return nil 11503} 11504 11505func (s *InstanceNameAlreadyRegisteredException) Error() string { 11506 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 11507} 11508 11509// Status code returns the HTTP status code for the request's response error. 11510func (s *InstanceNameAlreadyRegisteredException) StatusCode() int { 11511 return s.RespMetadata.StatusCode 11512} 11513 11514// RequestID returns the service's response RequestID for request. 11515func (s *InstanceNameAlreadyRegisteredException) RequestID() string { 11516 return s.RespMetadata.RequestID 11517} 11518 11519// An on-premises instance name was not specified. 11520type InstanceNameRequiredException struct { 11521 _ struct{} `type:"structure"` 11522 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 11523 11524 Message_ *string `locationName:"message" type:"string"` 11525} 11526 11527// String returns the string representation 11528func (s InstanceNameRequiredException) String() string { 11529 return awsutil.Prettify(s) 11530} 11531 11532// GoString returns the string representation 11533func (s InstanceNameRequiredException) GoString() string { 11534 return s.String() 11535} 11536 11537func newErrorInstanceNameRequiredException(v protocol.ResponseMetadata) error { 11538 return &InstanceNameRequiredException{ 11539 RespMetadata: v, 11540 } 11541} 11542 11543// Code returns the exception type name. 11544func (s *InstanceNameRequiredException) Code() string { 11545 return "InstanceNameRequiredException" 11546} 11547 11548// Message returns the exception's message. 11549func (s *InstanceNameRequiredException) Message() string { 11550 if s.Message_ != nil { 11551 return *s.Message_ 11552 } 11553 return "" 11554} 11555 11556// OrigErr always returns nil, satisfies awserr.Error interface. 11557func (s *InstanceNameRequiredException) OrigErr() error { 11558 return nil 11559} 11560 11561func (s *InstanceNameRequiredException) Error() string { 11562 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 11563} 11564 11565// Status code returns the HTTP status code for the request's response error. 11566func (s *InstanceNameRequiredException) StatusCode() int { 11567 return s.RespMetadata.StatusCode 11568} 11569 11570// RequestID returns the service's response RequestID for request. 11571func (s *InstanceNameRequiredException) RequestID() string { 11572 return s.RespMetadata.RequestID 11573} 11574 11575// The specified on-premises instance is not registered. 11576type InstanceNotRegisteredException struct { 11577 _ struct{} `type:"structure"` 11578 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 11579 11580 Message_ *string `locationName:"message" type:"string"` 11581} 11582 11583// String returns the string representation 11584func (s InstanceNotRegisteredException) String() string { 11585 return awsutil.Prettify(s) 11586} 11587 11588// GoString returns the string representation 11589func (s InstanceNotRegisteredException) GoString() string { 11590 return s.String() 11591} 11592 11593func newErrorInstanceNotRegisteredException(v protocol.ResponseMetadata) error { 11594 return &InstanceNotRegisteredException{ 11595 RespMetadata: v, 11596 } 11597} 11598 11599// Code returns the exception type name. 11600func (s *InstanceNotRegisteredException) Code() string { 11601 return "InstanceNotRegisteredException" 11602} 11603 11604// Message returns the exception's message. 11605func (s *InstanceNotRegisteredException) Message() string { 11606 if s.Message_ != nil { 11607 return *s.Message_ 11608 } 11609 return "" 11610} 11611 11612// OrigErr always returns nil, satisfies awserr.Error interface. 11613func (s *InstanceNotRegisteredException) OrigErr() error { 11614 return nil 11615} 11616 11617func (s *InstanceNotRegisteredException) Error() string { 11618 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 11619} 11620 11621// Status code returns the HTTP status code for the request's response error. 11622func (s *InstanceNotRegisteredException) StatusCode() int { 11623 return s.RespMetadata.StatusCode 11624} 11625 11626// RequestID returns the service's response RequestID for request. 11627func (s *InstanceNotRegisteredException) RequestID() string { 11628 return s.RespMetadata.RequestID 11629} 11630 11631// Information about an instance in a deployment. 11632// 11633// Deprecated: InstanceSummary is deprecated, use DeploymentTarget instead. 11634type InstanceSummary struct { 11635 _ struct{} `deprecated:"true" type:"structure"` 11636 11637 // The unique ID of a deployment. 11638 DeploymentId *string `locationName:"deploymentId" type:"string"` 11639 11640 // The instance ID. 11641 InstanceId *string `locationName:"instanceId" type:"string"` 11642 11643 // Information about which environment an instance belongs to in a blue/green 11644 // deployment. 11645 // 11646 // * BLUE: The instance is part of the original environment. 11647 // 11648 // * GREEN: The instance is part of the replacement environment. 11649 InstanceType *string `locationName:"instanceType" type:"string" enum:"InstanceType"` 11650 11651 // A timestamp that indicates when the instance information was last updated. 11652 LastUpdatedAt *time.Time `locationName:"lastUpdatedAt" type:"timestamp"` 11653 11654 // A list of lifecycle events for this instance. 11655 LifecycleEvents []*LifecycleEvent `locationName:"lifecycleEvents" type:"list"` 11656 11657 // The deployment status for this instance: 11658 // 11659 // * Pending: The deployment is pending for this instance. 11660 // 11661 // * In Progress: The deployment is in progress for this instance. 11662 // 11663 // * Succeeded: The deployment has succeeded for this instance. 11664 // 11665 // * Failed: The deployment has failed for this instance. 11666 // 11667 // * Skipped: The deployment has been skipped for this instance. 11668 // 11669 // * Unknown: The deployment status is unknown for this instance. 11670 Status *string `locationName:"status" deprecated:"true" type:"string" enum:"InstanceStatus"` 11671} 11672 11673// String returns the string representation 11674func (s InstanceSummary) String() string { 11675 return awsutil.Prettify(s) 11676} 11677 11678// GoString returns the string representation 11679func (s InstanceSummary) GoString() string { 11680 return s.String() 11681} 11682 11683// SetDeploymentId sets the DeploymentId field's value. 11684func (s *InstanceSummary) SetDeploymentId(v string) *InstanceSummary { 11685 s.DeploymentId = &v 11686 return s 11687} 11688 11689// SetInstanceId sets the InstanceId field's value. 11690func (s *InstanceSummary) SetInstanceId(v string) *InstanceSummary { 11691 s.InstanceId = &v 11692 return s 11693} 11694 11695// SetInstanceType sets the InstanceType field's value. 11696func (s *InstanceSummary) SetInstanceType(v string) *InstanceSummary { 11697 s.InstanceType = &v 11698 return s 11699} 11700 11701// SetLastUpdatedAt sets the LastUpdatedAt field's value. 11702func (s *InstanceSummary) SetLastUpdatedAt(v time.Time) *InstanceSummary { 11703 s.LastUpdatedAt = &v 11704 return s 11705} 11706 11707// SetLifecycleEvents sets the LifecycleEvents field's value. 11708func (s *InstanceSummary) SetLifecycleEvents(v []*LifecycleEvent) *InstanceSummary { 11709 s.LifecycleEvents = v 11710 return s 11711} 11712 11713// SetStatus sets the Status field's value. 11714func (s *InstanceSummary) SetStatus(v string) *InstanceSummary { 11715 s.Status = &v 11716 return s 11717} 11718 11719// A target Amazon EC2 or on-premises instance during a deployment that uses 11720// the EC2/On-premises compute platform. 11721type InstanceTarget struct { 11722 _ struct{} `type:"structure"` 11723 11724 // The unique ID of a deployment. 11725 DeploymentId *string `locationName:"deploymentId" type:"string"` 11726 11727 // A label that identifies whether the instance is an original target (BLUE) 11728 // or a replacement target (GREEN). 11729 InstanceLabel *string `locationName:"instanceLabel" type:"string" enum:"TargetLabel"` 11730 11731 // The date and time when the target instance was updated by a deployment. 11732 LastUpdatedAt *time.Time `locationName:"lastUpdatedAt" type:"timestamp"` 11733 11734 // The lifecycle events of the deployment to this target instance. 11735 LifecycleEvents []*LifecycleEvent `locationName:"lifecycleEvents" type:"list"` 11736 11737 // The status an EC2/On-premises deployment's target instance. 11738 Status *string `locationName:"status" type:"string" enum:"TargetStatus"` 11739 11740 // The Amazon Resource Name (ARN) of the target. 11741 TargetArn *string `locationName:"targetArn" type:"string"` 11742 11743 // The unique ID of a deployment target that has a type of instanceTarget. 11744 TargetId *string `locationName:"targetId" type:"string"` 11745} 11746 11747// String returns the string representation 11748func (s InstanceTarget) String() string { 11749 return awsutil.Prettify(s) 11750} 11751 11752// GoString returns the string representation 11753func (s InstanceTarget) GoString() string { 11754 return s.String() 11755} 11756 11757// SetDeploymentId sets the DeploymentId field's value. 11758func (s *InstanceTarget) SetDeploymentId(v string) *InstanceTarget { 11759 s.DeploymentId = &v 11760 return s 11761} 11762 11763// SetInstanceLabel sets the InstanceLabel field's value. 11764func (s *InstanceTarget) SetInstanceLabel(v string) *InstanceTarget { 11765 s.InstanceLabel = &v 11766 return s 11767} 11768 11769// SetLastUpdatedAt sets the LastUpdatedAt field's value. 11770func (s *InstanceTarget) SetLastUpdatedAt(v time.Time) *InstanceTarget { 11771 s.LastUpdatedAt = &v 11772 return s 11773} 11774 11775// SetLifecycleEvents sets the LifecycleEvents field's value. 11776func (s *InstanceTarget) SetLifecycleEvents(v []*LifecycleEvent) *InstanceTarget { 11777 s.LifecycleEvents = v 11778 return s 11779} 11780 11781// SetStatus sets the Status field's value. 11782func (s *InstanceTarget) SetStatus(v string) *InstanceTarget { 11783 s.Status = &v 11784 return s 11785} 11786 11787// SetTargetArn sets the TargetArn field's value. 11788func (s *InstanceTarget) SetTargetArn(v string) *InstanceTarget { 11789 s.TargetArn = &v 11790 return s 11791} 11792 11793// SetTargetId sets the TargetId field's value. 11794func (s *InstanceTarget) SetTargetId(v string) *InstanceTarget { 11795 s.TargetId = &v 11796 return s 11797} 11798 11799// The format of the alarm configuration is invalid. Possible causes include: 11800// 11801// * The alarm list is null. 11802// 11803// * The alarm object is null. 11804// 11805// * The alarm name is empty or null or exceeds the limit of 255 characters. 11806// 11807// * Two alarms with the same name have been specified. 11808// 11809// * The alarm configuration is enabled, but the alarm list is empty. 11810type InvalidAlarmConfigException struct { 11811 _ struct{} `type:"structure"` 11812 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 11813 11814 Message_ *string `locationName:"message" type:"string"` 11815} 11816 11817// String returns the string representation 11818func (s InvalidAlarmConfigException) String() string { 11819 return awsutil.Prettify(s) 11820} 11821 11822// GoString returns the string representation 11823func (s InvalidAlarmConfigException) GoString() string { 11824 return s.String() 11825} 11826 11827func newErrorInvalidAlarmConfigException(v protocol.ResponseMetadata) error { 11828 return &InvalidAlarmConfigException{ 11829 RespMetadata: v, 11830 } 11831} 11832 11833// Code returns the exception type name. 11834func (s *InvalidAlarmConfigException) Code() string { 11835 return "InvalidAlarmConfigException" 11836} 11837 11838// Message returns the exception's message. 11839func (s *InvalidAlarmConfigException) Message() string { 11840 if s.Message_ != nil { 11841 return *s.Message_ 11842 } 11843 return "" 11844} 11845 11846// OrigErr always returns nil, satisfies awserr.Error interface. 11847func (s *InvalidAlarmConfigException) OrigErr() error { 11848 return nil 11849} 11850 11851func (s *InvalidAlarmConfigException) Error() string { 11852 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 11853} 11854 11855// Status code returns the HTTP status code for the request's response error. 11856func (s *InvalidAlarmConfigException) StatusCode() int { 11857 return s.RespMetadata.StatusCode 11858} 11859 11860// RequestID returns the service's response RequestID for request. 11861func (s *InvalidAlarmConfigException) RequestID() string { 11862 return s.RespMetadata.RequestID 11863} 11864 11865// The application name was specified in an invalid format. 11866type InvalidApplicationNameException struct { 11867 _ struct{} `type:"structure"` 11868 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 11869 11870 Message_ *string `locationName:"message" type:"string"` 11871} 11872 11873// String returns the string representation 11874func (s InvalidApplicationNameException) String() string { 11875 return awsutil.Prettify(s) 11876} 11877 11878// GoString returns the string representation 11879func (s InvalidApplicationNameException) GoString() string { 11880 return s.String() 11881} 11882 11883func newErrorInvalidApplicationNameException(v protocol.ResponseMetadata) error { 11884 return &InvalidApplicationNameException{ 11885 RespMetadata: v, 11886 } 11887} 11888 11889// Code returns the exception type name. 11890func (s *InvalidApplicationNameException) Code() string { 11891 return "InvalidApplicationNameException" 11892} 11893 11894// Message returns the exception's message. 11895func (s *InvalidApplicationNameException) Message() string { 11896 if s.Message_ != nil { 11897 return *s.Message_ 11898 } 11899 return "" 11900} 11901 11902// OrigErr always returns nil, satisfies awserr.Error interface. 11903func (s *InvalidApplicationNameException) OrigErr() error { 11904 return nil 11905} 11906 11907func (s *InvalidApplicationNameException) Error() string { 11908 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 11909} 11910 11911// Status code returns the HTTP status code for the request's response error. 11912func (s *InvalidApplicationNameException) StatusCode() int { 11913 return s.RespMetadata.StatusCode 11914} 11915 11916// RequestID returns the service's response RequestID for request. 11917func (s *InvalidApplicationNameException) RequestID() string { 11918 return s.RespMetadata.RequestID 11919} 11920 11921// The specified ARN is not in a valid format. 11922type InvalidArnException struct { 11923 _ struct{} `type:"structure"` 11924 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 11925 11926 Message_ *string `locationName:"message" type:"string"` 11927} 11928 11929// String returns the string representation 11930func (s InvalidArnException) String() string { 11931 return awsutil.Prettify(s) 11932} 11933 11934// GoString returns the string representation 11935func (s InvalidArnException) GoString() string { 11936 return s.String() 11937} 11938 11939func newErrorInvalidArnException(v protocol.ResponseMetadata) error { 11940 return &InvalidArnException{ 11941 RespMetadata: v, 11942 } 11943} 11944 11945// Code returns the exception type name. 11946func (s *InvalidArnException) Code() string { 11947 return "InvalidArnException" 11948} 11949 11950// Message returns the exception's message. 11951func (s *InvalidArnException) Message() string { 11952 if s.Message_ != nil { 11953 return *s.Message_ 11954 } 11955 return "" 11956} 11957 11958// OrigErr always returns nil, satisfies awserr.Error interface. 11959func (s *InvalidArnException) OrigErr() error { 11960 return nil 11961} 11962 11963func (s *InvalidArnException) Error() string { 11964 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 11965} 11966 11967// Status code returns the HTTP status code for the request's response error. 11968func (s *InvalidArnException) StatusCode() int { 11969 return s.RespMetadata.StatusCode 11970} 11971 11972// RequestID returns the service's response RequestID for request. 11973func (s *InvalidArnException) RequestID() string { 11974 return s.RespMetadata.RequestID 11975} 11976 11977// The automatic rollback configuration was specified in an invalid format. 11978// For example, automatic rollback is enabled, but an invalid triggering event 11979// type or no event types were listed. 11980type InvalidAutoRollbackConfigException struct { 11981 _ struct{} `type:"structure"` 11982 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 11983 11984 Message_ *string `locationName:"message" type:"string"` 11985} 11986 11987// String returns the string representation 11988func (s InvalidAutoRollbackConfigException) String() string { 11989 return awsutil.Prettify(s) 11990} 11991 11992// GoString returns the string representation 11993func (s InvalidAutoRollbackConfigException) GoString() string { 11994 return s.String() 11995} 11996 11997func newErrorInvalidAutoRollbackConfigException(v protocol.ResponseMetadata) error { 11998 return &InvalidAutoRollbackConfigException{ 11999 RespMetadata: v, 12000 } 12001} 12002 12003// Code returns the exception type name. 12004func (s *InvalidAutoRollbackConfigException) Code() string { 12005 return "InvalidAutoRollbackConfigException" 12006} 12007 12008// Message returns the exception's message. 12009func (s *InvalidAutoRollbackConfigException) Message() string { 12010 if s.Message_ != nil { 12011 return *s.Message_ 12012 } 12013 return "" 12014} 12015 12016// OrigErr always returns nil, satisfies awserr.Error interface. 12017func (s *InvalidAutoRollbackConfigException) OrigErr() error { 12018 return nil 12019} 12020 12021func (s *InvalidAutoRollbackConfigException) Error() string { 12022 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 12023} 12024 12025// Status code returns the HTTP status code for the request's response error. 12026func (s *InvalidAutoRollbackConfigException) StatusCode() int { 12027 return s.RespMetadata.StatusCode 12028} 12029 12030// RequestID returns the service's response RequestID for request. 12031func (s *InvalidAutoRollbackConfigException) RequestID() string { 12032 return s.RespMetadata.RequestID 12033} 12034 12035// The Auto Scaling group was specified in an invalid format or does not exist. 12036type InvalidAutoScalingGroupException struct { 12037 _ struct{} `type:"structure"` 12038 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 12039 12040 Message_ *string `locationName:"message" type:"string"` 12041} 12042 12043// String returns the string representation 12044func (s InvalidAutoScalingGroupException) String() string { 12045 return awsutil.Prettify(s) 12046} 12047 12048// GoString returns the string representation 12049func (s InvalidAutoScalingGroupException) GoString() string { 12050 return s.String() 12051} 12052 12053func newErrorInvalidAutoScalingGroupException(v protocol.ResponseMetadata) error { 12054 return &InvalidAutoScalingGroupException{ 12055 RespMetadata: v, 12056 } 12057} 12058 12059// Code returns the exception type name. 12060func (s *InvalidAutoScalingGroupException) Code() string { 12061 return "InvalidAutoScalingGroupException" 12062} 12063 12064// Message returns the exception's message. 12065func (s *InvalidAutoScalingGroupException) Message() string { 12066 if s.Message_ != nil { 12067 return *s.Message_ 12068 } 12069 return "" 12070} 12071 12072// OrigErr always returns nil, satisfies awserr.Error interface. 12073func (s *InvalidAutoScalingGroupException) OrigErr() error { 12074 return nil 12075} 12076 12077func (s *InvalidAutoScalingGroupException) Error() string { 12078 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 12079} 12080 12081// Status code returns the HTTP status code for the request's response error. 12082func (s *InvalidAutoScalingGroupException) StatusCode() int { 12083 return s.RespMetadata.StatusCode 12084} 12085 12086// RequestID returns the service's response RequestID for request. 12087func (s *InvalidAutoScalingGroupException) RequestID() string { 12088 return s.RespMetadata.RequestID 12089} 12090 12091// The configuration for the blue/green deployment group was provided in an 12092// invalid format. For information about deployment configuration format, see 12093// CreateDeploymentConfig. 12094type InvalidBlueGreenDeploymentConfigurationException struct { 12095 _ struct{} `type:"structure"` 12096 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 12097 12098 Message_ *string `locationName:"message" type:"string"` 12099} 12100 12101// String returns the string representation 12102func (s InvalidBlueGreenDeploymentConfigurationException) String() string { 12103 return awsutil.Prettify(s) 12104} 12105 12106// GoString returns the string representation 12107func (s InvalidBlueGreenDeploymentConfigurationException) GoString() string { 12108 return s.String() 12109} 12110 12111func newErrorInvalidBlueGreenDeploymentConfigurationException(v protocol.ResponseMetadata) error { 12112 return &InvalidBlueGreenDeploymentConfigurationException{ 12113 RespMetadata: v, 12114 } 12115} 12116 12117// Code returns the exception type name. 12118func (s *InvalidBlueGreenDeploymentConfigurationException) Code() string { 12119 return "InvalidBlueGreenDeploymentConfigurationException" 12120} 12121 12122// Message returns the exception's message. 12123func (s *InvalidBlueGreenDeploymentConfigurationException) Message() string { 12124 if s.Message_ != nil { 12125 return *s.Message_ 12126 } 12127 return "" 12128} 12129 12130// OrigErr always returns nil, satisfies awserr.Error interface. 12131func (s *InvalidBlueGreenDeploymentConfigurationException) OrigErr() error { 12132 return nil 12133} 12134 12135func (s *InvalidBlueGreenDeploymentConfigurationException) Error() string { 12136 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 12137} 12138 12139// Status code returns the HTTP status code for the request's response error. 12140func (s *InvalidBlueGreenDeploymentConfigurationException) StatusCode() int { 12141 return s.RespMetadata.StatusCode 12142} 12143 12144// RequestID returns the service's response RequestID for request. 12145func (s *InvalidBlueGreenDeploymentConfigurationException) RequestID() string { 12146 return s.RespMetadata.RequestID 12147} 12148 12149// The bucket name either doesn't exist or was specified in an invalid format. 12150type InvalidBucketNameFilterException struct { 12151 _ struct{} `type:"structure"` 12152 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 12153 12154 Message_ *string `locationName:"message" type:"string"` 12155} 12156 12157// String returns the string representation 12158func (s InvalidBucketNameFilterException) String() string { 12159 return awsutil.Prettify(s) 12160} 12161 12162// GoString returns the string representation 12163func (s InvalidBucketNameFilterException) GoString() string { 12164 return s.String() 12165} 12166 12167func newErrorInvalidBucketNameFilterException(v protocol.ResponseMetadata) error { 12168 return &InvalidBucketNameFilterException{ 12169 RespMetadata: v, 12170 } 12171} 12172 12173// Code returns the exception type name. 12174func (s *InvalidBucketNameFilterException) Code() string { 12175 return "InvalidBucketNameFilterException" 12176} 12177 12178// Message returns the exception's message. 12179func (s *InvalidBucketNameFilterException) Message() string { 12180 if s.Message_ != nil { 12181 return *s.Message_ 12182 } 12183 return "" 12184} 12185 12186// OrigErr always returns nil, satisfies awserr.Error interface. 12187func (s *InvalidBucketNameFilterException) OrigErr() error { 12188 return nil 12189} 12190 12191func (s *InvalidBucketNameFilterException) Error() string { 12192 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 12193} 12194 12195// Status code returns the HTTP status code for the request's response error. 12196func (s *InvalidBucketNameFilterException) StatusCode() int { 12197 return s.RespMetadata.StatusCode 12198} 12199 12200// RequestID returns the service's response RequestID for request. 12201func (s *InvalidBucketNameFilterException) RequestID() string { 12202 return s.RespMetadata.RequestID 12203} 12204 12205// The computePlatform is invalid. The computePlatform should be Lambda, Server, 12206// or ECS. 12207type InvalidComputePlatformException struct { 12208 _ struct{} `type:"structure"` 12209 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 12210 12211 Message_ *string `locationName:"message" type:"string"` 12212} 12213 12214// String returns the string representation 12215func (s InvalidComputePlatformException) String() string { 12216 return awsutil.Prettify(s) 12217} 12218 12219// GoString returns the string representation 12220func (s InvalidComputePlatformException) GoString() string { 12221 return s.String() 12222} 12223 12224func newErrorInvalidComputePlatformException(v protocol.ResponseMetadata) error { 12225 return &InvalidComputePlatformException{ 12226 RespMetadata: v, 12227 } 12228} 12229 12230// Code returns the exception type name. 12231func (s *InvalidComputePlatformException) Code() string { 12232 return "InvalidComputePlatformException" 12233} 12234 12235// Message returns the exception's message. 12236func (s *InvalidComputePlatformException) Message() string { 12237 if s.Message_ != nil { 12238 return *s.Message_ 12239 } 12240 return "" 12241} 12242 12243// OrigErr always returns nil, satisfies awserr.Error interface. 12244func (s *InvalidComputePlatformException) OrigErr() error { 12245 return nil 12246} 12247 12248func (s *InvalidComputePlatformException) Error() string { 12249 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 12250} 12251 12252// Status code returns the HTTP status code for the request's response error. 12253func (s *InvalidComputePlatformException) StatusCode() int { 12254 return s.RespMetadata.StatusCode 12255} 12256 12257// RequestID returns the service's response RequestID for request. 12258func (s *InvalidComputePlatformException) RequestID() string { 12259 return s.RespMetadata.RequestID 12260} 12261 12262// The deployed state filter was specified in an invalid format. 12263type InvalidDeployedStateFilterException struct { 12264 _ struct{} `type:"structure"` 12265 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 12266 12267 Message_ *string `locationName:"message" type:"string"` 12268} 12269 12270// String returns the string representation 12271func (s InvalidDeployedStateFilterException) String() string { 12272 return awsutil.Prettify(s) 12273} 12274 12275// GoString returns the string representation 12276func (s InvalidDeployedStateFilterException) GoString() string { 12277 return s.String() 12278} 12279 12280func newErrorInvalidDeployedStateFilterException(v protocol.ResponseMetadata) error { 12281 return &InvalidDeployedStateFilterException{ 12282 RespMetadata: v, 12283 } 12284} 12285 12286// Code returns the exception type name. 12287func (s *InvalidDeployedStateFilterException) Code() string { 12288 return "InvalidDeployedStateFilterException" 12289} 12290 12291// Message returns the exception's message. 12292func (s *InvalidDeployedStateFilterException) Message() string { 12293 if s.Message_ != nil { 12294 return *s.Message_ 12295 } 12296 return "" 12297} 12298 12299// OrigErr always returns nil, satisfies awserr.Error interface. 12300func (s *InvalidDeployedStateFilterException) OrigErr() error { 12301 return nil 12302} 12303 12304func (s *InvalidDeployedStateFilterException) Error() string { 12305 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 12306} 12307 12308// Status code returns the HTTP status code for the request's response error. 12309func (s *InvalidDeployedStateFilterException) StatusCode() int { 12310 return s.RespMetadata.StatusCode 12311} 12312 12313// RequestID returns the service's response RequestID for request. 12314func (s *InvalidDeployedStateFilterException) RequestID() string { 12315 return s.RespMetadata.RequestID 12316} 12317 12318// The deployment configuration name was specified in an invalid format. 12319type InvalidDeploymentConfigNameException struct { 12320 _ struct{} `type:"structure"` 12321 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 12322 12323 Message_ *string `locationName:"message" type:"string"` 12324} 12325 12326// String returns the string representation 12327func (s InvalidDeploymentConfigNameException) String() string { 12328 return awsutil.Prettify(s) 12329} 12330 12331// GoString returns the string representation 12332func (s InvalidDeploymentConfigNameException) GoString() string { 12333 return s.String() 12334} 12335 12336func newErrorInvalidDeploymentConfigNameException(v protocol.ResponseMetadata) error { 12337 return &InvalidDeploymentConfigNameException{ 12338 RespMetadata: v, 12339 } 12340} 12341 12342// Code returns the exception type name. 12343func (s *InvalidDeploymentConfigNameException) Code() string { 12344 return "InvalidDeploymentConfigNameException" 12345} 12346 12347// Message returns the exception's message. 12348func (s *InvalidDeploymentConfigNameException) Message() string { 12349 if s.Message_ != nil { 12350 return *s.Message_ 12351 } 12352 return "" 12353} 12354 12355// OrigErr always returns nil, satisfies awserr.Error interface. 12356func (s *InvalidDeploymentConfigNameException) OrigErr() error { 12357 return nil 12358} 12359 12360func (s *InvalidDeploymentConfigNameException) Error() string { 12361 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 12362} 12363 12364// Status code returns the HTTP status code for the request's response error. 12365func (s *InvalidDeploymentConfigNameException) StatusCode() int { 12366 return s.RespMetadata.StatusCode 12367} 12368 12369// RequestID returns the service's response RequestID for request. 12370func (s *InvalidDeploymentConfigNameException) RequestID() string { 12371 return s.RespMetadata.RequestID 12372} 12373 12374// The deployment group name was specified in an invalid format. 12375type InvalidDeploymentGroupNameException struct { 12376 _ struct{} `type:"structure"` 12377 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 12378 12379 Message_ *string `locationName:"message" type:"string"` 12380} 12381 12382// String returns the string representation 12383func (s InvalidDeploymentGroupNameException) String() string { 12384 return awsutil.Prettify(s) 12385} 12386 12387// GoString returns the string representation 12388func (s InvalidDeploymentGroupNameException) GoString() string { 12389 return s.String() 12390} 12391 12392func newErrorInvalidDeploymentGroupNameException(v protocol.ResponseMetadata) error { 12393 return &InvalidDeploymentGroupNameException{ 12394 RespMetadata: v, 12395 } 12396} 12397 12398// Code returns the exception type name. 12399func (s *InvalidDeploymentGroupNameException) Code() string { 12400 return "InvalidDeploymentGroupNameException" 12401} 12402 12403// Message returns the exception's message. 12404func (s *InvalidDeploymentGroupNameException) Message() string { 12405 if s.Message_ != nil { 12406 return *s.Message_ 12407 } 12408 return "" 12409} 12410 12411// OrigErr always returns nil, satisfies awserr.Error interface. 12412func (s *InvalidDeploymentGroupNameException) OrigErr() error { 12413 return nil 12414} 12415 12416func (s *InvalidDeploymentGroupNameException) Error() string { 12417 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 12418} 12419 12420// Status code returns the HTTP status code for the request's response error. 12421func (s *InvalidDeploymentGroupNameException) StatusCode() int { 12422 return s.RespMetadata.StatusCode 12423} 12424 12425// RequestID returns the service's response RequestID for request. 12426func (s *InvalidDeploymentGroupNameException) RequestID() string { 12427 return s.RespMetadata.RequestID 12428} 12429 12430// At least one of the deployment IDs was specified in an invalid format. 12431type InvalidDeploymentIdException struct { 12432 _ struct{} `type:"structure"` 12433 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 12434 12435 Message_ *string `locationName:"message" type:"string"` 12436} 12437 12438// String returns the string representation 12439func (s InvalidDeploymentIdException) String() string { 12440 return awsutil.Prettify(s) 12441} 12442 12443// GoString returns the string representation 12444func (s InvalidDeploymentIdException) GoString() string { 12445 return s.String() 12446} 12447 12448func newErrorInvalidDeploymentIdException(v protocol.ResponseMetadata) error { 12449 return &InvalidDeploymentIdException{ 12450 RespMetadata: v, 12451 } 12452} 12453 12454// Code returns the exception type name. 12455func (s *InvalidDeploymentIdException) Code() string { 12456 return "InvalidDeploymentIdException" 12457} 12458 12459// Message returns the exception's message. 12460func (s *InvalidDeploymentIdException) Message() string { 12461 if s.Message_ != nil { 12462 return *s.Message_ 12463 } 12464 return "" 12465} 12466 12467// OrigErr always returns nil, satisfies awserr.Error interface. 12468func (s *InvalidDeploymentIdException) OrigErr() error { 12469 return nil 12470} 12471 12472func (s *InvalidDeploymentIdException) Error() string { 12473 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 12474} 12475 12476// Status code returns the HTTP status code for the request's response error. 12477func (s *InvalidDeploymentIdException) StatusCode() int { 12478 return s.RespMetadata.StatusCode 12479} 12480 12481// RequestID returns the service's response RequestID for request. 12482func (s *InvalidDeploymentIdException) RequestID() string { 12483 return s.RespMetadata.RequestID 12484} 12485 12486// An instance type was specified for an in-place deployment. Instance types 12487// are supported for blue/green deployments only. 12488type InvalidDeploymentInstanceTypeException struct { 12489 _ struct{} `type:"structure"` 12490 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 12491 12492 Message_ *string `locationName:"message" type:"string"` 12493} 12494 12495// String returns the string representation 12496func (s InvalidDeploymentInstanceTypeException) String() string { 12497 return awsutil.Prettify(s) 12498} 12499 12500// GoString returns the string representation 12501func (s InvalidDeploymentInstanceTypeException) GoString() string { 12502 return s.String() 12503} 12504 12505func newErrorInvalidDeploymentInstanceTypeException(v protocol.ResponseMetadata) error { 12506 return &InvalidDeploymentInstanceTypeException{ 12507 RespMetadata: v, 12508 } 12509} 12510 12511// Code returns the exception type name. 12512func (s *InvalidDeploymentInstanceTypeException) Code() string { 12513 return "InvalidDeploymentInstanceTypeException" 12514} 12515 12516// Message returns the exception's message. 12517func (s *InvalidDeploymentInstanceTypeException) Message() string { 12518 if s.Message_ != nil { 12519 return *s.Message_ 12520 } 12521 return "" 12522} 12523 12524// OrigErr always returns nil, satisfies awserr.Error interface. 12525func (s *InvalidDeploymentInstanceTypeException) OrigErr() error { 12526 return nil 12527} 12528 12529func (s *InvalidDeploymentInstanceTypeException) Error() string { 12530 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 12531} 12532 12533// Status code returns the HTTP status code for the request's response error. 12534func (s *InvalidDeploymentInstanceTypeException) StatusCode() int { 12535 return s.RespMetadata.StatusCode 12536} 12537 12538// RequestID returns the service's response RequestID for request. 12539func (s *InvalidDeploymentInstanceTypeException) RequestID() string { 12540 return s.RespMetadata.RequestID 12541} 12542 12543// The specified deployment status doesn't exist or cannot be determined. 12544type InvalidDeploymentStatusException struct { 12545 _ struct{} `type:"structure"` 12546 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 12547 12548 Message_ *string `locationName:"message" type:"string"` 12549} 12550 12551// String returns the string representation 12552func (s InvalidDeploymentStatusException) String() string { 12553 return awsutil.Prettify(s) 12554} 12555 12556// GoString returns the string representation 12557func (s InvalidDeploymentStatusException) GoString() string { 12558 return s.String() 12559} 12560 12561func newErrorInvalidDeploymentStatusException(v protocol.ResponseMetadata) error { 12562 return &InvalidDeploymentStatusException{ 12563 RespMetadata: v, 12564 } 12565} 12566 12567// Code returns the exception type name. 12568func (s *InvalidDeploymentStatusException) Code() string { 12569 return "InvalidDeploymentStatusException" 12570} 12571 12572// Message returns the exception's message. 12573func (s *InvalidDeploymentStatusException) Message() string { 12574 if s.Message_ != nil { 12575 return *s.Message_ 12576 } 12577 return "" 12578} 12579 12580// OrigErr always returns nil, satisfies awserr.Error interface. 12581func (s *InvalidDeploymentStatusException) OrigErr() error { 12582 return nil 12583} 12584 12585func (s *InvalidDeploymentStatusException) Error() string { 12586 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 12587} 12588 12589// Status code returns the HTTP status code for the request's response error. 12590func (s *InvalidDeploymentStatusException) StatusCode() int { 12591 return s.RespMetadata.StatusCode 12592} 12593 12594// RequestID returns the service's response RequestID for request. 12595func (s *InvalidDeploymentStatusException) RequestID() string { 12596 return s.RespMetadata.RequestID 12597} 12598 12599// An invalid deployment style was specified. Valid deployment types include 12600// "IN_PLACE" and "BLUE_GREEN." Valid deployment options include "WITH_TRAFFIC_CONTROL" 12601// and "WITHOUT_TRAFFIC_CONTROL." 12602type InvalidDeploymentStyleException struct { 12603 _ struct{} `type:"structure"` 12604 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 12605 12606 Message_ *string `locationName:"message" type:"string"` 12607} 12608 12609// String returns the string representation 12610func (s InvalidDeploymentStyleException) String() string { 12611 return awsutil.Prettify(s) 12612} 12613 12614// GoString returns the string representation 12615func (s InvalidDeploymentStyleException) GoString() string { 12616 return s.String() 12617} 12618 12619func newErrorInvalidDeploymentStyleException(v protocol.ResponseMetadata) error { 12620 return &InvalidDeploymentStyleException{ 12621 RespMetadata: v, 12622 } 12623} 12624 12625// Code returns the exception type name. 12626func (s *InvalidDeploymentStyleException) Code() string { 12627 return "InvalidDeploymentStyleException" 12628} 12629 12630// Message returns the exception's message. 12631func (s *InvalidDeploymentStyleException) Message() string { 12632 if s.Message_ != nil { 12633 return *s.Message_ 12634 } 12635 return "" 12636} 12637 12638// OrigErr always returns nil, satisfies awserr.Error interface. 12639func (s *InvalidDeploymentStyleException) OrigErr() error { 12640 return nil 12641} 12642 12643func (s *InvalidDeploymentStyleException) Error() string { 12644 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 12645} 12646 12647// Status code returns the HTTP status code for the request's response error. 12648func (s *InvalidDeploymentStyleException) StatusCode() int { 12649 return s.RespMetadata.StatusCode 12650} 12651 12652// RequestID returns the service's response RequestID for request. 12653func (s *InvalidDeploymentStyleException) RequestID() string { 12654 return s.RespMetadata.RequestID 12655} 12656 12657// The target ID provided was not valid. 12658type InvalidDeploymentTargetIdException struct { 12659 _ struct{} `type:"structure"` 12660 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 12661 12662 Message_ *string `locationName:"message" type:"string"` 12663} 12664 12665// String returns the string representation 12666func (s InvalidDeploymentTargetIdException) String() string { 12667 return awsutil.Prettify(s) 12668} 12669 12670// GoString returns the string representation 12671func (s InvalidDeploymentTargetIdException) GoString() string { 12672 return s.String() 12673} 12674 12675func newErrorInvalidDeploymentTargetIdException(v protocol.ResponseMetadata) error { 12676 return &InvalidDeploymentTargetIdException{ 12677 RespMetadata: v, 12678 } 12679} 12680 12681// Code returns the exception type name. 12682func (s *InvalidDeploymentTargetIdException) Code() string { 12683 return "InvalidDeploymentTargetIdException" 12684} 12685 12686// Message returns the exception's message. 12687func (s *InvalidDeploymentTargetIdException) Message() string { 12688 if s.Message_ != nil { 12689 return *s.Message_ 12690 } 12691 return "" 12692} 12693 12694// OrigErr always returns nil, satisfies awserr.Error interface. 12695func (s *InvalidDeploymentTargetIdException) OrigErr() error { 12696 return nil 12697} 12698 12699func (s *InvalidDeploymentTargetIdException) Error() string { 12700 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 12701} 12702 12703// Status code returns the HTTP status code for the request's response error. 12704func (s *InvalidDeploymentTargetIdException) StatusCode() int { 12705 return s.RespMetadata.StatusCode 12706} 12707 12708// RequestID returns the service's response RequestID for request. 12709func (s *InvalidDeploymentTargetIdException) RequestID() string { 12710 return s.RespMetadata.RequestID 12711} 12712 12713// The wait type is invalid. 12714type InvalidDeploymentWaitTypeException struct { 12715 _ struct{} `type:"structure"` 12716 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 12717 12718 Message_ *string `locationName:"message" type:"string"` 12719} 12720 12721// String returns the string representation 12722func (s InvalidDeploymentWaitTypeException) String() string { 12723 return awsutil.Prettify(s) 12724} 12725 12726// GoString returns the string representation 12727func (s InvalidDeploymentWaitTypeException) GoString() string { 12728 return s.String() 12729} 12730 12731func newErrorInvalidDeploymentWaitTypeException(v protocol.ResponseMetadata) error { 12732 return &InvalidDeploymentWaitTypeException{ 12733 RespMetadata: v, 12734 } 12735} 12736 12737// Code returns the exception type name. 12738func (s *InvalidDeploymentWaitTypeException) Code() string { 12739 return "InvalidDeploymentWaitTypeException" 12740} 12741 12742// Message returns the exception's message. 12743func (s *InvalidDeploymentWaitTypeException) Message() string { 12744 if s.Message_ != nil { 12745 return *s.Message_ 12746 } 12747 return "" 12748} 12749 12750// OrigErr always returns nil, satisfies awserr.Error interface. 12751func (s *InvalidDeploymentWaitTypeException) OrigErr() error { 12752 return nil 12753} 12754 12755func (s *InvalidDeploymentWaitTypeException) Error() string { 12756 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 12757} 12758 12759// Status code returns the HTTP status code for the request's response error. 12760func (s *InvalidDeploymentWaitTypeException) StatusCode() int { 12761 return s.RespMetadata.StatusCode 12762} 12763 12764// RequestID returns the service's response RequestID for request. 12765func (s *InvalidDeploymentWaitTypeException) RequestID() string { 12766 return s.RespMetadata.RequestID 12767} 12768 12769// A call was submitted that specified both Ec2TagFilters and Ec2TagSet, but 12770// only one of these data types can be used in a single call. 12771type InvalidEC2TagCombinationException struct { 12772 _ struct{} `type:"structure"` 12773 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 12774 12775 Message_ *string `locationName:"message" type:"string"` 12776} 12777 12778// String returns the string representation 12779func (s InvalidEC2TagCombinationException) String() string { 12780 return awsutil.Prettify(s) 12781} 12782 12783// GoString returns the string representation 12784func (s InvalidEC2TagCombinationException) GoString() string { 12785 return s.String() 12786} 12787 12788func newErrorInvalidEC2TagCombinationException(v protocol.ResponseMetadata) error { 12789 return &InvalidEC2TagCombinationException{ 12790 RespMetadata: v, 12791 } 12792} 12793 12794// Code returns the exception type name. 12795func (s *InvalidEC2TagCombinationException) Code() string { 12796 return "InvalidEC2TagCombinationException" 12797} 12798 12799// Message returns the exception's message. 12800func (s *InvalidEC2TagCombinationException) Message() string { 12801 if s.Message_ != nil { 12802 return *s.Message_ 12803 } 12804 return "" 12805} 12806 12807// OrigErr always returns nil, satisfies awserr.Error interface. 12808func (s *InvalidEC2TagCombinationException) OrigErr() error { 12809 return nil 12810} 12811 12812func (s *InvalidEC2TagCombinationException) Error() string { 12813 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 12814} 12815 12816// Status code returns the HTTP status code for the request's response error. 12817func (s *InvalidEC2TagCombinationException) StatusCode() int { 12818 return s.RespMetadata.StatusCode 12819} 12820 12821// RequestID returns the service's response RequestID for request. 12822func (s *InvalidEC2TagCombinationException) RequestID() string { 12823 return s.RespMetadata.RequestID 12824} 12825 12826// The tag was specified in an invalid format. 12827type InvalidEC2TagException struct { 12828 _ struct{} `type:"structure"` 12829 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 12830 12831 Message_ *string `locationName:"message" type:"string"` 12832} 12833 12834// String returns the string representation 12835func (s InvalidEC2TagException) String() string { 12836 return awsutil.Prettify(s) 12837} 12838 12839// GoString returns the string representation 12840func (s InvalidEC2TagException) GoString() string { 12841 return s.String() 12842} 12843 12844func newErrorInvalidEC2TagException(v protocol.ResponseMetadata) error { 12845 return &InvalidEC2TagException{ 12846 RespMetadata: v, 12847 } 12848} 12849 12850// Code returns the exception type name. 12851func (s *InvalidEC2TagException) Code() string { 12852 return "InvalidEC2TagException" 12853} 12854 12855// Message returns the exception's message. 12856func (s *InvalidEC2TagException) Message() string { 12857 if s.Message_ != nil { 12858 return *s.Message_ 12859 } 12860 return "" 12861} 12862 12863// OrigErr always returns nil, satisfies awserr.Error interface. 12864func (s *InvalidEC2TagException) OrigErr() error { 12865 return nil 12866} 12867 12868func (s *InvalidEC2TagException) Error() string { 12869 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 12870} 12871 12872// Status code returns the HTTP status code for the request's response error. 12873func (s *InvalidEC2TagException) StatusCode() int { 12874 return s.RespMetadata.StatusCode 12875} 12876 12877// RequestID returns the service's response RequestID for request. 12878func (s *InvalidEC2TagException) RequestID() string { 12879 return s.RespMetadata.RequestID 12880} 12881 12882// The Amazon ECS service identifier is not valid. 12883type InvalidECSServiceException struct { 12884 _ struct{} `type:"structure"` 12885 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 12886 12887 Message_ *string `locationName:"message" type:"string"` 12888} 12889 12890// String returns the string representation 12891func (s InvalidECSServiceException) String() string { 12892 return awsutil.Prettify(s) 12893} 12894 12895// GoString returns the string representation 12896func (s InvalidECSServiceException) GoString() string { 12897 return s.String() 12898} 12899 12900func newErrorInvalidECSServiceException(v protocol.ResponseMetadata) error { 12901 return &InvalidECSServiceException{ 12902 RespMetadata: v, 12903 } 12904} 12905 12906// Code returns the exception type name. 12907func (s *InvalidECSServiceException) Code() string { 12908 return "InvalidECSServiceException" 12909} 12910 12911// Message returns the exception's message. 12912func (s *InvalidECSServiceException) Message() string { 12913 if s.Message_ != nil { 12914 return *s.Message_ 12915 } 12916 return "" 12917} 12918 12919// OrigErr always returns nil, satisfies awserr.Error interface. 12920func (s *InvalidECSServiceException) OrigErr() error { 12921 return nil 12922} 12923 12924func (s *InvalidECSServiceException) Error() string { 12925 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 12926} 12927 12928// Status code returns the HTTP status code for the request's response error. 12929func (s *InvalidECSServiceException) StatusCode() int { 12930 return s.RespMetadata.StatusCode 12931} 12932 12933// RequestID returns the service's response RequestID for request. 12934func (s *InvalidECSServiceException) RequestID() string { 12935 return s.RespMetadata.RequestID 12936} 12937 12938// The external ID was specified in an invalid format. 12939type InvalidExternalIdException struct { 12940 _ struct{} `type:"structure"` 12941 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 12942 12943 Message_ *string `locationName:"message" type:"string"` 12944} 12945 12946// String returns the string representation 12947func (s InvalidExternalIdException) String() string { 12948 return awsutil.Prettify(s) 12949} 12950 12951// GoString returns the string representation 12952func (s InvalidExternalIdException) GoString() string { 12953 return s.String() 12954} 12955 12956func newErrorInvalidExternalIdException(v protocol.ResponseMetadata) error { 12957 return &InvalidExternalIdException{ 12958 RespMetadata: v, 12959 } 12960} 12961 12962// Code returns the exception type name. 12963func (s *InvalidExternalIdException) Code() string { 12964 return "InvalidExternalIdException" 12965} 12966 12967// Message returns the exception's message. 12968func (s *InvalidExternalIdException) Message() string { 12969 if s.Message_ != nil { 12970 return *s.Message_ 12971 } 12972 return "" 12973} 12974 12975// OrigErr always returns nil, satisfies awserr.Error interface. 12976func (s *InvalidExternalIdException) OrigErr() error { 12977 return nil 12978} 12979 12980func (s *InvalidExternalIdException) Error() string { 12981 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 12982} 12983 12984// Status code returns the HTTP status code for the request's response error. 12985func (s *InvalidExternalIdException) StatusCode() int { 12986 return s.RespMetadata.StatusCode 12987} 12988 12989// RequestID returns the service's response RequestID for request. 12990func (s *InvalidExternalIdException) RequestID() string { 12991 return s.RespMetadata.RequestID 12992} 12993 12994// An invalid fileExistsBehavior option was specified to determine how AWS CodeDeploy 12995// handles files or directories that already exist in a deployment target location, 12996// but weren't part of the previous successful deployment. Valid values include 12997// "DISALLOW," "OVERWRITE," and "RETAIN." 12998type InvalidFileExistsBehaviorException struct { 12999 _ struct{} `type:"structure"` 13000 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 13001 13002 Message_ *string `locationName:"message" type:"string"` 13003} 13004 13005// String returns the string representation 13006func (s InvalidFileExistsBehaviorException) String() string { 13007 return awsutil.Prettify(s) 13008} 13009 13010// GoString returns the string representation 13011func (s InvalidFileExistsBehaviorException) GoString() string { 13012 return s.String() 13013} 13014 13015func newErrorInvalidFileExistsBehaviorException(v protocol.ResponseMetadata) error { 13016 return &InvalidFileExistsBehaviorException{ 13017 RespMetadata: v, 13018 } 13019} 13020 13021// Code returns the exception type name. 13022func (s *InvalidFileExistsBehaviorException) Code() string { 13023 return "InvalidFileExistsBehaviorException" 13024} 13025 13026// Message returns the exception's message. 13027func (s *InvalidFileExistsBehaviorException) Message() string { 13028 if s.Message_ != nil { 13029 return *s.Message_ 13030 } 13031 return "" 13032} 13033 13034// OrigErr always returns nil, satisfies awserr.Error interface. 13035func (s *InvalidFileExistsBehaviorException) OrigErr() error { 13036 return nil 13037} 13038 13039func (s *InvalidFileExistsBehaviorException) Error() string { 13040 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 13041} 13042 13043// Status code returns the HTTP status code for the request's response error. 13044func (s *InvalidFileExistsBehaviorException) StatusCode() int { 13045 return s.RespMetadata.StatusCode 13046} 13047 13048// RequestID returns the service's response RequestID for request. 13049func (s *InvalidFileExistsBehaviorException) RequestID() string { 13050 return s.RespMetadata.RequestID 13051} 13052 13053// The GitHub token is not valid. 13054type InvalidGitHubAccountTokenException struct { 13055 _ struct{} `type:"structure"` 13056 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 13057 13058 Message_ *string `locationName:"message" type:"string"` 13059} 13060 13061// String returns the string representation 13062func (s InvalidGitHubAccountTokenException) String() string { 13063 return awsutil.Prettify(s) 13064} 13065 13066// GoString returns the string representation 13067func (s InvalidGitHubAccountTokenException) GoString() string { 13068 return s.String() 13069} 13070 13071func newErrorInvalidGitHubAccountTokenException(v protocol.ResponseMetadata) error { 13072 return &InvalidGitHubAccountTokenException{ 13073 RespMetadata: v, 13074 } 13075} 13076 13077// Code returns the exception type name. 13078func (s *InvalidGitHubAccountTokenException) Code() string { 13079 return "InvalidGitHubAccountTokenException" 13080} 13081 13082// Message returns the exception's message. 13083func (s *InvalidGitHubAccountTokenException) Message() string { 13084 if s.Message_ != nil { 13085 return *s.Message_ 13086 } 13087 return "" 13088} 13089 13090// OrigErr always returns nil, satisfies awserr.Error interface. 13091func (s *InvalidGitHubAccountTokenException) OrigErr() error { 13092 return nil 13093} 13094 13095func (s *InvalidGitHubAccountTokenException) Error() string { 13096 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 13097} 13098 13099// Status code returns the HTTP status code for the request's response error. 13100func (s *InvalidGitHubAccountTokenException) StatusCode() int { 13101 return s.RespMetadata.StatusCode 13102} 13103 13104// RequestID returns the service's response RequestID for request. 13105func (s *InvalidGitHubAccountTokenException) RequestID() string { 13106 return s.RespMetadata.RequestID 13107} 13108 13109// The format of the specified GitHub account connection name is invalid. 13110type InvalidGitHubAccountTokenNameException struct { 13111 _ struct{} `type:"structure"` 13112 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 13113 13114 Message_ *string `locationName:"message" type:"string"` 13115} 13116 13117// String returns the string representation 13118func (s InvalidGitHubAccountTokenNameException) String() string { 13119 return awsutil.Prettify(s) 13120} 13121 13122// GoString returns the string representation 13123func (s InvalidGitHubAccountTokenNameException) GoString() string { 13124 return s.String() 13125} 13126 13127func newErrorInvalidGitHubAccountTokenNameException(v protocol.ResponseMetadata) error { 13128 return &InvalidGitHubAccountTokenNameException{ 13129 RespMetadata: v, 13130 } 13131} 13132 13133// Code returns the exception type name. 13134func (s *InvalidGitHubAccountTokenNameException) Code() string { 13135 return "InvalidGitHubAccountTokenNameException" 13136} 13137 13138// Message returns the exception's message. 13139func (s *InvalidGitHubAccountTokenNameException) Message() string { 13140 if s.Message_ != nil { 13141 return *s.Message_ 13142 } 13143 return "" 13144} 13145 13146// OrigErr always returns nil, satisfies awserr.Error interface. 13147func (s *InvalidGitHubAccountTokenNameException) OrigErr() error { 13148 return nil 13149} 13150 13151func (s *InvalidGitHubAccountTokenNameException) Error() string { 13152 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 13153} 13154 13155// Status code returns the HTTP status code for the request's response error. 13156func (s *InvalidGitHubAccountTokenNameException) StatusCode() int { 13157 return s.RespMetadata.StatusCode 13158} 13159 13160// RequestID returns the service's response RequestID for request. 13161func (s *InvalidGitHubAccountTokenNameException) RequestID() string { 13162 return s.RespMetadata.RequestID 13163} 13164 13165// The IAM session ARN was specified in an invalid format. 13166type InvalidIamSessionArnException struct { 13167 _ struct{} `type:"structure"` 13168 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 13169 13170 Message_ *string `locationName:"message" type:"string"` 13171} 13172 13173// String returns the string representation 13174func (s InvalidIamSessionArnException) String() string { 13175 return awsutil.Prettify(s) 13176} 13177 13178// GoString returns the string representation 13179func (s InvalidIamSessionArnException) GoString() string { 13180 return s.String() 13181} 13182 13183func newErrorInvalidIamSessionArnException(v protocol.ResponseMetadata) error { 13184 return &InvalidIamSessionArnException{ 13185 RespMetadata: v, 13186 } 13187} 13188 13189// Code returns the exception type name. 13190func (s *InvalidIamSessionArnException) Code() string { 13191 return "InvalidIamSessionArnException" 13192} 13193 13194// Message returns the exception's message. 13195func (s *InvalidIamSessionArnException) Message() string { 13196 if s.Message_ != nil { 13197 return *s.Message_ 13198 } 13199 return "" 13200} 13201 13202// OrigErr always returns nil, satisfies awserr.Error interface. 13203func (s *InvalidIamSessionArnException) OrigErr() error { 13204 return nil 13205} 13206 13207func (s *InvalidIamSessionArnException) Error() string { 13208 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 13209} 13210 13211// Status code returns the HTTP status code for the request's response error. 13212func (s *InvalidIamSessionArnException) StatusCode() int { 13213 return s.RespMetadata.StatusCode 13214} 13215 13216// RequestID returns the service's response RequestID for request. 13217func (s *InvalidIamSessionArnException) RequestID() string { 13218 return s.RespMetadata.RequestID 13219} 13220 13221// The IAM user ARN was specified in an invalid format. 13222type InvalidIamUserArnException struct { 13223 _ struct{} `type:"structure"` 13224 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 13225 13226 Message_ *string `locationName:"message" type:"string"` 13227} 13228 13229// String returns the string representation 13230func (s InvalidIamUserArnException) String() string { 13231 return awsutil.Prettify(s) 13232} 13233 13234// GoString returns the string representation 13235func (s InvalidIamUserArnException) GoString() string { 13236 return s.String() 13237} 13238 13239func newErrorInvalidIamUserArnException(v protocol.ResponseMetadata) error { 13240 return &InvalidIamUserArnException{ 13241 RespMetadata: v, 13242 } 13243} 13244 13245// Code returns the exception type name. 13246func (s *InvalidIamUserArnException) Code() string { 13247 return "InvalidIamUserArnException" 13248} 13249 13250// Message returns the exception's message. 13251func (s *InvalidIamUserArnException) Message() string { 13252 if s.Message_ != nil { 13253 return *s.Message_ 13254 } 13255 return "" 13256} 13257 13258// OrigErr always returns nil, satisfies awserr.Error interface. 13259func (s *InvalidIamUserArnException) OrigErr() error { 13260 return nil 13261} 13262 13263func (s *InvalidIamUserArnException) Error() string { 13264 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 13265} 13266 13267// Status code returns the HTTP status code for the request's response error. 13268func (s *InvalidIamUserArnException) StatusCode() int { 13269 return s.RespMetadata.StatusCode 13270} 13271 13272// RequestID returns the service's response RequestID for request. 13273func (s *InvalidIamUserArnException) RequestID() string { 13274 return s.RespMetadata.RequestID 13275} 13276 13277// The IgnoreApplicationStopFailures value is invalid. For AWS Lambda deployments, 13278// false is expected. For EC2/On-premises deployments, true or false is expected. 13279type InvalidIgnoreApplicationStopFailuresValueException struct { 13280 _ struct{} `type:"structure"` 13281 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 13282 13283 Message_ *string `locationName:"message" type:"string"` 13284} 13285 13286// String returns the string representation 13287func (s InvalidIgnoreApplicationStopFailuresValueException) String() string { 13288 return awsutil.Prettify(s) 13289} 13290 13291// GoString returns the string representation 13292func (s InvalidIgnoreApplicationStopFailuresValueException) GoString() string { 13293 return s.String() 13294} 13295 13296func newErrorInvalidIgnoreApplicationStopFailuresValueException(v protocol.ResponseMetadata) error { 13297 return &InvalidIgnoreApplicationStopFailuresValueException{ 13298 RespMetadata: v, 13299 } 13300} 13301 13302// Code returns the exception type name. 13303func (s *InvalidIgnoreApplicationStopFailuresValueException) Code() string { 13304 return "InvalidIgnoreApplicationStopFailuresValueException" 13305} 13306 13307// Message returns the exception's message. 13308func (s *InvalidIgnoreApplicationStopFailuresValueException) Message() string { 13309 if s.Message_ != nil { 13310 return *s.Message_ 13311 } 13312 return "" 13313} 13314 13315// OrigErr always returns nil, satisfies awserr.Error interface. 13316func (s *InvalidIgnoreApplicationStopFailuresValueException) OrigErr() error { 13317 return nil 13318} 13319 13320func (s *InvalidIgnoreApplicationStopFailuresValueException) Error() string { 13321 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 13322} 13323 13324// Status code returns the HTTP status code for the request's response error. 13325func (s *InvalidIgnoreApplicationStopFailuresValueException) StatusCode() int { 13326 return s.RespMetadata.StatusCode 13327} 13328 13329// RequestID returns the service's response RequestID for request. 13330func (s *InvalidIgnoreApplicationStopFailuresValueException) RequestID() string { 13331 return s.RespMetadata.RequestID 13332} 13333 13334// The input was specified in an invalid format. 13335type InvalidInputException struct { 13336 _ struct{} `type:"structure"` 13337 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 13338 13339 Message_ *string `locationName:"message" type:"string"` 13340} 13341 13342// String returns the string representation 13343func (s InvalidInputException) String() string { 13344 return awsutil.Prettify(s) 13345} 13346 13347// GoString returns the string representation 13348func (s InvalidInputException) GoString() string { 13349 return s.String() 13350} 13351 13352func newErrorInvalidInputException(v protocol.ResponseMetadata) error { 13353 return &InvalidInputException{ 13354 RespMetadata: v, 13355 } 13356} 13357 13358// Code returns the exception type name. 13359func (s *InvalidInputException) Code() string { 13360 return "InvalidInputException" 13361} 13362 13363// Message returns the exception's message. 13364func (s *InvalidInputException) Message() string { 13365 if s.Message_ != nil { 13366 return *s.Message_ 13367 } 13368 return "" 13369} 13370 13371// OrigErr always returns nil, satisfies awserr.Error interface. 13372func (s *InvalidInputException) OrigErr() error { 13373 return nil 13374} 13375 13376func (s *InvalidInputException) Error() string { 13377 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 13378} 13379 13380// Status code returns the HTTP status code for the request's response error. 13381func (s *InvalidInputException) StatusCode() int { 13382 return s.RespMetadata.StatusCode 13383} 13384 13385// RequestID returns the service's response RequestID for request. 13386func (s *InvalidInputException) RequestID() string { 13387 return s.RespMetadata.RequestID 13388} 13389 13390// The on-premises instance name was specified in an invalid format. 13391type InvalidInstanceNameException struct { 13392 _ struct{} `type:"structure"` 13393 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 13394 13395 Message_ *string `locationName:"message" type:"string"` 13396} 13397 13398// String returns the string representation 13399func (s InvalidInstanceNameException) String() string { 13400 return awsutil.Prettify(s) 13401} 13402 13403// GoString returns the string representation 13404func (s InvalidInstanceNameException) GoString() string { 13405 return s.String() 13406} 13407 13408func newErrorInvalidInstanceNameException(v protocol.ResponseMetadata) error { 13409 return &InvalidInstanceNameException{ 13410 RespMetadata: v, 13411 } 13412} 13413 13414// Code returns the exception type name. 13415func (s *InvalidInstanceNameException) Code() string { 13416 return "InvalidInstanceNameException" 13417} 13418 13419// Message returns the exception's message. 13420func (s *InvalidInstanceNameException) Message() string { 13421 if s.Message_ != nil { 13422 return *s.Message_ 13423 } 13424 return "" 13425} 13426 13427// OrigErr always returns nil, satisfies awserr.Error interface. 13428func (s *InvalidInstanceNameException) OrigErr() error { 13429 return nil 13430} 13431 13432func (s *InvalidInstanceNameException) Error() string { 13433 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 13434} 13435 13436// Status code returns the HTTP status code for the request's response error. 13437func (s *InvalidInstanceNameException) StatusCode() int { 13438 return s.RespMetadata.StatusCode 13439} 13440 13441// RequestID returns the service's response RequestID for request. 13442func (s *InvalidInstanceNameException) RequestID() string { 13443 return s.RespMetadata.RequestID 13444} 13445 13446// The specified instance status does not exist. 13447type InvalidInstanceStatusException struct { 13448 _ struct{} `type:"structure"` 13449 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 13450 13451 Message_ *string `locationName:"message" type:"string"` 13452} 13453 13454// String returns the string representation 13455func (s InvalidInstanceStatusException) String() string { 13456 return awsutil.Prettify(s) 13457} 13458 13459// GoString returns the string representation 13460func (s InvalidInstanceStatusException) GoString() string { 13461 return s.String() 13462} 13463 13464func newErrorInvalidInstanceStatusException(v protocol.ResponseMetadata) error { 13465 return &InvalidInstanceStatusException{ 13466 RespMetadata: v, 13467 } 13468} 13469 13470// Code returns the exception type name. 13471func (s *InvalidInstanceStatusException) Code() string { 13472 return "InvalidInstanceStatusException" 13473} 13474 13475// Message returns the exception's message. 13476func (s *InvalidInstanceStatusException) Message() string { 13477 if s.Message_ != nil { 13478 return *s.Message_ 13479 } 13480 return "" 13481} 13482 13483// OrigErr always returns nil, satisfies awserr.Error interface. 13484func (s *InvalidInstanceStatusException) OrigErr() error { 13485 return nil 13486} 13487 13488func (s *InvalidInstanceStatusException) Error() string { 13489 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 13490} 13491 13492// Status code returns the HTTP status code for the request's response error. 13493func (s *InvalidInstanceStatusException) StatusCode() int { 13494 return s.RespMetadata.StatusCode 13495} 13496 13497// RequestID returns the service's response RequestID for request. 13498func (s *InvalidInstanceStatusException) RequestID() string { 13499 return s.RespMetadata.RequestID 13500} 13501 13502// An invalid instance type was specified for instances in a blue/green deployment. 13503// Valid values include "Blue" for an original environment and "Green" for a 13504// replacement environment. 13505type InvalidInstanceTypeException struct { 13506 _ struct{} `type:"structure"` 13507 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 13508 13509 Message_ *string `locationName:"message" type:"string"` 13510} 13511 13512// String returns the string representation 13513func (s InvalidInstanceTypeException) String() string { 13514 return awsutil.Prettify(s) 13515} 13516 13517// GoString returns the string representation 13518func (s InvalidInstanceTypeException) GoString() string { 13519 return s.String() 13520} 13521 13522func newErrorInvalidInstanceTypeException(v protocol.ResponseMetadata) error { 13523 return &InvalidInstanceTypeException{ 13524 RespMetadata: v, 13525 } 13526} 13527 13528// Code returns the exception type name. 13529func (s *InvalidInstanceTypeException) Code() string { 13530 return "InvalidInstanceTypeException" 13531} 13532 13533// Message returns the exception's message. 13534func (s *InvalidInstanceTypeException) Message() string { 13535 if s.Message_ != nil { 13536 return *s.Message_ 13537 } 13538 return "" 13539} 13540 13541// OrigErr always returns nil, satisfies awserr.Error interface. 13542func (s *InvalidInstanceTypeException) OrigErr() error { 13543 return nil 13544} 13545 13546func (s *InvalidInstanceTypeException) Error() string { 13547 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 13548} 13549 13550// Status code returns the HTTP status code for the request's response error. 13551func (s *InvalidInstanceTypeException) StatusCode() int { 13552 return s.RespMetadata.StatusCode 13553} 13554 13555// RequestID returns the service's response RequestID for request. 13556func (s *InvalidInstanceTypeException) RequestID() string { 13557 return s.RespMetadata.RequestID 13558} 13559 13560// The specified key prefix filter was specified in an invalid format. 13561type InvalidKeyPrefixFilterException struct { 13562 _ struct{} `type:"structure"` 13563 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 13564 13565 Message_ *string `locationName:"message" type:"string"` 13566} 13567 13568// String returns the string representation 13569func (s InvalidKeyPrefixFilterException) String() string { 13570 return awsutil.Prettify(s) 13571} 13572 13573// GoString returns the string representation 13574func (s InvalidKeyPrefixFilterException) GoString() string { 13575 return s.String() 13576} 13577 13578func newErrorInvalidKeyPrefixFilterException(v protocol.ResponseMetadata) error { 13579 return &InvalidKeyPrefixFilterException{ 13580 RespMetadata: v, 13581 } 13582} 13583 13584// Code returns the exception type name. 13585func (s *InvalidKeyPrefixFilterException) Code() string { 13586 return "InvalidKeyPrefixFilterException" 13587} 13588 13589// Message returns the exception's message. 13590func (s *InvalidKeyPrefixFilterException) Message() string { 13591 if s.Message_ != nil { 13592 return *s.Message_ 13593 } 13594 return "" 13595} 13596 13597// OrigErr always returns nil, satisfies awserr.Error interface. 13598func (s *InvalidKeyPrefixFilterException) OrigErr() error { 13599 return nil 13600} 13601 13602func (s *InvalidKeyPrefixFilterException) Error() string { 13603 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 13604} 13605 13606// Status code returns the HTTP status code for the request's response error. 13607func (s *InvalidKeyPrefixFilterException) StatusCode() int { 13608 return s.RespMetadata.StatusCode 13609} 13610 13611// RequestID returns the service's response RequestID for request. 13612func (s *InvalidKeyPrefixFilterException) RequestID() string { 13613 return s.RespMetadata.RequestID 13614} 13615 13616// A lifecycle event hook is invalid. Review the hooks section in your AppSpec 13617// file to ensure the lifecycle events and hooks functions are valid. 13618type InvalidLifecycleEventHookExecutionIdException struct { 13619 _ struct{} `type:"structure"` 13620 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 13621 13622 Message_ *string `locationName:"message" type:"string"` 13623} 13624 13625// String returns the string representation 13626func (s InvalidLifecycleEventHookExecutionIdException) String() string { 13627 return awsutil.Prettify(s) 13628} 13629 13630// GoString returns the string representation 13631func (s InvalidLifecycleEventHookExecutionIdException) GoString() string { 13632 return s.String() 13633} 13634 13635func newErrorInvalidLifecycleEventHookExecutionIdException(v protocol.ResponseMetadata) error { 13636 return &InvalidLifecycleEventHookExecutionIdException{ 13637 RespMetadata: v, 13638 } 13639} 13640 13641// Code returns the exception type name. 13642func (s *InvalidLifecycleEventHookExecutionIdException) Code() string { 13643 return "InvalidLifecycleEventHookExecutionIdException" 13644} 13645 13646// Message returns the exception's message. 13647func (s *InvalidLifecycleEventHookExecutionIdException) Message() string { 13648 if s.Message_ != nil { 13649 return *s.Message_ 13650 } 13651 return "" 13652} 13653 13654// OrigErr always returns nil, satisfies awserr.Error interface. 13655func (s *InvalidLifecycleEventHookExecutionIdException) OrigErr() error { 13656 return nil 13657} 13658 13659func (s *InvalidLifecycleEventHookExecutionIdException) Error() string { 13660 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 13661} 13662 13663// Status code returns the HTTP status code for the request's response error. 13664func (s *InvalidLifecycleEventHookExecutionIdException) StatusCode() int { 13665 return s.RespMetadata.StatusCode 13666} 13667 13668// RequestID returns the service's response RequestID for request. 13669func (s *InvalidLifecycleEventHookExecutionIdException) RequestID() string { 13670 return s.RespMetadata.RequestID 13671} 13672 13673// The result of a Lambda validation function that verifies a lifecycle event 13674// is invalid. It should return Succeeded or Failed. 13675type InvalidLifecycleEventHookExecutionStatusException struct { 13676 _ struct{} `type:"structure"` 13677 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 13678 13679 Message_ *string `locationName:"message" type:"string"` 13680} 13681 13682// String returns the string representation 13683func (s InvalidLifecycleEventHookExecutionStatusException) String() string { 13684 return awsutil.Prettify(s) 13685} 13686 13687// GoString returns the string representation 13688func (s InvalidLifecycleEventHookExecutionStatusException) GoString() string { 13689 return s.String() 13690} 13691 13692func newErrorInvalidLifecycleEventHookExecutionStatusException(v protocol.ResponseMetadata) error { 13693 return &InvalidLifecycleEventHookExecutionStatusException{ 13694 RespMetadata: v, 13695 } 13696} 13697 13698// Code returns the exception type name. 13699func (s *InvalidLifecycleEventHookExecutionStatusException) Code() string { 13700 return "InvalidLifecycleEventHookExecutionStatusException" 13701} 13702 13703// Message returns the exception's message. 13704func (s *InvalidLifecycleEventHookExecutionStatusException) Message() string { 13705 if s.Message_ != nil { 13706 return *s.Message_ 13707 } 13708 return "" 13709} 13710 13711// OrigErr always returns nil, satisfies awserr.Error interface. 13712func (s *InvalidLifecycleEventHookExecutionStatusException) OrigErr() error { 13713 return nil 13714} 13715 13716func (s *InvalidLifecycleEventHookExecutionStatusException) Error() string { 13717 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 13718} 13719 13720// Status code returns the HTTP status code for the request's response error. 13721func (s *InvalidLifecycleEventHookExecutionStatusException) StatusCode() int { 13722 return s.RespMetadata.StatusCode 13723} 13724 13725// RequestID returns the service's response RequestID for request. 13726func (s *InvalidLifecycleEventHookExecutionStatusException) RequestID() string { 13727 return s.RespMetadata.RequestID 13728} 13729 13730// An invalid load balancer name, or no load balancer name, was specified. 13731type InvalidLoadBalancerInfoException struct { 13732 _ struct{} `type:"structure"` 13733 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 13734 13735 Message_ *string `locationName:"message" type:"string"` 13736} 13737 13738// String returns the string representation 13739func (s InvalidLoadBalancerInfoException) String() string { 13740 return awsutil.Prettify(s) 13741} 13742 13743// GoString returns the string representation 13744func (s InvalidLoadBalancerInfoException) GoString() string { 13745 return s.String() 13746} 13747 13748func newErrorInvalidLoadBalancerInfoException(v protocol.ResponseMetadata) error { 13749 return &InvalidLoadBalancerInfoException{ 13750 RespMetadata: v, 13751 } 13752} 13753 13754// Code returns the exception type name. 13755func (s *InvalidLoadBalancerInfoException) Code() string { 13756 return "InvalidLoadBalancerInfoException" 13757} 13758 13759// Message returns the exception's message. 13760func (s *InvalidLoadBalancerInfoException) Message() string { 13761 if s.Message_ != nil { 13762 return *s.Message_ 13763 } 13764 return "" 13765} 13766 13767// OrigErr always returns nil, satisfies awserr.Error interface. 13768func (s *InvalidLoadBalancerInfoException) OrigErr() error { 13769 return nil 13770} 13771 13772func (s *InvalidLoadBalancerInfoException) Error() string { 13773 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 13774} 13775 13776// Status code returns the HTTP status code for the request's response error. 13777func (s *InvalidLoadBalancerInfoException) StatusCode() int { 13778 return s.RespMetadata.StatusCode 13779} 13780 13781// RequestID returns the service's response RequestID for request. 13782func (s *InvalidLoadBalancerInfoException) RequestID() string { 13783 return s.RespMetadata.RequestID 13784} 13785 13786// The minimum healthy instance value was specified in an invalid format. 13787type InvalidMinimumHealthyHostValueException struct { 13788 _ struct{} `type:"structure"` 13789 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 13790 13791 Message_ *string `locationName:"message" type:"string"` 13792} 13793 13794// String returns the string representation 13795func (s InvalidMinimumHealthyHostValueException) String() string { 13796 return awsutil.Prettify(s) 13797} 13798 13799// GoString returns the string representation 13800func (s InvalidMinimumHealthyHostValueException) GoString() string { 13801 return s.String() 13802} 13803 13804func newErrorInvalidMinimumHealthyHostValueException(v protocol.ResponseMetadata) error { 13805 return &InvalidMinimumHealthyHostValueException{ 13806 RespMetadata: v, 13807 } 13808} 13809 13810// Code returns the exception type name. 13811func (s *InvalidMinimumHealthyHostValueException) Code() string { 13812 return "InvalidMinimumHealthyHostValueException" 13813} 13814 13815// Message returns the exception's message. 13816func (s *InvalidMinimumHealthyHostValueException) Message() string { 13817 if s.Message_ != nil { 13818 return *s.Message_ 13819 } 13820 return "" 13821} 13822 13823// OrigErr always returns nil, satisfies awserr.Error interface. 13824func (s *InvalidMinimumHealthyHostValueException) OrigErr() error { 13825 return nil 13826} 13827 13828func (s *InvalidMinimumHealthyHostValueException) Error() string { 13829 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 13830} 13831 13832// Status code returns the HTTP status code for the request's response error. 13833func (s *InvalidMinimumHealthyHostValueException) StatusCode() int { 13834 return s.RespMetadata.StatusCode 13835} 13836 13837// RequestID returns the service's response RequestID for request. 13838func (s *InvalidMinimumHealthyHostValueException) RequestID() string { 13839 return s.RespMetadata.RequestID 13840} 13841 13842// The next token was specified in an invalid format. 13843type InvalidNextTokenException struct { 13844 _ struct{} `type:"structure"` 13845 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 13846 13847 Message_ *string `locationName:"message" type:"string"` 13848} 13849 13850// String returns the string representation 13851func (s InvalidNextTokenException) String() string { 13852 return awsutil.Prettify(s) 13853} 13854 13855// GoString returns the string representation 13856func (s InvalidNextTokenException) GoString() string { 13857 return s.String() 13858} 13859 13860func newErrorInvalidNextTokenException(v protocol.ResponseMetadata) error { 13861 return &InvalidNextTokenException{ 13862 RespMetadata: v, 13863 } 13864} 13865 13866// Code returns the exception type name. 13867func (s *InvalidNextTokenException) Code() string { 13868 return "InvalidNextTokenException" 13869} 13870 13871// Message returns the exception's message. 13872func (s *InvalidNextTokenException) Message() string { 13873 if s.Message_ != nil { 13874 return *s.Message_ 13875 } 13876 return "" 13877} 13878 13879// OrigErr always returns nil, satisfies awserr.Error interface. 13880func (s *InvalidNextTokenException) OrigErr() error { 13881 return nil 13882} 13883 13884func (s *InvalidNextTokenException) Error() string { 13885 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 13886} 13887 13888// Status code returns the HTTP status code for the request's response error. 13889func (s *InvalidNextTokenException) StatusCode() int { 13890 return s.RespMetadata.StatusCode 13891} 13892 13893// RequestID returns the service's response RequestID for request. 13894func (s *InvalidNextTokenException) RequestID() string { 13895 return s.RespMetadata.RequestID 13896} 13897 13898// A call was submitted that specified both OnPremisesTagFilters and OnPremisesTagSet, 13899// but only one of these data types can be used in a single call. 13900type InvalidOnPremisesTagCombinationException struct { 13901 _ struct{} `type:"structure"` 13902 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 13903 13904 Message_ *string `locationName:"message" type:"string"` 13905} 13906 13907// String returns the string representation 13908func (s InvalidOnPremisesTagCombinationException) String() string { 13909 return awsutil.Prettify(s) 13910} 13911 13912// GoString returns the string representation 13913func (s InvalidOnPremisesTagCombinationException) GoString() string { 13914 return s.String() 13915} 13916 13917func newErrorInvalidOnPremisesTagCombinationException(v protocol.ResponseMetadata) error { 13918 return &InvalidOnPremisesTagCombinationException{ 13919 RespMetadata: v, 13920 } 13921} 13922 13923// Code returns the exception type name. 13924func (s *InvalidOnPremisesTagCombinationException) Code() string { 13925 return "InvalidOnPremisesTagCombinationException" 13926} 13927 13928// Message returns the exception's message. 13929func (s *InvalidOnPremisesTagCombinationException) Message() string { 13930 if s.Message_ != nil { 13931 return *s.Message_ 13932 } 13933 return "" 13934} 13935 13936// OrigErr always returns nil, satisfies awserr.Error interface. 13937func (s *InvalidOnPremisesTagCombinationException) OrigErr() error { 13938 return nil 13939} 13940 13941func (s *InvalidOnPremisesTagCombinationException) Error() string { 13942 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 13943} 13944 13945// Status code returns the HTTP status code for the request's response error. 13946func (s *InvalidOnPremisesTagCombinationException) StatusCode() int { 13947 return s.RespMetadata.StatusCode 13948} 13949 13950// RequestID returns the service's response RequestID for request. 13951func (s *InvalidOnPremisesTagCombinationException) RequestID() string { 13952 return s.RespMetadata.RequestID 13953} 13954 13955// An invalid operation was detected. 13956type InvalidOperationException struct { 13957 _ struct{} `type:"structure"` 13958 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 13959 13960 Message_ *string `locationName:"message" type:"string"` 13961} 13962 13963// String returns the string representation 13964func (s InvalidOperationException) String() string { 13965 return awsutil.Prettify(s) 13966} 13967 13968// GoString returns the string representation 13969func (s InvalidOperationException) GoString() string { 13970 return s.String() 13971} 13972 13973func newErrorInvalidOperationException(v protocol.ResponseMetadata) error { 13974 return &InvalidOperationException{ 13975 RespMetadata: v, 13976 } 13977} 13978 13979// Code returns the exception type name. 13980func (s *InvalidOperationException) Code() string { 13981 return "InvalidOperationException" 13982} 13983 13984// Message returns the exception's message. 13985func (s *InvalidOperationException) Message() string { 13986 if s.Message_ != nil { 13987 return *s.Message_ 13988 } 13989 return "" 13990} 13991 13992// OrigErr always returns nil, satisfies awserr.Error interface. 13993func (s *InvalidOperationException) OrigErr() error { 13994 return nil 13995} 13996 13997func (s *InvalidOperationException) Error() string { 13998 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 13999} 14000 14001// Status code returns the HTTP status code for the request's response error. 14002func (s *InvalidOperationException) StatusCode() int { 14003 return s.RespMetadata.StatusCode 14004} 14005 14006// RequestID returns the service's response RequestID for request. 14007func (s *InvalidOperationException) RequestID() string { 14008 return s.RespMetadata.RequestID 14009} 14010 14011// The registration status was specified in an invalid format. 14012type InvalidRegistrationStatusException struct { 14013 _ struct{} `type:"structure"` 14014 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 14015 14016 Message_ *string `locationName:"message" type:"string"` 14017} 14018 14019// String returns the string representation 14020func (s InvalidRegistrationStatusException) String() string { 14021 return awsutil.Prettify(s) 14022} 14023 14024// GoString returns the string representation 14025func (s InvalidRegistrationStatusException) GoString() string { 14026 return s.String() 14027} 14028 14029func newErrorInvalidRegistrationStatusException(v protocol.ResponseMetadata) error { 14030 return &InvalidRegistrationStatusException{ 14031 RespMetadata: v, 14032 } 14033} 14034 14035// Code returns the exception type name. 14036func (s *InvalidRegistrationStatusException) Code() string { 14037 return "InvalidRegistrationStatusException" 14038} 14039 14040// Message returns the exception's message. 14041func (s *InvalidRegistrationStatusException) Message() string { 14042 if s.Message_ != nil { 14043 return *s.Message_ 14044 } 14045 return "" 14046} 14047 14048// OrigErr always returns nil, satisfies awserr.Error interface. 14049func (s *InvalidRegistrationStatusException) OrigErr() error { 14050 return nil 14051} 14052 14053func (s *InvalidRegistrationStatusException) Error() string { 14054 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 14055} 14056 14057// Status code returns the HTTP status code for the request's response error. 14058func (s *InvalidRegistrationStatusException) StatusCode() int { 14059 return s.RespMetadata.StatusCode 14060} 14061 14062// RequestID returns the service's response RequestID for request. 14063func (s *InvalidRegistrationStatusException) RequestID() string { 14064 return s.RespMetadata.RequestID 14065} 14066 14067// The revision was specified in an invalid format. 14068type InvalidRevisionException struct { 14069 _ struct{} `type:"structure"` 14070 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 14071 14072 Message_ *string `locationName:"message" type:"string"` 14073} 14074 14075// String returns the string representation 14076func (s InvalidRevisionException) String() string { 14077 return awsutil.Prettify(s) 14078} 14079 14080// GoString returns the string representation 14081func (s InvalidRevisionException) GoString() string { 14082 return s.String() 14083} 14084 14085func newErrorInvalidRevisionException(v protocol.ResponseMetadata) error { 14086 return &InvalidRevisionException{ 14087 RespMetadata: v, 14088 } 14089} 14090 14091// Code returns the exception type name. 14092func (s *InvalidRevisionException) Code() string { 14093 return "InvalidRevisionException" 14094} 14095 14096// Message returns the exception's message. 14097func (s *InvalidRevisionException) Message() string { 14098 if s.Message_ != nil { 14099 return *s.Message_ 14100 } 14101 return "" 14102} 14103 14104// OrigErr always returns nil, satisfies awserr.Error interface. 14105func (s *InvalidRevisionException) OrigErr() error { 14106 return nil 14107} 14108 14109func (s *InvalidRevisionException) Error() string { 14110 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 14111} 14112 14113// Status code returns the HTTP status code for the request's response error. 14114func (s *InvalidRevisionException) StatusCode() int { 14115 return s.RespMetadata.StatusCode 14116} 14117 14118// RequestID returns the service's response RequestID for request. 14119func (s *InvalidRevisionException) RequestID() string { 14120 return s.RespMetadata.RequestID 14121} 14122 14123// The service role ARN was specified in an invalid format. Or, if an Auto Scaling 14124// group was specified, the specified service role does not grant the appropriate 14125// permissions to Amazon EC2 Auto Scaling. 14126type InvalidRoleException struct { 14127 _ struct{} `type:"structure"` 14128 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 14129 14130 Message_ *string `locationName:"message" type:"string"` 14131} 14132 14133// String returns the string representation 14134func (s InvalidRoleException) String() string { 14135 return awsutil.Prettify(s) 14136} 14137 14138// GoString returns the string representation 14139func (s InvalidRoleException) GoString() string { 14140 return s.String() 14141} 14142 14143func newErrorInvalidRoleException(v protocol.ResponseMetadata) error { 14144 return &InvalidRoleException{ 14145 RespMetadata: v, 14146 } 14147} 14148 14149// Code returns the exception type name. 14150func (s *InvalidRoleException) Code() string { 14151 return "InvalidRoleException" 14152} 14153 14154// Message returns the exception's message. 14155func (s *InvalidRoleException) Message() string { 14156 if s.Message_ != nil { 14157 return *s.Message_ 14158 } 14159 return "" 14160} 14161 14162// OrigErr always returns nil, satisfies awserr.Error interface. 14163func (s *InvalidRoleException) OrigErr() error { 14164 return nil 14165} 14166 14167func (s *InvalidRoleException) Error() string { 14168 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 14169} 14170 14171// Status code returns the HTTP status code for the request's response error. 14172func (s *InvalidRoleException) StatusCode() int { 14173 return s.RespMetadata.StatusCode 14174} 14175 14176// RequestID returns the service's response RequestID for request. 14177func (s *InvalidRoleException) RequestID() string { 14178 return s.RespMetadata.RequestID 14179} 14180 14181// The column name to sort by is either not present or was specified in an invalid 14182// format. 14183type InvalidSortByException struct { 14184 _ struct{} `type:"structure"` 14185 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 14186 14187 Message_ *string `locationName:"message" type:"string"` 14188} 14189 14190// String returns the string representation 14191func (s InvalidSortByException) String() string { 14192 return awsutil.Prettify(s) 14193} 14194 14195// GoString returns the string representation 14196func (s InvalidSortByException) GoString() string { 14197 return s.String() 14198} 14199 14200func newErrorInvalidSortByException(v protocol.ResponseMetadata) error { 14201 return &InvalidSortByException{ 14202 RespMetadata: v, 14203 } 14204} 14205 14206// Code returns the exception type name. 14207func (s *InvalidSortByException) Code() string { 14208 return "InvalidSortByException" 14209} 14210 14211// Message returns the exception's message. 14212func (s *InvalidSortByException) Message() string { 14213 if s.Message_ != nil { 14214 return *s.Message_ 14215 } 14216 return "" 14217} 14218 14219// OrigErr always returns nil, satisfies awserr.Error interface. 14220func (s *InvalidSortByException) OrigErr() error { 14221 return nil 14222} 14223 14224func (s *InvalidSortByException) Error() string { 14225 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 14226} 14227 14228// Status code returns the HTTP status code for the request's response error. 14229func (s *InvalidSortByException) StatusCode() int { 14230 return s.RespMetadata.StatusCode 14231} 14232 14233// RequestID returns the service's response RequestID for request. 14234func (s *InvalidSortByException) RequestID() string { 14235 return s.RespMetadata.RequestID 14236} 14237 14238// The sort order was specified in an invalid format. 14239type InvalidSortOrderException struct { 14240 _ struct{} `type:"structure"` 14241 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 14242 14243 Message_ *string `locationName:"message" type:"string"` 14244} 14245 14246// String returns the string representation 14247func (s InvalidSortOrderException) String() string { 14248 return awsutil.Prettify(s) 14249} 14250 14251// GoString returns the string representation 14252func (s InvalidSortOrderException) GoString() string { 14253 return s.String() 14254} 14255 14256func newErrorInvalidSortOrderException(v protocol.ResponseMetadata) error { 14257 return &InvalidSortOrderException{ 14258 RespMetadata: v, 14259 } 14260} 14261 14262// Code returns the exception type name. 14263func (s *InvalidSortOrderException) Code() string { 14264 return "InvalidSortOrderException" 14265} 14266 14267// Message returns the exception's message. 14268func (s *InvalidSortOrderException) Message() string { 14269 if s.Message_ != nil { 14270 return *s.Message_ 14271 } 14272 return "" 14273} 14274 14275// OrigErr always returns nil, satisfies awserr.Error interface. 14276func (s *InvalidSortOrderException) OrigErr() error { 14277 return nil 14278} 14279 14280func (s *InvalidSortOrderException) Error() string { 14281 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 14282} 14283 14284// Status code returns the HTTP status code for the request's response error. 14285func (s *InvalidSortOrderException) StatusCode() int { 14286 return s.RespMetadata.StatusCode 14287} 14288 14289// RequestID returns the service's response RequestID for request. 14290func (s *InvalidSortOrderException) RequestID() string { 14291 return s.RespMetadata.RequestID 14292} 14293 14294// The tag was specified in an invalid format. 14295type InvalidTagException struct { 14296 _ struct{} `type:"structure"` 14297 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 14298 14299 Message_ *string `locationName:"message" type:"string"` 14300} 14301 14302// String returns the string representation 14303func (s InvalidTagException) String() string { 14304 return awsutil.Prettify(s) 14305} 14306 14307// GoString returns the string representation 14308func (s InvalidTagException) GoString() string { 14309 return s.String() 14310} 14311 14312func newErrorInvalidTagException(v protocol.ResponseMetadata) error { 14313 return &InvalidTagException{ 14314 RespMetadata: v, 14315 } 14316} 14317 14318// Code returns the exception type name. 14319func (s *InvalidTagException) Code() string { 14320 return "InvalidTagException" 14321} 14322 14323// Message returns the exception's message. 14324func (s *InvalidTagException) Message() string { 14325 if s.Message_ != nil { 14326 return *s.Message_ 14327 } 14328 return "" 14329} 14330 14331// OrigErr always returns nil, satisfies awserr.Error interface. 14332func (s *InvalidTagException) OrigErr() error { 14333 return nil 14334} 14335 14336func (s *InvalidTagException) Error() string { 14337 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 14338} 14339 14340// Status code returns the HTTP status code for the request's response error. 14341func (s *InvalidTagException) StatusCode() int { 14342 return s.RespMetadata.StatusCode 14343} 14344 14345// RequestID returns the service's response RequestID for request. 14346func (s *InvalidTagException) RequestID() string { 14347 return s.RespMetadata.RequestID 14348} 14349 14350// The tag filter was specified in an invalid format. 14351type InvalidTagFilterException struct { 14352 _ struct{} `type:"structure"` 14353 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 14354 14355 Message_ *string `locationName:"message" type:"string"` 14356} 14357 14358// String returns the string representation 14359func (s InvalidTagFilterException) String() string { 14360 return awsutil.Prettify(s) 14361} 14362 14363// GoString returns the string representation 14364func (s InvalidTagFilterException) GoString() string { 14365 return s.String() 14366} 14367 14368func newErrorInvalidTagFilterException(v protocol.ResponseMetadata) error { 14369 return &InvalidTagFilterException{ 14370 RespMetadata: v, 14371 } 14372} 14373 14374// Code returns the exception type name. 14375func (s *InvalidTagFilterException) Code() string { 14376 return "InvalidTagFilterException" 14377} 14378 14379// Message returns the exception's message. 14380func (s *InvalidTagFilterException) Message() string { 14381 if s.Message_ != nil { 14382 return *s.Message_ 14383 } 14384 return "" 14385} 14386 14387// OrigErr always returns nil, satisfies awserr.Error interface. 14388func (s *InvalidTagFilterException) OrigErr() error { 14389 return nil 14390} 14391 14392func (s *InvalidTagFilterException) Error() string { 14393 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 14394} 14395 14396// Status code returns the HTTP status code for the request's response error. 14397func (s *InvalidTagFilterException) StatusCode() int { 14398 return s.RespMetadata.StatusCode 14399} 14400 14401// RequestID returns the service's response RequestID for request. 14402func (s *InvalidTagFilterException) RequestID() string { 14403 return s.RespMetadata.RequestID 14404} 14405 14406// The specified tags are not valid. 14407type InvalidTagsToAddException struct { 14408 _ struct{} `type:"structure"` 14409 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 14410 14411 Message_ *string `locationName:"message" type:"string"` 14412} 14413 14414// String returns the string representation 14415func (s InvalidTagsToAddException) String() string { 14416 return awsutil.Prettify(s) 14417} 14418 14419// GoString returns the string representation 14420func (s InvalidTagsToAddException) GoString() string { 14421 return s.String() 14422} 14423 14424func newErrorInvalidTagsToAddException(v protocol.ResponseMetadata) error { 14425 return &InvalidTagsToAddException{ 14426 RespMetadata: v, 14427 } 14428} 14429 14430// Code returns the exception type name. 14431func (s *InvalidTagsToAddException) Code() string { 14432 return "InvalidTagsToAddException" 14433} 14434 14435// Message returns the exception's message. 14436func (s *InvalidTagsToAddException) Message() string { 14437 if s.Message_ != nil { 14438 return *s.Message_ 14439 } 14440 return "" 14441} 14442 14443// OrigErr always returns nil, satisfies awserr.Error interface. 14444func (s *InvalidTagsToAddException) OrigErr() error { 14445 return nil 14446} 14447 14448func (s *InvalidTagsToAddException) Error() string { 14449 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 14450} 14451 14452// Status code returns the HTTP status code for the request's response error. 14453func (s *InvalidTagsToAddException) StatusCode() int { 14454 return s.RespMetadata.StatusCode 14455} 14456 14457// RequestID returns the service's response RequestID for request. 14458func (s *InvalidTagsToAddException) RequestID() string { 14459 return s.RespMetadata.RequestID 14460} 14461 14462// The target filter name is invalid. 14463type InvalidTargetFilterNameException struct { 14464 _ struct{} `type:"structure"` 14465 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 14466 14467 Message_ *string `locationName:"message" type:"string"` 14468} 14469 14470// String returns the string representation 14471func (s InvalidTargetFilterNameException) String() string { 14472 return awsutil.Prettify(s) 14473} 14474 14475// GoString returns the string representation 14476func (s InvalidTargetFilterNameException) GoString() string { 14477 return s.String() 14478} 14479 14480func newErrorInvalidTargetFilterNameException(v protocol.ResponseMetadata) error { 14481 return &InvalidTargetFilterNameException{ 14482 RespMetadata: v, 14483 } 14484} 14485 14486// Code returns the exception type name. 14487func (s *InvalidTargetFilterNameException) Code() string { 14488 return "InvalidTargetFilterNameException" 14489} 14490 14491// Message returns the exception's message. 14492func (s *InvalidTargetFilterNameException) Message() string { 14493 if s.Message_ != nil { 14494 return *s.Message_ 14495 } 14496 return "" 14497} 14498 14499// OrigErr always returns nil, satisfies awserr.Error interface. 14500func (s *InvalidTargetFilterNameException) OrigErr() error { 14501 return nil 14502} 14503 14504func (s *InvalidTargetFilterNameException) Error() string { 14505 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 14506} 14507 14508// Status code returns the HTTP status code for the request's response error. 14509func (s *InvalidTargetFilterNameException) StatusCode() int { 14510 return s.RespMetadata.StatusCode 14511} 14512 14513// RequestID returns the service's response RequestID for request. 14514func (s *InvalidTargetFilterNameException) RequestID() string { 14515 return s.RespMetadata.RequestID 14516} 14517 14518// A target group pair associated with this deployment is not valid. 14519type InvalidTargetGroupPairException struct { 14520 _ struct{} `type:"structure"` 14521 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 14522 14523 Message_ *string `locationName:"message" type:"string"` 14524} 14525 14526// String returns the string representation 14527func (s InvalidTargetGroupPairException) String() string { 14528 return awsutil.Prettify(s) 14529} 14530 14531// GoString returns the string representation 14532func (s InvalidTargetGroupPairException) GoString() string { 14533 return s.String() 14534} 14535 14536func newErrorInvalidTargetGroupPairException(v protocol.ResponseMetadata) error { 14537 return &InvalidTargetGroupPairException{ 14538 RespMetadata: v, 14539 } 14540} 14541 14542// Code returns the exception type name. 14543func (s *InvalidTargetGroupPairException) Code() string { 14544 return "InvalidTargetGroupPairException" 14545} 14546 14547// Message returns the exception's message. 14548func (s *InvalidTargetGroupPairException) Message() string { 14549 if s.Message_ != nil { 14550 return *s.Message_ 14551 } 14552 return "" 14553} 14554 14555// OrigErr always returns nil, satisfies awserr.Error interface. 14556func (s *InvalidTargetGroupPairException) OrigErr() error { 14557 return nil 14558} 14559 14560func (s *InvalidTargetGroupPairException) Error() string { 14561 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 14562} 14563 14564// Status code returns the HTTP status code for the request's response error. 14565func (s *InvalidTargetGroupPairException) StatusCode() int { 14566 return s.RespMetadata.StatusCode 14567} 14568 14569// RequestID returns the service's response RequestID for request. 14570func (s *InvalidTargetGroupPairException) RequestID() string { 14571 return s.RespMetadata.RequestID 14572} 14573 14574// The target instance configuration is invalid. Possible causes include: 14575// 14576// * Configuration data for target instances was entered for an in-place 14577// deployment. 14578// 14579// * The limit of 10 tags for a tag type was exceeded. 14580// 14581// * The combined length of the tag names exceeded the limit. 14582// 14583// * A specified tag is not currently applied to any instances. 14584type InvalidTargetInstancesException struct { 14585 _ struct{} `type:"structure"` 14586 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 14587 14588 Message_ *string `locationName:"message" type:"string"` 14589} 14590 14591// String returns the string representation 14592func (s InvalidTargetInstancesException) String() string { 14593 return awsutil.Prettify(s) 14594} 14595 14596// GoString returns the string representation 14597func (s InvalidTargetInstancesException) GoString() string { 14598 return s.String() 14599} 14600 14601func newErrorInvalidTargetInstancesException(v protocol.ResponseMetadata) error { 14602 return &InvalidTargetInstancesException{ 14603 RespMetadata: v, 14604 } 14605} 14606 14607// Code returns the exception type name. 14608func (s *InvalidTargetInstancesException) Code() string { 14609 return "InvalidTargetInstancesException" 14610} 14611 14612// Message returns the exception's message. 14613func (s *InvalidTargetInstancesException) Message() string { 14614 if s.Message_ != nil { 14615 return *s.Message_ 14616 } 14617 return "" 14618} 14619 14620// OrigErr always returns nil, satisfies awserr.Error interface. 14621func (s *InvalidTargetInstancesException) OrigErr() error { 14622 return nil 14623} 14624 14625func (s *InvalidTargetInstancesException) Error() string { 14626 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 14627} 14628 14629// Status code returns the HTTP status code for the request's response error. 14630func (s *InvalidTargetInstancesException) StatusCode() int { 14631 return s.RespMetadata.StatusCode 14632} 14633 14634// RequestID returns the service's response RequestID for request. 14635func (s *InvalidTargetInstancesException) RequestID() string { 14636 return s.RespMetadata.RequestID 14637} 14638 14639// The specified time range was specified in an invalid format. 14640type InvalidTimeRangeException struct { 14641 _ struct{} `type:"structure"` 14642 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 14643 14644 Message_ *string `locationName:"message" type:"string"` 14645} 14646 14647// String returns the string representation 14648func (s InvalidTimeRangeException) String() string { 14649 return awsutil.Prettify(s) 14650} 14651 14652// GoString returns the string representation 14653func (s InvalidTimeRangeException) GoString() string { 14654 return s.String() 14655} 14656 14657func newErrorInvalidTimeRangeException(v protocol.ResponseMetadata) error { 14658 return &InvalidTimeRangeException{ 14659 RespMetadata: v, 14660 } 14661} 14662 14663// Code returns the exception type name. 14664func (s *InvalidTimeRangeException) Code() string { 14665 return "InvalidTimeRangeException" 14666} 14667 14668// Message returns the exception's message. 14669func (s *InvalidTimeRangeException) Message() string { 14670 if s.Message_ != nil { 14671 return *s.Message_ 14672 } 14673 return "" 14674} 14675 14676// OrigErr always returns nil, satisfies awserr.Error interface. 14677func (s *InvalidTimeRangeException) OrigErr() error { 14678 return nil 14679} 14680 14681func (s *InvalidTimeRangeException) Error() string { 14682 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 14683} 14684 14685// Status code returns the HTTP status code for the request's response error. 14686func (s *InvalidTimeRangeException) StatusCode() int { 14687 return s.RespMetadata.StatusCode 14688} 14689 14690// RequestID returns the service's response RequestID for request. 14691func (s *InvalidTimeRangeException) RequestID() string { 14692 return s.RespMetadata.RequestID 14693} 14694 14695// The configuration that specifies how traffic is routed during a deployment 14696// is invalid. 14697type InvalidTrafficRoutingConfigurationException struct { 14698 _ struct{} `type:"structure"` 14699 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 14700 14701 Message_ *string `locationName:"message" type:"string"` 14702} 14703 14704// String returns the string representation 14705func (s InvalidTrafficRoutingConfigurationException) String() string { 14706 return awsutil.Prettify(s) 14707} 14708 14709// GoString returns the string representation 14710func (s InvalidTrafficRoutingConfigurationException) GoString() string { 14711 return s.String() 14712} 14713 14714func newErrorInvalidTrafficRoutingConfigurationException(v protocol.ResponseMetadata) error { 14715 return &InvalidTrafficRoutingConfigurationException{ 14716 RespMetadata: v, 14717 } 14718} 14719 14720// Code returns the exception type name. 14721func (s *InvalidTrafficRoutingConfigurationException) Code() string { 14722 return "InvalidTrafficRoutingConfigurationException" 14723} 14724 14725// Message returns the exception's message. 14726func (s *InvalidTrafficRoutingConfigurationException) Message() string { 14727 if s.Message_ != nil { 14728 return *s.Message_ 14729 } 14730 return "" 14731} 14732 14733// OrigErr always returns nil, satisfies awserr.Error interface. 14734func (s *InvalidTrafficRoutingConfigurationException) OrigErr() error { 14735 return nil 14736} 14737 14738func (s *InvalidTrafficRoutingConfigurationException) Error() string { 14739 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 14740} 14741 14742// Status code returns the HTTP status code for the request's response error. 14743func (s *InvalidTrafficRoutingConfigurationException) StatusCode() int { 14744 return s.RespMetadata.StatusCode 14745} 14746 14747// RequestID returns the service's response RequestID for request. 14748func (s *InvalidTrafficRoutingConfigurationException) RequestID() string { 14749 return s.RespMetadata.RequestID 14750} 14751 14752// The trigger was specified in an invalid format. 14753type InvalidTriggerConfigException struct { 14754 _ struct{} `type:"structure"` 14755 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 14756 14757 Message_ *string `locationName:"message" type:"string"` 14758} 14759 14760// String returns the string representation 14761func (s InvalidTriggerConfigException) String() string { 14762 return awsutil.Prettify(s) 14763} 14764 14765// GoString returns the string representation 14766func (s InvalidTriggerConfigException) GoString() string { 14767 return s.String() 14768} 14769 14770func newErrorInvalidTriggerConfigException(v protocol.ResponseMetadata) error { 14771 return &InvalidTriggerConfigException{ 14772 RespMetadata: v, 14773 } 14774} 14775 14776// Code returns the exception type name. 14777func (s *InvalidTriggerConfigException) Code() string { 14778 return "InvalidTriggerConfigException" 14779} 14780 14781// Message returns the exception's message. 14782func (s *InvalidTriggerConfigException) Message() string { 14783 if s.Message_ != nil { 14784 return *s.Message_ 14785 } 14786 return "" 14787} 14788 14789// OrigErr always returns nil, satisfies awserr.Error interface. 14790func (s *InvalidTriggerConfigException) OrigErr() error { 14791 return nil 14792} 14793 14794func (s *InvalidTriggerConfigException) Error() string { 14795 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 14796} 14797 14798// Status code returns the HTTP status code for the request's response error. 14799func (s *InvalidTriggerConfigException) StatusCode() int { 14800 return s.RespMetadata.StatusCode 14801} 14802 14803// RequestID returns the service's response RequestID for request. 14804func (s *InvalidTriggerConfigException) RequestID() string { 14805 return s.RespMetadata.RequestID 14806} 14807 14808// The UpdateOutdatedInstancesOnly value is invalid. For AWS Lambda deployments, 14809// false is expected. For EC2/On-premises deployments, true or false is expected. 14810type InvalidUpdateOutdatedInstancesOnlyValueException struct { 14811 _ struct{} `type:"structure"` 14812 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 14813 14814 Message_ *string `locationName:"message" type:"string"` 14815} 14816 14817// String returns the string representation 14818func (s InvalidUpdateOutdatedInstancesOnlyValueException) String() string { 14819 return awsutil.Prettify(s) 14820} 14821 14822// GoString returns the string representation 14823func (s InvalidUpdateOutdatedInstancesOnlyValueException) GoString() string { 14824 return s.String() 14825} 14826 14827func newErrorInvalidUpdateOutdatedInstancesOnlyValueException(v protocol.ResponseMetadata) error { 14828 return &InvalidUpdateOutdatedInstancesOnlyValueException{ 14829 RespMetadata: v, 14830 } 14831} 14832 14833// Code returns the exception type name. 14834func (s *InvalidUpdateOutdatedInstancesOnlyValueException) Code() string { 14835 return "InvalidUpdateOutdatedInstancesOnlyValueException" 14836} 14837 14838// Message returns the exception's message. 14839func (s *InvalidUpdateOutdatedInstancesOnlyValueException) Message() string { 14840 if s.Message_ != nil { 14841 return *s.Message_ 14842 } 14843 return "" 14844} 14845 14846// OrigErr always returns nil, satisfies awserr.Error interface. 14847func (s *InvalidUpdateOutdatedInstancesOnlyValueException) OrigErr() error { 14848 return nil 14849} 14850 14851func (s *InvalidUpdateOutdatedInstancesOnlyValueException) Error() string { 14852 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 14853} 14854 14855// Status code returns the HTTP status code for the request's response error. 14856func (s *InvalidUpdateOutdatedInstancesOnlyValueException) StatusCode() int { 14857 return s.RespMetadata.StatusCode 14858} 14859 14860// RequestID returns the service's response RequestID for request. 14861func (s *InvalidUpdateOutdatedInstancesOnlyValueException) RequestID() string { 14862 return s.RespMetadata.RequestID 14863} 14864 14865// Information about a Lambda function specified in a deployment. 14866type LambdaFunctionInfo struct { 14867 _ struct{} `type:"structure"` 14868 14869 // The version of a Lambda function that production traffic points to. 14870 CurrentVersion *string `locationName:"currentVersion" type:"string"` 14871 14872 // The alias of a Lambda function. For more information, see AWS Lambda Function 14873 // Aliases (https://docs.aws.amazon.com/lambda/latest/dg/aliases-intro.html) 14874 // in the AWS Lambda Developer Guide. 14875 FunctionAlias *string `locationName:"functionAlias" type:"string"` 14876 14877 // The name of a Lambda function. 14878 FunctionName *string `locationName:"functionName" type:"string"` 14879 14880 // The version of a Lambda function that production traffic points to after 14881 // the Lambda function is deployed. 14882 TargetVersion *string `locationName:"targetVersion" type:"string"` 14883 14884 // The percentage of production traffic that the target version of a Lambda 14885 // function receives. 14886 TargetVersionWeight *float64 `locationName:"targetVersionWeight" type:"double"` 14887} 14888 14889// String returns the string representation 14890func (s LambdaFunctionInfo) String() string { 14891 return awsutil.Prettify(s) 14892} 14893 14894// GoString returns the string representation 14895func (s LambdaFunctionInfo) GoString() string { 14896 return s.String() 14897} 14898 14899// SetCurrentVersion sets the CurrentVersion field's value. 14900func (s *LambdaFunctionInfo) SetCurrentVersion(v string) *LambdaFunctionInfo { 14901 s.CurrentVersion = &v 14902 return s 14903} 14904 14905// SetFunctionAlias sets the FunctionAlias field's value. 14906func (s *LambdaFunctionInfo) SetFunctionAlias(v string) *LambdaFunctionInfo { 14907 s.FunctionAlias = &v 14908 return s 14909} 14910 14911// SetFunctionName sets the FunctionName field's value. 14912func (s *LambdaFunctionInfo) SetFunctionName(v string) *LambdaFunctionInfo { 14913 s.FunctionName = &v 14914 return s 14915} 14916 14917// SetTargetVersion sets the TargetVersion field's value. 14918func (s *LambdaFunctionInfo) SetTargetVersion(v string) *LambdaFunctionInfo { 14919 s.TargetVersion = &v 14920 return s 14921} 14922 14923// SetTargetVersionWeight sets the TargetVersionWeight field's value. 14924func (s *LambdaFunctionInfo) SetTargetVersionWeight(v float64) *LambdaFunctionInfo { 14925 s.TargetVersionWeight = &v 14926 return s 14927} 14928 14929// Information about the target AWS Lambda function during an AWS Lambda deployment. 14930type LambdaTarget struct { 14931 _ struct{} `type:"structure"` 14932 14933 // The unique ID of a deployment. 14934 DeploymentId *string `locationName:"deploymentId" type:"string"` 14935 14936 // A LambdaFunctionInfo object that describes a target Lambda function. 14937 LambdaFunctionInfo *LambdaFunctionInfo `locationName:"lambdaFunctionInfo" type:"structure"` 14938 14939 // The date and time when the target Lambda function was updated by a deployment. 14940 LastUpdatedAt *time.Time `locationName:"lastUpdatedAt" type:"timestamp"` 14941 14942 // The lifecycle events of the deployment to this target Lambda function. 14943 LifecycleEvents []*LifecycleEvent `locationName:"lifecycleEvents" type:"list"` 14944 14945 // The status an AWS Lambda deployment's target Lambda function. 14946 Status *string `locationName:"status" type:"string" enum:"TargetStatus"` 14947 14948 // The Amazon Resource Name (ARN) of the target. 14949 TargetArn *string `locationName:"targetArn" type:"string"` 14950 14951 // The unique ID of a deployment target that has a type of lambdaTarget. 14952 TargetId *string `locationName:"targetId" type:"string"` 14953} 14954 14955// String returns the string representation 14956func (s LambdaTarget) String() string { 14957 return awsutil.Prettify(s) 14958} 14959 14960// GoString returns the string representation 14961func (s LambdaTarget) GoString() string { 14962 return s.String() 14963} 14964 14965// SetDeploymentId sets the DeploymentId field's value. 14966func (s *LambdaTarget) SetDeploymentId(v string) *LambdaTarget { 14967 s.DeploymentId = &v 14968 return s 14969} 14970 14971// SetLambdaFunctionInfo sets the LambdaFunctionInfo field's value. 14972func (s *LambdaTarget) SetLambdaFunctionInfo(v *LambdaFunctionInfo) *LambdaTarget { 14973 s.LambdaFunctionInfo = v 14974 return s 14975} 14976 14977// SetLastUpdatedAt sets the LastUpdatedAt field's value. 14978func (s *LambdaTarget) SetLastUpdatedAt(v time.Time) *LambdaTarget { 14979 s.LastUpdatedAt = &v 14980 return s 14981} 14982 14983// SetLifecycleEvents sets the LifecycleEvents field's value. 14984func (s *LambdaTarget) SetLifecycleEvents(v []*LifecycleEvent) *LambdaTarget { 14985 s.LifecycleEvents = v 14986 return s 14987} 14988 14989// SetStatus sets the Status field's value. 14990func (s *LambdaTarget) SetStatus(v string) *LambdaTarget { 14991 s.Status = &v 14992 return s 14993} 14994 14995// SetTargetArn sets the TargetArn field's value. 14996func (s *LambdaTarget) SetTargetArn(v string) *LambdaTarget { 14997 s.TargetArn = &v 14998 return s 14999} 15000 15001// SetTargetId sets the TargetId field's value. 15002func (s *LambdaTarget) SetTargetId(v string) *LambdaTarget { 15003 s.TargetId = &v 15004 return s 15005} 15006 15007// Information about the most recent attempted or successful deployment to a 15008// deployment group. 15009type LastDeploymentInfo struct { 15010 _ struct{} `type:"structure"` 15011 15012 // A timestamp that indicates when the most recent deployment to the deployment 15013 // group started. 15014 CreateTime *time.Time `locationName:"createTime" type:"timestamp"` 15015 15016 // The unique ID of a deployment. 15017 DeploymentId *string `locationName:"deploymentId" type:"string"` 15018 15019 // A timestamp that indicates when the most recent deployment to the deployment 15020 // group was complete. 15021 EndTime *time.Time `locationName:"endTime" type:"timestamp"` 15022 15023 // The status of the most recent deployment. 15024 Status *string `locationName:"status" type:"string" enum:"DeploymentStatus"` 15025} 15026 15027// String returns the string representation 15028func (s LastDeploymentInfo) String() string { 15029 return awsutil.Prettify(s) 15030} 15031 15032// GoString returns the string representation 15033func (s LastDeploymentInfo) GoString() string { 15034 return s.String() 15035} 15036 15037// SetCreateTime sets the CreateTime field's value. 15038func (s *LastDeploymentInfo) SetCreateTime(v time.Time) *LastDeploymentInfo { 15039 s.CreateTime = &v 15040 return s 15041} 15042 15043// SetDeploymentId sets the DeploymentId field's value. 15044func (s *LastDeploymentInfo) SetDeploymentId(v string) *LastDeploymentInfo { 15045 s.DeploymentId = &v 15046 return s 15047} 15048 15049// SetEndTime sets the EndTime field's value. 15050func (s *LastDeploymentInfo) SetEndTime(v time.Time) *LastDeploymentInfo { 15051 s.EndTime = &v 15052 return s 15053} 15054 15055// SetStatus sets the Status field's value. 15056func (s *LastDeploymentInfo) SetStatus(v string) *LastDeploymentInfo { 15057 s.Status = &v 15058 return s 15059} 15060 15061// Information about a deployment lifecycle event. 15062type LifecycleEvent struct { 15063 _ struct{} `type:"structure"` 15064 15065 // Diagnostic information about the deployment lifecycle event. 15066 Diagnostics *Diagnostics `locationName:"diagnostics" type:"structure"` 15067 15068 // A timestamp that indicates when the deployment lifecycle event ended. 15069 EndTime *time.Time `locationName:"endTime" type:"timestamp"` 15070 15071 // The deployment lifecycle event name, such as ApplicationStop, BeforeInstall, 15072 // AfterInstall, ApplicationStart, or ValidateService. 15073 LifecycleEventName *string `locationName:"lifecycleEventName" type:"string"` 15074 15075 // A timestamp that indicates when the deployment lifecycle event started. 15076 StartTime *time.Time `locationName:"startTime" type:"timestamp"` 15077 15078 // The deployment lifecycle event status: 15079 // 15080 // * Pending: The deployment lifecycle event is pending. 15081 // 15082 // * InProgress: The deployment lifecycle event is in progress. 15083 // 15084 // * Succeeded: The deployment lifecycle event ran successfully. 15085 // 15086 // * Failed: The deployment lifecycle event has failed. 15087 // 15088 // * Skipped: The deployment lifecycle event has been skipped. 15089 // 15090 // * Unknown: The deployment lifecycle event is unknown. 15091 Status *string `locationName:"status" type:"string" enum:"LifecycleEventStatus"` 15092} 15093 15094// String returns the string representation 15095func (s LifecycleEvent) String() string { 15096 return awsutil.Prettify(s) 15097} 15098 15099// GoString returns the string representation 15100func (s LifecycleEvent) GoString() string { 15101 return s.String() 15102} 15103 15104// SetDiagnostics sets the Diagnostics field's value. 15105func (s *LifecycleEvent) SetDiagnostics(v *Diagnostics) *LifecycleEvent { 15106 s.Diagnostics = v 15107 return s 15108} 15109 15110// SetEndTime sets the EndTime field's value. 15111func (s *LifecycleEvent) SetEndTime(v time.Time) *LifecycleEvent { 15112 s.EndTime = &v 15113 return s 15114} 15115 15116// SetLifecycleEventName sets the LifecycleEventName field's value. 15117func (s *LifecycleEvent) SetLifecycleEventName(v string) *LifecycleEvent { 15118 s.LifecycleEventName = &v 15119 return s 15120} 15121 15122// SetStartTime sets the StartTime field's value. 15123func (s *LifecycleEvent) SetStartTime(v time.Time) *LifecycleEvent { 15124 s.StartTime = &v 15125 return s 15126} 15127 15128// SetStatus sets the Status field's value. 15129func (s *LifecycleEvent) SetStatus(v string) *LifecycleEvent { 15130 s.Status = &v 15131 return s 15132} 15133 15134// An attempt to return the status of an already completed lifecycle event occurred. 15135type LifecycleEventAlreadyCompletedException struct { 15136 _ struct{} `type:"structure"` 15137 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 15138 15139 Message_ *string `locationName:"message" type:"string"` 15140} 15141 15142// String returns the string representation 15143func (s LifecycleEventAlreadyCompletedException) String() string { 15144 return awsutil.Prettify(s) 15145} 15146 15147// GoString returns the string representation 15148func (s LifecycleEventAlreadyCompletedException) GoString() string { 15149 return s.String() 15150} 15151 15152func newErrorLifecycleEventAlreadyCompletedException(v protocol.ResponseMetadata) error { 15153 return &LifecycleEventAlreadyCompletedException{ 15154 RespMetadata: v, 15155 } 15156} 15157 15158// Code returns the exception type name. 15159func (s *LifecycleEventAlreadyCompletedException) Code() string { 15160 return "LifecycleEventAlreadyCompletedException" 15161} 15162 15163// Message returns the exception's message. 15164func (s *LifecycleEventAlreadyCompletedException) Message() string { 15165 if s.Message_ != nil { 15166 return *s.Message_ 15167 } 15168 return "" 15169} 15170 15171// OrigErr always returns nil, satisfies awserr.Error interface. 15172func (s *LifecycleEventAlreadyCompletedException) OrigErr() error { 15173 return nil 15174} 15175 15176func (s *LifecycleEventAlreadyCompletedException) Error() string { 15177 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 15178} 15179 15180// Status code returns the HTTP status code for the request's response error. 15181func (s *LifecycleEventAlreadyCompletedException) StatusCode() int { 15182 return s.RespMetadata.StatusCode 15183} 15184 15185// RequestID returns the service's response RequestID for request. 15186func (s *LifecycleEventAlreadyCompletedException) RequestID() string { 15187 return s.RespMetadata.RequestID 15188} 15189 15190// The limit for lifecycle hooks was exceeded. 15191type LifecycleHookLimitExceededException struct { 15192 _ struct{} `type:"structure"` 15193 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 15194 15195 Message_ *string `locationName:"message" type:"string"` 15196} 15197 15198// String returns the string representation 15199func (s LifecycleHookLimitExceededException) String() string { 15200 return awsutil.Prettify(s) 15201} 15202 15203// GoString returns the string representation 15204func (s LifecycleHookLimitExceededException) GoString() string { 15205 return s.String() 15206} 15207 15208func newErrorLifecycleHookLimitExceededException(v protocol.ResponseMetadata) error { 15209 return &LifecycleHookLimitExceededException{ 15210 RespMetadata: v, 15211 } 15212} 15213 15214// Code returns the exception type name. 15215func (s *LifecycleHookLimitExceededException) Code() string { 15216 return "LifecycleHookLimitExceededException" 15217} 15218 15219// Message returns the exception's message. 15220func (s *LifecycleHookLimitExceededException) Message() string { 15221 if s.Message_ != nil { 15222 return *s.Message_ 15223 } 15224 return "" 15225} 15226 15227// OrigErr always returns nil, satisfies awserr.Error interface. 15228func (s *LifecycleHookLimitExceededException) OrigErr() error { 15229 return nil 15230} 15231 15232func (s *LifecycleHookLimitExceededException) Error() string { 15233 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 15234} 15235 15236// Status code returns the HTTP status code for the request's response error. 15237func (s *LifecycleHookLimitExceededException) StatusCode() int { 15238 return s.RespMetadata.StatusCode 15239} 15240 15241// RequestID returns the service's response RequestID for request. 15242func (s *LifecycleHookLimitExceededException) RequestID() string { 15243 return s.RespMetadata.RequestID 15244} 15245 15246// Represents the input of a ListApplicationRevisions operation. 15247type ListApplicationRevisionsInput struct { 15248 _ struct{} `type:"structure"` 15249 15250 // The name of an AWS CodeDeploy application associated with the IAM user or 15251 // AWS account. 15252 // 15253 // ApplicationName is a required field 15254 ApplicationName *string `locationName:"applicationName" min:"1" type:"string" required:"true"` 15255 15256 // Whether to list revisions based on whether the revision is the target revision 15257 // of a deployment group: 15258 // 15259 // * include: List revisions that are target revisions of a deployment group. 15260 // 15261 // * exclude: Do not list revisions that are target revisions of a deployment 15262 // group. 15263 // 15264 // * ignore: List all revisions. 15265 Deployed *string `locationName:"deployed" type:"string" enum:"ListStateFilterAction"` 15266 15267 // An identifier returned from the previous ListApplicationRevisions call. It 15268 // can be used to return the next set of applications in the list. 15269 NextToken *string `locationName:"nextToken" type:"string"` 15270 15271 // An Amazon S3 bucket name to limit the search for revisions. 15272 // 15273 // If set to null, all of the user's buckets are searched. 15274 S3Bucket *string `locationName:"s3Bucket" type:"string"` 15275 15276 // A key prefix for the set of Amazon S3 objects to limit the search for revisions. 15277 S3KeyPrefix *string `locationName:"s3KeyPrefix" type:"string"` 15278 15279 // The column name to use to sort the list results: 15280 // 15281 // * registerTime: Sort by the time the revisions were registered with AWS 15282 // CodeDeploy. 15283 // 15284 // * firstUsedTime: Sort by the time the revisions were first used in a deployment. 15285 // 15286 // * lastUsedTime: Sort by the time the revisions were last used in a deployment. 15287 // 15288 // If not specified or set to null, the results are returned in an arbitrary 15289 // order. 15290 SortBy *string `locationName:"sortBy" type:"string" enum:"ApplicationRevisionSortBy"` 15291 15292 // The order in which to sort the list results: 15293 // 15294 // * ascending: ascending order. 15295 // 15296 // * descending: descending order. 15297 // 15298 // If not specified, the results are sorted in ascending order. 15299 // 15300 // If set to null, the results are sorted in an arbitrary order. 15301 SortOrder *string `locationName:"sortOrder" type:"string" enum:"SortOrder"` 15302} 15303 15304// String returns the string representation 15305func (s ListApplicationRevisionsInput) String() string { 15306 return awsutil.Prettify(s) 15307} 15308 15309// GoString returns the string representation 15310func (s ListApplicationRevisionsInput) GoString() string { 15311 return s.String() 15312} 15313 15314// Validate inspects the fields of the type to determine if they are valid. 15315func (s *ListApplicationRevisionsInput) Validate() error { 15316 invalidParams := request.ErrInvalidParams{Context: "ListApplicationRevisionsInput"} 15317 if s.ApplicationName == nil { 15318 invalidParams.Add(request.NewErrParamRequired("ApplicationName")) 15319 } 15320 if s.ApplicationName != nil && len(*s.ApplicationName) < 1 { 15321 invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1)) 15322 } 15323 15324 if invalidParams.Len() > 0 { 15325 return invalidParams 15326 } 15327 return nil 15328} 15329 15330// SetApplicationName sets the ApplicationName field's value. 15331func (s *ListApplicationRevisionsInput) SetApplicationName(v string) *ListApplicationRevisionsInput { 15332 s.ApplicationName = &v 15333 return s 15334} 15335 15336// SetDeployed sets the Deployed field's value. 15337func (s *ListApplicationRevisionsInput) SetDeployed(v string) *ListApplicationRevisionsInput { 15338 s.Deployed = &v 15339 return s 15340} 15341 15342// SetNextToken sets the NextToken field's value. 15343func (s *ListApplicationRevisionsInput) SetNextToken(v string) *ListApplicationRevisionsInput { 15344 s.NextToken = &v 15345 return s 15346} 15347 15348// SetS3Bucket sets the S3Bucket field's value. 15349func (s *ListApplicationRevisionsInput) SetS3Bucket(v string) *ListApplicationRevisionsInput { 15350 s.S3Bucket = &v 15351 return s 15352} 15353 15354// SetS3KeyPrefix sets the S3KeyPrefix field's value. 15355func (s *ListApplicationRevisionsInput) SetS3KeyPrefix(v string) *ListApplicationRevisionsInput { 15356 s.S3KeyPrefix = &v 15357 return s 15358} 15359 15360// SetSortBy sets the SortBy field's value. 15361func (s *ListApplicationRevisionsInput) SetSortBy(v string) *ListApplicationRevisionsInput { 15362 s.SortBy = &v 15363 return s 15364} 15365 15366// SetSortOrder sets the SortOrder field's value. 15367func (s *ListApplicationRevisionsInput) SetSortOrder(v string) *ListApplicationRevisionsInput { 15368 s.SortOrder = &v 15369 return s 15370} 15371 15372// Represents the output of a ListApplicationRevisions operation. 15373type ListApplicationRevisionsOutput struct { 15374 _ struct{} `type:"structure"` 15375 15376 // If a large amount of information is returned, an identifier is also returned. 15377 // It can be used in a subsequent list application revisions call to return 15378 // the next set of application revisions in the list. 15379 NextToken *string `locationName:"nextToken" type:"string"` 15380 15381 // A list of locations that contain the matching revisions. 15382 Revisions []*RevisionLocation `locationName:"revisions" type:"list"` 15383} 15384 15385// String returns the string representation 15386func (s ListApplicationRevisionsOutput) String() string { 15387 return awsutil.Prettify(s) 15388} 15389 15390// GoString returns the string representation 15391func (s ListApplicationRevisionsOutput) GoString() string { 15392 return s.String() 15393} 15394 15395// SetNextToken sets the NextToken field's value. 15396func (s *ListApplicationRevisionsOutput) SetNextToken(v string) *ListApplicationRevisionsOutput { 15397 s.NextToken = &v 15398 return s 15399} 15400 15401// SetRevisions sets the Revisions field's value. 15402func (s *ListApplicationRevisionsOutput) SetRevisions(v []*RevisionLocation) *ListApplicationRevisionsOutput { 15403 s.Revisions = v 15404 return s 15405} 15406 15407// Represents the input of a ListApplications operation. 15408type ListApplicationsInput struct { 15409 _ struct{} `type:"structure"` 15410 15411 // An identifier returned from the previous list applications call. It can be 15412 // used to return the next set of applications in the list. 15413 NextToken *string `locationName:"nextToken" type:"string"` 15414} 15415 15416// String returns the string representation 15417func (s ListApplicationsInput) String() string { 15418 return awsutil.Prettify(s) 15419} 15420 15421// GoString returns the string representation 15422func (s ListApplicationsInput) GoString() string { 15423 return s.String() 15424} 15425 15426// SetNextToken sets the NextToken field's value. 15427func (s *ListApplicationsInput) SetNextToken(v string) *ListApplicationsInput { 15428 s.NextToken = &v 15429 return s 15430} 15431 15432// Represents the output of a ListApplications operation. 15433type ListApplicationsOutput struct { 15434 _ struct{} `type:"structure"` 15435 15436 // A list of application names. 15437 Applications []*string `locationName:"applications" type:"list"` 15438 15439 // If a large amount of information is returned, an identifier is also returned. 15440 // It can be used in a subsequent list applications call to return the next 15441 // set of applications in the list. 15442 NextToken *string `locationName:"nextToken" type:"string"` 15443} 15444 15445// String returns the string representation 15446func (s ListApplicationsOutput) String() string { 15447 return awsutil.Prettify(s) 15448} 15449 15450// GoString returns the string representation 15451func (s ListApplicationsOutput) GoString() string { 15452 return s.String() 15453} 15454 15455// SetApplications sets the Applications field's value. 15456func (s *ListApplicationsOutput) SetApplications(v []*string) *ListApplicationsOutput { 15457 s.Applications = v 15458 return s 15459} 15460 15461// SetNextToken sets the NextToken field's value. 15462func (s *ListApplicationsOutput) SetNextToken(v string) *ListApplicationsOutput { 15463 s.NextToken = &v 15464 return s 15465} 15466 15467// Represents the input of a ListDeploymentConfigs operation. 15468type ListDeploymentConfigsInput struct { 15469 _ struct{} `type:"structure"` 15470 15471 // An identifier returned from the previous ListDeploymentConfigs call. It can 15472 // be used to return the next set of deployment configurations in the list. 15473 NextToken *string `locationName:"nextToken" type:"string"` 15474} 15475 15476// String returns the string representation 15477func (s ListDeploymentConfigsInput) String() string { 15478 return awsutil.Prettify(s) 15479} 15480 15481// GoString returns the string representation 15482func (s ListDeploymentConfigsInput) GoString() string { 15483 return s.String() 15484} 15485 15486// SetNextToken sets the NextToken field's value. 15487func (s *ListDeploymentConfigsInput) SetNextToken(v string) *ListDeploymentConfigsInput { 15488 s.NextToken = &v 15489 return s 15490} 15491 15492// Represents the output of a ListDeploymentConfigs operation. 15493type ListDeploymentConfigsOutput struct { 15494 _ struct{} `type:"structure"` 15495 15496 // A list of deployment configurations, including built-in configurations such 15497 // as CodeDeployDefault.OneAtATime. 15498 DeploymentConfigsList []*string `locationName:"deploymentConfigsList" type:"list"` 15499 15500 // If a large amount of information is returned, an identifier is also returned. 15501 // It can be used in a subsequent list deployment configurations call to return 15502 // the next set of deployment configurations in the list. 15503 NextToken *string `locationName:"nextToken" type:"string"` 15504} 15505 15506// String returns the string representation 15507func (s ListDeploymentConfigsOutput) String() string { 15508 return awsutil.Prettify(s) 15509} 15510 15511// GoString returns the string representation 15512func (s ListDeploymentConfigsOutput) GoString() string { 15513 return s.String() 15514} 15515 15516// SetDeploymentConfigsList sets the DeploymentConfigsList field's value. 15517func (s *ListDeploymentConfigsOutput) SetDeploymentConfigsList(v []*string) *ListDeploymentConfigsOutput { 15518 s.DeploymentConfigsList = v 15519 return s 15520} 15521 15522// SetNextToken sets the NextToken field's value. 15523func (s *ListDeploymentConfigsOutput) SetNextToken(v string) *ListDeploymentConfigsOutput { 15524 s.NextToken = &v 15525 return s 15526} 15527 15528// Represents the input of a ListDeploymentGroups operation. 15529type ListDeploymentGroupsInput struct { 15530 _ struct{} `type:"structure"` 15531 15532 // The name of an AWS CodeDeploy application associated with the IAM user or 15533 // AWS account. 15534 // 15535 // ApplicationName is a required field 15536 ApplicationName *string `locationName:"applicationName" min:"1" type:"string" required:"true"` 15537 15538 // An identifier returned from the previous list deployment groups call. It 15539 // can be used to return the next set of deployment groups in the list. 15540 NextToken *string `locationName:"nextToken" type:"string"` 15541} 15542 15543// String returns the string representation 15544func (s ListDeploymentGroupsInput) String() string { 15545 return awsutil.Prettify(s) 15546} 15547 15548// GoString returns the string representation 15549func (s ListDeploymentGroupsInput) GoString() string { 15550 return s.String() 15551} 15552 15553// Validate inspects the fields of the type to determine if they are valid. 15554func (s *ListDeploymentGroupsInput) Validate() error { 15555 invalidParams := request.ErrInvalidParams{Context: "ListDeploymentGroupsInput"} 15556 if s.ApplicationName == nil { 15557 invalidParams.Add(request.NewErrParamRequired("ApplicationName")) 15558 } 15559 if s.ApplicationName != nil && len(*s.ApplicationName) < 1 { 15560 invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1)) 15561 } 15562 15563 if invalidParams.Len() > 0 { 15564 return invalidParams 15565 } 15566 return nil 15567} 15568 15569// SetApplicationName sets the ApplicationName field's value. 15570func (s *ListDeploymentGroupsInput) SetApplicationName(v string) *ListDeploymentGroupsInput { 15571 s.ApplicationName = &v 15572 return s 15573} 15574 15575// SetNextToken sets the NextToken field's value. 15576func (s *ListDeploymentGroupsInput) SetNextToken(v string) *ListDeploymentGroupsInput { 15577 s.NextToken = &v 15578 return s 15579} 15580 15581// Represents the output of a ListDeploymentGroups operation. 15582type ListDeploymentGroupsOutput struct { 15583 _ struct{} `type:"structure"` 15584 15585 // The application name. 15586 ApplicationName *string `locationName:"applicationName" min:"1" type:"string"` 15587 15588 // A list of deployment group names. 15589 DeploymentGroups []*string `locationName:"deploymentGroups" type:"list"` 15590 15591 // If a large amount of information is returned, an identifier is also returned. 15592 // It can be used in a subsequent list deployment groups call to return the 15593 // next set of deployment groups in the list. 15594 NextToken *string `locationName:"nextToken" type:"string"` 15595} 15596 15597// String returns the string representation 15598func (s ListDeploymentGroupsOutput) String() string { 15599 return awsutil.Prettify(s) 15600} 15601 15602// GoString returns the string representation 15603func (s ListDeploymentGroupsOutput) GoString() string { 15604 return s.String() 15605} 15606 15607// SetApplicationName sets the ApplicationName field's value. 15608func (s *ListDeploymentGroupsOutput) SetApplicationName(v string) *ListDeploymentGroupsOutput { 15609 s.ApplicationName = &v 15610 return s 15611} 15612 15613// SetDeploymentGroups sets the DeploymentGroups field's value. 15614func (s *ListDeploymentGroupsOutput) SetDeploymentGroups(v []*string) *ListDeploymentGroupsOutput { 15615 s.DeploymentGroups = v 15616 return s 15617} 15618 15619// SetNextToken sets the NextToken field's value. 15620func (s *ListDeploymentGroupsOutput) SetNextToken(v string) *ListDeploymentGroupsOutput { 15621 s.NextToken = &v 15622 return s 15623} 15624 15625// Represents the input of a ListDeploymentInstances operation. 15626type ListDeploymentInstancesInput struct { 15627 _ struct{} `type:"structure"` 15628 15629 // The unique ID of a deployment. 15630 // 15631 // DeploymentId is a required field 15632 DeploymentId *string `locationName:"deploymentId" type:"string" required:"true"` 15633 15634 // A subset of instances to list by status: 15635 // 15636 // * Pending: Include those instances with pending deployments. 15637 // 15638 // * InProgress: Include those instances where deployments are still in progress. 15639 // 15640 // * Succeeded: Include those instances with successful deployments. 15641 // 15642 // * Failed: Include those instances with failed deployments. 15643 // 15644 // * Skipped: Include those instances with skipped deployments. 15645 // 15646 // * Unknown: Include those instances with deployments in an unknown state. 15647 InstanceStatusFilter []*string `locationName:"instanceStatusFilter" type:"list"` 15648 15649 // The set of instances in a blue/green deployment, either those in the original 15650 // environment ("BLUE") or those in the replacement environment ("GREEN"), for 15651 // which you want to view instance information. 15652 InstanceTypeFilter []*string `locationName:"instanceTypeFilter" type:"list"` 15653 15654 // An identifier returned from the previous list deployment instances call. 15655 // It can be used to return the next set of deployment instances in the list. 15656 NextToken *string `locationName:"nextToken" type:"string"` 15657} 15658 15659// String returns the string representation 15660func (s ListDeploymentInstancesInput) String() string { 15661 return awsutil.Prettify(s) 15662} 15663 15664// GoString returns the string representation 15665func (s ListDeploymentInstancesInput) GoString() string { 15666 return s.String() 15667} 15668 15669// Validate inspects the fields of the type to determine if they are valid. 15670func (s *ListDeploymentInstancesInput) Validate() error { 15671 invalidParams := request.ErrInvalidParams{Context: "ListDeploymentInstancesInput"} 15672 if s.DeploymentId == nil { 15673 invalidParams.Add(request.NewErrParamRequired("DeploymentId")) 15674 } 15675 15676 if invalidParams.Len() > 0 { 15677 return invalidParams 15678 } 15679 return nil 15680} 15681 15682// SetDeploymentId sets the DeploymentId field's value. 15683func (s *ListDeploymentInstancesInput) SetDeploymentId(v string) *ListDeploymentInstancesInput { 15684 s.DeploymentId = &v 15685 return s 15686} 15687 15688// SetInstanceStatusFilter sets the InstanceStatusFilter field's value. 15689func (s *ListDeploymentInstancesInput) SetInstanceStatusFilter(v []*string) *ListDeploymentInstancesInput { 15690 s.InstanceStatusFilter = v 15691 return s 15692} 15693 15694// SetInstanceTypeFilter sets the InstanceTypeFilter field's value. 15695func (s *ListDeploymentInstancesInput) SetInstanceTypeFilter(v []*string) *ListDeploymentInstancesInput { 15696 s.InstanceTypeFilter = v 15697 return s 15698} 15699 15700// SetNextToken sets the NextToken field's value. 15701func (s *ListDeploymentInstancesInput) SetNextToken(v string) *ListDeploymentInstancesInput { 15702 s.NextToken = &v 15703 return s 15704} 15705 15706// Represents the output of a ListDeploymentInstances operation. 15707type ListDeploymentInstancesOutput struct { 15708 _ struct{} `type:"structure"` 15709 15710 // A list of instance IDs. 15711 InstancesList []*string `locationName:"instancesList" type:"list"` 15712 15713 // If a large amount of information is returned, an identifier is also returned. 15714 // It can be used in a subsequent list deployment instances call to return the 15715 // next set of deployment instances in the list. 15716 NextToken *string `locationName:"nextToken" type:"string"` 15717} 15718 15719// String returns the string representation 15720func (s ListDeploymentInstancesOutput) String() string { 15721 return awsutil.Prettify(s) 15722} 15723 15724// GoString returns the string representation 15725func (s ListDeploymentInstancesOutput) GoString() string { 15726 return s.String() 15727} 15728 15729// SetInstancesList sets the InstancesList field's value. 15730func (s *ListDeploymentInstancesOutput) SetInstancesList(v []*string) *ListDeploymentInstancesOutput { 15731 s.InstancesList = v 15732 return s 15733} 15734 15735// SetNextToken sets the NextToken field's value. 15736func (s *ListDeploymentInstancesOutput) SetNextToken(v string) *ListDeploymentInstancesOutput { 15737 s.NextToken = &v 15738 return s 15739} 15740 15741type ListDeploymentTargetsInput struct { 15742 _ struct{} `type:"structure"` 15743 15744 // The unique ID of a deployment. 15745 DeploymentId *string `locationName:"deploymentId" type:"string"` 15746 15747 // A token identifier returned from the previous ListDeploymentTargets call. 15748 // It can be used to return the next set of deployment targets in the list. 15749 NextToken *string `locationName:"nextToken" type:"string"` 15750 15751 // A key used to filter the returned targets. The two valid values are: 15752 // 15753 // * TargetStatus - A TargetStatus filter string can be Failed, InProgress, 15754 // Pending, Ready, Skipped, Succeeded, or Unknown. 15755 // 15756 // * ServerInstanceLabel - A ServerInstanceLabel filter string can be Blue 15757 // or Green. 15758 TargetFilters map[string][]*string `locationName:"targetFilters" type:"map"` 15759} 15760 15761// String returns the string representation 15762func (s ListDeploymentTargetsInput) String() string { 15763 return awsutil.Prettify(s) 15764} 15765 15766// GoString returns the string representation 15767func (s ListDeploymentTargetsInput) GoString() string { 15768 return s.String() 15769} 15770 15771// SetDeploymentId sets the DeploymentId field's value. 15772func (s *ListDeploymentTargetsInput) SetDeploymentId(v string) *ListDeploymentTargetsInput { 15773 s.DeploymentId = &v 15774 return s 15775} 15776 15777// SetNextToken sets the NextToken field's value. 15778func (s *ListDeploymentTargetsInput) SetNextToken(v string) *ListDeploymentTargetsInput { 15779 s.NextToken = &v 15780 return s 15781} 15782 15783// SetTargetFilters sets the TargetFilters field's value. 15784func (s *ListDeploymentTargetsInput) SetTargetFilters(v map[string][]*string) *ListDeploymentTargetsInput { 15785 s.TargetFilters = v 15786 return s 15787} 15788 15789type ListDeploymentTargetsOutput struct { 15790 _ struct{} `type:"structure"` 15791 15792 // If a large amount of information is returned, a token identifier is also 15793 // returned. It can be used in a subsequent ListDeploymentTargets call to return 15794 // the next set of deployment targets in the list. 15795 NextToken *string `locationName:"nextToken" type:"string"` 15796 15797 // The unique IDs of deployment targets. 15798 TargetIds []*string `locationName:"targetIds" type:"list"` 15799} 15800 15801// String returns the string representation 15802func (s ListDeploymentTargetsOutput) String() string { 15803 return awsutil.Prettify(s) 15804} 15805 15806// GoString returns the string representation 15807func (s ListDeploymentTargetsOutput) GoString() string { 15808 return s.String() 15809} 15810 15811// SetNextToken sets the NextToken field's value. 15812func (s *ListDeploymentTargetsOutput) SetNextToken(v string) *ListDeploymentTargetsOutput { 15813 s.NextToken = &v 15814 return s 15815} 15816 15817// SetTargetIds sets the TargetIds field's value. 15818func (s *ListDeploymentTargetsOutput) SetTargetIds(v []*string) *ListDeploymentTargetsOutput { 15819 s.TargetIds = v 15820 return s 15821} 15822 15823// Represents the input of a ListDeployments operation. 15824type ListDeploymentsInput struct { 15825 _ struct{} `type:"structure"` 15826 15827 // The name of an AWS CodeDeploy application associated with the IAM user or 15828 // AWS account. 15829 // 15830 // If applicationName is specified, then deploymentGroupName must be specified. 15831 // If it is not specified, then deploymentGroupName must not be specified. 15832 ApplicationName *string `locationName:"applicationName" min:"1" type:"string"` 15833 15834 // A time range (start and end) for returning a subset of the list of deployments. 15835 CreateTimeRange *TimeRange `locationName:"createTimeRange" type:"structure"` 15836 15837 // The name of a deployment group for the specified application. 15838 // 15839 // If deploymentGroupName is specified, then applicationName must be specified. 15840 // If it is not specified, then applicationName must not be specified. 15841 DeploymentGroupName *string `locationName:"deploymentGroupName" min:"1" type:"string"` 15842 15843 // The unique ID of an external resource for returning deployments linked to 15844 // the external resource. 15845 ExternalId *string `locationName:"externalId" type:"string"` 15846 15847 // A subset of deployments to list by status: 15848 // 15849 // * Created: Include created deployments in the resulting list. 15850 // 15851 // * Queued: Include queued deployments in the resulting list. 15852 // 15853 // * In Progress: Include in-progress deployments in the resulting list. 15854 // 15855 // * Succeeded: Include successful deployments in the resulting list. 15856 // 15857 // * Failed: Include failed deployments in the resulting list. 15858 // 15859 // * Stopped: Include stopped deployments in the resulting list. 15860 IncludeOnlyStatuses []*string `locationName:"includeOnlyStatuses" type:"list"` 15861 15862 // An identifier returned from the previous list deployments call. It can be 15863 // used to return the next set of deployments in the list. 15864 NextToken *string `locationName:"nextToken" type:"string"` 15865} 15866 15867// String returns the string representation 15868func (s ListDeploymentsInput) String() string { 15869 return awsutil.Prettify(s) 15870} 15871 15872// GoString returns the string representation 15873func (s ListDeploymentsInput) GoString() string { 15874 return s.String() 15875} 15876 15877// Validate inspects the fields of the type to determine if they are valid. 15878func (s *ListDeploymentsInput) Validate() error { 15879 invalidParams := request.ErrInvalidParams{Context: "ListDeploymentsInput"} 15880 if s.ApplicationName != nil && len(*s.ApplicationName) < 1 { 15881 invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1)) 15882 } 15883 if s.DeploymentGroupName != nil && len(*s.DeploymentGroupName) < 1 { 15884 invalidParams.Add(request.NewErrParamMinLen("DeploymentGroupName", 1)) 15885 } 15886 15887 if invalidParams.Len() > 0 { 15888 return invalidParams 15889 } 15890 return nil 15891} 15892 15893// SetApplicationName sets the ApplicationName field's value. 15894func (s *ListDeploymentsInput) SetApplicationName(v string) *ListDeploymentsInput { 15895 s.ApplicationName = &v 15896 return s 15897} 15898 15899// SetCreateTimeRange sets the CreateTimeRange field's value. 15900func (s *ListDeploymentsInput) SetCreateTimeRange(v *TimeRange) *ListDeploymentsInput { 15901 s.CreateTimeRange = v 15902 return s 15903} 15904 15905// SetDeploymentGroupName sets the DeploymentGroupName field's value. 15906func (s *ListDeploymentsInput) SetDeploymentGroupName(v string) *ListDeploymentsInput { 15907 s.DeploymentGroupName = &v 15908 return s 15909} 15910 15911// SetExternalId sets the ExternalId field's value. 15912func (s *ListDeploymentsInput) SetExternalId(v string) *ListDeploymentsInput { 15913 s.ExternalId = &v 15914 return s 15915} 15916 15917// SetIncludeOnlyStatuses sets the IncludeOnlyStatuses field's value. 15918func (s *ListDeploymentsInput) SetIncludeOnlyStatuses(v []*string) *ListDeploymentsInput { 15919 s.IncludeOnlyStatuses = v 15920 return s 15921} 15922 15923// SetNextToken sets the NextToken field's value. 15924func (s *ListDeploymentsInput) SetNextToken(v string) *ListDeploymentsInput { 15925 s.NextToken = &v 15926 return s 15927} 15928 15929// Represents the output of a ListDeployments operation. 15930type ListDeploymentsOutput struct { 15931 _ struct{} `type:"structure"` 15932 15933 // A list of deployment IDs. 15934 Deployments []*string `locationName:"deployments" type:"list"` 15935 15936 // If a large amount of information is returned, an identifier is also returned. 15937 // It can be used in a subsequent list deployments call to return the next set 15938 // of deployments in the list. 15939 NextToken *string `locationName:"nextToken" type:"string"` 15940} 15941 15942// String returns the string representation 15943func (s ListDeploymentsOutput) String() string { 15944 return awsutil.Prettify(s) 15945} 15946 15947// GoString returns the string representation 15948func (s ListDeploymentsOutput) GoString() string { 15949 return s.String() 15950} 15951 15952// SetDeployments sets the Deployments field's value. 15953func (s *ListDeploymentsOutput) SetDeployments(v []*string) *ListDeploymentsOutput { 15954 s.Deployments = v 15955 return s 15956} 15957 15958// SetNextToken sets the NextToken field's value. 15959func (s *ListDeploymentsOutput) SetNextToken(v string) *ListDeploymentsOutput { 15960 s.NextToken = &v 15961 return s 15962} 15963 15964// Represents the input of a ListGitHubAccountTokenNames operation. 15965type ListGitHubAccountTokenNamesInput struct { 15966 _ struct{} `type:"structure"` 15967 15968 // An identifier returned from the previous ListGitHubAccountTokenNames call. 15969 // It can be used to return the next set of names in the list. 15970 NextToken *string `locationName:"nextToken" type:"string"` 15971} 15972 15973// String returns the string representation 15974func (s ListGitHubAccountTokenNamesInput) String() string { 15975 return awsutil.Prettify(s) 15976} 15977 15978// GoString returns the string representation 15979func (s ListGitHubAccountTokenNamesInput) GoString() string { 15980 return s.String() 15981} 15982 15983// SetNextToken sets the NextToken field's value. 15984func (s *ListGitHubAccountTokenNamesInput) SetNextToken(v string) *ListGitHubAccountTokenNamesInput { 15985 s.NextToken = &v 15986 return s 15987} 15988 15989// Represents the output of a ListGitHubAccountTokenNames operation. 15990type ListGitHubAccountTokenNamesOutput struct { 15991 _ struct{} `type:"structure"` 15992 15993 // If a large amount of information is returned, an identifier is also returned. 15994 // It can be used in a subsequent ListGitHubAccountTokenNames call to return 15995 // the next set of names in the list. 15996 NextToken *string `locationName:"nextToken" type:"string"` 15997 15998 // A list of names of connections to GitHub accounts. 15999 TokenNameList []*string `locationName:"tokenNameList" type:"list"` 16000} 16001 16002// String returns the string representation 16003func (s ListGitHubAccountTokenNamesOutput) String() string { 16004 return awsutil.Prettify(s) 16005} 16006 16007// GoString returns the string representation 16008func (s ListGitHubAccountTokenNamesOutput) GoString() string { 16009 return s.String() 16010} 16011 16012// SetNextToken sets the NextToken field's value. 16013func (s *ListGitHubAccountTokenNamesOutput) SetNextToken(v string) *ListGitHubAccountTokenNamesOutput { 16014 s.NextToken = &v 16015 return s 16016} 16017 16018// SetTokenNameList sets the TokenNameList field's value. 16019func (s *ListGitHubAccountTokenNamesOutput) SetTokenNameList(v []*string) *ListGitHubAccountTokenNamesOutput { 16020 s.TokenNameList = v 16021 return s 16022} 16023 16024// Represents the input of a ListOnPremisesInstances operation. 16025type ListOnPremisesInstancesInput struct { 16026 _ struct{} `type:"structure"` 16027 16028 // An identifier returned from the previous list on-premises instances call. 16029 // It can be used to return the next set of on-premises instances in the list. 16030 NextToken *string `locationName:"nextToken" type:"string"` 16031 16032 // The registration status of the on-premises instances: 16033 // 16034 // * Deregistered: Include deregistered on-premises instances in the resulting 16035 // list. 16036 // 16037 // * Registered: Include registered on-premises instances in the resulting 16038 // list. 16039 RegistrationStatus *string `locationName:"registrationStatus" type:"string" enum:"RegistrationStatus"` 16040 16041 // The on-premises instance tags that are used to restrict the on-premises instance 16042 // names returned. 16043 TagFilters []*TagFilter `locationName:"tagFilters" type:"list"` 16044} 16045 16046// String returns the string representation 16047func (s ListOnPremisesInstancesInput) String() string { 16048 return awsutil.Prettify(s) 16049} 16050 16051// GoString returns the string representation 16052func (s ListOnPremisesInstancesInput) GoString() string { 16053 return s.String() 16054} 16055 16056// SetNextToken sets the NextToken field's value. 16057func (s *ListOnPremisesInstancesInput) SetNextToken(v string) *ListOnPremisesInstancesInput { 16058 s.NextToken = &v 16059 return s 16060} 16061 16062// SetRegistrationStatus sets the RegistrationStatus field's value. 16063func (s *ListOnPremisesInstancesInput) SetRegistrationStatus(v string) *ListOnPremisesInstancesInput { 16064 s.RegistrationStatus = &v 16065 return s 16066} 16067 16068// SetTagFilters sets the TagFilters field's value. 16069func (s *ListOnPremisesInstancesInput) SetTagFilters(v []*TagFilter) *ListOnPremisesInstancesInput { 16070 s.TagFilters = v 16071 return s 16072} 16073 16074// Represents the output of the list on-premises instances operation. 16075type ListOnPremisesInstancesOutput struct { 16076 _ struct{} `type:"structure"` 16077 16078 // The list of matching on-premises instance names. 16079 InstanceNames []*string `locationName:"instanceNames" type:"list"` 16080 16081 // If a large amount of information is returned, an identifier is also returned. 16082 // It can be used in a subsequent list on-premises instances call to return 16083 // the next set of on-premises instances in the list. 16084 NextToken *string `locationName:"nextToken" type:"string"` 16085} 16086 16087// String returns the string representation 16088func (s ListOnPremisesInstancesOutput) String() string { 16089 return awsutil.Prettify(s) 16090} 16091 16092// GoString returns the string representation 16093func (s ListOnPremisesInstancesOutput) GoString() string { 16094 return s.String() 16095} 16096 16097// SetInstanceNames sets the InstanceNames field's value. 16098func (s *ListOnPremisesInstancesOutput) SetInstanceNames(v []*string) *ListOnPremisesInstancesOutput { 16099 s.InstanceNames = v 16100 return s 16101} 16102 16103// SetNextToken sets the NextToken field's value. 16104func (s *ListOnPremisesInstancesOutput) SetNextToken(v string) *ListOnPremisesInstancesOutput { 16105 s.NextToken = &v 16106 return s 16107} 16108 16109type ListTagsForResourceInput struct { 16110 _ struct{} `type:"structure"` 16111 16112 // An identifier returned from the previous ListTagsForResource call. It can 16113 // be used to return the next set of applications in the list. 16114 NextToken *string `type:"string"` 16115 16116 // The ARN of a CodeDeploy resource. ListTagsForResource returns all the tags 16117 // associated with the resource that is identified by the ResourceArn. 16118 // 16119 // ResourceArn is a required field 16120 ResourceArn *string `min:"1" type:"string" required:"true"` 16121} 16122 16123// String returns the string representation 16124func (s ListTagsForResourceInput) String() string { 16125 return awsutil.Prettify(s) 16126} 16127 16128// GoString returns the string representation 16129func (s ListTagsForResourceInput) GoString() string { 16130 return s.String() 16131} 16132 16133// Validate inspects the fields of the type to determine if they are valid. 16134func (s *ListTagsForResourceInput) Validate() error { 16135 invalidParams := request.ErrInvalidParams{Context: "ListTagsForResourceInput"} 16136 if s.ResourceArn == nil { 16137 invalidParams.Add(request.NewErrParamRequired("ResourceArn")) 16138 } 16139 if s.ResourceArn != nil && len(*s.ResourceArn) < 1 { 16140 invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1)) 16141 } 16142 16143 if invalidParams.Len() > 0 { 16144 return invalidParams 16145 } 16146 return nil 16147} 16148 16149// SetNextToken sets the NextToken field's value. 16150func (s *ListTagsForResourceInput) SetNextToken(v string) *ListTagsForResourceInput { 16151 s.NextToken = &v 16152 return s 16153} 16154 16155// SetResourceArn sets the ResourceArn field's value. 16156func (s *ListTagsForResourceInput) SetResourceArn(v string) *ListTagsForResourceInput { 16157 s.ResourceArn = &v 16158 return s 16159} 16160 16161type ListTagsForResourceOutput struct { 16162 _ struct{} `type:"structure"` 16163 16164 // If a large amount of information is returned, an identifier is also returned. 16165 // It can be used in a subsequent list application revisions call to return 16166 // the next set of application revisions in the list. 16167 NextToken *string `type:"string"` 16168 16169 // A list of tags returned by ListTagsForResource. The tags are associated with 16170 // the resource identified by the input ResourceArn parameter. 16171 Tags []*Tag `type:"list"` 16172} 16173 16174// String returns the string representation 16175func (s ListTagsForResourceOutput) String() string { 16176 return awsutil.Prettify(s) 16177} 16178 16179// GoString returns the string representation 16180func (s ListTagsForResourceOutput) GoString() string { 16181 return s.String() 16182} 16183 16184// SetNextToken sets the NextToken field's value. 16185func (s *ListTagsForResourceOutput) SetNextToken(v string) *ListTagsForResourceOutput { 16186 s.NextToken = &v 16187 return s 16188} 16189 16190// SetTags sets the Tags field's value. 16191func (s *ListTagsForResourceOutput) SetTags(v []*Tag) *ListTagsForResourceOutput { 16192 s.Tags = v 16193 return s 16194} 16195 16196// Information about the Elastic Load Balancing load balancer or target group 16197// used in a deployment. 16198type LoadBalancerInfo struct { 16199 _ struct{} `type:"structure"` 16200 16201 // An array that contains information about the load balancer to use for load 16202 // balancing in a deployment. In Elastic Load Balancing, load balancers are 16203 // used with Classic Load Balancers. 16204 // 16205 // Adding more than one load balancer to the array is not supported. 16206 ElbInfoList []*ELBInfo `locationName:"elbInfoList" type:"list"` 16207 16208 // An array that contains information about the target group to use for load 16209 // balancing in a deployment. In Elastic Load Balancing, target groups are used 16210 // with Application Load Balancers. 16211 // 16212 // Adding more than one target group to the array is not supported. 16213 TargetGroupInfoList []*TargetGroupInfo `locationName:"targetGroupInfoList" type:"list"` 16214 16215 // The target group pair information. This is an array of TargeGroupPairInfo 16216 // objects with a maximum size of one. 16217 TargetGroupPairInfoList []*TargetGroupPairInfo `locationName:"targetGroupPairInfoList" type:"list"` 16218} 16219 16220// String returns the string representation 16221func (s LoadBalancerInfo) String() string { 16222 return awsutil.Prettify(s) 16223} 16224 16225// GoString returns the string representation 16226func (s LoadBalancerInfo) GoString() string { 16227 return s.String() 16228} 16229 16230// SetElbInfoList sets the ElbInfoList field's value. 16231func (s *LoadBalancerInfo) SetElbInfoList(v []*ELBInfo) *LoadBalancerInfo { 16232 s.ElbInfoList = v 16233 return s 16234} 16235 16236// SetTargetGroupInfoList sets the TargetGroupInfoList field's value. 16237func (s *LoadBalancerInfo) SetTargetGroupInfoList(v []*TargetGroupInfo) *LoadBalancerInfo { 16238 s.TargetGroupInfoList = v 16239 return s 16240} 16241 16242// SetTargetGroupPairInfoList sets the TargetGroupPairInfoList field's value. 16243func (s *LoadBalancerInfo) SetTargetGroupPairInfoList(v []*TargetGroupPairInfo) *LoadBalancerInfo { 16244 s.TargetGroupPairInfoList = v 16245 return s 16246} 16247 16248// Information about minimum healthy instance. 16249type MinimumHealthyHosts struct { 16250 _ struct{} `type:"structure"` 16251 16252 // The minimum healthy instance type: 16253 // 16254 // * HOST_COUNT: The minimum number of healthy instances as an absolute value. 16255 // 16256 // * FLEET_PERCENT: The minimum number of healthy instances as a percentage 16257 // of the total number of instances in the deployment. 16258 // 16259 // In an example of nine instances, if a HOST_COUNT of six is specified, deploy 16260 // to up to three instances at a time. The deployment is successful if six or 16261 // more instances are deployed to successfully. Otherwise, the deployment fails. 16262 // If a FLEET_PERCENT of 40 is specified, deploy to up to five instances at 16263 // a time. The deployment is successful if four or more instances are deployed 16264 // to successfully. Otherwise, the deployment fails. 16265 // 16266 // In a call to the GetDeploymentConfig, CodeDeployDefault.OneAtATime returns 16267 // a minimum healthy instance type of MOST_CONCURRENCY and a value of 1. This 16268 // means a deployment to only one instance at a time. (You cannot set the type 16269 // to MOST_CONCURRENCY, only to HOST_COUNT or FLEET_PERCENT.) In addition, with 16270 // CodeDeployDefault.OneAtATime, AWS CodeDeploy attempts to ensure that all 16271 // instances but one are kept in a healthy state during the deployment. Although 16272 // this allows one instance at a time to be taken offline for a new deployment, 16273 // it also means that if the deployment to the last instance fails, the overall 16274 // deployment is still successful. 16275 // 16276 // For more information, see AWS CodeDeploy Instance Health (https://docs.aws.amazon.com/codedeploy/latest/userguide/instances-health.html) 16277 // in the AWS CodeDeploy User Guide. 16278 Type *string `locationName:"type" type:"string" enum:"MinimumHealthyHostsType"` 16279 16280 // The minimum healthy instance value. 16281 Value *int64 `locationName:"value" type:"integer"` 16282} 16283 16284// String returns the string representation 16285func (s MinimumHealthyHosts) String() string { 16286 return awsutil.Prettify(s) 16287} 16288 16289// GoString returns the string representation 16290func (s MinimumHealthyHosts) GoString() string { 16291 return s.String() 16292} 16293 16294// SetType sets the Type field's value. 16295func (s *MinimumHealthyHosts) SetType(v string) *MinimumHealthyHosts { 16296 s.Type = &v 16297 return s 16298} 16299 16300// SetValue sets the Value field's value. 16301func (s *MinimumHealthyHosts) SetValue(v int64) *MinimumHealthyHosts { 16302 s.Value = &v 16303 return s 16304} 16305 16306// Both an IAM user ARN and an IAM session ARN were included in the request. 16307// Use only one ARN type. 16308type MultipleIamArnsProvidedException struct { 16309 _ struct{} `type:"structure"` 16310 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 16311 16312 Message_ *string `locationName:"message" type:"string"` 16313} 16314 16315// String returns the string representation 16316func (s MultipleIamArnsProvidedException) String() string { 16317 return awsutil.Prettify(s) 16318} 16319 16320// GoString returns the string representation 16321func (s MultipleIamArnsProvidedException) GoString() string { 16322 return s.String() 16323} 16324 16325func newErrorMultipleIamArnsProvidedException(v protocol.ResponseMetadata) error { 16326 return &MultipleIamArnsProvidedException{ 16327 RespMetadata: v, 16328 } 16329} 16330 16331// Code returns the exception type name. 16332func (s *MultipleIamArnsProvidedException) Code() string { 16333 return "MultipleIamArnsProvidedException" 16334} 16335 16336// Message returns the exception's message. 16337func (s *MultipleIamArnsProvidedException) Message() string { 16338 if s.Message_ != nil { 16339 return *s.Message_ 16340 } 16341 return "" 16342} 16343 16344// OrigErr always returns nil, satisfies awserr.Error interface. 16345func (s *MultipleIamArnsProvidedException) OrigErr() error { 16346 return nil 16347} 16348 16349func (s *MultipleIamArnsProvidedException) Error() string { 16350 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 16351} 16352 16353// Status code returns the HTTP status code for the request's response error. 16354func (s *MultipleIamArnsProvidedException) StatusCode() int { 16355 return s.RespMetadata.StatusCode 16356} 16357 16358// RequestID returns the service's response RequestID for request. 16359func (s *MultipleIamArnsProvidedException) RequestID() string { 16360 return s.RespMetadata.RequestID 16361} 16362 16363// Information about groups of on-premises instance tags. 16364type OnPremisesTagSet struct { 16365 _ struct{} `type:"structure"` 16366 16367 // A list that contains other lists of on-premises instance tag groups. For 16368 // an instance to be included in the deployment group, it must be identified 16369 // by all of the tag groups in the list. 16370 OnPremisesTagSetList [][]*TagFilter `locationName:"onPremisesTagSetList" type:"list"` 16371} 16372 16373// String returns the string representation 16374func (s OnPremisesTagSet) String() string { 16375 return awsutil.Prettify(s) 16376} 16377 16378// GoString returns the string representation 16379func (s OnPremisesTagSet) GoString() string { 16380 return s.String() 16381} 16382 16383// SetOnPremisesTagSetList sets the OnPremisesTagSetList field's value. 16384func (s *OnPremisesTagSet) SetOnPremisesTagSetList(v [][]*TagFilter) *OnPremisesTagSet { 16385 s.OnPremisesTagSetList = v 16386 return s 16387} 16388 16389// The API used does not support the deployment. 16390type OperationNotSupportedException struct { 16391 _ struct{} `type:"structure"` 16392 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 16393 16394 Message_ *string `locationName:"message" type:"string"` 16395} 16396 16397// String returns the string representation 16398func (s OperationNotSupportedException) String() string { 16399 return awsutil.Prettify(s) 16400} 16401 16402// GoString returns the string representation 16403func (s OperationNotSupportedException) GoString() string { 16404 return s.String() 16405} 16406 16407func newErrorOperationNotSupportedException(v protocol.ResponseMetadata) error { 16408 return &OperationNotSupportedException{ 16409 RespMetadata: v, 16410 } 16411} 16412 16413// Code returns the exception type name. 16414func (s *OperationNotSupportedException) Code() string { 16415 return "OperationNotSupportedException" 16416} 16417 16418// Message returns the exception's message. 16419func (s *OperationNotSupportedException) Message() string { 16420 if s.Message_ != nil { 16421 return *s.Message_ 16422 } 16423 return "" 16424} 16425 16426// OrigErr always returns nil, satisfies awserr.Error interface. 16427func (s *OperationNotSupportedException) OrigErr() error { 16428 return nil 16429} 16430 16431func (s *OperationNotSupportedException) Error() string { 16432 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 16433} 16434 16435// Status code returns the HTTP status code for the request's response error. 16436func (s *OperationNotSupportedException) StatusCode() int { 16437 return s.RespMetadata.StatusCode 16438} 16439 16440// RequestID returns the service's response RequestID for request. 16441func (s *OperationNotSupportedException) RequestID() string { 16442 return s.RespMetadata.RequestID 16443} 16444 16445type PutLifecycleEventHookExecutionStatusInput struct { 16446 _ struct{} `type:"structure"` 16447 16448 // The unique ID of a deployment. Pass this ID to a Lambda function that validates 16449 // a deployment lifecycle event. 16450 DeploymentId *string `locationName:"deploymentId" type:"string"` 16451 16452 // The execution ID of a deployment's lifecycle hook. A deployment lifecycle 16453 // hook is specified in the hooks section of the AppSpec file. 16454 LifecycleEventHookExecutionId *string `locationName:"lifecycleEventHookExecutionId" type:"string"` 16455 16456 // The result of a Lambda function that validates a deployment lifecycle event. 16457 // Succeeded and Failed are the only valid values for status. 16458 Status *string `locationName:"status" type:"string" enum:"LifecycleEventStatus"` 16459} 16460 16461// String returns the string representation 16462func (s PutLifecycleEventHookExecutionStatusInput) String() string { 16463 return awsutil.Prettify(s) 16464} 16465 16466// GoString returns the string representation 16467func (s PutLifecycleEventHookExecutionStatusInput) GoString() string { 16468 return s.String() 16469} 16470 16471// SetDeploymentId sets the DeploymentId field's value. 16472func (s *PutLifecycleEventHookExecutionStatusInput) SetDeploymentId(v string) *PutLifecycleEventHookExecutionStatusInput { 16473 s.DeploymentId = &v 16474 return s 16475} 16476 16477// SetLifecycleEventHookExecutionId sets the LifecycleEventHookExecutionId field's value. 16478func (s *PutLifecycleEventHookExecutionStatusInput) SetLifecycleEventHookExecutionId(v string) *PutLifecycleEventHookExecutionStatusInput { 16479 s.LifecycleEventHookExecutionId = &v 16480 return s 16481} 16482 16483// SetStatus sets the Status field's value. 16484func (s *PutLifecycleEventHookExecutionStatusInput) SetStatus(v string) *PutLifecycleEventHookExecutionStatusInput { 16485 s.Status = &v 16486 return s 16487} 16488 16489type PutLifecycleEventHookExecutionStatusOutput struct { 16490 _ struct{} `type:"structure"` 16491 16492 // The execution ID of the lifecycle event hook. A hook is specified in the 16493 // hooks section of the deployment's AppSpec file. 16494 LifecycleEventHookExecutionId *string `locationName:"lifecycleEventHookExecutionId" type:"string"` 16495} 16496 16497// String returns the string representation 16498func (s PutLifecycleEventHookExecutionStatusOutput) String() string { 16499 return awsutil.Prettify(s) 16500} 16501 16502// GoString returns the string representation 16503func (s PutLifecycleEventHookExecutionStatusOutput) GoString() string { 16504 return s.String() 16505} 16506 16507// SetLifecycleEventHookExecutionId sets the LifecycleEventHookExecutionId field's value. 16508func (s *PutLifecycleEventHookExecutionStatusOutput) SetLifecycleEventHookExecutionId(v string) *PutLifecycleEventHookExecutionStatusOutput { 16509 s.LifecycleEventHookExecutionId = &v 16510 return s 16511} 16512 16513// A revision for an AWS Lambda deployment that is a YAML-formatted or JSON-formatted 16514// string. For AWS Lambda deployments, the revision is the same as the AppSpec 16515// file. 16516// 16517// Deprecated: RawString and String revision type are deprecated, use AppSpecContent type instead. 16518type RawString struct { 16519 _ struct{} `deprecated:"true" type:"structure"` 16520 16521 // The YAML-formatted or JSON-formatted revision string. It includes information 16522 // about which Lambda function to update and optional Lambda functions that 16523 // validate deployment lifecycle events. 16524 Content *string `locationName:"content" type:"string"` 16525 16526 // The SHA256 hash value of the revision content. 16527 Sha256 *string `locationName:"sha256" type:"string"` 16528} 16529 16530// String returns the string representation 16531func (s RawString) String() string { 16532 return awsutil.Prettify(s) 16533} 16534 16535// GoString returns the string representation 16536func (s RawString) GoString() string { 16537 return s.String() 16538} 16539 16540// SetContent sets the Content field's value. 16541func (s *RawString) SetContent(v string) *RawString { 16542 s.Content = &v 16543 return s 16544} 16545 16546// SetSha256 sets the Sha256 field's value. 16547func (s *RawString) SetSha256(v string) *RawString { 16548 s.Sha256 = &v 16549 return s 16550} 16551 16552// Represents the input of a RegisterApplicationRevision operation. 16553type RegisterApplicationRevisionInput struct { 16554 _ struct{} `type:"structure"` 16555 16556 // The name of an AWS CodeDeploy application associated with the IAM user or 16557 // AWS account. 16558 // 16559 // ApplicationName is a required field 16560 ApplicationName *string `locationName:"applicationName" min:"1" type:"string" required:"true"` 16561 16562 // A comment about the revision. 16563 Description *string `locationName:"description" type:"string"` 16564 16565 // Information about the application revision to register, including type and 16566 // location. 16567 // 16568 // Revision is a required field 16569 Revision *RevisionLocation `locationName:"revision" type:"structure" required:"true"` 16570} 16571 16572// String returns the string representation 16573func (s RegisterApplicationRevisionInput) String() string { 16574 return awsutil.Prettify(s) 16575} 16576 16577// GoString returns the string representation 16578func (s RegisterApplicationRevisionInput) GoString() string { 16579 return s.String() 16580} 16581 16582// Validate inspects the fields of the type to determine if they are valid. 16583func (s *RegisterApplicationRevisionInput) Validate() error { 16584 invalidParams := request.ErrInvalidParams{Context: "RegisterApplicationRevisionInput"} 16585 if s.ApplicationName == nil { 16586 invalidParams.Add(request.NewErrParamRequired("ApplicationName")) 16587 } 16588 if s.ApplicationName != nil && len(*s.ApplicationName) < 1 { 16589 invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1)) 16590 } 16591 if s.Revision == nil { 16592 invalidParams.Add(request.NewErrParamRequired("Revision")) 16593 } 16594 16595 if invalidParams.Len() > 0 { 16596 return invalidParams 16597 } 16598 return nil 16599} 16600 16601// SetApplicationName sets the ApplicationName field's value. 16602func (s *RegisterApplicationRevisionInput) SetApplicationName(v string) *RegisterApplicationRevisionInput { 16603 s.ApplicationName = &v 16604 return s 16605} 16606 16607// SetDescription sets the Description field's value. 16608func (s *RegisterApplicationRevisionInput) SetDescription(v string) *RegisterApplicationRevisionInput { 16609 s.Description = &v 16610 return s 16611} 16612 16613// SetRevision sets the Revision field's value. 16614func (s *RegisterApplicationRevisionInput) SetRevision(v *RevisionLocation) *RegisterApplicationRevisionInput { 16615 s.Revision = v 16616 return s 16617} 16618 16619type RegisterApplicationRevisionOutput struct { 16620 _ struct{} `type:"structure"` 16621} 16622 16623// String returns the string representation 16624func (s RegisterApplicationRevisionOutput) String() string { 16625 return awsutil.Prettify(s) 16626} 16627 16628// GoString returns the string representation 16629func (s RegisterApplicationRevisionOutput) GoString() string { 16630 return s.String() 16631} 16632 16633// Represents the input of the register on-premises instance operation. 16634type RegisterOnPremisesInstanceInput struct { 16635 _ struct{} `type:"structure"` 16636 16637 // The ARN of the IAM session to associate with the on-premises instance. 16638 IamSessionArn *string `locationName:"iamSessionArn" type:"string"` 16639 16640 // The ARN of the IAM user to associate with the on-premises instance. 16641 IamUserArn *string `locationName:"iamUserArn" type:"string"` 16642 16643 // The name of the on-premises instance to register. 16644 // 16645 // InstanceName is a required field 16646 InstanceName *string `locationName:"instanceName" type:"string" required:"true"` 16647} 16648 16649// String returns the string representation 16650func (s RegisterOnPremisesInstanceInput) String() string { 16651 return awsutil.Prettify(s) 16652} 16653 16654// GoString returns the string representation 16655func (s RegisterOnPremisesInstanceInput) GoString() string { 16656 return s.String() 16657} 16658 16659// Validate inspects the fields of the type to determine if they are valid. 16660func (s *RegisterOnPremisesInstanceInput) Validate() error { 16661 invalidParams := request.ErrInvalidParams{Context: "RegisterOnPremisesInstanceInput"} 16662 if s.InstanceName == nil { 16663 invalidParams.Add(request.NewErrParamRequired("InstanceName")) 16664 } 16665 16666 if invalidParams.Len() > 0 { 16667 return invalidParams 16668 } 16669 return nil 16670} 16671 16672// SetIamSessionArn sets the IamSessionArn field's value. 16673func (s *RegisterOnPremisesInstanceInput) SetIamSessionArn(v string) *RegisterOnPremisesInstanceInput { 16674 s.IamSessionArn = &v 16675 return s 16676} 16677 16678// SetIamUserArn sets the IamUserArn field's value. 16679func (s *RegisterOnPremisesInstanceInput) SetIamUserArn(v string) *RegisterOnPremisesInstanceInput { 16680 s.IamUserArn = &v 16681 return s 16682} 16683 16684// SetInstanceName sets the InstanceName field's value. 16685func (s *RegisterOnPremisesInstanceInput) SetInstanceName(v string) *RegisterOnPremisesInstanceInput { 16686 s.InstanceName = &v 16687 return s 16688} 16689 16690type RegisterOnPremisesInstanceOutput struct { 16691 _ struct{} `type:"structure"` 16692} 16693 16694// String returns the string representation 16695func (s RegisterOnPremisesInstanceOutput) String() string { 16696 return awsutil.Prettify(s) 16697} 16698 16699// GoString returns the string representation 16700func (s RegisterOnPremisesInstanceOutput) GoString() string { 16701 return s.String() 16702} 16703 16704// Information about deployments related to the specified deployment. 16705type RelatedDeployments struct { 16706 _ struct{} `type:"structure"` 16707 16708 // The deployment IDs of 'auto-update outdated instances' deployments triggered 16709 // by this deployment. 16710 AutoUpdateOutdatedInstancesDeploymentIds []*string `locationName:"autoUpdateOutdatedInstancesDeploymentIds" type:"list"` 16711 16712 // The deployment ID of the root deployment that triggered this deployment. 16713 AutoUpdateOutdatedInstancesRootDeploymentId *string `locationName:"autoUpdateOutdatedInstancesRootDeploymentId" type:"string"` 16714} 16715 16716// String returns the string representation 16717func (s RelatedDeployments) String() string { 16718 return awsutil.Prettify(s) 16719} 16720 16721// GoString returns the string representation 16722func (s RelatedDeployments) GoString() string { 16723 return s.String() 16724} 16725 16726// SetAutoUpdateOutdatedInstancesDeploymentIds sets the AutoUpdateOutdatedInstancesDeploymentIds field's value. 16727func (s *RelatedDeployments) SetAutoUpdateOutdatedInstancesDeploymentIds(v []*string) *RelatedDeployments { 16728 s.AutoUpdateOutdatedInstancesDeploymentIds = v 16729 return s 16730} 16731 16732// SetAutoUpdateOutdatedInstancesRootDeploymentId sets the AutoUpdateOutdatedInstancesRootDeploymentId field's value. 16733func (s *RelatedDeployments) SetAutoUpdateOutdatedInstancesRootDeploymentId(v string) *RelatedDeployments { 16734 s.AutoUpdateOutdatedInstancesRootDeploymentId = &v 16735 return s 16736} 16737 16738// Represents the input of a RemoveTagsFromOnPremisesInstances operation. 16739type RemoveTagsFromOnPremisesInstancesInput struct { 16740 _ struct{} `type:"structure"` 16741 16742 // The names of the on-premises instances from which to remove tags. 16743 // 16744 // InstanceNames is a required field 16745 InstanceNames []*string `locationName:"instanceNames" type:"list" required:"true"` 16746 16747 // The tag key-value pairs to remove from the on-premises instances. 16748 // 16749 // Tags is a required field 16750 Tags []*Tag `locationName:"tags" type:"list" required:"true"` 16751} 16752 16753// String returns the string representation 16754func (s RemoveTagsFromOnPremisesInstancesInput) String() string { 16755 return awsutil.Prettify(s) 16756} 16757 16758// GoString returns the string representation 16759func (s RemoveTagsFromOnPremisesInstancesInput) GoString() string { 16760 return s.String() 16761} 16762 16763// Validate inspects the fields of the type to determine if they are valid. 16764func (s *RemoveTagsFromOnPremisesInstancesInput) Validate() error { 16765 invalidParams := request.ErrInvalidParams{Context: "RemoveTagsFromOnPremisesInstancesInput"} 16766 if s.InstanceNames == nil { 16767 invalidParams.Add(request.NewErrParamRequired("InstanceNames")) 16768 } 16769 if s.Tags == nil { 16770 invalidParams.Add(request.NewErrParamRequired("Tags")) 16771 } 16772 16773 if invalidParams.Len() > 0 { 16774 return invalidParams 16775 } 16776 return nil 16777} 16778 16779// SetInstanceNames sets the InstanceNames field's value. 16780func (s *RemoveTagsFromOnPremisesInstancesInput) SetInstanceNames(v []*string) *RemoveTagsFromOnPremisesInstancesInput { 16781 s.InstanceNames = v 16782 return s 16783} 16784 16785// SetTags sets the Tags field's value. 16786func (s *RemoveTagsFromOnPremisesInstancesInput) SetTags(v []*Tag) *RemoveTagsFromOnPremisesInstancesInput { 16787 s.Tags = v 16788 return s 16789} 16790 16791type RemoveTagsFromOnPremisesInstancesOutput struct { 16792 _ struct{} `type:"structure"` 16793} 16794 16795// String returns the string representation 16796func (s RemoveTagsFromOnPremisesInstancesOutput) String() string { 16797 return awsutil.Prettify(s) 16798} 16799 16800// GoString returns the string representation 16801func (s RemoveTagsFromOnPremisesInstancesOutput) GoString() string { 16802 return s.String() 16803} 16804 16805// The ARN of a resource is required, but was not found. 16806type ResourceArnRequiredException struct { 16807 _ struct{} `type:"structure"` 16808 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 16809 16810 Message_ *string `locationName:"message" type:"string"` 16811} 16812 16813// String returns the string representation 16814func (s ResourceArnRequiredException) String() string { 16815 return awsutil.Prettify(s) 16816} 16817 16818// GoString returns the string representation 16819func (s ResourceArnRequiredException) GoString() string { 16820 return s.String() 16821} 16822 16823func newErrorResourceArnRequiredException(v protocol.ResponseMetadata) error { 16824 return &ResourceArnRequiredException{ 16825 RespMetadata: v, 16826 } 16827} 16828 16829// Code returns the exception type name. 16830func (s *ResourceArnRequiredException) Code() string { 16831 return "ResourceArnRequiredException" 16832} 16833 16834// Message returns the exception's message. 16835func (s *ResourceArnRequiredException) Message() string { 16836 if s.Message_ != nil { 16837 return *s.Message_ 16838 } 16839 return "" 16840} 16841 16842// OrigErr always returns nil, satisfies awserr.Error interface. 16843func (s *ResourceArnRequiredException) OrigErr() error { 16844 return nil 16845} 16846 16847func (s *ResourceArnRequiredException) Error() string { 16848 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 16849} 16850 16851// Status code returns the HTTP status code for the request's response error. 16852func (s *ResourceArnRequiredException) StatusCode() int { 16853 return s.RespMetadata.StatusCode 16854} 16855 16856// RequestID returns the service's response RequestID for request. 16857func (s *ResourceArnRequiredException) RequestID() string { 16858 return s.RespMetadata.RequestID 16859} 16860 16861// The specified resource could not be validated. 16862type ResourceValidationException struct { 16863 _ struct{} `type:"structure"` 16864 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 16865 16866 Message_ *string `locationName:"message" type:"string"` 16867} 16868 16869// String returns the string representation 16870func (s ResourceValidationException) String() string { 16871 return awsutil.Prettify(s) 16872} 16873 16874// GoString returns the string representation 16875func (s ResourceValidationException) GoString() string { 16876 return s.String() 16877} 16878 16879func newErrorResourceValidationException(v protocol.ResponseMetadata) error { 16880 return &ResourceValidationException{ 16881 RespMetadata: v, 16882 } 16883} 16884 16885// Code returns the exception type name. 16886func (s *ResourceValidationException) Code() string { 16887 return "ResourceValidationException" 16888} 16889 16890// Message returns the exception's message. 16891func (s *ResourceValidationException) Message() string { 16892 if s.Message_ != nil { 16893 return *s.Message_ 16894 } 16895 return "" 16896} 16897 16898// OrigErr always returns nil, satisfies awserr.Error interface. 16899func (s *ResourceValidationException) OrigErr() error { 16900 return nil 16901} 16902 16903func (s *ResourceValidationException) Error() string { 16904 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 16905} 16906 16907// Status code returns the HTTP status code for the request's response error. 16908func (s *ResourceValidationException) StatusCode() int { 16909 return s.RespMetadata.StatusCode 16910} 16911 16912// RequestID returns the service's response RequestID for request. 16913func (s *ResourceValidationException) RequestID() string { 16914 return s.RespMetadata.RequestID 16915} 16916 16917// The named revision does not exist with the IAM user or AWS account. 16918type RevisionDoesNotExistException struct { 16919 _ struct{} `type:"structure"` 16920 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 16921 16922 Message_ *string `locationName:"message" type:"string"` 16923} 16924 16925// String returns the string representation 16926func (s RevisionDoesNotExistException) String() string { 16927 return awsutil.Prettify(s) 16928} 16929 16930// GoString returns the string representation 16931func (s RevisionDoesNotExistException) GoString() string { 16932 return s.String() 16933} 16934 16935func newErrorRevisionDoesNotExistException(v protocol.ResponseMetadata) error { 16936 return &RevisionDoesNotExistException{ 16937 RespMetadata: v, 16938 } 16939} 16940 16941// Code returns the exception type name. 16942func (s *RevisionDoesNotExistException) Code() string { 16943 return "RevisionDoesNotExistException" 16944} 16945 16946// Message returns the exception's message. 16947func (s *RevisionDoesNotExistException) Message() string { 16948 if s.Message_ != nil { 16949 return *s.Message_ 16950 } 16951 return "" 16952} 16953 16954// OrigErr always returns nil, satisfies awserr.Error interface. 16955func (s *RevisionDoesNotExistException) OrigErr() error { 16956 return nil 16957} 16958 16959func (s *RevisionDoesNotExistException) Error() string { 16960 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 16961} 16962 16963// Status code returns the HTTP status code for the request's response error. 16964func (s *RevisionDoesNotExistException) StatusCode() int { 16965 return s.RespMetadata.StatusCode 16966} 16967 16968// RequestID returns the service's response RequestID for request. 16969func (s *RevisionDoesNotExistException) RequestID() string { 16970 return s.RespMetadata.RequestID 16971} 16972 16973// Information about an application revision. 16974type RevisionInfo struct { 16975 _ struct{} `type:"structure"` 16976 16977 // Information about an application revision, including usage details and associated 16978 // deployment groups. 16979 GenericRevisionInfo *GenericRevisionInfo `locationName:"genericRevisionInfo" type:"structure"` 16980 16981 // Information about the location and type of an application revision. 16982 RevisionLocation *RevisionLocation `locationName:"revisionLocation" type:"structure"` 16983} 16984 16985// String returns the string representation 16986func (s RevisionInfo) String() string { 16987 return awsutil.Prettify(s) 16988} 16989 16990// GoString returns the string representation 16991func (s RevisionInfo) GoString() string { 16992 return s.String() 16993} 16994 16995// SetGenericRevisionInfo sets the GenericRevisionInfo field's value. 16996func (s *RevisionInfo) SetGenericRevisionInfo(v *GenericRevisionInfo) *RevisionInfo { 16997 s.GenericRevisionInfo = v 16998 return s 16999} 17000 17001// SetRevisionLocation sets the RevisionLocation field's value. 17002func (s *RevisionInfo) SetRevisionLocation(v *RevisionLocation) *RevisionInfo { 17003 s.RevisionLocation = v 17004 return s 17005} 17006 17007// Information about the location of an application revision. 17008type RevisionLocation struct { 17009 _ struct{} `type:"structure"` 17010 17011 // The content of an AppSpec file for an AWS Lambda or Amazon ECS deployment. 17012 // The content is formatted as JSON or YAML and stored as a RawString. 17013 AppSpecContent *AppSpecContent `locationName:"appSpecContent" type:"structure"` 17014 17015 // Information about the location of application artifacts stored in GitHub. 17016 GitHubLocation *GitHubLocation `locationName:"gitHubLocation" type:"structure"` 17017 17018 // The type of application revision: 17019 // 17020 // * S3: An application revision stored in Amazon S3. 17021 // 17022 // * GitHub: An application revision stored in GitHub (EC2/On-premises deployments 17023 // only). 17024 // 17025 // * String: A YAML-formatted or JSON-formatted string (AWS Lambda deployments 17026 // only). 17027 // 17028 // * AppSpecContent: An AppSpecContent object that contains the contents 17029 // of an AppSpec file for an AWS Lambda or Amazon ECS deployment. The content 17030 // is formatted as JSON or YAML stored as a RawString. 17031 RevisionType *string `locationName:"revisionType" type:"string" enum:"RevisionLocationType"` 17032 17033 // Information about the location of a revision stored in Amazon S3. 17034 S3Location *S3Location `locationName:"s3Location" type:"structure"` 17035 17036 // Information about the location of an AWS Lambda deployment revision stored 17037 // as a RawString. 17038 String_ *RawString `locationName:"string" deprecated:"true" type:"structure"` 17039} 17040 17041// String returns the string representation 17042func (s RevisionLocation) String() string { 17043 return awsutil.Prettify(s) 17044} 17045 17046// GoString returns the string representation 17047func (s RevisionLocation) GoString() string { 17048 return s.String() 17049} 17050 17051// SetAppSpecContent sets the AppSpecContent field's value. 17052func (s *RevisionLocation) SetAppSpecContent(v *AppSpecContent) *RevisionLocation { 17053 s.AppSpecContent = v 17054 return s 17055} 17056 17057// SetGitHubLocation sets the GitHubLocation field's value. 17058func (s *RevisionLocation) SetGitHubLocation(v *GitHubLocation) *RevisionLocation { 17059 s.GitHubLocation = v 17060 return s 17061} 17062 17063// SetRevisionType sets the RevisionType field's value. 17064func (s *RevisionLocation) SetRevisionType(v string) *RevisionLocation { 17065 s.RevisionType = &v 17066 return s 17067} 17068 17069// SetS3Location sets the S3Location field's value. 17070func (s *RevisionLocation) SetS3Location(v *S3Location) *RevisionLocation { 17071 s.S3Location = v 17072 return s 17073} 17074 17075// SetString_ sets the String_ field's value. 17076func (s *RevisionLocation) SetString_(v *RawString) *RevisionLocation { 17077 s.String_ = v 17078 return s 17079} 17080 17081// The revision ID was not specified. 17082type RevisionRequiredException struct { 17083 _ struct{} `type:"structure"` 17084 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 17085 17086 Message_ *string `locationName:"message" type:"string"` 17087} 17088 17089// String returns the string representation 17090func (s RevisionRequiredException) String() string { 17091 return awsutil.Prettify(s) 17092} 17093 17094// GoString returns the string representation 17095func (s RevisionRequiredException) GoString() string { 17096 return s.String() 17097} 17098 17099func newErrorRevisionRequiredException(v protocol.ResponseMetadata) error { 17100 return &RevisionRequiredException{ 17101 RespMetadata: v, 17102 } 17103} 17104 17105// Code returns the exception type name. 17106func (s *RevisionRequiredException) Code() string { 17107 return "RevisionRequiredException" 17108} 17109 17110// Message returns the exception's message. 17111func (s *RevisionRequiredException) Message() string { 17112 if s.Message_ != nil { 17113 return *s.Message_ 17114 } 17115 return "" 17116} 17117 17118// OrigErr always returns nil, satisfies awserr.Error interface. 17119func (s *RevisionRequiredException) OrigErr() error { 17120 return nil 17121} 17122 17123func (s *RevisionRequiredException) Error() string { 17124 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 17125} 17126 17127// Status code returns the HTTP status code for the request's response error. 17128func (s *RevisionRequiredException) StatusCode() int { 17129 return s.RespMetadata.StatusCode 17130} 17131 17132// RequestID returns the service's response RequestID for request. 17133func (s *RevisionRequiredException) RequestID() string { 17134 return s.RespMetadata.RequestID 17135} 17136 17137// The role ID was not specified. 17138type RoleRequiredException struct { 17139 _ struct{} `type:"structure"` 17140 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 17141 17142 Message_ *string `locationName:"message" type:"string"` 17143} 17144 17145// String returns the string representation 17146func (s RoleRequiredException) String() string { 17147 return awsutil.Prettify(s) 17148} 17149 17150// GoString returns the string representation 17151func (s RoleRequiredException) GoString() string { 17152 return s.String() 17153} 17154 17155func newErrorRoleRequiredException(v protocol.ResponseMetadata) error { 17156 return &RoleRequiredException{ 17157 RespMetadata: v, 17158 } 17159} 17160 17161// Code returns the exception type name. 17162func (s *RoleRequiredException) Code() string { 17163 return "RoleRequiredException" 17164} 17165 17166// Message returns the exception's message. 17167func (s *RoleRequiredException) Message() string { 17168 if s.Message_ != nil { 17169 return *s.Message_ 17170 } 17171 return "" 17172} 17173 17174// OrigErr always returns nil, satisfies awserr.Error interface. 17175func (s *RoleRequiredException) OrigErr() error { 17176 return nil 17177} 17178 17179func (s *RoleRequiredException) Error() string { 17180 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 17181} 17182 17183// Status code returns the HTTP status code for the request's response error. 17184func (s *RoleRequiredException) StatusCode() int { 17185 return s.RespMetadata.StatusCode 17186} 17187 17188// RequestID returns the service's response RequestID for request. 17189func (s *RoleRequiredException) RequestID() string { 17190 return s.RespMetadata.RequestID 17191} 17192 17193// Information about a deployment rollback. 17194type RollbackInfo struct { 17195 _ struct{} `type:"structure"` 17196 17197 // The ID of the deployment rollback. 17198 RollbackDeploymentId *string `locationName:"rollbackDeploymentId" type:"string"` 17199 17200 // Information that describes the status of a deployment rollback (for example, 17201 // whether the deployment can't be rolled back, is in progress, failed, or succeeded). 17202 RollbackMessage *string `locationName:"rollbackMessage" type:"string"` 17203 17204 // The deployment ID of the deployment that was underway and triggered a rollback 17205 // deployment because it failed or was stopped. 17206 RollbackTriggeringDeploymentId *string `locationName:"rollbackTriggeringDeploymentId" type:"string"` 17207} 17208 17209// String returns the string representation 17210func (s RollbackInfo) String() string { 17211 return awsutil.Prettify(s) 17212} 17213 17214// GoString returns the string representation 17215func (s RollbackInfo) GoString() string { 17216 return s.String() 17217} 17218 17219// SetRollbackDeploymentId sets the RollbackDeploymentId field's value. 17220func (s *RollbackInfo) SetRollbackDeploymentId(v string) *RollbackInfo { 17221 s.RollbackDeploymentId = &v 17222 return s 17223} 17224 17225// SetRollbackMessage sets the RollbackMessage field's value. 17226func (s *RollbackInfo) SetRollbackMessage(v string) *RollbackInfo { 17227 s.RollbackMessage = &v 17228 return s 17229} 17230 17231// SetRollbackTriggeringDeploymentId sets the RollbackTriggeringDeploymentId field's value. 17232func (s *RollbackInfo) SetRollbackTriggeringDeploymentId(v string) *RollbackInfo { 17233 s.RollbackTriggeringDeploymentId = &v 17234 return s 17235} 17236 17237// Information about the location of application artifacts stored in Amazon 17238// S3. 17239type S3Location struct { 17240 _ struct{} `type:"structure"` 17241 17242 // The name of the Amazon S3 bucket where the application revision is stored. 17243 Bucket *string `locationName:"bucket" type:"string"` 17244 17245 // The file type of the application revision. Must be one of the following: 17246 // 17247 // * tar: A tar archive file. 17248 // 17249 // * tgz: A compressed tar archive file. 17250 // 17251 // * zip: A zip archive file. 17252 BundleType *string `locationName:"bundleType" type:"string" enum:"BundleType"` 17253 17254 // The ETag of the Amazon S3 object that represents the bundled artifacts for 17255 // the application revision. 17256 // 17257 // If the ETag is not specified as an input parameter, ETag validation of the 17258 // object is skipped. 17259 ETag *string `locationName:"eTag" type:"string"` 17260 17261 // The name of the Amazon S3 object that represents the bundled artifacts for 17262 // the application revision. 17263 Key *string `locationName:"key" type:"string"` 17264 17265 // A specific version of the Amazon S3 object that represents the bundled artifacts 17266 // for the application revision. 17267 // 17268 // If the version is not specified, the system uses the most recent version 17269 // by default. 17270 Version *string `locationName:"version" type:"string"` 17271} 17272 17273// String returns the string representation 17274func (s S3Location) String() string { 17275 return awsutil.Prettify(s) 17276} 17277 17278// GoString returns the string representation 17279func (s S3Location) GoString() string { 17280 return s.String() 17281} 17282 17283// SetBucket sets the Bucket field's value. 17284func (s *S3Location) SetBucket(v string) *S3Location { 17285 s.Bucket = &v 17286 return s 17287} 17288 17289// SetBundleType sets the BundleType field's value. 17290func (s *S3Location) SetBundleType(v string) *S3Location { 17291 s.BundleType = &v 17292 return s 17293} 17294 17295// SetETag sets the ETag field's value. 17296func (s *S3Location) SetETag(v string) *S3Location { 17297 s.ETag = &v 17298 return s 17299} 17300 17301// SetKey sets the Key field's value. 17302func (s *S3Location) SetKey(v string) *S3Location { 17303 s.Key = &v 17304 return s 17305} 17306 17307// SetVersion sets the Version field's value. 17308func (s *S3Location) SetVersion(v string) *S3Location { 17309 s.Version = &v 17310 return s 17311} 17312 17313type SkipWaitTimeForInstanceTerminationInput struct { 17314 _ struct{} `type:"structure"` 17315 17316 // The unique ID of a blue/green deployment for which you want to skip the instance 17317 // termination wait time. 17318 DeploymentId *string `locationName:"deploymentId" type:"string"` 17319} 17320 17321// String returns the string representation 17322func (s SkipWaitTimeForInstanceTerminationInput) String() string { 17323 return awsutil.Prettify(s) 17324} 17325 17326// GoString returns the string representation 17327func (s SkipWaitTimeForInstanceTerminationInput) GoString() string { 17328 return s.String() 17329} 17330 17331// SetDeploymentId sets the DeploymentId field's value. 17332func (s *SkipWaitTimeForInstanceTerminationInput) SetDeploymentId(v string) *SkipWaitTimeForInstanceTerminationInput { 17333 s.DeploymentId = &v 17334 return s 17335} 17336 17337type SkipWaitTimeForInstanceTerminationOutput struct { 17338 _ struct{} `type:"structure"` 17339} 17340 17341// String returns the string representation 17342func (s SkipWaitTimeForInstanceTerminationOutput) String() string { 17343 return awsutil.Prettify(s) 17344} 17345 17346// GoString returns the string representation 17347func (s SkipWaitTimeForInstanceTerminationOutput) GoString() string { 17348 return s.String() 17349} 17350 17351// Represents the input of a StopDeployment operation. 17352type StopDeploymentInput struct { 17353 _ struct{} `type:"structure"` 17354 17355 // Indicates, when a deployment is stopped, whether instances that have been 17356 // updated should be rolled back to the previous version of the application 17357 // revision. 17358 AutoRollbackEnabled *bool `locationName:"autoRollbackEnabled" type:"boolean"` 17359 17360 // The unique ID of a deployment. 17361 // 17362 // DeploymentId is a required field 17363 DeploymentId *string `locationName:"deploymentId" type:"string" required:"true"` 17364} 17365 17366// String returns the string representation 17367func (s StopDeploymentInput) String() string { 17368 return awsutil.Prettify(s) 17369} 17370 17371// GoString returns the string representation 17372func (s StopDeploymentInput) GoString() string { 17373 return s.String() 17374} 17375 17376// Validate inspects the fields of the type to determine if they are valid. 17377func (s *StopDeploymentInput) Validate() error { 17378 invalidParams := request.ErrInvalidParams{Context: "StopDeploymentInput"} 17379 if s.DeploymentId == nil { 17380 invalidParams.Add(request.NewErrParamRequired("DeploymentId")) 17381 } 17382 17383 if invalidParams.Len() > 0 { 17384 return invalidParams 17385 } 17386 return nil 17387} 17388 17389// SetAutoRollbackEnabled sets the AutoRollbackEnabled field's value. 17390func (s *StopDeploymentInput) SetAutoRollbackEnabled(v bool) *StopDeploymentInput { 17391 s.AutoRollbackEnabled = &v 17392 return s 17393} 17394 17395// SetDeploymentId sets the DeploymentId field's value. 17396func (s *StopDeploymentInput) SetDeploymentId(v string) *StopDeploymentInput { 17397 s.DeploymentId = &v 17398 return s 17399} 17400 17401// Represents the output of a StopDeployment operation. 17402type StopDeploymentOutput struct { 17403 _ struct{} `type:"structure"` 17404 17405 // The status of the stop deployment operation: 17406 // 17407 // * Pending: The stop operation is pending. 17408 // 17409 // * Succeeded: The stop operation was successful. 17410 Status *string `locationName:"status" type:"string" enum:"StopStatus"` 17411 17412 // An accompanying status message. 17413 StatusMessage *string `locationName:"statusMessage" type:"string"` 17414} 17415 17416// String returns the string representation 17417func (s StopDeploymentOutput) String() string { 17418 return awsutil.Prettify(s) 17419} 17420 17421// GoString returns the string representation 17422func (s StopDeploymentOutput) GoString() string { 17423 return s.String() 17424} 17425 17426// SetStatus sets the Status field's value. 17427func (s *StopDeploymentOutput) SetStatus(v string) *StopDeploymentOutput { 17428 s.Status = &v 17429 return s 17430} 17431 17432// SetStatusMessage sets the StatusMessage field's value. 17433func (s *StopDeploymentOutput) SetStatusMessage(v string) *StopDeploymentOutput { 17434 s.StatusMessage = &v 17435 return s 17436} 17437 17438// Information about a tag. 17439type Tag struct { 17440 _ struct{} `type:"structure"` 17441 17442 // The tag's key. 17443 Key *string `type:"string"` 17444 17445 // The tag's value. 17446 Value *string `type:"string"` 17447} 17448 17449// String returns the string representation 17450func (s Tag) String() string { 17451 return awsutil.Prettify(s) 17452} 17453 17454// GoString returns the string representation 17455func (s Tag) GoString() string { 17456 return s.String() 17457} 17458 17459// SetKey sets the Key field's value. 17460func (s *Tag) SetKey(v string) *Tag { 17461 s.Key = &v 17462 return s 17463} 17464 17465// SetValue sets the Value field's value. 17466func (s *Tag) SetValue(v string) *Tag { 17467 s.Value = &v 17468 return s 17469} 17470 17471// Information about an on-premises instance tag filter. 17472type TagFilter struct { 17473 _ struct{} `type:"structure"` 17474 17475 // The on-premises instance tag filter key. 17476 Key *string `type:"string"` 17477 17478 // The on-premises instance tag filter type: 17479 // 17480 // * KEY_ONLY: Key only. 17481 // 17482 // * VALUE_ONLY: Value only. 17483 // 17484 // * KEY_AND_VALUE: Key and value. 17485 Type *string `type:"string" enum:"TagFilterType"` 17486 17487 // The on-premises instance tag filter value. 17488 Value *string `type:"string"` 17489} 17490 17491// String returns the string representation 17492func (s TagFilter) String() string { 17493 return awsutil.Prettify(s) 17494} 17495 17496// GoString returns the string representation 17497func (s TagFilter) GoString() string { 17498 return s.String() 17499} 17500 17501// SetKey sets the Key field's value. 17502func (s *TagFilter) SetKey(v string) *TagFilter { 17503 s.Key = &v 17504 return s 17505} 17506 17507// SetType sets the Type field's value. 17508func (s *TagFilter) SetType(v string) *TagFilter { 17509 s.Type = &v 17510 return s 17511} 17512 17513// SetValue sets the Value field's value. 17514func (s *TagFilter) SetValue(v string) *TagFilter { 17515 s.Value = &v 17516 return s 17517} 17518 17519// The maximum allowed number of tags was exceeded. 17520type TagLimitExceededException struct { 17521 _ struct{} `type:"structure"` 17522 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 17523 17524 Message_ *string `locationName:"message" type:"string"` 17525} 17526 17527// String returns the string representation 17528func (s TagLimitExceededException) String() string { 17529 return awsutil.Prettify(s) 17530} 17531 17532// GoString returns the string representation 17533func (s TagLimitExceededException) GoString() string { 17534 return s.String() 17535} 17536 17537func newErrorTagLimitExceededException(v protocol.ResponseMetadata) error { 17538 return &TagLimitExceededException{ 17539 RespMetadata: v, 17540 } 17541} 17542 17543// Code returns the exception type name. 17544func (s *TagLimitExceededException) Code() string { 17545 return "TagLimitExceededException" 17546} 17547 17548// Message returns the exception's message. 17549func (s *TagLimitExceededException) Message() string { 17550 if s.Message_ != nil { 17551 return *s.Message_ 17552 } 17553 return "" 17554} 17555 17556// OrigErr always returns nil, satisfies awserr.Error interface. 17557func (s *TagLimitExceededException) OrigErr() error { 17558 return nil 17559} 17560 17561func (s *TagLimitExceededException) Error() string { 17562 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 17563} 17564 17565// Status code returns the HTTP status code for the request's response error. 17566func (s *TagLimitExceededException) StatusCode() int { 17567 return s.RespMetadata.StatusCode 17568} 17569 17570// RequestID returns the service's response RequestID for request. 17571func (s *TagLimitExceededException) RequestID() string { 17572 return s.RespMetadata.RequestID 17573} 17574 17575// A tag was not specified. 17576type TagRequiredException struct { 17577 _ struct{} `type:"structure"` 17578 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 17579 17580 Message_ *string `locationName:"message" type:"string"` 17581} 17582 17583// String returns the string representation 17584func (s TagRequiredException) String() string { 17585 return awsutil.Prettify(s) 17586} 17587 17588// GoString returns the string representation 17589func (s TagRequiredException) GoString() string { 17590 return s.String() 17591} 17592 17593func newErrorTagRequiredException(v protocol.ResponseMetadata) error { 17594 return &TagRequiredException{ 17595 RespMetadata: v, 17596 } 17597} 17598 17599// Code returns the exception type name. 17600func (s *TagRequiredException) Code() string { 17601 return "TagRequiredException" 17602} 17603 17604// Message returns the exception's message. 17605func (s *TagRequiredException) Message() string { 17606 if s.Message_ != nil { 17607 return *s.Message_ 17608 } 17609 return "" 17610} 17611 17612// OrigErr always returns nil, satisfies awserr.Error interface. 17613func (s *TagRequiredException) OrigErr() error { 17614 return nil 17615} 17616 17617func (s *TagRequiredException) Error() string { 17618 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 17619} 17620 17621// Status code returns the HTTP status code for the request's response error. 17622func (s *TagRequiredException) StatusCode() int { 17623 return s.RespMetadata.StatusCode 17624} 17625 17626// RequestID returns the service's response RequestID for request. 17627func (s *TagRequiredException) RequestID() string { 17628 return s.RespMetadata.RequestID 17629} 17630 17631type TagResourceInput struct { 17632 _ struct{} `type:"structure"` 17633 17634 // The ARN of a resource, such as a CodeDeploy application or deployment group. 17635 // 17636 // ResourceArn is a required field 17637 ResourceArn *string `min:"1" type:"string" required:"true"` 17638 17639 // A list of tags that TagResource associates with a resource. The resource 17640 // is identified by the ResourceArn input parameter. 17641 // 17642 // Tags is a required field 17643 Tags []*Tag `type:"list" required:"true"` 17644} 17645 17646// String returns the string representation 17647func (s TagResourceInput) String() string { 17648 return awsutil.Prettify(s) 17649} 17650 17651// GoString returns the string representation 17652func (s TagResourceInput) GoString() string { 17653 return s.String() 17654} 17655 17656// Validate inspects the fields of the type to determine if they are valid. 17657func (s *TagResourceInput) Validate() error { 17658 invalidParams := request.ErrInvalidParams{Context: "TagResourceInput"} 17659 if s.ResourceArn == nil { 17660 invalidParams.Add(request.NewErrParamRequired("ResourceArn")) 17661 } 17662 if s.ResourceArn != nil && len(*s.ResourceArn) < 1 { 17663 invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1)) 17664 } 17665 if s.Tags == nil { 17666 invalidParams.Add(request.NewErrParamRequired("Tags")) 17667 } 17668 17669 if invalidParams.Len() > 0 { 17670 return invalidParams 17671 } 17672 return nil 17673} 17674 17675// SetResourceArn sets the ResourceArn field's value. 17676func (s *TagResourceInput) SetResourceArn(v string) *TagResourceInput { 17677 s.ResourceArn = &v 17678 return s 17679} 17680 17681// SetTags sets the Tags field's value. 17682func (s *TagResourceInput) SetTags(v []*Tag) *TagResourceInput { 17683 s.Tags = v 17684 return s 17685} 17686 17687type TagResourceOutput struct { 17688 _ struct{} `type:"structure"` 17689} 17690 17691// String returns the string representation 17692func (s TagResourceOutput) String() string { 17693 return awsutil.Prettify(s) 17694} 17695 17696// GoString returns the string representation 17697func (s TagResourceOutput) GoString() string { 17698 return s.String() 17699} 17700 17701// The number of tag groups included in the tag set list exceeded the maximum 17702// allowed limit of 3. 17703type TagSetListLimitExceededException struct { 17704 _ struct{} `type:"structure"` 17705 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 17706 17707 Message_ *string `locationName:"message" type:"string"` 17708} 17709 17710// String returns the string representation 17711func (s TagSetListLimitExceededException) String() string { 17712 return awsutil.Prettify(s) 17713} 17714 17715// GoString returns the string representation 17716func (s TagSetListLimitExceededException) GoString() string { 17717 return s.String() 17718} 17719 17720func newErrorTagSetListLimitExceededException(v protocol.ResponseMetadata) error { 17721 return &TagSetListLimitExceededException{ 17722 RespMetadata: v, 17723 } 17724} 17725 17726// Code returns the exception type name. 17727func (s *TagSetListLimitExceededException) Code() string { 17728 return "TagSetListLimitExceededException" 17729} 17730 17731// Message returns the exception's message. 17732func (s *TagSetListLimitExceededException) Message() string { 17733 if s.Message_ != nil { 17734 return *s.Message_ 17735 } 17736 return "" 17737} 17738 17739// OrigErr always returns nil, satisfies awserr.Error interface. 17740func (s *TagSetListLimitExceededException) OrigErr() error { 17741 return nil 17742} 17743 17744func (s *TagSetListLimitExceededException) Error() string { 17745 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 17746} 17747 17748// Status code returns the HTTP status code for the request's response error. 17749func (s *TagSetListLimitExceededException) StatusCode() int { 17750 return s.RespMetadata.StatusCode 17751} 17752 17753// RequestID returns the service's response RequestID for request. 17754func (s *TagSetListLimitExceededException) RequestID() string { 17755 return s.RespMetadata.RequestID 17756} 17757 17758// Information about a target group in Elastic Load Balancing to use in a deployment. 17759// Instances are registered as targets in a target group, and traffic is routed 17760// to the target group. 17761type TargetGroupInfo struct { 17762 _ struct{} `type:"structure"` 17763 17764 // For blue/green deployments, the name of the target group that instances in 17765 // the original environment are deregistered from, and instances in the replacement 17766 // environment are registered with. For in-place deployments, the name of the 17767 // target group that instances are deregistered from, so they are not serving 17768 // traffic during a deployment, and then re-registered with after the deployment 17769 // is complete. 17770 Name *string `locationName:"name" type:"string"` 17771} 17772 17773// String returns the string representation 17774func (s TargetGroupInfo) String() string { 17775 return awsutil.Prettify(s) 17776} 17777 17778// GoString returns the string representation 17779func (s TargetGroupInfo) GoString() string { 17780 return s.String() 17781} 17782 17783// SetName sets the Name field's value. 17784func (s *TargetGroupInfo) SetName(v string) *TargetGroupInfo { 17785 s.Name = &v 17786 return s 17787} 17788 17789// Information about two target groups and how traffic is routed during an Amazon 17790// ECS deployment. An optional test traffic route can be specified. 17791type TargetGroupPairInfo struct { 17792 _ struct{} `type:"structure"` 17793 17794 // The path used by a load balancer to route production traffic when an Amazon 17795 // ECS deployment is complete. 17796 ProdTrafficRoute *TrafficRoute `locationName:"prodTrafficRoute" type:"structure"` 17797 17798 // One pair of target groups. One is associated with the original task set. 17799 // The second is associated with the task set that serves traffic after the 17800 // deployment is complete. 17801 TargetGroups []*TargetGroupInfo `locationName:"targetGroups" type:"list"` 17802 17803 // An optional path used by a load balancer to route test traffic after an Amazon 17804 // ECS deployment. Validation can occur while test traffic is served during 17805 // a deployment. 17806 TestTrafficRoute *TrafficRoute `locationName:"testTrafficRoute" type:"structure"` 17807} 17808 17809// String returns the string representation 17810func (s TargetGroupPairInfo) String() string { 17811 return awsutil.Prettify(s) 17812} 17813 17814// GoString returns the string representation 17815func (s TargetGroupPairInfo) GoString() string { 17816 return s.String() 17817} 17818 17819// SetProdTrafficRoute sets the ProdTrafficRoute field's value. 17820func (s *TargetGroupPairInfo) SetProdTrafficRoute(v *TrafficRoute) *TargetGroupPairInfo { 17821 s.ProdTrafficRoute = v 17822 return s 17823} 17824 17825// SetTargetGroups sets the TargetGroups field's value. 17826func (s *TargetGroupPairInfo) SetTargetGroups(v []*TargetGroupInfo) *TargetGroupPairInfo { 17827 s.TargetGroups = v 17828 return s 17829} 17830 17831// SetTestTrafficRoute sets the TestTrafficRoute field's value. 17832func (s *TargetGroupPairInfo) SetTestTrafficRoute(v *TrafficRoute) *TargetGroupPairInfo { 17833 s.TestTrafficRoute = v 17834 return s 17835} 17836 17837// Information about the instances to be used in the replacement environment 17838// in a blue/green deployment. 17839type TargetInstances struct { 17840 _ struct{} `type:"structure"` 17841 17842 // The names of one or more Auto Scaling groups to identify a replacement environment 17843 // for a blue/green deployment. 17844 AutoScalingGroups []*string `locationName:"autoScalingGroups" type:"list"` 17845 17846 // Information about the groups of EC2 instance tags that an instance must be 17847 // identified by in order for it to be included in the replacement environment 17848 // for a blue/green deployment. Cannot be used in the same call as tagFilters. 17849 Ec2TagSet *EC2TagSet `locationName:"ec2TagSet" type:"structure"` 17850 17851 // The tag filter key, type, and value used to identify Amazon EC2 instances 17852 // in a replacement environment for a blue/green deployment. Cannot be used 17853 // in the same call as ec2TagSet. 17854 TagFilters []*EC2TagFilter `locationName:"tagFilters" type:"list"` 17855} 17856 17857// String returns the string representation 17858func (s TargetInstances) String() string { 17859 return awsutil.Prettify(s) 17860} 17861 17862// GoString returns the string representation 17863func (s TargetInstances) GoString() string { 17864 return s.String() 17865} 17866 17867// SetAutoScalingGroups sets the AutoScalingGroups field's value. 17868func (s *TargetInstances) SetAutoScalingGroups(v []*string) *TargetInstances { 17869 s.AutoScalingGroups = v 17870 return s 17871} 17872 17873// SetEc2TagSet sets the Ec2TagSet field's value. 17874func (s *TargetInstances) SetEc2TagSet(v *EC2TagSet) *TargetInstances { 17875 s.Ec2TagSet = v 17876 return s 17877} 17878 17879// SetTagFilters sets the TagFilters field's value. 17880func (s *TargetInstances) SetTagFilters(v []*EC2TagFilter) *TargetInstances { 17881 s.TagFilters = v 17882 return s 17883} 17884 17885// An API function was called too frequently. 17886type ThrottlingException struct { 17887 _ struct{} `type:"structure"` 17888 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 17889 17890 Message_ *string `locationName:"message" type:"string"` 17891} 17892 17893// String returns the string representation 17894func (s ThrottlingException) String() string { 17895 return awsutil.Prettify(s) 17896} 17897 17898// GoString returns the string representation 17899func (s ThrottlingException) GoString() string { 17900 return s.String() 17901} 17902 17903func newErrorThrottlingException(v protocol.ResponseMetadata) error { 17904 return &ThrottlingException{ 17905 RespMetadata: v, 17906 } 17907} 17908 17909// Code returns the exception type name. 17910func (s *ThrottlingException) Code() string { 17911 return "ThrottlingException" 17912} 17913 17914// Message returns the exception's message. 17915func (s *ThrottlingException) Message() string { 17916 if s.Message_ != nil { 17917 return *s.Message_ 17918 } 17919 return "" 17920} 17921 17922// OrigErr always returns nil, satisfies awserr.Error interface. 17923func (s *ThrottlingException) OrigErr() error { 17924 return nil 17925} 17926 17927func (s *ThrottlingException) Error() string { 17928 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 17929} 17930 17931// Status code returns the HTTP status code for the request's response error. 17932func (s *ThrottlingException) StatusCode() int { 17933 return s.RespMetadata.StatusCode 17934} 17935 17936// RequestID returns the service's response RequestID for request. 17937func (s *ThrottlingException) RequestID() string { 17938 return s.RespMetadata.RequestID 17939} 17940 17941// A configuration that shifts traffic from one version of a Lambda function 17942// or ECS task set to another in two increments. The original and target Lambda 17943// function versions or ECS task sets are specified in the deployment's AppSpec 17944// file. 17945type TimeBasedCanary struct { 17946 _ struct{} `type:"structure"` 17947 17948 // The number of minutes between the first and second traffic shifts of a TimeBasedCanary 17949 // deployment. 17950 CanaryInterval *int64 `locationName:"canaryInterval" type:"integer"` 17951 17952 // The percentage of traffic to shift in the first increment of a TimeBasedCanary 17953 // deployment. 17954 CanaryPercentage *int64 `locationName:"canaryPercentage" type:"integer"` 17955} 17956 17957// String returns the string representation 17958func (s TimeBasedCanary) String() string { 17959 return awsutil.Prettify(s) 17960} 17961 17962// GoString returns the string representation 17963func (s TimeBasedCanary) GoString() string { 17964 return s.String() 17965} 17966 17967// SetCanaryInterval sets the CanaryInterval field's value. 17968func (s *TimeBasedCanary) SetCanaryInterval(v int64) *TimeBasedCanary { 17969 s.CanaryInterval = &v 17970 return s 17971} 17972 17973// SetCanaryPercentage sets the CanaryPercentage field's value. 17974func (s *TimeBasedCanary) SetCanaryPercentage(v int64) *TimeBasedCanary { 17975 s.CanaryPercentage = &v 17976 return s 17977} 17978 17979// A configuration that shifts traffic from one version of a Lambda function 17980// or ECS task set to another in equal increments, with an equal number of minutes 17981// between each increment. The original and target Lambda function versions 17982// or ECS task sets are specified in the deployment's AppSpec file. 17983type TimeBasedLinear struct { 17984 _ struct{} `type:"structure"` 17985 17986 // The number of minutes between each incremental traffic shift of a TimeBasedLinear 17987 // deployment. 17988 LinearInterval *int64 `locationName:"linearInterval" type:"integer"` 17989 17990 // The percentage of traffic that is shifted at the start of each increment 17991 // of a TimeBasedLinear deployment. 17992 LinearPercentage *int64 `locationName:"linearPercentage" type:"integer"` 17993} 17994 17995// String returns the string representation 17996func (s TimeBasedLinear) String() string { 17997 return awsutil.Prettify(s) 17998} 17999 18000// GoString returns the string representation 18001func (s TimeBasedLinear) GoString() string { 18002 return s.String() 18003} 18004 18005// SetLinearInterval sets the LinearInterval field's value. 18006func (s *TimeBasedLinear) SetLinearInterval(v int64) *TimeBasedLinear { 18007 s.LinearInterval = &v 18008 return s 18009} 18010 18011// SetLinearPercentage sets the LinearPercentage field's value. 18012func (s *TimeBasedLinear) SetLinearPercentage(v int64) *TimeBasedLinear { 18013 s.LinearPercentage = &v 18014 return s 18015} 18016 18017// Information about a time range. 18018type TimeRange struct { 18019 _ struct{} `type:"structure"` 18020 18021 // The end time of the time range. 18022 // 18023 // Specify null to leave the end time open-ended. 18024 End *time.Time `locationName:"end" type:"timestamp"` 18025 18026 // The start time of the time range. 18027 // 18028 // Specify null to leave the start time open-ended. 18029 Start *time.Time `locationName:"start" type:"timestamp"` 18030} 18031 18032// String returns the string representation 18033func (s TimeRange) String() string { 18034 return awsutil.Prettify(s) 18035} 18036 18037// GoString returns the string representation 18038func (s TimeRange) GoString() string { 18039 return s.String() 18040} 18041 18042// SetEnd sets the End field's value. 18043func (s *TimeRange) SetEnd(v time.Time) *TimeRange { 18044 s.End = &v 18045 return s 18046} 18047 18048// SetStart sets the Start field's value. 18049func (s *TimeRange) SetStart(v time.Time) *TimeRange { 18050 s.Start = &v 18051 return s 18052} 18053 18054// Information about a listener. The listener contains the path used to route 18055// traffic that is received from the load balancer to a target group. 18056type TrafficRoute struct { 18057 _ struct{} `type:"structure"` 18058 18059 // The Amazon Resource Name (ARN) of one listener. The listener identifies the 18060 // route between a target group and a load balancer. This is an array of strings 18061 // with a maximum size of one. 18062 ListenerArns []*string `locationName:"listenerArns" type:"list"` 18063} 18064 18065// String returns the string representation 18066func (s TrafficRoute) String() string { 18067 return awsutil.Prettify(s) 18068} 18069 18070// GoString returns the string representation 18071func (s TrafficRoute) GoString() string { 18072 return s.String() 18073} 18074 18075// SetListenerArns sets the ListenerArns field's value. 18076func (s *TrafficRoute) SetListenerArns(v []*string) *TrafficRoute { 18077 s.ListenerArns = v 18078 return s 18079} 18080 18081// The configuration that specifies how traffic is shifted from one version 18082// of a Lambda function to another version during an AWS Lambda deployment, 18083// or from one Amazon ECS task set to another during an Amazon ECS deployment. 18084type TrafficRoutingConfig struct { 18085 _ struct{} `type:"structure"` 18086 18087 // A configuration that shifts traffic from one version of a Lambda function 18088 // or ECS task set to another in two increments. The original and target Lambda 18089 // function versions or ECS task sets are specified in the deployment's AppSpec 18090 // file. 18091 TimeBasedCanary *TimeBasedCanary `locationName:"timeBasedCanary" type:"structure"` 18092 18093 // A configuration that shifts traffic from one version of a Lambda function 18094 // or ECS task set to another in equal increments, with an equal number of minutes 18095 // between each increment. The original and target Lambda function versions 18096 // or ECS task sets are specified in the deployment's AppSpec file. 18097 TimeBasedLinear *TimeBasedLinear `locationName:"timeBasedLinear" type:"structure"` 18098 18099 // The type of traffic shifting (TimeBasedCanary or TimeBasedLinear) used by 18100 // a deployment configuration. 18101 Type *string `locationName:"type" type:"string" enum:"TrafficRoutingType"` 18102} 18103 18104// String returns the string representation 18105func (s TrafficRoutingConfig) String() string { 18106 return awsutil.Prettify(s) 18107} 18108 18109// GoString returns the string representation 18110func (s TrafficRoutingConfig) GoString() string { 18111 return s.String() 18112} 18113 18114// SetTimeBasedCanary sets the TimeBasedCanary field's value. 18115func (s *TrafficRoutingConfig) SetTimeBasedCanary(v *TimeBasedCanary) *TrafficRoutingConfig { 18116 s.TimeBasedCanary = v 18117 return s 18118} 18119 18120// SetTimeBasedLinear sets the TimeBasedLinear field's value. 18121func (s *TrafficRoutingConfig) SetTimeBasedLinear(v *TimeBasedLinear) *TrafficRoutingConfig { 18122 s.TimeBasedLinear = v 18123 return s 18124} 18125 18126// SetType sets the Type field's value. 18127func (s *TrafficRoutingConfig) SetType(v string) *TrafficRoutingConfig { 18128 s.Type = &v 18129 return s 18130} 18131 18132// Information about notification triggers for the deployment group. 18133type TriggerConfig struct { 18134 _ struct{} `type:"structure"` 18135 18136 // The event type or types for which notifications are triggered. 18137 TriggerEvents []*string `locationName:"triggerEvents" type:"list"` 18138 18139 // The name of the notification trigger. 18140 TriggerName *string `locationName:"triggerName" type:"string"` 18141 18142 // The Amazon Resource Name (ARN) of the Amazon Simple Notification Service 18143 // topic through which notifications about deployment or instance events are 18144 // sent. 18145 TriggerTargetArn *string `locationName:"triggerTargetArn" type:"string"` 18146} 18147 18148// String returns the string representation 18149func (s TriggerConfig) String() string { 18150 return awsutil.Prettify(s) 18151} 18152 18153// GoString returns the string representation 18154func (s TriggerConfig) GoString() string { 18155 return s.String() 18156} 18157 18158// SetTriggerEvents sets the TriggerEvents field's value. 18159func (s *TriggerConfig) SetTriggerEvents(v []*string) *TriggerConfig { 18160 s.TriggerEvents = v 18161 return s 18162} 18163 18164// SetTriggerName sets the TriggerName field's value. 18165func (s *TriggerConfig) SetTriggerName(v string) *TriggerConfig { 18166 s.TriggerName = &v 18167 return s 18168} 18169 18170// SetTriggerTargetArn sets the TriggerTargetArn field's value. 18171func (s *TriggerConfig) SetTriggerTargetArn(v string) *TriggerConfig { 18172 s.TriggerTargetArn = &v 18173 return s 18174} 18175 18176// The maximum allowed number of triggers was exceeded. 18177type TriggerTargetsLimitExceededException struct { 18178 _ struct{} `type:"structure"` 18179 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 18180 18181 Message_ *string `locationName:"message" type:"string"` 18182} 18183 18184// String returns the string representation 18185func (s TriggerTargetsLimitExceededException) String() string { 18186 return awsutil.Prettify(s) 18187} 18188 18189// GoString returns the string representation 18190func (s TriggerTargetsLimitExceededException) GoString() string { 18191 return s.String() 18192} 18193 18194func newErrorTriggerTargetsLimitExceededException(v protocol.ResponseMetadata) error { 18195 return &TriggerTargetsLimitExceededException{ 18196 RespMetadata: v, 18197 } 18198} 18199 18200// Code returns the exception type name. 18201func (s *TriggerTargetsLimitExceededException) Code() string { 18202 return "TriggerTargetsLimitExceededException" 18203} 18204 18205// Message returns the exception's message. 18206func (s *TriggerTargetsLimitExceededException) Message() string { 18207 if s.Message_ != nil { 18208 return *s.Message_ 18209 } 18210 return "" 18211} 18212 18213// OrigErr always returns nil, satisfies awserr.Error interface. 18214func (s *TriggerTargetsLimitExceededException) OrigErr() error { 18215 return nil 18216} 18217 18218func (s *TriggerTargetsLimitExceededException) Error() string { 18219 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 18220} 18221 18222// Status code returns the HTTP status code for the request's response error. 18223func (s *TriggerTargetsLimitExceededException) StatusCode() int { 18224 return s.RespMetadata.StatusCode 18225} 18226 18227// RequestID returns the service's response RequestID for request. 18228func (s *TriggerTargetsLimitExceededException) RequestID() string { 18229 return s.RespMetadata.RequestID 18230} 18231 18232// A call was submitted that is not supported for the specified deployment type. 18233type UnsupportedActionForDeploymentTypeException struct { 18234 _ struct{} `type:"structure"` 18235 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 18236 18237 Message_ *string `locationName:"message" type:"string"` 18238} 18239 18240// String returns the string representation 18241func (s UnsupportedActionForDeploymentTypeException) String() string { 18242 return awsutil.Prettify(s) 18243} 18244 18245// GoString returns the string representation 18246func (s UnsupportedActionForDeploymentTypeException) GoString() string { 18247 return s.String() 18248} 18249 18250func newErrorUnsupportedActionForDeploymentTypeException(v protocol.ResponseMetadata) error { 18251 return &UnsupportedActionForDeploymentTypeException{ 18252 RespMetadata: v, 18253 } 18254} 18255 18256// Code returns the exception type name. 18257func (s *UnsupportedActionForDeploymentTypeException) Code() string { 18258 return "UnsupportedActionForDeploymentTypeException" 18259} 18260 18261// Message returns the exception's message. 18262func (s *UnsupportedActionForDeploymentTypeException) Message() string { 18263 if s.Message_ != nil { 18264 return *s.Message_ 18265 } 18266 return "" 18267} 18268 18269// OrigErr always returns nil, satisfies awserr.Error interface. 18270func (s *UnsupportedActionForDeploymentTypeException) OrigErr() error { 18271 return nil 18272} 18273 18274func (s *UnsupportedActionForDeploymentTypeException) Error() string { 18275 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 18276} 18277 18278// Status code returns the HTTP status code for the request's response error. 18279func (s *UnsupportedActionForDeploymentTypeException) StatusCode() int { 18280 return s.RespMetadata.StatusCode 18281} 18282 18283// RequestID returns the service's response RequestID for request. 18284func (s *UnsupportedActionForDeploymentTypeException) RequestID() string { 18285 return s.RespMetadata.RequestID 18286} 18287 18288type UntagResourceInput struct { 18289 _ struct{} `type:"structure"` 18290 18291 // The Amazon Resource Name (ARN) that specifies from which resource to disassociate 18292 // the tags with the keys in the TagKeys input parameter. 18293 // 18294 // ResourceArn is a required field 18295 ResourceArn *string `min:"1" type:"string" required:"true"` 18296 18297 // A list of keys of Tag objects. The Tag objects identified by the keys are 18298 // disassociated from the resource specified by the ResourceArn input parameter. 18299 // 18300 // TagKeys is a required field 18301 TagKeys []*string `type:"list" required:"true"` 18302} 18303 18304// String returns the string representation 18305func (s UntagResourceInput) String() string { 18306 return awsutil.Prettify(s) 18307} 18308 18309// GoString returns the string representation 18310func (s UntagResourceInput) GoString() string { 18311 return s.String() 18312} 18313 18314// Validate inspects the fields of the type to determine if they are valid. 18315func (s *UntagResourceInput) Validate() error { 18316 invalidParams := request.ErrInvalidParams{Context: "UntagResourceInput"} 18317 if s.ResourceArn == nil { 18318 invalidParams.Add(request.NewErrParamRequired("ResourceArn")) 18319 } 18320 if s.ResourceArn != nil && len(*s.ResourceArn) < 1 { 18321 invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1)) 18322 } 18323 if s.TagKeys == nil { 18324 invalidParams.Add(request.NewErrParamRequired("TagKeys")) 18325 } 18326 18327 if invalidParams.Len() > 0 { 18328 return invalidParams 18329 } 18330 return nil 18331} 18332 18333// SetResourceArn sets the ResourceArn field's value. 18334func (s *UntagResourceInput) SetResourceArn(v string) *UntagResourceInput { 18335 s.ResourceArn = &v 18336 return s 18337} 18338 18339// SetTagKeys sets the TagKeys field's value. 18340func (s *UntagResourceInput) SetTagKeys(v []*string) *UntagResourceInput { 18341 s.TagKeys = v 18342 return s 18343} 18344 18345type UntagResourceOutput struct { 18346 _ struct{} `type:"structure"` 18347} 18348 18349// String returns the string representation 18350func (s UntagResourceOutput) String() string { 18351 return awsutil.Prettify(s) 18352} 18353 18354// GoString returns the string representation 18355func (s UntagResourceOutput) GoString() string { 18356 return s.String() 18357} 18358 18359// Represents the input of an UpdateApplication operation. 18360type UpdateApplicationInput struct { 18361 _ struct{} `type:"structure"` 18362 18363 // The current name of the application you want to change. 18364 ApplicationName *string `locationName:"applicationName" min:"1" type:"string"` 18365 18366 // The new name to give the application. 18367 NewApplicationName *string `locationName:"newApplicationName" min:"1" type:"string"` 18368} 18369 18370// String returns the string representation 18371func (s UpdateApplicationInput) String() string { 18372 return awsutil.Prettify(s) 18373} 18374 18375// GoString returns the string representation 18376func (s UpdateApplicationInput) GoString() string { 18377 return s.String() 18378} 18379 18380// Validate inspects the fields of the type to determine if they are valid. 18381func (s *UpdateApplicationInput) Validate() error { 18382 invalidParams := request.ErrInvalidParams{Context: "UpdateApplicationInput"} 18383 if s.ApplicationName != nil && len(*s.ApplicationName) < 1 { 18384 invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1)) 18385 } 18386 if s.NewApplicationName != nil && len(*s.NewApplicationName) < 1 { 18387 invalidParams.Add(request.NewErrParamMinLen("NewApplicationName", 1)) 18388 } 18389 18390 if invalidParams.Len() > 0 { 18391 return invalidParams 18392 } 18393 return nil 18394} 18395 18396// SetApplicationName sets the ApplicationName field's value. 18397func (s *UpdateApplicationInput) SetApplicationName(v string) *UpdateApplicationInput { 18398 s.ApplicationName = &v 18399 return s 18400} 18401 18402// SetNewApplicationName sets the NewApplicationName field's value. 18403func (s *UpdateApplicationInput) SetNewApplicationName(v string) *UpdateApplicationInput { 18404 s.NewApplicationName = &v 18405 return s 18406} 18407 18408type UpdateApplicationOutput struct { 18409 _ struct{} `type:"structure"` 18410} 18411 18412// String returns the string representation 18413func (s UpdateApplicationOutput) String() string { 18414 return awsutil.Prettify(s) 18415} 18416 18417// GoString returns the string representation 18418func (s UpdateApplicationOutput) GoString() string { 18419 return s.String() 18420} 18421 18422// Represents the input of an UpdateDeploymentGroup operation. 18423type UpdateDeploymentGroupInput struct { 18424 _ struct{} `type:"structure"` 18425 18426 // Information to add or change about Amazon CloudWatch alarms when the deployment 18427 // group is updated. 18428 AlarmConfiguration *AlarmConfiguration `locationName:"alarmConfiguration" type:"structure"` 18429 18430 // The application name that corresponds to the deployment group to update. 18431 // 18432 // ApplicationName is a required field 18433 ApplicationName *string `locationName:"applicationName" min:"1" type:"string" required:"true"` 18434 18435 // Information for an automatic rollback configuration that is added or changed 18436 // when a deployment group is updated. 18437 AutoRollbackConfiguration *AutoRollbackConfiguration `locationName:"autoRollbackConfiguration" type:"structure"` 18438 18439 // The replacement list of Auto Scaling groups to be included in the deployment 18440 // group, if you want to change them. To keep the Auto Scaling groups, enter 18441 // their names. To remove Auto Scaling groups, do not enter any Auto Scaling 18442 // group names. 18443 AutoScalingGroups []*string `locationName:"autoScalingGroups" type:"list"` 18444 18445 // Information about blue/green deployment options for a deployment group. 18446 BlueGreenDeploymentConfiguration *BlueGreenDeploymentConfiguration `locationName:"blueGreenDeploymentConfiguration" type:"structure"` 18447 18448 // The current name of the deployment group. 18449 // 18450 // CurrentDeploymentGroupName is a required field 18451 CurrentDeploymentGroupName *string `locationName:"currentDeploymentGroupName" min:"1" type:"string" required:"true"` 18452 18453 // The replacement deployment configuration name to use, if you want to change 18454 // it. 18455 DeploymentConfigName *string `locationName:"deploymentConfigName" min:"1" type:"string"` 18456 18457 // Information about the type of deployment, either in-place or blue/green, 18458 // you want to run and whether to route deployment traffic behind a load balancer. 18459 DeploymentStyle *DeploymentStyle `locationName:"deploymentStyle" type:"structure"` 18460 18461 // The replacement set of Amazon EC2 tags on which to filter, if you want to 18462 // change them. To keep the existing tags, enter their names. To remove tags, 18463 // do not enter any tag names. 18464 Ec2TagFilters []*EC2TagFilter `locationName:"ec2TagFilters" type:"list"` 18465 18466 // Information about groups of tags applied to on-premises instances. The deployment 18467 // group includes only EC2 instances identified by all the tag groups. 18468 Ec2TagSet *EC2TagSet `locationName:"ec2TagSet" type:"structure"` 18469 18470 // The target Amazon ECS services in the deployment group. This applies only 18471 // to deployment groups that use the Amazon ECS compute platform. A target Amazon 18472 // ECS service is specified as an Amazon ECS cluster and service name pair using 18473 // the format <clustername>:<servicename>. 18474 EcsServices []*ECSService `locationName:"ecsServices" type:"list"` 18475 18476 // Information about the load balancer used in a deployment. 18477 LoadBalancerInfo *LoadBalancerInfo `locationName:"loadBalancerInfo" type:"structure"` 18478 18479 // The new name of the deployment group, if you want to change it. 18480 NewDeploymentGroupName *string `locationName:"newDeploymentGroupName" min:"1" type:"string"` 18481 18482 // The replacement set of on-premises instance tags on which to filter, if you 18483 // want to change them. To keep the existing tags, enter their names. To remove 18484 // tags, do not enter any tag names. 18485 OnPremisesInstanceTagFilters []*TagFilter `locationName:"onPremisesInstanceTagFilters" type:"list"` 18486 18487 // Information about an on-premises instance tag set. The deployment group includes 18488 // only on-premises instances identified by all the tag groups. 18489 OnPremisesTagSet *OnPremisesTagSet `locationName:"onPremisesTagSet" type:"structure"` 18490 18491 // Indicates what happens when new EC2 instances are launched mid-deployment 18492 // and do not receive the deployed application revision. 18493 // 18494 // If this option is set to UPDATE or is unspecified, CodeDeploy initiates one 18495 // or more 'auto-update outdated instances' deployments to apply the deployed 18496 // application revision to the new EC2 instances. 18497 // 18498 // If this option is set to IGNORE, CodeDeploy does not initiate a deployment 18499 // to update the new EC2 instances. This may result in instances having different 18500 // revisions. 18501 OutdatedInstancesStrategy *string `locationName:"outdatedInstancesStrategy" type:"string" enum:"OutdatedInstancesStrategy"` 18502 18503 // A replacement ARN for the service role, if you want to change it. 18504 ServiceRoleArn *string `locationName:"serviceRoleArn" type:"string"` 18505 18506 // Information about triggers to change when the deployment group is updated. 18507 // For examples, see Edit a Trigger in a CodeDeploy Deployment Group (https://docs.aws.amazon.com/codedeploy/latest/userguide/how-to-notify-edit.html) 18508 // in the AWS CodeDeploy User Guide. 18509 TriggerConfigurations []*TriggerConfig `locationName:"triggerConfigurations" type:"list"` 18510} 18511 18512// String returns the string representation 18513func (s UpdateDeploymentGroupInput) String() string { 18514 return awsutil.Prettify(s) 18515} 18516 18517// GoString returns the string representation 18518func (s UpdateDeploymentGroupInput) GoString() string { 18519 return s.String() 18520} 18521 18522// Validate inspects the fields of the type to determine if they are valid. 18523func (s *UpdateDeploymentGroupInput) Validate() error { 18524 invalidParams := request.ErrInvalidParams{Context: "UpdateDeploymentGroupInput"} 18525 if s.ApplicationName == nil { 18526 invalidParams.Add(request.NewErrParamRequired("ApplicationName")) 18527 } 18528 if s.ApplicationName != nil && len(*s.ApplicationName) < 1 { 18529 invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1)) 18530 } 18531 if s.CurrentDeploymentGroupName == nil { 18532 invalidParams.Add(request.NewErrParamRequired("CurrentDeploymentGroupName")) 18533 } 18534 if s.CurrentDeploymentGroupName != nil && len(*s.CurrentDeploymentGroupName) < 1 { 18535 invalidParams.Add(request.NewErrParamMinLen("CurrentDeploymentGroupName", 1)) 18536 } 18537 if s.DeploymentConfigName != nil && len(*s.DeploymentConfigName) < 1 { 18538 invalidParams.Add(request.NewErrParamMinLen("DeploymentConfigName", 1)) 18539 } 18540 if s.NewDeploymentGroupName != nil && len(*s.NewDeploymentGroupName) < 1 { 18541 invalidParams.Add(request.NewErrParamMinLen("NewDeploymentGroupName", 1)) 18542 } 18543 18544 if invalidParams.Len() > 0 { 18545 return invalidParams 18546 } 18547 return nil 18548} 18549 18550// SetAlarmConfiguration sets the AlarmConfiguration field's value. 18551func (s *UpdateDeploymentGroupInput) SetAlarmConfiguration(v *AlarmConfiguration) *UpdateDeploymentGroupInput { 18552 s.AlarmConfiguration = v 18553 return s 18554} 18555 18556// SetApplicationName sets the ApplicationName field's value. 18557func (s *UpdateDeploymentGroupInput) SetApplicationName(v string) *UpdateDeploymentGroupInput { 18558 s.ApplicationName = &v 18559 return s 18560} 18561 18562// SetAutoRollbackConfiguration sets the AutoRollbackConfiguration field's value. 18563func (s *UpdateDeploymentGroupInput) SetAutoRollbackConfiguration(v *AutoRollbackConfiguration) *UpdateDeploymentGroupInput { 18564 s.AutoRollbackConfiguration = v 18565 return s 18566} 18567 18568// SetAutoScalingGroups sets the AutoScalingGroups field's value. 18569func (s *UpdateDeploymentGroupInput) SetAutoScalingGroups(v []*string) *UpdateDeploymentGroupInput { 18570 s.AutoScalingGroups = v 18571 return s 18572} 18573 18574// SetBlueGreenDeploymentConfiguration sets the BlueGreenDeploymentConfiguration field's value. 18575func (s *UpdateDeploymentGroupInput) SetBlueGreenDeploymentConfiguration(v *BlueGreenDeploymentConfiguration) *UpdateDeploymentGroupInput { 18576 s.BlueGreenDeploymentConfiguration = v 18577 return s 18578} 18579 18580// SetCurrentDeploymentGroupName sets the CurrentDeploymentGroupName field's value. 18581func (s *UpdateDeploymentGroupInput) SetCurrentDeploymentGroupName(v string) *UpdateDeploymentGroupInput { 18582 s.CurrentDeploymentGroupName = &v 18583 return s 18584} 18585 18586// SetDeploymentConfigName sets the DeploymentConfigName field's value. 18587func (s *UpdateDeploymentGroupInput) SetDeploymentConfigName(v string) *UpdateDeploymentGroupInput { 18588 s.DeploymentConfigName = &v 18589 return s 18590} 18591 18592// SetDeploymentStyle sets the DeploymentStyle field's value. 18593func (s *UpdateDeploymentGroupInput) SetDeploymentStyle(v *DeploymentStyle) *UpdateDeploymentGroupInput { 18594 s.DeploymentStyle = v 18595 return s 18596} 18597 18598// SetEc2TagFilters sets the Ec2TagFilters field's value. 18599func (s *UpdateDeploymentGroupInput) SetEc2TagFilters(v []*EC2TagFilter) *UpdateDeploymentGroupInput { 18600 s.Ec2TagFilters = v 18601 return s 18602} 18603 18604// SetEc2TagSet sets the Ec2TagSet field's value. 18605func (s *UpdateDeploymentGroupInput) SetEc2TagSet(v *EC2TagSet) *UpdateDeploymentGroupInput { 18606 s.Ec2TagSet = v 18607 return s 18608} 18609 18610// SetEcsServices sets the EcsServices field's value. 18611func (s *UpdateDeploymentGroupInput) SetEcsServices(v []*ECSService) *UpdateDeploymentGroupInput { 18612 s.EcsServices = v 18613 return s 18614} 18615 18616// SetLoadBalancerInfo sets the LoadBalancerInfo field's value. 18617func (s *UpdateDeploymentGroupInput) SetLoadBalancerInfo(v *LoadBalancerInfo) *UpdateDeploymentGroupInput { 18618 s.LoadBalancerInfo = v 18619 return s 18620} 18621 18622// SetNewDeploymentGroupName sets the NewDeploymentGroupName field's value. 18623func (s *UpdateDeploymentGroupInput) SetNewDeploymentGroupName(v string) *UpdateDeploymentGroupInput { 18624 s.NewDeploymentGroupName = &v 18625 return s 18626} 18627 18628// SetOnPremisesInstanceTagFilters sets the OnPremisesInstanceTagFilters field's value. 18629func (s *UpdateDeploymentGroupInput) SetOnPremisesInstanceTagFilters(v []*TagFilter) *UpdateDeploymentGroupInput { 18630 s.OnPremisesInstanceTagFilters = v 18631 return s 18632} 18633 18634// SetOnPremisesTagSet sets the OnPremisesTagSet field's value. 18635func (s *UpdateDeploymentGroupInput) SetOnPremisesTagSet(v *OnPremisesTagSet) *UpdateDeploymentGroupInput { 18636 s.OnPremisesTagSet = v 18637 return s 18638} 18639 18640// SetOutdatedInstancesStrategy sets the OutdatedInstancesStrategy field's value. 18641func (s *UpdateDeploymentGroupInput) SetOutdatedInstancesStrategy(v string) *UpdateDeploymentGroupInput { 18642 s.OutdatedInstancesStrategy = &v 18643 return s 18644} 18645 18646// SetServiceRoleArn sets the ServiceRoleArn field's value. 18647func (s *UpdateDeploymentGroupInput) SetServiceRoleArn(v string) *UpdateDeploymentGroupInput { 18648 s.ServiceRoleArn = &v 18649 return s 18650} 18651 18652// SetTriggerConfigurations sets the TriggerConfigurations field's value. 18653func (s *UpdateDeploymentGroupInput) SetTriggerConfigurations(v []*TriggerConfig) *UpdateDeploymentGroupInput { 18654 s.TriggerConfigurations = v 18655 return s 18656} 18657 18658// Represents the output of an UpdateDeploymentGroup operation. 18659type UpdateDeploymentGroupOutput struct { 18660 _ struct{} `type:"structure"` 18661 18662 // If the output contains no data, and the corresponding deployment group contained 18663 // at least one Auto Scaling group, AWS CodeDeploy successfully removed all 18664 // corresponding Auto Scaling lifecycle event hooks from the AWS account. If 18665 // the output contains data, AWS CodeDeploy could not remove some Auto Scaling 18666 // lifecycle event hooks from the AWS account. 18667 HooksNotCleanedUp []*AutoScalingGroup `locationName:"hooksNotCleanedUp" type:"list"` 18668} 18669 18670// String returns the string representation 18671func (s UpdateDeploymentGroupOutput) String() string { 18672 return awsutil.Prettify(s) 18673} 18674 18675// GoString returns the string representation 18676func (s UpdateDeploymentGroupOutput) GoString() string { 18677 return s.String() 18678} 18679 18680// SetHooksNotCleanedUp sets the HooksNotCleanedUp field's value. 18681func (s *UpdateDeploymentGroupOutput) SetHooksNotCleanedUp(v []*AutoScalingGroup) *UpdateDeploymentGroupOutput { 18682 s.HooksNotCleanedUp = v 18683 return s 18684} 18685 18686const ( 18687 // ApplicationRevisionSortByRegisterTime is a ApplicationRevisionSortBy enum value 18688 ApplicationRevisionSortByRegisterTime = "registerTime" 18689 18690 // ApplicationRevisionSortByFirstUsedTime is a ApplicationRevisionSortBy enum value 18691 ApplicationRevisionSortByFirstUsedTime = "firstUsedTime" 18692 18693 // ApplicationRevisionSortByLastUsedTime is a ApplicationRevisionSortBy enum value 18694 ApplicationRevisionSortByLastUsedTime = "lastUsedTime" 18695) 18696 18697// ApplicationRevisionSortBy_Values returns all elements of the ApplicationRevisionSortBy enum 18698func ApplicationRevisionSortBy_Values() []string { 18699 return []string{ 18700 ApplicationRevisionSortByRegisterTime, 18701 ApplicationRevisionSortByFirstUsedTime, 18702 ApplicationRevisionSortByLastUsedTime, 18703 } 18704} 18705 18706const ( 18707 // AutoRollbackEventDeploymentFailure is a AutoRollbackEvent enum value 18708 AutoRollbackEventDeploymentFailure = "DEPLOYMENT_FAILURE" 18709 18710 // AutoRollbackEventDeploymentStopOnAlarm is a AutoRollbackEvent enum value 18711 AutoRollbackEventDeploymentStopOnAlarm = "DEPLOYMENT_STOP_ON_ALARM" 18712 18713 // AutoRollbackEventDeploymentStopOnRequest is a AutoRollbackEvent enum value 18714 AutoRollbackEventDeploymentStopOnRequest = "DEPLOYMENT_STOP_ON_REQUEST" 18715) 18716 18717// AutoRollbackEvent_Values returns all elements of the AutoRollbackEvent enum 18718func AutoRollbackEvent_Values() []string { 18719 return []string{ 18720 AutoRollbackEventDeploymentFailure, 18721 AutoRollbackEventDeploymentStopOnAlarm, 18722 AutoRollbackEventDeploymentStopOnRequest, 18723 } 18724} 18725 18726const ( 18727 // BundleTypeTar is a BundleType enum value 18728 BundleTypeTar = "tar" 18729 18730 // BundleTypeTgz is a BundleType enum value 18731 BundleTypeTgz = "tgz" 18732 18733 // BundleTypeZip is a BundleType enum value 18734 BundleTypeZip = "zip" 18735 18736 // BundleTypeYaml is a BundleType enum value 18737 BundleTypeYaml = "YAML" 18738 18739 // BundleTypeJson is a BundleType enum value 18740 BundleTypeJson = "JSON" 18741) 18742 18743// BundleType_Values returns all elements of the BundleType enum 18744func BundleType_Values() []string { 18745 return []string{ 18746 BundleTypeTar, 18747 BundleTypeTgz, 18748 BundleTypeZip, 18749 BundleTypeYaml, 18750 BundleTypeJson, 18751 } 18752} 18753 18754const ( 18755 // ComputePlatformServer is a ComputePlatform enum value 18756 ComputePlatformServer = "Server" 18757 18758 // ComputePlatformLambda is a ComputePlatform enum value 18759 ComputePlatformLambda = "Lambda" 18760 18761 // ComputePlatformEcs is a ComputePlatform enum value 18762 ComputePlatformEcs = "ECS" 18763) 18764 18765// ComputePlatform_Values returns all elements of the ComputePlatform enum 18766func ComputePlatform_Values() []string { 18767 return []string{ 18768 ComputePlatformServer, 18769 ComputePlatformLambda, 18770 ComputePlatformEcs, 18771 } 18772} 18773 18774const ( 18775 // DeploymentCreatorUser is a DeploymentCreator enum value 18776 DeploymentCreatorUser = "user" 18777 18778 // DeploymentCreatorAutoscaling is a DeploymentCreator enum value 18779 DeploymentCreatorAutoscaling = "autoscaling" 18780 18781 // DeploymentCreatorCodeDeployRollback is a DeploymentCreator enum value 18782 DeploymentCreatorCodeDeployRollback = "codeDeployRollback" 18783 18784 // DeploymentCreatorCodeDeploy is a DeploymentCreator enum value 18785 DeploymentCreatorCodeDeploy = "CodeDeploy" 18786 18787 // DeploymentCreatorCodeDeployAutoUpdate is a DeploymentCreator enum value 18788 DeploymentCreatorCodeDeployAutoUpdate = "CodeDeployAutoUpdate" 18789 18790 // DeploymentCreatorCloudFormation is a DeploymentCreator enum value 18791 DeploymentCreatorCloudFormation = "CloudFormation" 18792 18793 // DeploymentCreatorCloudFormationRollback is a DeploymentCreator enum value 18794 DeploymentCreatorCloudFormationRollback = "CloudFormationRollback" 18795) 18796 18797// DeploymentCreator_Values returns all elements of the DeploymentCreator enum 18798func DeploymentCreator_Values() []string { 18799 return []string{ 18800 DeploymentCreatorUser, 18801 DeploymentCreatorAutoscaling, 18802 DeploymentCreatorCodeDeployRollback, 18803 DeploymentCreatorCodeDeploy, 18804 DeploymentCreatorCodeDeployAutoUpdate, 18805 DeploymentCreatorCloudFormation, 18806 DeploymentCreatorCloudFormationRollback, 18807 } 18808} 18809 18810const ( 18811 // DeploymentOptionWithTrafficControl is a DeploymentOption enum value 18812 DeploymentOptionWithTrafficControl = "WITH_TRAFFIC_CONTROL" 18813 18814 // DeploymentOptionWithoutTrafficControl is a DeploymentOption enum value 18815 DeploymentOptionWithoutTrafficControl = "WITHOUT_TRAFFIC_CONTROL" 18816) 18817 18818// DeploymentOption_Values returns all elements of the DeploymentOption enum 18819func DeploymentOption_Values() []string { 18820 return []string{ 18821 DeploymentOptionWithTrafficControl, 18822 DeploymentOptionWithoutTrafficControl, 18823 } 18824} 18825 18826const ( 18827 // DeploymentReadyActionContinueDeployment is a DeploymentReadyAction enum value 18828 DeploymentReadyActionContinueDeployment = "CONTINUE_DEPLOYMENT" 18829 18830 // DeploymentReadyActionStopDeployment is a DeploymentReadyAction enum value 18831 DeploymentReadyActionStopDeployment = "STOP_DEPLOYMENT" 18832) 18833 18834// DeploymentReadyAction_Values returns all elements of the DeploymentReadyAction enum 18835func DeploymentReadyAction_Values() []string { 18836 return []string{ 18837 DeploymentReadyActionContinueDeployment, 18838 DeploymentReadyActionStopDeployment, 18839 } 18840} 18841 18842const ( 18843 // DeploymentStatusCreated is a DeploymentStatus enum value 18844 DeploymentStatusCreated = "Created" 18845 18846 // DeploymentStatusQueued is a DeploymentStatus enum value 18847 DeploymentStatusQueued = "Queued" 18848 18849 // DeploymentStatusInProgress is a DeploymentStatus enum value 18850 DeploymentStatusInProgress = "InProgress" 18851 18852 // DeploymentStatusBaking is a DeploymentStatus enum value 18853 DeploymentStatusBaking = "Baking" 18854 18855 // DeploymentStatusSucceeded is a DeploymentStatus enum value 18856 DeploymentStatusSucceeded = "Succeeded" 18857 18858 // DeploymentStatusFailed is a DeploymentStatus enum value 18859 DeploymentStatusFailed = "Failed" 18860 18861 // DeploymentStatusStopped is a DeploymentStatus enum value 18862 DeploymentStatusStopped = "Stopped" 18863 18864 // DeploymentStatusReady is a DeploymentStatus enum value 18865 DeploymentStatusReady = "Ready" 18866) 18867 18868// DeploymentStatus_Values returns all elements of the DeploymentStatus enum 18869func DeploymentStatus_Values() []string { 18870 return []string{ 18871 DeploymentStatusCreated, 18872 DeploymentStatusQueued, 18873 DeploymentStatusInProgress, 18874 DeploymentStatusBaking, 18875 DeploymentStatusSucceeded, 18876 DeploymentStatusFailed, 18877 DeploymentStatusStopped, 18878 DeploymentStatusReady, 18879 } 18880} 18881 18882const ( 18883 // DeploymentTargetTypeInstanceTarget is a DeploymentTargetType enum value 18884 DeploymentTargetTypeInstanceTarget = "InstanceTarget" 18885 18886 // DeploymentTargetTypeLambdaTarget is a DeploymentTargetType enum value 18887 DeploymentTargetTypeLambdaTarget = "LambdaTarget" 18888 18889 // DeploymentTargetTypeEcstarget is a DeploymentTargetType enum value 18890 DeploymentTargetTypeEcstarget = "ECSTarget" 18891 18892 // DeploymentTargetTypeCloudFormationTarget is a DeploymentTargetType enum value 18893 DeploymentTargetTypeCloudFormationTarget = "CloudFormationTarget" 18894) 18895 18896// DeploymentTargetType_Values returns all elements of the DeploymentTargetType enum 18897func DeploymentTargetType_Values() []string { 18898 return []string{ 18899 DeploymentTargetTypeInstanceTarget, 18900 DeploymentTargetTypeLambdaTarget, 18901 DeploymentTargetTypeEcstarget, 18902 DeploymentTargetTypeCloudFormationTarget, 18903 } 18904} 18905 18906const ( 18907 // DeploymentTypeInPlace is a DeploymentType enum value 18908 DeploymentTypeInPlace = "IN_PLACE" 18909 18910 // DeploymentTypeBlueGreen is a DeploymentType enum value 18911 DeploymentTypeBlueGreen = "BLUE_GREEN" 18912) 18913 18914// DeploymentType_Values returns all elements of the DeploymentType enum 18915func DeploymentType_Values() []string { 18916 return []string{ 18917 DeploymentTypeInPlace, 18918 DeploymentTypeBlueGreen, 18919 } 18920} 18921 18922const ( 18923 // DeploymentWaitTypeReadyWait is a DeploymentWaitType enum value 18924 DeploymentWaitTypeReadyWait = "READY_WAIT" 18925 18926 // DeploymentWaitTypeTerminationWait is a DeploymentWaitType enum value 18927 DeploymentWaitTypeTerminationWait = "TERMINATION_WAIT" 18928) 18929 18930// DeploymentWaitType_Values returns all elements of the DeploymentWaitType enum 18931func DeploymentWaitType_Values() []string { 18932 return []string{ 18933 DeploymentWaitTypeReadyWait, 18934 DeploymentWaitTypeTerminationWait, 18935 } 18936} 18937 18938const ( 18939 // EC2TagFilterTypeKeyOnly is a EC2TagFilterType enum value 18940 EC2TagFilterTypeKeyOnly = "KEY_ONLY" 18941 18942 // EC2TagFilterTypeValueOnly is a EC2TagFilterType enum value 18943 EC2TagFilterTypeValueOnly = "VALUE_ONLY" 18944 18945 // EC2TagFilterTypeKeyAndValue is a EC2TagFilterType enum value 18946 EC2TagFilterTypeKeyAndValue = "KEY_AND_VALUE" 18947) 18948 18949// EC2TagFilterType_Values returns all elements of the EC2TagFilterType enum 18950func EC2TagFilterType_Values() []string { 18951 return []string{ 18952 EC2TagFilterTypeKeyOnly, 18953 EC2TagFilterTypeValueOnly, 18954 EC2TagFilterTypeKeyAndValue, 18955 } 18956} 18957 18958const ( 18959 // ErrorCodeAgentIssue is a ErrorCode enum value 18960 ErrorCodeAgentIssue = "AGENT_ISSUE" 18961 18962 // ErrorCodeAlarmActive is a ErrorCode enum value 18963 ErrorCodeAlarmActive = "ALARM_ACTIVE" 18964 18965 // ErrorCodeApplicationMissing is a ErrorCode enum value 18966 ErrorCodeApplicationMissing = "APPLICATION_MISSING" 18967 18968 // ErrorCodeAutoscalingValidationError is a ErrorCode enum value 18969 ErrorCodeAutoscalingValidationError = "AUTOSCALING_VALIDATION_ERROR" 18970 18971 // ErrorCodeAutoScalingConfiguration is a ErrorCode enum value 18972 ErrorCodeAutoScalingConfiguration = "AUTO_SCALING_CONFIGURATION" 18973 18974 // ErrorCodeAutoScalingIamRolePermissions is a ErrorCode enum value 18975 ErrorCodeAutoScalingIamRolePermissions = "AUTO_SCALING_IAM_ROLE_PERMISSIONS" 18976 18977 // ErrorCodeCodedeployResourceCannotBeFound is a ErrorCode enum value 18978 ErrorCodeCodedeployResourceCannotBeFound = "CODEDEPLOY_RESOURCE_CANNOT_BE_FOUND" 18979 18980 // ErrorCodeCustomerApplicationUnhealthy is a ErrorCode enum value 18981 ErrorCodeCustomerApplicationUnhealthy = "CUSTOMER_APPLICATION_UNHEALTHY" 18982 18983 // ErrorCodeDeploymentGroupMissing is a ErrorCode enum value 18984 ErrorCodeDeploymentGroupMissing = "DEPLOYMENT_GROUP_MISSING" 18985 18986 // ErrorCodeEcsUpdateError is a ErrorCode enum value 18987 ErrorCodeEcsUpdateError = "ECS_UPDATE_ERROR" 18988 18989 // ErrorCodeElasticLoadBalancingInvalid is a ErrorCode enum value 18990 ErrorCodeElasticLoadBalancingInvalid = "ELASTIC_LOAD_BALANCING_INVALID" 18991 18992 // ErrorCodeElbInvalidInstance is a ErrorCode enum value 18993 ErrorCodeElbInvalidInstance = "ELB_INVALID_INSTANCE" 18994 18995 // ErrorCodeHealthConstraints is a ErrorCode enum value 18996 ErrorCodeHealthConstraints = "HEALTH_CONSTRAINTS" 18997 18998 // ErrorCodeHealthConstraintsInvalid is a ErrorCode enum value 18999 ErrorCodeHealthConstraintsInvalid = "HEALTH_CONSTRAINTS_INVALID" 19000 19001 // ErrorCodeHookExecutionFailure is a ErrorCode enum value 19002 ErrorCodeHookExecutionFailure = "HOOK_EXECUTION_FAILURE" 19003 19004 // ErrorCodeIamRoleMissing is a ErrorCode enum value 19005 ErrorCodeIamRoleMissing = "IAM_ROLE_MISSING" 19006 19007 // ErrorCodeIamRolePermissions is a ErrorCode enum value 19008 ErrorCodeIamRolePermissions = "IAM_ROLE_PERMISSIONS" 19009 19010 // ErrorCodeInternalError is a ErrorCode enum value 19011 ErrorCodeInternalError = "INTERNAL_ERROR" 19012 19013 // ErrorCodeInvalidEcsService is a ErrorCode enum value 19014 ErrorCodeInvalidEcsService = "INVALID_ECS_SERVICE" 19015 19016 // ErrorCodeInvalidLambdaConfiguration is a ErrorCode enum value 19017 ErrorCodeInvalidLambdaConfiguration = "INVALID_LAMBDA_CONFIGURATION" 19018 19019 // ErrorCodeInvalidLambdaFunction is a ErrorCode enum value 19020 ErrorCodeInvalidLambdaFunction = "INVALID_LAMBDA_FUNCTION" 19021 19022 // ErrorCodeInvalidRevision is a ErrorCode enum value 19023 ErrorCodeInvalidRevision = "INVALID_REVISION" 19024 19025 // ErrorCodeManualStop is a ErrorCode enum value 19026 ErrorCodeManualStop = "MANUAL_STOP" 19027 19028 // ErrorCodeMissingBlueGreenDeploymentConfiguration is a ErrorCode enum value 19029 ErrorCodeMissingBlueGreenDeploymentConfiguration = "MISSING_BLUE_GREEN_DEPLOYMENT_CONFIGURATION" 19030 19031 // ErrorCodeMissingElbInformation is a ErrorCode enum value 19032 ErrorCodeMissingElbInformation = "MISSING_ELB_INFORMATION" 19033 19034 // ErrorCodeMissingGithubToken is a ErrorCode enum value 19035 ErrorCodeMissingGithubToken = "MISSING_GITHUB_TOKEN" 19036 19037 // ErrorCodeNoEc2Subscription is a ErrorCode enum value 19038 ErrorCodeNoEc2Subscription = "NO_EC2_SUBSCRIPTION" 19039 19040 // ErrorCodeNoInstances is a ErrorCode enum value 19041 ErrorCodeNoInstances = "NO_INSTANCES" 19042 19043 // ErrorCodeOverMaxInstances is a ErrorCode enum value 19044 ErrorCodeOverMaxInstances = "OVER_MAX_INSTANCES" 19045 19046 // ErrorCodeResourceLimitExceeded is a ErrorCode enum value 19047 ErrorCodeResourceLimitExceeded = "RESOURCE_LIMIT_EXCEEDED" 19048 19049 // ErrorCodeRevisionMissing is a ErrorCode enum value 19050 ErrorCodeRevisionMissing = "REVISION_MISSING" 19051 19052 // ErrorCodeThrottled is a ErrorCode enum value 19053 ErrorCodeThrottled = "THROTTLED" 19054 19055 // ErrorCodeTimeout is a ErrorCode enum value 19056 ErrorCodeTimeout = "TIMEOUT" 19057 19058 // ErrorCodeCloudformationStackFailure is a ErrorCode enum value 19059 ErrorCodeCloudformationStackFailure = "CLOUDFORMATION_STACK_FAILURE" 19060) 19061 19062// ErrorCode_Values returns all elements of the ErrorCode enum 19063func ErrorCode_Values() []string { 19064 return []string{ 19065 ErrorCodeAgentIssue, 19066 ErrorCodeAlarmActive, 19067 ErrorCodeApplicationMissing, 19068 ErrorCodeAutoscalingValidationError, 19069 ErrorCodeAutoScalingConfiguration, 19070 ErrorCodeAutoScalingIamRolePermissions, 19071 ErrorCodeCodedeployResourceCannotBeFound, 19072 ErrorCodeCustomerApplicationUnhealthy, 19073 ErrorCodeDeploymentGroupMissing, 19074 ErrorCodeEcsUpdateError, 19075 ErrorCodeElasticLoadBalancingInvalid, 19076 ErrorCodeElbInvalidInstance, 19077 ErrorCodeHealthConstraints, 19078 ErrorCodeHealthConstraintsInvalid, 19079 ErrorCodeHookExecutionFailure, 19080 ErrorCodeIamRoleMissing, 19081 ErrorCodeIamRolePermissions, 19082 ErrorCodeInternalError, 19083 ErrorCodeInvalidEcsService, 19084 ErrorCodeInvalidLambdaConfiguration, 19085 ErrorCodeInvalidLambdaFunction, 19086 ErrorCodeInvalidRevision, 19087 ErrorCodeManualStop, 19088 ErrorCodeMissingBlueGreenDeploymentConfiguration, 19089 ErrorCodeMissingElbInformation, 19090 ErrorCodeMissingGithubToken, 19091 ErrorCodeNoEc2Subscription, 19092 ErrorCodeNoInstances, 19093 ErrorCodeOverMaxInstances, 19094 ErrorCodeResourceLimitExceeded, 19095 ErrorCodeRevisionMissing, 19096 ErrorCodeThrottled, 19097 ErrorCodeTimeout, 19098 ErrorCodeCloudformationStackFailure, 19099 } 19100} 19101 19102const ( 19103 // FileExistsBehaviorDisallow is a FileExistsBehavior enum value 19104 FileExistsBehaviorDisallow = "DISALLOW" 19105 19106 // FileExistsBehaviorOverwrite is a FileExistsBehavior enum value 19107 FileExistsBehaviorOverwrite = "OVERWRITE" 19108 19109 // FileExistsBehaviorRetain is a FileExistsBehavior enum value 19110 FileExistsBehaviorRetain = "RETAIN" 19111) 19112 19113// FileExistsBehavior_Values returns all elements of the FileExistsBehavior enum 19114func FileExistsBehavior_Values() []string { 19115 return []string{ 19116 FileExistsBehaviorDisallow, 19117 FileExistsBehaviorOverwrite, 19118 FileExistsBehaviorRetain, 19119 } 19120} 19121 19122const ( 19123 // GreenFleetProvisioningActionDiscoverExisting is a GreenFleetProvisioningAction enum value 19124 GreenFleetProvisioningActionDiscoverExisting = "DISCOVER_EXISTING" 19125 19126 // GreenFleetProvisioningActionCopyAutoScalingGroup is a GreenFleetProvisioningAction enum value 19127 GreenFleetProvisioningActionCopyAutoScalingGroup = "COPY_AUTO_SCALING_GROUP" 19128) 19129 19130// GreenFleetProvisioningAction_Values returns all elements of the GreenFleetProvisioningAction enum 19131func GreenFleetProvisioningAction_Values() []string { 19132 return []string{ 19133 GreenFleetProvisioningActionDiscoverExisting, 19134 GreenFleetProvisioningActionCopyAutoScalingGroup, 19135 } 19136} 19137 19138const ( 19139 // InstanceActionTerminate is a InstanceAction enum value 19140 InstanceActionTerminate = "TERMINATE" 19141 19142 // InstanceActionKeepAlive is a InstanceAction enum value 19143 InstanceActionKeepAlive = "KEEP_ALIVE" 19144) 19145 19146// InstanceAction_Values returns all elements of the InstanceAction enum 19147func InstanceAction_Values() []string { 19148 return []string{ 19149 InstanceActionTerminate, 19150 InstanceActionKeepAlive, 19151 } 19152} 19153 19154const ( 19155 // InstanceStatusPending is a InstanceStatus enum value 19156 InstanceStatusPending = "Pending" 19157 19158 // InstanceStatusInProgress is a InstanceStatus enum value 19159 InstanceStatusInProgress = "InProgress" 19160 19161 // InstanceStatusSucceeded is a InstanceStatus enum value 19162 InstanceStatusSucceeded = "Succeeded" 19163 19164 // InstanceStatusFailed is a InstanceStatus enum value 19165 InstanceStatusFailed = "Failed" 19166 19167 // InstanceStatusSkipped is a InstanceStatus enum value 19168 InstanceStatusSkipped = "Skipped" 19169 19170 // InstanceStatusUnknown is a InstanceStatus enum value 19171 InstanceStatusUnknown = "Unknown" 19172 19173 // InstanceStatusReady is a InstanceStatus enum value 19174 InstanceStatusReady = "Ready" 19175) 19176 19177// InstanceStatus_Values returns all elements of the InstanceStatus enum 19178func InstanceStatus_Values() []string { 19179 return []string{ 19180 InstanceStatusPending, 19181 InstanceStatusInProgress, 19182 InstanceStatusSucceeded, 19183 InstanceStatusFailed, 19184 InstanceStatusSkipped, 19185 InstanceStatusUnknown, 19186 InstanceStatusReady, 19187 } 19188} 19189 19190const ( 19191 // InstanceTypeBlue is a InstanceType enum value 19192 InstanceTypeBlue = "Blue" 19193 19194 // InstanceTypeGreen is a InstanceType enum value 19195 InstanceTypeGreen = "Green" 19196) 19197 19198// InstanceType_Values returns all elements of the InstanceType enum 19199func InstanceType_Values() []string { 19200 return []string{ 19201 InstanceTypeBlue, 19202 InstanceTypeGreen, 19203 } 19204} 19205 19206const ( 19207 // LifecycleErrorCodeSuccess is a LifecycleErrorCode enum value 19208 LifecycleErrorCodeSuccess = "Success" 19209 19210 // LifecycleErrorCodeScriptMissing is a LifecycleErrorCode enum value 19211 LifecycleErrorCodeScriptMissing = "ScriptMissing" 19212 19213 // LifecycleErrorCodeScriptNotExecutable is a LifecycleErrorCode enum value 19214 LifecycleErrorCodeScriptNotExecutable = "ScriptNotExecutable" 19215 19216 // LifecycleErrorCodeScriptTimedOut is a LifecycleErrorCode enum value 19217 LifecycleErrorCodeScriptTimedOut = "ScriptTimedOut" 19218 19219 // LifecycleErrorCodeScriptFailed is a LifecycleErrorCode enum value 19220 LifecycleErrorCodeScriptFailed = "ScriptFailed" 19221 19222 // LifecycleErrorCodeUnknownError is a LifecycleErrorCode enum value 19223 LifecycleErrorCodeUnknownError = "UnknownError" 19224) 19225 19226// LifecycleErrorCode_Values returns all elements of the LifecycleErrorCode enum 19227func LifecycleErrorCode_Values() []string { 19228 return []string{ 19229 LifecycleErrorCodeSuccess, 19230 LifecycleErrorCodeScriptMissing, 19231 LifecycleErrorCodeScriptNotExecutable, 19232 LifecycleErrorCodeScriptTimedOut, 19233 LifecycleErrorCodeScriptFailed, 19234 LifecycleErrorCodeUnknownError, 19235 } 19236} 19237 19238const ( 19239 // LifecycleEventStatusPending is a LifecycleEventStatus enum value 19240 LifecycleEventStatusPending = "Pending" 19241 19242 // LifecycleEventStatusInProgress is a LifecycleEventStatus enum value 19243 LifecycleEventStatusInProgress = "InProgress" 19244 19245 // LifecycleEventStatusSucceeded is a LifecycleEventStatus enum value 19246 LifecycleEventStatusSucceeded = "Succeeded" 19247 19248 // LifecycleEventStatusFailed is a LifecycleEventStatus enum value 19249 LifecycleEventStatusFailed = "Failed" 19250 19251 // LifecycleEventStatusSkipped is a LifecycleEventStatus enum value 19252 LifecycleEventStatusSkipped = "Skipped" 19253 19254 // LifecycleEventStatusUnknown is a LifecycleEventStatus enum value 19255 LifecycleEventStatusUnknown = "Unknown" 19256) 19257 19258// LifecycleEventStatus_Values returns all elements of the LifecycleEventStatus enum 19259func LifecycleEventStatus_Values() []string { 19260 return []string{ 19261 LifecycleEventStatusPending, 19262 LifecycleEventStatusInProgress, 19263 LifecycleEventStatusSucceeded, 19264 LifecycleEventStatusFailed, 19265 LifecycleEventStatusSkipped, 19266 LifecycleEventStatusUnknown, 19267 } 19268} 19269 19270const ( 19271 // ListStateFilterActionInclude is a ListStateFilterAction enum value 19272 ListStateFilterActionInclude = "include" 19273 19274 // ListStateFilterActionExclude is a ListStateFilterAction enum value 19275 ListStateFilterActionExclude = "exclude" 19276 19277 // ListStateFilterActionIgnore is a ListStateFilterAction enum value 19278 ListStateFilterActionIgnore = "ignore" 19279) 19280 19281// ListStateFilterAction_Values returns all elements of the ListStateFilterAction enum 19282func ListStateFilterAction_Values() []string { 19283 return []string{ 19284 ListStateFilterActionInclude, 19285 ListStateFilterActionExclude, 19286 ListStateFilterActionIgnore, 19287 } 19288} 19289 19290const ( 19291 // MinimumHealthyHostsTypeHostCount is a MinimumHealthyHostsType enum value 19292 MinimumHealthyHostsTypeHostCount = "HOST_COUNT" 19293 19294 // MinimumHealthyHostsTypeFleetPercent is a MinimumHealthyHostsType enum value 19295 MinimumHealthyHostsTypeFleetPercent = "FLEET_PERCENT" 19296) 19297 19298// MinimumHealthyHostsType_Values returns all elements of the MinimumHealthyHostsType enum 19299func MinimumHealthyHostsType_Values() []string { 19300 return []string{ 19301 MinimumHealthyHostsTypeHostCount, 19302 MinimumHealthyHostsTypeFleetPercent, 19303 } 19304} 19305 19306const ( 19307 // OutdatedInstancesStrategyUpdate is a OutdatedInstancesStrategy enum value 19308 OutdatedInstancesStrategyUpdate = "UPDATE" 19309 19310 // OutdatedInstancesStrategyIgnore is a OutdatedInstancesStrategy enum value 19311 OutdatedInstancesStrategyIgnore = "IGNORE" 19312) 19313 19314// OutdatedInstancesStrategy_Values returns all elements of the OutdatedInstancesStrategy enum 19315func OutdatedInstancesStrategy_Values() []string { 19316 return []string{ 19317 OutdatedInstancesStrategyUpdate, 19318 OutdatedInstancesStrategyIgnore, 19319 } 19320} 19321 19322const ( 19323 // RegistrationStatusRegistered is a RegistrationStatus enum value 19324 RegistrationStatusRegistered = "Registered" 19325 19326 // RegistrationStatusDeregistered is a RegistrationStatus enum value 19327 RegistrationStatusDeregistered = "Deregistered" 19328) 19329 19330// RegistrationStatus_Values returns all elements of the RegistrationStatus enum 19331func RegistrationStatus_Values() []string { 19332 return []string{ 19333 RegistrationStatusRegistered, 19334 RegistrationStatusDeregistered, 19335 } 19336} 19337 19338const ( 19339 // RevisionLocationTypeS3 is a RevisionLocationType enum value 19340 RevisionLocationTypeS3 = "S3" 19341 19342 // RevisionLocationTypeGitHub is a RevisionLocationType enum value 19343 RevisionLocationTypeGitHub = "GitHub" 19344 19345 // RevisionLocationTypeString is a RevisionLocationType enum value 19346 RevisionLocationTypeString = "String" 19347 19348 // RevisionLocationTypeAppSpecContent is a RevisionLocationType enum value 19349 RevisionLocationTypeAppSpecContent = "AppSpecContent" 19350) 19351 19352// RevisionLocationType_Values returns all elements of the RevisionLocationType enum 19353func RevisionLocationType_Values() []string { 19354 return []string{ 19355 RevisionLocationTypeS3, 19356 RevisionLocationTypeGitHub, 19357 RevisionLocationTypeString, 19358 RevisionLocationTypeAppSpecContent, 19359 } 19360} 19361 19362const ( 19363 // SortOrderAscending is a SortOrder enum value 19364 SortOrderAscending = "ascending" 19365 19366 // SortOrderDescending is a SortOrder enum value 19367 SortOrderDescending = "descending" 19368) 19369 19370// SortOrder_Values returns all elements of the SortOrder enum 19371func SortOrder_Values() []string { 19372 return []string{ 19373 SortOrderAscending, 19374 SortOrderDescending, 19375 } 19376} 19377 19378const ( 19379 // StopStatusPending is a StopStatus enum value 19380 StopStatusPending = "Pending" 19381 19382 // StopStatusSucceeded is a StopStatus enum value 19383 StopStatusSucceeded = "Succeeded" 19384) 19385 19386// StopStatus_Values returns all elements of the StopStatus enum 19387func StopStatus_Values() []string { 19388 return []string{ 19389 StopStatusPending, 19390 StopStatusSucceeded, 19391 } 19392} 19393 19394const ( 19395 // TagFilterTypeKeyOnly is a TagFilterType enum value 19396 TagFilterTypeKeyOnly = "KEY_ONLY" 19397 19398 // TagFilterTypeValueOnly is a TagFilterType enum value 19399 TagFilterTypeValueOnly = "VALUE_ONLY" 19400 19401 // TagFilterTypeKeyAndValue is a TagFilterType enum value 19402 TagFilterTypeKeyAndValue = "KEY_AND_VALUE" 19403) 19404 19405// TagFilterType_Values returns all elements of the TagFilterType enum 19406func TagFilterType_Values() []string { 19407 return []string{ 19408 TagFilterTypeKeyOnly, 19409 TagFilterTypeValueOnly, 19410 TagFilterTypeKeyAndValue, 19411 } 19412} 19413 19414const ( 19415 // TargetFilterNameTargetStatus is a TargetFilterName enum value 19416 TargetFilterNameTargetStatus = "TargetStatus" 19417 19418 // TargetFilterNameServerInstanceLabel is a TargetFilterName enum value 19419 TargetFilterNameServerInstanceLabel = "ServerInstanceLabel" 19420) 19421 19422// TargetFilterName_Values returns all elements of the TargetFilterName enum 19423func TargetFilterName_Values() []string { 19424 return []string{ 19425 TargetFilterNameTargetStatus, 19426 TargetFilterNameServerInstanceLabel, 19427 } 19428} 19429 19430const ( 19431 // TargetLabelBlue is a TargetLabel enum value 19432 TargetLabelBlue = "Blue" 19433 19434 // TargetLabelGreen is a TargetLabel enum value 19435 TargetLabelGreen = "Green" 19436) 19437 19438// TargetLabel_Values returns all elements of the TargetLabel enum 19439func TargetLabel_Values() []string { 19440 return []string{ 19441 TargetLabelBlue, 19442 TargetLabelGreen, 19443 } 19444} 19445 19446const ( 19447 // TargetStatusPending is a TargetStatus enum value 19448 TargetStatusPending = "Pending" 19449 19450 // TargetStatusInProgress is a TargetStatus enum value 19451 TargetStatusInProgress = "InProgress" 19452 19453 // TargetStatusSucceeded is a TargetStatus enum value 19454 TargetStatusSucceeded = "Succeeded" 19455 19456 // TargetStatusFailed is a TargetStatus enum value 19457 TargetStatusFailed = "Failed" 19458 19459 // TargetStatusSkipped is a TargetStatus enum value 19460 TargetStatusSkipped = "Skipped" 19461 19462 // TargetStatusUnknown is a TargetStatus enum value 19463 TargetStatusUnknown = "Unknown" 19464 19465 // TargetStatusReady is a TargetStatus enum value 19466 TargetStatusReady = "Ready" 19467) 19468 19469// TargetStatus_Values returns all elements of the TargetStatus enum 19470func TargetStatus_Values() []string { 19471 return []string{ 19472 TargetStatusPending, 19473 TargetStatusInProgress, 19474 TargetStatusSucceeded, 19475 TargetStatusFailed, 19476 TargetStatusSkipped, 19477 TargetStatusUnknown, 19478 TargetStatusReady, 19479 } 19480} 19481 19482const ( 19483 // TrafficRoutingTypeTimeBasedCanary is a TrafficRoutingType enum value 19484 TrafficRoutingTypeTimeBasedCanary = "TimeBasedCanary" 19485 19486 // TrafficRoutingTypeTimeBasedLinear is a TrafficRoutingType enum value 19487 TrafficRoutingTypeTimeBasedLinear = "TimeBasedLinear" 19488 19489 // TrafficRoutingTypeAllAtOnce is a TrafficRoutingType enum value 19490 TrafficRoutingTypeAllAtOnce = "AllAtOnce" 19491) 19492 19493// TrafficRoutingType_Values returns all elements of the TrafficRoutingType enum 19494func TrafficRoutingType_Values() []string { 19495 return []string{ 19496 TrafficRoutingTypeTimeBasedCanary, 19497 TrafficRoutingTypeTimeBasedLinear, 19498 TrafficRoutingTypeAllAtOnce, 19499 } 19500} 19501 19502const ( 19503 // TriggerEventTypeDeploymentStart is a TriggerEventType enum value 19504 TriggerEventTypeDeploymentStart = "DeploymentStart" 19505 19506 // TriggerEventTypeDeploymentSuccess is a TriggerEventType enum value 19507 TriggerEventTypeDeploymentSuccess = "DeploymentSuccess" 19508 19509 // TriggerEventTypeDeploymentFailure is a TriggerEventType enum value 19510 TriggerEventTypeDeploymentFailure = "DeploymentFailure" 19511 19512 // TriggerEventTypeDeploymentStop is a TriggerEventType enum value 19513 TriggerEventTypeDeploymentStop = "DeploymentStop" 19514 19515 // TriggerEventTypeDeploymentRollback is a TriggerEventType enum value 19516 TriggerEventTypeDeploymentRollback = "DeploymentRollback" 19517 19518 // TriggerEventTypeDeploymentReady is a TriggerEventType enum value 19519 TriggerEventTypeDeploymentReady = "DeploymentReady" 19520 19521 // TriggerEventTypeInstanceStart is a TriggerEventType enum value 19522 TriggerEventTypeInstanceStart = "InstanceStart" 19523 19524 // TriggerEventTypeInstanceSuccess is a TriggerEventType enum value 19525 TriggerEventTypeInstanceSuccess = "InstanceSuccess" 19526 19527 // TriggerEventTypeInstanceFailure is a TriggerEventType enum value 19528 TriggerEventTypeInstanceFailure = "InstanceFailure" 19529 19530 // TriggerEventTypeInstanceReady is a TriggerEventType enum value 19531 TriggerEventTypeInstanceReady = "InstanceReady" 19532) 19533 19534// TriggerEventType_Values returns all elements of the TriggerEventType enum 19535func TriggerEventType_Values() []string { 19536 return []string{ 19537 TriggerEventTypeDeploymentStart, 19538 TriggerEventTypeDeploymentSuccess, 19539 TriggerEventTypeDeploymentFailure, 19540 TriggerEventTypeDeploymentStop, 19541 TriggerEventTypeDeploymentRollback, 19542 TriggerEventTypeDeploymentReady, 19543 TriggerEventTypeInstanceStart, 19544 TriggerEventTypeInstanceSuccess, 19545 TriggerEventTypeInstanceFailure, 19546 TriggerEventTypeInstanceReady, 19547 } 19548} 19549