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 // A service role Amazon Resource Name (ARN) that allows AWS CodeDeploy to act 6980 // on the user's behalf when interacting with AWS services. 6981 // 6982 // ServiceRoleArn is a required field 6983 ServiceRoleArn *string `locationName:"serviceRoleArn" type:"string" required:"true"` 6984 6985 // The metadata that you apply to CodeDeploy deployment groups to help you organize 6986 // and categorize them. Each tag consists of a key and an optional value, both 6987 // of which you define. 6988 Tags []*Tag `locationName:"tags" type:"list"` 6989 6990 // Information about triggers to create when the deployment group is created. 6991 // For examples, see Create a Trigger for an AWS CodeDeploy Event (https://docs.aws.amazon.com/codedeploy/latest/userguide/how-to-notify-sns.html) 6992 // in the AWS CodeDeploy User Guide. 6993 TriggerConfigurations []*TriggerConfig `locationName:"triggerConfigurations" type:"list"` 6994} 6995 6996// String returns the string representation 6997func (s CreateDeploymentGroupInput) String() string { 6998 return awsutil.Prettify(s) 6999} 7000 7001// GoString returns the string representation 7002func (s CreateDeploymentGroupInput) GoString() string { 7003 return s.String() 7004} 7005 7006// Validate inspects the fields of the type to determine if they are valid. 7007func (s *CreateDeploymentGroupInput) Validate() error { 7008 invalidParams := request.ErrInvalidParams{Context: "CreateDeploymentGroupInput"} 7009 if s.ApplicationName == nil { 7010 invalidParams.Add(request.NewErrParamRequired("ApplicationName")) 7011 } 7012 if s.ApplicationName != nil && len(*s.ApplicationName) < 1 { 7013 invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1)) 7014 } 7015 if s.DeploymentConfigName != nil && len(*s.DeploymentConfigName) < 1 { 7016 invalidParams.Add(request.NewErrParamMinLen("DeploymentConfigName", 1)) 7017 } 7018 if s.DeploymentGroupName == nil { 7019 invalidParams.Add(request.NewErrParamRequired("DeploymentGroupName")) 7020 } 7021 if s.DeploymentGroupName != nil && len(*s.DeploymentGroupName) < 1 { 7022 invalidParams.Add(request.NewErrParamMinLen("DeploymentGroupName", 1)) 7023 } 7024 if s.ServiceRoleArn == nil { 7025 invalidParams.Add(request.NewErrParamRequired("ServiceRoleArn")) 7026 } 7027 7028 if invalidParams.Len() > 0 { 7029 return invalidParams 7030 } 7031 return nil 7032} 7033 7034// SetAlarmConfiguration sets the AlarmConfiguration field's value. 7035func (s *CreateDeploymentGroupInput) SetAlarmConfiguration(v *AlarmConfiguration) *CreateDeploymentGroupInput { 7036 s.AlarmConfiguration = v 7037 return s 7038} 7039 7040// SetApplicationName sets the ApplicationName field's value. 7041func (s *CreateDeploymentGroupInput) SetApplicationName(v string) *CreateDeploymentGroupInput { 7042 s.ApplicationName = &v 7043 return s 7044} 7045 7046// SetAutoRollbackConfiguration sets the AutoRollbackConfiguration field's value. 7047func (s *CreateDeploymentGroupInput) SetAutoRollbackConfiguration(v *AutoRollbackConfiguration) *CreateDeploymentGroupInput { 7048 s.AutoRollbackConfiguration = v 7049 return s 7050} 7051 7052// SetAutoScalingGroups sets the AutoScalingGroups field's value. 7053func (s *CreateDeploymentGroupInput) SetAutoScalingGroups(v []*string) *CreateDeploymentGroupInput { 7054 s.AutoScalingGroups = v 7055 return s 7056} 7057 7058// SetBlueGreenDeploymentConfiguration sets the BlueGreenDeploymentConfiguration field's value. 7059func (s *CreateDeploymentGroupInput) SetBlueGreenDeploymentConfiguration(v *BlueGreenDeploymentConfiguration) *CreateDeploymentGroupInput { 7060 s.BlueGreenDeploymentConfiguration = v 7061 return s 7062} 7063 7064// SetDeploymentConfigName sets the DeploymentConfigName field's value. 7065func (s *CreateDeploymentGroupInput) SetDeploymentConfigName(v string) *CreateDeploymentGroupInput { 7066 s.DeploymentConfigName = &v 7067 return s 7068} 7069 7070// SetDeploymentGroupName sets the DeploymentGroupName field's value. 7071func (s *CreateDeploymentGroupInput) SetDeploymentGroupName(v string) *CreateDeploymentGroupInput { 7072 s.DeploymentGroupName = &v 7073 return s 7074} 7075 7076// SetDeploymentStyle sets the DeploymentStyle field's value. 7077func (s *CreateDeploymentGroupInput) SetDeploymentStyle(v *DeploymentStyle) *CreateDeploymentGroupInput { 7078 s.DeploymentStyle = v 7079 return s 7080} 7081 7082// SetEc2TagFilters sets the Ec2TagFilters field's value. 7083func (s *CreateDeploymentGroupInput) SetEc2TagFilters(v []*EC2TagFilter) *CreateDeploymentGroupInput { 7084 s.Ec2TagFilters = v 7085 return s 7086} 7087 7088// SetEc2TagSet sets the Ec2TagSet field's value. 7089func (s *CreateDeploymentGroupInput) SetEc2TagSet(v *EC2TagSet) *CreateDeploymentGroupInput { 7090 s.Ec2TagSet = v 7091 return s 7092} 7093 7094// SetEcsServices sets the EcsServices field's value. 7095func (s *CreateDeploymentGroupInput) SetEcsServices(v []*ECSService) *CreateDeploymentGroupInput { 7096 s.EcsServices = v 7097 return s 7098} 7099 7100// SetLoadBalancerInfo sets the LoadBalancerInfo field's value. 7101func (s *CreateDeploymentGroupInput) SetLoadBalancerInfo(v *LoadBalancerInfo) *CreateDeploymentGroupInput { 7102 s.LoadBalancerInfo = v 7103 return s 7104} 7105 7106// SetOnPremisesInstanceTagFilters sets the OnPremisesInstanceTagFilters field's value. 7107func (s *CreateDeploymentGroupInput) SetOnPremisesInstanceTagFilters(v []*TagFilter) *CreateDeploymentGroupInput { 7108 s.OnPremisesInstanceTagFilters = v 7109 return s 7110} 7111 7112// SetOnPremisesTagSet sets the OnPremisesTagSet field's value. 7113func (s *CreateDeploymentGroupInput) SetOnPremisesTagSet(v *OnPremisesTagSet) *CreateDeploymentGroupInput { 7114 s.OnPremisesTagSet = v 7115 return s 7116} 7117 7118// SetServiceRoleArn sets the ServiceRoleArn field's value. 7119func (s *CreateDeploymentGroupInput) SetServiceRoleArn(v string) *CreateDeploymentGroupInput { 7120 s.ServiceRoleArn = &v 7121 return s 7122} 7123 7124// SetTags sets the Tags field's value. 7125func (s *CreateDeploymentGroupInput) SetTags(v []*Tag) *CreateDeploymentGroupInput { 7126 s.Tags = v 7127 return s 7128} 7129 7130// SetTriggerConfigurations sets the TriggerConfigurations field's value. 7131func (s *CreateDeploymentGroupInput) SetTriggerConfigurations(v []*TriggerConfig) *CreateDeploymentGroupInput { 7132 s.TriggerConfigurations = v 7133 return s 7134} 7135 7136// Represents the output of a CreateDeploymentGroup operation. 7137type CreateDeploymentGroupOutput struct { 7138 _ struct{} `type:"structure"` 7139 7140 // A unique deployment group ID. 7141 DeploymentGroupId *string `locationName:"deploymentGroupId" type:"string"` 7142} 7143 7144// String returns the string representation 7145func (s CreateDeploymentGroupOutput) String() string { 7146 return awsutil.Prettify(s) 7147} 7148 7149// GoString returns the string representation 7150func (s CreateDeploymentGroupOutput) GoString() string { 7151 return s.String() 7152} 7153 7154// SetDeploymentGroupId sets the DeploymentGroupId field's value. 7155func (s *CreateDeploymentGroupOutput) SetDeploymentGroupId(v string) *CreateDeploymentGroupOutput { 7156 s.DeploymentGroupId = &v 7157 return s 7158} 7159 7160// Represents the input of a CreateDeployment operation. 7161type CreateDeploymentInput struct { 7162 _ struct{} `type:"structure"` 7163 7164 // The name of an AWS CodeDeploy application associated with the IAM user or 7165 // AWS account. 7166 // 7167 // ApplicationName is a required field 7168 ApplicationName *string `locationName:"applicationName" min:"1" type:"string" required:"true"` 7169 7170 // Configuration information for an automatic rollback that is added when a 7171 // deployment is created. 7172 AutoRollbackConfiguration *AutoRollbackConfiguration `locationName:"autoRollbackConfiguration" type:"structure"` 7173 7174 // The name of a deployment configuration associated with the IAM user or AWS 7175 // account. 7176 // 7177 // If not specified, the value configured in the deployment group is used as 7178 // the default. If the deployment group does not have a deployment configuration 7179 // associated with it, CodeDeployDefault.OneAtATime is used by default. 7180 DeploymentConfigName *string `locationName:"deploymentConfigName" min:"1" type:"string"` 7181 7182 // The name of the deployment group. 7183 DeploymentGroupName *string `locationName:"deploymentGroupName" min:"1" type:"string"` 7184 7185 // A comment about the deployment. 7186 Description *string `locationName:"description" type:"string"` 7187 7188 // Information about how AWS CodeDeploy handles files that already exist in 7189 // a deployment target location but weren't part of the previous successful 7190 // deployment. 7191 // 7192 // The fileExistsBehavior parameter takes any of the following values: 7193 // 7194 // * DISALLOW: The deployment fails. This is also the default behavior if 7195 // no option is specified. 7196 // 7197 // * OVERWRITE: The version of the file from the application revision currently 7198 // being deployed replaces the version already on the instance. 7199 // 7200 // * RETAIN: The version of the file already on the instance is kept and 7201 // used as part of the new deployment. 7202 FileExistsBehavior *string `locationName:"fileExistsBehavior" type:"string" enum:"FileExistsBehavior"` 7203 7204 // If true, then if an ApplicationStop, BeforeBlockTraffic, or AfterBlockTraffic 7205 // deployment lifecycle event to an instance fails, then the deployment continues 7206 // to the next deployment lifecycle event. For example, if ApplicationStop fails, 7207 // the deployment continues with DownloadBundle. If BeforeBlockTraffic fails, 7208 // the deployment continues with BlockTraffic. If AfterBlockTraffic fails, the 7209 // deployment continues with ApplicationStop. 7210 // 7211 // If false or not specified, then if a lifecycle event fails during a deployment 7212 // to an instance, that deployment fails. If deployment to that instance is 7213 // part of an overall deployment and the number of healthy hosts is not less 7214 // than the minimum number of healthy hosts, then a deployment to the next instance 7215 // is attempted. 7216 // 7217 // During a deployment, the AWS CodeDeploy agent runs the scripts specified 7218 // for ApplicationStop, BeforeBlockTraffic, and AfterBlockTraffic in the AppSpec 7219 // file from the previous successful deployment. (All other scripts are run 7220 // from the AppSpec file in the current deployment.) If one of these scripts 7221 // contains an error and does not run successfully, the deployment can fail. 7222 // 7223 // If the cause of the failure is a script from the last successful deployment 7224 // that will never run successfully, create a new deployment and use ignoreApplicationStopFailures 7225 // to specify that the ApplicationStop, BeforeBlockTraffic, and AfterBlockTraffic 7226 // failures should be ignored. 7227 IgnoreApplicationStopFailures *bool `locationName:"ignoreApplicationStopFailures" type:"boolean"` 7228 7229 // The type and location of the revision to deploy. 7230 Revision *RevisionLocation `locationName:"revision" type:"structure"` 7231 7232 // Information about the instances that belong to the replacement environment 7233 // in a blue/green deployment. 7234 TargetInstances *TargetInstances `locationName:"targetInstances" type:"structure"` 7235 7236 // Indicates whether to deploy to all instances or only to instances that are 7237 // not running the latest application revision. 7238 UpdateOutdatedInstancesOnly *bool `locationName:"updateOutdatedInstancesOnly" type:"boolean"` 7239} 7240 7241// String returns the string representation 7242func (s CreateDeploymentInput) String() string { 7243 return awsutil.Prettify(s) 7244} 7245 7246// GoString returns the string representation 7247func (s CreateDeploymentInput) GoString() string { 7248 return s.String() 7249} 7250 7251// Validate inspects the fields of the type to determine if they are valid. 7252func (s *CreateDeploymentInput) Validate() error { 7253 invalidParams := request.ErrInvalidParams{Context: "CreateDeploymentInput"} 7254 if s.ApplicationName == nil { 7255 invalidParams.Add(request.NewErrParamRequired("ApplicationName")) 7256 } 7257 if s.ApplicationName != nil && len(*s.ApplicationName) < 1 { 7258 invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1)) 7259 } 7260 if s.DeploymentConfigName != nil && len(*s.DeploymentConfigName) < 1 { 7261 invalidParams.Add(request.NewErrParamMinLen("DeploymentConfigName", 1)) 7262 } 7263 if s.DeploymentGroupName != nil && len(*s.DeploymentGroupName) < 1 { 7264 invalidParams.Add(request.NewErrParamMinLen("DeploymentGroupName", 1)) 7265 } 7266 7267 if invalidParams.Len() > 0 { 7268 return invalidParams 7269 } 7270 return nil 7271} 7272 7273// SetApplicationName sets the ApplicationName field's value. 7274func (s *CreateDeploymentInput) SetApplicationName(v string) *CreateDeploymentInput { 7275 s.ApplicationName = &v 7276 return s 7277} 7278 7279// SetAutoRollbackConfiguration sets the AutoRollbackConfiguration field's value. 7280func (s *CreateDeploymentInput) SetAutoRollbackConfiguration(v *AutoRollbackConfiguration) *CreateDeploymentInput { 7281 s.AutoRollbackConfiguration = v 7282 return s 7283} 7284 7285// SetDeploymentConfigName sets the DeploymentConfigName field's value. 7286func (s *CreateDeploymentInput) SetDeploymentConfigName(v string) *CreateDeploymentInput { 7287 s.DeploymentConfigName = &v 7288 return s 7289} 7290 7291// SetDeploymentGroupName sets the DeploymentGroupName field's value. 7292func (s *CreateDeploymentInput) SetDeploymentGroupName(v string) *CreateDeploymentInput { 7293 s.DeploymentGroupName = &v 7294 return s 7295} 7296 7297// SetDescription sets the Description field's value. 7298func (s *CreateDeploymentInput) SetDescription(v string) *CreateDeploymentInput { 7299 s.Description = &v 7300 return s 7301} 7302 7303// SetFileExistsBehavior sets the FileExistsBehavior field's value. 7304func (s *CreateDeploymentInput) SetFileExistsBehavior(v string) *CreateDeploymentInput { 7305 s.FileExistsBehavior = &v 7306 return s 7307} 7308 7309// SetIgnoreApplicationStopFailures sets the IgnoreApplicationStopFailures field's value. 7310func (s *CreateDeploymentInput) SetIgnoreApplicationStopFailures(v bool) *CreateDeploymentInput { 7311 s.IgnoreApplicationStopFailures = &v 7312 return s 7313} 7314 7315// SetRevision sets the Revision field's value. 7316func (s *CreateDeploymentInput) SetRevision(v *RevisionLocation) *CreateDeploymentInput { 7317 s.Revision = v 7318 return s 7319} 7320 7321// SetTargetInstances sets the TargetInstances field's value. 7322func (s *CreateDeploymentInput) SetTargetInstances(v *TargetInstances) *CreateDeploymentInput { 7323 s.TargetInstances = v 7324 return s 7325} 7326 7327// SetUpdateOutdatedInstancesOnly sets the UpdateOutdatedInstancesOnly field's value. 7328func (s *CreateDeploymentInput) SetUpdateOutdatedInstancesOnly(v bool) *CreateDeploymentInput { 7329 s.UpdateOutdatedInstancesOnly = &v 7330 return s 7331} 7332 7333// Represents the output of a CreateDeployment operation. 7334type CreateDeploymentOutput struct { 7335 _ struct{} `type:"structure"` 7336 7337 // The unique ID of a deployment. 7338 DeploymentId *string `locationName:"deploymentId" type:"string"` 7339} 7340 7341// String returns the string representation 7342func (s CreateDeploymentOutput) String() string { 7343 return awsutil.Prettify(s) 7344} 7345 7346// GoString returns the string representation 7347func (s CreateDeploymentOutput) GoString() string { 7348 return s.String() 7349} 7350 7351// SetDeploymentId sets the DeploymentId field's value. 7352func (s *CreateDeploymentOutput) SetDeploymentId(v string) *CreateDeploymentOutput { 7353 s.DeploymentId = &v 7354 return s 7355} 7356 7357// Represents the input of a DeleteApplication operation. 7358type DeleteApplicationInput struct { 7359 _ struct{} `type:"structure"` 7360 7361 // The name of an AWS CodeDeploy application associated with the IAM user or 7362 // AWS account. 7363 // 7364 // ApplicationName is a required field 7365 ApplicationName *string `locationName:"applicationName" min:"1" type:"string" required:"true"` 7366} 7367 7368// String returns the string representation 7369func (s DeleteApplicationInput) String() string { 7370 return awsutil.Prettify(s) 7371} 7372 7373// GoString returns the string representation 7374func (s DeleteApplicationInput) GoString() string { 7375 return s.String() 7376} 7377 7378// Validate inspects the fields of the type to determine if they are valid. 7379func (s *DeleteApplicationInput) Validate() error { 7380 invalidParams := request.ErrInvalidParams{Context: "DeleteApplicationInput"} 7381 if s.ApplicationName == nil { 7382 invalidParams.Add(request.NewErrParamRequired("ApplicationName")) 7383 } 7384 if s.ApplicationName != nil && len(*s.ApplicationName) < 1 { 7385 invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1)) 7386 } 7387 7388 if invalidParams.Len() > 0 { 7389 return invalidParams 7390 } 7391 return nil 7392} 7393 7394// SetApplicationName sets the ApplicationName field's value. 7395func (s *DeleteApplicationInput) SetApplicationName(v string) *DeleteApplicationInput { 7396 s.ApplicationName = &v 7397 return s 7398} 7399 7400type DeleteApplicationOutput struct { 7401 _ struct{} `type:"structure"` 7402} 7403 7404// String returns the string representation 7405func (s DeleteApplicationOutput) String() string { 7406 return awsutil.Prettify(s) 7407} 7408 7409// GoString returns the string representation 7410func (s DeleteApplicationOutput) GoString() string { 7411 return s.String() 7412} 7413 7414// Represents the input of a DeleteDeploymentConfig operation. 7415type DeleteDeploymentConfigInput struct { 7416 _ struct{} `type:"structure"` 7417 7418 // The name of a deployment configuration associated with the IAM user or AWS 7419 // account. 7420 // 7421 // DeploymentConfigName is a required field 7422 DeploymentConfigName *string `locationName:"deploymentConfigName" min:"1" type:"string" required:"true"` 7423} 7424 7425// String returns the string representation 7426func (s DeleteDeploymentConfigInput) String() string { 7427 return awsutil.Prettify(s) 7428} 7429 7430// GoString returns the string representation 7431func (s DeleteDeploymentConfigInput) GoString() string { 7432 return s.String() 7433} 7434 7435// Validate inspects the fields of the type to determine if they are valid. 7436func (s *DeleteDeploymentConfigInput) Validate() error { 7437 invalidParams := request.ErrInvalidParams{Context: "DeleteDeploymentConfigInput"} 7438 if s.DeploymentConfigName == nil { 7439 invalidParams.Add(request.NewErrParamRequired("DeploymentConfigName")) 7440 } 7441 if s.DeploymentConfigName != nil && len(*s.DeploymentConfigName) < 1 { 7442 invalidParams.Add(request.NewErrParamMinLen("DeploymentConfigName", 1)) 7443 } 7444 7445 if invalidParams.Len() > 0 { 7446 return invalidParams 7447 } 7448 return nil 7449} 7450 7451// SetDeploymentConfigName sets the DeploymentConfigName field's value. 7452func (s *DeleteDeploymentConfigInput) SetDeploymentConfigName(v string) *DeleteDeploymentConfigInput { 7453 s.DeploymentConfigName = &v 7454 return s 7455} 7456 7457type DeleteDeploymentConfigOutput struct { 7458 _ struct{} `type:"structure"` 7459} 7460 7461// String returns the string representation 7462func (s DeleteDeploymentConfigOutput) String() string { 7463 return awsutil.Prettify(s) 7464} 7465 7466// GoString returns the string representation 7467func (s DeleteDeploymentConfigOutput) GoString() string { 7468 return s.String() 7469} 7470 7471// Represents the input of a DeleteDeploymentGroup operation. 7472type DeleteDeploymentGroupInput struct { 7473 _ struct{} `type:"structure"` 7474 7475 // The name of an AWS CodeDeploy application associated with the IAM user or 7476 // AWS account. 7477 // 7478 // ApplicationName is a required field 7479 ApplicationName *string `locationName:"applicationName" min:"1" type:"string" required:"true"` 7480 7481 // The name of a deployment group for the specified application. 7482 // 7483 // DeploymentGroupName is a required field 7484 DeploymentGroupName *string `locationName:"deploymentGroupName" min:"1" type:"string" required:"true"` 7485} 7486 7487// String returns the string representation 7488func (s DeleteDeploymentGroupInput) String() string { 7489 return awsutil.Prettify(s) 7490} 7491 7492// GoString returns the string representation 7493func (s DeleteDeploymentGroupInput) GoString() string { 7494 return s.String() 7495} 7496 7497// Validate inspects the fields of the type to determine if they are valid. 7498func (s *DeleteDeploymentGroupInput) Validate() error { 7499 invalidParams := request.ErrInvalidParams{Context: "DeleteDeploymentGroupInput"} 7500 if s.ApplicationName == nil { 7501 invalidParams.Add(request.NewErrParamRequired("ApplicationName")) 7502 } 7503 if s.ApplicationName != nil && len(*s.ApplicationName) < 1 { 7504 invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1)) 7505 } 7506 if s.DeploymentGroupName == nil { 7507 invalidParams.Add(request.NewErrParamRequired("DeploymentGroupName")) 7508 } 7509 if s.DeploymentGroupName != nil && len(*s.DeploymentGroupName) < 1 { 7510 invalidParams.Add(request.NewErrParamMinLen("DeploymentGroupName", 1)) 7511 } 7512 7513 if invalidParams.Len() > 0 { 7514 return invalidParams 7515 } 7516 return nil 7517} 7518 7519// SetApplicationName sets the ApplicationName field's value. 7520func (s *DeleteDeploymentGroupInput) SetApplicationName(v string) *DeleteDeploymentGroupInput { 7521 s.ApplicationName = &v 7522 return s 7523} 7524 7525// SetDeploymentGroupName sets the DeploymentGroupName field's value. 7526func (s *DeleteDeploymentGroupInput) SetDeploymentGroupName(v string) *DeleteDeploymentGroupInput { 7527 s.DeploymentGroupName = &v 7528 return s 7529} 7530 7531// Represents the output of a DeleteDeploymentGroup operation. 7532type DeleteDeploymentGroupOutput struct { 7533 _ struct{} `type:"structure"` 7534 7535 // If the output contains no data, and the corresponding deployment group contained 7536 // at least one Auto Scaling group, AWS CodeDeploy successfully removed all 7537 // corresponding Auto Scaling lifecycle event hooks from the Amazon EC2 instances 7538 // in the Auto Scaling group. If the output contains data, AWS CodeDeploy could 7539 // not remove some Auto Scaling lifecycle event hooks from the Amazon EC2 instances 7540 // in the Auto Scaling group. 7541 HooksNotCleanedUp []*AutoScalingGroup `locationName:"hooksNotCleanedUp" type:"list"` 7542} 7543 7544// String returns the string representation 7545func (s DeleteDeploymentGroupOutput) String() string { 7546 return awsutil.Prettify(s) 7547} 7548 7549// GoString returns the string representation 7550func (s DeleteDeploymentGroupOutput) GoString() string { 7551 return s.String() 7552} 7553 7554// SetHooksNotCleanedUp sets the HooksNotCleanedUp field's value. 7555func (s *DeleteDeploymentGroupOutput) SetHooksNotCleanedUp(v []*AutoScalingGroup) *DeleteDeploymentGroupOutput { 7556 s.HooksNotCleanedUp = v 7557 return s 7558} 7559 7560// Represents the input of a DeleteGitHubAccount operation. 7561type DeleteGitHubAccountTokenInput struct { 7562 _ struct{} `type:"structure"` 7563 7564 // The name of the GitHub account connection to delete. 7565 TokenName *string `locationName:"tokenName" type:"string"` 7566} 7567 7568// String returns the string representation 7569func (s DeleteGitHubAccountTokenInput) String() string { 7570 return awsutil.Prettify(s) 7571} 7572 7573// GoString returns the string representation 7574func (s DeleteGitHubAccountTokenInput) GoString() string { 7575 return s.String() 7576} 7577 7578// SetTokenName sets the TokenName field's value. 7579func (s *DeleteGitHubAccountTokenInput) SetTokenName(v string) *DeleteGitHubAccountTokenInput { 7580 s.TokenName = &v 7581 return s 7582} 7583 7584// Represents the output of a DeleteGitHubAccountToken operation. 7585type DeleteGitHubAccountTokenOutput struct { 7586 _ struct{} `type:"structure"` 7587 7588 // The name of the GitHub account connection that was deleted. 7589 TokenName *string `locationName:"tokenName" type:"string"` 7590} 7591 7592// String returns the string representation 7593func (s DeleteGitHubAccountTokenOutput) String() string { 7594 return awsutil.Prettify(s) 7595} 7596 7597// GoString returns the string representation 7598func (s DeleteGitHubAccountTokenOutput) GoString() string { 7599 return s.String() 7600} 7601 7602// SetTokenName sets the TokenName field's value. 7603func (s *DeleteGitHubAccountTokenOutput) SetTokenName(v string) *DeleteGitHubAccountTokenOutput { 7604 s.TokenName = &v 7605 return s 7606} 7607 7608type DeleteResourcesByExternalIdInput struct { 7609 _ struct{} `type:"structure"` 7610 7611 // The unique ID of an external resource (for example, a CloudFormation stack 7612 // ID) that is linked to one or more CodeDeploy resources. 7613 ExternalId *string `locationName:"externalId" type:"string"` 7614} 7615 7616// String returns the string representation 7617func (s DeleteResourcesByExternalIdInput) String() string { 7618 return awsutil.Prettify(s) 7619} 7620 7621// GoString returns the string representation 7622func (s DeleteResourcesByExternalIdInput) GoString() string { 7623 return s.String() 7624} 7625 7626// SetExternalId sets the ExternalId field's value. 7627func (s *DeleteResourcesByExternalIdInput) SetExternalId(v string) *DeleteResourcesByExternalIdInput { 7628 s.ExternalId = &v 7629 return s 7630} 7631 7632type DeleteResourcesByExternalIdOutput struct { 7633 _ struct{} `type:"structure"` 7634} 7635 7636// String returns the string representation 7637func (s DeleteResourcesByExternalIdOutput) String() string { 7638 return awsutil.Prettify(s) 7639} 7640 7641// GoString returns the string representation 7642func (s DeleteResourcesByExternalIdOutput) GoString() string { 7643 return s.String() 7644} 7645 7646// The deployment is already complete. 7647type DeploymentAlreadyCompletedException struct { 7648 _ struct{} `type:"structure"` 7649 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 7650 7651 Message_ *string `locationName:"message" type:"string"` 7652} 7653 7654// String returns the string representation 7655func (s DeploymentAlreadyCompletedException) String() string { 7656 return awsutil.Prettify(s) 7657} 7658 7659// GoString returns the string representation 7660func (s DeploymentAlreadyCompletedException) GoString() string { 7661 return s.String() 7662} 7663 7664func newErrorDeploymentAlreadyCompletedException(v protocol.ResponseMetadata) error { 7665 return &DeploymentAlreadyCompletedException{ 7666 RespMetadata: v, 7667 } 7668} 7669 7670// Code returns the exception type name. 7671func (s *DeploymentAlreadyCompletedException) Code() string { 7672 return "DeploymentAlreadyCompletedException" 7673} 7674 7675// Message returns the exception's message. 7676func (s *DeploymentAlreadyCompletedException) Message() string { 7677 if s.Message_ != nil { 7678 return *s.Message_ 7679 } 7680 return "" 7681} 7682 7683// OrigErr always returns nil, satisfies awserr.Error interface. 7684func (s *DeploymentAlreadyCompletedException) OrigErr() error { 7685 return nil 7686} 7687 7688func (s *DeploymentAlreadyCompletedException) Error() string { 7689 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 7690} 7691 7692// Status code returns the HTTP status code for the request's response error. 7693func (s *DeploymentAlreadyCompletedException) StatusCode() int { 7694 return s.RespMetadata.StatusCode 7695} 7696 7697// RequestID returns the service's response RequestID for request. 7698func (s *DeploymentAlreadyCompletedException) RequestID() string { 7699 return s.RespMetadata.RequestID 7700} 7701 7702// A deployment configuration with the specified name with the IAM user or AWS 7703// account already exists. 7704type DeploymentConfigAlreadyExistsException struct { 7705 _ struct{} `type:"structure"` 7706 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 7707 7708 Message_ *string `locationName:"message" type:"string"` 7709} 7710 7711// String returns the string representation 7712func (s DeploymentConfigAlreadyExistsException) String() string { 7713 return awsutil.Prettify(s) 7714} 7715 7716// GoString returns the string representation 7717func (s DeploymentConfigAlreadyExistsException) GoString() string { 7718 return s.String() 7719} 7720 7721func newErrorDeploymentConfigAlreadyExistsException(v protocol.ResponseMetadata) error { 7722 return &DeploymentConfigAlreadyExistsException{ 7723 RespMetadata: v, 7724 } 7725} 7726 7727// Code returns the exception type name. 7728func (s *DeploymentConfigAlreadyExistsException) Code() string { 7729 return "DeploymentConfigAlreadyExistsException" 7730} 7731 7732// Message returns the exception's message. 7733func (s *DeploymentConfigAlreadyExistsException) Message() string { 7734 if s.Message_ != nil { 7735 return *s.Message_ 7736 } 7737 return "" 7738} 7739 7740// OrigErr always returns nil, satisfies awserr.Error interface. 7741func (s *DeploymentConfigAlreadyExistsException) OrigErr() error { 7742 return nil 7743} 7744 7745func (s *DeploymentConfigAlreadyExistsException) Error() string { 7746 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 7747} 7748 7749// Status code returns the HTTP status code for the request's response error. 7750func (s *DeploymentConfigAlreadyExistsException) StatusCode() int { 7751 return s.RespMetadata.StatusCode 7752} 7753 7754// RequestID returns the service's response RequestID for request. 7755func (s *DeploymentConfigAlreadyExistsException) RequestID() string { 7756 return s.RespMetadata.RequestID 7757} 7758 7759// The deployment configuration does not exist with the IAM user or AWS account. 7760type DeploymentConfigDoesNotExistException struct { 7761 _ struct{} `type:"structure"` 7762 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 7763 7764 Message_ *string `locationName:"message" type:"string"` 7765} 7766 7767// String returns the string representation 7768func (s DeploymentConfigDoesNotExistException) String() string { 7769 return awsutil.Prettify(s) 7770} 7771 7772// GoString returns the string representation 7773func (s DeploymentConfigDoesNotExistException) GoString() string { 7774 return s.String() 7775} 7776 7777func newErrorDeploymentConfigDoesNotExistException(v protocol.ResponseMetadata) error { 7778 return &DeploymentConfigDoesNotExistException{ 7779 RespMetadata: v, 7780 } 7781} 7782 7783// Code returns the exception type name. 7784func (s *DeploymentConfigDoesNotExistException) Code() string { 7785 return "DeploymentConfigDoesNotExistException" 7786} 7787 7788// Message returns the exception's message. 7789func (s *DeploymentConfigDoesNotExistException) Message() string { 7790 if s.Message_ != nil { 7791 return *s.Message_ 7792 } 7793 return "" 7794} 7795 7796// OrigErr always returns nil, satisfies awserr.Error interface. 7797func (s *DeploymentConfigDoesNotExistException) OrigErr() error { 7798 return nil 7799} 7800 7801func (s *DeploymentConfigDoesNotExistException) Error() string { 7802 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 7803} 7804 7805// Status code returns the HTTP status code for the request's response error. 7806func (s *DeploymentConfigDoesNotExistException) StatusCode() int { 7807 return s.RespMetadata.StatusCode 7808} 7809 7810// RequestID returns the service's response RequestID for request. 7811func (s *DeploymentConfigDoesNotExistException) RequestID() string { 7812 return s.RespMetadata.RequestID 7813} 7814 7815// The deployment configuration is still in use. 7816type DeploymentConfigInUseException struct { 7817 _ struct{} `type:"structure"` 7818 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 7819 7820 Message_ *string `locationName:"message" type:"string"` 7821} 7822 7823// String returns the string representation 7824func (s DeploymentConfigInUseException) String() string { 7825 return awsutil.Prettify(s) 7826} 7827 7828// GoString returns the string representation 7829func (s DeploymentConfigInUseException) GoString() string { 7830 return s.String() 7831} 7832 7833func newErrorDeploymentConfigInUseException(v protocol.ResponseMetadata) error { 7834 return &DeploymentConfigInUseException{ 7835 RespMetadata: v, 7836 } 7837} 7838 7839// Code returns the exception type name. 7840func (s *DeploymentConfigInUseException) Code() string { 7841 return "DeploymentConfigInUseException" 7842} 7843 7844// Message returns the exception's message. 7845func (s *DeploymentConfigInUseException) Message() string { 7846 if s.Message_ != nil { 7847 return *s.Message_ 7848 } 7849 return "" 7850} 7851 7852// OrigErr always returns nil, satisfies awserr.Error interface. 7853func (s *DeploymentConfigInUseException) OrigErr() error { 7854 return nil 7855} 7856 7857func (s *DeploymentConfigInUseException) Error() string { 7858 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 7859} 7860 7861// Status code returns the HTTP status code for the request's response error. 7862func (s *DeploymentConfigInUseException) StatusCode() int { 7863 return s.RespMetadata.StatusCode 7864} 7865 7866// RequestID returns the service's response RequestID for request. 7867func (s *DeploymentConfigInUseException) RequestID() string { 7868 return s.RespMetadata.RequestID 7869} 7870 7871// Information about a deployment configuration. 7872type DeploymentConfigInfo struct { 7873 _ struct{} `type:"structure"` 7874 7875 // The destination platform type for the deployment (Lambda, Server, or ECS). 7876 ComputePlatform *string `locationName:"computePlatform" type:"string" enum:"ComputePlatform"` 7877 7878 // The time at which the deployment configuration was created. 7879 CreateTime *time.Time `locationName:"createTime" type:"timestamp"` 7880 7881 // The deployment configuration ID. 7882 DeploymentConfigId *string `locationName:"deploymentConfigId" type:"string"` 7883 7884 // The deployment configuration name. 7885 DeploymentConfigName *string `locationName:"deploymentConfigName" min:"1" type:"string"` 7886 7887 // Information about the number or percentage of minimum healthy instance. 7888 MinimumHealthyHosts *MinimumHealthyHosts `locationName:"minimumHealthyHosts" type:"structure"` 7889 7890 // The configuration that specifies how the deployment traffic is routed. Used 7891 // for deployments with a Lambda or ECS compute platform only. 7892 TrafficRoutingConfig *TrafficRoutingConfig `locationName:"trafficRoutingConfig" type:"structure"` 7893} 7894 7895// String returns the string representation 7896func (s DeploymentConfigInfo) String() string { 7897 return awsutil.Prettify(s) 7898} 7899 7900// GoString returns the string representation 7901func (s DeploymentConfigInfo) GoString() string { 7902 return s.String() 7903} 7904 7905// SetComputePlatform sets the ComputePlatform field's value. 7906func (s *DeploymentConfigInfo) SetComputePlatform(v string) *DeploymentConfigInfo { 7907 s.ComputePlatform = &v 7908 return s 7909} 7910 7911// SetCreateTime sets the CreateTime field's value. 7912func (s *DeploymentConfigInfo) SetCreateTime(v time.Time) *DeploymentConfigInfo { 7913 s.CreateTime = &v 7914 return s 7915} 7916 7917// SetDeploymentConfigId sets the DeploymentConfigId field's value. 7918func (s *DeploymentConfigInfo) SetDeploymentConfigId(v string) *DeploymentConfigInfo { 7919 s.DeploymentConfigId = &v 7920 return s 7921} 7922 7923// SetDeploymentConfigName sets the DeploymentConfigName field's value. 7924func (s *DeploymentConfigInfo) SetDeploymentConfigName(v string) *DeploymentConfigInfo { 7925 s.DeploymentConfigName = &v 7926 return s 7927} 7928 7929// SetMinimumHealthyHosts sets the MinimumHealthyHosts field's value. 7930func (s *DeploymentConfigInfo) SetMinimumHealthyHosts(v *MinimumHealthyHosts) *DeploymentConfigInfo { 7931 s.MinimumHealthyHosts = v 7932 return s 7933} 7934 7935// SetTrafficRoutingConfig sets the TrafficRoutingConfig field's value. 7936func (s *DeploymentConfigInfo) SetTrafficRoutingConfig(v *TrafficRoutingConfig) *DeploymentConfigInfo { 7937 s.TrafficRoutingConfig = v 7938 return s 7939} 7940 7941// The deployment configurations limit was exceeded. 7942type DeploymentConfigLimitExceededException struct { 7943 _ struct{} `type:"structure"` 7944 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 7945 7946 Message_ *string `locationName:"message" type:"string"` 7947} 7948 7949// String returns the string representation 7950func (s DeploymentConfigLimitExceededException) String() string { 7951 return awsutil.Prettify(s) 7952} 7953 7954// GoString returns the string representation 7955func (s DeploymentConfigLimitExceededException) GoString() string { 7956 return s.String() 7957} 7958 7959func newErrorDeploymentConfigLimitExceededException(v protocol.ResponseMetadata) error { 7960 return &DeploymentConfigLimitExceededException{ 7961 RespMetadata: v, 7962 } 7963} 7964 7965// Code returns the exception type name. 7966func (s *DeploymentConfigLimitExceededException) Code() string { 7967 return "DeploymentConfigLimitExceededException" 7968} 7969 7970// Message returns the exception's message. 7971func (s *DeploymentConfigLimitExceededException) Message() string { 7972 if s.Message_ != nil { 7973 return *s.Message_ 7974 } 7975 return "" 7976} 7977 7978// OrigErr always returns nil, satisfies awserr.Error interface. 7979func (s *DeploymentConfigLimitExceededException) OrigErr() error { 7980 return nil 7981} 7982 7983func (s *DeploymentConfigLimitExceededException) Error() string { 7984 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 7985} 7986 7987// Status code returns the HTTP status code for the request's response error. 7988func (s *DeploymentConfigLimitExceededException) StatusCode() int { 7989 return s.RespMetadata.StatusCode 7990} 7991 7992// RequestID returns the service's response RequestID for request. 7993func (s *DeploymentConfigLimitExceededException) RequestID() string { 7994 return s.RespMetadata.RequestID 7995} 7996 7997// The deployment configuration name was not specified. 7998type DeploymentConfigNameRequiredException struct { 7999 _ struct{} `type:"structure"` 8000 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 8001 8002 Message_ *string `locationName:"message" type:"string"` 8003} 8004 8005// String returns the string representation 8006func (s DeploymentConfigNameRequiredException) String() string { 8007 return awsutil.Prettify(s) 8008} 8009 8010// GoString returns the string representation 8011func (s DeploymentConfigNameRequiredException) GoString() string { 8012 return s.String() 8013} 8014 8015func newErrorDeploymentConfigNameRequiredException(v protocol.ResponseMetadata) error { 8016 return &DeploymentConfigNameRequiredException{ 8017 RespMetadata: v, 8018 } 8019} 8020 8021// Code returns the exception type name. 8022func (s *DeploymentConfigNameRequiredException) Code() string { 8023 return "DeploymentConfigNameRequiredException" 8024} 8025 8026// Message returns the exception's message. 8027func (s *DeploymentConfigNameRequiredException) Message() string { 8028 if s.Message_ != nil { 8029 return *s.Message_ 8030 } 8031 return "" 8032} 8033 8034// OrigErr always returns nil, satisfies awserr.Error interface. 8035func (s *DeploymentConfigNameRequiredException) OrigErr() error { 8036 return nil 8037} 8038 8039func (s *DeploymentConfigNameRequiredException) Error() string { 8040 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 8041} 8042 8043// Status code returns the HTTP status code for the request's response error. 8044func (s *DeploymentConfigNameRequiredException) StatusCode() int { 8045 return s.RespMetadata.StatusCode 8046} 8047 8048// RequestID returns the service's response RequestID for request. 8049func (s *DeploymentConfigNameRequiredException) RequestID() string { 8050 return s.RespMetadata.RequestID 8051} 8052 8053// The deployment with the IAM user or AWS account does not exist. 8054type DeploymentDoesNotExistException struct { 8055 _ struct{} `type:"structure"` 8056 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 8057 8058 Message_ *string `locationName:"message" type:"string"` 8059} 8060 8061// String returns the string representation 8062func (s DeploymentDoesNotExistException) String() string { 8063 return awsutil.Prettify(s) 8064} 8065 8066// GoString returns the string representation 8067func (s DeploymentDoesNotExistException) GoString() string { 8068 return s.String() 8069} 8070 8071func newErrorDeploymentDoesNotExistException(v protocol.ResponseMetadata) error { 8072 return &DeploymentDoesNotExistException{ 8073 RespMetadata: v, 8074 } 8075} 8076 8077// Code returns the exception type name. 8078func (s *DeploymentDoesNotExistException) Code() string { 8079 return "DeploymentDoesNotExistException" 8080} 8081 8082// Message returns the exception's message. 8083func (s *DeploymentDoesNotExistException) Message() string { 8084 if s.Message_ != nil { 8085 return *s.Message_ 8086 } 8087 return "" 8088} 8089 8090// OrigErr always returns nil, satisfies awserr.Error interface. 8091func (s *DeploymentDoesNotExistException) OrigErr() error { 8092 return nil 8093} 8094 8095func (s *DeploymentDoesNotExistException) Error() string { 8096 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 8097} 8098 8099// Status code returns the HTTP status code for the request's response error. 8100func (s *DeploymentDoesNotExistException) StatusCode() int { 8101 return s.RespMetadata.StatusCode 8102} 8103 8104// RequestID returns the service's response RequestID for request. 8105func (s *DeploymentDoesNotExistException) RequestID() string { 8106 return s.RespMetadata.RequestID 8107} 8108 8109// A deployment group with the specified name with the IAM user or AWS account 8110// already exists. 8111type DeploymentGroupAlreadyExistsException struct { 8112 _ struct{} `type:"structure"` 8113 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 8114 8115 Message_ *string `locationName:"message" type:"string"` 8116} 8117 8118// String returns the string representation 8119func (s DeploymentGroupAlreadyExistsException) String() string { 8120 return awsutil.Prettify(s) 8121} 8122 8123// GoString returns the string representation 8124func (s DeploymentGroupAlreadyExistsException) GoString() string { 8125 return s.String() 8126} 8127 8128func newErrorDeploymentGroupAlreadyExistsException(v protocol.ResponseMetadata) error { 8129 return &DeploymentGroupAlreadyExistsException{ 8130 RespMetadata: v, 8131 } 8132} 8133 8134// Code returns the exception type name. 8135func (s *DeploymentGroupAlreadyExistsException) Code() string { 8136 return "DeploymentGroupAlreadyExistsException" 8137} 8138 8139// Message returns the exception's message. 8140func (s *DeploymentGroupAlreadyExistsException) Message() string { 8141 if s.Message_ != nil { 8142 return *s.Message_ 8143 } 8144 return "" 8145} 8146 8147// OrigErr always returns nil, satisfies awserr.Error interface. 8148func (s *DeploymentGroupAlreadyExistsException) OrigErr() error { 8149 return nil 8150} 8151 8152func (s *DeploymentGroupAlreadyExistsException) Error() string { 8153 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 8154} 8155 8156// Status code returns the HTTP status code for the request's response error. 8157func (s *DeploymentGroupAlreadyExistsException) StatusCode() int { 8158 return s.RespMetadata.StatusCode 8159} 8160 8161// RequestID returns the service's response RequestID for request. 8162func (s *DeploymentGroupAlreadyExistsException) RequestID() string { 8163 return s.RespMetadata.RequestID 8164} 8165 8166// The named deployment group with the IAM user or AWS account does not exist. 8167type DeploymentGroupDoesNotExistException struct { 8168 _ struct{} `type:"structure"` 8169 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 8170 8171 Message_ *string `locationName:"message" type:"string"` 8172} 8173 8174// String returns the string representation 8175func (s DeploymentGroupDoesNotExistException) String() string { 8176 return awsutil.Prettify(s) 8177} 8178 8179// GoString returns the string representation 8180func (s DeploymentGroupDoesNotExistException) GoString() string { 8181 return s.String() 8182} 8183 8184func newErrorDeploymentGroupDoesNotExistException(v protocol.ResponseMetadata) error { 8185 return &DeploymentGroupDoesNotExistException{ 8186 RespMetadata: v, 8187 } 8188} 8189 8190// Code returns the exception type name. 8191func (s *DeploymentGroupDoesNotExistException) Code() string { 8192 return "DeploymentGroupDoesNotExistException" 8193} 8194 8195// Message returns the exception's message. 8196func (s *DeploymentGroupDoesNotExistException) Message() string { 8197 if s.Message_ != nil { 8198 return *s.Message_ 8199 } 8200 return "" 8201} 8202 8203// OrigErr always returns nil, satisfies awserr.Error interface. 8204func (s *DeploymentGroupDoesNotExistException) OrigErr() error { 8205 return nil 8206} 8207 8208func (s *DeploymentGroupDoesNotExistException) Error() string { 8209 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 8210} 8211 8212// Status code returns the HTTP status code for the request's response error. 8213func (s *DeploymentGroupDoesNotExistException) StatusCode() int { 8214 return s.RespMetadata.StatusCode 8215} 8216 8217// RequestID returns the service's response RequestID for request. 8218func (s *DeploymentGroupDoesNotExistException) RequestID() string { 8219 return s.RespMetadata.RequestID 8220} 8221 8222// Information about a deployment group. 8223type DeploymentGroupInfo struct { 8224 _ struct{} `type:"structure"` 8225 8226 // A list of alarms associated with the deployment group. 8227 AlarmConfiguration *AlarmConfiguration `locationName:"alarmConfiguration" type:"structure"` 8228 8229 // The application name. 8230 ApplicationName *string `locationName:"applicationName" min:"1" type:"string"` 8231 8232 // Information about the automatic rollback configuration associated with the 8233 // deployment group. 8234 AutoRollbackConfiguration *AutoRollbackConfiguration `locationName:"autoRollbackConfiguration" type:"structure"` 8235 8236 // A list of associated Auto Scaling groups. 8237 AutoScalingGroups []*AutoScalingGroup `locationName:"autoScalingGroups" type:"list"` 8238 8239 // Information about blue/green deployment options for a deployment group. 8240 BlueGreenDeploymentConfiguration *BlueGreenDeploymentConfiguration `locationName:"blueGreenDeploymentConfiguration" type:"structure"` 8241 8242 // The destination platform type for the deployment (Lambda, Server, or ECS). 8243 ComputePlatform *string `locationName:"computePlatform" type:"string" enum:"ComputePlatform"` 8244 8245 // The deployment configuration name. 8246 DeploymentConfigName *string `locationName:"deploymentConfigName" min:"1" type:"string"` 8247 8248 // The deployment group ID. 8249 DeploymentGroupId *string `locationName:"deploymentGroupId" type:"string"` 8250 8251 // The deployment group name. 8252 DeploymentGroupName *string `locationName:"deploymentGroupName" min:"1" type:"string"` 8253 8254 // Information about the type of deployment, either in-place or blue/green, 8255 // you want to run and whether to route deployment traffic behind a load balancer. 8256 DeploymentStyle *DeploymentStyle `locationName:"deploymentStyle" type:"structure"` 8257 8258 // The Amazon EC2 tags on which to filter. The deployment group includes EC2 8259 // instances with any of the specified tags. 8260 Ec2TagFilters []*EC2TagFilter `locationName:"ec2TagFilters" type:"list"` 8261 8262 // Information about groups of tags applied to an EC2 instance. The deployment 8263 // group includes only EC2 instances identified by all of the tag groups. Cannot 8264 // be used in the same call as ec2TagFilters. 8265 Ec2TagSet *EC2TagSet `locationName:"ec2TagSet" type:"structure"` 8266 8267 // The target Amazon ECS services in the deployment group. This applies only 8268 // to deployment groups that use the Amazon ECS compute platform. A target Amazon 8269 // ECS service is specified as an Amazon ECS cluster and service name pair using 8270 // the format <clustername>:<servicename>. 8271 EcsServices []*ECSService `locationName:"ecsServices" type:"list"` 8272 8273 // Information about the most recent attempted deployment to the deployment 8274 // group. 8275 LastAttemptedDeployment *LastDeploymentInfo `locationName:"lastAttemptedDeployment" type:"structure"` 8276 8277 // Information about the most recent successful deployment to the deployment 8278 // group. 8279 LastSuccessfulDeployment *LastDeploymentInfo `locationName:"lastSuccessfulDeployment" type:"structure"` 8280 8281 // Information about the load balancer to use in a deployment. 8282 LoadBalancerInfo *LoadBalancerInfo `locationName:"loadBalancerInfo" type:"structure"` 8283 8284 // The on-premises instance tags on which to filter. The deployment group includes 8285 // on-premises instances with any of the specified tags. 8286 OnPremisesInstanceTagFilters []*TagFilter `locationName:"onPremisesInstanceTagFilters" type:"list"` 8287 8288 // Information about groups of tags applied to an on-premises instance. The 8289 // deployment group includes only on-premises instances identified by all the 8290 // tag groups. Cannot be used in the same call as onPremisesInstanceTagFilters. 8291 OnPremisesTagSet *OnPremisesTagSet `locationName:"onPremisesTagSet" type:"structure"` 8292 8293 // A service role Amazon Resource Name (ARN) that grants CodeDeploy permission 8294 // to make calls to AWS services on your behalf. For more information, see Create 8295 // a Service Role for AWS CodeDeploy (https://docs.aws.amazon.com/codedeploy/latest/userguide/getting-started-create-service-role.html) 8296 // in the AWS CodeDeploy User Guide. 8297 ServiceRoleArn *string `locationName:"serviceRoleArn" type:"string"` 8298 8299 // Information about the deployment group's target revision, including type 8300 // and location. 8301 TargetRevision *RevisionLocation `locationName:"targetRevision" type:"structure"` 8302 8303 // Information about triggers associated with the deployment group. 8304 TriggerConfigurations []*TriggerConfig `locationName:"triggerConfigurations" type:"list"` 8305} 8306 8307// String returns the string representation 8308func (s DeploymentGroupInfo) String() string { 8309 return awsutil.Prettify(s) 8310} 8311 8312// GoString returns the string representation 8313func (s DeploymentGroupInfo) GoString() string { 8314 return s.String() 8315} 8316 8317// SetAlarmConfiguration sets the AlarmConfiguration field's value. 8318func (s *DeploymentGroupInfo) SetAlarmConfiguration(v *AlarmConfiguration) *DeploymentGroupInfo { 8319 s.AlarmConfiguration = v 8320 return s 8321} 8322 8323// SetApplicationName sets the ApplicationName field's value. 8324func (s *DeploymentGroupInfo) SetApplicationName(v string) *DeploymentGroupInfo { 8325 s.ApplicationName = &v 8326 return s 8327} 8328 8329// SetAutoRollbackConfiguration sets the AutoRollbackConfiguration field's value. 8330func (s *DeploymentGroupInfo) SetAutoRollbackConfiguration(v *AutoRollbackConfiguration) *DeploymentGroupInfo { 8331 s.AutoRollbackConfiguration = v 8332 return s 8333} 8334 8335// SetAutoScalingGroups sets the AutoScalingGroups field's value. 8336func (s *DeploymentGroupInfo) SetAutoScalingGroups(v []*AutoScalingGroup) *DeploymentGroupInfo { 8337 s.AutoScalingGroups = v 8338 return s 8339} 8340 8341// SetBlueGreenDeploymentConfiguration sets the BlueGreenDeploymentConfiguration field's value. 8342func (s *DeploymentGroupInfo) SetBlueGreenDeploymentConfiguration(v *BlueGreenDeploymentConfiguration) *DeploymentGroupInfo { 8343 s.BlueGreenDeploymentConfiguration = v 8344 return s 8345} 8346 8347// SetComputePlatform sets the ComputePlatform field's value. 8348func (s *DeploymentGroupInfo) SetComputePlatform(v string) *DeploymentGroupInfo { 8349 s.ComputePlatform = &v 8350 return s 8351} 8352 8353// SetDeploymentConfigName sets the DeploymentConfigName field's value. 8354func (s *DeploymentGroupInfo) SetDeploymentConfigName(v string) *DeploymentGroupInfo { 8355 s.DeploymentConfigName = &v 8356 return s 8357} 8358 8359// SetDeploymentGroupId sets the DeploymentGroupId field's value. 8360func (s *DeploymentGroupInfo) SetDeploymentGroupId(v string) *DeploymentGroupInfo { 8361 s.DeploymentGroupId = &v 8362 return s 8363} 8364 8365// SetDeploymentGroupName sets the DeploymentGroupName field's value. 8366func (s *DeploymentGroupInfo) SetDeploymentGroupName(v string) *DeploymentGroupInfo { 8367 s.DeploymentGroupName = &v 8368 return s 8369} 8370 8371// SetDeploymentStyle sets the DeploymentStyle field's value. 8372func (s *DeploymentGroupInfo) SetDeploymentStyle(v *DeploymentStyle) *DeploymentGroupInfo { 8373 s.DeploymentStyle = v 8374 return s 8375} 8376 8377// SetEc2TagFilters sets the Ec2TagFilters field's value. 8378func (s *DeploymentGroupInfo) SetEc2TagFilters(v []*EC2TagFilter) *DeploymentGroupInfo { 8379 s.Ec2TagFilters = v 8380 return s 8381} 8382 8383// SetEc2TagSet sets the Ec2TagSet field's value. 8384func (s *DeploymentGroupInfo) SetEc2TagSet(v *EC2TagSet) *DeploymentGroupInfo { 8385 s.Ec2TagSet = v 8386 return s 8387} 8388 8389// SetEcsServices sets the EcsServices field's value. 8390func (s *DeploymentGroupInfo) SetEcsServices(v []*ECSService) *DeploymentGroupInfo { 8391 s.EcsServices = v 8392 return s 8393} 8394 8395// SetLastAttemptedDeployment sets the LastAttemptedDeployment field's value. 8396func (s *DeploymentGroupInfo) SetLastAttemptedDeployment(v *LastDeploymentInfo) *DeploymentGroupInfo { 8397 s.LastAttemptedDeployment = v 8398 return s 8399} 8400 8401// SetLastSuccessfulDeployment sets the LastSuccessfulDeployment field's value. 8402func (s *DeploymentGroupInfo) SetLastSuccessfulDeployment(v *LastDeploymentInfo) *DeploymentGroupInfo { 8403 s.LastSuccessfulDeployment = v 8404 return s 8405} 8406 8407// SetLoadBalancerInfo sets the LoadBalancerInfo field's value. 8408func (s *DeploymentGroupInfo) SetLoadBalancerInfo(v *LoadBalancerInfo) *DeploymentGroupInfo { 8409 s.LoadBalancerInfo = v 8410 return s 8411} 8412 8413// SetOnPremisesInstanceTagFilters sets the OnPremisesInstanceTagFilters field's value. 8414func (s *DeploymentGroupInfo) SetOnPremisesInstanceTagFilters(v []*TagFilter) *DeploymentGroupInfo { 8415 s.OnPremisesInstanceTagFilters = v 8416 return s 8417} 8418 8419// SetOnPremisesTagSet sets the OnPremisesTagSet field's value. 8420func (s *DeploymentGroupInfo) SetOnPremisesTagSet(v *OnPremisesTagSet) *DeploymentGroupInfo { 8421 s.OnPremisesTagSet = v 8422 return s 8423} 8424 8425// SetServiceRoleArn sets the ServiceRoleArn field's value. 8426func (s *DeploymentGroupInfo) SetServiceRoleArn(v string) *DeploymentGroupInfo { 8427 s.ServiceRoleArn = &v 8428 return s 8429} 8430 8431// SetTargetRevision sets the TargetRevision field's value. 8432func (s *DeploymentGroupInfo) SetTargetRevision(v *RevisionLocation) *DeploymentGroupInfo { 8433 s.TargetRevision = v 8434 return s 8435} 8436 8437// SetTriggerConfigurations sets the TriggerConfigurations field's value. 8438func (s *DeploymentGroupInfo) SetTriggerConfigurations(v []*TriggerConfig) *DeploymentGroupInfo { 8439 s.TriggerConfigurations = v 8440 return s 8441} 8442 8443// The deployment groups limit was exceeded. 8444type DeploymentGroupLimitExceededException struct { 8445 _ struct{} `type:"structure"` 8446 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 8447 8448 Message_ *string `locationName:"message" type:"string"` 8449} 8450 8451// String returns the string representation 8452func (s DeploymentGroupLimitExceededException) String() string { 8453 return awsutil.Prettify(s) 8454} 8455 8456// GoString returns the string representation 8457func (s DeploymentGroupLimitExceededException) GoString() string { 8458 return s.String() 8459} 8460 8461func newErrorDeploymentGroupLimitExceededException(v protocol.ResponseMetadata) error { 8462 return &DeploymentGroupLimitExceededException{ 8463 RespMetadata: v, 8464 } 8465} 8466 8467// Code returns the exception type name. 8468func (s *DeploymentGroupLimitExceededException) Code() string { 8469 return "DeploymentGroupLimitExceededException" 8470} 8471 8472// Message returns the exception's message. 8473func (s *DeploymentGroupLimitExceededException) Message() string { 8474 if s.Message_ != nil { 8475 return *s.Message_ 8476 } 8477 return "" 8478} 8479 8480// OrigErr always returns nil, satisfies awserr.Error interface. 8481func (s *DeploymentGroupLimitExceededException) OrigErr() error { 8482 return nil 8483} 8484 8485func (s *DeploymentGroupLimitExceededException) Error() string { 8486 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 8487} 8488 8489// Status code returns the HTTP status code for the request's response error. 8490func (s *DeploymentGroupLimitExceededException) StatusCode() int { 8491 return s.RespMetadata.StatusCode 8492} 8493 8494// RequestID returns the service's response RequestID for request. 8495func (s *DeploymentGroupLimitExceededException) RequestID() string { 8496 return s.RespMetadata.RequestID 8497} 8498 8499// The deployment group name was not specified. 8500type DeploymentGroupNameRequiredException struct { 8501 _ struct{} `type:"structure"` 8502 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 8503 8504 Message_ *string `locationName:"message" type:"string"` 8505} 8506 8507// String returns the string representation 8508func (s DeploymentGroupNameRequiredException) String() string { 8509 return awsutil.Prettify(s) 8510} 8511 8512// GoString returns the string representation 8513func (s DeploymentGroupNameRequiredException) GoString() string { 8514 return s.String() 8515} 8516 8517func newErrorDeploymentGroupNameRequiredException(v protocol.ResponseMetadata) error { 8518 return &DeploymentGroupNameRequiredException{ 8519 RespMetadata: v, 8520 } 8521} 8522 8523// Code returns the exception type name. 8524func (s *DeploymentGroupNameRequiredException) Code() string { 8525 return "DeploymentGroupNameRequiredException" 8526} 8527 8528// Message returns the exception's message. 8529func (s *DeploymentGroupNameRequiredException) Message() string { 8530 if s.Message_ != nil { 8531 return *s.Message_ 8532 } 8533 return "" 8534} 8535 8536// OrigErr always returns nil, satisfies awserr.Error interface. 8537func (s *DeploymentGroupNameRequiredException) OrigErr() error { 8538 return nil 8539} 8540 8541func (s *DeploymentGroupNameRequiredException) Error() string { 8542 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 8543} 8544 8545// Status code returns the HTTP status code for the request's response error. 8546func (s *DeploymentGroupNameRequiredException) StatusCode() int { 8547 return s.RespMetadata.StatusCode 8548} 8549 8550// RequestID returns the service's response RequestID for request. 8551func (s *DeploymentGroupNameRequiredException) RequestID() string { 8552 return s.RespMetadata.RequestID 8553} 8554 8555// At least one deployment ID must be specified. 8556type DeploymentIdRequiredException struct { 8557 _ struct{} `type:"structure"` 8558 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 8559 8560 Message_ *string `locationName:"message" type:"string"` 8561} 8562 8563// String returns the string representation 8564func (s DeploymentIdRequiredException) String() string { 8565 return awsutil.Prettify(s) 8566} 8567 8568// GoString returns the string representation 8569func (s DeploymentIdRequiredException) GoString() string { 8570 return s.String() 8571} 8572 8573func newErrorDeploymentIdRequiredException(v protocol.ResponseMetadata) error { 8574 return &DeploymentIdRequiredException{ 8575 RespMetadata: v, 8576 } 8577} 8578 8579// Code returns the exception type name. 8580func (s *DeploymentIdRequiredException) Code() string { 8581 return "DeploymentIdRequiredException" 8582} 8583 8584// Message returns the exception's message. 8585func (s *DeploymentIdRequiredException) Message() string { 8586 if s.Message_ != nil { 8587 return *s.Message_ 8588 } 8589 return "" 8590} 8591 8592// OrigErr always returns nil, satisfies awserr.Error interface. 8593func (s *DeploymentIdRequiredException) OrigErr() error { 8594 return nil 8595} 8596 8597func (s *DeploymentIdRequiredException) Error() string { 8598 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 8599} 8600 8601// Status code returns the HTTP status code for the request's response error. 8602func (s *DeploymentIdRequiredException) StatusCode() int { 8603 return s.RespMetadata.StatusCode 8604} 8605 8606// RequestID returns the service's response RequestID for request. 8607func (s *DeploymentIdRequiredException) RequestID() string { 8608 return s.RespMetadata.RequestID 8609} 8610 8611// Information about a deployment. 8612type DeploymentInfo struct { 8613 _ struct{} `type:"structure"` 8614 8615 // Provides information about the results of a deployment, such as whether instances 8616 // in the original environment in a blue/green deployment were not terminated. 8617 AdditionalDeploymentStatusInfo *string `locationName:"additionalDeploymentStatusInfo" deprecated:"true" type:"string"` 8618 8619 // The application name. 8620 ApplicationName *string `locationName:"applicationName" min:"1" type:"string"` 8621 8622 // Information about the automatic rollback configuration associated with the 8623 // deployment. 8624 AutoRollbackConfiguration *AutoRollbackConfiguration `locationName:"autoRollbackConfiguration" type:"structure"` 8625 8626 // Information about blue/green deployment options for this deployment. 8627 BlueGreenDeploymentConfiguration *BlueGreenDeploymentConfiguration `locationName:"blueGreenDeploymentConfiguration" type:"structure"` 8628 8629 // A timestamp that indicates when the deployment was complete. 8630 CompleteTime *time.Time `locationName:"completeTime" type:"timestamp"` 8631 8632 // The destination platform type for the deployment (Lambda, Server, or ECS). 8633 ComputePlatform *string `locationName:"computePlatform" type:"string" enum:"ComputePlatform"` 8634 8635 // A timestamp that indicates when the deployment was created. 8636 CreateTime *time.Time `locationName:"createTime" type:"timestamp"` 8637 8638 // The means by which the deployment was created: 8639 // 8640 // * user: A user created the deployment. 8641 // 8642 // * autoscaling: Amazon EC2 Auto Scaling created the deployment. 8643 // 8644 // * codeDeployRollback: A rollback process created the deployment. 8645 Creator *string `locationName:"creator" type:"string" enum:"DeploymentCreator"` 8646 8647 // The deployment configuration name. 8648 DeploymentConfigName *string `locationName:"deploymentConfigName" min:"1" type:"string"` 8649 8650 // The deployment group name. 8651 DeploymentGroupName *string `locationName:"deploymentGroupName" min:"1" type:"string"` 8652 8653 // The unique ID of a deployment. 8654 DeploymentId *string `locationName:"deploymentId" type:"string"` 8655 8656 // A summary of the deployment status of the instances in the deployment. 8657 DeploymentOverview *DeploymentOverview `locationName:"deploymentOverview" type:"structure"` 8658 8659 // Messages that contain information about the status of a deployment. 8660 DeploymentStatusMessages []*string `locationName:"deploymentStatusMessages" type:"list"` 8661 8662 // Information about the type of deployment, either in-place or blue/green, 8663 // you want to run and whether to route deployment traffic behind a load balancer. 8664 DeploymentStyle *DeploymentStyle `locationName:"deploymentStyle" type:"structure"` 8665 8666 // A comment about the deployment. 8667 Description *string `locationName:"description" type:"string"` 8668 8669 // Information about any error associated with this deployment. 8670 ErrorInformation *ErrorInformation `locationName:"errorInformation" type:"structure"` 8671 8672 // The unique ID for an external resource (for example, a CloudFormation stack 8673 // ID) that is linked to this deployment. 8674 ExternalId *string `locationName:"externalId" type:"string"` 8675 8676 // Information about how AWS CodeDeploy handles files that already exist in 8677 // a deployment target location but weren't part of the previous successful 8678 // deployment. 8679 // 8680 // * DISALLOW: The deployment fails. This is also the default behavior if 8681 // no option is specified. 8682 // 8683 // * OVERWRITE: The version of the file from the application revision currently 8684 // being deployed replaces the version already on the instance. 8685 // 8686 // * RETAIN: The version of the file already on the instance is kept and 8687 // used as part of the new deployment. 8688 FileExistsBehavior *string `locationName:"fileExistsBehavior" type:"string" enum:"FileExistsBehavior"` 8689 8690 // If true, then if an ApplicationStop, BeforeBlockTraffic, or AfterBlockTraffic 8691 // deployment lifecycle event to an instance fails, then the deployment continues 8692 // to the next deployment lifecycle event. For example, if ApplicationStop fails, 8693 // the deployment continues with DownloadBundle. If BeforeBlockTraffic fails, 8694 // the deployment continues with BlockTraffic. If AfterBlockTraffic fails, the 8695 // deployment continues with ApplicationStop. 8696 // 8697 // If false or not specified, then if a lifecycle event fails during a deployment 8698 // to an instance, that deployment fails. If deployment to that instance is 8699 // part of an overall deployment and the number of healthy hosts is not less 8700 // than the minimum number of healthy hosts, then a deployment to the next instance 8701 // is attempted. 8702 // 8703 // During a deployment, the AWS CodeDeploy agent runs the scripts specified 8704 // for ApplicationStop, BeforeBlockTraffic, and AfterBlockTraffic in the AppSpec 8705 // file from the previous successful deployment. (All other scripts are run 8706 // from the AppSpec file in the current deployment.) If one of these scripts 8707 // contains an error and does not run successfully, the deployment can fail. 8708 // 8709 // If the cause of the failure is a script from the last successful deployment 8710 // that will never run successfully, create a new deployment and use ignoreApplicationStopFailures 8711 // to specify that the ApplicationStop, BeforeBlockTraffic, and AfterBlockTraffic 8712 // failures should be ignored. 8713 IgnoreApplicationStopFailures *bool `locationName:"ignoreApplicationStopFailures" type:"boolean"` 8714 8715 // Indicates whether the wait period set for the termination of instances in 8716 // the original environment has started. Status is 'false' if the KEEP_ALIVE 8717 // option is specified. Otherwise, 'true' as soon as the termination wait period 8718 // starts. 8719 InstanceTerminationWaitTimeStarted *bool `locationName:"instanceTerminationWaitTimeStarted" type:"boolean"` 8720 8721 // Information about the load balancer used in the deployment. 8722 LoadBalancerInfo *LoadBalancerInfo `locationName:"loadBalancerInfo" type:"structure"` 8723 8724 // Information about the application revision that was deployed to the deployment 8725 // group before the most recent successful deployment. 8726 PreviousRevision *RevisionLocation `locationName:"previousRevision" type:"structure"` 8727 8728 // Information about the location of stored application artifacts and the service 8729 // from which to retrieve them. 8730 Revision *RevisionLocation `locationName:"revision" type:"structure"` 8731 8732 // Information about a deployment rollback. 8733 RollbackInfo *RollbackInfo `locationName:"rollbackInfo" type:"structure"` 8734 8735 // A timestamp that indicates when the deployment was deployed to the deployment 8736 // group. 8737 // 8738 // In some cases, the reported value of the start time might be later than the 8739 // complete time. This is due to differences in the clock settings of backend 8740 // servers that participate in the deployment process. 8741 StartTime *time.Time `locationName:"startTime" type:"timestamp"` 8742 8743 // The current state of the deployment as a whole. 8744 Status *string `locationName:"status" type:"string" enum:"DeploymentStatus"` 8745 8746 // Information about the instances that belong to the replacement environment 8747 // in a blue/green deployment. 8748 TargetInstances *TargetInstances `locationName:"targetInstances" type:"structure"` 8749 8750 // Indicates whether only instances that are not running the latest application 8751 // revision are to be deployed to. 8752 UpdateOutdatedInstancesOnly *bool `locationName:"updateOutdatedInstancesOnly" type:"boolean"` 8753} 8754 8755// String returns the string representation 8756func (s DeploymentInfo) String() string { 8757 return awsutil.Prettify(s) 8758} 8759 8760// GoString returns the string representation 8761func (s DeploymentInfo) GoString() string { 8762 return s.String() 8763} 8764 8765// SetAdditionalDeploymentStatusInfo sets the AdditionalDeploymentStatusInfo field's value. 8766func (s *DeploymentInfo) SetAdditionalDeploymentStatusInfo(v string) *DeploymentInfo { 8767 s.AdditionalDeploymentStatusInfo = &v 8768 return s 8769} 8770 8771// SetApplicationName sets the ApplicationName field's value. 8772func (s *DeploymentInfo) SetApplicationName(v string) *DeploymentInfo { 8773 s.ApplicationName = &v 8774 return s 8775} 8776 8777// SetAutoRollbackConfiguration sets the AutoRollbackConfiguration field's value. 8778func (s *DeploymentInfo) SetAutoRollbackConfiguration(v *AutoRollbackConfiguration) *DeploymentInfo { 8779 s.AutoRollbackConfiguration = v 8780 return s 8781} 8782 8783// SetBlueGreenDeploymentConfiguration sets the BlueGreenDeploymentConfiguration field's value. 8784func (s *DeploymentInfo) SetBlueGreenDeploymentConfiguration(v *BlueGreenDeploymentConfiguration) *DeploymentInfo { 8785 s.BlueGreenDeploymentConfiguration = v 8786 return s 8787} 8788 8789// SetCompleteTime sets the CompleteTime field's value. 8790func (s *DeploymentInfo) SetCompleteTime(v time.Time) *DeploymentInfo { 8791 s.CompleteTime = &v 8792 return s 8793} 8794 8795// SetComputePlatform sets the ComputePlatform field's value. 8796func (s *DeploymentInfo) SetComputePlatform(v string) *DeploymentInfo { 8797 s.ComputePlatform = &v 8798 return s 8799} 8800 8801// SetCreateTime sets the CreateTime field's value. 8802func (s *DeploymentInfo) SetCreateTime(v time.Time) *DeploymentInfo { 8803 s.CreateTime = &v 8804 return s 8805} 8806 8807// SetCreator sets the Creator field's value. 8808func (s *DeploymentInfo) SetCreator(v string) *DeploymentInfo { 8809 s.Creator = &v 8810 return s 8811} 8812 8813// SetDeploymentConfigName sets the DeploymentConfigName field's value. 8814func (s *DeploymentInfo) SetDeploymentConfigName(v string) *DeploymentInfo { 8815 s.DeploymentConfigName = &v 8816 return s 8817} 8818 8819// SetDeploymentGroupName sets the DeploymentGroupName field's value. 8820func (s *DeploymentInfo) SetDeploymentGroupName(v string) *DeploymentInfo { 8821 s.DeploymentGroupName = &v 8822 return s 8823} 8824 8825// SetDeploymentId sets the DeploymentId field's value. 8826func (s *DeploymentInfo) SetDeploymentId(v string) *DeploymentInfo { 8827 s.DeploymentId = &v 8828 return s 8829} 8830 8831// SetDeploymentOverview sets the DeploymentOverview field's value. 8832func (s *DeploymentInfo) SetDeploymentOverview(v *DeploymentOverview) *DeploymentInfo { 8833 s.DeploymentOverview = v 8834 return s 8835} 8836 8837// SetDeploymentStatusMessages sets the DeploymentStatusMessages field's value. 8838func (s *DeploymentInfo) SetDeploymentStatusMessages(v []*string) *DeploymentInfo { 8839 s.DeploymentStatusMessages = v 8840 return s 8841} 8842 8843// SetDeploymentStyle sets the DeploymentStyle field's value. 8844func (s *DeploymentInfo) SetDeploymentStyle(v *DeploymentStyle) *DeploymentInfo { 8845 s.DeploymentStyle = v 8846 return s 8847} 8848 8849// SetDescription sets the Description field's value. 8850func (s *DeploymentInfo) SetDescription(v string) *DeploymentInfo { 8851 s.Description = &v 8852 return s 8853} 8854 8855// SetErrorInformation sets the ErrorInformation field's value. 8856func (s *DeploymentInfo) SetErrorInformation(v *ErrorInformation) *DeploymentInfo { 8857 s.ErrorInformation = v 8858 return s 8859} 8860 8861// SetExternalId sets the ExternalId field's value. 8862func (s *DeploymentInfo) SetExternalId(v string) *DeploymentInfo { 8863 s.ExternalId = &v 8864 return s 8865} 8866 8867// SetFileExistsBehavior sets the FileExistsBehavior field's value. 8868func (s *DeploymentInfo) SetFileExistsBehavior(v string) *DeploymentInfo { 8869 s.FileExistsBehavior = &v 8870 return s 8871} 8872 8873// SetIgnoreApplicationStopFailures sets the IgnoreApplicationStopFailures field's value. 8874func (s *DeploymentInfo) SetIgnoreApplicationStopFailures(v bool) *DeploymentInfo { 8875 s.IgnoreApplicationStopFailures = &v 8876 return s 8877} 8878 8879// SetInstanceTerminationWaitTimeStarted sets the InstanceTerminationWaitTimeStarted field's value. 8880func (s *DeploymentInfo) SetInstanceTerminationWaitTimeStarted(v bool) *DeploymentInfo { 8881 s.InstanceTerminationWaitTimeStarted = &v 8882 return s 8883} 8884 8885// SetLoadBalancerInfo sets the LoadBalancerInfo field's value. 8886func (s *DeploymentInfo) SetLoadBalancerInfo(v *LoadBalancerInfo) *DeploymentInfo { 8887 s.LoadBalancerInfo = v 8888 return s 8889} 8890 8891// SetPreviousRevision sets the PreviousRevision field's value. 8892func (s *DeploymentInfo) SetPreviousRevision(v *RevisionLocation) *DeploymentInfo { 8893 s.PreviousRevision = v 8894 return s 8895} 8896 8897// SetRevision sets the Revision field's value. 8898func (s *DeploymentInfo) SetRevision(v *RevisionLocation) *DeploymentInfo { 8899 s.Revision = v 8900 return s 8901} 8902 8903// SetRollbackInfo sets the RollbackInfo field's value. 8904func (s *DeploymentInfo) SetRollbackInfo(v *RollbackInfo) *DeploymentInfo { 8905 s.RollbackInfo = v 8906 return s 8907} 8908 8909// SetStartTime sets the StartTime field's value. 8910func (s *DeploymentInfo) SetStartTime(v time.Time) *DeploymentInfo { 8911 s.StartTime = &v 8912 return s 8913} 8914 8915// SetStatus sets the Status field's value. 8916func (s *DeploymentInfo) SetStatus(v string) *DeploymentInfo { 8917 s.Status = &v 8918 return s 8919} 8920 8921// SetTargetInstances sets the TargetInstances field's value. 8922func (s *DeploymentInfo) SetTargetInstances(v *TargetInstances) *DeploymentInfo { 8923 s.TargetInstances = v 8924 return s 8925} 8926 8927// SetUpdateOutdatedInstancesOnly sets the UpdateOutdatedInstancesOnly field's value. 8928func (s *DeploymentInfo) SetUpdateOutdatedInstancesOnly(v bool) *DeploymentInfo { 8929 s.UpdateOutdatedInstancesOnly = &v 8930 return s 8931} 8932 8933// The deployment does not have a status of Ready and can't continue yet. 8934type DeploymentIsNotInReadyStateException struct { 8935 _ struct{} `type:"structure"` 8936 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 8937 8938 Message_ *string `locationName:"message" type:"string"` 8939} 8940 8941// String returns the string representation 8942func (s DeploymentIsNotInReadyStateException) String() string { 8943 return awsutil.Prettify(s) 8944} 8945 8946// GoString returns the string representation 8947func (s DeploymentIsNotInReadyStateException) GoString() string { 8948 return s.String() 8949} 8950 8951func newErrorDeploymentIsNotInReadyStateException(v protocol.ResponseMetadata) error { 8952 return &DeploymentIsNotInReadyStateException{ 8953 RespMetadata: v, 8954 } 8955} 8956 8957// Code returns the exception type name. 8958func (s *DeploymentIsNotInReadyStateException) Code() string { 8959 return "DeploymentIsNotInReadyStateException" 8960} 8961 8962// Message returns the exception's message. 8963func (s *DeploymentIsNotInReadyStateException) Message() string { 8964 if s.Message_ != nil { 8965 return *s.Message_ 8966 } 8967 return "" 8968} 8969 8970// OrigErr always returns nil, satisfies awserr.Error interface. 8971func (s *DeploymentIsNotInReadyStateException) OrigErr() error { 8972 return nil 8973} 8974 8975func (s *DeploymentIsNotInReadyStateException) Error() string { 8976 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 8977} 8978 8979// Status code returns the HTTP status code for the request's response error. 8980func (s *DeploymentIsNotInReadyStateException) StatusCode() int { 8981 return s.RespMetadata.StatusCode 8982} 8983 8984// RequestID returns the service's response RequestID for request. 8985func (s *DeploymentIsNotInReadyStateException) RequestID() string { 8986 return s.RespMetadata.RequestID 8987} 8988 8989// The number of allowed deployments was exceeded. 8990type DeploymentLimitExceededException struct { 8991 _ struct{} `type:"structure"` 8992 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 8993 8994 Message_ *string `locationName:"message" type:"string"` 8995} 8996 8997// String returns the string representation 8998func (s DeploymentLimitExceededException) String() string { 8999 return awsutil.Prettify(s) 9000} 9001 9002// GoString returns the string representation 9003func (s DeploymentLimitExceededException) GoString() string { 9004 return s.String() 9005} 9006 9007func newErrorDeploymentLimitExceededException(v protocol.ResponseMetadata) error { 9008 return &DeploymentLimitExceededException{ 9009 RespMetadata: v, 9010 } 9011} 9012 9013// Code returns the exception type name. 9014func (s *DeploymentLimitExceededException) Code() string { 9015 return "DeploymentLimitExceededException" 9016} 9017 9018// Message returns the exception's message. 9019func (s *DeploymentLimitExceededException) Message() string { 9020 if s.Message_ != nil { 9021 return *s.Message_ 9022 } 9023 return "" 9024} 9025 9026// OrigErr always returns nil, satisfies awserr.Error interface. 9027func (s *DeploymentLimitExceededException) OrigErr() error { 9028 return nil 9029} 9030 9031func (s *DeploymentLimitExceededException) Error() string { 9032 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 9033} 9034 9035// Status code returns the HTTP status code for the request's response error. 9036func (s *DeploymentLimitExceededException) StatusCode() int { 9037 return s.RespMetadata.StatusCode 9038} 9039 9040// RequestID returns the service's response RequestID for request. 9041func (s *DeploymentLimitExceededException) RequestID() string { 9042 return s.RespMetadata.RequestID 9043} 9044 9045// The specified deployment has not started. 9046type DeploymentNotStartedException struct { 9047 _ struct{} `type:"structure"` 9048 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 9049 9050 Message_ *string `locationName:"message" type:"string"` 9051} 9052 9053// String returns the string representation 9054func (s DeploymentNotStartedException) String() string { 9055 return awsutil.Prettify(s) 9056} 9057 9058// GoString returns the string representation 9059func (s DeploymentNotStartedException) GoString() string { 9060 return s.String() 9061} 9062 9063func newErrorDeploymentNotStartedException(v protocol.ResponseMetadata) error { 9064 return &DeploymentNotStartedException{ 9065 RespMetadata: v, 9066 } 9067} 9068 9069// Code returns the exception type name. 9070func (s *DeploymentNotStartedException) Code() string { 9071 return "DeploymentNotStartedException" 9072} 9073 9074// Message returns the exception's message. 9075func (s *DeploymentNotStartedException) Message() string { 9076 if s.Message_ != nil { 9077 return *s.Message_ 9078 } 9079 return "" 9080} 9081 9082// OrigErr always returns nil, satisfies awserr.Error interface. 9083func (s *DeploymentNotStartedException) OrigErr() error { 9084 return nil 9085} 9086 9087func (s *DeploymentNotStartedException) Error() string { 9088 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 9089} 9090 9091// Status code returns the HTTP status code for the request's response error. 9092func (s *DeploymentNotStartedException) StatusCode() int { 9093 return s.RespMetadata.StatusCode 9094} 9095 9096// RequestID returns the service's response RequestID for request. 9097func (s *DeploymentNotStartedException) RequestID() string { 9098 return s.RespMetadata.RequestID 9099} 9100 9101// Information about the deployment status of the instances in the deployment. 9102type DeploymentOverview struct { 9103 _ struct{} `type:"structure"` 9104 9105 // The number of instances in the deployment in a failed state. 9106 Failed *int64 `type:"long"` 9107 9108 // The number of instances in which the deployment is in progress. 9109 InProgress *int64 `type:"long"` 9110 9111 // The number of instances in the deployment in a pending state. 9112 Pending *int64 `type:"long"` 9113 9114 // The number of instances in a replacement environment ready to receive traffic 9115 // in a blue/green deployment. 9116 Ready *int64 `type:"long"` 9117 9118 // The number of instances in the deployment in a skipped state. 9119 Skipped *int64 `type:"long"` 9120 9121 // The number of instances in the deployment to which revisions have been successfully 9122 // deployed. 9123 Succeeded *int64 `type:"long"` 9124} 9125 9126// String returns the string representation 9127func (s DeploymentOverview) String() string { 9128 return awsutil.Prettify(s) 9129} 9130 9131// GoString returns the string representation 9132func (s DeploymentOverview) GoString() string { 9133 return s.String() 9134} 9135 9136// SetFailed sets the Failed field's value. 9137func (s *DeploymentOverview) SetFailed(v int64) *DeploymentOverview { 9138 s.Failed = &v 9139 return s 9140} 9141 9142// SetInProgress sets the InProgress field's value. 9143func (s *DeploymentOverview) SetInProgress(v int64) *DeploymentOverview { 9144 s.InProgress = &v 9145 return s 9146} 9147 9148// SetPending sets the Pending field's value. 9149func (s *DeploymentOverview) SetPending(v int64) *DeploymentOverview { 9150 s.Pending = &v 9151 return s 9152} 9153 9154// SetReady sets the Ready field's value. 9155func (s *DeploymentOverview) SetReady(v int64) *DeploymentOverview { 9156 s.Ready = &v 9157 return s 9158} 9159 9160// SetSkipped sets the Skipped field's value. 9161func (s *DeploymentOverview) SetSkipped(v int64) *DeploymentOverview { 9162 s.Skipped = &v 9163 return s 9164} 9165 9166// SetSucceeded sets the Succeeded field's value. 9167func (s *DeploymentOverview) SetSucceeded(v int64) *DeploymentOverview { 9168 s.Succeeded = &v 9169 return s 9170} 9171 9172// Information about how traffic is rerouted to instances in a replacement environment 9173// in a blue/green deployment. 9174type DeploymentReadyOption struct { 9175 _ struct{} `type:"structure"` 9176 9177 // Information about when to reroute traffic from an original environment to 9178 // a replacement environment in a blue/green deployment. 9179 // 9180 // * CONTINUE_DEPLOYMENT: Register new instances with the load balancer immediately 9181 // after the new application revision is installed on the instances in the 9182 // replacement environment. 9183 // 9184 // * STOP_DEPLOYMENT: Do not register new instances with a load balancer 9185 // unless traffic rerouting is started using ContinueDeployment. If traffic 9186 // rerouting is not started before the end of the specified wait period, 9187 // the deployment status is changed to Stopped. 9188 ActionOnTimeout *string `locationName:"actionOnTimeout" type:"string" enum:"DeploymentReadyAction"` 9189 9190 // The number of minutes to wait before the status of a blue/green deployment 9191 // is changed to Stopped if rerouting is not started manually. Applies only 9192 // to the STOP_DEPLOYMENT option for actionOnTimeout. 9193 WaitTimeInMinutes *int64 `locationName:"waitTimeInMinutes" type:"integer"` 9194} 9195 9196// String returns the string representation 9197func (s DeploymentReadyOption) String() string { 9198 return awsutil.Prettify(s) 9199} 9200 9201// GoString returns the string representation 9202func (s DeploymentReadyOption) GoString() string { 9203 return s.String() 9204} 9205 9206// SetActionOnTimeout sets the ActionOnTimeout field's value. 9207func (s *DeploymentReadyOption) SetActionOnTimeout(v string) *DeploymentReadyOption { 9208 s.ActionOnTimeout = &v 9209 return s 9210} 9211 9212// SetWaitTimeInMinutes sets the WaitTimeInMinutes field's value. 9213func (s *DeploymentReadyOption) SetWaitTimeInMinutes(v int64) *DeploymentReadyOption { 9214 s.WaitTimeInMinutes = &v 9215 return s 9216} 9217 9218// Information about the type of deployment, either in-place or blue/green, 9219// you want to run and whether to route deployment traffic behind a load balancer. 9220type DeploymentStyle struct { 9221 _ struct{} `type:"structure"` 9222 9223 // Indicates whether to route deployment traffic behind a load balancer. 9224 DeploymentOption *string `locationName:"deploymentOption" type:"string" enum:"DeploymentOption"` 9225 9226 // Indicates whether to run an in-place deployment or a blue/green deployment. 9227 DeploymentType *string `locationName:"deploymentType" type:"string" enum:"DeploymentType"` 9228} 9229 9230// String returns the string representation 9231func (s DeploymentStyle) String() string { 9232 return awsutil.Prettify(s) 9233} 9234 9235// GoString returns the string representation 9236func (s DeploymentStyle) GoString() string { 9237 return s.String() 9238} 9239 9240// SetDeploymentOption sets the DeploymentOption field's value. 9241func (s *DeploymentStyle) SetDeploymentOption(v string) *DeploymentStyle { 9242 s.DeploymentOption = &v 9243 return s 9244} 9245 9246// SetDeploymentType sets the DeploymentType field's value. 9247func (s *DeploymentStyle) SetDeploymentType(v string) *DeploymentStyle { 9248 s.DeploymentType = &v 9249 return s 9250} 9251 9252// Information about the deployment target. 9253type DeploymentTarget struct { 9254 _ struct{} `type:"structure"` 9255 9256 // Information about the target to be updated by an AWS CloudFormation blue/green 9257 // deployment. This target type is used for all deployments initiated by a CloudFormation 9258 // stack update. 9259 CloudFormationTarget *CloudFormationTarget `locationName:"cloudFormationTarget" type:"structure"` 9260 9261 // The deployment type that is specific to the deployment's compute platform 9262 // or deployments initiated by a CloudFormation stack update. 9263 DeploymentTargetType *string `locationName:"deploymentTargetType" type:"string" enum:"DeploymentTargetType"` 9264 9265 // Information about the target for a deployment that uses the Amazon ECS compute 9266 // platform. 9267 EcsTarget *ECSTarget `locationName:"ecsTarget" type:"structure"` 9268 9269 // Information about the target for a deployment that uses the EC2/On-premises 9270 // compute platform. 9271 InstanceTarget *InstanceTarget `locationName:"instanceTarget" type:"structure"` 9272 9273 // Information about the target for a deployment that uses the AWS Lambda compute 9274 // platform. 9275 LambdaTarget *LambdaTarget `locationName:"lambdaTarget" type:"structure"` 9276} 9277 9278// String returns the string representation 9279func (s DeploymentTarget) String() string { 9280 return awsutil.Prettify(s) 9281} 9282 9283// GoString returns the string representation 9284func (s DeploymentTarget) GoString() string { 9285 return s.String() 9286} 9287 9288// SetCloudFormationTarget sets the CloudFormationTarget field's value. 9289func (s *DeploymentTarget) SetCloudFormationTarget(v *CloudFormationTarget) *DeploymentTarget { 9290 s.CloudFormationTarget = v 9291 return s 9292} 9293 9294// SetDeploymentTargetType sets the DeploymentTargetType field's value. 9295func (s *DeploymentTarget) SetDeploymentTargetType(v string) *DeploymentTarget { 9296 s.DeploymentTargetType = &v 9297 return s 9298} 9299 9300// SetEcsTarget sets the EcsTarget field's value. 9301func (s *DeploymentTarget) SetEcsTarget(v *ECSTarget) *DeploymentTarget { 9302 s.EcsTarget = v 9303 return s 9304} 9305 9306// SetInstanceTarget sets the InstanceTarget field's value. 9307func (s *DeploymentTarget) SetInstanceTarget(v *InstanceTarget) *DeploymentTarget { 9308 s.InstanceTarget = v 9309 return s 9310} 9311 9312// SetLambdaTarget sets the LambdaTarget field's value. 9313func (s *DeploymentTarget) SetLambdaTarget(v *LambdaTarget) *DeploymentTarget { 9314 s.LambdaTarget = v 9315 return s 9316} 9317 9318// The provided target ID does not belong to the attempted deployment. 9319type DeploymentTargetDoesNotExistException struct { 9320 _ struct{} `type:"structure"` 9321 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 9322 9323 Message_ *string `locationName:"message" type:"string"` 9324} 9325 9326// String returns the string representation 9327func (s DeploymentTargetDoesNotExistException) String() string { 9328 return awsutil.Prettify(s) 9329} 9330 9331// GoString returns the string representation 9332func (s DeploymentTargetDoesNotExistException) GoString() string { 9333 return s.String() 9334} 9335 9336func newErrorDeploymentTargetDoesNotExistException(v protocol.ResponseMetadata) error { 9337 return &DeploymentTargetDoesNotExistException{ 9338 RespMetadata: v, 9339 } 9340} 9341 9342// Code returns the exception type name. 9343func (s *DeploymentTargetDoesNotExistException) Code() string { 9344 return "DeploymentTargetDoesNotExistException" 9345} 9346 9347// Message returns the exception's message. 9348func (s *DeploymentTargetDoesNotExistException) Message() string { 9349 if s.Message_ != nil { 9350 return *s.Message_ 9351 } 9352 return "" 9353} 9354 9355// OrigErr always returns nil, satisfies awserr.Error interface. 9356func (s *DeploymentTargetDoesNotExistException) OrigErr() error { 9357 return nil 9358} 9359 9360func (s *DeploymentTargetDoesNotExistException) Error() string { 9361 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 9362} 9363 9364// Status code returns the HTTP status code for the request's response error. 9365func (s *DeploymentTargetDoesNotExistException) StatusCode() int { 9366 return s.RespMetadata.StatusCode 9367} 9368 9369// RequestID returns the service's response RequestID for request. 9370func (s *DeploymentTargetDoesNotExistException) RequestID() string { 9371 return s.RespMetadata.RequestID 9372} 9373 9374// A deployment target ID was not provided. 9375type DeploymentTargetIdRequiredException struct { 9376 _ struct{} `type:"structure"` 9377 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 9378 9379 Message_ *string `locationName:"message" type:"string"` 9380} 9381 9382// String returns the string representation 9383func (s DeploymentTargetIdRequiredException) String() string { 9384 return awsutil.Prettify(s) 9385} 9386 9387// GoString returns the string representation 9388func (s DeploymentTargetIdRequiredException) GoString() string { 9389 return s.String() 9390} 9391 9392func newErrorDeploymentTargetIdRequiredException(v protocol.ResponseMetadata) error { 9393 return &DeploymentTargetIdRequiredException{ 9394 RespMetadata: v, 9395 } 9396} 9397 9398// Code returns the exception type name. 9399func (s *DeploymentTargetIdRequiredException) Code() string { 9400 return "DeploymentTargetIdRequiredException" 9401} 9402 9403// Message returns the exception's message. 9404func (s *DeploymentTargetIdRequiredException) Message() string { 9405 if s.Message_ != nil { 9406 return *s.Message_ 9407 } 9408 return "" 9409} 9410 9411// OrigErr always returns nil, satisfies awserr.Error interface. 9412func (s *DeploymentTargetIdRequiredException) OrigErr() error { 9413 return nil 9414} 9415 9416func (s *DeploymentTargetIdRequiredException) Error() string { 9417 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 9418} 9419 9420// Status code returns the HTTP status code for the request's response error. 9421func (s *DeploymentTargetIdRequiredException) StatusCode() int { 9422 return s.RespMetadata.StatusCode 9423} 9424 9425// RequestID returns the service's response RequestID for request. 9426func (s *DeploymentTargetIdRequiredException) RequestID() string { 9427 return s.RespMetadata.RequestID 9428} 9429 9430// The maximum number of targets that can be associated with an Amazon ECS or 9431// AWS Lambda deployment was exceeded. The target list of both types of deployments 9432// must have exactly one item. This exception does not apply to EC2/On-premises 9433// deployments. 9434type DeploymentTargetListSizeExceededException struct { 9435 _ struct{} `type:"structure"` 9436 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 9437 9438 Message_ *string `locationName:"message" type:"string"` 9439} 9440 9441// String returns the string representation 9442func (s DeploymentTargetListSizeExceededException) String() string { 9443 return awsutil.Prettify(s) 9444} 9445 9446// GoString returns the string representation 9447func (s DeploymentTargetListSizeExceededException) GoString() string { 9448 return s.String() 9449} 9450 9451func newErrorDeploymentTargetListSizeExceededException(v protocol.ResponseMetadata) error { 9452 return &DeploymentTargetListSizeExceededException{ 9453 RespMetadata: v, 9454 } 9455} 9456 9457// Code returns the exception type name. 9458func (s *DeploymentTargetListSizeExceededException) Code() string { 9459 return "DeploymentTargetListSizeExceededException" 9460} 9461 9462// Message returns the exception's message. 9463func (s *DeploymentTargetListSizeExceededException) Message() string { 9464 if s.Message_ != nil { 9465 return *s.Message_ 9466 } 9467 return "" 9468} 9469 9470// OrigErr always returns nil, satisfies awserr.Error interface. 9471func (s *DeploymentTargetListSizeExceededException) OrigErr() error { 9472 return nil 9473} 9474 9475func (s *DeploymentTargetListSizeExceededException) Error() string { 9476 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 9477} 9478 9479// Status code returns the HTTP status code for the request's response error. 9480func (s *DeploymentTargetListSizeExceededException) StatusCode() int { 9481 return s.RespMetadata.StatusCode 9482} 9483 9484// RequestID returns the service's response RequestID for request. 9485func (s *DeploymentTargetListSizeExceededException) RequestID() string { 9486 return s.RespMetadata.RequestID 9487} 9488 9489// Represents the input of a DeregisterOnPremisesInstance operation. 9490type DeregisterOnPremisesInstanceInput struct { 9491 _ struct{} `type:"structure"` 9492 9493 // The name of the on-premises instance to deregister. 9494 // 9495 // InstanceName is a required field 9496 InstanceName *string `locationName:"instanceName" type:"string" required:"true"` 9497} 9498 9499// String returns the string representation 9500func (s DeregisterOnPremisesInstanceInput) String() string { 9501 return awsutil.Prettify(s) 9502} 9503 9504// GoString returns the string representation 9505func (s DeregisterOnPremisesInstanceInput) GoString() string { 9506 return s.String() 9507} 9508 9509// Validate inspects the fields of the type to determine if they are valid. 9510func (s *DeregisterOnPremisesInstanceInput) Validate() error { 9511 invalidParams := request.ErrInvalidParams{Context: "DeregisterOnPremisesInstanceInput"} 9512 if s.InstanceName == nil { 9513 invalidParams.Add(request.NewErrParamRequired("InstanceName")) 9514 } 9515 9516 if invalidParams.Len() > 0 { 9517 return invalidParams 9518 } 9519 return nil 9520} 9521 9522// SetInstanceName sets the InstanceName field's value. 9523func (s *DeregisterOnPremisesInstanceInput) SetInstanceName(v string) *DeregisterOnPremisesInstanceInput { 9524 s.InstanceName = &v 9525 return s 9526} 9527 9528type DeregisterOnPremisesInstanceOutput struct { 9529 _ struct{} `type:"structure"` 9530} 9531 9532// String returns the string representation 9533func (s DeregisterOnPremisesInstanceOutput) String() string { 9534 return awsutil.Prettify(s) 9535} 9536 9537// GoString returns the string representation 9538func (s DeregisterOnPremisesInstanceOutput) GoString() string { 9539 return s.String() 9540} 9541 9542// The description is too long. 9543type DescriptionTooLongException struct { 9544 _ struct{} `type:"structure"` 9545 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 9546 9547 Message_ *string `locationName:"message" type:"string"` 9548} 9549 9550// String returns the string representation 9551func (s DescriptionTooLongException) String() string { 9552 return awsutil.Prettify(s) 9553} 9554 9555// GoString returns the string representation 9556func (s DescriptionTooLongException) GoString() string { 9557 return s.String() 9558} 9559 9560func newErrorDescriptionTooLongException(v protocol.ResponseMetadata) error { 9561 return &DescriptionTooLongException{ 9562 RespMetadata: v, 9563 } 9564} 9565 9566// Code returns the exception type name. 9567func (s *DescriptionTooLongException) Code() string { 9568 return "DescriptionTooLongException" 9569} 9570 9571// Message returns the exception's message. 9572func (s *DescriptionTooLongException) Message() string { 9573 if s.Message_ != nil { 9574 return *s.Message_ 9575 } 9576 return "" 9577} 9578 9579// OrigErr always returns nil, satisfies awserr.Error interface. 9580func (s *DescriptionTooLongException) OrigErr() error { 9581 return nil 9582} 9583 9584func (s *DescriptionTooLongException) Error() string { 9585 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 9586} 9587 9588// Status code returns the HTTP status code for the request's response error. 9589func (s *DescriptionTooLongException) StatusCode() int { 9590 return s.RespMetadata.StatusCode 9591} 9592 9593// RequestID returns the service's response RequestID for request. 9594func (s *DescriptionTooLongException) RequestID() string { 9595 return s.RespMetadata.RequestID 9596} 9597 9598// Diagnostic information about executable scripts that are part of a deployment. 9599type Diagnostics struct { 9600 _ struct{} `type:"structure"` 9601 9602 // The associated error code: 9603 // 9604 // * Success: The specified script ran. 9605 // 9606 // * ScriptMissing: The specified script was not found in the specified location. 9607 // 9608 // * ScriptNotExecutable: The specified script is not a recognized executable 9609 // file type. 9610 // 9611 // * ScriptTimedOut: The specified script did not finish running in the specified 9612 // time period. 9613 // 9614 // * ScriptFailed: The specified script failed to run as expected. 9615 // 9616 // * UnknownError: The specified script did not run for an unknown reason. 9617 ErrorCode *string `locationName:"errorCode" type:"string" enum:"LifecycleErrorCode"` 9618 9619 // The last portion of the diagnostic log. 9620 // 9621 // If available, AWS CodeDeploy returns up to the last 4 KB of the diagnostic 9622 // log. 9623 LogTail *string `locationName:"logTail" type:"string"` 9624 9625 // The message associated with the error. 9626 Message *string `locationName:"message" type:"string"` 9627 9628 // The name of the script. 9629 ScriptName *string `locationName:"scriptName" type:"string"` 9630} 9631 9632// String returns the string representation 9633func (s Diagnostics) String() string { 9634 return awsutil.Prettify(s) 9635} 9636 9637// GoString returns the string representation 9638func (s Diagnostics) GoString() string { 9639 return s.String() 9640} 9641 9642// SetErrorCode sets the ErrorCode field's value. 9643func (s *Diagnostics) SetErrorCode(v string) *Diagnostics { 9644 s.ErrorCode = &v 9645 return s 9646} 9647 9648// SetLogTail sets the LogTail field's value. 9649func (s *Diagnostics) SetLogTail(v string) *Diagnostics { 9650 s.LogTail = &v 9651 return s 9652} 9653 9654// SetMessage sets the Message field's value. 9655func (s *Diagnostics) SetMessage(v string) *Diagnostics { 9656 s.Message = &v 9657 return s 9658} 9659 9660// SetScriptName sets the ScriptName field's value. 9661func (s *Diagnostics) SetScriptName(v string) *Diagnostics { 9662 s.ScriptName = &v 9663 return s 9664} 9665 9666// Information about an EC2 tag filter. 9667type EC2TagFilter struct { 9668 _ struct{} `type:"structure"` 9669 9670 // The tag filter key. 9671 Key *string `type:"string"` 9672 9673 // The tag filter type: 9674 // 9675 // * KEY_ONLY: Key only. 9676 // 9677 // * VALUE_ONLY: Value only. 9678 // 9679 // * KEY_AND_VALUE: Key and value. 9680 Type *string `type:"string" enum:"EC2TagFilterType"` 9681 9682 // The tag filter value. 9683 Value *string `type:"string"` 9684} 9685 9686// String returns the string representation 9687func (s EC2TagFilter) String() string { 9688 return awsutil.Prettify(s) 9689} 9690 9691// GoString returns the string representation 9692func (s EC2TagFilter) GoString() string { 9693 return s.String() 9694} 9695 9696// SetKey sets the Key field's value. 9697func (s *EC2TagFilter) SetKey(v string) *EC2TagFilter { 9698 s.Key = &v 9699 return s 9700} 9701 9702// SetType sets the Type field's value. 9703func (s *EC2TagFilter) SetType(v string) *EC2TagFilter { 9704 s.Type = &v 9705 return s 9706} 9707 9708// SetValue sets the Value field's value. 9709func (s *EC2TagFilter) SetValue(v string) *EC2TagFilter { 9710 s.Value = &v 9711 return s 9712} 9713 9714// Information about groups of EC2 instance tags. 9715type EC2TagSet struct { 9716 _ struct{} `type:"structure"` 9717 9718 // A list that contains other lists of EC2 instance tag groups. For an instance 9719 // to be included in the deployment group, it must be identified by all of the 9720 // tag groups in the list. 9721 Ec2TagSetList [][]*EC2TagFilter `locationName:"ec2TagSetList" type:"list"` 9722} 9723 9724// String returns the string representation 9725func (s EC2TagSet) String() string { 9726 return awsutil.Prettify(s) 9727} 9728 9729// GoString returns the string representation 9730func (s EC2TagSet) GoString() string { 9731 return s.String() 9732} 9733 9734// SetEc2TagSetList sets the Ec2TagSetList field's value. 9735func (s *EC2TagSet) SetEc2TagSetList(v [][]*EC2TagFilter) *EC2TagSet { 9736 s.Ec2TagSetList = v 9737 return s 9738} 9739 9740// Contains the service and cluster names used to identify an Amazon ECS deployment's 9741// target. 9742type ECSService struct { 9743 _ struct{} `type:"structure"` 9744 9745 // The name of the cluster that the Amazon ECS service is associated with. 9746 ClusterName *string `locationName:"clusterName" type:"string"` 9747 9748 // The name of the target Amazon ECS service. 9749 ServiceName *string `locationName:"serviceName" type:"string"` 9750} 9751 9752// String returns the string representation 9753func (s ECSService) String() string { 9754 return awsutil.Prettify(s) 9755} 9756 9757// GoString returns the string representation 9758func (s ECSService) GoString() string { 9759 return s.String() 9760} 9761 9762// SetClusterName sets the ClusterName field's value. 9763func (s *ECSService) SetClusterName(v string) *ECSService { 9764 s.ClusterName = &v 9765 return s 9766} 9767 9768// SetServiceName sets the ServiceName field's value. 9769func (s *ECSService) SetServiceName(v string) *ECSService { 9770 s.ServiceName = &v 9771 return s 9772} 9773 9774// The Amazon ECS service is associated with more than one deployment groups. 9775// An Amazon ECS service can be associated with only one deployment group. 9776type ECSServiceMappingLimitExceededException struct { 9777 _ struct{} `type:"structure"` 9778 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 9779 9780 Message_ *string `locationName:"message" type:"string"` 9781} 9782 9783// String returns the string representation 9784func (s ECSServiceMappingLimitExceededException) String() string { 9785 return awsutil.Prettify(s) 9786} 9787 9788// GoString returns the string representation 9789func (s ECSServiceMappingLimitExceededException) GoString() string { 9790 return s.String() 9791} 9792 9793func newErrorECSServiceMappingLimitExceededException(v protocol.ResponseMetadata) error { 9794 return &ECSServiceMappingLimitExceededException{ 9795 RespMetadata: v, 9796 } 9797} 9798 9799// Code returns the exception type name. 9800func (s *ECSServiceMappingLimitExceededException) Code() string { 9801 return "ECSServiceMappingLimitExceededException" 9802} 9803 9804// Message returns the exception's message. 9805func (s *ECSServiceMappingLimitExceededException) Message() string { 9806 if s.Message_ != nil { 9807 return *s.Message_ 9808 } 9809 return "" 9810} 9811 9812// OrigErr always returns nil, satisfies awserr.Error interface. 9813func (s *ECSServiceMappingLimitExceededException) OrigErr() error { 9814 return nil 9815} 9816 9817func (s *ECSServiceMappingLimitExceededException) Error() string { 9818 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 9819} 9820 9821// Status code returns the HTTP status code for the request's response error. 9822func (s *ECSServiceMappingLimitExceededException) StatusCode() int { 9823 return s.RespMetadata.StatusCode 9824} 9825 9826// RequestID returns the service's response RequestID for request. 9827func (s *ECSServiceMappingLimitExceededException) RequestID() string { 9828 return s.RespMetadata.RequestID 9829} 9830 9831// Information about the target of an Amazon ECS deployment. 9832type ECSTarget struct { 9833 _ struct{} `type:"structure"` 9834 9835 // The unique ID of a deployment. 9836 DeploymentId *string `locationName:"deploymentId" type:"string"` 9837 9838 // The date and time when the target Amazon ECS application was updated by a 9839 // deployment. 9840 LastUpdatedAt *time.Time `locationName:"lastUpdatedAt" type:"timestamp"` 9841 9842 // The lifecycle events of the deployment to this target Amazon ECS application. 9843 LifecycleEvents []*LifecycleEvent `locationName:"lifecycleEvents" type:"list"` 9844 9845 // The status an Amazon ECS deployment's target ECS application. 9846 Status *string `locationName:"status" type:"string" enum:"TargetStatus"` 9847 9848 // The Amazon Resource Name (ARN) of the target. 9849 TargetArn *string `locationName:"targetArn" type:"string"` 9850 9851 // The unique ID of a deployment target that has a type of ecsTarget. 9852 TargetId *string `locationName:"targetId" type:"string"` 9853 9854 // The ECSTaskSet objects associated with the ECS target. 9855 TaskSetsInfo []*ECSTaskSet `locationName:"taskSetsInfo" type:"list"` 9856} 9857 9858// String returns the string representation 9859func (s ECSTarget) String() string { 9860 return awsutil.Prettify(s) 9861} 9862 9863// GoString returns the string representation 9864func (s ECSTarget) GoString() string { 9865 return s.String() 9866} 9867 9868// SetDeploymentId sets the DeploymentId field's value. 9869func (s *ECSTarget) SetDeploymentId(v string) *ECSTarget { 9870 s.DeploymentId = &v 9871 return s 9872} 9873 9874// SetLastUpdatedAt sets the LastUpdatedAt field's value. 9875func (s *ECSTarget) SetLastUpdatedAt(v time.Time) *ECSTarget { 9876 s.LastUpdatedAt = &v 9877 return s 9878} 9879 9880// SetLifecycleEvents sets the LifecycleEvents field's value. 9881func (s *ECSTarget) SetLifecycleEvents(v []*LifecycleEvent) *ECSTarget { 9882 s.LifecycleEvents = v 9883 return s 9884} 9885 9886// SetStatus sets the Status field's value. 9887func (s *ECSTarget) SetStatus(v string) *ECSTarget { 9888 s.Status = &v 9889 return s 9890} 9891 9892// SetTargetArn sets the TargetArn field's value. 9893func (s *ECSTarget) SetTargetArn(v string) *ECSTarget { 9894 s.TargetArn = &v 9895 return s 9896} 9897 9898// SetTargetId sets the TargetId field's value. 9899func (s *ECSTarget) SetTargetId(v string) *ECSTarget { 9900 s.TargetId = &v 9901 return s 9902} 9903 9904// SetTaskSetsInfo sets the TaskSetsInfo field's value. 9905func (s *ECSTarget) SetTaskSetsInfo(v []*ECSTaskSet) *ECSTarget { 9906 s.TaskSetsInfo = v 9907 return s 9908} 9909 9910// Information about a set of Amazon ECS tasks in an AWS CodeDeploy deployment. 9911// An Amazon ECS task set includes details such as the desired number of tasks, 9912// how many tasks are running, and whether the task set serves production traffic. 9913// An AWS CodeDeploy application that uses the Amazon ECS compute platform deploys 9914// a containerized application in an Amazon ECS service as a task set. 9915type ECSTaskSet struct { 9916 _ struct{} `type:"structure"` 9917 9918 // The number of tasks in a task set. During a deployment that uses the Amazon 9919 // ECS compute type, CodeDeploy instructs Amazon ECS to create a new task set 9920 // and uses this value to determine how many tasks to create. After the updated 9921 // task set is created, CodeDeploy shifts traffic to the new task set. 9922 DesiredCount *int64 `locationName:"desiredCount" type:"long"` 9923 9924 // A unique ID of an ECSTaskSet. 9925 Identifer *string `locationName:"identifer" type:"string"` 9926 9927 // The number of tasks in the task set that are in the PENDING status during 9928 // an Amazon ECS deployment. A task in the PENDING state is preparing to enter 9929 // the RUNNING state. A task set enters the PENDING status when it launches 9930 // for the first time, or when it is restarted after being in the STOPPED state. 9931 PendingCount *int64 `locationName:"pendingCount" type:"long"` 9932 9933 // The number of tasks in the task set that are in the RUNNING status during 9934 // an Amazon ECS deployment. A task in the RUNNING state is running and ready 9935 // for use. 9936 RunningCount *int64 `locationName:"runningCount" type:"long"` 9937 9938 // The status of the task set. There are three valid task set statuses: 9939 // 9940 // * PRIMARY: Indicates the task set is serving production traffic. 9941 // 9942 // * ACTIVE: Indicates the task set is not serving production traffic. 9943 // 9944 // * DRAINING: Indicates the tasks in the task set are being stopped and 9945 // their corresponding targets are being deregistered from their target group. 9946 Status *string `locationName:"status" type:"string"` 9947 9948 // The target group associated with the task set. The target group is used by 9949 // AWS CodeDeploy to manage traffic to a task set. 9950 TargetGroup *TargetGroupInfo `locationName:"targetGroup" type:"structure"` 9951 9952 // A label that identifies whether the ECS task set is an original target (BLUE) 9953 // or a replacement target (GREEN). 9954 TaskSetLabel *string `locationName:"taskSetLabel" type:"string" enum:"TargetLabel"` 9955 9956 // The percentage of traffic served by this task set. 9957 TrafficWeight *float64 `locationName:"trafficWeight" type:"double"` 9958} 9959 9960// String returns the string representation 9961func (s ECSTaskSet) String() string { 9962 return awsutil.Prettify(s) 9963} 9964 9965// GoString returns the string representation 9966func (s ECSTaskSet) GoString() string { 9967 return s.String() 9968} 9969 9970// SetDesiredCount sets the DesiredCount field's value. 9971func (s *ECSTaskSet) SetDesiredCount(v int64) *ECSTaskSet { 9972 s.DesiredCount = &v 9973 return s 9974} 9975 9976// SetIdentifer sets the Identifer field's value. 9977func (s *ECSTaskSet) SetIdentifer(v string) *ECSTaskSet { 9978 s.Identifer = &v 9979 return s 9980} 9981 9982// SetPendingCount sets the PendingCount field's value. 9983func (s *ECSTaskSet) SetPendingCount(v int64) *ECSTaskSet { 9984 s.PendingCount = &v 9985 return s 9986} 9987 9988// SetRunningCount sets the RunningCount field's value. 9989func (s *ECSTaskSet) SetRunningCount(v int64) *ECSTaskSet { 9990 s.RunningCount = &v 9991 return s 9992} 9993 9994// SetStatus sets the Status field's value. 9995func (s *ECSTaskSet) SetStatus(v string) *ECSTaskSet { 9996 s.Status = &v 9997 return s 9998} 9999 10000// SetTargetGroup sets the TargetGroup field's value. 10001func (s *ECSTaskSet) SetTargetGroup(v *TargetGroupInfo) *ECSTaskSet { 10002 s.TargetGroup = v 10003 return s 10004} 10005 10006// SetTaskSetLabel sets the TaskSetLabel field's value. 10007func (s *ECSTaskSet) SetTaskSetLabel(v string) *ECSTaskSet { 10008 s.TaskSetLabel = &v 10009 return s 10010} 10011 10012// SetTrafficWeight sets the TrafficWeight field's value. 10013func (s *ECSTaskSet) SetTrafficWeight(v float64) *ECSTaskSet { 10014 s.TrafficWeight = &v 10015 return s 10016} 10017 10018// Information about a load balancer in Elastic Load Balancing to use in a deployment. 10019// Instances are registered directly with a load balancer, and traffic is routed 10020// to the load balancer. 10021type ELBInfo struct { 10022 _ struct{} `type:"structure"` 10023 10024 // For blue/green deployments, the name of the load balancer that is used to 10025 // route traffic from original instances to replacement instances in a blue/green 10026 // deployment. For in-place deployments, the name of the load balancer that 10027 // instances are deregistered from so they are not serving traffic during a 10028 // deployment, and then re-registered with after the deployment is complete. 10029 Name *string `locationName:"name" type:"string"` 10030} 10031 10032// String returns the string representation 10033func (s ELBInfo) String() string { 10034 return awsutil.Prettify(s) 10035} 10036 10037// GoString returns the string representation 10038func (s ELBInfo) GoString() string { 10039 return s.String() 10040} 10041 10042// SetName sets the Name field's value. 10043func (s *ELBInfo) SetName(v string) *ELBInfo { 10044 s.Name = &v 10045 return s 10046} 10047 10048// Information about a deployment error. 10049type ErrorInformation struct { 10050 _ struct{} `type:"structure"` 10051 10052 // For more information, see Error Codes for AWS CodeDeploy (https://docs.aws.amazon.com/codedeploy/latest/userguide/error-codes.html) 10053 // in the AWS CodeDeploy User Guide (https://docs.aws.amazon.com/codedeploy/latest/userguide). 10054 // 10055 // The error code: 10056 // 10057 // * APPLICATION_MISSING: The application was missing. This error code is 10058 // most likely raised if the application is deleted after the deployment 10059 // is created, but before it is started. 10060 // 10061 // * DEPLOYMENT_GROUP_MISSING: The deployment group was missing. This error 10062 // code is most likely raised if the deployment group is deleted after the 10063 // deployment is created, but before it is started. 10064 // 10065 // * HEALTH_CONSTRAINTS: The deployment failed on too many instances to be 10066 // successfully deployed within the instance health constraints specified. 10067 // 10068 // * HEALTH_CONSTRAINTS_INVALID: The revision cannot be successfully deployed 10069 // within the instance health constraints specified. 10070 // 10071 // * IAM_ROLE_MISSING: The service role cannot be accessed. 10072 // 10073 // * IAM_ROLE_PERMISSIONS: The service role does not have the correct permissions. 10074 // 10075 // * INTERNAL_ERROR: There was an internal error. 10076 // 10077 // * NO_EC2_SUBSCRIPTION: The calling account is not subscribed to Amazon 10078 // EC2. 10079 // 10080 // * NO_INSTANCES: No instances were specified, or no instances can be found. 10081 // 10082 // * OVER_MAX_INSTANCES: The maximum number of instances was exceeded. 10083 // 10084 // * THROTTLED: The operation was throttled because the calling account exceeded 10085 // the throttling limits of one or more AWS services. 10086 // 10087 // * TIMEOUT: The deployment has timed out. 10088 // 10089 // * REVISION_MISSING: The revision ID was missing. This error code is most 10090 // likely raised if the revision is deleted after the deployment is created, 10091 // but before it is started. 10092 Code *string `locationName:"code" type:"string" enum:"ErrorCode"` 10093 10094 // An accompanying error message. 10095 Message *string `locationName:"message" type:"string"` 10096} 10097 10098// String returns the string representation 10099func (s ErrorInformation) String() string { 10100 return awsutil.Prettify(s) 10101} 10102 10103// GoString returns the string representation 10104func (s ErrorInformation) GoString() string { 10105 return s.String() 10106} 10107 10108// SetCode sets the Code field's value. 10109func (s *ErrorInformation) SetCode(v string) *ErrorInformation { 10110 s.Code = &v 10111 return s 10112} 10113 10114// SetMessage sets the Message field's value. 10115func (s *ErrorInformation) SetMessage(v string) *ErrorInformation { 10116 s.Message = &v 10117 return s 10118} 10119 10120// Information about an application revision. 10121type GenericRevisionInfo struct { 10122 _ struct{} `type:"structure"` 10123 10124 // The deployment groups for which this is the current target revision. 10125 DeploymentGroups []*string `locationName:"deploymentGroups" type:"list"` 10126 10127 // A comment about the revision. 10128 Description *string `locationName:"description" type:"string"` 10129 10130 // When the revision was first used by AWS CodeDeploy. 10131 FirstUsedTime *time.Time `locationName:"firstUsedTime" type:"timestamp"` 10132 10133 // When the revision was last used by AWS CodeDeploy. 10134 LastUsedTime *time.Time `locationName:"lastUsedTime" type:"timestamp"` 10135 10136 // When the revision was registered with AWS CodeDeploy. 10137 RegisterTime *time.Time `locationName:"registerTime" type:"timestamp"` 10138} 10139 10140// String returns the string representation 10141func (s GenericRevisionInfo) String() string { 10142 return awsutil.Prettify(s) 10143} 10144 10145// GoString returns the string representation 10146func (s GenericRevisionInfo) GoString() string { 10147 return s.String() 10148} 10149 10150// SetDeploymentGroups sets the DeploymentGroups field's value. 10151func (s *GenericRevisionInfo) SetDeploymentGroups(v []*string) *GenericRevisionInfo { 10152 s.DeploymentGroups = v 10153 return s 10154} 10155 10156// SetDescription sets the Description field's value. 10157func (s *GenericRevisionInfo) SetDescription(v string) *GenericRevisionInfo { 10158 s.Description = &v 10159 return s 10160} 10161 10162// SetFirstUsedTime sets the FirstUsedTime field's value. 10163func (s *GenericRevisionInfo) SetFirstUsedTime(v time.Time) *GenericRevisionInfo { 10164 s.FirstUsedTime = &v 10165 return s 10166} 10167 10168// SetLastUsedTime sets the LastUsedTime field's value. 10169func (s *GenericRevisionInfo) SetLastUsedTime(v time.Time) *GenericRevisionInfo { 10170 s.LastUsedTime = &v 10171 return s 10172} 10173 10174// SetRegisterTime sets the RegisterTime field's value. 10175func (s *GenericRevisionInfo) SetRegisterTime(v time.Time) *GenericRevisionInfo { 10176 s.RegisterTime = &v 10177 return s 10178} 10179 10180// Represents the input of a GetApplication operation. 10181type GetApplicationInput struct { 10182 _ struct{} `type:"structure"` 10183 10184 // The name of an AWS CodeDeploy application associated with the IAM user or 10185 // AWS account. 10186 // 10187 // ApplicationName is a required field 10188 ApplicationName *string `locationName:"applicationName" min:"1" type:"string" required:"true"` 10189} 10190 10191// String returns the string representation 10192func (s GetApplicationInput) String() string { 10193 return awsutil.Prettify(s) 10194} 10195 10196// GoString returns the string representation 10197func (s GetApplicationInput) GoString() string { 10198 return s.String() 10199} 10200 10201// Validate inspects the fields of the type to determine if they are valid. 10202func (s *GetApplicationInput) Validate() error { 10203 invalidParams := request.ErrInvalidParams{Context: "GetApplicationInput"} 10204 if s.ApplicationName == nil { 10205 invalidParams.Add(request.NewErrParamRequired("ApplicationName")) 10206 } 10207 if s.ApplicationName != nil && len(*s.ApplicationName) < 1 { 10208 invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1)) 10209 } 10210 10211 if invalidParams.Len() > 0 { 10212 return invalidParams 10213 } 10214 return nil 10215} 10216 10217// SetApplicationName sets the ApplicationName field's value. 10218func (s *GetApplicationInput) SetApplicationName(v string) *GetApplicationInput { 10219 s.ApplicationName = &v 10220 return s 10221} 10222 10223// Represents the output of a GetApplication operation. 10224type GetApplicationOutput struct { 10225 _ struct{} `type:"structure"` 10226 10227 // Information about the application. 10228 Application *ApplicationInfo `locationName:"application" type:"structure"` 10229} 10230 10231// String returns the string representation 10232func (s GetApplicationOutput) String() string { 10233 return awsutil.Prettify(s) 10234} 10235 10236// GoString returns the string representation 10237func (s GetApplicationOutput) GoString() string { 10238 return s.String() 10239} 10240 10241// SetApplication sets the Application field's value. 10242func (s *GetApplicationOutput) SetApplication(v *ApplicationInfo) *GetApplicationOutput { 10243 s.Application = v 10244 return s 10245} 10246 10247// Represents the input of a GetApplicationRevision operation. 10248type GetApplicationRevisionInput struct { 10249 _ struct{} `type:"structure"` 10250 10251 // The name of the application that corresponds to the revision. 10252 // 10253 // ApplicationName is a required field 10254 ApplicationName *string `locationName:"applicationName" min:"1" type:"string" required:"true"` 10255 10256 // Information about the application revision to get, including type and location. 10257 // 10258 // Revision is a required field 10259 Revision *RevisionLocation `locationName:"revision" type:"structure" required:"true"` 10260} 10261 10262// String returns the string representation 10263func (s GetApplicationRevisionInput) String() string { 10264 return awsutil.Prettify(s) 10265} 10266 10267// GoString returns the string representation 10268func (s GetApplicationRevisionInput) GoString() string { 10269 return s.String() 10270} 10271 10272// Validate inspects the fields of the type to determine if they are valid. 10273func (s *GetApplicationRevisionInput) Validate() error { 10274 invalidParams := request.ErrInvalidParams{Context: "GetApplicationRevisionInput"} 10275 if s.ApplicationName == nil { 10276 invalidParams.Add(request.NewErrParamRequired("ApplicationName")) 10277 } 10278 if s.ApplicationName != nil && len(*s.ApplicationName) < 1 { 10279 invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1)) 10280 } 10281 if s.Revision == nil { 10282 invalidParams.Add(request.NewErrParamRequired("Revision")) 10283 } 10284 10285 if invalidParams.Len() > 0 { 10286 return invalidParams 10287 } 10288 return nil 10289} 10290 10291// SetApplicationName sets the ApplicationName field's value. 10292func (s *GetApplicationRevisionInput) SetApplicationName(v string) *GetApplicationRevisionInput { 10293 s.ApplicationName = &v 10294 return s 10295} 10296 10297// SetRevision sets the Revision field's value. 10298func (s *GetApplicationRevisionInput) SetRevision(v *RevisionLocation) *GetApplicationRevisionInput { 10299 s.Revision = v 10300 return s 10301} 10302 10303// Represents the output of a GetApplicationRevision operation. 10304type GetApplicationRevisionOutput struct { 10305 _ struct{} `type:"structure"` 10306 10307 // The name of the application that corresponds to the revision. 10308 ApplicationName *string `locationName:"applicationName" min:"1" type:"string"` 10309 10310 // Additional information about the revision, including type and location. 10311 Revision *RevisionLocation `locationName:"revision" type:"structure"` 10312 10313 // General information about the revision. 10314 RevisionInfo *GenericRevisionInfo `locationName:"revisionInfo" type:"structure"` 10315} 10316 10317// String returns the string representation 10318func (s GetApplicationRevisionOutput) String() string { 10319 return awsutil.Prettify(s) 10320} 10321 10322// GoString returns the string representation 10323func (s GetApplicationRevisionOutput) GoString() string { 10324 return s.String() 10325} 10326 10327// SetApplicationName sets the ApplicationName field's value. 10328func (s *GetApplicationRevisionOutput) SetApplicationName(v string) *GetApplicationRevisionOutput { 10329 s.ApplicationName = &v 10330 return s 10331} 10332 10333// SetRevision sets the Revision field's value. 10334func (s *GetApplicationRevisionOutput) SetRevision(v *RevisionLocation) *GetApplicationRevisionOutput { 10335 s.Revision = v 10336 return s 10337} 10338 10339// SetRevisionInfo sets the RevisionInfo field's value. 10340func (s *GetApplicationRevisionOutput) SetRevisionInfo(v *GenericRevisionInfo) *GetApplicationRevisionOutput { 10341 s.RevisionInfo = v 10342 return s 10343} 10344 10345// Represents the input of a GetDeploymentConfig operation. 10346type GetDeploymentConfigInput struct { 10347 _ struct{} `type:"structure"` 10348 10349 // The name of a deployment configuration associated with the IAM user or AWS 10350 // account. 10351 // 10352 // DeploymentConfigName is a required field 10353 DeploymentConfigName *string `locationName:"deploymentConfigName" min:"1" type:"string" required:"true"` 10354} 10355 10356// String returns the string representation 10357func (s GetDeploymentConfigInput) String() string { 10358 return awsutil.Prettify(s) 10359} 10360 10361// GoString returns the string representation 10362func (s GetDeploymentConfigInput) GoString() string { 10363 return s.String() 10364} 10365 10366// Validate inspects the fields of the type to determine if they are valid. 10367func (s *GetDeploymentConfigInput) Validate() error { 10368 invalidParams := request.ErrInvalidParams{Context: "GetDeploymentConfigInput"} 10369 if s.DeploymentConfigName == nil { 10370 invalidParams.Add(request.NewErrParamRequired("DeploymentConfigName")) 10371 } 10372 if s.DeploymentConfigName != nil && len(*s.DeploymentConfigName) < 1 { 10373 invalidParams.Add(request.NewErrParamMinLen("DeploymentConfigName", 1)) 10374 } 10375 10376 if invalidParams.Len() > 0 { 10377 return invalidParams 10378 } 10379 return nil 10380} 10381 10382// SetDeploymentConfigName sets the DeploymentConfigName field's value. 10383func (s *GetDeploymentConfigInput) SetDeploymentConfigName(v string) *GetDeploymentConfigInput { 10384 s.DeploymentConfigName = &v 10385 return s 10386} 10387 10388// Represents the output of a GetDeploymentConfig operation. 10389type GetDeploymentConfigOutput struct { 10390 _ struct{} `type:"structure"` 10391 10392 // Information about the deployment configuration. 10393 DeploymentConfigInfo *DeploymentConfigInfo `locationName:"deploymentConfigInfo" type:"structure"` 10394} 10395 10396// String returns the string representation 10397func (s GetDeploymentConfigOutput) String() string { 10398 return awsutil.Prettify(s) 10399} 10400 10401// GoString returns the string representation 10402func (s GetDeploymentConfigOutput) GoString() string { 10403 return s.String() 10404} 10405 10406// SetDeploymentConfigInfo sets the DeploymentConfigInfo field's value. 10407func (s *GetDeploymentConfigOutput) SetDeploymentConfigInfo(v *DeploymentConfigInfo) *GetDeploymentConfigOutput { 10408 s.DeploymentConfigInfo = v 10409 return s 10410} 10411 10412// Represents the input of a GetDeploymentGroup operation. 10413type GetDeploymentGroupInput struct { 10414 _ struct{} `type:"structure"` 10415 10416 // The name of an AWS CodeDeploy application associated with the IAM user or 10417 // AWS account. 10418 // 10419 // ApplicationName is a required field 10420 ApplicationName *string `locationName:"applicationName" min:"1" type:"string" required:"true"` 10421 10422 // The name of a deployment group for the specified application. 10423 // 10424 // DeploymentGroupName is a required field 10425 DeploymentGroupName *string `locationName:"deploymentGroupName" min:"1" type:"string" required:"true"` 10426} 10427 10428// String returns the string representation 10429func (s GetDeploymentGroupInput) String() string { 10430 return awsutil.Prettify(s) 10431} 10432 10433// GoString returns the string representation 10434func (s GetDeploymentGroupInput) GoString() string { 10435 return s.String() 10436} 10437 10438// Validate inspects the fields of the type to determine if they are valid. 10439func (s *GetDeploymentGroupInput) Validate() error { 10440 invalidParams := request.ErrInvalidParams{Context: "GetDeploymentGroupInput"} 10441 if s.ApplicationName == nil { 10442 invalidParams.Add(request.NewErrParamRequired("ApplicationName")) 10443 } 10444 if s.ApplicationName != nil && len(*s.ApplicationName) < 1 { 10445 invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1)) 10446 } 10447 if s.DeploymentGroupName == nil { 10448 invalidParams.Add(request.NewErrParamRequired("DeploymentGroupName")) 10449 } 10450 if s.DeploymentGroupName != nil && len(*s.DeploymentGroupName) < 1 { 10451 invalidParams.Add(request.NewErrParamMinLen("DeploymentGroupName", 1)) 10452 } 10453 10454 if invalidParams.Len() > 0 { 10455 return invalidParams 10456 } 10457 return nil 10458} 10459 10460// SetApplicationName sets the ApplicationName field's value. 10461func (s *GetDeploymentGroupInput) SetApplicationName(v string) *GetDeploymentGroupInput { 10462 s.ApplicationName = &v 10463 return s 10464} 10465 10466// SetDeploymentGroupName sets the DeploymentGroupName field's value. 10467func (s *GetDeploymentGroupInput) SetDeploymentGroupName(v string) *GetDeploymentGroupInput { 10468 s.DeploymentGroupName = &v 10469 return s 10470} 10471 10472// Represents the output of a GetDeploymentGroup operation. 10473type GetDeploymentGroupOutput struct { 10474 _ struct{} `type:"structure"` 10475 10476 // Information about the deployment group. 10477 DeploymentGroupInfo *DeploymentGroupInfo `locationName:"deploymentGroupInfo" type:"structure"` 10478} 10479 10480// String returns the string representation 10481func (s GetDeploymentGroupOutput) String() string { 10482 return awsutil.Prettify(s) 10483} 10484 10485// GoString returns the string representation 10486func (s GetDeploymentGroupOutput) GoString() string { 10487 return s.String() 10488} 10489 10490// SetDeploymentGroupInfo sets the DeploymentGroupInfo field's value. 10491func (s *GetDeploymentGroupOutput) SetDeploymentGroupInfo(v *DeploymentGroupInfo) *GetDeploymentGroupOutput { 10492 s.DeploymentGroupInfo = v 10493 return s 10494} 10495 10496// Represents the input of a GetDeployment operation. 10497type GetDeploymentInput struct { 10498 _ struct{} `type:"structure"` 10499 10500 // The unique ID of a deployment associated with the IAM user or AWS account. 10501 // 10502 // DeploymentId is a required field 10503 DeploymentId *string `locationName:"deploymentId" type:"string" required:"true"` 10504} 10505 10506// String returns the string representation 10507func (s GetDeploymentInput) String() string { 10508 return awsutil.Prettify(s) 10509} 10510 10511// GoString returns the string representation 10512func (s GetDeploymentInput) GoString() string { 10513 return s.String() 10514} 10515 10516// Validate inspects the fields of the type to determine if they are valid. 10517func (s *GetDeploymentInput) Validate() error { 10518 invalidParams := request.ErrInvalidParams{Context: "GetDeploymentInput"} 10519 if s.DeploymentId == nil { 10520 invalidParams.Add(request.NewErrParamRequired("DeploymentId")) 10521 } 10522 10523 if invalidParams.Len() > 0 { 10524 return invalidParams 10525 } 10526 return nil 10527} 10528 10529// SetDeploymentId sets the DeploymentId field's value. 10530func (s *GetDeploymentInput) SetDeploymentId(v string) *GetDeploymentInput { 10531 s.DeploymentId = &v 10532 return s 10533} 10534 10535// Represents the input of a GetDeploymentInstance operation. 10536type GetDeploymentInstanceInput struct { 10537 _ struct{} `type:"structure"` 10538 10539 // The unique ID of a deployment. 10540 // 10541 // DeploymentId is a required field 10542 DeploymentId *string `locationName:"deploymentId" type:"string" required:"true"` 10543 10544 // The unique ID of an instance in the deployment group. 10545 // 10546 // InstanceId is a required field 10547 InstanceId *string `locationName:"instanceId" type:"string" required:"true"` 10548} 10549 10550// String returns the string representation 10551func (s GetDeploymentInstanceInput) String() string { 10552 return awsutil.Prettify(s) 10553} 10554 10555// GoString returns the string representation 10556func (s GetDeploymentInstanceInput) GoString() string { 10557 return s.String() 10558} 10559 10560// Validate inspects the fields of the type to determine if they are valid. 10561func (s *GetDeploymentInstanceInput) Validate() error { 10562 invalidParams := request.ErrInvalidParams{Context: "GetDeploymentInstanceInput"} 10563 if s.DeploymentId == nil { 10564 invalidParams.Add(request.NewErrParamRequired("DeploymentId")) 10565 } 10566 if s.InstanceId == nil { 10567 invalidParams.Add(request.NewErrParamRequired("InstanceId")) 10568 } 10569 10570 if invalidParams.Len() > 0 { 10571 return invalidParams 10572 } 10573 return nil 10574} 10575 10576// SetDeploymentId sets the DeploymentId field's value. 10577func (s *GetDeploymentInstanceInput) SetDeploymentId(v string) *GetDeploymentInstanceInput { 10578 s.DeploymentId = &v 10579 return s 10580} 10581 10582// SetInstanceId sets the InstanceId field's value. 10583func (s *GetDeploymentInstanceInput) SetInstanceId(v string) *GetDeploymentInstanceInput { 10584 s.InstanceId = &v 10585 return s 10586} 10587 10588// Represents the output of a GetDeploymentInstance operation. 10589type GetDeploymentInstanceOutput struct { 10590 _ struct{} `type:"structure"` 10591 10592 // Information about the instance. 10593 InstanceSummary *InstanceSummary `locationName:"instanceSummary" deprecated:"true" type:"structure"` 10594} 10595 10596// String returns the string representation 10597func (s GetDeploymentInstanceOutput) String() string { 10598 return awsutil.Prettify(s) 10599} 10600 10601// GoString returns the string representation 10602func (s GetDeploymentInstanceOutput) GoString() string { 10603 return s.String() 10604} 10605 10606// SetInstanceSummary sets the InstanceSummary field's value. 10607func (s *GetDeploymentInstanceOutput) SetInstanceSummary(v *InstanceSummary) *GetDeploymentInstanceOutput { 10608 s.InstanceSummary = v 10609 return s 10610} 10611 10612// Represents the output of a GetDeployment operation. 10613type GetDeploymentOutput struct { 10614 _ struct{} `type:"structure"` 10615 10616 // Information about the deployment. 10617 DeploymentInfo *DeploymentInfo `locationName:"deploymentInfo" type:"structure"` 10618} 10619 10620// String returns the string representation 10621func (s GetDeploymentOutput) String() string { 10622 return awsutil.Prettify(s) 10623} 10624 10625// GoString returns the string representation 10626func (s GetDeploymentOutput) GoString() string { 10627 return s.String() 10628} 10629 10630// SetDeploymentInfo sets the DeploymentInfo field's value. 10631func (s *GetDeploymentOutput) SetDeploymentInfo(v *DeploymentInfo) *GetDeploymentOutput { 10632 s.DeploymentInfo = v 10633 return s 10634} 10635 10636type GetDeploymentTargetInput struct { 10637 _ struct{} `type:"structure"` 10638 10639 // The unique ID of a deployment. 10640 DeploymentId *string `locationName:"deploymentId" type:"string"` 10641 10642 // The unique ID of a deployment target. 10643 TargetId *string `locationName:"targetId" type:"string"` 10644} 10645 10646// String returns the string representation 10647func (s GetDeploymentTargetInput) String() string { 10648 return awsutil.Prettify(s) 10649} 10650 10651// GoString returns the string representation 10652func (s GetDeploymentTargetInput) GoString() string { 10653 return s.String() 10654} 10655 10656// SetDeploymentId sets the DeploymentId field's value. 10657func (s *GetDeploymentTargetInput) SetDeploymentId(v string) *GetDeploymentTargetInput { 10658 s.DeploymentId = &v 10659 return s 10660} 10661 10662// SetTargetId sets the TargetId field's value. 10663func (s *GetDeploymentTargetInput) SetTargetId(v string) *GetDeploymentTargetInput { 10664 s.TargetId = &v 10665 return s 10666} 10667 10668type GetDeploymentTargetOutput struct { 10669 _ struct{} `type:"structure"` 10670 10671 // A deployment target that contains information about a deployment such as 10672 // its status, lifecycle events, and when it was last updated. It also contains 10673 // metadata about the deployment target. The deployment target metadata depends 10674 // on the deployment target's type (instanceTarget, lambdaTarget, or ecsTarget). 10675 DeploymentTarget *DeploymentTarget `locationName:"deploymentTarget" type:"structure"` 10676} 10677 10678// String returns the string representation 10679func (s GetDeploymentTargetOutput) String() string { 10680 return awsutil.Prettify(s) 10681} 10682 10683// GoString returns the string representation 10684func (s GetDeploymentTargetOutput) GoString() string { 10685 return s.String() 10686} 10687 10688// SetDeploymentTarget sets the DeploymentTarget field's value. 10689func (s *GetDeploymentTargetOutput) SetDeploymentTarget(v *DeploymentTarget) *GetDeploymentTargetOutput { 10690 s.DeploymentTarget = v 10691 return s 10692} 10693 10694// Represents the input of a GetOnPremisesInstance operation. 10695type GetOnPremisesInstanceInput struct { 10696 _ struct{} `type:"structure"` 10697 10698 // The name of the on-premises instance about which to get information. 10699 // 10700 // InstanceName is a required field 10701 InstanceName *string `locationName:"instanceName" type:"string" required:"true"` 10702} 10703 10704// String returns the string representation 10705func (s GetOnPremisesInstanceInput) String() string { 10706 return awsutil.Prettify(s) 10707} 10708 10709// GoString returns the string representation 10710func (s GetOnPremisesInstanceInput) GoString() string { 10711 return s.String() 10712} 10713 10714// Validate inspects the fields of the type to determine if they are valid. 10715func (s *GetOnPremisesInstanceInput) Validate() error { 10716 invalidParams := request.ErrInvalidParams{Context: "GetOnPremisesInstanceInput"} 10717 if s.InstanceName == nil { 10718 invalidParams.Add(request.NewErrParamRequired("InstanceName")) 10719 } 10720 10721 if invalidParams.Len() > 0 { 10722 return invalidParams 10723 } 10724 return nil 10725} 10726 10727// SetInstanceName sets the InstanceName field's value. 10728func (s *GetOnPremisesInstanceInput) SetInstanceName(v string) *GetOnPremisesInstanceInput { 10729 s.InstanceName = &v 10730 return s 10731} 10732 10733// Represents the output of a GetOnPremisesInstance operation. 10734type GetOnPremisesInstanceOutput struct { 10735 _ struct{} `type:"structure"` 10736 10737 // Information about the on-premises instance. 10738 InstanceInfo *InstanceInfo `locationName:"instanceInfo" type:"structure"` 10739} 10740 10741// String returns the string representation 10742func (s GetOnPremisesInstanceOutput) String() string { 10743 return awsutil.Prettify(s) 10744} 10745 10746// GoString returns the string representation 10747func (s GetOnPremisesInstanceOutput) GoString() string { 10748 return s.String() 10749} 10750 10751// SetInstanceInfo sets the InstanceInfo field's value. 10752func (s *GetOnPremisesInstanceOutput) SetInstanceInfo(v *InstanceInfo) *GetOnPremisesInstanceOutput { 10753 s.InstanceInfo = v 10754 return s 10755} 10756 10757// No GitHub account connection exists with the named specified in the call. 10758type GitHubAccountTokenDoesNotExistException struct { 10759 _ struct{} `type:"structure"` 10760 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 10761 10762 Message_ *string `locationName:"message" type:"string"` 10763} 10764 10765// String returns the string representation 10766func (s GitHubAccountTokenDoesNotExistException) String() string { 10767 return awsutil.Prettify(s) 10768} 10769 10770// GoString returns the string representation 10771func (s GitHubAccountTokenDoesNotExistException) GoString() string { 10772 return s.String() 10773} 10774 10775func newErrorGitHubAccountTokenDoesNotExistException(v protocol.ResponseMetadata) error { 10776 return &GitHubAccountTokenDoesNotExistException{ 10777 RespMetadata: v, 10778 } 10779} 10780 10781// Code returns the exception type name. 10782func (s *GitHubAccountTokenDoesNotExistException) Code() string { 10783 return "GitHubAccountTokenDoesNotExistException" 10784} 10785 10786// Message returns the exception's message. 10787func (s *GitHubAccountTokenDoesNotExistException) Message() string { 10788 if s.Message_ != nil { 10789 return *s.Message_ 10790 } 10791 return "" 10792} 10793 10794// OrigErr always returns nil, satisfies awserr.Error interface. 10795func (s *GitHubAccountTokenDoesNotExistException) OrigErr() error { 10796 return nil 10797} 10798 10799func (s *GitHubAccountTokenDoesNotExistException) Error() string { 10800 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 10801} 10802 10803// Status code returns the HTTP status code for the request's response error. 10804func (s *GitHubAccountTokenDoesNotExistException) StatusCode() int { 10805 return s.RespMetadata.StatusCode 10806} 10807 10808// RequestID returns the service's response RequestID for request. 10809func (s *GitHubAccountTokenDoesNotExistException) RequestID() string { 10810 return s.RespMetadata.RequestID 10811} 10812 10813// The call is missing a required GitHub account connection name. 10814type GitHubAccountTokenNameRequiredException struct { 10815 _ struct{} `type:"structure"` 10816 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 10817 10818 Message_ *string `locationName:"message" type:"string"` 10819} 10820 10821// String returns the string representation 10822func (s GitHubAccountTokenNameRequiredException) String() string { 10823 return awsutil.Prettify(s) 10824} 10825 10826// GoString returns the string representation 10827func (s GitHubAccountTokenNameRequiredException) GoString() string { 10828 return s.String() 10829} 10830 10831func newErrorGitHubAccountTokenNameRequiredException(v protocol.ResponseMetadata) error { 10832 return &GitHubAccountTokenNameRequiredException{ 10833 RespMetadata: v, 10834 } 10835} 10836 10837// Code returns the exception type name. 10838func (s *GitHubAccountTokenNameRequiredException) Code() string { 10839 return "GitHubAccountTokenNameRequiredException" 10840} 10841 10842// Message returns the exception's message. 10843func (s *GitHubAccountTokenNameRequiredException) Message() string { 10844 if s.Message_ != nil { 10845 return *s.Message_ 10846 } 10847 return "" 10848} 10849 10850// OrigErr always returns nil, satisfies awserr.Error interface. 10851func (s *GitHubAccountTokenNameRequiredException) OrigErr() error { 10852 return nil 10853} 10854 10855func (s *GitHubAccountTokenNameRequiredException) Error() string { 10856 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 10857} 10858 10859// Status code returns the HTTP status code for the request's response error. 10860func (s *GitHubAccountTokenNameRequiredException) StatusCode() int { 10861 return s.RespMetadata.StatusCode 10862} 10863 10864// RequestID returns the service's response RequestID for request. 10865func (s *GitHubAccountTokenNameRequiredException) RequestID() string { 10866 return s.RespMetadata.RequestID 10867} 10868 10869// Information about the location of application artifacts stored in GitHub. 10870type GitHubLocation struct { 10871 _ struct{} `type:"structure"` 10872 10873 // The SHA1 commit ID of the GitHub commit that represents the bundled artifacts 10874 // for the application revision. 10875 CommitId *string `locationName:"commitId" type:"string"` 10876 10877 // The GitHub account and repository pair that stores a reference to the commit 10878 // that represents the bundled artifacts for the application revision. 10879 // 10880 // Specified as account/repository. 10881 Repository *string `locationName:"repository" type:"string"` 10882} 10883 10884// String returns the string representation 10885func (s GitHubLocation) String() string { 10886 return awsutil.Prettify(s) 10887} 10888 10889// GoString returns the string representation 10890func (s GitHubLocation) GoString() string { 10891 return s.String() 10892} 10893 10894// SetCommitId sets the CommitId field's value. 10895func (s *GitHubLocation) SetCommitId(v string) *GitHubLocation { 10896 s.CommitId = &v 10897 return s 10898} 10899 10900// SetRepository sets the Repository field's value. 10901func (s *GitHubLocation) SetRepository(v string) *GitHubLocation { 10902 s.Repository = &v 10903 return s 10904} 10905 10906// Information about the instances that belong to the replacement environment 10907// in a blue/green deployment. 10908type GreenFleetProvisioningOption struct { 10909 _ struct{} `type:"structure"` 10910 10911 // The method used to add instances to a replacement environment. 10912 // 10913 // * DISCOVER_EXISTING: Use instances that already exist or will be created 10914 // manually. 10915 // 10916 // * COPY_AUTO_SCALING_GROUP: Use settings from a specified Auto Scaling 10917 // group to define and create instances in a new Auto Scaling group. 10918 Action *string `locationName:"action" type:"string" enum:"GreenFleetProvisioningAction"` 10919} 10920 10921// String returns the string representation 10922func (s GreenFleetProvisioningOption) String() string { 10923 return awsutil.Prettify(s) 10924} 10925 10926// GoString returns the string representation 10927func (s GreenFleetProvisioningOption) GoString() string { 10928 return s.String() 10929} 10930 10931// SetAction sets the Action field's value. 10932func (s *GreenFleetProvisioningOption) SetAction(v string) *GreenFleetProvisioningOption { 10933 s.Action = &v 10934 return s 10935} 10936 10937// No IAM ARN was included in the request. You must use an IAM session ARN or 10938// IAM user ARN in the request. 10939type IamArnRequiredException struct { 10940 _ struct{} `type:"structure"` 10941 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 10942 10943 Message_ *string `locationName:"message" type:"string"` 10944} 10945 10946// String returns the string representation 10947func (s IamArnRequiredException) String() string { 10948 return awsutil.Prettify(s) 10949} 10950 10951// GoString returns the string representation 10952func (s IamArnRequiredException) GoString() string { 10953 return s.String() 10954} 10955 10956func newErrorIamArnRequiredException(v protocol.ResponseMetadata) error { 10957 return &IamArnRequiredException{ 10958 RespMetadata: v, 10959 } 10960} 10961 10962// Code returns the exception type name. 10963func (s *IamArnRequiredException) Code() string { 10964 return "IamArnRequiredException" 10965} 10966 10967// Message returns the exception's message. 10968func (s *IamArnRequiredException) Message() string { 10969 if s.Message_ != nil { 10970 return *s.Message_ 10971 } 10972 return "" 10973} 10974 10975// OrigErr always returns nil, satisfies awserr.Error interface. 10976func (s *IamArnRequiredException) OrigErr() error { 10977 return nil 10978} 10979 10980func (s *IamArnRequiredException) Error() string { 10981 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 10982} 10983 10984// Status code returns the HTTP status code for the request's response error. 10985func (s *IamArnRequiredException) StatusCode() int { 10986 return s.RespMetadata.StatusCode 10987} 10988 10989// RequestID returns the service's response RequestID for request. 10990func (s *IamArnRequiredException) RequestID() string { 10991 return s.RespMetadata.RequestID 10992} 10993 10994// The request included an IAM session ARN that has already been used to register 10995// a different instance. 10996type IamSessionArnAlreadyRegisteredException struct { 10997 _ struct{} `type:"structure"` 10998 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 10999 11000 Message_ *string `locationName:"message" type:"string"` 11001} 11002 11003// String returns the string representation 11004func (s IamSessionArnAlreadyRegisteredException) String() string { 11005 return awsutil.Prettify(s) 11006} 11007 11008// GoString returns the string representation 11009func (s IamSessionArnAlreadyRegisteredException) GoString() string { 11010 return s.String() 11011} 11012 11013func newErrorIamSessionArnAlreadyRegisteredException(v protocol.ResponseMetadata) error { 11014 return &IamSessionArnAlreadyRegisteredException{ 11015 RespMetadata: v, 11016 } 11017} 11018 11019// Code returns the exception type name. 11020func (s *IamSessionArnAlreadyRegisteredException) Code() string { 11021 return "IamSessionArnAlreadyRegisteredException" 11022} 11023 11024// Message returns the exception's message. 11025func (s *IamSessionArnAlreadyRegisteredException) Message() string { 11026 if s.Message_ != nil { 11027 return *s.Message_ 11028 } 11029 return "" 11030} 11031 11032// OrigErr always returns nil, satisfies awserr.Error interface. 11033func (s *IamSessionArnAlreadyRegisteredException) OrigErr() error { 11034 return nil 11035} 11036 11037func (s *IamSessionArnAlreadyRegisteredException) Error() string { 11038 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 11039} 11040 11041// Status code returns the HTTP status code for the request's response error. 11042func (s *IamSessionArnAlreadyRegisteredException) StatusCode() int { 11043 return s.RespMetadata.StatusCode 11044} 11045 11046// RequestID returns the service's response RequestID for request. 11047func (s *IamSessionArnAlreadyRegisteredException) RequestID() string { 11048 return s.RespMetadata.RequestID 11049} 11050 11051// The specified IAM user ARN is already registered with an on-premises instance. 11052type IamUserArnAlreadyRegisteredException struct { 11053 _ struct{} `type:"structure"` 11054 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 11055 11056 Message_ *string `locationName:"message" type:"string"` 11057} 11058 11059// String returns the string representation 11060func (s IamUserArnAlreadyRegisteredException) String() string { 11061 return awsutil.Prettify(s) 11062} 11063 11064// GoString returns the string representation 11065func (s IamUserArnAlreadyRegisteredException) GoString() string { 11066 return s.String() 11067} 11068 11069func newErrorIamUserArnAlreadyRegisteredException(v protocol.ResponseMetadata) error { 11070 return &IamUserArnAlreadyRegisteredException{ 11071 RespMetadata: v, 11072 } 11073} 11074 11075// Code returns the exception type name. 11076func (s *IamUserArnAlreadyRegisteredException) Code() string { 11077 return "IamUserArnAlreadyRegisteredException" 11078} 11079 11080// Message returns the exception's message. 11081func (s *IamUserArnAlreadyRegisteredException) Message() string { 11082 if s.Message_ != nil { 11083 return *s.Message_ 11084 } 11085 return "" 11086} 11087 11088// OrigErr always returns nil, satisfies awserr.Error interface. 11089func (s *IamUserArnAlreadyRegisteredException) OrigErr() error { 11090 return nil 11091} 11092 11093func (s *IamUserArnAlreadyRegisteredException) Error() string { 11094 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 11095} 11096 11097// Status code returns the HTTP status code for the request's response error. 11098func (s *IamUserArnAlreadyRegisteredException) StatusCode() int { 11099 return s.RespMetadata.StatusCode 11100} 11101 11102// RequestID returns the service's response RequestID for request. 11103func (s *IamUserArnAlreadyRegisteredException) RequestID() string { 11104 return s.RespMetadata.RequestID 11105} 11106 11107// An IAM user ARN was not specified. 11108type IamUserArnRequiredException struct { 11109 _ struct{} `type:"structure"` 11110 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 11111 11112 Message_ *string `locationName:"message" type:"string"` 11113} 11114 11115// String returns the string representation 11116func (s IamUserArnRequiredException) String() string { 11117 return awsutil.Prettify(s) 11118} 11119 11120// GoString returns the string representation 11121func (s IamUserArnRequiredException) GoString() string { 11122 return s.String() 11123} 11124 11125func newErrorIamUserArnRequiredException(v protocol.ResponseMetadata) error { 11126 return &IamUserArnRequiredException{ 11127 RespMetadata: v, 11128 } 11129} 11130 11131// Code returns the exception type name. 11132func (s *IamUserArnRequiredException) Code() string { 11133 return "IamUserArnRequiredException" 11134} 11135 11136// Message returns the exception's message. 11137func (s *IamUserArnRequiredException) Message() string { 11138 if s.Message_ != nil { 11139 return *s.Message_ 11140 } 11141 return "" 11142} 11143 11144// OrigErr always returns nil, satisfies awserr.Error interface. 11145func (s *IamUserArnRequiredException) OrigErr() error { 11146 return nil 11147} 11148 11149func (s *IamUserArnRequiredException) Error() string { 11150 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 11151} 11152 11153// Status code returns the HTTP status code for the request's response error. 11154func (s *IamUserArnRequiredException) StatusCode() int { 11155 return s.RespMetadata.StatusCode 11156} 11157 11158// RequestID returns the service's response RequestID for request. 11159func (s *IamUserArnRequiredException) RequestID() string { 11160 return s.RespMetadata.RequestID 11161} 11162 11163// The specified instance does not exist in the deployment group. 11164// 11165// Deprecated: This exception is deprecated, use DeploymentTargetDoesNotExistException instead. 11166type InstanceDoesNotExistException struct { 11167 _ struct{} `deprecated:"true" type:"structure"` 11168 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 11169 11170 Message_ *string `locationName:"message" type:"string"` 11171} 11172 11173// String returns the string representation 11174func (s InstanceDoesNotExistException) String() string { 11175 return awsutil.Prettify(s) 11176} 11177 11178// GoString returns the string representation 11179func (s InstanceDoesNotExistException) GoString() string { 11180 return s.String() 11181} 11182 11183func newErrorInstanceDoesNotExistException(v protocol.ResponseMetadata) error { 11184 return &InstanceDoesNotExistException{ 11185 RespMetadata: v, 11186 } 11187} 11188 11189// Code returns the exception type name. 11190func (s *InstanceDoesNotExistException) Code() string { 11191 return "InstanceDoesNotExistException" 11192} 11193 11194// Message returns the exception's message. 11195func (s *InstanceDoesNotExistException) Message() string { 11196 if s.Message_ != nil { 11197 return *s.Message_ 11198 } 11199 return "" 11200} 11201 11202// OrigErr always returns nil, satisfies awserr.Error interface. 11203func (s *InstanceDoesNotExistException) OrigErr() error { 11204 return nil 11205} 11206 11207func (s *InstanceDoesNotExistException) Error() string { 11208 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 11209} 11210 11211// Status code returns the HTTP status code for the request's response error. 11212func (s *InstanceDoesNotExistException) StatusCode() int { 11213 return s.RespMetadata.StatusCode 11214} 11215 11216// RequestID returns the service's response RequestID for request. 11217func (s *InstanceDoesNotExistException) RequestID() string { 11218 return s.RespMetadata.RequestID 11219} 11220 11221// The instance ID was not specified. 11222// 11223// Deprecated: This exception is deprecated, use DeploymentTargetIdRequiredException instead. 11224type InstanceIdRequiredException struct { 11225 _ struct{} `deprecated:"true" type:"structure"` 11226 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 11227 11228 Message_ *string `locationName:"message" type:"string"` 11229} 11230 11231// String returns the string representation 11232func (s InstanceIdRequiredException) String() string { 11233 return awsutil.Prettify(s) 11234} 11235 11236// GoString returns the string representation 11237func (s InstanceIdRequiredException) GoString() string { 11238 return s.String() 11239} 11240 11241func newErrorInstanceIdRequiredException(v protocol.ResponseMetadata) error { 11242 return &InstanceIdRequiredException{ 11243 RespMetadata: v, 11244 } 11245} 11246 11247// Code returns the exception type name. 11248func (s *InstanceIdRequiredException) Code() string { 11249 return "InstanceIdRequiredException" 11250} 11251 11252// Message returns the exception's message. 11253func (s *InstanceIdRequiredException) Message() string { 11254 if s.Message_ != nil { 11255 return *s.Message_ 11256 } 11257 return "" 11258} 11259 11260// OrigErr always returns nil, satisfies awserr.Error interface. 11261func (s *InstanceIdRequiredException) OrigErr() error { 11262 return nil 11263} 11264 11265func (s *InstanceIdRequiredException) Error() string { 11266 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 11267} 11268 11269// Status code returns the HTTP status code for the request's response error. 11270func (s *InstanceIdRequiredException) StatusCode() int { 11271 return s.RespMetadata.StatusCode 11272} 11273 11274// RequestID returns the service's response RequestID for request. 11275func (s *InstanceIdRequiredException) RequestID() string { 11276 return s.RespMetadata.RequestID 11277} 11278 11279// Information about an on-premises instance. 11280type InstanceInfo struct { 11281 _ struct{} `type:"structure"` 11282 11283 // If the on-premises instance was deregistered, the time at which the on-premises 11284 // instance was deregistered. 11285 DeregisterTime *time.Time `locationName:"deregisterTime" type:"timestamp"` 11286 11287 // The ARN of the IAM session associated with the on-premises instance. 11288 IamSessionArn *string `locationName:"iamSessionArn" type:"string"` 11289 11290 // The IAM user ARN associated with the on-premises instance. 11291 IamUserArn *string `locationName:"iamUserArn" type:"string"` 11292 11293 // The ARN of the on-premises instance. 11294 InstanceArn *string `locationName:"instanceArn" type:"string"` 11295 11296 // The name of the on-premises instance. 11297 InstanceName *string `locationName:"instanceName" type:"string"` 11298 11299 // The time at which the on-premises instance was registered. 11300 RegisterTime *time.Time `locationName:"registerTime" type:"timestamp"` 11301 11302 // The tags currently associated with the on-premises instance. 11303 Tags []*Tag `locationName:"tags" type:"list"` 11304} 11305 11306// String returns the string representation 11307func (s InstanceInfo) String() string { 11308 return awsutil.Prettify(s) 11309} 11310 11311// GoString returns the string representation 11312func (s InstanceInfo) GoString() string { 11313 return s.String() 11314} 11315 11316// SetDeregisterTime sets the DeregisterTime field's value. 11317func (s *InstanceInfo) SetDeregisterTime(v time.Time) *InstanceInfo { 11318 s.DeregisterTime = &v 11319 return s 11320} 11321 11322// SetIamSessionArn sets the IamSessionArn field's value. 11323func (s *InstanceInfo) SetIamSessionArn(v string) *InstanceInfo { 11324 s.IamSessionArn = &v 11325 return s 11326} 11327 11328// SetIamUserArn sets the IamUserArn field's value. 11329func (s *InstanceInfo) SetIamUserArn(v string) *InstanceInfo { 11330 s.IamUserArn = &v 11331 return s 11332} 11333 11334// SetInstanceArn sets the InstanceArn field's value. 11335func (s *InstanceInfo) SetInstanceArn(v string) *InstanceInfo { 11336 s.InstanceArn = &v 11337 return s 11338} 11339 11340// SetInstanceName sets the InstanceName field's value. 11341func (s *InstanceInfo) SetInstanceName(v string) *InstanceInfo { 11342 s.InstanceName = &v 11343 return s 11344} 11345 11346// SetRegisterTime sets the RegisterTime field's value. 11347func (s *InstanceInfo) SetRegisterTime(v time.Time) *InstanceInfo { 11348 s.RegisterTime = &v 11349 return s 11350} 11351 11352// SetTags sets the Tags field's value. 11353func (s *InstanceInfo) SetTags(v []*Tag) *InstanceInfo { 11354 s.Tags = v 11355 return s 11356} 11357 11358// The maximum number of allowed on-premises instances in a single call was 11359// exceeded. 11360type InstanceLimitExceededException struct { 11361 _ struct{} `type:"structure"` 11362 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 11363 11364 Message_ *string `locationName:"message" type:"string"` 11365} 11366 11367// String returns the string representation 11368func (s InstanceLimitExceededException) String() string { 11369 return awsutil.Prettify(s) 11370} 11371 11372// GoString returns the string representation 11373func (s InstanceLimitExceededException) GoString() string { 11374 return s.String() 11375} 11376 11377func newErrorInstanceLimitExceededException(v protocol.ResponseMetadata) error { 11378 return &InstanceLimitExceededException{ 11379 RespMetadata: v, 11380 } 11381} 11382 11383// Code returns the exception type name. 11384func (s *InstanceLimitExceededException) Code() string { 11385 return "InstanceLimitExceededException" 11386} 11387 11388// Message returns the exception's message. 11389func (s *InstanceLimitExceededException) Message() string { 11390 if s.Message_ != nil { 11391 return *s.Message_ 11392 } 11393 return "" 11394} 11395 11396// OrigErr always returns nil, satisfies awserr.Error interface. 11397func (s *InstanceLimitExceededException) OrigErr() error { 11398 return nil 11399} 11400 11401func (s *InstanceLimitExceededException) Error() string { 11402 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 11403} 11404 11405// Status code returns the HTTP status code for the request's response error. 11406func (s *InstanceLimitExceededException) StatusCode() int { 11407 return s.RespMetadata.StatusCode 11408} 11409 11410// RequestID returns the service's response RequestID for request. 11411func (s *InstanceLimitExceededException) RequestID() string { 11412 return s.RespMetadata.RequestID 11413} 11414 11415// The specified on-premises instance name is already registered. 11416type InstanceNameAlreadyRegisteredException struct { 11417 _ struct{} `type:"structure"` 11418 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 11419 11420 Message_ *string `locationName:"message" type:"string"` 11421} 11422 11423// String returns the string representation 11424func (s InstanceNameAlreadyRegisteredException) String() string { 11425 return awsutil.Prettify(s) 11426} 11427 11428// GoString returns the string representation 11429func (s InstanceNameAlreadyRegisteredException) GoString() string { 11430 return s.String() 11431} 11432 11433func newErrorInstanceNameAlreadyRegisteredException(v protocol.ResponseMetadata) error { 11434 return &InstanceNameAlreadyRegisteredException{ 11435 RespMetadata: v, 11436 } 11437} 11438 11439// Code returns the exception type name. 11440func (s *InstanceNameAlreadyRegisteredException) Code() string { 11441 return "InstanceNameAlreadyRegisteredException" 11442} 11443 11444// Message returns the exception's message. 11445func (s *InstanceNameAlreadyRegisteredException) Message() string { 11446 if s.Message_ != nil { 11447 return *s.Message_ 11448 } 11449 return "" 11450} 11451 11452// OrigErr always returns nil, satisfies awserr.Error interface. 11453func (s *InstanceNameAlreadyRegisteredException) OrigErr() error { 11454 return nil 11455} 11456 11457func (s *InstanceNameAlreadyRegisteredException) Error() string { 11458 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 11459} 11460 11461// Status code returns the HTTP status code for the request's response error. 11462func (s *InstanceNameAlreadyRegisteredException) StatusCode() int { 11463 return s.RespMetadata.StatusCode 11464} 11465 11466// RequestID returns the service's response RequestID for request. 11467func (s *InstanceNameAlreadyRegisteredException) RequestID() string { 11468 return s.RespMetadata.RequestID 11469} 11470 11471// An on-premises instance name was not specified. 11472type InstanceNameRequiredException struct { 11473 _ struct{} `type:"structure"` 11474 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 11475 11476 Message_ *string `locationName:"message" type:"string"` 11477} 11478 11479// String returns the string representation 11480func (s InstanceNameRequiredException) String() string { 11481 return awsutil.Prettify(s) 11482} 11483 11484// GoString returns the string representation 11485func (s InstanceNameRequiredException) GoString() string { 11486 return s.String() 11487} 11488 11489func newErrorInstanceNameRequiredException(v protocol.ResponseMetadata) error { 11490 return &InstanceNameRequiredException{ 11491 RespMetadata: v, 11492 } 11493} 11494 11495// Code returns the exception type name. 11496func (s *InstanceNameRequiredException) Code() string { 11497 return "InstanceNameRequiredException" 11498} 11499 11500// Message returns the exception's message. 11501func (s *InstanceNameRequiredException) Message() string { 11502 if s.Message_ != nil { 11503 return *s.Message_ 11504 } 11505 return "" 11506} 11507 11508// OrigErr always returns nil, satisfies awserr.Error interface. 11509func (s *InstanceNameRequiredException) OrigErr() error { 11510 return nil 11511} 11512 11513func (s *InstanceNameRequiredException) Error() string { 11514 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 11515} 11516 11517// Status code returns the HTTP status code for the request's response error. 11518func (s *InstanceNameRequiredException) StatusCode() int { 11519 return s.RespMetadata.StatusCode 11520} 11521 11522// RequestID returns the service's response RequestID for request. 11523func (s *InstanceNameRequiredException) RequestID() string { 11524 return s.RespMetadata.RequestID 11525} 11526 11527// The specified on-premises instance is not registered. 11528type InstanceNotRegisteredException struct { 11529 _ struct{} `type:"structure"` 11530 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 11531 11532 Message_ *string `locationName:"message" type:"string"` 11533} 11534 11535// String returns the string representation 11536func (s InstanceNotRegisteredException) String() string { 11537 return awsutil.Prettify(s) 11538} 11539 11540// GoString returns the string representation 11541func (s InstanceNotRegisteredException) GoString() string { 11542 return s.String() 11543} 11544 11545func newErrorInstanceNotRegisteredException(v protocol.ResponseMetadata) error { 11546 return &InstanceNotRegisteredException{ 11547 RespMetadata: v, 11548 } 11549} 11550 11551// Code returns the exception type name. 11552func (s *InstanceNotRegisteredException) Code() string { 11553 return "InstanceNotRegisteredException" 11554} 11555 11556// Message returns the exception's message. 11557func (s *InstanceNotRegisteredException) Message() string { 11558 if s.Message_ != nil { 11559 return *s.Message_ 11560 } 11561 return "" 11562} 11563 11564// OrigErr always returns nil, satisfies awserr.Error interface. 11565func (s *InstanceNotRegisteredException) OrigErr() error { 11566 return nil 11567} 11568 11569func (s *InstanceNotRegisteredException) Error() string { 11570 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 11571} 11572 11573// Status code returns the HTTP status code for the request's response error. 11574func (s *InstanceNotRegisteredException) StatusCode() int { 11575 return s.RespMetadata.StatusCode 11576} 11577 11578// RequestID returns the service's response RequestID for request. 11579func (s *InstanceNotRegisteredException) RequestID() string { 11580 return s.RespMetadata.RequestID 11581} 11582 11583// Information about an instance in a deployment. 11584// 11585// Deprecated: InstanceSummary is deprecated, use DeploymentTarget instead. 11586type InstanceSummary struct { 11587 _ struct{} `deprecated:"true" type:"structure"` 11588 11589 // The unique ID of a deployment. 11590 DeploymentId *string `locationName:"deploymentId" type:"string"` 11591 11592 // The instance ID. 11593 InstanceId *string `locationName:"instanceId" type:"string"` 11594 11595 // Information about which environment an instance belongs to in a blue/green 11596 // deployment. 11597 // 11598 // * BLUE: The instance is part of the original environment. 11599 // 11600 // * GREEN: The instance is part of the replacement environment. 11601 InstanceType *string `locationName:"instanceType" type:"string" enum:"InstanceType"` 11602 11603 // A timestamp that indicates when the instance information was last updated. 11604 LastUpdatedAt *time.Time `locationName:"lastUpdatedAt" type:"timestamp"` 11605 11606 // A list of lifecycle events for this instance. 11607 LifecycleEvents []*LifecycleEvent `locationName:"lifecycleEvents" type:"list"` 11608 11609 // The deployment status for this instance: 11610 // 11611 // * Pending: The deployment is pending for this instance. 11612 // 11613 // * In Progress: The deployment is in progress for this instance. 11614 // 11615 // * Succeeded: The deployment has succeeded for this instance. 11616 // 11617 // * Failed: The deployment has failed for this instance. 11618 // 11619 // * Skipped: The deployment has been skipped for this instance. 11620 // 11621 // * Unknown: The deployment status is unknown for this instance. 11622 Status *string `locationName:"status" deprecated:"true" type:"string" enum:"InstanceStatus"` 11623} 11624 11625// String returns the string representation 11626func (s InstanceSummary) String() string { 11627 return awsutil.Prettify(s) 11628} 11629 11630// GoString returns the string representation 11631func (s InstanceSummary) GoString() string { 11632 return s.String() 11633} 11634 11635// SetDeploymentId sets the DeploymentId field's value. 11636func (s *InstanceSummary) SetDeploymentId(v string) *InstanceSummary { 11637 s.DeploymentId = &v 11638 return s 11639} 11640 11641// SetInstanceId sets the InstanceId field's value. 11642func (s *InstanceSummary) SetInstanceId(v string) *InstanceSummary { 11643 s.InstanceId = &v 11644 return s 11645} 11646 11647// SetInstanceType sets the InstanceType field's value. 11648func (s *InstanceSummary) SetInstanceType(v string) *InstanceSummary { 11649 s.InstanceType = &v 11650 return s 11651} 11652 11653// SetLastUpdatedAt sets the LastUpdatedAt field's value. 11654func (s *InstanceSummary) SetLastUpdatedAt(v time.Time) *InstanceSummary { 11655 s.LastUpdatedAt = &v 11656 return s 11657} 11658 11659// SetLifecycleEvents sets the LifecycleEvents field's value. 11660func (s *InstanceSummary) SetLifecycleEvents(v []*LifecycleEvent) *InstanceSummary { 11661 s.LifecycleEvents = v 11662 return s 11663} 11664 11665// SetStatus sets the Status field's value. 11666func (s *InstanceSummary) SetStatus(v string) *InstanceSummary { 11667 s.Status = &v 11668 return s 11669} 11670 11671// A target Amazon EC2 or on-premises instance during a deployment that uses 11672// the EC2/On-premises compute platform. 11673type InstanceTarget struct { 11674 _ struct{} `type:"structure"` 11675 11676 // The unique ID of a deployment. 11677 DeploymentId *string `locationName:"deploymentId" type:"string"` 11678 11679 // A label that identifies whether the instance is an original target (BLUE) 11680 // or a replacement target (GREEN). 11681 InstanceLabel *string `locationName:"instanceLabel" type:"string" enum:"TargetLabel"` 11682 11683 // The date and time when the target instance was updated by a deployment. 11684 LastUpdatedAt *time.Time `locationName:"lastUpdatedAt" type:"timestamp"` 11685 11686 // The lifecycle events of the deployment to this target instance. 11687 LifecycleEvents []*LifecycleEvent `locationName:"lifecycleEvents" type:"list"` 11688 11689 // The status an EC2/On-premises deployment's target instance. 11690 Status *string `locationName:"status" type:"string" enum:"TargetStatus"` 11691 11692 // The Amazon Resource Name (ARN) of the target. 11693 TargetArn *string `locationName:"targetArn" type:"string"` 11694 11695 // The unique ID of a deployment target that has a type of instanceTarget. 11696 TargetId *string `locationName:"targetId" type:"string"` 11697} 11698 11699// String returns the string representation 11700func (s InstanceTarget) String() string { 11701 return awsutil.Prettify(s) 11702} 11703 11704// GoString returns the string representation 11705func (s InstanceTarget) GoString() string { 11706 return s.String() 11707} 11708 11709// SetDeploymentId sets the DeploymentId field's value. 11710func (s *InstanceTarget) SetDeploymentId(v string) *InstanceTarget { 11711 s.DeploymentId = &v 11712 return s 11713} 11714 11715// SetInstanceLabel sets the InstanceLabel field's value. 11716func (s *InstanceTarget) SetInstanceLabel(v string) *InstanceTarget { 11717 s.InstanceLabel = &v 11718 return s 11719} 11720 11721// SetLastUpdatedAt sets the LastUpdatedAt field's value. 11722func (s *InstanceTarget) SetLastUpdatedAt(v time.Time) *InstanceTarget { 11723 s.LastUpdatedAt = &v 11724 return s 11725} 11726 11727// SetLifecycleEvents sets the LifecycleEvents field's value. 11728func (s *InstanceTarget) SetLifecycleEvents(v []*LifecycleEvent) *InstanceTarget { 11729 s.LifecycleEvents = v 11730 return s 11731} 11732 11733// SetStatus sets the Status field's value. 11734func (s *InstanceTarget) SetStatus(v string) *InstanceTarget { 11735 s.Status = &v 11736 return s 11737} 11738 11739// SetTargetArn sets the TargetArn field's value. 11740func (s *InstanceTarget) SetTargetArn(v string) *InstanceTarget { 11741 s.TargetArn = &v 11742 return s 11743} 11744 11745// SetTargetId sets the TargetId field's value. 11746func (s *InstanceTarget) SetTargetId(v string) *InstanceTarget { 11747 s.TargetId = &v 11748 return s 11749} 11750 11751// The format of the alarm configuration is invalid. Possible causes include: 11752// 11753// * The alarm list is null. 11754// 11755// * The alarm object is null. 11756// 11757// * The alarm name is empty or null or exceeds the limit of 255 characters. 11758// 11759// * Two alarms with the same name have been specified. 11760// 11761// * The alarm configuration is enabled, but the alarm list is empty. 11762type InvalidAlarmConfigException struct { 11763 _ struct{} `type:"structure"` 11764 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 11765 11766 Message_ *string `locationName:"message" type:"string"` 11767} 11768 11769// String returns the string representation 11770func (s InvalidAlarmConfigException) String() string { 11771 return awsutil.Prettify(s) 11772} 11773 11774// GoString returns the string representation 11775func (s InvalidAlarmConfigException) GoString() string { 11776 return s.String() 11777} 11778 11779func newErrorInvalidAlarmConfigException(v protocol.ResponseMetadata) error { 11780 return &InvalidAlarmConfigException{ 11781 RespMetadata: v, 11782 } 11783} 11784 11785// Code returns the exception type name. 11786func (s *InvalidAlarmConfigException) Code() string { 11787 return "InvalidAlarmConfigException" 11788} 11789 11790// Message returns the exception's message. 11791func (s *InvalidAlarmConfigException) Message() string { 11792 if s.Message_ != nil { 11793 return *s.Message_ 11794 } 11795 return "" 11796} 11797 11798// OrigErr always returns nil, satisfies awserr.Error interface. 11799func (s *InvalidAlarmConfigException) OrigErr() error { 11800 return nil 11801} 11802 11803func (s *InvalidAlarmConfigException) Error() string { 11804 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 11805} 11806 11807// Status code returns the HTTP status code for the request's response error. 11808func (s *InvalidAlarmConfigException) StatusCode() int { 11809 return s.RespMetadata.StatusCode 11810} 11811 11812// RequestID returns the service's response RequestID for request. 11813func (s *InvalidAlarmConfigException) RequestID() string { 11814 return s.RespMetadata.RequestID 11815} 11816 11817// The application name was specified in an invalid format. 11818type InvalidApplicationNameException struct { 11819 _ struct{} `type:"structure"` 11820 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 11821 11822 Message_ *string `locationName:"message" type:"string"` 11823} 11824 11825// String returns the string representation 11826func (s InvalidApplicationNameException) String() string { 11827 return awsutil.Prettify(s) 11828} 11829 11830// GoString returns the string representation 11831func (s InvalidApplicationNameException) GoString() string { 11832 return s.String() 11833} 11834 11835func newErrorInvalidApplicationNameException(v protocol.ResponseMetadata) error { 11836 return &InvalidApplicationNameException{ 11837 RespMetadata: v, 11838 } 11839} 11840 11841// Code returns the exception type name. 11842func (s *InvalidApplicationNameException) Code() string { 11843 return "InvalidApplicationNameException" 11844} 11845 11846// Message returns the exception's message. 11847func (s *InvalidApplicationNameException) Message() string { 11848 if s.Message_ != nil { 11849 return *s.Message_ 11850 } 11851 return "" 11852} 11853 11854// OrigErr always returns nil, satisfies awserr.Error interface. 11855func (s *InvalidApplicationNameException) OrigErr() error { 11856 return nil 11857} 11858 11859func (s *InvalidApplicationNameException) Error() string { 11860 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 11861} 11862 11863// Status code returns the HTTP status code for the request's response error. 11864func (s *InvalidApplicationNameException) StatusCode() int { 11865 return s.RespMetadata.StatusCode 11866} 11867 11868// RequestID returns the service's response RequestID for request. 11869func (s *InvalidApplicationNameException) RequestID() string { 11870 return s.RespMetadata.RequestID 11871} 11872 11873// The specified ARN is not in a valid format. 11874type InvalidArnException struct { 11875 _ struct{} `type:"structure"` 11876 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 11877 11878 Message_ *string `locationName:"message" type:"string"` 11879} 11880 11881// String returns the string representation 11882func (s InvalidArnException) String() string { 11883 return awsutil.Prettify(s) 11884} 11885 11886// GoString returns the string representation 11887func (s InvalidArnException) GoString() string { 11888 return s.String() 11889} 11890 11891func newErrorInvalidArnException(v protocol.ResponseMetadata) error { 11892 return &InvalidArnException{ 11893 RespMetadata: v, 11894 } 11895} 11896 11897// Code returns the exception type name. 11898func (s *InvalidArnException) Code() string { 11899 return "InvalidArnException" 11900} 11901 11902// Message returns the exception's message. 11903func (s *InvalidArnException) Message() string { 11904 if s.Message_ != nil { 11905 return *s.Message_ 11906 } 11907 return "" 11908} 11909 11910// OrigErr always returns nil, satisfies awserr.Error interface. 11911func (s *InvalidArnException) OrigErr() error { 11912 return nil 11913} 11914 11915func (s *InvalidArnException) Error() string { 11916 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 11917} 11918 11919// Status code returns the HTTP status code for the request's response error. 11920func (s *InvalidArnException) StatusCode() int { 11921 return s.RespMetadata.StatusCode 11922} 11923 11924// RequestID returns the service's response RequestID for request. 11925func (s *InvalidArnException) RequestID() string { 11926 return s.RespMetadata.RequestID 11927} 11928 11929// The automatic rollback configuration was specified in an invalid format. 11930// For example, automatic rollback is enabled, but an invalid triggering event 11931// type or no event types were listed. 11932type InvalidAutoRollbackConfigException struct { 11933 _ struct{} `type:"structure"` 11934 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 11935 11936 Message_ *string `locationName:"message" type:"string"` 11937} 11938 11939// String returns the string representation 11940func (s InvalidAutoRollbackConfigException) String() string { 11941 return awsutil.Prettify(s) 11942} 11943 11944// GoString returns the string representation 11945func (s InvalidAutoRollbackConfigException) GoString() string { 11946 return s.String() 11947} 11948 11949func newErrorInvalidAutoRollbackConfigException(v protocol.ResponseMetadata) error { 11950 return &InvalidAutoRollbackConfigException{ 11951 RespMetadata: v, 11952 } 11953} 11954 11955// Code returns the exception type name. 11956func (s *InvalidAutoRollbackConfigException) Code() string { 11957 return "InvalidAutoRollbackConfigException" 11958} 11959 11960// Message returns the exception's message. 11961func (s *InvalidAutoRollbackConfigException) Message() string { 11962 if s.Message_ != nil { 11963 return *s.Message_ 11964 } 11965 return "" 11966} 11967 11968// OrigErr always returns nil, satisfies awserr.Error interface. 11969func (s *InvalidAutoRollbackConfigException) OrigErr() error { 11970 return nil 11971} 11972 11973func (s *InvalidAutoRollbackConfigException) Error() string { 11974 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 11975} 11976 11977// Status code returns the HTTP status code for the request's response error. 11978func (s *InvalidAutoRollbackConfigException) StatusCode() int { 11979 return s.RespMetadata.StatusCode 11980} 11981 11982// RequestID returns the service's response RequestID for request. 11983func (s *InvalidAutoRollbackConfigException) RequestID() string { 11984 return s.RespMetadata.RequestID 11985} 11986 11987// The Auto Scaling group was specified in an invalid format or does not exist. 11988type InvalidAutoScalingGroupException struct { 11989 _ struct{} `type:"structure"` 11990 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 11991 11992 Message_ *string `locationName:"message" type:"string"` 11993} 11994 11995// String returns the string representation 11996func (s InvalidAutoScalingGroupException) String() string { 11997 return awsutil.Prettify(s) 11998} 11999 12000// GoString returns the string representation 12001func (s InvalidAutoScalingGroupException) GoString() string { 12002 return s.String() 12003} 12004 12005func newErrorInvalidAutoScalingGroupException(v protocol.ResponseMetadata) error { 12006 return &InvalidAutoScalingGroupException{ 12007 RespMetadata: v, 12008 } 12009} 12010 12011// Code returns the exception type name. 12012func (s *InvalidAutoScalingGroupException) Code() string { 12013 return "InvalidAutoScalingGroupException" 12014} 12015 12016// Message returns the exception's message. 12017func (s *InvalidAutoScalingGroupException) Message() string { 12018 if s.Message_ != nil { 12019 return *s.Message_ 12020 } 12021 return "" 12022} 12023 12024// OrigErr always returns nil, satisfies awserr.Error interface. 12025func (s *InvalidAutoScalingGroupException) OrigErr() error { 12026 return nil 12027} 12028 12029func (s *InvalidAutoScalingGroupException) Error() string { 12030 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 12031} 12032 12033// Status code returns the HTTP status code for the request's response error. 12034func (s *InvalidAutoScalingGroupException) StatusCode() int { 12035 return s.RespMetadata.StatusCode 12036} 12037 12038// RequestID returns the service's response RequestID for request. 12039func (s *InvalidAutoScalingGroupException) RequestID() string { 12040 return s.RespMetadata.RequestID 12041} 12042 12043// The configuration for the blue/green deployment group was provided in an 12044// invalid format. For information about deployment configuration format, see 12045// CreateDeploymentConfig. 12046type InvalidBlueGreenDeploymentConfigurationException struct { 12047 _ struct{} `type:"structure"` 12048 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 12049 12050 Message_ *string `locationName:"message" type:"string"` 12051} 12052 12053// String returns the string representation 12054func (s InvalidBlueGreenDeploymentConfigurationException) String() string { 12055 return awsutil.Prettify(s) 12056} 12057 12058// GoString returns the string representation 12059func (s InvalidBlueGreenDeploymentConfigurationException) GoString() string { 12060 return s.String() 12061} 12062 12063func newErrorInvalidBlueGreenDeploymentConfigurationException(v protocol.ResponseMetadata) error { 12064 return &InvalidBlueGreenDeploymentConfigurationException{ 12065 RespMetadata: v, 12066 } 12067} 12068 12069// Code returns the exception type name. 12070func (s *InvalidBlueGreenDeploymentConfigurationException) Code() string { 12071 return "InvalidBlueGreenDeploymentConfigurationException" 12072} 12073 12074// Message returns the exception's message. 12075func (s *InvalidBlueGreenDeploymentConfigurationException) Message() string { 12076 if s.Message_ != nil { 12077 return *s.Message_ 12078 } 12079 return "" 12080} 12081 12082// OrigErr always returns nil, satisfies awserr.Error interface. 12083func (s *InvalidBlueGreenDeploymentConfigurationException) OrigErr() error { 12084 return nil 12085} 12086 12087func (s *InvalidBlueGreenDeploymentConfigurationException) Error() string { 12088 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 12089} 12090 12091// Status code returns the HTTP status code for the request's response error. 12092func (s *InvalidBlueGreenDeploymentConfigurationException) StatusCode() int { 12093 return s.RespMetadata.StatusCode 12094} 12095 12096// RequestID returns the service's response RequestID for request. 12097func (s *InvalidBlueGreenDeploymentConfigurationException) RequestID() string { 12098 return s.RespMetadata.RequestID 12099} 12100 12101// The bucket name either doesn't exist or was specified in an invalid format. 12102type InvalidBucketNameFilterException struct { 12103 _ struct{} `type:"structure"` 12104 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 12105 12106 Message_ *string `locationName:"message" type:"string"` 12107} 12108 12109// String returns the string representation 12110func (s InvalidBucketNameFilterException) String() string { 12111 return awsutil.Prettify(s) 12112} 12113 12114// GoString returns the string representation 12115func (s InvalidBucketNameFilterException) GoString() string { 12116 return s.String() 12117} 12118 12119func newErrorInvalidBucketNameFilterException(v protocol.ResponseMetadata) error { 12120 return &InvalidBucketNameFilterException{ 12121 RespMetadata: v, 12122 } 12123} 12124 12125// Code returns the exception type name. 12126func (s *InvalidBucketNameFilterException) Code() string { 12127 return "InvalidBucketNameFilterException" 12128} 12129 12130// Message returns the exception's message. 12131func (s *InvalidBucketNameFilterException) Message() string { 12132 if s.Message_ != nil { 12133 return *s.Message_ 12134 } 12135 return "" 12136} 12137 12138// OrigErr always returns nil, satisfies awserr.Error interface. 12139func (s *InvalidBucketNameFilterException) OrigErr() error { 12140 return nil 12141} 12142 12143func (s *InvalidBucketNameFilterException) Error() string { 12144 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 12145} 12146 12147// Status code returns the HTTP status code for the request's response error. 12148func (s *InvalidBucketNameFilterException) StatusCode() int { 12149 return s.RespMetadata.StatusCode 12150} 12151 12152// RequestID returns the service's response RequestID for request. 12153func (s *InvalidBucketNameFilterException) RequestID() string { 12154 return s.RespMetadata.RequestID 12155} 12156 12157// The computePlatform is invalid. The computePlatform should be Lambda, Server, 12158// or ECS. 12159type InvalidComputePlatformException struct { 12160 _ struct{} `type:"structure"` 12161 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 12162 12163 Message_ *string `locationName:"message" type:"string"` 12164} 12165 12166// String returns the string representation 12167func (s InvalidComputePlatformException) String() string { 12168 return awsutil.Prettify(s) 12169} 12170 12171// GoString returns the string representation 12172func (s InvalidComputePlatformException) GoString() string { 12173 return s.String() 12174} 12175 12176func newErrorInvalidComputePlatformException(v protocol.ResponseMetadata) error { 12177 return &InvalidComputePlatformException{ 12178 RespMetadata: v, 12179 } 12180} 12181 12182// Code returns the exception type name. 12183func (s *InvalidComputePlatformException) Code() string { 12184 return "InvalidComputePlatformException" 12185} 12186 12187// Message returns the exception's message. 12188func (s *InvalidComputePlatformException) Message() string { 12189 if s.Message_ != nil { 12190 return *s.Message_ 12191 } 12192 return "" 12193} 12194 12195// OrigErr always returns nil, satisfies awserr.Error interface. 12196func (s *InvalidComputePlatformException) OrigErr() error { 12197 return nil 12198} 12199 12200func (s *InvalidComputePlatformException) Error() string { 12201 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 12202} 12203 12204// Status code returns the HTTP status code for the request's response error. 12205func (s *InvalidComputePlatformException) StatusCode() int { 12206 return s.RespMetadata.StatusCode 12207} 12208 12209// RequestID returns the service's response RequestID for request. 12210func (s *InvalidComputePlatformException) RequestID() string { 12211 return s.RespMetadata.RequestID 12212} 12213 12214// The deployed state filter was specified in an invalid format. 12215type InvalidDeployedStateFilterException struct { 12216 _ struct{} `type:"structure"` 12217 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 12218 12219 Message_ *string `locationName:"message" type:"string"` 12220} 12221 12222// String returns the string representation 12223func (s InvalidDeployedStateFilterException) String() string { 12224 return awsutil.Prettify(s) 12225} 12226 12227// GoString returns the string representation 12228func (s InvalidDeployedStateFilterException) GoString() string { 12229 return s.String() 12230} 12231 12232func newErrorInvalidDeployedStateFilterException(v protocol.ResponseMetadata) error { 12233 return &InvalidDeployedStateFilterException{ 12234 RespMetadata: v, 12235 } 12236} 12237 12238// Code returns the exception type name. 12239func (s *InvalidDeployedStateFilterException) Code() string { 12240 return "InvalidDeployedStateFilterException" 12241} 12242 12243// Message returns the exception's message. 12244func (s *InvalidDeployedStateFilterException) Message() string { 12245 if s.Message_ != nil { 12246 return *s.Message_ 12247 } 12248 return "" 12249} 12250 12251// OrigErr always returns nil, satisfies awserr.Error interface. 12252func (s *InvalidDeployedStateFilterException) OrigErr() error { 12253 return nil 12254} 12255 12256func (s *InvalidDeployedStateFilterException) Error() string { 12257 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 12258} 12259 12260// Status code returns the HTTP status code for the request's response error. 12261func (s *InvalidDeployedStateFilterException) StatusCode() int { 12262 return s.RespMetadata.StatusCode 12263} 12264 12265// RequestID returns the service's response RequestID for request. 12266func (s *InvalidDeployedStateFilterException) RequestID() string { 12267 return s.RespMetadata.RequestID 12268} 12269 12270// The deployment configuration name was specified in an invalid format. 12271type InvalidDeploymentConfigNameException struct { 12272 _ struct{} `type:"structure"` 12273 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 12274 12275 Message_ *string `locationName:"message" type:"string"` 12276} 12277 12278// String returns the string representation 12279func (s InvalidDeploymentConfigNameException) String() string { 12280 return awsutil.Prettify(s) 12281} 12282 12283// GoString returns the string representation 12284func (s InvalidDeploymentConfigNameException) GoString() string { 12285 return s.String() 12286} 12287 12288func newErrorInvalidDeploymentConfigNameException(v protocol.ResponseMetadata) error { 12289 return &InvalidDeploymentConfigNameException{ 12290 RespMetadata: v, 12291 } 12292} 12293 12294// Code returns the exception type name. 12295func (s *InvalidDeploymentConfigNameException) Code() string { 12296 return "InvalidDeploymentConfigNameException" 12297} 12298 12299// Message returns the exception's message. 12300func (s *InvalidDeploymentConfigNameException) Message() string { 12301 if s.Message_ != nil { 12302 return *s.Message_ 12303 } 12304 return "" 12305} 12306 12307// OrigErr always returns nil, satisfies awserr.Error interface. 12308func (s *InvalidDeploymentConfigNameException) OrigErr() error { 12309 return nil 12310} 12311 12312func (s *InvalidDeploymentConfigNameException) Error() string { 12313 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 12314} 12315 12316// Status code returns the HTTP status code for the request's response error. 12317func (s *InvalidDeploymentConfigNameException) StatusCode() int { 12318 return s.RespMetadata.StatusCode 12319} 12320 12321// RequestID returns the service's response RequestID for request. 12322func (s *InvalidDeploymentConfigNameException) RequestID() string { 12323 return s.RespMetadata.RequestID 12324} 12325 12326// The deployment group name was specified in an invalid format. 12327type InvalidDeploymentGroupNameException struct { 12328 _ struct{} `type:"structure"` 12329 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 12330 12331 Message_ *string `locationName:"message" type:"string"` 12332} 12333 12334// String returns the string representation 12335func (s InvalidDeploymentGroupNameException) String() string { 12336 return awsutil.Prettify(s) 12337} 12338 12339// GoString returns the string representation 12340func (s InvalidDeploymentGroupNameException) GoString() string { 12341 return s.String() 12342} 12343 12344func newErrorInvalidDeploymentGroupNameException(v protocol.ResponseMetadata) error { 12345 return &InvalidDeploymentGroupNameException{ 12346 RespMetadata: v, 12347 } 12348} 12349 12350// Code returns the exception type name. 12351func (s *InvalidDeploymentGroupNameException) Code() string { 12352 return "InvalidDeploymentGroupNameException" 12353} 12354 12355// Message returns the exception's message. 12356func (s *InvalidDeploymentGroupNameException) Message() string { 12357 if s.Message_ != nil { 12358 return *s.Message_ 12359 } 12360 return "" 12361} 12362 12363// OrigErr always returns nil, satisfies awserr.Error interface. 12364func (s *InvalidDeploymentGroupNameException) OrigErr() error { 12365 return nil 12366} 12367 12368func (s *InvalidDeploymentGroupNameException) Error() string { 12369 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 12370} 12371 12372// Status code returns the HTTP status code for the request's response error. 12373func (s *InvalidDeploymentGroupNameException) StatusCode() int { 12374 return s.RespMetadata.StatusCode 12375} 12376 12377// RequestID returns the service's response RequestID for request. 12378func (s *InvalidDeploymentGroupNameException) RequestID() string { 12379 return s.RespMetadata.RequestID 12380} 12381 12382// At least one of the deployment IDs was specified in an invalid format. 12383type InvalidDeploymentIdException struct { 12384 _ struct{} `type:"structure"` 12385 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 12386 12387 Message_ *string `locationName:"message" type:"string"` 12388} 12389 12390// String returns the string representation 12391func (s InvalidDeploymentIdException) String() string { 12392 return awsutil.Prettify(s) 12393} 12394 12395// GoString returns the string representation 12396func (s InvalidDeploymentIdException) GoString() string { 12397 return s.String() 12398} 12399 12400func newErrorInvalidDeploymentIdException(v protocol.ResponseMetadata) error { 12401 return &InvalidDeploymentIdException{ 12402 RespMetadata: v, 12403 } 12404} 12405 12406// Code returns the exception type name. 12407func (s *InvalidDeploymentIdException) Code() string { 12408 return "InvalidDeploymentIdException" 12409} 12410 12411// Message returns the exception's message. 12412func (s *InvalidDeploymentIdException) Message() string { 12413 if s.Message_ != nil { 12414 return *s.Message_ 12415 } 12416 return "" 12417} 12418 12419// OrigErr always returns nil, satisfies awserr.Error interface. 12420func (s *InvalidDeploymentIdException) OrigErr() error { 12421 return nil 12422} 12423 12424func (s *InvalidDeploymentIdException) Error() string { 12425 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 12426} 12427 12428// Status code returns the HTTP status code for the request's response error. 12429func (s *InvalidDeploymentIdException) StatusCode() int { 12430 return s.RespMetadata.StatusCode 12431} 12432 12433// RequestID returns the service's response RequestID for request. 12434func (s *InvalidDeploymentIdException) RequestID() string { 12435 return s.RespMetadata.RequestID 12436} 12437 12438// An instance type was specified for an in-place deployment. Instance types 12439// are supported for blue/green deployments only. 12440type InvalidDeploymentInstanceTypeException struct { 12441 _ struct{} `type:"structure"` 12442 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 12443 12444 Message_ *string `locationName:"message" type:"string"` 12445} 12446 12447// String returns the string representation 12448func (s InvalidDeploymentInstanceTypeException) String() string { 12449 return awsutil.Prettify(s) 12450} 12451 12452// GoString returns the string representation 12453func (s InvalidDeploymentInstanceTypeException) GoString() string { 12454 return s.String() 12455} 12456 12457func newErrorInvalidDeploymentInstanceTypeException(v protocol.ResponseMetadata) error { 12458 return &InvalidDeploymentInstanceTypeException{ 12459 RespMetadata: v, 12460 } 12461} 12462 12463// Code returns the exception type name. 12464func (s *InvalidDeploymentInstanceTypeException) Code() string { 12465 return "InvalidDeploymentInstanceTypeException" 12466} 12467 12468// Message returns the exception's message. 12469func (s *InvalidDeploymentInstanceTypeException) Message() string { 12470 if s.Message_ != nil { 12471 return *s.Message_ 12472 } 12473 return "" 12474} 12475 12476// OrigErr always returns nil, satisfies awserr.Error interface. 12477func (s *InvalidDeploymentInstanceTypeException) OrigErr() error { 12478 return nil 12479} 12480 12481func (s *InvalidDeploymentInstanceTypeException) Error() string { 12482 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 12483} 12484 12485// Status code returns the HTTP status code for the request's response error. 12486func (s *InvalidDeploymentInstanceTypeException) StatusCode() int { 12487 return s.RespMetadata.StatusCode 12488} 12489 12490// RequestID returns the service's response RequestID for request. 12491func (s *InvalidDeploymentInstanceTypeException) RequestID() string { 12492 return s.RespMetadata.RequestID 12493} 12494 12495// The specified deployment status doesn't exist or cannot be determined. 12496type InvalidDeploymentStatusException struct { 12497 _ struct{} `type:"structure"` 12498 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 12499 12500 Message_ *string `locationName:"message" type:"string"` 12501} 12502 12503// String returns the string representation 12504func (s InvalidDeploymentStatusException) String() string { 12505 return awsutil.Prettify(s) 12506} 12507 12508// GoString returns the string representation 12509func (s InvalidDeploymentStatusException) GoString() string { 12510 return s.String() 12511} 12512 12513func newErrorInvalidDeploymentStatusException(v protocol.ResponseMetadata) error { 12514 return &InvalidDeploymentStatusException{ 12515 RespMetadata: v, 12516 } 12517} 12518 12519// Code returns the exception type name. 12520func (s *InvalidDeploymentStatusException) Code() string { 12521 return "InvalidDeploymentStatusException" 12522} 12523 12524// Message returns the exception's message. 12525func (s *InvalidDeploymentStatusException) Message() string { 12526 if s.Message_ != nil { 12527 return *s.Message_ 12528 } 12529 return "" 12530} 12531 12532// OrigErr always returns nil, satisfies awserr.Error interface. 12533func (s *InvalidDeploymentStatusException) OrigErr() error { 12534 return nil 12535} 12536 12537func (s *InvalidDeploymentStatusException) Error() string { 12538 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 12539} 12540 12541// Status code returns the HTTP status code for the request's response error. 12542func (s *InvalidDeploymentStatusException) StatusCode() int { 12543 return s.RespMetadata.StatusCode 12544} 12545 12546// RequestID returns the service's response RequestID for request. 12547func (s *InvalidDeploymentStatusException) RequestID() string { 12548 return s.RespMetadata.RequestID 12549} 12550 12551// An invalid deployment style was specified. Valid deployment types include 12552// "IN_PLACE" and "BLUE_GREEN." Valid deployment options include "WITH_TRAFFIC_CONTROL" 12553// and "WITHOUT_TRAFFIC_CONTROL." 12554type InvalidDeploymentStyleException struct { 12555 _ struct{} `type:"structure"` 12556 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 12557 12558 Message_ *string `locationName:"message" type:"string"` 12559} 12560 12561// String returns the string representation 12562func (s InvalidDeploymentStyleException) String() string { 12563 return awsutil.Prettify(s) 12564} 12565 12566// GoString returns the string representation 12567func (s InvalidDeploymentStyleException) GoString() string { 12568 return s.String() 12569} 12570 12571func newErrorInvalidDeploymentStyleException(v protocol.ResponseMetadata) error { 12572 return &InvalidDeploymentStyleException{ 12573 RespMetadata: v, 12574 } 12575} 12576 12577// Code returns the exception type name. 12578func (s *InvalidDeploymentStyleException) Code() string { 12579 return "InvalidDeploymentStyleException" 12580} 12581 12582// Message returns the exception's message. 12583func (s *InvalidDeploymentStyleException) Message() string { 12584 if s.Message_ != nil { 12585 return *s.Message_ 12586 } 12587 return "" 12588} 12589 12590// OrigErr always returns nil, satisfies awserr.Error interface. 12591func (s *InvalidDeploymentStyleException) OrigErr() error { 12592 return nil 12593} 12594 12595func (s *InvalidDeploymentStyleException) Error() string { 12596 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 12597} 12598 12599// Status code returns the HTTP status code for the request's response error. 12600func (s *InvalidDeploymentStyleException) StatusCode() int { 12601 return s.RespMetadata.StatusCode 12602} 12603 12604// RequestID returns the service's response RequestID for request. 12605func (s *InvalidDeploymentStyleException) RequestID() string { 12606 return s.RespMetadata.RequestID 12607} 12608 12609// The target ID provided was not valid. 12610type InvalidDeploymentTargetIdException struct { 12611 _ struct{} `type:"structure"` 12612 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 12613 12614 Message_ *string `locationName:"message" type:"string"` 12615} 12616 12617// String returns the string representation 12618func (s InvalidDeploymentTargetIdException) String() string { 12619 return awsutil.Prettify(s) 12620} 12621 12622// GoString returns the string representation 12623func (s InvalidDeploymentTargetIdException) GoString() string { 12624 return s.String() 12625} 12626 12627func newErrorInvalidDeploymentTargetIdException(v protocol.ResponseMetadata) error { 12628 return &InvalidDeploymentTargetIdException{ 12629 RespMetadata: v, 12630 } 12631} 12632 12633// Code returns the exception type name. 12634func (s *InvalidDeploymentTargetIdException) Code() string { 12635 return "InvalidDeploymentTargetIdException" 12636} 12637 12638// Message returns the exception's message. 12639func (s *InvalidDeploymentTargetIdException) Message() string { 12640 if s.Message_ != nil { 12641 return *s.Message_ 12642 } 12643 return "" 12644} 12645 12646// OrigErr always returns nil, satisfies awserr.Error interface. 12647func (s *InvalidDeploymentTargetIdException) OrigErr() error { 12648 return nil 12649} 12650 12651func (s *InvalidDeploymentTargetIdException) Error() string { 12652 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 12653} 12654 12655// Status code returns the HTTP status code for the request's response error. 12656func (s *InvalidDeploymentTargetIdException) StatusCode() int { 12657 return s.RespMetadata.StatusCode 12658} 12659 12660// RequestID returns the service's response RequestID for request. 12661func (s *InvalidDeploymentTargetIdException) RequestID() string { 12662 return s.RespMetadata.RequestID 12663} 12664 12665// The wait type is invalid. 12666type InvalidDeploymentWaitTypeException struct { 12667 _ struct{} `type:"structure"` 12668 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 12669 12670 Message_ *string `locationName:"message" type:"string"` 12671} 12672 12673// String returns the string representation 12674func (s InvalidDeploymentWaitTypeException) String() string { 12675 return awsutil.Prettify(s) 12676} 12677 12678// GoString returns the string representation 12679func (s InvalidDeploymentWaitTypeException) GoString() string { 12680 return s.String() 12681} 12682 12683func newErrorInvalidDeploymentWaitTypeException(v protocol.ResponseMetadata) error { 12684 return &InvalidDeploymentWaitTypeException{ 12685 RespMetadata: v, 12686 } 12687} 12688 12689// Code returns the exception type name. 12690func (s *InvalidDeploymentWaitTypeException) Code() string { 12691 return "InvalidDeploymentWaitTypeException" 12692} 12693 12694// Message returns the exception's message. 12695func (s *InvalidDeploymentWaitTypeException) Message() string { 12696 if s.Message_ != nil { 12697 return *s.Message_ 12698 } 12699 return "" 12700} 12701 12702// OrigErr always returns nil, satisfies awserr.Error interface. 12703func (s *InvalidDeploymentWaitTypeException) OrigErr() error { 12704 return nil 12705} 12706 12707func (s *InvalidDeploymentWaitTypeException) Error() string { 12708 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 12709} 12710 12711// Status code returns the HTTP status code for the request's response error. 12712func (s *InvalidDeploymentWaitTypeException) StatusCode() int { 12713 return s.RespMetadata.StatusCode 12714} 12715 12716// RequestID returns the service's response RequestID for request. 12717func (s *InvalidDeploymentWaitTypeException) RequestID() string { 12718 return s.RespMetadata.RequestID 12719} 12720 12721// A call was submitted that specified both Ec2TagFilters and Ec2TagSet, but 12722// only one of these data types can be used in a single call. 12723type InvalidEC2TagCombinationException struct { 12724 _ struct{} `type:"structure"` 12725 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 12726 12727 Message_ *string `locationName:"message" type:"string"` 12728} 12729 12730// String returns the string representation 12731func (s InvalidEC2TagCombinationException) String() string { 12732 return awsutil.Prettify(s) 12733} 12734 12735// GoString returns the string representation 12736func (s InvalidEC2TagCombinationException) GoString() string { 12737 return s.String() 12738} 12739 12740func newErrorInvalidEC2TagCombinationException(v protocol.ResponseMetadata) error { 12741 return &InvalidEC2TagCombinationException{ 12742 RespMetadata: v, 12743 } 12744} 12745 12746// Code returns the exception type name. 12747func (s *InvalidEC2TagCombinationException) Code() string { 12748 return "InvalidEC2TagCombinationException" 12749} 12750 12751// Message returns the exception's message. 12752func (s *InvalidEC2TagCombinationException) Message() string { 12753 if s.Message_ != nil { 12754 return *s.Message_ 12755 } 12756 return "" 12757} 12758 12759// OrigErr always returns nil, satisfies awserr.Error interface. 12760func (s *InvalidEC2TagCombinationException) OrigErr() error { 12761 return nil 12762} 12763 12764func (s *InvalidEC2TagCombinationException) Error() string { 12765 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 12766} 12767 12768// Status code returns the HTTP status code for the request's response error. 12769func (s *InvalidEC2TagCombinationException) StatusCode() int { 12770 return s.RespMetadata.StatusCode 12771} 12772 12773// RequestID returns the service's response RequestID for request. 12774func (s *InvalidEC2TagCombinationException) RequestID() string { 12775 return s.RespMetadata.RequestID 12776} 12777 12778// The tag was specified in an invalid format. 12779type InvalidEC2TagException struct { 12780 _ struct{} `type:"structure"` 12781 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 12782 12783 Message_ *string `locationName:"message" type:"string"` 12784} 12785 12786// String returns the string representation 12787func (s InvalidEC2TagException) String() string { 12788 return awsutil.Prettify(s) 12789} 12790 12791// GoString returns the string representation 12792func (s InvalidEC2TagException) GoString() string { 12793 return s.String() 12794} 12795 12796func newErrorInvalidEC2TagException(v protocol.ResponseMetadata) error { 12797 return &InvalidEC2TagException{ 12798 RespMetadata: v, 12799 } 12800} 12801 12802// Code returns the exception type name. 12803func (s *InvalidEC2TagException) Code() string { 12804 return "InvalidEC2TagException" 12805} 12806 12807// Message returns the exception's message. 12808func (s *InvalidEC2TagException) Message() string { 12809 if s.Message_ != nil { 12810 return *s.Message_ 12811 } 12812 return "" 12813} 12814 12815// OrigErr always returns nil, satisfies awserr.Error interface. 12816func (s *InvalidEC2TagException) OrigErr() error { 12817 return nil 12818} 12819 12820func (s *InvalidEC2TagException) Error() string { 12821 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 12822} 12823 12824// Status code returns the HTTP status code for the request's response error. 12825func (s *InvalidEC2TagException) StatusCode() int { 12826 return s.RespMetadata.StatusCode 12827} 12828 12829// RequestID returns the service's response RequestID for request. 12830func (s *InvalidEC2TagException) RequestID() string { 12831 return s.RespMetadata.RequestID 12832} 12833 12834// The Amazon ECS service identifier is not valid. 12835type InvalidECSServiceException struct { 12836 _ struct{} `type:"structure"` 12837 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 12838 12839 Message_ *string `locationName:"message" type:"string"` 12840} 12841 12842// String returns the string representation 12843func (s InvalidECSServiceException) String() string { 12844 return awsutil.Prettify(s) 12845} 12846 12847// GoString returns the string representation 12848func (s InvalidECSServiceException) GoString() string { 12849 return s.String() 12850} 12851 12852func newErrorInvalidECSServiceException(v protocol.ResponseMetadata) error { 12853 return &InvalidECSServiceException{ 12854 RespMetadata: v, 12855 } 12856} 12857 12858// Code returns the exception type name. 12859func (s *InvalidECSServiceException) Code() string { 12860 return "InvalidECSServiceException" 12861} 12862 12863// Message returns the exception's message. 12864func (s *InvalidECSServiceException) Message() string { 12865 if s.Message_ != nil { 12866 return *s.Message_ 12867 } 12868 return "" 12869} 12870 12871// OrigErr always returns nil, satisfies awserr.Error interface. 12872func (s *InvalidECSServiceException) OrigErr() error { 12873 return nil 12874} 12875 12876func (s *InvalidECSServiceException) Error() string { 12877 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 12878} 12879 12880// Status code returns the HTTP status code for the request's response error. 12881func (s *InvalidECSServiceException) StatusCode() int { 12882 return s.RespMetadata.StatusCode 12883} 12884 12885// RequestID returns the service's response RequestID for request. 12886func (s *InvalidECSServiceException) RequestID() string { 12887 return s.RespMetadata.RequestID 12888} 12889 12890// The external ID was specified in an invalid format. 12891type InvalidExternalIdException struct { 12892 _ struct{} `type:"structure"` 12893 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 12894 12895 Message_ *string `locationName:"message" type:"string"` 12896} 12897 12898// String returns the string representation 12899func (s InvalidExternalIdException) String() string { 12900 return awsutil.Prettify(s) 12901} 12902 12903// GoString returns the string representation 12904func (s InvalidExternalIdException) GoString() string { 12905 return s.String() 12906} 12907 12908func newErrorInvalidExternalIdException(v protocol.ResponseMetadata) error { 12909 return &InvalidExternalIdException{ 12910 RespMetadata: v, 12911 } 12912} 12913 12914// Code returns the exception type name. 12915func (s *InvalidExternalIdException) Code() string { 12916 return "InvalidExternalIdException" 12917} 12918 12919// Message returns the exception's message. 12920func (s *InvalidExternalIdException) Message() string { 12921 if s.Message_ != nil { 12922 return *s.Message_ 12923 } 12924 return "" 12925} 12926 12927// OrigErr always returns nil, satisfies awserr.Error interface. 12928func (s *InvalidExternalIdException) OrigErr() error { 12929 return nil 12930} 12931 12932func (s *InvalidExternalIdException) Error() string { 12933 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 12934} 12935 12936// Status code returns the HTTP status code for the request's response error. 12937func (s *InvalidExternalIdException) StatusCode() int { 12938 return s.RespMetadata.StatusCode 12939} 12940 12941// RequestID returns the service's response RequestID for request. 12942func (s *InvalidExternalIdException) RequestID() string { 12943 return s.RespMetadata.RequestID 12944} 12945 12946// An invalid fileExistsBehavior option was specified to determine how AWS CodeDeploy 12947// handles files or directories that already exist in a deployment target location, 12948// but weren't part of the previous successful deployment. Valid values include 12949// "DISALLOW," "OVERWRITE," and "RETAIN." 12950type InvalidFileExistsBehaviorException struct { 12951 _ struct{} `type:"structure"` 12952 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 12953 12954 Message_ *string `locationName:"message" type:"string"` 12955} 12956 12957// String returns the string representation 12958func (s InvalidFileExistsBehaviorException) String() string { 12959 return awsutil.Prettify(s) 12960} 12961 12962// GoString returns the string representation 12963func (s InvalidFileExistsBehaviorException) GoString() string { 12964 return s.String() 12965} 12966 12967func newErrorInvalidFileExistsBehaviorException(v protocol.ResponseMetadata) error { 12968 return &InvalidFileExistsBehaviorException{ 12969 RespMetadata: v, 12970 } 12971} 12972 12973// Code returns the exception type name. 12974func (s *InvalidFileExistsBehaviorException) Code() string { 12975 return "InvalidFileExistsBehaviorException" 12976} 12977 12978// Message returns the exception's message. 12979func (s *InvalidFileExistsBehaviorException) Message() string { 12980 if s.Message_ != nil { 12981 return *s.Message_ 12982 } 12983 return "" 12984} 12985 12986// OrigErr always returns nil, satisfies awserr.Error interface. 12987func (s *InvalidFileExistsBehaviorException) OrigErr() error { 12988 return nil 12989} 12990 12991func (s *InvalidFileExistsBehaviorException) Error() string { 12992 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 12993} 12994 12995// Status code returns the HTTP status code for the request's response error. 12996func (s *InvalidFileExistsBehaviorException) StatusCode() int { 12997 return s.RespMetadata.StatusCode 12998} 12999 13000// RequestID returns the service's response RequestID for request. 13001func (s *InvalidFileExistsBehaviorException) RequestID() string { 13002 return s.RespMetadata.RequestID 13003} 13004 13005// The GitHub token is not valid. 13006type InvalidGitHubAccountTokenException struct { 13007 _ struct{} `type:"structure"` 13008 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 13009 13010 Message_ *string `locationName:"message" type:"string"` 13011} 13012 13013// String returns the string representation 13014func (s InvalidGitHubAccountTokenException) String() string { 13015 return awsutil.Prettify(s) 13016} 13017 13018// GoString returns the string representation 13019func (s InvalidGitHubAccountTokenException) GoString() string { 13020 return s.String() 13021} 13022 13023func newErrorInvalidGitHubAccountTokenException(v protocol.ResponseMetadata) error { 13024 return &InvalidGitHubAccountTokenException{ 13025 RespMetadata: v, 13026 } 13027} 13028 13029// Code returns the exception type name. 13030func (s *InvalidGitHubAccountTokenException) Code() string { 13031 return "InvalidGitHubAccountTokenException" 13032} 13033 13034// Message returns the exception's message. 13035func (s *InvalidGitHubAccountTokenException) Message() string { 13036 if s.Message_ != nil { 13037 return *s.Message_ 13038 } 13039 return "" 13040} 13041 13042// OrigErr always returns nil, satisfies awserr.Error interface. 13043func (s *InvalidGitHubAccountTokenException) OrigErr() error { 13044 return nil 13045} 13046 13047func (s *InvalidGitHubAccountTokenException) Error() string { 13048 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 13049} 13050 13051// Status code returns the HTTP status code for the request's response error. 13052func (s *InvalidGitHubAccountTokenException) StatusCode() int { 13053 return s.RespMetadata.StatusCode 13054} 13055 13056// RequestID returns the service's response RequestID for request. 13057func (s *InvalidGitHubAccountTokenException) RequestID() string { 13058 return s.RespMetadata.RequestID 13059} 13060 13061// The format of the specified GitHub account connection name is invalid. 13062type InvalidGitHubAccountTokenNameException struct { 13063 _ struct{} `type:"structure"` 13064 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 13065 13066 Message_ *string `locationName:"message" type:"string"` 13067} 13068 13069// String returns the string representation 13070func (s InvalidGitHubAccountTokenNameException) String() string { 13071 return awsutil.Prettify(s) 13072} 13073 13074// GoString returns the string representation 13075func (s InvalidGitHubAccountTokenNameException) GoString() string { 13076 return s.String() 13077} 13078 13079func newErrorInvalidGitHubAccountTokenNameException(v protocol.ResponseMetadata) error { 13080 return &InvalidGitHubAccountTokenNameException{ 13081 RespMetadata: v, 13082 } 13083} 13084 13085// Code returns the exception type name. 13086func (s *InvalidGitHubAccountTokenNameException) Code() string { 13087 return "InvalidGitHubAccountTokenNameException" 13088} 13089 13090// Message returns the exception's message. 13091func (s *InvalidGitHubAccountTokenNameException) Message() string { 13092 if s.Message_ != nil { 13093 return *s.Message_ 13094 } 13095 return "" 13096} 13097 13098// OrigErr always returns nil, satisfies awserr.Error interface. 13099func (s *InvalidGitHubAccountTokenNameException) OrigErr() error { 13100 return nil 13101} 13102 13103func (s *InvalidGitHubAccountTokenNameException) Error() string { 13104 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 13105} 13106 13107// Status code returns the HTTP status code for the request's response error. 13108func (s *InvalidGitHubAccountTokenNameException) StatusCode() int { 13109 return s.RespMetadata.StatusCode 13110} 13111 13112// RequestID returns the service's response RequestID for request. 13113func (s *InvalidGitHubAccountTokenNameException) RequestID() string { 13114 return s.RespMetadata.RequestID 13115} 13116 13117// The IAM session ARN was specified in an invalid format. 13118type InvalidIamSessionArnException struct { 13119 _ struct{} `type:"structure"` 13120 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 13121 13122 Message_ *string `locationName:"message" type:"string"` 13123} 13124 13125// String returns the string representation 13126func (s InvalidIamSessionArnException) String() string { 13127 return awsutil.Prettify(s) 13128} 13129 13130// GoString returns the string representation 13131func (s InvalidIamSessionArnException) GoString() string { 13132 return s.String() 13133} 13134 13135func newErrorInvalidIamSessionArnException(v protocol.ResponseMetadata) error { 13136 return &InvalidIamSessionArnException{ 13137 RespMetadata: v, 13138 } 13139} 13140 13141// Code returns the exception type name. 13142func (s *InvalidIamSessionArnException) Code() string { 13143 return "InvalidIamSessionArnException" 13144} 13145 13146// Message returns the exception's message. 13147func (s *InvalidIamSessionArnException) Message() string { 13148 if s.Message_ != nil { 13149 return *s.Message_ 13150 } 13151 return "" 13152} 13153 13154// OrigErr always returns nil, satisfies awserr.Error interface. 13155func (s *InvalidIamSessionArnException) OrigErr() error { 13156 return nil 13157} 13158 13159func (s *InvalidIamSessionArnException) Error() string { 13160 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 13161} 13162 13163// Status code returns the HTTP status code for the request's response error. 13164func (s *InvalidIamSessionArnException) StatusCode() int { 13165 return s.RespMetadata.StatusCode 13166} 13167 13168// RequestID returns the service's response RequestID for request. 13169func (s *InvalidIamSessionArnException) RequestID() string { 13170 return s.RespMetadata.RequestID 13171} 13172 13173// The IAM user ARN was specified in an invalid format. 13174type InvalidIamUserArnException struct { 13175 _ struct{} `type:"structure"` 13176 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 13177 13178 Message_ *string `locationName:"message" type:"string"` 13179} 13180 13181// String returns the string representation 13182func (s InvalidIamUserArnException) String() string { 13183 return awsutil.Prettify(s) 13184} 13185 13186// GoString returns the string representation 13187func (s InvalidIamUserArnException) GoString() string { 13188 return s.String() 13189} 13190 13191func newErrorInvalidIamUserArnException(v protocol.ResponseMetadata) error { 13192 return &InvalidIamUserArnException{ 13193 RespMetadata: v, 13194 } 13195} 13196 13197// Code returns the exception type name. 13198func (s *InvalidIamUserArnException) Code() string { 13199 return "InvalidIamUserArnException" 13200} 13201 13202// Message returns the exception's message. 13203func (s *InvalidIamUserArnException) Message() string { 13204 if s.Message_ != nil { 13205 return *s.Message_ 13206 } 13207 return "" 13208} 13209 13210// OrigErr always returns nil, satisfies awserr.Error interface. 13211func (s *InvalidIamUserArnException) OrigErr() error { 13212 return nil 13213} 13214 13215func (s *InvalidIamUserArnException) Error() string { 13216 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 13217} 13218 13219// Status code returns the HTTP status code for the request's response error. 13220func (s *InvalidIamUserArnException) StatusCode() int { 13221 return s.RespMetadata.StatusCode 13222} 13223 13224// RequestID returns the service's response RequestID for request. 13225func (s *InvalidIamUserArnException) RequestID() string { 13226 return s.RespMetadata.RequestID 13227} 13228 13229// The IgnoreApplicationStopFailures value is invalid. For AWS Lambda deployments, 13230// false is expected. For EC2/On-premises deployments, true or false is expected. 13231type InvalidIgnoreApplicationStopFailuresValueException struct { 13232 _ struct{} `type:"structure"` 13233 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 13234 13235 Message_ *string `locationName:"message" type:"string"` 13236} 13237 13238// String returns the string representation 13239func (s InvalidIgnoreApplicationStopFailuresValueException) String() string { 13240 return awsutil.Prettify(s) 13241} 13242 13243// GoString returns the string representation 13244func (s InvalidIgnoreApplicationStopFailuresValueException) GoString() string { 13245 return s.String() 13246} 13247 13248func newErrorInvalidIgnoreApplicationStopFailuresValueException(v protocol.ResponseMetadata) error { 13249 return &InvalidIgnoreApplicationStopFailuresValueException{ 13250 RespMetadata: v, 13251 } 13252} 13253 13254// Code returns the exception type name. 13255func (s *InvalidIgnoreApplicationStopFailuresValueException) Code() string { 13256 return "InvalidIgnoreApplicationStopFailuresValueException" 13257} 13258 13259// Message returns the exception's message. 13260func (s *InvalidIgnoreApplicationStopFailuresValueException) Message() string { 13261 if s.Message_ != nil { 13262 return *s.Message_ 13263 } 13264 return "" 13265} 13266 13267// OrigErr always returns nil, satisfies awserr.Error interface. 13268func (s *InvalidIgnoreApplicationStopFailuresValueException) OrigErr() error { 13269 return nil 13270} 13271 13272func (s *InvalidIgnoreApplicationStopFailuresValueException) Error() string { 13273 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 13274} 13275 13276// Status code returns the HTTP status code for the request's response error. 13277func (s *InvalidIgnoreApplicationStopFailuresValueException) StatusCode() int { 13278 return s.RespMetadata.StatusCode 13279} 13280 13281// RequestID returns the service's response RequestID for request. 13282func (s *InvalidIgnoreApplicationStopFailuresValueException) RequestID() string { 13283 return s.RespMetadata.RequestID 13284} 13285 13286// The input was specified in an invalid format. 13287type InvalidInputException struct { 13288 _ struct{} `type:"structure"` 13289 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 13290 13291 Message_ *string `locationName:"message" type:"string"` 13292} 13293 13294// String returns the string representation 13295func (s InvalidInputException) String() string { 13296 return awsutil.Prettify(s) 13297} 13298 13299// GoString returns the string representation 13300func (s InvalidInputException) GoString() string { 13301 return s.String() 13302} 13303 13304func newErrorInvalidInputException(v protocol.ResponseMetadata) error { 13305 return &InvalidInputException{ 13306 RespMetadata: v, 13307 } 13308} 13309 13310// Code returns the exception type name. 13311func (s *InvalidInputException) Code() string { 13312 return "InvalidInputException" 13313} 13314 13315// Message returns the exception's message. 13316func (s *InvalidInputException) Message() string { 13317 if s.Message_ != nil { 13318 return *s.Message_ 13319 } 13320 return "" 13321} 13322 13323// OrigErr always returns nil, satisfies awserr.Error interface. 13324func (s *InvalidInputException) OrigErr() error { 13325 return nil 13326} 13327 13328func (s *InvalidInputException) Error() string { 13329 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 13330} 13331 13332// Status code returns the HTTP status code for the request's response error. 13333func (s *InvalidInputException) StatusCode() int { 13334 return s.RespMetadata.StatusCode 13335} 13336 13337// RequestID returns the service's response RequestID for request. 13338func (s *InvalidInputException) RequestID() string { 13339 return s.RespMetadata.RequestID 13340} 13341 13342// The on-premises instance name was specified in an invalid format. 13343type InvalidInstanceNameException struct { 13344 _ struct{} `type:"structure"` 13345 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 13346 13347 Message_ *string `locationName:"message" type:"string"` 13348} 13349 13350// String returns the string representation 13351func (s InvalidInstanceNameException) String() string { 13352 return awsutil.Prettify(s) 13353} 13354 13355// GoString returns the string representation 13356func (s InvalidInstanceNameException) GoString() string { 13357 return s.String() 13358} 13359 13360func newErrorInvalidInstanceNameException(v protocol.ResponseMetadata) error { 13361 return &InvalidInstanceNameException{ 13362 RespMetadata: v, 13363 } 13364} 13365 13366// Code returns the exception type name. 13367func (s *InvalidInstanceNameException) Code() string { 13368 return "InvalidInstanceNameException" 13369} 13370 13371// Message returns the exception's message. 13372func (s *InvalidInstanceNameException) Message() string { 13373 if s.Message_ != nil { 13374 return *s.Message_ 13375 } 13376 return "" 13377} 13378 13379// OrigErr always returns nil, satisfies awserr.Error interface. 13380func (s *InvalidInstanceNameException) OrigErr() error { 13381 return nil 13382} 13383 13384func (s *InvalidInstanceNameException) Error() string { 13385 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 13386} 13387 13388// Status code returns the HTTP status code for the request's response error. 13389func (s *InvalidInstanceNameException) StatusCode() int { 13390 return s.RespMetadata.StatusCode 13391} 13392 13393// RequestID returns the service's response RequestID for request. 13394func (s *InvalidInstanceNameException) RequestID() string { 13395 return s.RespMetadata.RequestID 13396} 13397 13398// The specified instance status does not exist. 13399type InvalidInstanceStatusException struct { 13400 _ struct{} `type:"structure"` 13401 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 13402 13403 Message_ *string `locationName:"message" type:"string"` 13404} 13405 13406// String returns the string representation 13407func (s InvalidInstanceStatusException) String() string { 13408 return awsutil.Prettify(s) 13409} 13410 13411// GoString returns the string representation 13412func (s InvalidInstanceStatusException) GoString() string { 13413 return s.String() 13414} 13415 13416func newErrorInvalidInstanceStatusException(v protocol.ResponseMetadata) error { 13417 return &InvalidInstanceStatusException{ 13418 RespMetadata: v, 13419 } 13420} 13421 13422// Code returns the exception type name. 13423func (s *InvalidInstanceStatusException) Code() string { 13424 return "InvalidInstanceStatusException" 13425} 13426 13427// Message returns the exception's message. 13428func (s *InvalidInstanceStatusException) Message() string { 13429 if s.Message_ != nil { 13430 return *s.Message_ 13431 } 13432 return "" 13433} 13434 13435// OrigErr always returns nil, satisfies awserr.Error interface. 13436func (s *InvalidInstanceStatusException) OrigErr() error { 13437 return nil 13438} 13439 13440func (s *InvalidInstanceStatusException) Error() string { 13441 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 13442} 13443 13444// Status code returns the HTTP status code for the request's response error. 13445func (s *InvalidInstanceStatusException) StatusCode() int { 13446 return s.RespMetadata.StatusCode 13447} 13448 13449// RequestID returns the service's response RequestID for request. 13450func (s *InvalidInstanceStatusException) RequestID() string { 13451 return s.RespMetadata.RequestID 13452} 13453 13454// An invalid instance type was specified for instances in a blue/green deployment. 13455// Valid values include "Blue" for an original environment and "Green" for a 13456// replacement environment. 13457type InvalidInstanceTypeException struct { 13458 _ struct{} `type:"structure"` 13459 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 13460 13461 Message_ *string `locationName:"message" type:"string"` 13462} 13463 13464// String returns the string representation 13465func (s InvalidInstanceTypeException) String() string { 13466 return awsutil.Prettify(s) 13467} 13468 13469// GoString returns the string representation 13470func (s InvalidInstanceTypeException) GoString() string { 13471 return s.String() 13472} 13473 13474func newErrorInvalidInstanceTypeException(v protocol.ResponseMetadata) error { 13475 return &InvalidInstanceTypeException{ 13476 RespMetadata: v, 13477 } 13478} 13479 13480// Code returns the exception type name. 13481func (s *InvalidInstanceTypeException) Code() string { 13482 return "InvalidInstanceTypeException" 13483} 13484 13485// Message returns the exception's message. 13486func (s *InvalidInstanceTypeException) Message() string { 13487 if s.Message_ != nil { 13488 return *s.Message_ 13489 } 13490 return "" 13491} 13492 13493// OrigErr always returns nil, satisfies awserr.Error interface. 13494func (s *InvalidInstanceTypeException) OrigErr() error { 13495 return nil 13496} 13497 13498func (s *InvalidInstanceTypeException) Error() string { 13499 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 13500} 13501 13502// Status code returns the HTTP status code for the request's response error. 13503func (s *InvalidInstanceTypeException) StatusCode() int { 13504 return s.RespMetadata.StatusCode 13505} 13506 13507// RequestID returns the service's response RequestID for request. 13508func (s *InvalidInstanceTypeException) RequestID() string { 13509 return s.RespMetadata.RequestID 13510} 13511 13512// The specified key prefix filter was specified in an invalid format. 13513type InvalidKeyPrefixFilterException struct { 13514 _ struct{} `type:"structure"` 13515 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 13516 13517 Message_ *string `locationName:"message" type:"string"` 13518} 13519 13520// String returns the string representation 13521func (s InvalidKeyPrefixFilterException) String() string { 13522 return awsutil.Prettify(s) 13523} 13524 13525// GoString returns the string representation 13526func (s InvalidKeyPrefixFilterException) GoString() string { 13527 return s.String() 13528} 13529 13530func newErrorInvalidKeyPrefixFilterException(v protocol.ResponseMetadata) error { 13531 return &InvalidKeyPrefixFilterException{ 13532 RespMetadata: v, 13533 } 13534} 13535 13536// Code returns the exception type name. 13537func (s *InvalidKeyPrefixFilterException) Code() string { 13538 return "InvalidKeyPrefixFilterException" 13539} 13540 13541// Message returns the exception's message. 13542func (s *InvalidKeyPrefixFilterException) Message() string { 13543 if s.Message_ != nil { 13544 return *s.Message_ 13545 } 13546 return "" 13547} 13548 13549// OrigErr always returns nil, satisfies awserr.Error interface. 13550func (s *InvalidKeyPrefixFilterException) OrigErr() error { 13551 return nil 13552} 13553 13554func (s *InvalidKeyPrefixFilterException) Error() string { 13555 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 13556} 13557 13558// Status code returns the HTTP status code for the request's response error. 13559func (s *InvalidKeyPrefixFilterException) StatusCode() int { 13560 return s.RespMetadata.StatusCode 13561} 13562 13563// RequestID returns the service's response RequestID for request. 13564func (s *InvalidKeyPrefixFilterException) RequestID() string { 13565 return s.RespMetadata.RequestID 13566} 13567 13568// A lifecycle event hook is invalid. Review the hooks section in your AppSpec 13569// file to ensure the lifecycle events and hooks functions are valid. 13570type InvalidLifecycleEventHookExecutionIdException struct { 13571 _ struct{} `type:"structure"` 13572 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 13573 13574 Message_ *string `locationName:"message" type:"string"` 13575} 13576 13577// String returns the string representation 13578func (s InvalidLifecycleEventHookExecutionIdException) String() string { 13579 return awsutil.Prettify(s) 13580} 13581 13582// GoString returns the string representation 13583func (s InvalidLifecycleEventHookExecutionIdException) GoString() string { 13584 return s.String() 13585} 13586 13587func newErrorInvalidLifecycleEventHookExecutionIdException(v protocol.ResponseMetadata) error { 13588 return &InvalidLifecycleEventHookExecutionIdException{ 13589 RespMetadata: v, 13590 } 13591} 13592 13593// Code returns the exception type name. 13594func (s *InvalidLifecycleEventHookExecutionIdException) Code() string { 13595 return "InvalidLifecycleEventHookExecutionIdException" 13596} 13597 13598// Message returns the exception's message. 13599func (s *InvalidLifecycleEventHookExecutionIdException) Message() string { 13600 if s.Message_ != nil { 13601 return *s.Message_ 13602 } 13603 return "" 13604} 13605 13606// OrigErr always returns nil, satisfies awserr.Error interface. 13607func (s *InvalidLifecycleEventHookExecutionIdException) OrigErr() error { 13608 return nil 13609} 13610 13611func (s *InvalidLifecycleEventHookExecutionIdException) Error() string { 13612 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 13613} 13614 13615// Status code returns the HTTP status code for the request's response error. 13616func (s *InvalidLifecycleEventHookExecutionIdException) StatusCode() int { 13617 return s.RespMetadata.StatusCode 13618} 13619 13620// RequestID returns the service's response RequestID for request. 13621func (s *InvalidLifecycleEventHookExecutionIdException) RequestID() string { 13622 return s.RespMetadata.RequestID 13623} 13624 13625// The result of a Lambda validation function that verifies a lifecycle event 13626// is invalid. It should return Succeeded or Failed. 13627type InvalidLifecycleEventHookExecutionStatusException struct { 13628 _ struct{} `type:"structure"` 13629 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 13630 13631 Message_ *string `locationName:"message" type:"string"` 13632} 13633 13634// String returns the string representation 13635func (s InvalidLifecycleEventHookExecutionStatusException) String() string { 13636 return awsutil.Prettify(s) 13637} 13638 13639// GoString returns the string representation 13640func (s InvalidLifecycleEventHookExecutionStatusException) GoString() string { 13641 return s.String() 13642} 13643 13644func newErrorInvalidLifecycleEventHookExecutionStatusException(v protocol.ResponseMetadata) error { 13645 return &InvalidLifecycleEventHookExecutionStatusException{ 13646 RespMetadata: v, 13647 } 13648} 13649 13650// Code returns the exception type name. 13651func (s *InvalidLifecycleEventHookExecutionStatusException) Code() string { 13652 return "InvalidLifecycleEventHookExecutionStatusException" 13653} 13654 13655// Message returns the exception's message. 13656func (s *InvalidLifecycleEventHookExecutionStatusException) Message() string { 13657 if s.Message_ != nil { 13658 return *s.Message_ 13659 } 13660 return "" 13661} 13662 13663// OrigErr always returns nil, satisfies awserr.Error interface. 13664func (s *InvalidLifecycleEventHookExecutionStatusException) OrigErr() error { 13665 return nil 13666} 13667 13668func (s *InvalidLifecycleEventHookExecutionStatusException) Error() string { 13669 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 13670} 13671 13672// Status code returns the HTTP status code for the request's response error. 13673func (s *InvalidLifecycleEventHookExecutionStatusException) StatusCode() int { 13674 return s.RespMetadata.StatusCode 13675} 13676 13677// RequestID returns the service's response RequestID for request. 13678func (s *InvalidLifecycleEventHookExecutionStatusException) RequestID() string { 13679 return s.RespMetadata.RequestID 13680} 13681 13682// An invalid load balancer name, or no load balancer name, was specified. 13683type InvalidLoadBalancerInfoException struct { 13684 _ struct{} `type:"structure"` 13685 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 13686 13687 Message_ *string `locationName:"message" type:"string"` 13688} 13689 13690// String returns the string representation 13691func (s InvalidLoadBalancerInfoException) String() string { 13692 return awsutil.Prettify(s) 13693} 13694 13695// GoString returns the string representation 13696func (s InvalidLoadBalancerInfoException) GoString() string { 13697 return s.String() 13698} 13699 13700func newErrorInvalidLoadBalancerInfoException(v protocol.ResponseMetadata) error { 13701 return &InvalidLoadBalancerInfoException{ 13702 RespMetadata: v, 13703 } 13704} 13705 13706// Code returns the exception type name. 13707func (s *InvalidLoadBalancerInfoException) Code() string { 13708 return "InvalidLoadBalancerInfoException" 13709} 13710 13711// Message returns the exception's message. 13712func (s *InvalidLoadBalancerInfoException) Message() string { 13713 if s.Message_ != nil { 13714 return *s.Message_ 13715 } 13716 return "" 13717} 13718 13719// OrigErr always returns nil, satisfies awserr.Error interface. 13720func (s *InvalidLoadBalancerInfoException) OrigErr() error { 13721 return nil 13722} 13723 13724func (s *InvalidLoadBalancerInfoException) Error() string { 13725 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 13726} 13727 13728// Status code returns the HTTP status code for the request's response error. 13729func (s *InvalidLoadBalancerInfoException) StatusCode() int { 13730 return s.RespMetadata.StatusCode 13731} 13732 13733// RequestID returns the service's response RequestID for request. 13734func (s *InvalidLoadBalancerInfoException) RequestID() string { 13735 return s.RespMetadata.RequestID 13736} 13737 13738// The minimum healthy instance value was specified in an invalid format. 13739type InvalidMinimumHealthyHostValueException struct { 13740 _ struct{} `type:"structure"` 13741 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 13742 13743 Message_ *string `locationName:"message" type:"string"` 13744} 13745 13746// String returns the string representation 13747func (s InvalidMinimumHealthyHostValueException) String() string { 13748 return awsutil.Prettify(s) 13749} 13750 13751// GoString returns the string representation 13752func (s InvalidMinimumHealthyHostValueException) GoString() string { 13753 return s.String() 13754} 13755 13756func newErrorInvalidMinimumHealthyHostValueException(v protocol.ResponseMetadata) error { 13757 return &InvalidMinimumHealthyHostValueException{ 13758 RespMetadata: v, 13759 } 13760} 13761 13762// Code returns the exception type name. 13763func (s *InvalidMinimumHealthyHostValueException) Code() string { 13764 return "InvalidMinimumHealthyHostValueException" 13765} 13766 13767// Message returns the exception's message. 13768func (s *InvalidMinimumHealthyHostValueException) Message() string { 13769 if s.Message_ != nil { 13770 return *s.Message_ 13771 } 13772 return "" 13773} 13774 13775// OrigErr always returns nil, satisfies awserr.Error interface. 13776func (s *InvalidMinimumHealthyHostValueException) OrigErr() error { 13777 return nil 13778} 13779 13780func (s *InvalidMinimumHealthyHostValueException) Error() string { 13781 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 13782} 13783 13784// Status code returns the HTTP status code for the request's response error. 13785func (s *InvalidMinimumHealthyHostValueException) StatusCode() int { 13786 return s.RespMetadata.StatusCode 13787} 13788 13789// RequestID returns the service's response RequestID for request. 13790func (s *InvalidMinimumHealthyHostValueException) RequestID() string { 13791 return s.RespMetadata.RequestID 13792} 13793 13794// The next token was specified in an invalid format. 13795type InvalidNextTokenException struct { 13796 _ struct{} `type:"structure"` 13797 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 13798 13799 Message_ *string `locationName:"message" type:"string"` 13800} 13801 13802// String returns the string representation 13803func (s InvalidNextTokenException) String() string { 13804 return awsutil.Prettify(s) 13805} 13806 13807// GoString returns the string representation 13808func (s InvalidNextTokenException) GoString() string { 13809 return s.String() 13810} 13811 13812func newErrorInvalidNextTokenException(v protocol.ResponseMetadata) error { 13813 return &InvalidNextTokenException{ 13814 RespMetadata: v, 13815 } 13816} 13817 13818// Code returns the exception type name. 13819func (s *InvalidNextTokenException) Code() string { 13820 return "InvalidNextTokenException" 13821} 13822 13823// Message returns the exception's message. 13824func (s *InvalidNextTokenException) Message() string { 13825 if s.Message_ != nil { 13826 return *s.Message_ 13827 } 13828 return "" 13829} 13830 13831// OrigErr always returns nil, satisfies awserr.Error interface. 13832func (s *InvalidNextTokenException) OrigErr() error { 13833 return nil 13834} 13835 13836func (s *InvalidNextTokenException) Error() string { 13837 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 13838} 13839 13840// Status code returns the HTTP status code for the request's response error. 13841func (s *InvalidNextTokenException) StatusCode() int { 13842 return s.RespMetadata.StatusCode 13843} 13844 13845// RequestID returns the service's response RequestID for request. 13846func (s *InvalidNextTokenException) RequestID() string { 13847 return s.RespMetadata.RequestID 13848} 13849 13850// A call was submitted that specified both OnPremisesTagFilters and OnPremisesTagSet, 13851// but only one of these data types can be used in a single call. 13852type InvalidOnPremisesTagCombinationException struct { 13853 _ struct{} `type:"structure"` 13854 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 13855 13856 Message_ *string `locationName:"message" type:"string"` 13857} 13858 13859// String returns the string representation 13860func (s InvalidOnPremisesTagCombinationException) String() string { 13861 return awsutil.Prettify(s) 13862} 13863 13864// GoString returns the string representation 13865func (s InvalidOnPremisesTagCombinationException) GoString() string { 13866 return s.String() 13867} 13868 13869func newErrorInvalidOnPremisesTagCombinationException(v protocol.ResponseMetadata) error { 13870 return &InvalidOnPremisesTagCombinationException{ 13871 RespMetadata: v, 13872 } 13873} 13874 13875// Code returns the exception type name. 13876func (s *InvalidOnPremisesTagCombinationException) Code() string { 13877 return "InvalidOnPremisesTagCombinationException" 13878} 13879 13880// Message returns the exception's message. 13881func (s *InvalidOnPremisesTagCombinationException) Message() string { 13882 if s.Message_ != nil { 13883 return *s.Message_ 13884 } 13885 return "" 13886} 13887 13888// OrigErr always returns nil, satisfies awserr.Error interface. 13889func (s *InvalidOnPremisesTagCombinationException) OrigErr() error { 13890 return nil 13891} 13892 13893func (s *InvalidOnPremisesTagCombinationException) Error() string { 13894 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 13895} 13896 13897// Status code returns the HTTP status code for the request's response error. 13898func (s *InvalidOnPremisesTagCombinationException) StatusCode() int { 13899 return s.RespMetadata.StatusCode 13900} 13901 13902// RequestID returns the service's response RequestID for request. 13903func (s *InvalidOnPremisesTagCombinationException) RequestID() string { 13904 return s.RespMetadata.RequestID 13905} 13906 13907// An invalid operation was detected. 13908type InvalidOperationException struct { 13909 _ struct{} `type:"structure"` 13910 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 13911 13912 Message_ *string `locationName:"message" type:"string"` 13913} 13914 13915// String returns the string representation 13916func (s InvalidOperationException) String() string { 13917 return awsutil.Prettify(s) 13918} 13919 13920// GoString returns the string representation 13921func (s InvalidOperationException) GoString() string { 13922 return s.String() 13923} 13924 13925func newErrorInvalidOperationException(v protocol.ResponseMetadata) error { 13926 return &InvalidOperationException{ 13927 RespMetadata: v, 13928 } 13929} 13930 13931// Code returns the exception type name. 13932func (s *InvalidOperationException) Code() string { 13933 return "InvalidOperationException" 13934} 13935 13936// Message returns the exception's message. 13937func (s *InvalidOperationException) Message() string { 13938 if s.Message_ != nil { 13939 return *s.Message_ 13940 } 13941 return "" 13942} 13943 13944// OrigErr always returns nil, satisfies awserr.Error interface. 13945func (s *InvalidOperationException) OrigErr() error { 13946 return nil 13947} 13948 13949func (s *InvalidOperationException) Error() string { 13950 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 13951} 13952 13953// Status code returns the HTTP status code for the request's response error. 13954func (s *InvalidOperationException) StatusCode() int { 13955 return s.RespMetadata.StatusCode 13956} 13957 13958// RequestID returns the service's response RequestID for request. 13959func (s *InvalidOperationException) RequestID() string { 13960 return s.RespMetadata.RequestID 13961} 13962 13963// The registration status was specified in an invalid format. 13964type InvalidRegistrationStatusException struct { 13965 _ struct{} `type:"structure"` 13966 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 13967 13968 Message_ *string `locationName:"message" type:"string"` 13969} 13970 13971// String returns the string representation 13972func (s InvalidRegistrationStatusException) String() string { 13973 return awsutil.Prettify(s) 13974} 13975 13976// GoString returns the string representation 13977func (s InvalidRegistrationStatusException) GoString() string { 13978 return s.String() 13979} 13980 13981func newErrorInvalidRegistrationStatusException(v protocol.ResponseMetadata) error { 13982 return &InvalidRegistrationStatusException{ 13983 RespMetadata: v, 13984 } 13985} 13986 13987// Code returns the exception type name. 13988func (s *InvalidRegistrationStatusException) Code() string { 13989 return "InvalidRegistrationStatusException" 13990} 13991 13992// Message returns the exception's message. 13993func (s *InvalidRegistrationStatusException) Message() string { 13994 if s.Message_ != nil { 13995 return *s.Message_ 13996 } 13997 return "" 13998} 13999 14000// OrigErr always returns nil, satisfies awserr.Error interface. 14001func (s *InvalidRegistrationStatusException) OrigErr() error { 14002 return nil 14003} 14004 14005func (s *InvalidRegistrationStatusException) Error() string { 14006 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 14007} 14008 14009// Status code returns the HTTP status code for the request's response error. 14010func (s *InvalidRegistrationStatusException) StatusCode() int { 14011 return s.RespMetadata.StatusCode 14012} 14013 14014// RequestID returns the service's response RequestID for request. 14015func (s *InvalidRegistrationStatusException) RequestID() string { 14016 return s.RespMetadata.RequestID 14017} 14018 14019// The revision was specified in an invalid format. 14020type InvalidRevisionException struct { 14021 _ struct{} `type:"structure"` 14022 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 14023 14024 Message_ *string `locationName:"message" type:"string"` 14025} 14026 14027// String returns the string representation 14028func (s InvalidRevisionException) String() string { 14029 return awsutil.Prettify(s) 14030} 14031 14032// GoString returns the string representation 14033func (s InvalidRevisionException) GoString() string { 14034 return s.String() 14035} 14036 14037func newErrorInvalidRevisionException(v protocol.ResponseMetadata) error { 14038 return &InvalidRevisionException{ 14039 RespMetadata: v, 14040 } 14041} 14042 14043// Code returns the exception type name. 14044func (s *InvalidRevisionException) Code() string { 14045 return "InvalidRevisionException" 14046} 14047 14048// Message returns the exception's message. 14049func (s *InvalidRevisionException) Message() string { 14050 if s.Message_ != nil { 14051 return *s.Message_ 14052 } 14053 return "" 14054} 14055 14056// OrigErr always returns nil, satisfies awserr.Error interface. 14057func (s *InvalidRevisionException) OrigErr() error { 14058 return nil 14059} 14060 14061func (s *InvalidRevisionException) Error() string { 14062 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 14063} 14064 14065// Status code returns the HTTP status code for the request's response error. 14066func (s *InvalidRevisionException) StatusCode() int { 14067 return s.RespMetadata.StatusCode 14068} 14069 14070// RequestID returns the service's response RequestID for request. 14071func (s *InvalidRevisionException) RequestID() string { 14072 return s.RespMetadata.RequestID 14073} 14074 14075// The service role ARN was specified in an invalid format. Or, if an Auto Scaling 14076// group was specified, the specified service role does not grant the appropriate 14077// permissions to Amazon EC2 Auto Scaling. 14078type InvalidRoleException struct { 14079 _ struct{} `type:"structure"` 14080 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 14081 14082 Message_ *string `locationName:"message" type:"string"` 14083} 14084 14085// String returns the string representation 14086func (s InvalidRoleException) String() string { 14087 return awsutil.Prettify(s) 14088} 14089 14090// GoString returns the string representation 14091func (s InvalidRoleException) GoString() string { 14092 return s.String() 14093} 14094 14095func newErrorInvalidRoleException(v protocol.ResponseMetadata) error { 14096 return &InvalidRoleException{ 14097 RespMetadata: v, 14098 } 14099} 14100 14101// Code returns the exception type name. 14102func (s *InvalidRoleException) Code() string { 14103 return "InvalidRoleException" 14104} 14105 14106// Message returns the exception's message. 14107func (s *InvalidRoleException) Message() string { 14108 if s.Message_ != nil { 14109 return *s.Message_ 14110 } 14111 return "" 14112} 14113 14114// OrigErr always returns nil, satisfies awserr.Error interface. 14115func (s *InvalidRoleException) OrigErr() error { 14116 return nil 14117} 14118 14119func (s *InvalidRoleException) Error() string { 14120 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 14121} 14122 14123// Status code returns the HTTP status code for the request's response error. 14124func (s *InvalidRoleException) StatusCode() int { 14125 return s.RespMetadata.StatusCode 14126} 14127 14128// RequestID returns the service's response RequestID for request. 14129func (s *InvalidRoleException) RequestID() string { 14130 return s.RespMetadata.RequestID 14131} 14132 14133// The column name to sort by is either not present or was specified in an invalid 14134// format. 14135type InvalidSortByException struct { 14136 _ struct{} `type:"structure"` 14137 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 14138 14139 Message_ *string `locationName:"message" type:"string"` 14140} 14141 14142// String returns the string representation 14143func (s InvalidSortByException) String() string { 14144 return awsutil.Prettify(s) 14145} 14146 14147// GoString returns the string representation 14148func (s InvalidSortByException) GoString() string { 14149 return s.String() 14150} 14151 14152func newErrorInvalidSortByException(v protocol.ResponseMetadata) error { 14153 return &InvalidSortByException{ 14154 RespMetadata: v, 14155 } 14156} 14157 14158// Code returns the exception type name. 14159func (s *InvalidSortByException) Code() string { 14160 return "InvalidSortByException" 14161} 14162 14163// Message returns the exception's message. 14164func (s *InvalidSortByException) Message() string { 14165 if s.Message_ != nil { 14166 return *s.Message_ 14167 } 14168 return "" 14169} 14170 14171// OrigErr always returns nil, satisfies awserr.Error interface. 14172func (s *InvalidSortByException) OrigErr() error { 14173 return nil 14174} 14175 14176func (s *InvalidSortByException) Error() string { 14177 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 14178} 14179 14180// Status code returns the HTTP status code for the request's response error. 14181func (s *InvalidSortByException) StatusCode() int { 14182 return s.RespMetadata.StatusCode 14183} 14184 14185// RequestID returns the service's response RequestID for request. 14186func (s *InvalidSortByException) RequestID() string { 14187 return s.RespMetadata.RequestID 14188} 14189 14190// The sort order was specified in an invalid format. 14191type InvalidSortOrderException struct { 14192 _ struct{} `type:"structure"` 14193 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 14194 14195 Message_ *string `locationName:"message" type:"string"` 14196} 14197 14198// String returns the string representation 14199func (s InvalidSortOrderException) String() string { 14200 return awsutil.Prettify(s) 14201} 14202 14203// GoString returns the string representation 14204func (s InvalidSortOrderException) GoString() string { 14205 return s.String() 14206} 14207 14208func newErrorInvalidSortOrderException(v protocol.ResponseMetadata) error { 14209 return &InvalidSortOrderException{ 14210 RespMetadata: v, 14211 } 14212} 14213 14214// Code returns the exception type name. 14215func (s *InvalidSortOrderException) Code() string { 14216 return "InvalidSortOrderException" 14217} 14218 14219// Message returns the exception's message. 14220func (s *InvalidSortOrderException) Message() string { 14221 if s.Message_ != nil { 14222 return *s.Message_ 14223 } 14224 return "" 14225} 14226 14227// OrigErr always returns nil, satisfies awserr.Error interface. 14228func (s *InvalidSortOrderException) OrigErr() error { 14229 return nil 14230} 14231 14232func (s *InvalidSortOrderException) Error() string { 14233 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 14234} 14235 14236// Status code returns the HTTP status code for the request's response error. 14237func (s *InvalidSortOrderException) StatusCode() int { 14238 return s.RespMetadata.StatusCode 14239} 14240 14241// RequestID returns the service's response RequestID for request. 14242func (s *InvalidSortOrderException) RequestID() string { 14243 return s.RespMetadata.RequestID 14244} 14245 14246// The tag was specified in an invalid format. 14247type InvalidTagException struct { 14248 _ struct{} `type:"structure"` 14249 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 14250 14251 Message_ *string `locationName:"message" type:"string"` 14252} 14253 14254// String returns the string representation 14255func (s InvalidTagException) String() string { 14256 return awsutil.Prettify(s) 14257} 14258 14259// GoString returns the string representation 14260func (s InvalidTagException) GoString() string { 14261 return s.String() 14262} 14263 14264func newErrorInvalidTagException(v protocol.ResponseMetadata) error { 14265 return &InvalidTagException{ 14266 RespMetadata: v, 14267 } 14268} 14269 14270// Code returns the exception type name. 14271func (s *InvalidTagException) Code() string { 14272 return "InvalidTagException" 14273} 14274 14275// Message returns the exception's message. 14276func (s *InvalidTagException) Message() string { 14277 if s.Message_ != nil { 14278 return *s.Message_ 14279 } 14280 return "" 14281} 14282 14283// OrigErr always returns nil, satisfies awserr.Error interface. 14284func (s *InvalidTagException) OrigErr() error { 14285 return nil 14286} 14287 14288func (s *InvalidTagException) Error() string { 14289 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 14290} 14291 14292// Status code returns the HTTP status code for the request's response error. 14293func (s *InvalidTagException) StatusCode() int { 14294 return s.RespMetadata.StatusCode 14295} 14296 14297// RequestID returns the service's response RequestID for request. 14298func (s *InvalidTagException) RequestID() string { 14299 return s.RespMetadata.RequestID 14300} 14301 14302// The tag filter was specified in an invalid format. 14303type InvalidTagFilterException struct { 14304 _ struct{} `type:"structure"` 14305 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 14306 14307 Message_ *string `locationName:"message" type:"string"` 14308} 14309 14310// String returns the string representation 14311func (s InvalidTagFilterException) String() string { 14312 return awsutil.Prettify(s) 14313} 14314 14315// GoString returns the string representation 14316func (s InvalidTagFilterException) GoString() string { 14317 return s.String() 14318} 14319 14320func newErrorInvalidTagFilterException(v protocol.ResponseMetadata) error { 14321 return &InvalidTagFilterException{ 14322 RespMetadata: v, 14323 } 14324} 14325 14326// Code returns the exception type name. 14327func (s *InvalidTagFilterException) Code() string { 14328 return "InvalidTagFilterException" 14329} 14330 14331// Message returns the exception's message. 14332func (s *InvalidTagFilterException) Message() string { 14333 if s.Message_ != nil { 14334 return *s.Message_ 14335 } 14336 return "" 14337} 14338 14339// OrigErr always returns nil, satisfies awserr.Error interface. 14340func (s *InvalidTagFilterException) OrigErr() error { 14341 return nil 14342} 14343 14344func (s *InvalidTagFilterException) Error() string { 14345 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 14346} 14347 14348// Status code returns the HTTP status code for the request's response error. 14349func (s *InvalidTagFilterException) StatusCode() int { 14350 return s.RespMetadata.StatusCode 14351} 14352 14353// RequestID returns the service's response RequestID for request. 14354func (s *InvalidTagFilterException) RequestID() string { 14355 return s.RespMetadata.RequestID 14356} 14357 14358// The specified tags are not valid. 14359type InvalidTagsToAddException struct { 14360 _ struct{} `type:"structure"` 14361 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 14362 14363 Message_ *string `locationName:"message" type:"string"` 14364} 14365 14366// String returns the string representation 14367func (s InvalidTagsToAddException) String() string { 14368 return awsutil.Prettify(s) 14369} 14370 14371// GoString returns the string representation 14372func (s InvalidTagsToAddException) GoString() string { 14373 return s.String() 14374} 14375 14376func newErrorInvalidTagsToAddException(v protocol.ResponseMetadata) error { 14377 return &InvalidTagsToAddException{ 14378 RespMetadata: v, 14379 } 14380} 14381 14382// Code returns the exception type name. 14383func (s *InvalidTagsToAddException) Code() string { 14384 return "InvalidTagsToAddException" 14385} 14386 14387// Message returns the exception's message. 14388func (s *InvalidTagsToAddException) Message() string { 14389 if s.Message_ != nil { 14390 return *s.Message_ 14391 } 14392 return "" 14393} 14394 14395// OrigErr always returns nil, satisfies awserr.Error interface. 14396func (s *InvalidTagsToAddException) OrigErr() error { 14397 return nil 14398} 14399 14400func (s *InvalidTagsToAddException) Error() string { 14401 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 14402} 14403 14404// Status code returns the HTTP status code for the request's response error. 14405func (s *InvalidTagsToAddException) StatusCode() int { 14406 return s.RespMetadata.StatusCode 14407} 14408 14409// RequestID returns the service's response RequestID for request. 14410func (s *InvalidTagsToAddException) RequestID() string { 14411 return s.RespMetadata.RequestID 14412} 14413 14414// The target filter name is invalid. 14415type InvalidTargetFilterNameException struct { 14416 _ struct{} `type:"structure"` 14417 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 14418 14419 Message_ *string `locationName:"message" type:"string"` 14420} 14421 14422// String returns the string representation 14423func (s InvalidTargetFilterNameException) String() string { 14424 return awsutil.Prettify(s) 14425} 14426 14427// GoString returns the string representation 14428func (s InvalidTargetFilterNameException) GoString() string { 14429 return s.String() 14430} 14431 14432func newErrorInvalidTargetFilterNameException(v protocol.ResponseMetadata) error { 14433 return &InvalidTargetFilterNameException{ 14434 RespMetadata: v, 14435 } 14436} 14437 14438// Code returns the exception type name. 14439func (s *InvalidTargetFilterNameException) Code() string { 14440 return "InvalidTargetFilterNameException" 14441} 14442 14443// Message returns the exception's message. 14444func (s *InvalidTargetFilterNameException) Message() string { 14445 if s.Message_ != nil { 14446 return *s.Message_ 14447 } 14448 return "" 14449} 14450 14451// OrigErr always returns nil, satisfies awserr.Error interface. 14452func (s *InvalidTargetFilterNameException) OrigErr() error { 14453 return nil 14454} 14455 14456func (s *InvalidTargetFilterNameException) Error() string { 14457 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 14458} 14459 14460// Status code returns the HTTP status code for the request's response error. 14461func (s *InvalidTargetFilterNameException) StatusCode() int { 14462 return s.RespMetadata.StatusCode 14463} 14464 14465// RequestID returns the service's response RequestID for request. 14466func (s *InvalidTargetFilterNameException) RequestID() string { 14467 return s.RespMetadata.RequestID 14468} 14469 14470// A target group pair associated with this deployment is not valid. 14471type InvalidTargetGroupPairException struct { 14472 _ struct{} `type:"structure"` 14473 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 14474 14475 Message_ *string `locationName:"message" type:"string"` 14476} 14477 14478// String returns the string representation 14479func (s InvalidTargetGroupPairException) String() string { 14480 return awsutil.Prettify(s) 14481} 14482 14483// GoString returns the string representation 14484func (s InvalidTargetGroupPairException) GoString() string { 14485 return s.String() 14486} 14487 14488func newErrorInvalidTargetGroupPairException(v protocol.ResponseMetadata) error { 14489 return &InvalidTargetGroupPairException{ 14490 RespMetadata: v, 14491 } 14492} 14493 14494// Code returns the exception type name. 14495func (s *InvalidTargetGroupPairException) Code() string { 14496 return "InvalidTargetGroupPairException" 14497} 14498 14499// Message returns the exception's message. 14500func (s *InvalidTargetGroupPairException) Message() string { 14501 if s.Message_ != nil { 14502 return *s.Message_ 14503 } 14504 return "" 14505} 14506 14507// OrigErr always returns nil, satisfies awserr.Error interface. 14508func (s *InvalidTargetGroupPairException) OrigErr() error { 14509 return nil 14510} 14511 14512func (s *InvalidTargetGroupPairException) Error() string { 14513 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 14514} 14515 14516// Status code returns the HTTP status code for the request's response error. 14517func (s *InvalidTargetGroupPairException) StatusCode() int { 14518 return s.RespMetadata.StatusCode 14519} 14520 14521// RequestID returns the service's response RequestID for request. 14522func (s *InvalidTargetGroupPairException) RequestID() string { 14523 return s.RespMetadata.RequestID 14524} 14525 14526// The target instance configuration is invalid. Possible causes include: 14527// 14528// * Configuration data for target instances was entered for an in-place 14529// deployment. 14530// 14531// * The limit of 10 tags for a tag type was exceeded. 14532// 14533// * The combined length of the tag names exceeded the limit. 14534// 14535// * A specified tag is not currently applied to any instances. 14536type InvalidTargetInstancesException struct { 14537 _ struct{} `type:"structure"` 14538 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 14539 14540 Message_ *string `locationName:"message" type:"string"` 14541} 14542 14543// String returns the string representation 14544func (s InvalidTargetInstancesException) String() string { 14545 return awsutil.Prettify(s) 14546} 14547 14548// GoString returns the string representation 14549func (s InvalidTargetInstancesException) GoString() string { 14550 return s.String() 14551} 14552 14553func newErrorInvalidTargetInstancesException(v protocol.ResponseMetadata) error { 14554 return &InvalidTargetInstancesException{ 14555 RespMetadata: v, 14556 } 14557} 14558 14559// Code returns the exception type name. 14560func (s *InvalidTargetInstancesException) Code() string { 14561 return "InvalidTargetInstancesException" 14562} 14563 14564// Message returns the exception's message. 14565func (s *InvalidTargetInstancesException) Message() string { 14566 if s.Message_ != nil { 14567 return *s.Message_ 14568 } 14569 return "" 14570} 14571 14572// OrigErr always returns nil, satisfies awserr.Error interface. 14573func (s *InvalidTargetInstancesException) OrigErr() error { 14574 return nil 14575} 14576 14577func (s *InvalidTargetInstancesException) Error() string { 14578 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 14579} 14580 14581// Status code returns the HTTP status code for the request's response error. 14582func (s *InvalidTargetInstancesException) StatusCode() int { 14583 return s.RespMetadata.StatusCode 14584} 14585 14586// RequestID returns the service's response RequestID for request. 14587func (s *InvalidTargetInstancesException) RequestID() string { 14588 return s.RespMetadata.RequestID 14589} 14590 14591// The specified time range was specified in an invalid format. 14592type InvalidTimeRangeException struct { 14593 _ struct{} `type:"structure"` 14594 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 14595 14596 Message_ *string `locationName:"message" type:"string"` 14597} 14598 14599// String returns the string representation 14600func (s InvalidTimeRangeException) String() string { 14601 return awsutil.Prettify(s) 14602} 14603 14604// GoString returns the string representation 14605func (s InvalidTimeRangeException) GoString() string { 14606 return s.String() 14607} 14608 14609func newErrorInvalidTimeRangeException(v protocol.ResponseMetadata) error { 14610 return &InvalidTimeRangeException{ 14611 RespMetadata: v, 14612 } 14613} 14614 14615// Code returns the exception type name. 14616func (s *InvalidTimeRangeException) Code() string { 14617 return "InvalidTimeRangeException" 14618} 14619 14620// Message returns the exception's message. 14621func (s *InvalidTimeRangeException) Message() string { 14622 if s.Message_ != nil { 14623 return *s.Message_ 14624 } 14625 return "" 14626} 14627 14628// OrigErr always returns nil, satisfies awserr.Error interface. 14629func (s *InvalidTimeRangeException) OrigErr() error { 14630 return nil 14631} 14632 14633func (s *InvalidTimeRangeException) Error() string { 14634 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 14635} 14636 14637// Status code returns the HTTP status code for the request's response error. 14638func (s *InvalidTimeRangeException) StatusCode() int { 14639 return s.RespMetadata.StatusCode 14640} 14641 14642// RequestID returns the service's response RequestID for request. 14643func (s *InvalidTimeRangeException) RequestID() string { 14644 return s.RespMetadata.RequestID 14645} 14646 14647// The configuration that specifies how traffic is routed during a deployment 14648// is invalid. 14649type InvalidTrafficRoutingConfigurationException struct { 14650 _ struct{} `type:"structure"` 14651 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 14652 14653 Message_ *string `locationName:"message" type:"string"` 14654} 14655 14656// String returns the string representation 14657func (s InvalidTrafficRoutingConfigurationException) String() string { 14658 return awsutil.Prettify(s) 14659} 14660 14661// GoString returns the string representation 14662func (s InvalidTrafficRoutingConfigurationException) GoString() string { 14663 return s.String() 14664} 14665 14666func newErrorInvalidTrafficRoutingConfigurationException(v protocol.ResponseMetadata) error { 14667 return &InvalidTrafficRoutingConfigurationException{ 14668 RespMetadata: v, 14669 } 14670} 14671 14672// Code returns the exception type name. 14673func (s *InvalidTrafficRoutingConfigurationException) Code() string { 14674 return "InvalidTrafficRoutingConfigurationException" 14675} 14676 14677// Message returns the exception's message. 14678func (s *InvalidTrafficRoutingConfigurationException) Message() string { 14679 if s.Message_ != nil { 14680 return *s.Message_ 14681 } 14682 return "" 14683} 14684 14685// OrigErr always returns nil, satisfies awserr.Error interface. 14686func (s *InvalidTrafficRoutingConfigurationException) OrigErr() error { 14687 return nil 14688} 14689 14690func (s *InvalidTrafficRoutingConfigurationException) Error() string { 14691 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 14692} 14693 14694// Status code returns the HTTP status code for the request's response error. 14695func (s *InvalidTrafficRoutingConfigurationException) StatusCode() int { 14696 return s.RespMetadata.StatusCode 14697} 14698 14699// RequestID returns the service's response RequestID for request. 14700func (s *InvalidTrafficRoutingConfigurationException) RequestID() string { 14701 return s.RespMetadata.RequestID 14702} 14703 14704// The trigger was specified in an invalid format. 14705type InvalidTriggerConfigException struct { 14706 _ struct{} `type:"structure"` 14707 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 14708 14709 Message_ *string `locationName:"message" type:"string"` 14710} 14711 14712// String returns the string representation 14713func (s InvalidTriggerConfigException) String() string { 14714 return awsutil.Prettify(s) 14715} 14716 14717// GoString returns the string representation 14718func (s InvalidTriggerConfigException) GoString() string { 14719 return s.String() 14720} 14721 14722func newErrorInvalidTriggerConfigException(v protocol.ResponseMetadata) error { 14723 return &InvalidTriggerConfigException{ 14724 RespMetadata: v, 14725 } 14726} 14727 14728// Code returns the exception type name. 14729func (s *InvalidTriggerConfigException) Code() string { 14730 return "InvalidTriggerConfigException" 14731} 14732 14733// Message returns the exception's message. 14734func (s *InvalidTriggerConfigException) Message() string { 14735 if s.Message_ != nil { 14736 return *s.Message_ 14737 } 14738 return "" 14739} 14740 14741// OrigErr always returns nil, satisfies awserr.Error interface. 14742func (s *InvalidTriggerConfigException) OrigErr() error { 14743 return nil 14744} 14745 14746func (s *InvalidTriggerConfigException) Error() string { 14747 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 14748} 14749 14750// Status code returns the HTTP status code for the request's response error. 14751func (s *InvalidTriggerConfigException) StatusCode() int { 14752 return s.RespMetadata.StatusCode 14753} 14754 14755// RequestID returns the service's response RequestID for request. 14756func (s *InvalidTriggerConfigException) RequestID() string { 14757 return s.RespMetadata.RequestID 14758} 14759 14760// The UpdateOutdatedInstancesOnly value is invalid. For AWS Lambda deployments, 14761// false is expected. For EC2/On-premises deployments, true or false is expected. 14762type InvalidUpdateOutdatedInstancesOnlyValueException struct { 14763 _ struct{} `type:"structure"` 14764 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 14765 14766 Message_ *string `locationName:"message" type:"string"` 14767} 14768 14769// String returns the string representation 14770func (s InvalidUpdateOutdatedInstancesOnlyValueException) String() string { 14771 return awsutil.Prettify(s) 14772} 14773 14774// GoString returns the string representation 14775func (s InvalidUpdateOutdatedInstancesOnlyValueException) GoString() string { 14776 return s.String() 14777} 14778 14779func newErrorInvalidUpdateOutdatedInstancesOnlyValueException(v protocol.ResponseMetadata) error { 14780 return &InvalidUpdateOutdatedInstancesOnlyValueException{ 14781 RespMetadata: v, 14782 } 14783} 14784 14785// Code returns the exception type name. 14786func (s *InvalidUpdateOutdatedInstancesOnlyValueException) Code() string { 14787 return "InvalidUpdateOutdatedInstancesOnlyValueException" 14788} 14789 14790// Message returns the exception's message. 14791func (s *InvalidUpdateOutdatedInstancesOnlyValueException) Message() string { 14792 if s.Message_ != nil { 14793 return *s.Message_ 14794 } 14795 return "" 14796} 14797 14798// OrigErr always returns nil, satisfies awserr.Error interface. 14799func (s *InvalidUpdateOutdatedInstancesOnlyValueException) OrigErr() error { 14800 return nil 14801} 14802 14803func (s *InvalidUpdateOutdatedInstancesOnlyValueException) Error() string { 14804 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 14805} 14806 14807// Status code returns the HTTP status code for the request's response error. 14808func (s *InvalidUpdateOutdatedInstancesOnlyValueException) StatusCode() int { 14809 return s.RespMetadata.StatusCode 14810} 14811 14812// RequestID returns the service's response RequestID for request. 14813func (s *InvalidUpdateOutdatedInstancesOnlyValueException) RequestID() string { 14814 return s.RespMetadata.RequestID 14815} 14816 14817// Information about a Lambda function specified in a deployment. 14818type LambdaFunctionInfo struct { 14819 _ struct{} `type:"structure"` 14820 14821 // The version of a Lambda function that production traffic points to. 14822 CurrentVersion *string `locationName:"currentVersion" type:"string"` 14823 14824 // The alias of a Lambda function. For more information, see AWS Lambda Function 14825 // Aliases (https://docs.aws.amazon.com/lambda/latest/dg/aliases-intro.html) 14826 // in the AWS Lambda Developer Guide. 14827 FunctionAlias *string `locationName:"functionAlias" type:"string"` 14828 14829 // The name of a Lambda function. 14830 FunctionName *string `locationName:"functionName" type:"string"` 14831 14832 // The version of a Lambda function that production traffic points to after 14833 // the Lambda function is deployed. 14834 TargetVersion *string `locationName:"targetVersion" type:"string"` 14835 14836 // The percentage of production traffic that the target version of a Lambda 14837 // function receives. 14838 TargetVersionWeight *float64 `locationName:"targetVersionWeight" type:"double"` 14839} 14840 14841// String returns the string representation 14842func (s LambdaFunctionInfo) String() string { 14843 return awsutil.Prettify(s) 14844} 14845 14846// GoString returns the string representation 14847func (s LambdaFunctionInfo) GoString() string { 14848 return s.String() 14849} 14850 14851// SetCurrentVersion sets the CurrentVersion field's value. 14852func (s *LambdaFunctionInfo) SetCurrentVersion(v string) *LambdaFunctionInfo { 14853 s.CurrentVersion = &v 14854 return s 14855} 14856 14857// SetFunctionAlias sets the FunctionAlias field's value. 14858func (s *LambdaFunctionInfo) SetFunctionAlias(v string) *LambdaFunctionInfo { 14859 s.FunctionAlias = &v 14860 return s 14861} 14862 14863// SetFunctionName sets the FunctionName field's value. 14864func (s *LambdaFunctionInfo) SetFunctionName(v string) *LambdaFunctionInfo { 14865 s.FunctionName = &v 14866 return s 14867} 14868 14869// SetTargetVersion sets the TargetVersion field's value. 14870func (s *LambdaFunctionInfo) SetTargetVersion(v string) *LambdaFunctionInfo { 14871 s.TargetVersion = &v 14872 return s 14873} 14874 14875// SetTargetVersionWeight sets the TargetVersionWeight field's value. 14876func (s *LambdaFunctionInfo) SetTargetVersionWeight(v float64) *LambdaFunctionInfo { 14877 s.TargetVersionWeight = &v 14878 return s 14879} 14880 14881// Information about the target AWS Lambda function during an AWS Lambda deployment. 14882type LambdaTarget struct { 14883 _ struct{} `type:"structure"` 14884 14885 // The unique ID of a deployment. 14886 DeploymentId *string `locationName:"deploymentId" type:"string"` 14887 14888 // A LambdaFunctionInfo object that describes a target Lambda function. 14889 LambdaFunctionInfo *LambdaFunctionInfo `locationName:"lambdaFunctionInfo" type:"structure"` 14890 14891 // The date and time when the target Lambda function was updated by a deployment. 14892 LastUpdatedAt *time.Time `locationName:"lastUpdatedAt" type:"timestamp"` 14893 14894 // The lifecycle events of the deployment to this target Lambda function. 14895 LifecycleEvents []*LifecycleEvent `locationName:"lifecycleEvents" type:"list"` 14896 14897 // The status an AWS Lambda deployment's target Lambda function. 14898 Status *string `locationName:"status" type:"string" enum:"TargetStatus"` 14899 14900 // The Amazon Resource Name (ARN) of the target. 14901 TargetArn *string `locationName:"targetArn" type:"string"` 14902 14903 // The unique ID of a deployment target that has a type of lambdaTarget. 14904 TargetId *string `locationName:"targetId" type:"string"` 14905} 14906 14907// String returns the string representation 14908func (s LambdaTarget) String() string { 14909 return awsutil.Prettify(s) 14910} 14911 14912// GoString returns the string representation 14913func (s LambdaTarget) GoString() string { 14914 return s.String() 14915} 14916 14917// SetDeploymentId sets the DeploymentId field's value. 14918func (s *LambdaTarget) SetDeploymentId(v string) *LambdaTarget { 14919 s.DeploymentId = &v 14920 return s 14921} 14922 14923// SetLambdaFunctionInfo sets the LambdaFunctionInfo field's value. 14924func (s *LambdaTarget) SetLambdaFunctionInfo(v *LambdaFunctionInfo) *LambdaTarget { 14925 s.LambdaFunctionInfo = v 14926 return s 14927} 14928 14929// SetLastUpdatedAt sets the LastUpdatedAt field's value. 14930func (s *LambdaTarget) SetLastUpdatedAt(v time.Time) *LambdaTarget { 14931 s.LastUpdatedAt = &v 14932 return s 14933} 14934 14935// SetLifecycleEvents sets the LifecycleEvents field's value. 14936func (s *LambdaTarget) SetLifecycleEvents(v []*LifecycleEvent) *LambdaTarget { 14937 s.LifecycleEvents = v 14938 return s 14939} 14940 14941// SetStatus sets the Status field's value. 14942func (s *LambdaTarget) SetStatus(v string) *LambdaTarget { 14943 s.Status = &v 14944 return s 14945} 14946 14947// SetTargetArn sets the TargetArn field's value. 14948func (s *LambdaTarget) SetTargetArn(v string) *LambdaTarget { 14949 s.TargetArn = &v 14950 return s 14951} 14952 14953// SetTargetId sets the TargetId field's value. 14954func (s *LambdaTarget) SetTargetId(v string) *LambdaTarget { 14955 s.TargetId = &v 14956 return s 14957} 14958 14959// Information about the most recent attempted or successful deployment to a 14960// deployment group. 14961type LastDeploymentInfo struct { 14962 _ struct{} `type:"structure"` 14963 14964 // A timestamp that indicates when the most recent deployment to the deployment 14965 // group started. 14966 CreateTime *time.Time `locationName:"createTime" type:"timestamp"` 14967 14968 // The unique ID of a deployment. 14969 DeploymentId *string `locationName:"deploymentId" type:"string"` 14970 14971 // A timestamp that indicates when the most recent deployment to the deployment 14972 // group was complete. 14973 EndTime *time.Time `locationName:"endTime" type:"timestamp"` 14974 14975 // The status of the most recent deployment. 14976 Status *string `locationName:"status" type:"string" enum:"DeploymentStatus"` 14977} 14978 14979// String returns the string representation 14980func (s LastDeploymentInfo) String() string { 14981 return awsutil.Prettify(s) 14982} 14983 14984// GoString returns the string representation 14985func (s LastDeploymentInfo) GoString() string { 14986 return s.String() 14987} 14988 14989// SetCreateTime sets the CreateTime field's value. 14990func (s *LastDeploymentInfo) SetCreateTime(v time.Time) *LastDeploymentInfo { 14991 s.CreateTime = &v 14992 return s 14993} 14994 14995// SetDeploymentId sets the DeploymentId field's value. 14996func (s *LastDeploymentInfo) SetDeploymentId(v string) *LastDeploymentInfo { 14997 s.DeploymentId = &v 14998 return s 14999} 15000 15001// SetEndTime sets the EndTime field's value. 15002func (s *LastDeploymentInfo) SetEndTime(v time.Time) *LastDeploymentInfo { 15003 s.EndTime = &v 15004 return s 15005} 15006 15007// SetStatus sets the Status field's value. 15008func (s *LastDeploymentInfo) SetStatus(v string) *LastDeploymentInfo { 15009 s.Status = &v 15010 return s 15011} 15012 15013// Information about a deployment lifecycle event. 15014type LifecycleEvent struct { 15015 _ struct{} `type:"structure"` 15016 15017 // Diagnostic information about the deployment lifecycle event. 15018 Diagnostics *Diagnostics `locationName:"diagnostics" type:"structure"` 15019 15020 // A timestamp that indicates when the deployment lifecycle event ended. 15021 EndTime *time.Time `locationName:"endTime" type:"timestamp"` 15022 15023 // The deployment lifecycle event name, such as ApplicationStop, BeforeInstall, 15024 // AfterInstall, ApplicationStart, or ValidateService. 15025 LifecycleEventName *string `locationName:"lifecycleEventName" type:"string"` 15026 15027 // A timestamp that indicates when the deployment lifecycle event started. 15028 StartTime *time.Time `locationName:"startTime" type:"timestamp"` 15029 15030 // The deployment lifecycle event status: 15031 // 15032 // * Pending: The deployment lifecycle event is pending. 15033 // 15034 // * InProgress: The deployment lifecycle event is in progress. 15035 // 15036 // * Succeeded: The deployment lifecycle event ran successfully. 15037 // 15038 // * Failed: The deployment lifecycle event has failed. 15039 // 15040 // * Skipped: The deployment lifecycle event has been skipped. 15041 // 15042 // * Unknown: The deployment lifecycle event is unknown. 15043 Status *string `locationName:"status" type:"string" enum:"LifecycleEventStatus"` 15044} 15045 15046// String returns the string representation 15047func (s LifecycleEvent) String() string { 15048 return awsutil.Prettify(s) 15049} 15050 15051// GoString returns the string representation 15052func (s LifecycleEvent) GoString() string { 15053 return s.String() 15054} 15055 15056// SetDiagnostics sets the Diagnostics field's value. 15057func (s *LifecycleEvent) SetDiagnostics(v *Diagnostics) *LifecycleEvent { 15058 s.Diagnostics = v 15059 return s 15060} 15061 15062// SetEndTime sets the EndTime field's value. 15063func (s *LifecycleEvent) SetEndTime(v time.Time) *LifecycleEvent { 15064 s.EndTime = &v 15065 return s 15066} 15067 15068// SetLifecycleEventName sets the LifecycleEventName field's value. 15069func (s *LifecycleEvent) SetLifecycleEventName(v string) *LifecycleEvent { 15070 s.LifecycleEventName = &v 15071 return s 15072} 15073 15074// SetStartTime sets the StartTime field's value. 15075func (s *LifecycleEvent) SetStartTime(v time.Time) *LifecycleEvent { 15076 s.StartTime = &v 15077 return s 15078} 15079 15080// SetStatus sets the Status field's value. 15081func (s *LifecycleEvent) SetStatus(v string) *LifecycleEvent { 15082 s.Status = &v 15083 return s 15084} 15085 15086// An attempt to return the status of an already completed lifecycle event occurred. 15087type LifecycleEventAlreadyCompletedException struct { 15088 _ struct{} `type:"structure"` 15089 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 15090 15091 Message_ *string `locationName:"message" type:"string"` 15092} 15093 15094// String returns the string representation 15095func (s LifecycleEventAlreadyCompletedException) String() string { 15096 return awsutil.Prettify(s) 15097} 15098 15099// GoString returns the string representation 15100func (s LifecycleEventAlreadyCompletedException) GoString() string { 15101 return s.String() 15102} 15103 15104func newErrorLifecycleEventAlreadyCompletedException(v protocol.ResponseMetadata) error { 15105 return &LifecycleEventAlreadyCompletedException{ 15106 RespMetadata: v, 15107 } 15108} 15109 15110// Code returns the exception type name. 15111func (s *LifecycleEventAlreadyCompletedException) Code() string { 15112 return "LifecycleEventAlreadyCompletedException" 15113} 15114 15115// Message returns the exception's message. 15116func (s *LifecycleEventAlreadyCompletedException) Message() string { 15117 if s.Message_ != nil { 15118 return *s.Message_ 15119 } 15120 return "" 15121} 15122 15123// OrigErr always returns nil, satisfies awserr.Error interface. 15124func (s *LifecycleEventAlreadyCompletedException) OrigErr() error { 15125 return nil 15126} 15127 15128func (s *LifecycleEventAlreadyCompletedException) Error() string { 15129 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 15130} 15131 15132// Status code returns the HTTP status code for the request's response error. 15133func (s *LifecycleEventAlreadyCompletedException) StatusCode() int { 15134 return s.RespMetadata.StatusCode 15135} 15136 15137// RequestID returns the service's response RequestID for request. 15138func (s *LifecycleEventAlreadyCompletedException) RequestID() string { 15139 return s.RespMetadata.RequestID 15140} 15141 15142// The limit for lifecycle hooks was exceeded. 15143type LifecycleHookLimitExceededException struct { 15144 _ struct{} `type:"structure"` 15145 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 15146 15147 Message_ *string `locationName:"message" type:"string"` 15148} 15149 15150// String returns the string representation 15151func (s LifecycleHookLimitExceededException) String() string { 15152 return awsutil.Prettify(s) 15153} 15154 15155// GoString returns the string representation 15156func (s LifecycleHookLimitExceededException) GoString() string { 15157 return s.String() 15158} 15159 15160func newErrorLifecycleHookLimitExceededException(v protocol.ResponseMetadata) error { 15161 return &LifecycleHookLimitExceededException{ 15162 RespMetadata: v, 15163 } 15164} 15165 15166// Code returns the exception type name. 15167func (s *LifecycleHookLimitExceededException) Code() string { 15168 return "LifecycleHookLimitExceededException" 15169} 15170 15171// Message returns the exception's message. 15172func (s *LifecycleHookLimitExceededException) Message() string { 15173 if s.Message_ != nil { 15174 return *s.Message_ 15175 } 15176 return "" 15177} 15178 15179// OrigErr always returns nil, satisfies awserr.Error interface. 15180func (s *LifecycleHookLimitExceededException) OrigErr() error { 15181 return nil 15182} 15183 15184func (s *LifecycleHookLimitExceededException) Error() string { 15185 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 15186} 15187 15188// Status code returns the HTTP status code for the request's response error. 15189func (s *LifecycleHookLimitExceededException) StatusCode() int { 15190 return s.RespMetadata.StatusCode 15191} 15192 15193// RequestID returns the service's response RequestID for request. 15194func (s *LifecycleHookLimitExceededException) RequestID() string { 15195 return s.RespMetadata.RequestID 15196} 15197 15198// Represents the input of a ListApplicationRevisions operation. 15199type ListApplicationRevisionsInput struct { 15200 _ struct{} `type:"structure"` 15201 15202 // The name of an AWS CodeDeploy application associated with the IAM user or 15203 // AWS account. 15204 // 15205 // ApplicationName is a required field 15206 ApplicationName *string `locationName:"applicationName" min:"1" type:"string" required:"true"` 15207 15208 // Whether to list revisions based on whether the revision is the target revision 15209 // of a deployment group: 15210 // 15211 // * include: List revisions that are target revisions of a deployment group. 15212 // 15213 // * exclude: Do not list revisions that are target revisions of a deployment 15214 // group. 15215 // 15216 // * ignore: List all revisions. 15217 Deployed *string `locationName:"deployed" type:"string" enum:"ListStateFilterAction"` 15218 15219 // An identifier returned from the previous ListApplicationRevisions call. It 15220 // can be used to return the next set of applications in the list. 15221 NextToken *string `locationName:"nextToken" type:"string"` 15222 15223 // An Amazon S3 bucket name to limit the search for revisions. 15224 // 15225 // If set to null, all of the user's buckets are searched. 15226 S3Bucket *string `locationName:"s3Bucket" type:"string"` 15227 15228 // A key prefix for the set of Amazon S3 objects to limit the search for revisions. 15229 S3KeyPrefix *string `locationName:"s3KeyPrefix" type:"string"` 15230 15231 // The column name to use to sort the list results: 15232 // 15233 // * registerTime: Sort by the time the revisions were registered with AWS 15234 // CodeDeploy. 15235 // 15236 // * firstUsedTime: Sort by the time the revisions were first used in a deployment. 15237 // 15238 // * lastUsedTime: Sort by the time the revisions were last used in a deployment. 15239 // 15240 // If not specified or set to null, the results are returned in an arbitrary 15241 // order. 15242 SortBy *string `locationName:"sortBy" type:"string" enum:"ApplicationRevisionSortBy"` 15243 15244 // The order in which to sort the list results: 15245 // 15246 // * ascending: ascending order. 15247 // 15248 // * descending: descending order. 15249 // 15250 // If not specified, the results are sorted in ascending order. 15251 // 15252 // If set to null, the results are sorted in an arbitrary order. 15253 SortOrder *string `locationName:"sortOrder" type:"string" enum:"SortOrder"` 15254} 15255 15256// String returns the string representation 15257func (s ListApplicationRevisionsInput) String() string { 15258 return awsutil.Prettify(s) 15259} 15260 15261// GoString returns the string representation 15262func (s ListApplicationRevisionsInput) GoString() string { 15263 return s.String() 15264} 15265 15266// Validate inspects the fields of the type to determine if they are valid. 15267func (s *ListApplicationRevisionsInput) Validate() error { 15268 invalidParams := request.ErrInvalidParams{Context: "ListApplicationRevisionsInput"} 15269 if s.ApplicationName == nil { 15270 invalidParams.Add(request.NewErrParamRequired("ApplicationName")) 15271 } 15272 if s.ApplicationName != nil && len(*s.ApplicationName) < 1 { 15273 invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1)) 15274 } 15275 15276 if invalidParams.Len() > 0 { 15277 return invalidParams 15278 } 15279 return nil 15280} 15281 15282// SetApplicationName sets the ApplicationName field's value. 15283func (s *ListApplicationRevisionsInput) SetApplicationName(v string) *ListApplicationRevisionsInput { 15284 s.ApplicationName = &v 15285 return s 15286} 15287 15288// SetDeployed sets the Deployed field's value. 15289func (s *ListApplicationRevisionsInput) SetDeployed(v string) *ListApplicationRevisionsInput { 15290 s.Deployed = &v 15291 return s 15292} 15293 15294// SetNextToken sets the NextToken field's value. 15295func (s *ListApplicationRevisionsInput) SetNextToken(v string) *ListApplicationRevisionsInput { 15296 s.NextToken = &v 15297 return s 15298} 15299 15300// SetS3Bucket sets the S3Bucket field's value. 15301func (s *ListApplicationRevisionsInput) SetS3Bucket(v string) *ListApplicationRevisionsInput { 15302 s.S3Bucket = &v 15303 return s 15304} 15305 15306// SetS3KeyPrefix sets the S3KeyPrefix field's value. 15307func (s *ListApplicationRevisionsInput) SetS3KeyPrefix(v string) *ListApplicationRevisionsInput { 15308 s.S3KeyPrefix = &v 15309 return s 15310} 15311 15312// SetSortBy sets the SortBy field's value. 15313func (s *ListApplicationRevisionsInput) SetSortBy(v string) *ListApplicationRevisionsInput { 15314 s.SortBy = &v 15315 return s 15316} 15317 15318// SetSortOrder sets the SortOrder field's value. 15319func (s *ListApplicationRevisionsInput) SetSortOrder(v string) *ListApplicationRevisionsInput { 15320 s.SortOrder = &v 15321 return s 15322} 15323 15324// Represents the output of a ListApplicationRevisions operation. 15325type ListApplicationRevisionsOutput struct { 15326 _ struct{} `type:"structure"` 15327 15328 // If a large amount of information is returned, an identifier is also returned. 15329 // It can be used in a subsequent list application revisions call to return 15330 // the next set of application revisions in the list. 15331 NextToken *string `locationName:"nextToken" type:"string"` 15332 15333 // A list of locations that contain the matching revisions. 15334 Revisions []*RevisionLocation `locationName:"revisions" type:"list"` 15335} 15336 15337// String returns the string representation 15338func (s ListApplicationRevisionsOutput) String() string { 15339 return awsutil.Prettify(s) 15340} 15341 15342// GoString returns the string representation 15343func (s ListApplicationRevisionsOutput) GoString() string { 15344 return s.String() 15345} 15346 15347// SetNextToken sets the NextToken field's value. 15348func (s *ListApplicationRevisionsOutput) SetNextToken(v string) *ListApplicationRevisionsOutput { 15349 s.NextToken = &v 15350 return s 15351} 15352 15353// SetRevisions sets the Revisions field's value. 15354func (s *ListApplicationRevisionsOutput) SetRevisions(v []*RevisionLocation) *ListApplicationRevisionsOutput { 15355 s.Revisions = v 15356 return s 15357} 15358 15359// Represents the input of a ListApplications operation. 15360type ListApplicationsInput struct { 15361 _ struct{} `type:"structure"` 15362 15363 // An identifier returned from the previous list applications call. It can be 15364 // used to return the next set of applications in the list. 15365 NextToken *string `locationName:"nextToken" type:"string"` 15366} 15367 15368// String returns the string representation 15369func (s ListApplicationsInput) String() string { 15370 return awsutil.Prettify(s) 15371} 15372 15373// GoString returns the string representation 15374func (s ListApplicationsInput) GoString() string { 15375 return s.String() 15376} 15377 15378// SetNextToken sets the NextToken field's value. 15379func (s *ListApplicationsInput) SetNextToken(v string) *ListApplicationsInput { 15380 s.NextToken = &v 15381 return s 15382} 15383 15384// Represents the output of a ListApplications operation. 15385type ListApplicationsOutput struct { 15386 _ struct{} `type:"structure"` 15387 15388 // A list of application names. 15389 Applications []*string `locationName:"applications" type:"list"` 15390 15391 // If a large amount of information is returned, an identifier is also returned. 15392 // It can be used in a subsequent list applications call to return the next 15393 // set of applications in the list. 15394 NextToken *string `locationName:"nextToken" type:"string"` 15395} 15396 15397// String returns the string representation 15398func (s ListApplicationsOutput) String() string { 15399 return awsutil.Prettify(s) 15400} 15401 15402// GoString returns the string representation 15403func (s ListApplicationsOutput) GoString() string { 15404 return s.String() 15405} 15406 15407// SetApplications sets the Applications field's value. 15408func (s *ListApplicationsOutput) SetApplications(v []*string) *ListApplicationsOutput { 15409 s.Applications = v 15410 return s 15411} 15412 15413// SetNextToken sets the NextToken field's value. 15414func (s *ListApplicationsOutput) SetNextToken(v string) *ListApplicationsOutput { 15415 s.NextToken = &v 15416 return s 15417} 15418 15419// Represents the input of a ListDeploymentConfigs operation. 15420type ListDeploymentConfigsInput struct { 15421 _ struct{} `type:"structure"` 15422 15423 // An identifier returned from the previous ListDeploymentConfigs call. It can 15424 // be used to return the next set of deployment configurations in the list. 15425 NextToken *string `locationName:"nextToken" type:"string"` 15426} 15427 15428// String returns the string representation 15429func (s ListDeploymentConfigsInput) String() string { 15430 return awsutil.Prettify(s) 15431} 15432 15433// GoString returns the string representation 15434func (s ListDeploymentConfigsInput) GoString() string { 15435 return s.String() 15436} 15437 15438// SetNextToken sets the NextToken field's value. 15439func (s *ListDeploymentConfigsInput) SetNextToken(v string) *ListDeploymentConfigsInput { 15440 s.NextToken = &v 15441 return s 15442} 15443 15444// Represents the output of a ListDeploymentConfigs operation. 15445type ListDeploymentConfigsOutput struct { 15446 _ struct{} `type:"structure"` 15447 15448 // A list of deployment configurations, including built-in configurations such 15449 // as CodeDeployDefault.OneAtATime. 15450 DeploymentConfigsList []*string `locationName:"deploymentConfigsList" type:"list"` 15451 15452 // If a large amount of information is returned, an identifier is also returned. 15453 // It can be used in a subsequent list deployment configurations call to return 15454 // the next set of deployment configurations in the list. 15455 NextToken *string `locationName:"nextToken" type:"string"` 15456} 15457 15458// String returns the string representation 15459func (s ListDeploymentConfigsOutput) String() string { 15460 return awsutil.Prettify(s) 15461} 15462 15463// GoString returns the string representation 15464func (s ListDeploymentConfigsOutput) GoString() string { 15465 return s.String() 15466} 15467 15468// SetDeploymentConfigsList sets the DeploymentConfigsList field's value. 15469func (s *ListDeploymentConfigsOutput) SetDeploymentConfigsList(v []*string) *ListDeploymentConfigsOutput { 15470 s.DeploymentConfigsList = v 15471 return s 15472} 15473 15474// SetNextToken sets the NextToken field's value. 15475func (s *ListDeploymentConfigsOutput) SetNextToken(v string) *ListDeploymentConfigsOutput { 15476 s.NextToken = &v 15477 return s 15478} 15479 15480// Represents the input of a ListDeploymentGroups operation. 15481type ListDeploymentGroupsInput struct { 15482 _ struct{} `type:"structure"` 15483 15484 // The name of an AWS CodeDeploy application associated with the IAM user or 15485 // AWS account. 15486 // 15487 // ApplicationName is a required field 15488 ApplicationName *string `locationName:"applicationName" min:"1" type:"string" required:"true"` 15489 15490 // An identifier returned from the previous list deployment groups call. It 15491 // can be used to return the next set of deployment groups in the list. 15492 NextToken *string `locationName:"nextToken" type:"string"` 15493} 15494 15495// String returns the string representation 15496func (s ListDeploymentGroupsInput) String() string { 15497 return awsutil.Prettify(s) 15498} 15499 15500// GoString returns the string representation 15501func (s ListDeploymentGroupsInput) GoString() string { 15502 return s.String() 15503} 15504 15505// Validate inspects the fields of the type to determine if they are valid. 15506func (s *ListDeploymentGroupsInput) Validate() error { 15507 invalidParams := request.ErrInvalidParams{Context: "ListDeploymentGroupsInput"} 15508 if s.ApplicationName == nil { 15509 invalidParams.Add(request.NewErrParamRequired("ApplicationName")) 15510 } 15511 if s.ApplicationName != nil && len(*s.ApplicationName) < 1 { 15512 invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1)) 15513 } 15514 15515 if invalidParams.Len() > 0 { 15516 return invalidParams 15517 } 15518 return nil 15519} 15520 15521// SetApplicationName sets the ApplicationName field's value. 15522func (s *ListDeploymentGroupsInput) SetApplicationName(v string) *ListDeploymentGroupsInput { 15523 s.ApplicationName = &v 15524 return s 15525} 15526 15527// SetNextToken sets the NextToken field's value. 15528func (s *ListDeploymentGroupsInput) SetNextToken(v string) *ListDeploymentGroupsInput { 15529 s.NextToken = &v 15530 return s 15531} 15532 15533// Represents the output of a ListDeploymentGroups operation. 15534type ListDeploymentGroupsOutput struct { 15535 _ struct{} `type:"structure"` 15536 15537 // The application name. 15538 ApplicationName *string `locationName:"applicationName" min:"1" type:"string"` 15539 15540 // A list of deployment group names. 15541 DeploymentGroups []*string `locationName:"deploymentGroups" type:"list"` 15542 15543 // If a large amount of information is returned, an identifier is also returned. 15544 // It can be used in a subsequent list deployment groups call to return the 15545 // next set of deployment groups in the list. 15546 NextToken *string `locationName:"nextToken" type:"string"` 15547} 15548 15549// String returns the string representation 15550func (s ListDeploymentGroupsOutput) String() string { 15551 return awsutil.Prettify(s) 15552} 15553 15554// GoString returns the string representation 15555func (s ListDeploymentGroupsOutput) GoString() string { 15556 return s.String() 15557} 15558 15559// SetApplicationName sets the ApplicationName field's value. 15560func (s *ListDeploymentGroupsOutput) SetApplicationName(v string) *ListDeploymentGroupsOutput { 15561 s.ApplicationName = &v 15562 return s 15563} 15564 15565// SetDeploymentGroups sets the DeploymentGroups field's value. 15566func (s *ListDeploymentGroupsOutput) SetDeploymentGroups(v []*string) *ListDeploymentGroupsOutput { 15567 s.DeploymentGroups = v 15568 return s 15569} 15570 15571// SetNextToken sets the NextToken field's value. 15572func (s *ListDeploymentGroupsOutput) SetNextToken(v string) *ListDeploymentGroupsOutput { 15573 s.NextToken = &v 15574 return s 15575} 15576 15577// Represents the input of a ListDeploymentInstances operation. 15578type ListDeploymentInstancesInput struct { 15579 _ struct{} `type:"structure"` 15580 15581 // The unique ID of a deployment. 15582 // 15583 // DeploymentId is a required field 15584 DeploymentId *string `locationName:"deploymentId" type:"string" required:"true"` 15585 15586 // A subset of instances to list by status: 15587 // 15588 // * Pending: Include those instances with pending deployments. 15589 // 15590 // * InProgress: Include those instances where deployments are still in progress. 15591 // 15592 // * Succeeded: Include those instances with successful deployments. 15593 // 15594 // * Failed: Include those instances with failed deployments. 15595 // 15596 // * Skipped: Include those instances with skipped deployments. 15597 // 15598 // * Unknown: Include those instances with deployments in an unknown state. 15599 InstanceStatusFilter []*string `locationName:"instanceStatusFilter" type:"list"` 15600 15601 // The set of instances in a blue/green deployment, either those in the original 15602 // environment ("BLUE") or those in the replacement environment ("GREEN"), for 15603 // which you want to view instance information. 15604 InstanceTypeFilter []*string `locationName:"instanceTypeFilter" type:"list"` 15605 15606 // An identifier returned from the previous list deployment instances call. 15607 // It can be used to return the next set of deployment instances in the list. 15608 NextToken *string `locationName:"nextToken" type:"string"` 15609} 15610 15611// String returns the string representation 15612func (s ListDeploymentInstancesInput) String() string { 15613 return awsutil.Prettify(s) 15614} 15615 15616// GoString returns the string representation 15617func (s ListDeploymentInstancesInput) GoString() string { 15618 return s.String() 15619} 15620 15621// Validate inspects the fields of the type to determine if they are valid. 15622func (s *ListDeploymentInstancesInput) Validate() error { 15623 invalidParams := request.ErrInvalidParams{Context: "ListDeploymentInstancesInput"} 15624 if s.DeploymentId == nil { 15625 invalidParams.Add(request.NewErrParamRequired("DeploymentId")) 15626 } 15627 15628 if invalidParams.Len() > 0 { 15629 return invalidParams 15630 } 15631 return nil 15632} 15633 15634// SetDeploymentId sets the DeploymentId field's value. 15635func (s *ListDeploymentInstancesInput) SetDeploymentId(v string) *ListDeploymentInstancesInput { 15636 s.DeploymentId = &v 15637 return s 15638} 15639 15640// SetInstanceStatusFilter sets the InstanceStatusFilter field's value. 15641func (s *ListDeploymentInstancesInput) SetInstanceStatusFilter(v []*string) *ListDeploymentInstancesInput { 15642 s.InstanceStatusFilter = v 15643 return s 15644} 15645 15646// SetInstanceTypeFilter sets the InstanceTypeFilter field's value. 15647func (s *ListDeploymentInstancesInput) SetInstanceTypeFilter(v []*string) *ListDeploymentInstancesInput { 15648 s.InstanceTypeFilter = v 15649 return s 15650} 15651 15652// SetNextToken sets the NextToken field's value. 15653func (s *ListDeploymentInstancesInput) SetNextToken(v string) *ListDeploymentInstancesInput { 15654 s.NextToken = &v 15655 return s 15656} 15657 15658// Represents the output of a ListDeploymentInstances operation. 15659type ListDeploymentInstancesOutput struct { 15660 _ struct{} `type:"structure"` 15661 15662 // A list of instance IDs. 15663 InstancesList []*string `locationName:"instancesList" type:"list"` 15664 15665 // If a large amount of information is returned, an identifier is also returned. 15666 // It can be used in a subsequent list deployment instances call to return the 15667 // next set of deployment instances in the list. 15668 NextToken *string `locationName:"nextToken" type:"string"` 15669} 15670 15671// String returns the string representation 15672func (s ListDeploymentInstancesOutput) String() string { 15673 return awsutil.Prettify(s) 15674} 15675 15676// GoString returns the string representation 15677func (s ListDeploymentInstancesOutput) GoString() string { 15678 return s.String() 15679} 15680 15681// SetInstancesList sets the InstancesList field's value. 15682func (s *ListDeploymentInstancesOutput) SetInstancesList(v []*string) *ListDeploymentInstancesOutput { 15683 s.InstancesList = v 15684 return s 15685} 15686 15687// SetNextToken sets the NextToken field's value. 15688func (s *ListDeploymentInstancesOutput) SetNextToken(v string) *ListDeploymentInstancesOutput { 15689 s.NextToken = &v 15690 return s 15691} 15692 15693type ListDeploymentTargetsInput struct { 15694 _ struct{} `type:"structure"` 15695 15696 // The unique ID of a deployment. 15697 DeploymentId *string `locationName:"deploymentId" type:"string"` 15698 15699 // A token identifier returned from the previous ListDeploymentTargets call. 15700 // It can be used to return the next set of deployment targets in the list. 15701 NextToken *string `locationName:"nextToken" type:"string"` 15702 15703 // A key used to filter the returned targets. The two valid values are: 15704 // 15705 // * TargetStatus - A TargetStatus filter string can be Failed, InProgress, 15706 // Pending, Ready, Skipped, Succeeded, or Unknown. 15707 // 15708 // * ServerInstanceLabel - A ServerInstanceLabel filter string can be Blue 15709 // or Green. 15710 TargetFilters map[string][]*string `locationName:"targetFilters" type:"map"` 15711} 15712 15713// String returns the string representation 15714func (s ListDeploymentTargetsInput) String() string { 15715 return awsutil.Prettify(s) 15716} 15717 15718// GoString returns the string representation 15719func (s ListDeploymentTargetsInput) GoString() string { 15720 return s.String() 15721} 15722 15723// SetDeploymentId sets the DeploymentId field's value. 15724func (s *ListDeploymentTargetsInput) SetDeploymentId(v string) *ListDeploymentTargetsInput { 15725 s.DeploymentId = &v 15726 return s 15727} 15728 15729// SetNextToken sets the NextToken field's value. 15730func (s *ListDeploymentTargetsInput) SetNextToken(v string) *ListDeploymentTargetsInput { 15731 s.NextToken = &v 15732 return s 15733} 15734 15735// SetTargetFilters sets the TargetFilters field's value. 15736func (s *ListDeploymentTargetsInput) SetTargetFilters(v map[string][]*string) *ListDeploymentTargetsInput { 15737 s.TargetFilters = v 15738 return s 15739} 15740 15741type ListDeploymentTargetsOutput struct { 15742 _ struct{} `type:"structure"` 15743 15744 // If a large amount of information is returned, a token identifier is also 15745 // returned. It can be used in a subsequent ListDeploymentTargets call to return 15746 // the next set of deployment targets in the list. 15747 NextToken *string `locationName:"nextToken" type:"string"` 15748 15749 // The unique IDs of deployment targets. 15750 TargetIds []*string `locationName:"targetIds" type:"list"` 15751} 15752 15753// String returns the string representation 15754func (s ListDeploymentTargetsOutput) String() string { 15755 return awsutil.Prettify(s) 15756} 15757 15758// GoString returns the string representation 15759func (s ListDeploymentTargetsOutput) GoString() string { 15760 return s.String() 15761} 15762 15763// SetNextToken sets the NextToken field's value. 15764func (s *ListDeploymentTargetsOutput) SetNextToken(v string) *ListDeploymentTargetsOutput { 15765 s.NextToken = &v 15766 return s 15767} 15768 15769// SetTargetIds sets the TargetIds field's value. 15770func (s *ListDeploymentTargetsOutput) SetTargetIds(v []*string) *ListDeploymentTargetsOutput { 15771 s.TargetIds = v 15772 return s 15773} 15774 15775// Represents the input of a ListDeployments operation. 15776type ListDeploymentsInput struct { 15777 _ struct{} `type:"structure"` 15778 15779 // The name of an AWS CodeDeploy application associated with the IAM user or 15780 // AWS account. 15781 // 15782 // If applicationName is specified, then deploymentGroupName must be specified. 15783 // If it is not specified, then deploymentGroupName must not be specified. 15784 ApplicationName *string `locationName:"applicationName" min:"1" type:"string"` 15785 15786 // A time range (start and end) for returning a subset of the list of deployments. 15787 CreateTimeRange *TimeRange `locationName:"createTimeRange" type:"structure"` 15788 15789 // The name of a deployment group for the specified application. 15790 // 15791 // If deploymentGroupName is specified, then applicationName must be specified. 15792 // If it is not specified, then applicationName must not be specified. 15793 DeploymentGroupName *string `locationName:"deploymentGroupName" min:"1" type:"string"` 15794 15795 // The unique ID of an external resource for returning deployments linked to 15796 // the external resource. 15797 ExternalId *string `locationName:"externalId" type:"string"` 15798 15799 // A subset of deployments to list by status: 15800 // 15801 // * Created: Include created deployments in the resulting list. 15802 // 15803 // * Queued: Include queued deployments in the resulting list. 15804 // 15805 // * In Progress: Include in-progress deployments in the resulting list. 15806 // 15807 // * Succeeded: Include successful deployments in the resulting list. 15808 // 15809 // * Failed: Include failed deployments in the resulting list. 15810 // 15811 // * Stopped: Include stopped deployments in the resulting list. 15812 IncludeOnlyStatuses []*string `locationName:"includeOnlyStatuses" type:"list"` 15813 15814 // An identifier returned from the previous list deployments call. It can be 15815 // used to return the next set of deployments in the list. 15816 NextToken *string `locationName:"nextToken" type:"string"` 15817} 15818 15819// String returns the string representation 15820func (s ListDeploymentsInput) String() string { 15821 return awsutil.Prettify(s) 15822} 15823 15824// GoString returns the string representation 15825func (s ListDeploymentsInput) GoString() string { 15826 return s.String() 15827} 15828 15829// Validate inspects the fields of the type to determine if they are valid. 15830func (s *ListDeploymentsInput) Validate() error { 15831 invalidParams := request.ErrInvalidParams{Context: "ListDeploymentsInput"} 15832 if s.ApplicationName != nil && len(*s.ApplicationName) < 1 { 15833 invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1)) 15834 } 15835 if s.DeploymentGroupName != nil && len(*s.DeploymentGroupName) < 1 { 15836 invalidParams.Add(request.NewErrParamMinLen("DeploymentGroupName", 1)) 15837 } 15838 15839 if invalidParams.Len() > 0 { 15840 return invalidParams 15841 } 15842 return nil 15843} 15844 15845// SetApplicationName sets the ApplicationName field's value. 15846func (s *ListDeploymentsInput) SetApplicationName(v string) *ListDeploymentsInput { 15847 s.ApplicationName = &v 15848 return s 15849} 15850 15851// SetCreateTimeRange sets the CreateTimeRange field's value. 15852func (s *ListDeploymentsInput) SetCreateTimeRange(v *TimeRange) *ListDeploymentsInput { 15853 s.CreateTimeRange = v 15854 return s 15855} 15856 15857// SetDeploymentGroupName sets the DeploymentGroupName field's value. 15858func (s *ListDeploymentsInput) SetDeploymentGroupName(v string) *ListDeploymentsInput { 15859 s.DeploymentGroupName = &v 15860 return s 15861} 15862 15863// SetExternalId sets the ExternalId field's value. 15864func (s *ListDeploymentsInput) SetExternalId(v string) *ListDeploymentsInput { 15865 s.ExternalId = &v 15866 return s 15867} 15868 15869// SetIncludeOnlyStatuses sets the IncludeOnlyStatuses field's value. 15870func (s *ListDeploymentsInput) SetIncludeOnlyStatuses(v []*string) *ListDeploymentsInput { 15871 s.IncludeOnlyStatuses = v 15872 return s 15873} 15874 15875// SetNextToken sets the NextToken field's value. 15876func (s *ListDeploymentsInput) SetNextToken(v string) *ListDeploymentsInput { 15877 s.NextToken = &v 15878 return s 15879} 15880 15881// Represents the output of a ListDeployments operation. 15882type ListDeploymentsOutput struct { 15883 _ struct{} `type:"structure"` 15884 15885 // A list of deployment IDs. 15886 Deployments []*string `locationName:"deployments" type:"list"` 15887 15888 // If a large amount of information is returned, an identifier is also returned. 15889 // It can be used in a subsequent list deployments call to return the next set 15890 // of deployments in the list. 15891 NextToken *string `locationName:"nextToken" type:"string"` 15892} 15893 15894// String returns the string representation 15895func (s ListDeploymentsOutput) String() string { 15896 return awsutil.Prettify(s) 15897} 15898 15899// GoString returns the string representation 15900func (s ListDeploymentsOutput) GoString() string { 15901 return s.String() 15902} 15903 15904// SetDeployments sets the Deployments field's value. 15905func (s *ListDeploymentsOutput) SetDeployments(v []*string) *ListDeploymentsOutput { 15906 s.Deployments = v 15907 return s 15908} 15909 15910// SetNextToken sets the NextToken field's value. 15911func (s *ListDeploymentsOutput) SetNextToken(v string) *ListDeploymentsOutput { 15912 s.NextToken = &v 15913 return s 15914} 15915 15916// Represents the input of a ListGitHubAccountTokenNames operation. 15917type ListGitHubAccountTokenNamesInput struct { 15918 _ struct{} `type:"structure"` 15919 15920 // An identifier returned from the previous ListGitHubAccountTokenNames call. 15921 // It can be used to return the next set of names in the list. 15922 NextToken *string `locationName:"nextToken" type:"string"` 15923} 15924 15925// String returns the string representation 15926func (s ListGitHubAccountTokenNamesInput) String() string { 15927 return awsutil.Prettify(s) 15928} 15929 15930// GoString returns the string representation 15931func (s ListGitHubAccountTokenNamesInput) GoString() string { 15932 return s.String() 15933} 15934 15935// SetNextToken sets the NextToken field's value. 15936func (s *ListGitHubAccountTokenNamesInput) SetNextToken(v string) *ListGitHubAccountTokenNamesInput { 15937 s.NextToken = &v 15938 return s 15939} 15940 15941// Represents the output of a ListGitHubAccountTokenNames operation. 15942type ListGitHubAccountTokenNamesOutput struct { 15943 _ struct{} `type:"structure"` 15944 15945 // If a large amount of information is returned, an identifier is also returned. 15946 // It can be used in a subsequent ListGitHubAccountTokenNames call to return 15947 // the next set of names in the list. 15948 NextToken *string `locationName:"nextToken" type:"string"` 15949 15950 // A list of names of connections to GitHub accounts. 15951 TokenNameList []*string `locationName:"tokenNameList" type:"list"` 15952} 15953 15954// String returns the string representation 15955func (s ListGitHubAccountTokenNamesOutput) String() string { 15956 return awsutil.Prettify(s) 15957} 15958 15959// GoString returns the string representation 15960func (s ListGitHubAccountTokenNamesOutput) GoString() string { 15961 return s.String() 15962} 15963 15964// SetNextToken sets the NextToken field's value. 15965func (s *ListGitHubAccountTokenNamesOutput) SetNextToken(v string) *ListGitHubAccountTokenNamesOutput { 15966 s.NextToken = &v 15967 return s 15968} 15969 15970// SetTokenNameList sets the TokenNameList field's value. 15971func (s *ListGitHubAccountTokenNamesOutput) SetTokenNameList(v []*string) *ListGitHubAccountTokenNamesOutput { 15972 s.TokenNameList = v 15973 return s 15974} 15975 15976// Represents the input of a ListOnPremisesInstances operation. 15977type ListOnPremisesInstancesInput struct { 15978 _ struct{} `type:"structure"` 15979 15980 // An identifier returned from the previous list on-premises instances call. 15981 // It can be used to return the next set of on-premises instances in the list. 15982 NextToken *string `locationName:"nextToken" type:"string"` 15983 15984 // The registration status of the on-premises instances: 15985 // 15986 // * Deregistered: Include deregistered on-premises instances in the resulting 15987 // list. 15988 // 15989 // * Registered: Include registered on-premises instances in the resulting 15990 // list. 15991 RegistrationStatus *string `locationName:"registrationStatus" type:"string" enum:"RegistrationStatus"` 15992 15993 // The on-premises instance tags that are used to restrict the on-premises instance 15994 // names returned. 15995 TagFilters []*TagFilter `locationName:"tagFilters" type:"list"` 15996} 15997 15998// String returns the string representation 15999func (s ListOnPremisesInstancesInput) String() string { 16000 return awsutil.Prettify(s) 16001} 16002 16003// GoString returns the string representation 16004func (s ListOnPremisesInstancesInput) GoString() string { 16005 return s.String() 16006} 16007 16008// SetNextToken sets the NextToken field's value. 16009func (s *ListOnPremisesInstancesInput) SetNextToken(v string) *ListOnPremisesInstancesInput { 16010 s.NextToken = &v 16011 return s 16012} 16013 16014// SetRegistrationStatus sets the RegistrationStatus field's value. 16015func (s *ListOnPremisesInstancesInput) SetRegistrationStatus(v string) *ListOnPremisesInstancesInput { 16016 s.RegistrationStatus = &v 16017 return s 16018} 16019 16020// SetTagFilters sets the TagFilters field's value. 16021func (s *ListOnPremisesInstancesInput) SetTagFilters(v []*TagFilter) *ListOnPremisesInstancesInput { 16022 s.TagFilters = v 16023 return s 16024} 16025 16026// Represents the output of the list on-premises instances operation. 16027type ListOnPremisesInstancesOutput struct { 16028 _ struct{} `type:"structure"` 16029 16030 // The list of matching on-premises instance names. 16031 InstanceNames []*string `locationName:"instanceNames" type:"list"` 16032 16033 // If a large amount of information is returned, an identifier is also returned. 16034 // It can be used in a subsequent list on-premises instances call to return 16035 // the next set of on-premises instances in the list. 16036 NextToken *string `locationName:"nextToken" type:"string"` 16037} 16038 16039// String returns the string representation 16040func (s ListOnPremisesInstancesOutput) String() string { 16041 return awsutil.Prettify(s) 16042} 16043 16044// GoString returns the string representation 16045func (s ListOnPremisesInstancesOutput) GoString() string { 16046 return s.String() 16047} 16048 16049// SetInstanceNames sets the InstanceNames field's value. 16050func (s *ListOnPremisesInstancesOutput) SetInstanceNames(v []*string) *ListOnPremisesInstancesOutput { 16051 s.InstanceNames = v 16052 return s 16053} 16054 16055// SetNextToken sets the NextToken field's value. 16056func (s *ListOnPremisesInstancesOutput) SetNextToken(v string) *ListOnPremisesInstancesOutput { 16057 s.NextToken = &v 16058 return s 16059} 16060 16061type ListTagsForResourceInput struct { 16062 _ struct{} `type:"structure"` 16063 16064 // An identifier returned from the previous ListTagsForResource call. It can 16065 // be used to return the next set of applications in the list. 16066 NextToken *string `type:"string"` 16067 16068 // The ARN of a CodeDeploy resource. ListTagsForResource returns all the tags 16069 // associated with the resource that is identified by the ResourceArn. 16070 // 16071 // ResourceArn is a required field 16072 ResourceArn *string `min:"1" type:"string" required:"true"` 16073} 16074 16075// String returns the string representation 16076func (s ListTagsForResourceInput) String() string { 16077 return awsutil.Prettify(s) 16078} 16079 16080// GoString returns the string representation 16081func (s ListTagsForResourceInput) GoString() string { 16082 return s.String() 16083} 16084 16085// Validate inspects the fields of the type to determine if they are valid. 16086func (s *ListTagsForResourceInput) Validate() error { 16087 invalidParams := request.ErrInvalidParams{Context: "ListTagsForResourceInput"} 16088 if s.ResourceArn == nil { 16089 invalidParams.Add(request.NewErrParamRequired("ResourceArn")) 16090 } 16091 if s.ResourceArn != nil && len(*s.ResourceArn) < 1 { 16092 invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1)) 16093 } 16094 16095 if invalidParams.Len() > 0 { 16096 return invalidParams 16097 } 16098 return nil 16099} 16100 16101// SetNextToken sets the NextToken field's value. 16102func (s *ListTagsForResourceInput) SetNextToken(v string) *ListTagsForResourceInput { 16103 s.NextToken = &v 16104 return s 16105} 16106 16107// SetResourceArn sets the ResourceArn field's value. 16108func (s *ListTagsForResourceInput) SetResourceArn(v string) *ListTagsForResourceInput { 16109 s.ResourceArn = &v 16110 return s 16111} 16112 16113type ListTagsForResourceOutput struct { 16114 _ struct{} `type:"structure"` 16115 16116 // If a large amount of information is returned, an identifier is also returned. 16117 // It can be used in a subsequent list application revisions call to return 16118 // the next set of application revisions in the list. 16119 NextToken *string `type:"string"` 16120 16121 // A list of tags returned by ListTagsForResource. The tags are associated with 16122 // the resource identified by the input ResourceArn parameter. 16123 Tags []*Tag `type:"list"` 16124} 16125 16126// String returns the string representation 16127func (s ListTagsForResourceOutput) String() string { 16128 return awsutil.Prettify(s) 16129} 16130 16131// GoString returns the string representation 16132func (s ListTagsForResourceOutput) GoString() string { 16133 return s.String() 16134} 16135 16136// SetNextToken sets the NextToken field's value. 16137func (s *ListTagsForResourceOutput) SetNextToken(v string) *ListTagsForResourceOutput { 16138 s.NextToken = &v 16139 return s 16140} 16141 16142// SetTags sets the Tags field's value. 16143func (s *ListTagsForResourceOutput) SetTags(v []*Tag) *ListTagsForResourceOutput { 16144 s.Tags = v 16145 return s 16146} 16147 16148// Information about the Elastic Load Balancing load balancer or target group 16149// used in a deployment. 16150type LoadBalancerInfo struct { 16151 _ struct{} `type:"structure"` 16152 16153 // An array that contains information about the load balancer to use for load 16154 // balancing in a deployment. In Elastic Load Balancing, load balancers are 16155 // used with Classic Load Balancers. 16156 // 16157 // Adding more than one load balancer to the array is not supported. 16158 ElbInfoList []*ELBInfo `locationName:"elbInfoList" type:"list"` 16159 16160 // An array that contains information about the target group to use for load 16161 // balancing in a deployment. In Elastic Load Balancing, target groups are used 16162 // with Application Load Balancers. 16163 // 16164 // Adding more than one target group to the array is not supported. 16165 TargetGroupInfoList []*TargetGroupInfo `locationName:"targetGroupInfoList" type:"list"` 16166 16167 // The target group pair information. This is an array of TargeGroupPairInfo 16168 // objects with a maximum size of one. 16169 TargetGroupPairInfoList []*TargetGroupPairInfo `locationName:"targetGroupPairInfoList" type:"list"` 16170} 16171 16172// String returns the string representation 16173func (s LoadBalancerInfo) String() string { 16174 return awsutil.Prettify(s) 16175} 16176 16177// GoString returns the string representation 16178func (s LoadBalancerInfo) GoString() string { 16179 return s.String() 16180} 16181 16182// SetElbInfoList sets the ElbInfoList field's value. 16183func (s *LoadBalancerInfo) SetElbInfoList(v []*ELBInfo) *LoadBalancerInfo { 16184 s.ElbInfoList = v 16185 return s 16186} 16187 16188// SetTargetGroupInfoList sets the TargetGroupInfoList field's value. 16189func (s *LoadBalancerInfo) SetTargetGroupInfoList(v []*TargetGroupInfo) *LoadBalancerInfo { 16190 s.TargetGroupInfoList = v 16191 return s 16192} 16193 16194// SetTargetGroupPairInfoList sets the TargetGroupPairInfoList field's value. 16195func (s *LoadBalancerInfo) SetTargetGroupPairInfoList(v []*TargetGroupPairInfo) *LoadBalancerInfo { 16196 s.TargetGroupPairInfoList = v 16197 return s 16198} 16199 16200// Information about minimum healthy instance. 16201type MinimumHealthyHosts struct { 16202 _ struct{} `type:"structure"` 16203 16204 // The minimum healthy instance type: 16205 // 16206 // * HOST_COUNT: The minimum number of healthy instances as an absolute value. 16207 // 16208 // * FLEET_PERCENT: The minimum number of healthy instances as a percentage 16209 // of the total number of instances in the deployment. 16210 // 16211 // In an example of nine instances, if a HOST_COUNT of six is specified, deploy 16212 // to up to three instances at a time. The deployment is successful if six or 16213 // more instances are deployed to successfully. Otherwise, the deployment fails. 16214 // If a FLEET_PERCENT of 40 is specified, deploy to up to five instances at 16215 // a time. The deployment is successful if four or more instances are deployed 16216 // to successfully. Otherwise, the deployment fails. 16217 // 16218 // In a call to the GetDeploymentConfig, CodeDeployDefault.OneAtATime returns 16219 // a minimum healthy instance type of MOST_CONCURRENCY and a value of 1. This 16220 // means a deployment to only one instance at a time. (You cannot set the type 16221 // to MOST_CONCURRENCY, only to HOST_COUNT or FLEET_PERCENT.) In addition, with 16222 // CodeDeployDefault.OneAtATime, AWS CodeDeploy attempts to ensure that all 16223 // instances but one are kept in a healthy state during the deployment. Although 16224 // this allows one instance at a time to be taken offline for a new deployment, 16225 // it also means that if the deployment to the last instance fails, the overall 16226 // deployment is still successful. 16227 // 16228 // For more information, see AWS CodeDeploy Instance Health (https://docs.aws.amazon.com/codedeploy/latest/userguide/instances-health.html) 16229 // in the AWS CodeDeploy User Guide. 16230 Type *string `locationName:"type" type:"string" enum:"MinimumHealthyHostsType"` 16231 16232 // The minimum healthy instance value. 16233 Value *int64 `locationName:"value" type:"integer"` 16234} 16235 16236// String returns the string representation 16237func (s MinimumHealthyHosts) String() string { 16238 return awsutil.Prettify(s) 16239} 16240 16241// GoString returns the string representation 16242func (s MinimumHealthyHosts) GoString() string { 16243 return s.String() 16244} 16245 16246// SetType sets the Type field's value. 16247func (s *MinimumHealthyHosts) SetType(v string) *MinimumHealthyHosts { 16248 s.Type = &v 16249 return s 16250} 16251 16252// SetValue sets the Value field's value. 16253func (s *MinimumHealthyHosts) SetValue(v int64) *MinimumHealthyHosts { 16254 s.Value = &v 16255 return s 16256} 16257 16258// Both an IAM user ARN and an IAM session ARN were included in the request. 16259// Use only one ARN type. 16260type MultipleIamArnsProvidedException struct { 16261 _ struct{} `type:"structure"` 16262 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 16263 16264 Message_ *string `locationName:"message" type:"string"` 16265} 16266 16267// String returns the string representation 16268func (s MultipleIamArnsProvidedException) String() string { 16269 return awsutil.Prettify(s) 16270} 16271 16272// GoString returns the string representation 16273func (s MultipleIamArnsProvidedException) GoString() string { 16274 return s.String() 16275} 16276 16277func newErrorMultipleIamArnsProvidedException(v protocol.ResponseMetadata) error { 16278 return &MultipleIamArnsProvidedException{ 16279 RespMetadata: v, 16280 } 16281} 16282 16283// Code returns the exception type name. 16284func (s *MultipleIamArnsProvidedException) Code() string { 16285 return "MultipleIamArnsProvidedException" 16286} 16287 16288// Message returns the exception's message. 16289func (s *MultipleIamArnsProvidedException) Message() string { 16290 if s.Message_ != nil { 16291 return *s.Message_ 16292 } 16293 return "" 16294} 16295 16296// OrigErr always returns nil, satisfies awserr.Error interface. 16297func (s *MultipleIamArnsProvidedException) OrigErr() error { 16298 return nil 16299} 16300 16301func (s *MultipleIamArnsProvidedException) Error() string { 16302 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 16303} 16304 16305// Status code returns the HTTP status code for the request's response error. 16306func (s *MultipleIamArnsProvidedException) StatusCode() int { 16307 return s.RespMetadata.StatusCode 16308} 16309 16310// RequestID returns the service's response RequestID for request. 16311func (s *MultipleIamArnsProvidedException) RequestID() string { 16312 return s.RespMetadata.RequestID 16313} 16314 16315// Information about groups of on-premises instance tags. 16316type OnPremisesTagSet struct { 16317 _ struct{} `type:"structure"` 16318 16319 // A list that contains other lists of on-premises instance tag groups. For 16320 // an instance to be included in the deployment group, it must be identified 16321 // by all of the tag groups in the list. 16322 OnPremisesTagSetList [][]*TagFilter `locationName:"onPremisesTagSetList" type:"list"` 16323} 16324 16325// String returns the string representation 16326func (s OnPremisesTagSet) String() string { 16327 return awsutil.Prettify(s) 16328} 16329 16330// GoString returns the string representation 16331func (s OnPremisesTagSet) GoString() string { 16332 return s.String() 16333} 16334 16335// SetOnPremisesTagSetList sets the OnPremisesTagSetList field's value. 16336func (s *OnPremisesTagSet) SetOnPremisesTagSetList(v [][]*TagFilter) *OnPremisesTagSet { 16337 s.OnPremisesTagSetList = v 16338 return s 16339} 16340 16341// The API used does not support the deployment. 16342type OperationNotSupportedException struct { 16343 _ struct{} `type:"structure"` 16344 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 16345 16346 Message_ *string `locationName:"message" type:"string"` 16347} 16348 16349// String returns the string representation 16350func (s OperationNotSupportedException) String() string { 16351 return awsutil.Prettify(s) 16352} 16353 16354// GoString returns the string representation 16355func (s OperationNotSupportedException) GoString() string { 16356 return s.String() 16357} 16358 16359func newErrorOperationNotSupportedException(v protocol.ResponseMetadata) error { 16360 return &OperationNotSupportedException{ 16361 RespMetadata: v, 16362 } 16363} 16364 16365// Code returns the exception type name. 16366func (s *OperationNotSupportedException) Code() string { 16367 return "OperationNotSupportedException" 16368} 16369 16370// Message returns the exception's message. 16371func (s *OperationNotSupportedException) Message() string { 16372 if s.Message_ != nil { 16373 return *s.Message_ 16374 } 16375 return "" 16376} 16377 16378// OrigErr always returns nil, satisfies awserr.Error interface. 16379func (s *OperationNotSupportedException) OrigErr() error { 16380 return nil 16381} 16382 16383func (s *OperationNotSupportedException) Error() string { 16384 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 16385} 16386 16387// Status code returns the HTTP status code for the request's response error. 16388func (s *OperationNotSupportedException) StatusCode() int { 16389 return s.RespMetadata.StatusCode 16390} 16391 16392// RequestID returns the service's response RequestID for request. 16393func (s *OperationNotSupportedException) RequestID() string { 16394 return s.RespMetadata.RequestID 16395} 16396 16397type PutLifecycleEventHookExecutionStatusInput struct { 16398 _ struct{} `type:"structure"` 16399 16400 // The unique ID of a deployment. Pass this ID to a Lambda function that validates 16401 // a deployment lifecycle event. 16402 DeploymentId *string `locationName:"deploymentId" type:"string"` 16403 16404 // The execution ID of a deployment's lifecycle hook. A deployment lifecycle 16405 // hook is specified in the hooks section of the AppSpec file. 16406 LifecycleEventHookExecutionId *string `locationName:"lifecycleEventHookExecutionId" type:"string"` 16407 16408 // The result of a Lambda function that validates a deployment lifecycle event 16409 // (Succeeded or Failed). 16410 Status *string `locationName:"status" type:"string" enum:"LifecycleEventStatus"` 16411} 16412 16413// String returns the string representation 16414func (s PutLifecycleEventHookExecutionStatusInput) String() string { 16415 return awsutil.Prettify(s) 16416} 16417 16418// GoString returns the string representation 16419func (s PutLifecycleEventHookExecutionStatusInput) GoString() string { 16420 return s.String() 16421} 16422 16423// SetDeploymentId sets the DeploymentId field's value. 16424func (s *PutLifecycleEventHookExecutionStatusInput) SetDeploymentId(v string) *PutLifecycleEventHookExecutionStatusInput { 16425 s.DeploymentId = &v 16426 return s 16427} 16428 16429// SetLifecycleEventHookExecutionId sets the LifecycleEventHookExecutionId field's value. 16430func (s *PutLifecycleEventHookExecutionStatusInput) SetLifecycleEventHookExecutionId(v string) *PutLifecycleEventHookExecutionStatusInput { 16431 s.LifecycleEventHookExecutionId = &v 16432 return s 16433} 16434 16435// SetStatus sets the Status field's value. 16436func (s *PutLifecycleEventHookExecutionStatusInput) SetStatus(v string) *PutLifecycleEventHookExecutionStatusInput { 16437 s.Status = &v 16438 return s 16439} 16440 16441type PutLifecycleEventHookExecutionStatusOutput struct { 16442 _ struct{} `type:"structure"` 16443 16444 // The execution ID of the lifecycle event hook. A hook is specified in the 16445 // hooks section of the deployment's AppSpec file. 16446 LifecycleEventHookExecutionId *string `locationName:"lifecycleEventHookExecutionId" type:"string"` 16447} 16448 16449// String returns the string representation 16450func (s PutLifecycleEventHookExecutionStatusOutput) String() string { 16451 return awsutil.Prettify(s) 16452} 16453 16454// GoString returns the string representation 16455func (s PutLifecycleEventHookExecutionStatusOutput) GoString() string { 16456 return s.String() 16457} 16458 16459// SetLifecycleEventHookExecutionId sets the LifecycleEventHookExecutionId field's value. 16460func (s *PutLifecycleEventHookExecutionStatusOutput) SetLifecycleEventHookExecutionId(v string) *PutLifecycleEventHookExecutionStatusOutput { 16461 s.LifecycleEventHookExecutionId = &v 16462 return s 16463} 16464 16465// A revision for an AWS Lambda deployment that is a YAML-formatted or JSON-formatted 16466// string. For AWS Lambda deployments, the revision is the same as the AppSpec 16467// file. 16468// 16469// Deprecated: RawString and String revision type are deprecated, use AppSpecContent type instead. 16470type RawString struct { 16471 _ struct{} `deprecated:"true" type:"structure"` 16472 16473 // The YAML-formatted or JSON-formatted revision string. It includes information 16474 // about which Lambda function to update and optional Lambda functions that 16475 // validate deployment lifecycle events. 16476 Content *string `locationName:"content" type:"string"` 16477 16478 // The SHA256 hash value of the revision content. 16479 Sha256 *string `locationName:"sha256" type:"string"` 16480} 16481 16482// String returns the string representation 16483func (s RawString) String() string { 16484 return awsutil.Prettify(s) 16485} 16486 16487// GoString returns the string representation 16488func (s RawString) GoString() string { 16489 return s.String() 16490} 16491 16492// SetContent sets the Content field's value. 16493func (s *RawString) SetContent(v string) *RawString { 16494 s.Content = &v 16495 return s 16496} 16497 16498// SetSha256 sets the Sha256 field's value. 16499func (s *RawString) SetSha256(v string) *RawString { 16500 s.Sha256 = &v 16501 return s 16502} 16503 16504// Represents the input of a RegisterApplicationRevision operation. 16505type RegisterApplicationRevisionInput struct { 16506 _ struct{} `type:"structure"` 16507 16508 // The name of an AWS CodeDeploy application associated with the IAM user or 16509 // AWS account. 16510 // 16511 // ApplicationName is a required field 16512 ApplicationName *string `locationName:"applicationName" min:"1" type:"string" required:"true"` 16513 16514 // A comment about the revision. 16515 Description *string `locationName:"description" type:"string"` 16516 16517 // Information about the application revision to register, including type and 16518 // location. 16519 // 16520 // Revision is a required field 16521 Revision *RevisionLocation `locationName:"revision" type:"structure" required:"true"` 16522} 16523 16524// String returns the string representation 16525func (s RegisterApplicationRevisionInput) String() string { 16526 return awsutil.Prettify(s) 16527} 16528 16529// GoString returns the string representation 16530func (s RegisterApplicationRevisionInput) GoString() string { 16531 return s.String() 16532} 16533 16534// Validate inspects the fields of the type to determine if they are valid. 16535func (s *RegisterApplicationRevisionInput) Validate() error { 16536 invalidParams := request.ErrInvalidParams{Context: "RegisterApplicationRevisionInput"} 16537 if s.ApplicationName == nil { 16538 invalidParams.Add(request.NewErrParamRequired("ApplicationName")) 16539 } 16540 if s.ApplicationName != nil && len(*s.ApplicationName) < 1 { 16541 invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1)) 16542 } 16543 if s.Revision == nil { 16544 invalidParams.Add(request.NewErrParamRequired("Revision")) 16545 } 16546 16547 if invalidParams.Len() > 0 { 16548 return invalidParams 16549 } 16550 return nil 16551} 16552 16553// SetApplicationName sets the ApplicationName field's value. 16554func (s *RegisterApplicationRevisionInput) SetApplicationName(v string) *RegisterApplicationRevisionInput { 16555 s.ApplicationName = &v 16556 return s 16557} 16558 16559// SetDescription sets the Description field's value. 16560func (s *RegisterApplicationRevisionInput) SetDescription(v string) *RegisterApplicationRevisionInput { 16561 s.Description = &v 16562 return s 16563} 16564 16565// SetRevision sets the Revision field's value. 16566func (s *RegisterApplicationRevisionInput) SetRevision(v *RevisionLocation) *RegisterApplicationRevisionInput { 16567 s.Revision = v 16568 return s 16569} 16570 16571type RegisterApplicationRevisionOutput struct { 16572 _ struct{} `type:"structure"` 16573} 16574 16575// String returns the string representation 16576func (s RegisterApplicationRevisionOutput) String() string { 16577 return awsutil.Prettify(s) 16578} 16579 16580// GoString returns the string representation 16581func (s RegisterApplicationRevisionOutput) GoString() string { 16582 return s.String() 16583} 16584 16585// Represents the input of the register on-premises instance operation. 16586type RegisterOnPremisesInstanceInput struct { 16587 _ struct{} `type:"structure"` 16588 16589 // The ARN of the IAM session to associate with the on-premises instance. 16590 IamSessionArn *string `locationName:"iamSessionArn" type:"string"` 16591 16592 // The ARN of the IAM user to associate with the on-premises instance. 16593 IamUserArn *string `locationName:"iamUserArn" type:"string"` 16594 16595 // The name of the on-premises instance to register. 16596 // 16597 // InstanceName is a required field 16598 InstanceName *string `locationName:"instanceName" type:"string" required:"true"` 16599} 16600 16601// String returns the string representation 16602func (s RegisterOnPremisesInstanceInput) String() string { 16603 return awsutil.Prettify(s) 16604} 16605 16606// GoString returns the string representation 16607func (s RegisterOnPremisesInstanceInput) GoString() string { 16608 return s.String() 16609} 16610 16611// Validate inspects the fields of the type to determine if they are valid. 16612func (s *RegisterOnPremisesInstanceInput) Validate() error { 16613 invalidParams := request.ErrInvalidParams{Context: "RegisterOnPremisesInstanceInput"} 16614 if s.InstanceName == nil { 16615 invalidParams.Add(request.NewErrParamRequired("InstanceName")) 16616 } 16617 16618 if invalidParams.Len() > 0 { 16619 return invalidParams 16620 } 16621 return nil 16622} 16623 16624// SetIamSessionArn sets the IamSessionArn field's value. 16625func (s *RegisterOnPremisesInstanceInput) SetIamSessionArn(v string) *RegisterOnPremisesInstanceInput { 16626 s.IamSessionArn = &v 16627 return s 16628} 16629 16630// SetIamUserArn sets the IamUserArn field's value. 16631func (s *RegisterOnPremisesInstanceInput) SetIamUserArn(v string) *RegisterOnPremisesInstanceInput { 16632 s.IamUserArn = &v 16633 return s 16634} 16635 16636// SetInstanceName sets the InstanceName field's value. 16637func (s *RegisterOnPremisesInstanceInput) SetInstanceName(v string) *RegisterOnPremisesInstanceInput { 16638 s.InstanceName = &v 16639 return s 16640} 16641 16642type RegisterOnPremisesInstanceOutput struct { 16643 _ struct{} `type:"structure"` 16644} 16645 16646// String returns the string representation 16647func (s RegisterOnPremisesInstanceOutput) String() string { 16648 return awsutil.Prettify(s) 16649} 16650 16651// GoString returns the string representation 16652func (s RegisterOnPremisesInstanceOutput) GoString() string { 16653 return s.String() 16654} 16655 16656// Represents the input of a RemoveTagsFromOnPremisesInstances operation. 16657type RemoveTagsFromOnPremisesInstancesInput struct { 16658 _ struct{} `type:"structure"` 16659 16660 // The names of the on-premises instances from which to remove tags. 16661 // 16662 // InstanceNames is a required field 16663 InstanceNames []*string `locationName:"instanceNames" type:"list" required:"true"` 16664 16665 // The tag key-value pairs to remove from the on-premises instances. 16666 // 16667 // Tags is a required field 16668 Tags []*Tag `locationName:"tags" type:"list" required:"true"` 16669} 16670 16671// String returns the string representation 16672func (s RemoveTagsFromOnPremisesInstancesInput) String() string { 16673 return awsutil.Prettify(s) 16674} 16675 16676// GoString returns the string representation 16677func (s RemoveTagsFromOnPremisesInstancesInput) GoString() string { 16678 return s.String() 16679} 16680 16681// Validate inspects the fields of the type to determine if they are valid. 16682func (s *RemoveTagsFromOnPremisesInstancesInput) Validate() error { 16683 invalidParams := request.ErrInvalidParams{Context: "RemoveTagsFromOnPremisesInstancesInput"} 16684 if s.InstanceNames == nil { 16685 invalidParams.Add(request.NewErrParamRequired("InstanceNames")) 16686 } 16687 if s.Tags == nil { 16688 invalidParams.Add(request.NewErrParamRequired("Tags")) 16689 } 16690 16691 if invalidParams.Len() > 0 { 16692 return invalidParams 16693 } 16694 return nil 16695} 16696 16697// SetInstanceNames sets the InstanceNames field's value. 16698func (s *RemoveTagsFromOnPremisesInstancesInput) SetInstanceNames(v []*string) *RemoveTagsFromOnPremisesInstancesInput { 16699 s.InstanceNames = v 16700 return s 16701} 16702 16703// SetTags sets the Tags field's value. 16704func (s *RemoveTagsFromOnPremisesInstancesInput) SetTags(v []*Tag) *RemoveTagsFromOnPremisesInstancesInput { 16705 s.Tags = v 16706 return s 16707} 16708 16709type RemoveTagsFromOnPremisesInstancesOutput struct { 16710 _ struct{} `type:"structure"` 16711} 16712 16713// String returns the string representation 16714func (s RemoveTagsFromOnPremisesInstancesOutput) String() string { 16715 return awsutil.Prettify(s) 16716} 16717 16718// GoString returns the string representation 16719func (s RemoveTagsFromOnPremisesInstancesOutput) GoString() string { 16720 return s.String() 16721} 16722 16723// The ARN of a resource is required, but was not found. 16724type ResourceArnRequiredException struct { 16725 _ struct{} `type:"structure"` 16726 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 16727 16728 Message_ *string `locationName:"message" type:"string"` 16729} 16730 16731// String returns the string representation 16732func (s ResourceArnRequiredException) String() string { 16733 return awsutil.Prettify(s) 16734} 16735 16736// GoString returns the string representation 16737func (s ResourceArnRequiredException) GoString() string { 16738 return s.String() 16739} 16740 16741func newErrorResourceArnRequiredException(v protocol.ResponseMetadata) error { 16742 return &ResourceArnRequiredException{ 16743 RespMetadata: v, 16744 } 16745} 16746 16747// Code returns the exception type name. 16748func (s *ResourceArnRequiredException) Code() string { 16749 return "ResourceArnRequiredException" 16750} 16751 16752// Message returns the exception's message. 16753func (s *ResourceArnRequiredException) Message() string { 16754 if s.Message_ != nil { 16755 return *s.Message_ 16756 } 16757 return "" 16758} 16759 16760// OrigErr always returns nil, satisfies awserr.Error interface. 16761func (s *ResourceArnRequiredException) OrigErr() error { 16762 return nil 16763} 16764 16765func (s *ResourceArnRequiredException) Error() string { 16766 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 16767} 16768 16769// Status code returns the HTTP status code for the request's response error. 16770func (s *ResourceArnRequiredException) StatusCode() int { 16771 return s.RespMetadata.StatusCode 16772} 16773 16774// RequestID returns the service's response RequestID for request. 16775func (s *ResourceArnRequiredException) RequestID() string { 16776 return s.RespMetadata.RequestID 16777} 16778 16779// The specified resource could not be validated. 16780type ResourceValidationException struct { 16781 _ struct{} `type:"structure"` 16782 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 16783 16784 Message_ *string `locationName:"message" type:"string"` 16785} 16786 16787// String returns the string representation 16788func (s ResourceValidationException) String() string { 16789 return awsutil.Prettify(s) 16790} 16791 16792// GoString returns the string representation 16793func (s ResourceValidationException) GoString() string { 16794 return s.String() 16795} 16796 16797func newErrorResourceValidationException(v protocol.ResponseMetadata) error { 16798 return &ResourceValidationException{ 16799 RespMetadata: v, 16800 } 16801} 16802 16803// Code returns the exception type name. 16804func (s *ResourceValidationException) Code() string { 16805 return "ResourceValidationException" 16806} 16807 16808// Message returns the exception's message. 16809func (s *ResourceValidationException) Message() string { 16810 if s.Message_ != nil { 16811 return *s.Message_ 16812 } 16813 return "" 16814} 16815 16816// OrigErr always returns nil, satisfies awserr.Error interface. 16817func (s *ResourceValidationException) OrigErr() error { 16818 return nil 16819} 16820 16821func (s *ResourceValidationException) Error() string { 16822 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 16823} 16824 16825// Status code returns the HTTP status code for the request's response error. 16826func (s *ResourceValidationException) StatusCode() int { 16827 return s.RespMetadata.StatusCode 16828} 16829 16830// RequestID returns the service's response RequestID for request. 16831func (s *ResourceValidationException) RequestID() string { 16832 return s.RespMetadata.RequestID 16833} 16834 16835// The named revision does not exist with the IAM user or AWS account. 16836type RevisionDoesNotExistException struct { 16837 _ struct{} `type:"structure"` 16838 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 16839 16840 Message_ *string `locationName:"message" type:"string"` 16841} 16842 16843// String returns the string representation 16844func (s RevisionDoesNotExistException) String() string { 16845 return awsutil.Prettify(s) 16846} 16847 16848// GoString returns the string representation 16849func (s RevisionDoesNotExistException) GoString() string { 16850 return s.String() 16851} 16852 16853func newErrorRevisionDoesNotExistException(v protocol.ResponseMetadata) error { 16854 return &RevisionDoesNotExistException{ 16855 RespMetadata: v, 16856 } 16857} 16858 16859// Code returns the exception type name. 16860func (s *RevisionDoesNotExistException) Code() string { 16861 return "RevisionDoesNotExistException" 16862} 16863 16864// Message returns the exception's message. 16865func (s *RevisionDoesNotExistException) Message() string { 16866 if s.Message_ != nil { 16867 return *s.Message_ 16868 } 16869 return "" 16870} 16871 16872// OrigErr always returns nil, satisfies awserr.Error interface. 16873func (s *RevisionDoesNotExistException) OrigErr() error { 16874 return nil 16875} 16876 16877func (s *RevisionDoesNotExistException) Error() string { 16878 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 16879} 16880 16881// Status code returns the HTTP status code for the request's response error. 16882func (s *RevisionDoesNotExistException) StatusCode() int { 16883 return s.RespMetadata.StatusCode 16884} 16885 16886// RequestID returns the service's response RequestID for request. 16887func (s *RevisionDoesNotExistException) RequestID() string { 16888 return s.RespMetadata.RequestID 16889} 16890 16891// Information about an application revision. 16892type RevisionInfo struct { 16893 _ struct{} `type:"structure"` 16894 16895 // Information about an application revision, including usage details and associated 16896 // deployment groups. 16897 GenericRevisionInfo *GenericRevisionInfo `locationName:"genericRevisionInfo" type:"structure"` 16898 16899 // Information about the location and type of an application revision. 16900 RevisionLocation *RevisionLocation `locationName:"revisionLocation" type:"structure"` 16901} 16902 16903// String returns the string representation 16904func (s RevisionInfo) String() string { 16905 return awsutil.Prettify(s) 16906} 16907 16908// GoString returns the string representation 16909func (s RevisionInfo) GoString() string { 16910 return s.String() 16911} 16912 16913// SetGenericRevisionInfo sets the GenericRevisionInfo field's value. 16914func (s *RevisionInfo) SetGenericRevisionInfo(v *GenericRevisionInfo) *RevisionInfo { 16915 s.GenericRevisionInfo = v 16916 return s 16917} 16918 16919// SetRevisionLocation sets the RevisionLocation field's value. 16920func (s *RevisionInfo) SetRevisionLocation(v *RevisionLocation) *RevisionInfo { 16921 s.RevisionLocation = v 16922 return s 16923} 16924 16925// Information about the location of an application revision. 16926type RevisionLocation struct { 16927 _ struct{} `type:"structure"` 16928 16929 // The content of an AppSpec file for an AWS Lambda or Amazon ECS deployment. 16930 // The content is formatted as JSON or YAML and stored as a RawString. 16931 AppSpecContent *AppSpecContent `locationName:"appSpecContent" type:"structure"` 16932 16933 // Information about the location of application artifacts stored in GitHub. 16934 GitHubLocation *GitHubLocation `locationName:"gitHubLocation" type:"structure"` 16935 16936 // The type of application revision: 16937 // 16938 // * S3: An application revision stored in Amazon S3. 16939 // 16940 // * GitHub: An application revision stored in GitHub (EC2/On-premises deployments 16941 // only). 16942 // 16943 // * String: A YAML-formatted or JSON-formatted string (AWS Lambda deployments 16944 // only). 16945 // 16946 // * AppSpecContent: An AppSpecContent object that contains the contents 16947 // of an AppSpec file for an AWS Lambda or Amazon ECS deployment. The content 16948 // is formatted as JSON or YAML stored as a RawString. 16949 RevisionType *string `locationName:"revisionType" type:"string" enum:"RevisionLocationType"` 16950 16951 // Information about the location of a revision stored in Amazon S3. 16952 S3Location *S3Location `locationName:"s3Location" type:"structure"` 16953 16954 // Information about the location of an AWS Lambda deployment revision stored 16955 // as a RawString. 16956 String_ *RawString `locationName:"string" deprecated:"true" type:"structure"` 16957} 16958 16959// String returns the string representation 16960func (s RevisionLocation) String() string { 16961 return awsutil.Prettify(s) 16962} 16963 16964// GoString returns the string representation 16965func (s RevisionLocation) GoString() string { 16966 return s.String() 16967} 16968 16969// SetAppSpecContent sets the AppSpecContent field's value. 16970func (s *RevisionLocation) SetAppSpecContent(v *AppSpecContent) *RevisionLocation { 16971 s.AppSpecContent = v 16972 return s 16973} 16974 16975// SetGitHubLocation sets the GitHubLocation field's value. 16976func (s *RevisionLocation) SetGitHubLocation(v *GitHubLocation) *RevisionLocation { 16977 s.GitHubLocation = v 16978 return s 16979} 16980 16981// SetRevisionType sets the RevisionType field's value. 16982func (s *RevisionLocation) SetRevisionType(v string) *RevisionLocation { 16983 s.RevisionType = &v 16984 return s 16985} 16986 16987// SetS3Location sets the S3Location field's value. 16988func (s *RevisionLocation) SetS3Location(v *S3Location) *RevisionLocation { 16989 s.S3Location = v 16990 return s 16991} 16992 16993// SetString_ sets the String_ field's value. 16994func (s *RevisionLocation) SetString_(v *RawString) *RevisionLocation { 16995 s.String_ = v 16996 return s 16997} 16998 16999// The revision ID was not specified. 17000type RevisionRequiredException struct { 17001 _ struct{} `type:"structure"` 17002 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 17003 17004 Message_ *string `locationName:"message" type:"string"` 17005} 17006 17007// String returns the string representation 17008func (s RevisionRequiredException) String() string { 17009 return awsutil.Prettify(s) 17010} 17011 17012// GoString returns the string representation 17013func (s RevisionRequiredException) GoString() string { 17014 return s.String() 17015} 17016 17017func newErrorRevisionRequiredException(v protocol.ResponseMetadata) error { 17018 return &RevisionRequiredException{ 17019 RespMetadata: v, 17020 } 17021} 17022 17023// Code returns the exception type name. 17024func (s *RevisionRequiredException) Code() string { 17025 return "RevisionRequiredException" 17026} 17027 17028// Message returns the exception's message. 17029func (s *RevisionRequiredException) Message() string { 17030 if s.Message_ != nil { 17031 return *s.Message_ 17032 } 17033 return "" 17034} 17035 17036// OrigErr always returns nil, satisfies awserr.Error interface. 17037func (s *RevisionRequiredException) OrigErr() error { 17038 return nil 17039} 17040 17041func (s *RevisionRequiredException) Error() string { 17042 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 17043} 17044 17045// Status code returns the HTTP status code for the request's response error. 17046func (s *RevisionRequiredException) StatusCode() int { 17047 return s.RespMetadata.StatusCode 17048} 17049 17050// RequestID returns the service's response RequestID for request. 17051func (s *RevisionRequiredException) RequestID() string { 17052 return s.RespMetadata.RequestID 17053} 17054 17055// The role ID was not specified. 17056type RoleRequiredException struct { 17057 _ struct{} `type:"structure"` 17058 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 17059 17060 Message_ *string `locationName:"message" type:"string"` 17061} 17062 17063// String returns the string representation 17064func (s RoleRequiredException) String() string { 17065 return awsutil.Prettify(s) 17066} 17067 17068// GoString returns the string representation 17069func (s RoleRequiredException) GoString() string { 17070 return s.String() 17071} 17072 17073func newErrorRoleRequiredException(v protocol.ResponseMetadata) error { 17074 return &RoleRequiredException{ 17075 RespMetadata: v, 17076 } 17077} 17078 17079// Code returns the exception type name. 17080func (s *RoleRequiredException) Code() string { 17081 return "RoleRequiredException" 17082} 17083 17084// Message returns the exception's message. 17085func (s *RoleRequiredException) Message() string { 17086 if s.Message_ != nil { 17087 return *s.Message_ 17088 } 17089 return "" 17090} 17091 17092// OrigErr always returns nil, satisfies awserr.Error interface. 17093func (s *RoleRequiredException) OrigErr() error { 17094 return nil 17095} 17096 17097func (s *RoleRequiredException) Error() string { 17098 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 17099} 17100 17101// Status code returns the HTTP status code for the request's response error. 17102func (s *RoleRequiredException) StatusCode() int { 17103 return s.RespMetadata.StatusCode 17104} 17105 17106// RequestID returns the service's response RequestID for request. 17107func (s *RoleRequiredException) RequestID() string { 17108 return s.RespMetadata.RequestID 17109} 17110 17111// Information about a deployment rollback. 17112type RollbackInfo struct { 17113 _ struct{} `type:"structure"` 17114 17115 // The ID of the deployment rollback. 17116 RollbackDeploymentId *string `locationName:"rollbackDeploymentId" type:"string"` 17117 17118 // Information that describes the status of a deployment rollback (for example, 17119 // whether the deployment can't be rolled back, is in progress, failed, or succeeded). 17120 RollbackMessage *string `locationName:"rollbackMessage" type:"string"` 17121 17122 // The deployment ID of the deployment that was underway and triggered a rollback 17123 // deployment because it failed or was stopped. 17124 RollbackTriggeringDeploymentId *string `locationName:"rollbackTriggeringDeploymentId" type:"string"` 17125} 17126 17127// String returns the string representation 17128func (s RollbackInfo) String() string { 17129 return awsutil.Prettify(s) 17130} 17131 17132// GoString returns the string representation 17133func (s RollbackInfo) GoString() string { 17134 return s.String() 17135} 17136 17137// SetRollbackDeploymentId sets the RollbackDeploymentId field's value. 17138func (s *RollbackInfo) SetRollbackDeploymentId(v string) *RollbackInfo { 17139 s.RollbackDeploymentId = &v 17140 return s 17141} 17142 17143// SetRollbackMessage sets the RollbackMessage field's value. 17144func (s *RollbackInfo) SetRollbackMessage(v string) *RollbackInfo { 17145 s.RollbackMessage = &v 17146 return s 17147} 17148 17149// SetRollbackTriggeringDeploymentId sets the RollbackTriggeringDeploymentId field's value. 17150func (s *RollbackInfo) SetRollbackTriggeringDeploymentId(v string) *RollbackInfo { 17151 s.RollbackTriggeringDeploymentId = &v 17152 return s 17153} 17154 17155// Information about the location of application artifacts stored in Amazon 17156// S3. 17157type S3Location struct { 17158 _ struct{} `type:"structure"` 17159 17160 // The name of the Amazon S3 bucket where the application revision is stored. 17161 Bucket *string `locationName:"bucket" type:"string"` 17162 17163 // The file type of the application revision. Must be one of the following: 17164 // 17165 // * tar: A tar archive file. 17166 // 17167 // * tgz: A compressed tar archive file. 17168 // 17169 // * zip: A zip archive file. 17170 BundleType *string `locationName:"bundleType" type:"string" enum:"BundleType"` 17171 17172 // The ETag of the Amazon S3 object that represents the bundled artifacts for 17173 // the application revision. 17174 // 17175 // If the ETag is not specified as an input parameter, ETag validation of the 17176 // object is skipped. 17177 ETag *string `locationName:"eTag" type:"string"` 17178 17179 // The name of the Amazon S3 object that represents the bundled artifacts for 17180 // the application revision. 17181 Key *string `locationName:"key" type:"string"` 17182 17183 // A specific version of the Amazon S3 object that represents the bundled artifacts 17184 // for the application revision. 17185 // 17186 // If the version is not specified, the system uses the most recent version 17187 // by default. 17188 Version *string `locationName:"version" type:"string"` 17189} 17190 17191// String returns the string representation 17192func (s S3Location) String() string { 17193 return awsutil.Prettify(s) 17194} 17195 17196// GoString returns the string representation 17197func (s S3Location) GoString() string { 17198 return s.String() 17199} 17200 17201// SetBucket sets the Bucket field's value. 17202func (s *S3Location) SetBucket(v string) *S3Location { 17203 s.Bucket = &v 17204 return s 17205} 17206 17207// SetBundleType sets the BundleType field's value. 17208func (s *S3Location) SetBundleType(v string) *S3Location { 17209 s.BundleType = &v 17210 return s 17211} 17212 17213// SetETag sets the ETag field's value. 17214func (s *S3Location) SetETag(v string) *S3Location { 17215 s.ETag = &v 17216 return s 17217} 17218 17219// SetKey sets the Key field's value. 17220func (s *S3Location) SetKey(v string) *S3Location { 17221 s.Key = &v 17222 return s 17223} 17224 17225// SetVersion sets the Version field's value. 17226func (s *S3Location) SetVersion(v string) *S3Location { 17227 s.Version = &v 17228 return s 17229} 17230 17231type SkipWaitTimeForInstanceTerminationInput struct { 17232 _ struct{} `type:"structure"` 17233 17234 // The unique ID of a blue/green deployment for which you want to skip the instance 17235 // termination wait time. 17236 DeploymentId *string `locationName:"deploymentId" type:"string"` 17237} 17238 17239// String returns the string representation 17240func (s SkipWaitTimeForInstanceTerminationInput) String() string { 17241 return awsutil.Prettify(s) 17242} 17243 17244// GoString returns the string representation 17245func (s SkipWaitTimeForInstanceTerminationInput) GoString() string { 17246 return s.String() 17247} 17248 17249// SetDeploymentId sets the DeploymentId field's value. 17250func (s *SkipWaitTimeForInstanceTerminationInput) SetDeploymentId(v string) *SkipWaitTimeForInstanceTerminationInput { 17251 s.DeploymentId = &v 17252 return s 17253} 17254 17255type SkipWaitTimeForInstanceTerminationOutput struct { 17256 _ struct{} `type:"structure"` 17257} 17258 17259// String returns the string representation 17260func (s SkipWaitTimeForInstanceTerminationOutput) String() string { 17261 return awsutil.Prettify(s) 17262} 17263 17264// GoString returns the string representation 17265func (s SkipWaitTimeForInstanceTerminationOutput) GoString() string { 17266 return s.String() 17267} 17268 17269// Represents the input of a StopDeployment operation. 17270type StopDeploymentInput struct { 17271 _ struct{} `type:"structure"` 17272 17273 // Indicates, when a deployment is stopped, whether instances that have been 17274 // updated should be rolled back to the previous version of the application 17275 // revision. 17276 AutoRollbackEnabled *bool `locationName:"autoRollbackEnabled" type:"boolean"` 17277 17278 // The unique ID of a deployment. 17279 // 17280 // DeploymentId is a required field 17281 DeploymentId *string `locationName:"deploymentId" type:"string" required:"true"` 17282} 17283 17284// String returns the string representation 17285func (s StopDeploymentInput) String() string { 17286 return awsutil.Prettify(s) 17287} 17288 17289// GoString returns the string representation 17290func (s StopDeploymentInput) GoString() string { 17291 return s.String() 17292} 17293 17294// Validate inspects the fields of the type to determine if they are valid. 17295func (s *StopDeploymentInput) Validate() error { 17296 invalidParams := request.ErrInvalidParams{Context: "StopDeploymentInput"} 17297 if s.DeploymentId == nil { 17298 invalidParams.Add(request.NewErrParamRequired("DeploymentId")) 17299 } 17300 17301 if invalidParams.Len() > 0 { 17302 return invalidParams 17303 } 17304 return nil 17305} 17306 17307// SetAutoRollbackEnabled sets the AutoRollbackEnabled field's value. 17308func (s *StopDeploymentInput) SetAutoRollbackEnabled(v bool) *StopDeploymentInput { 17309 s.AutoRollbackEnabled = &v 17310 return s 17311} 17312 17313// SetDeploymentId sets the DeploymentId field's value. 17314func (s *StopDeploymentInput) SetDeploymentId(v string) *StopDeploymentInput { 17315 s.DeploymentId = &v 17316 return s 17317} 17318 17319// Represents the output of a StopDeployment operation. 17320type StopDeploymentOutput struct { 17321 _ struct{} `type:"structure"` 17322 17323 // The status of the stop deployment operation: 17324 // 17325 // * Pending: The stop operation is pending. 17326 // 17327 // * Succeeded: The stop operation was successful. 17328 Status *string `locationName:"status" type:"string" enum:"StopStatus"` 17329 17330 // An accompanying status message. 17331 StatusMessage *string `locationName:"statusMessage" type:"string"` 17332} 17333 17334// String returns the string representation 17335func (s StopDeploymentOutput) String() string { 17336 return awsutil.Prettify(s) 17337} 17338 17339// GoString returns the string representation 17340func (s StopDeploymentOutput) GoString() string { 17341 return s.String() 17342} 17343 17344// SetStatus sets the Status field's value. 17345func (s *StopDeploymentOutput) SetStatus(v string) *StopDeploymentOutput { 17346 s.Status = &v 17347 return s 17348} 17349 17350// SetStatusMessage sets the StatusMessage field's value. 17351func (s *StopDeploymentOutput) SetStatusMessage(v string) *StopDeploymentOutput { 17352 s.StatusMessage = &v 17353 return s 17354} 17355 17356// Information about a tag. 17357type Tag struct { 17358 _ struct{} `type:"structure"` 17359 17360 // The tag's key. 17361 Key *string `type:"string"` 17362 17363 // The tag's value. 17364 Value *string `type:"string"` 17365} 17366 17367// String returns the string representation 17368func (s Tag) String() string { 17369 return awsutil.Prettify(s) 17370} 17371 17372// GoString returns the string representation 17373func (s Tag) GoString() string { 17374 return s.String() 17375} 17376 17377// SetKey sets the Key field's value. 17378func (s *Tag) SetKey(v string) *Tag { 17379 s.Key = &v 17380 return s 17381} 17382 17383// SetValue sets the Value field's value. 17384func (s *Tag) SetValue(v string) *Tag { 17385 s.Value = &v 17386 return s 17387} 17388 17389// Information about an on-premises instance tag filter. 17390type TagFilter struct { 17391 _ struct{} `type:"structure"` 17392 17393 // The on-premises instance tag filter key. 17394 Key *string `type:"string"` 17395 17396 // The on-premises instance tag filter type: 17397 // 17398 // * KEY_ONLY: Key only. 17399 // 17400 // * VALUE_ONLY: Value only. 17401 // 17402 // * KEY_AND_VALUE: Key and value. 17403 Type *string `type:"string" enum:"TagFilterType"` 17404 17405 // The on-premises instance tag filter value. 17406 Value *string `type:"string"` 17407} 17408 17409// String returns the string representation 17410func (s TagFilter) String() string { 17411 return awsutil.Prettify(s) 17412} 17413 17414// GoString returns the string representation 17415func (s TagFilter) GoString() string { 17416 return s.String() 17417} 17418 17419// SetKey sets the Key field's value. 17420func (s *TagFilter) SetKey(v string) *TagFilter { 17421 s.Key = &v 17422 return s 17423} 17424 17425// SetType sets the Type field's value. 17426func (s *TagFilter) SetType(v string) *TagFilter { 17427 s.Type = &v 17428 return s 17429} 17430 17431// SetValue sets the Value field's value. 17432func (s *TagFilter) SetValue(v string) *TagFilter { 17433 s.Value = &v 17434 return s 17435} 17436 17437// The maximum allowed number of tags was exceeded. 17438type TagLimitExceededException struct { 17439 _ struct{} `type:"structure"` 17440 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 17441 17442 Message_ *string `locationName:"message" type:"string"` 17443} 17444 17445// String returns the string representation 17446func (s TagLimitExceededException) String() string { 17447 return awsutil.Prettify(s) 17448} 17449 17450// GoString returns the string representation 17451func (s TagLimitExceededException) GoString() string { 17452 return s.String() 17453} 17454 17455func newErrorTagLimitExceededException(v protocol.ResponseMetadata) error { 17456 return &TagLimitExceededException{ 17457 RespMetadata: v, 17458 } 17459} 17460 17461// Code returns the exception type name. 17462func (s *TagLimitExceededException) Code() string { 17463 return "TagLimitExceededException" 17464} 17465 17466// Message returns the exception's message. 17467func (s *TagLimitExceededException) Message() string { 17468 if s.Message_ != nil { 17469 return *s.Message_ 17470 } 17471 return "" 17472} 17473 17474// OrigErr always returns nil, satisfies awserr.Error interface. 17475func (s *TagLimitExceededException) OrigErr() error { 17476 return nil 17477} 17478 17479func (s *TagLimitExceededException) Error() string { 17480 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 17481} 17482 17483// Status code returns the HTTP status code for the request's response error. 17484func (s *TagLimitExceededException) StatusCode() int { 17485 return s.RespMetadata.StatusCode 17486} 17487 17488// RequestID returns the service's response RequestID for request. 17489func (s *TagLimitExceededException) RequestID() string { 17490 return s.RespMetadata.RequestID 17491} 17492 17493// A tag was not specified. 17494type TagRequiredException struct { 17495 _ struct{} `type:"structure"` 17496 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 17497 17498 Message_ *string `locationName:"message" type:"string"` 17499} 17500 17501// String returns the string representation 17502func (s TagRequiredException) String() string { 17503 return awsutil.Prettify(s) 17504} 17505 17506// GoString returns the string representation 17507func (s TagRequiredException) GoString() string { 17508 return s.String() 17509} 17510 17511func newErrorTagRequiredException(v protocol.ResponseMetadata) error { 17512 return &TagRequiredException{ 17513 RespMetadata: v, 17514 } 17515} 17516 17517// Code returns the exception type name. 17518func (s *TagRequiredException) Code() string { 17519 return "TagRequiredException" 17520} 17521 17522// Message returns the exception's message. 17523func (s *TagRequiredException) Message() string { 17524 if s.Message_ != nil { 17525 return *s.Message_ 17526 } 17527 return "" 17528} 17529 17530// OrigErr always returns nil, satisfies awserr.Error interface. 17531func (s *TagRequiredException) OrigErr() error { 17532 return nil 17533} 17534 17535func (s *TagRequiredException) Error() string { 17536 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 17537} 17538 17539// Status code returns the HTTP status code for the request's response error. 17540func (s *TagRequiredException) StatusCode() int { 17541 return s.RespMetadata.StatusCode 17542} 17543 17544// RequestID returns the service's response RequestID for request. 17545func (s *TagRequiredException) RequestID() string { 17546 return s.RespMetadata.RequestID 17547} 17548 17549type TagResourceInput struct { 17550 _ struct{} `type:"structure"` 17551 17552 // The ARN of a resource, such as a CodeDeploy application or deployment group. 17553 // 17554 // ResourceArn is a required field 17555 ResourceArn *string `min:"1" type:"string" required:"true"` 17556 17557 // A list of tags that TagResource associates with a resource. The resource 17558 // is identified by the ResourceArn input parameter. 17559 // 17560 // Tags is a required field 17561 Tags []*Tag `type:"list" required:"true"` 17562} 17563 17564// String returns the string representation 17565func (s TagResourceInput) String() string { 17566 return awsutil.Prettify(s) 17567} 17568 17569// GoString returns the string representation 17570func (s TagResourceInput) GoString() string { 17571 return s.String() 17572} 17573 17574// Validate inspects the fields of the type to determine if they are valid. 17575func (s *TagResourceInput) Validate() error { 17576 invalidParams := request.ErrInvalidParams{Context: "TagResourceInput"} 17577 if s.ResourceArn == nil { 17578 invalidParams.Add(request.NewErrParamRequired("ResourceArn")) 17579 } 17580 if s.ResourceArn != nil && len(*s.ResourceArn) < 1 { 17581 invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1)) 17582 } 17583 if s.Tags == nil { 17584 invalidParams.Add(request.NewErrParamRequired("Tags")) 17585 } 17586 17587 if invalidParams.Len() > 0 { 17588 return invalidParams 17589 } 17590 return nil 17591} 17592 17593// SetResourceArn sets the ResourceArn field's value. 17594func (s *TagResourceInput) SetResourceArn(v string) *TagResourceInput { 17595 s.ResourceArn = &v 17596 return s 17597} 17598 17599// SetTags sets the Tags field's value. 17600func (s *TagResourceInput) SetTags(v []*Tag) *TagResourceInput { 17601 s.Tags = v 17602 return s 17603} 17604 17605type TagResourceOutput struct { 17606 _ struct{} `type:"structure"` 17607} 17608 17609// String returns the string representation 17610func (s TagResourceOutput) String() string { 17611 return awsutil.Prettify(s) 17612} 17613 17614// GoString returns the string representation 17615func (s TagResourceOutput) GoString() string { 17616 return s.String() 17617} 17618 17619// The number of tag groups included in the tag set list exceeded the maximum 17620// allowed limit of 3. 17621type TagSetListLimitExceededException struct { 17622 _ struct{} `type:"structure"` 17623 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 17624 17625 Message_ *string `locationName:"message" type:"string"` 17626} 17627 17628// String returns the string representation 17629func (s TagSetListLimitExceededException) String() string { 17630 return awsutil.Prettify(s) 17631} 17632 17633// GoString returns the string representation 17634func (s TagSetListLimitExceededException) GoString() string { 17635 return s.String() 17636} 17637 17638func newErrorTagSetListLimitExceededException(v protocol.ResponseMetadata) error { 17639 return &TagSetListLimitExceededException{ 17640 RespMetadata: v, 17641 } 17642} 17643 17644// Code returns the exception type name. 17645func (s *TagSetListLimitExceededException) Code() string { 17646 return "TagSetListLimitExceededException" 17647} 17648 17649// Message returns the exception's message. 17650func (s *TagSetListLimitExceededException) Message() string { 17651 if s.Message_ != nil { 17652 return *s.Message_ 17653 } 17654 return "" 17655} 17656 17657// OrigErr always returns nil, satisfies awserr.Error interface. 17658func (s *TagSetListLimitExceededException) OrigErr() error { 17659 return nil 17660} 17661 17662func (s *TagSetListLimitExceededException) Error() string { 17663 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 17664} 17665 17666// Status code returns the HTTP status code for the request's response error. 17667func (s *TagSetListLimitExceededException) StatusCode() int { 17668 return s.RespMetadata.StatusCode 17669} 17670 17671// RequestID returns the service's response RequestID for request. 17672func (s *TagSetListLimitExceededException) RequestID() string { 17673 return s.RespMetadata.RequestID 17674} 17675 17676// Information about a target group in Elastic Load Balancing to use in a deployment. 17677// Instances are registered as targets in a target group, and traffic is routed 17678// to the target group. 17679type TargetGroupInfo struct { 17680 _ struct{} `type:"structure"` 17681 17682 // For blue/green deployments, the name of the target group that instances in 17683 // the original environment are deregistered from, and instances in the replacement 17684 // environment are registered with. For in-place deployments, the name of the 17685 // target group that instances are deregistered from, so they are not serving 17686 // traffic during a deployment, and then re-registered with after the deployment 17687 // is complete. 17688 Name *string `locationName:"name" type:"string"` 17689} 17690 17691// String returns the string representation 17692func (s TargetGroupInfo) String() string { 17693 return awsutil.Prettify(s) 17694} 17695 17696// GoString returns the string representation 17697func (s TargetGroupInfo) GoString() string { 17698 return s.String() 17699} 17700 17701// SetName sets the Name field's value. 17702func (s *TargetGroupInfo) SetName(v string) *TargetGroupInfo { 17703 s.Name = &v 17704 return s 17705} 17706 17707// Information about two target groups and how traffic is routed during an Amazon 17708// ECS deployment. An optional test traffic route can be specified. 17709type TargetGroupPairInfo struct { 17710 _ struct{} `type:"structure"` 17711 17712 // The path used by a load balancer to route production traffic when an Amazon 17713 // ECS deployment is complete. 17714 ProdTrafficRoute *TrafficRoute `locationName:"prodTrafficRoute" type:"structure"` 17715 17716 // One pair of target groups. One is associated with the original task set. 17717 // The second is associated with the task set that serves traffic after the 17718 // deployment is complete. 17719 TargetGroups []*TargetGroupInfo `locationName:"targetGroups" type:"list"` 17720 17721 // An optional path used by a load balancer to route test traffic after an Amazon 17722 // ECS deployment. Validation can occur while test traffic is served during 17723 // a deployment. 17724 TestTrafficRoute *TrafficRoute `locationName:"testTrafficRoute" type:"structure"` 17725} 17726 17727// String returns the string representation 17728func (s TargetGroupPairInfo) String() string { 17729 return awsutil.Prettify(s) 17730} 17731 17732// GoString returns the string representation 17733func (s TargetGroupPairInfo) GoString() string { 17734 return s.String() 17735} 17736 17737// SetProdTrafficRoute sets the ProdTrafficRoute field's value. 17738func (s *TargetGroupPairInfo) SetProdTrafficRoute(v *TrafficRoute) *TargetGroupPairInfo { 17739 s.ProdTrafficRoute = v 17740 return s 17741} 17742 17743// SetTargetGroups sets the TargetGroups field's value. 17744func (s *TargetGroupPairInfo) SetTargetGroups(v []*TargetGroupInfo) *TargetGroupPairInfo { 17745 s.TargetGroups = v 17746 return s 17747} 17748 17749// SetTestTrafficRoute sets the TestTrafficRoute field's value. 17750func (s *TargetGroupPairInfo) SetTestTrafficRoute(v *TrafficRoute) *TargetGroupPairInfo { 17751 s.TestTrafficRoute = v 17752 return s 17753} 17754 17755// Information about the instances to be used in the replacement environment 17756// in a blue/green deployment. 17757type TargetInstances struct { 17758 _ struct{} `type:"structure"` 17759 17760 // The names of one or more Auto Scaling groups to identify a replacement environment 17761 // for a blue/green deployment. 17762 AutoScalingGroups []*string `locationName:"autoScalingGroups" type:"list"` 17763 17764 // Information about the groups of EC2 instance tags that an instance must be 17765 // identified by in order for it to be included in the replacement environment 17766 // for a blue/green deployment. Cannot be used in the same call as tagFilters. 17767 Ec2TagSet *EC2TagSet `locationName:"ec2TagSet" type:"structure"` 17768 17769 // The tag filter key, type, and value used to identify Amazon EC2 instances 17770 // in a replacement environment for a blue/green deployment. Cannot be used 17771 // in the same call as ec2TagSet. 17772 TagFilters []*EC2TagFilter `locationName:"tagFilters" type:"list"` 17773} 17774 17775// String returns the string representation 17776func (s TargetInstances) String() string { 17777 return awsutil.Prettify(s) 17778} 17779 17780// GoString returns the string representation 17781func (s TargetInstances) GoString() string { 17782 return s.String() 17783} 17784 17785// SetAutoScalingGroups sets the AutoScalingGroups field's value. 17786func (s *TargetInstances) SetAutoScalingGroups(v []*string) *TargetInstances { 17787 s.AutoScalingGroups = v 17788 return s 17789} 17790 17791// SetEc2TagSet sets the Ec2TagSet field's value. 17792func (s *TargetInstances) SetEc2TagSet(v *EC2TagSet) *TargetInstances { 17793 s.Ec2TagSet = v 17794 return s 17795} 17796 17797// SetTagFilters sets the TagFilters field's value. 17798func (s *TargetInstances) SetTagFilters(v []*EC2TagFilter) *TargetInstances { 17799 s.TagFilters = v 17800 return s 17801} 17802 17803// An API function was called too frequently. 17804type ThrottlingException struct { 17805 _ struct{} `type:"structure"` 17806 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 17807 17808 Message_ *string `locationName:"message" type:"string"` 17809} 17810 17811// String returns the string representation 17812func (s ThrottlingException) String() string { 17813 return awsutil.Prettify(s) 17814} 17815 17816// GoString returns the string representation 17817func (s ThrottlingException) GoString() string { 17818 return s.String() 17819} 17820 17821func newErrorThrottlingException(v protocol.ResponseMetadata) error { 17822 return &ThrottlingException{ 17823 RespMetadata: v, 17824 } 17825} 17826 17827// Code returns the exception type name. 17828func (s *ThrottlingException) Code() string { 17829 return "ThrottlingException" 17830} 17831 17832// Message returns the exception's message. 17833func (s *ThrottlingException) Message() string { 17834 if s.Message_ != nil { 17835 return *s.Message_ 17836 } 17837 return "" 17838} 17839 17840// OrigErr always returns nil, satisfies awserr.Error interface. 17841func (s *ThrottlingException) OrigErr() error { 17842 return nil 17843} 17844 17845func (s *ThrottlingException) Error() string { 17846 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 17847} 17848 17849// Status code returns the HTTP status code for the request's response error. 17850func (s *ThrottlingException) StatusCode() int { 17851 return s.RespMetadata.StatusCode 17852} 17853 17854// RequestID returns the service's response RequestID for request. 17855func (s *ThrottlingException) RequestID() string { 17856 return s.RespMetadata.RequestID 17857} 17858 17859// A configuration that shifts traffic from one version of a Lambda function 17860// or ECS task set to another in two increments. The original and target Lambda 17861// function versions or ECS task sets are specified in the deployment's AppSpec 17862// file. 17863type TimeBasedCanary struct { 17864 _ struct{} `type:"structure"` 17865 17866 // The number of minutes between the first and second traffic shifts of a TimeBasedCanary 17867 // deployment. 17868 CanaryInterval *int64 `locationName:"canaryInterval" type:"integer"` 17869 17870 // The percentage of traffic to shift in the first increment of a TimeBasedCanary 17871 // deployment. 17872 CanaryPercentage *int64 `locationName:"canaryPercentage" type:"integer"` 17873} 17874 17875// String returns the string representation 17876func (s TimeBasedCanary) String() string { 17877 return awsutil.Prettify(s) 17878} 17879 17880// GoString returns the string representation 17881func (s TimeBasedCanary) GoString() string { 17882 return s.String() 17883} 17884 17885// SetCanaryInterval sets the CanaryInterval field's value. 17886func (s *TimeBasedCanary) SetCanaryInterval(v int64) *TimeBasedCanary { 17887 s.CanaryInterval = &v 17888 return s 17889} 17890 17891// SetCanaryPercentage sets the CanaryPercentage field's value. 17892func (s *TimeBasedCanary) SetCanaryPercentage(v int64) *TimeBasedCanary { 17893 s.CanaryPercentage = &v 17894 return s 17895} 17896 17897// A configuration that shifts traffic from one version of a Lambda function 17898// or ECS task set to another in equal increments, with an equal number of minutes 17899// between each increment. The original and target Lambda function versions 17900// or ECS task sets are specified in the deployment's AppSpec file. 17901type TimeBasedLinear struct { 17902 _ struct{} `type:"structure"` 17903 17904 // The number of minutes between each incremental traffic shift of a TimeBasedLinear 17905 // deployment. 17906 LinearInterval *int64 `locationName:"linearInterval" type:"integer"` 17907 17908 // The percentage of traffic that is shifted at the start of each increment 17909 // of a TimeBasedLinear deployment. 17910 LinearPercentage *int64 `locationName:"linearPercentage" type:"integer"` 17911} 17912 17913// String returns the string representation 17914func (s TimeBasedLinear) String() string { 17915 return awsutil.Prettify(s) 17916} 17917 17918// GoString returns the string representation 17919func (s TimeBasedLinear) GoString() string { 17920 return s.String() 17921} 17922 17923// SetLinearInterval sets the LinearInterval field's value. 17924func (s *TimeBasedLinear) SetLinearInterval(v int64) *TimeBasedLinear { 17925 s.LinearInterval = &v 17926 return s 17927} 17928 17929// SetLinearPercentage sets the LinearPercentage field's value. 17930func (s *TimeBasedLinear) SetLinearPercentage(v int64) *TimeBasedLinear { 17931 s.LinearPercentage = &v 17932 return s 17933} 17934 17935// Information about a time range. 17936type TimeRange struct { 17937 _ struct{} `type:"structure"` 17938 17939 // The end time of the time range. 17940 // 17941 // Specify null to leave the end time open-ended. 17942 End *time.Time `locationName:"end" type:"timestamp"` 17943 17944 // The start time of the time range. 17945 // 17946 // Specify null to leave the start time open-ended. 17947 Start *time.Time `locationName:"start" type:"timestamp"` 17948} 17949 17950// String returns the string representation 17951func (s TimeRange) String() string { 17952 return awsutil.Prettify(s) 17953} 17954 17955// GoString returns the string representation 17956func (s TimeRange) GoString() string { 17957 return s.String() 17958} 17959 17960// SetEnd sets the End field's value. 17961func (s *TimeRange) SetEnd(v time.Time) *TimeRange { 17962 s.End = &v 17963 return s 17964} 17965 17966// SetStart sets the Start field's value. 17967func (s *TimeRange) SetStart(v time.Time) *TimeRange { 17968 s.Start = &v 17969 return s 17970} 17971 17972// Information about a listener. The listener contains the path used to route 17973// traffic that is received from the load balancer to a target group. 17974type TrafficRoute struct { 17975 _ struct{} `type:"structure"` 17976 17977 // The Amazon Resource Name (ARN) of one listener. The listener identifies the 17978 // route between a target group and a load balancer. This is an array of strings 17979 // with a maximum size of one. 17980 ListenerArns []*string `locationName:"listenerArns" type:"list"` 17981} 17982 17983// String returns the string representation 17984func (s TrafficRoute) String() string { 17985 return awsutil.Prettify(s) 17986} 17987 17988// GoString returns the string representation 17989func (s TrafficRoute) GoString() string { 17990 return s.String() 17991} 17992 17993// SetListenerArns sets the ListenerArns field's value. 17994func (s *TrafficRoute) SetListenerArns(v []*string) *TrafficRoute { 17995 s.ListenerArns = v 17996 return s 17997} 17998 17999// The configuration that specifies how traffic is shifted from one version 18000// of a Lambda function to another version during an AWS Lambda deployment, 18001// or from one Amazon ECS task set to another during an Amazon ECS deployment. 18002type TrafficRoutingConfig struct { 18003 _ struct{} `type:"structure"` 18004 18005 // A configuration that shifts traffic from one version of a Lambda function 18006 // or ECS task set to another in two increments. The original and target Lambda 18007 // function versions or ECS task sets are specified in the deployment's AppSpec 18008 // file. 18009 TimeBasedCanary *TimeBasedCanary `locationName:"timeBasedCanary" type:"structure"` 18010 18011 // A configuration that shifts traffic from one version of a Lambda function 18012 // or ECS task set to another in equal increments, with an equal number of minutes 18013 // between each increment. The original and target Lambda function versions 18014 // or ECS task sets are specified in the deployment's AppSpec file. 18015 TimeBasedLinear *TimeBasedLinear `locationName:"timeBasedLinear" type:"structure"` 18016 18017 // The type of traffic shifting (TimeBasedCanary or TimeBasedLinear) used by 18018 // a deployment configuration. 18019 Type *string `locationName:"type" type:"string" enum:"TrafficRoutingType"` 18020} 18021 18022// String returns the string representation 18023func (s TrafficRoutingConfig) String() string { 18024 return awsutil.Prettify(s) 18025} 18026 18027// GoString returns the string representation 18028func (s TrafficRoutingConfig) GoString() string { 18029 return s.String() 18030} 18031 18032// SetTimeBasedCanary sets the TimeBasedCanary field's value. 18033func (s *TrafficRoutingConfig) SetTimeBasedCanary(v *TimeBasedCanary) *TrafficRoutingConfig { 18034 s.TimeBasedCanary = v 18035 return s 18036} 18037 18038// SetTimeBasedLinear sets the TimeBasedLinear field's value. 18039func (s *TrafficRoutingConfig) SetTimeBasedLinear(v *TimeBasedLinear) *TrafficRoutingConfig { 18040 s.TimeBasedLinear = v 18041 return s 18042} 18043 18044// SetType sets the Type field's value. 18045func (s *TrafficRoutingConfig) SetType(v string) *TrafficRoutingConfig { 18046 s.Type = &v 18047 return s 18048} 18049 18050// Information about notification triggers for the deployment group. 18051type TriggerConfig struct { 18052 _ struct{} `type:"structure"` 18053 18054 // The event type or types for which notifications are triggered. 18055 TriggerEvents []*string `locationName:"triggerEvents" type:"list"` 18056 18057 // The name of the notification trigger. 18058 TriggerName *string `locationName:"triggerName" type:"string"` 18059 18060 // The Amazon Resource Name (ARN) of the Amazon Simple Notification Service 18061 // topic through which notifications about deployment or instance events are 18062 // sent. 18063 TriggerTargetArn *string `locationName:"triggerTargetArn" type:"string"` 18064} 18065 18066// String returns the string representation 18067func (s TriggerConfig) String() string { 18068 return awsutil.Prettify(s) 18069} 18070 18071// GoString returns the string representation 18072func (s TriggerConfig) GoString() string { 18073 return s.String() 18074} 18075 18076// SetTriggerEvents sets the TriggerEvents field's value. 18077func (s *TriggerConfig) SetTriggerEvents(v []*string) *TriggerConfig { 18078 s.TriggerEvents = v 18079 return s 18080} 18081 18082// SetTriggerName sets the TriggerName field's value. 18083func (s *TriggerConfig) SetTriggerName(v string) *TriggerConfig { 18084 s.TriggerName = &v 18085 return s 18086} 18087 18088// SetTriggerTargetArn sets the TriggerTargetArn field's value. 18089func (s *TriggerConfig) SetTriggerTargetArn(v string) *TriggerConfig { 18090 s.TriggerTargetArn = &v 18091 return s 18092} 18093 18094// The maximum allowed number of triggers was exceeded. 18095type TriggerTargetsLimitExceededException struct { 18096 _ struct{} `type:"structure"` 18097 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 18098 18099 Message_ *string `locationName:"message" type:"string"` 18100} 18101 18102// String returns the string representation 18103func (s TriggerTargetsLimitExceededException) String() string { 18104 return awsutil.Prettify(s) 18105} 18106 18107// GoString returns the string representation 18108func (s TriggerTargetsLimitExceededException) GoString() string { 18109 return s.String() 18110} 18111 18112func newErrorTriggerTargetsLimitExceededException(v protocol.ResponseMetadata) error { 18113 return &TriggerTargetsLimitExceededException{ 18114 RespMetadata: v, 18115 } 18116} 18117 18118// Code returns the exception type name. 18119func (s *TriggerTargetsLimitExceededException) Code() string { 18120 return "TriggerTargetsLimitExceededException" 18121} 18122 18123// Message returns the exception's message. 18124func (s *TriggerTargetsLimitExceededException) Message() string { 18125 if s.Message_ != nil { 18126 return *s.Message_ 18127 } 18128 return "" 18129} 18130 18131// OrigErr always returns nil, satisfies awserr.Error interface. 18132func (s *TriggerTargetsLimitExceededException) OrigErr() error { 18133 return nil 18134} 18135 18136func (s *TriggerTargetsLimitExceededException) Error() string { 18137 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 18138} 18139 18140// Status code returns the HTTP status code for the request's response error. 18141func (s *TriggerTargetsLimitExceededException) StatusCode() int { 18142 return s.RespMetadata.StatusCode 18143} 18144 18145// RequestID returns the service's response RequestID for request. 18146func (s *TriggerTargetsLimitExceededException) RequestID() string { 18147 return s.RespMetadata.RequestID 18148} 18149 18150// A call was submitted that is not supported for the specified deployment type. 18151type UnsupportedActionForDeploymentTypeException struct { 18152 _ struct{} `type:"structure"` 18153 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 18154 18155 Message_ *string `locationName:"message" type:"string"` 18156} 18157 18158// String returns the string representation 18159func (s UnsupportedActionForDeploymentTypeException) String() string { 18160 return awsutil.Prettify(s) 18161} 18162 18163// GoString returns the string representation 18164func (s UnsupportedActionForDeploymentTypeException) GoString() string { 18165 return s.String() 18166} 18167 18168func newErrorUnsupportedActionForDeploymentTypeException(v protocol.ResponseMetadata) error { 18169 return &UnsupportedActionForDeploymentTypeException{ 18170 RespMetadata: v, 18171 } 18172} 18173 18174// Code returns the exception type name. 18175func (s *UnsupportedActionForDeploymentTypeException) Code() string { 18176 return "UnsupportedActionForDeploymentTypeException" 18177} 18178 18179// Message returns the exception's message. 18180func (s *UnsupportedActionForDeploymentTypeException) Message() string { 18181 if s.Message_ != nil { 18182 return *s.Message_ 18183 } 18184 return "" 18185} 18186 18187// OrigErr always returns nil, satisfies awserr.Error interface. 18188func (s *UnsupportedActionForDeploymentTypeException) OrigErr() error { 18189 return nil 18190} 18191 18192func (s *UnsupportedActionForDeploymentTypeException) Error() string { 18193 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 18194} 18195 18196// Status code returns the HTTP status code for the request's response error. 18197func (s *UnsupportedActionForDeploymentTypeException) StatusCode() int { 18198 return s.RespMetadata.StatusCode 18199} 18200 18201// RequestID returns the service's response RequestID for request. 18202func (s *UnsupportedActionForDeploymentTypeException) RequestID() string { 18203 return s.RespMetadata.RequestID 18204} 18205 18206type UntagResourceInput struct { 18207 _ struct{} `type:"structure"` 18208 18209 // The Amazon Resource Name (ARN) that specifies from which resource to disassociate 18210 // the tags with the keys in the TagKeys input parameter. 18211 // 18212 // ResourceArn is a required field 18213 ResourceArn *string `min:"1" type:"string" required:"true"` 18214 18215 // A list of keys of Tag objects. The Tag objects identified by the keys are 18216 // disassociated from the resource specified by the ResourceArn input parameter. 18217 // 18218 // TagKeys is a required field 18219 TagKeys []*string `type:"list" required:"true"` 18220} 18221 18222// String returns the string representation 18223func (s UntagResourceInput) String() string { 18224 return awsutil.Prettify(s) 18225} 18226 18227// GoString returns the string representation 18228func (s UntagResourceInput) GoString() string { 18229 return s.String() 18230} 18231 18232// Validate inspects the fields of the type to determine if they are valid. 18233func (s *UntagResourceInput) Validate() error { 18234 invalidParams := request.ErrInvalidParams{Context: "UntagResourceInput"} 18235 if s.ResourceArn == nil { 18236 invalidParams.Add(request.NewErrParamRequired("ResourceArn")) 18237 } 18238 if s.ResourceArn != nil && len(*s.ResourceArn) < 1 { 18239 invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1)) 18240 } 18241 if s.TagKeys == nil { 18242 invalidParams.Add(request.NewErrParamRequired("TagKeys")) 18243 } 18244 18245 if invalidParams.Len() > 0 { 18246 return invalidParams 18247 } 18248 return nil 18249} 18250 18251// SetResourceArn sets the ResourceArn field's value. 18252func (s *UntagResourceInput) SetResourceArn(v string) *UntagResourceInput { 18253 s.ResourceArn = &v 18254 return s 18255} 18256 18257// SetTagKeys sets the TagKeys field's value. 18258func (s *UntagResourceInput) SetTagKeys(v []*string) *UntagResourceInput { 18259 s.TagKeys = v 18260 return s 18261} 18262 18263type UntagResourceOutput struct { 18264 _ struct{} `type:"structure"` 18265} 18266 18267// String returns the string representation 18268func (s UntagResourceOutput) String() string { 18269 return awsutil.Prettify(s) 18270} 18271 18272// GoString returns the string representation 18273func (s UntagResourceOutput) GoString() string { 18274 return s.String() 18275} 18276 18277// Represents the input of an UpdateApplication operation. 18278type UpdateApplicationInput struct { 18279 _ struct{} `type:"structure"` 18280 18281 // The current name of the application you want to change. 18282 ApplicationName *string `locationName:"applicationName" min:"1" type:"string"` 18283 18284 // The new name to give the application. 18285 NewApplicationName *string `locationName:"newApplicationName" min:"1" type:"string"` 18286} 18287 18288// String returns the string representation 18289func (s UpdateApplicationInput) String() string { 18290 return awsutil.Prettify(s) 18291} 18292 18293// GoString returns the string representation 18294func (s UpdateApplicationInput) GoString() string { 18295 return s.String() 18296} 18297 18298// Validate inspects the fields of the type to determine if they are valid. 18299func (s *UpdateApplicationInput) Validate() error { 18300 invalidParams := request.ErrInvalidParams{Context: "UpdateApplicationInput"} 18301 if s.ApplicationName != nil && len(*s.ApplicationName) < 1 { 18302 invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1)) 18303 } 18304 if s.NewApplicationName != nil && len(*s.NewApplicationName) < 1 { 18305 invalidParams.Add(request.NewErrParamMinLen("NewApplicationName", 1)) 18306 } 18307 18308 if invalidParams.Len() > 0 { 18309 return invalidParams 18310 } 18311 return nil 18312} 18313 18314// SetApplicationName sets the ApplicationName field's value. 18315func (s *UpdateApplicationInput) SetApplicationName(v string) *UpdateApplicationInput { 18316 s.ApplicationName = &v 18317 return s 18318} 18319 18320// SetNewApplicationName sets the NewApplicationName field's value. 18321func (s *UpdateApplicationInput) SetNewApplicationName(v string) *UpdateApplicationInput { 18322 s.NewApplicationName = &v 18323 return s 18324} 18325 18326type UpdateApplicationOutput struct { 18327 _ struct{} `type:"structure"` 18328} 18329 18330// String returns the string representation 18331func (s UpdateApplicationOutput) String() string { 18332 return awsutil.Prettify(s) 18333} 18334 18335// GoString returns the string representation 18336func (s UpdateApplicationOutput) GoString() string { 18337 return s.String() 18338} 18339 18340// Represents the input of an UpdateDeploymentGroup operation. 18341type UpdateDeploymentGroupInput struct { 18342 _ struct{} `type:"structure"` 18343 18344 // Information to add or change about Amazon CloudWatch alarms when the deployment 18345 // group is updated. 18346 AlarmConfiguration *AlarmConfiguration `locationName:"alarmConfiguration" type:"structure"` 18347 18348 // The application name that corresponds to the deployment group to update. 18349 // 18350 // ApplicationName is a required field 18351 ApplicationName *string `locationName:"applicationName" min:"1" type:"string" required:"true"` 18352 18353 // Information for an automatic rollback configuration that is added or changed 18354 // when a deployment group is updated. 18355 AutoRollbackConfiguration *AutoRollbackConfiguration `locationName:"autoRollbackConfiguration" type:"structure"` 18356 18357 // The replacement list of Auto Scaling groups to be included in the deployment 18358 // group, if you want to change them. To keep the Auto Scaling groups, enter 18359 // their names. To remove Auto Scaling groups, do not enter any Auto Scaling 18360 // group names. 18361 AutoScalingGroups []*string `locationName:"autoScalingGroups" type:"list"` 18362 18363 // Information about blue/green deployment options for a deployment group. 18364 BlueGreenDeploymentConfiguration *BlueGreenDeploymentConfiguration `locationName:"blueGreenDeploymentConfiguration" type:"structure"` 18365 18366 // The current name of the deployment group. 18367 // 18368 // CurrentDeploymentGroupName is a required field 18369 CurrentDeploymentGroupName *string `locationName:"currentDeploymentGroupName" min:"1" type:"string" required:"true"` 18370 18371 // The replacement deployment configuration name to use, if you want to change 18372 // it. 18373 DeploymentConfigName *string `locationName:"deploymentConfigName" min:"1" type:"string"` 18374 18375 // Information about the type of deployment, either in-place or blue/green, 18376 // you want to run and whether to route deployment traffic behind a load balancer. 18377 DeploymentStyle *DeploymentStyle `locationName:"deploymentStyle" type:"structure"` 18378 18379 // The replacement set of Amazon EC2 tags on which to filter, if you want to 18380 // change them. To keep the existing tags, enter their names. To remove tags, 18381 // do not enter any tag names. 18382 Ec2TagFilters []*EC2TagFilter `locationName:"ec2TagFilters" type:"list"` 18383 18384 // Information about groups of tags applied to on-premises instances. The deployment 18385 // group includes only EC2 instances identified by all the tag groups. 18386 Ec2TagSet *EC2TagSet `locationName:"ec2TagSet" type:"structure"` 18387 18388 // The target Amazon ECS services in the deployment group. This applies only 18389 // to deployment groups that use the Amazon ECS compute platform. A target Amazon 18390 // ECS service is specified as an Amazon ECS cluster and service name pair using 18391 // the format <clustername>:<servicename>. 18392 EcsServices []*ECSService `locationName:"ecsServices" type:"list"` 18393 18394 // Information about the load balancer used in a deployment. 18395 LoadBalancerInfo *LoadBalancerInfo `locationName:"loadBalancerInfo" type:"structure"` 18396 18397 // The new name of the deployment group, if you want to change it. 18398 NewDeploymentGroupName *string `locationName:"newDeploymentGroupName" min:"1" type:"string"` 18399 18400 // The replacement set of on-premises instance tags on which to filter, if you 18401 // want to change them. To keep the existing tags, enter their names. To remove 18402 // tags, do not enter any tag names. 18403 OnPremisesInstanceTagFilters []*TagFilter `locationName:"onPremisesInstanceTagFilters" type:"list"` 18404 18405 // Information about an on-premises instance tag set. The deployment group includes 18406 // only on-premises instances identified by all the tag groups. 18407 OnPremisesTagSet *OnPremisesTagSet `locationName:"onPremisesTagSet" type:"structure"` 18408 18409 // A replacement ARN for the service role, if you want to change it. 18410 ServiceRoleArn *string `locationName:"serviceRoleArn" type:"string"` 18411 18412 // Information about triggers to change when the deployment group is updated. 18413 // For examples, see Edit a Trigger in a CodeDeploy Deployment Group (https://docs.aws.amazon.com/codedeploy/latest/userguide/how-to-notify-edit.html) 18414 // in the AWS CodeDeploy User Guide. 18415 TriggerConfigurations []*TriggerConfig `locationName:"triggerConfigurations" type:"list"` 18416} 18417 18418// String returns the string representation 18419func (s UpdateDeploymentGroupInput) String() string { 18420 return awsutil.Prettify(s) 18421} 18422 18423// GoString returns the string representation 18424func (s UpdateDeploymentGroupInput) GoString() string { 18425 return s.String() 18426} 18427 18428// Validate inspects the fields of the type to determine if they are valid. 18429func (s *UpdateDeploymentGroupInput) Validate() error { 18430 invalidParams := request.ErrInvalidParams{Context: "UpdateDeploymentGroupInput"} 18431 if s.ApplicationName == nil { 18432 invalidParams.Add(request.NewErrParamRequired("ApplicationName")) 18433 } 18434 if s.ApplicationName != nil && len(*s.ApplicationName) < 1 { 18435 invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1)) 18436 } 18437 if s.CurrentDeploymentGroupName == nil { 18438 invalidParams.Add(request.NewErrParamRequired("CurrentDeploymentGroupName")) 18439 } 18440 if s.CurrentDeploymentGroupName != nil && len(*s.CurrentDeploymentGroupName) < 1 { 18441 invalidParams.Add(request.NewErrParamMinLen("CurrentDeploymentGroupName", 1)) 18442 } 18443 if s.DeploymentConfigName != nil && len(*s.DeploymentConfigName) < 1 { 18444 invalidParams.Add(request.NewErrParamMinLen("DeploymentConfigName", 1)) 18445 } 18446 if s.NewDeploymentGroupName != nil && len(*s.NewDeploymentGroupName) < 1 { 18447 invalidParams.Add(request.NewErrParamMinLen("NewDeploymentGroupName", 1)) 18448 } 18449 18450 if invalidParams.Len() > 0 { 18451 return invalidParams 18452 } 18453 return nil 18454} 18455 18456// SetAlarmConfiguration sets the AlarmConfiguration field's value. 18457func (s *UpdateDeploymentGroupInput) SetAlarmConfiguration(v *AlarmConfiguration) *UpdateDeploymentGroupInput { 18458 s.AlarmConfiguration = v 18459 return s 18460} 18461 18462// SetApplicationName sets the ApplicationName field's value. 18463func (s *UpdateDeploymentGroupInput) SetApplicationName(v string) *UpdateDeploymentGroupInput { 18464 s.ApplicationName = &v 18465 return s 18466} 18467 18468// SetAutoRollbackConfiguration sets the AutoRollbackConfiguration field's value. 18469func (s *UpdateDeploymentGroupInput) SetAutoRollbackConfiguration(v *AutoRollbackConfiguration) *UpdateDeploymentGroupInput { 18470 s.AutoRollbackConfiguration = v 18471 return s 18472} 18473 18474// SetAutoScalingGroups sets the AutoScalingGroups field's value. 18475func (s *UpdateDeploymentGroupInput) SetAutoScalingGroups(v []*string) *UpdateDeploymentGroupInput { 18476 s.AutoScalingGroups = v 18477 return s 18478} 18479 18480// SetBlueGreenDeploymentConfiguration sets the BlueGreenDeploymentConfiguration field's value. 18481func (s *UpdateDeploymentGroupInput) SetBlueGreenDeploymentConfiguration(v *BlueGreenDeploymentConfiguration) *UpdateDeploymentGroupInput { 18482 s.BlueGreenDeploymentConfiguration = v 18483 return s 18484} 18485 18486// SetCurrentDeploymentGroupName sets the CurrentDeploymentGroupName field's value. 18487func (s *UpdateDeploymentGroupInput) SetCurrentDeploymentGroupName(v string) *UpdateDeploymentGroupInput { 18488 s.CurrentDeploymentGroupName = &v 18489 return s 18490} 18491 18492// SetDeploymentConfigName sets the DeploymentConfigName field's value. 18493func (s *UpdateDeploymentGroupInput) SetDeploymentConfigName(v string) *UpdateDeploymentGroupInput { 18494 s.DeploymentConfigName = &v 18495 return s 18496} 18497 18498// SetDeploymentStyle sets the DeploymentStyle field's value. 18499func (s *UpdateDeploymentGroupInput) SetDeploymentStyle(v *DeploymentStyle) *UpdateDeploymentGroupInput { 18500 s.DeploymentStyle = v 18501 return s 18502} 18503 18504// SetEc2TagFilters sets the Ec2TagFilters field's value. 18505func (s *UpdateDeploymentGroupInput) SetEc2TagFilters(v []*EC2TagFilter) *UpdateDeploymentGroupInput { 18506 s.Ec2TagFilters = v 18507 return s 18508} 18509 18510// SetEc2TagSet sets the Ec2TagSet field's value. 18511func (s *UpdateDeploymentGroupInput) SetEc2TagSet(v *EC2TagSet) *UpdateDeploymentGroupInput { 18512 s.Ec2TagSet = v 18513 return s 18514} 18515 18516// SetEcsServices sets the EcsServices field's value. 18517func (s *UpdateDeploymentGroupInput) SetEcsServices(v []*ECSService) *UpdateDeploymentGroupInput { 18518 s.EcsServices = v 18519 return s 18520} 18521 18522// SetLoadBalancerInfo sets the LoadBalancerInfo field's value. 18523func (s *UpdateDeploymentGroupInput) SetLoadBalancerInfo(v *LoadBalancerInfo) *UpdateDeploymentGroupInput { 18524 s.LoadBalancerInfo = v 18525 return s 18526} 18527 18528// SetNewDeploymentGroupName sets the NewDeploymentGroupName field's value. 18529func (s *UpdateDeploymentGroupInput) SetNewDeploymentGroupName(v string) *UpdateDeploymentGroupInput { 18530 s.NewDeploymentGroupName = &v 18531 return s 18532} 18533 18534// SetOnPremisesInstanceTagFilters sets the OnPremisesInstanceTagFilters field's value. 18535func (s *UpdateDeploymentGroupInput) SetOnPremisesInstanceTagFilters(v []*TagFilter) *UpdateDeploymentGroupInput { 18536 s.OnPremisesInstanceTagFilters = v 18537 return s 18538} 18539 18540// SetOnPremisesTagSet sets the OnPremisesTagSet field's value. 18541func (s *UpdateDeploymentGroupInput) SetOnPremisesTagSet(v *OnPremisesTagSet) *UpdateDeploymentGroupInput { 18542 s.OnPremisesTagSet = v 18543 return s 18544} 18545 18546// SetServiceRoleArn sets the ServiceRoleArn field's value. 18547func (s *UpdateDeploymentGroupInput) SetServiceRoleArn(v string) *UpdateDeploymentGroupInput { 18548 s.ServiceRoleArn = &v 18549 return s 18550} 18551 18552// SetTriggerConfigurations sets the TriggerConfigurations field's value. 18553func (s *UpdateDeploymentGroupInput) SetTriggerConfigurations(v []*TriggerConfig) *UpdateDeploymentGroupInput { 18554 s.TriggerConfigurations = v 18555 return s 18556} 18557 18558// Represents the output of an UpdateDeploymentGroup operation. 18559type UpdateDeploymentGroupOutput struct { 18560 _ struct{} `type:"structure"` 18561 18562 // If the output contains no data, and the corresponding deployment group contained 18563 // at least one Auto Scaling group, AWS CodeDeploy successfully removed all 18564 // corresponding Auto Scaling lifecycle event hooks from the AWS account. If 18565 // the output contains data, AWS CodeDeploy could not remove some Auto Scaling 18566 // lifecycle event hooks from the AWS account. 18567 HooksNotCleanedUp []*AutoScalingGroup `locationName:"hooksNotCleanedUp" type:"list"` 18568} 18569 18570// String returns the string representation 18571func (s UpdateDeploymentGroupOutput) String() string { 18572 return awsutil.Prettify(s) 18573} 18574 18575// GoString returns the string representation 18576func (s UpdateDeploymentGroupOutput) GoString() string { 18577 return s.String() 18578} 18579 18580// SetHooksNotCleanedUp sets the HooksNotCleanedUp field's value. 18581func (s *UpdateDeploymentGroupOutput) SetHooksNotCleanedUp(v []*AutoScalingGroup) *UpdateDeploymentGroupOutput { 18582 s.HooksNotCleanedUp = v 18583 return s 18584} 18585 18586const ( 18587 // ApplicationRevisionSortByRegisterTime is a ApplicationRevisionSortBy enum value 18588 ApplicationRevisionSortByRegisterTime = "registerTime" 18589 18590 // ApplicationRevisionSortByFirstUsedTime is a ApplicationRevisionSortBy enum value 18591 ApplicationRevisionSortByFirstUsedTime = "firstUsedTime" 18592 18593 // ApplicationRevisionSortByLastUsedTime is a ApplicationRevisionSortBy enum value 18594 ApplicationRevisionSortByLastUsedTime = "lastUsedTime" 18595) 18596 18597const ( 18598 // AutoRollbackEventDeploymentFailure is a AutoRollbackEvent enum value 18599 AutoRollbackEventDeploymentFailure = "DEPLOYMENT_FAILURE" 18600 18601 // AutoRollbackEventDeploymentStopOnAlarm is a AutoRollbackEvent enum value 18602 AutoRollbackEventDeploymentStopOnAlarm = "DEPLOYMENT_STOP_ON_ALARM" 18603 18604 // AutoRollbackEventDeploymentStopOnRequest is a AutoRollbackEvent enum value 18605 AutoRollbackEventDeploymentStopOnRequest = "DEPLOYMENT_STOP_ON_REQUEST" 18606) 18607 18608const ( 18609 // BundleTypeTar is a BundleType enum value 18610 BundleTypeTar = "tar" 18611 18612 // BundleTypeTgz is a BundleType enum value 18613 BundleTypeTgz = "tgz" 18614 18615 // BundleTypeZip is a BundleType enum value 18616 BundleTypeZip = "zip" 18617 18618 // BundleTypeYaml is a BundleType enum value 18619 BundleTypeYaml = "YAML" 18620 18621 // BundleTypeJson is a BundleType enum value 18622 BundleTypeJson = "JSON" 18623) 18624 18625const ( 18626 // ComputePlatformServer is a ComputePlatform enum value 18627 ComputePlatformServer = "Server" 18628 18629 // ComputePlatformLambda is a ComputePlatform enum value 18630 ComputePlatformLambda = "Lambda" 18631 18632 // ComputePlatformEcs is a ComputePlatform enum value 18633 ComputePlatformEcs = "ECS" 18634) 18635 18636const ( 18637 // DeploymentCreatorUser is a DeploymentCreator enum value 18638 DeploymentCreatorUser = "user" 18639 18640 // DeploymentCreatorAutoscaling is a DeploymentCreator enum value 18641 DeploymentCreatorAutoscaling = "autoscaling" 18642 18643 // DeploymentCreatorCodeDeployRollback is a DeploymentCreator enum value 18644 DeploymentCreatorCodeDeployRollback = "codeDeployRollback" 18645 18646 // DeploymentCreatorCodeDeploy is a DeploymentCreator enum value 18647 DeploymentCreatorCodeDeploy = "CodeDeploy" 18648 18649 // DeploymentCreatorCloudFormation is a DeploymentCreator enum value 18650 DeploymentCreatorCloudFormation = "CloudFormation" 18651 18652 // DeploymentCreatorCloudFormationRollback is a DeploymentCreator enum value 18653 DeploymentCreatorCloudFormationRollback = "CloudFormationRollback" 18654) 18655 18656const ( 18657 // DeploymentOptionWithTrafficControl is a DeploymentOption enum value 18658 DeploymentOptionWithTrafficControl = "WITH_TRAFFIC_CONTROL" 18659 18660 // DeploymentOptionWithoutTrafficControl is a DeploymentOption enum value 18661 DeploymentOptionWithoutTrafficControl = "WITHOUT_TRAFFIC_CONTROL" 18662) 18663 18664const ( 18665 // DeploymentReadyActionContinueDeployment is a DeploymentReadyAction enum value 18666 DeploymentReadyActionContinueDeployment = "CONTINUE_DEPLOYMENT" 18667 18668 // DeploymentReadyActionStopDeployment is a DeploymentReadyAction enum value 18669 DeploymentReadyActionStopDeployment = "STOP_DEPLOYMENT" 18670) 18671 18672const ( 18673 // DeploymentStatusCreated is a DeploymentStatus enum value 18674 DeploymentStatusCreated = "Created" 18675 18676 // DeploymentStatusQueued is a DeploymentStatus enum value 18677 DeploymentStatusQueued = "Queued" 18678 18679 // DeploymentStatusInProgress is a DeploymentStatus enum value 18680 DeploymentStatusInProgress = "InProgress" 18681 18682 // DeploymentStatusBaking is a DeploymentStatus enum value 18683 DeploymentStatusBaking = "Baking" 18684 18685 // DeploymentStatusSucceeded is a DeploymentStatus enum value 18686 DeploymentStatusSucceeded = "Succeeded" 18687 18688 // DeploymentStatusFailed is a DeploymentStatus enum value 18689 DeploymentStatusFailed = "Failed" 18690 18691 // DeploymentStatusStopped is a DeploymentStatus enum value 18692 DeploymentStatusStopped = "Stopped" 18693 18694 // DeploymentStatusReady is a DeploymentStatus enum value 18695 DeploymentStatusReady = "Ready" 18696) 18697 18698const ( 18699 // DeploymentTargetTypeInstanceTarget is a DeploymentTargetType enum value 18700 DeploymentTargetTypeInstanceTarget = "InstanceTarget" 18701 18702 // DeploymentTargetTypeLambdaTarget is a DeploymentTargetType enum value 18703 DeploymentTargetTypeLambdaTarget = "LambdaTarget" 18704 18705 // DeploymentTargetTypeEcstarget is a DeploymentTargetType enum value 18706 DeploymentTargetTypeEcstarget = "ECSTarget" 18707 18708 // DeploymentTargetTypeCloudFormationTarget is a DeploymentTargetType enum value 18709 DeploymentTargetTypeCloudFormationTarget = "CloudFormationTarget" 18710) 18711 18712const ( 18713 // DeploymentTypeInPlace is a DeploymentType enum value 18714 DeploymentTypeInPlace = "IN_PLACE" 18715 18716 // DeploymentTypeBlueGreen is a DeploymentType enum value 18717 DeploymentTypeBlueGreen = "BLUE_GREEN" 18718) 18719 18720const ( 18721 // DeploymentWaitTypeReadyWait is a DeploymentWaitType enum value 18722 DeploymentWaitTypeReadyWait = "READY_WAIT" 18723 18724 // DeploymentWaitTypeTerminationWait is a DeploymentWaitType enum value 18725 DeploymentWaitTypeTerminationWait = "TERMINATION_WAIT" 18726) 18727 18728const ( 18729 // EC2TagFilterTypeKeyOnly is a EC2TagFilterType enum value 18730 EC2TagFilterTypeKeyOnly = "KEY_ONLY" 18731 18732 // EC2TagFilterTypeValueOnly is a EC2TagFilterType enum value 18733 EC2TagFilterTypeValueOnly = "VALUE_ONLY" 18734 18735 // EC2TagFilterTypeKeyAndValue is a EC2TagFilterType enum value 18736 EC2TagFilterTypeKeyAndValue = "KEY_AND_VALUE" 18737) 18738 18739const ( 18740 // ErrorCodeAgentIssue is a ErrorCode enum value 18741 ErrorCodeAgentIssue = "AGENT_ISSUE" 18742 18743 // ErrorCodeAlarmActive is a ErrorCode enum value 18744 ErrorCodeAlarmActive = "ALARM_ACTIVE" 18745 18746 // ErrorCodeApplicationMissing is a ErrorCode enum value 18747 ErrorCodeApplicationMissing = "APPLICATION_MISSING" 18748 18749 // ErrorCodeAutoscalingValidationError is a ErrorCode enum value 18750 ErrorCodeAutoscalingValidationError = "AUTOSCALING_VALIDATION_ERROR" 18751 18752 // ErrorCodeAutoScalingConfiguration is a ErrorCode enum value 18753 ErrorCodeAutoScalingConfiguration = "AUTO_SCALING_CONFIGURATION" 18754 18755 // ErrorCodeAutoScalingIamRolePermissions is a ErrorCode enum value 18756 ErrorCodeAutoScalingIamRolePermissions = "AUTO_SCALING_IAM_ROLE_PERMISSIONS" 18757 18758 // ErrorCodeCodedeployResourceCannotBeFound is a ErrorCode enum value 18759 ErrorCodeCodedeployResourceCannotBeFound = "CODEDEPLOY_RESOURCE_CANNOT_BE_FOUND" 18760 18761 // ErrorCodeCustomerApplicationUnhealthy is a ErrorCode enum value 18762 ErrorCodeCustomerApplicationUnhealthy = "CUSTOMER_APPLICATION_UNHEALTHY" 18763 18764 // ErrorCodeDeploymentGroupMissing is a ErrorCode enum value 18765 ErrorCodeDeploymentGroupMissing = "DEPLOYMENT_GROUP_MISSING" 18766 18767 // ErrorCodeEcsUpdateError is a ErrorCode enum value 18768 ErrorCodeEcsUpdateError = "ECS_UPDATE_ERROR" 18769 18770 // ErrorCodeElasticLoadBalancingInvalid is a ErrorCode enum value 18771 ErrorCodeElasticLoadBalancingInvalid = "ELASTIC_LOAD_BALANCING_INVALID" 18772 18773 // ErrorCodeElbInvalidInstance is a ErrorCode enum value 18774 ErrorCodeElbInvalidInstance = "ELB_INVALID_INSTANCE" 18775 18776 // ErrorCodeHealthConstraints is a ErrorCode enum value 18777 ErrorCodeHealthConstraints = "HEALTH_CONSTRAINTS" 18778 18779 // ErrorCodeHealthConstraintsInvalid is a ErrorCode enum value 18780 ErrorCodeHealthConstraintsInvalid = "HEALTH_CONSTRAINTS_INVALID" 18781 18782 // ErrorCodeHookExecutionFailure is a ErrorCode enum value 18783 ErrorCodeHookExecutionFailure = "HOOK_EXECUTION_FAILURE" 18784 18785 // ErrorCodeIamRoleMissing is a ErrorCode enum value 18786 ErrorCodeIamRoleMissing = "IAM_ROLE_MISSING" 18787 18788 // ErrorCodeIamRolePermissions is a ErrorCode enum value 18789 ErrorCodeIamRolePermissions = "IAM_ROLE_PERMISSIONS" 18790 18791 // ErrorCodeInternalError is a ErrorCode enum value 18792 ErrorCodeInternalError = "INTERNAL_ERROR" 18793 18794 // ErrorCodeInvalidEcsService is a ErrorCode enum value 18795 ErrorCodeInvalidEcsService = "INVALID_ECS_SERVICE" 18796 18797 // ErrorCodeInvalidLambdaConfiguration is a ErrorCode enum value 18798 ErrorCodeInvalidLambdaConfiguration = "INVALID_LAMBDA_CONFIGURATION" 18799 18800 // ErrorCodeInvalidLambdaFunction is a ErrorCode enum value 18801 ErrorCodeInvalidLambdaFunction = "INVALID_LAMBDA_FUNCTION" 18802 18803 // ErrorCodeInvalidRevision is a ErrorCode enum value 18804 ErrorCodeInvalidRevision = "INVALID_REVISION" 18805 18806 // ErrorCodeManualStop is a ErrorCode enum value 18807 ErrorCodeManualStop = "MANUAL_STOP" 18808 18809 // ErrorCodeMissingBlueGreenDeploymentConfiguration is a ErrorCode enum value 18810 ErrorCodeMissingBlueGreenDeploymentConfiguration = "MISSING_BLUE_GREEN_DEPLOYMENT_CONFIGURATION" 18811 18812 // ErrorCodeMissingElbInformation is a ErrorCode enum value 18813 ErrorCodeMissingElbInformation = "MISSING_ELB_INFORMATION" 18814 18815 // ErrorCodeMissingGithubToken is a ErrorCode enum value 18816 ErrorCodeMissingGithubToken = "MISSING_GITHUB_TOKEN" 18817 18818 // ErrorCodeNoEc2Subscription is a ErrorCode enum value 18819 ErrorCodeNoEc2Subscription = "NO_EC2_SUBSCRIPTION" 18820 18821 // ErrorCodeNoInstances is a ErrorCode enum value 18822 ErrorCodeNoInstances = "NO_INSTANCES" 18823 18824 // ErrorCodeOverMaxInstances is a ErrorCode enum value 18825 ErrorCodeOverMaxInstances = "OVER_MAX_INSTANCES" 18826 18827 // ErrorCodeResourceLimitExceeded is a ErrorCode enum value 18828 ErrorCodeResourceLimitExceeded = "RESOURCE_LIMIT_EXCEEDED" 18829 18830 // ErrorCodeRevisionMissing is a ErrorCode enum value 18831 ErrorCodeRevisionMissing = "REVISION_MISSING" 18832 18833 // ErrorCodeThrottled is a ErrorCode enum value 18834 ErrorCodeThrottled = "THROTTLED" 18835 18836 // ErrorCodeTimeout is a ErrorCode enum value 18837 ErrorCodeTimeout = "TIMEOUT" 18838 18839 // ErrorCodeCloudformationStackFailure is a ErrorCode enum value 18840 ErrorCodeCloudformationStackFailure = "CLOUDFORMATION_STACK_FAILURE" 18841) 18842 18843const ( 18844 // FileExistsBehaviorDisallow is a FileExistsBehavior enum value 18845 FileExistsBehaviorDisallow = "DISALLOW" 18846 18847 // FileExistsBehaviorOverwrite is a FileExistsBehavior enum value 18848 FileExistsBehaviorOverwrite = "OVERWRITE" 18849 18850 // FileExistsBehaviorRetain is a FileExistsBehavior enum value 18851 FileExistsBehaviorRetain = "RETAIN" 18852) 18853 18854const ( 18855 // GreenFleetProvisioningActionDiscoverExisting is a GreenFleetProvisioningAction enum value 18856 GreenFleetProvisioningActionDiscoverExisting = "DISCOVER_EXISTING" 18857 18858 // GreenFleetProvisioningActionCopyAutoScalingGroup is a GreenFleetProvisioningAction enum value 18859 GreenFleetProvisioningActionCopyAutoScalingGroup = "COPY_AUTO_SCALING_GROUP" 18860) 18861 18862const ( 18863 // InstanceActionTerminate is a InstanceAction enum value 18864 InstanceActionTerminate = "TERMINATE" 18865 18866 // InstanceActionKeepAlive is a InstanceAction enum value 18867 InstanceActionKeepAlive = "KEEP_ALIVE" 18868) 18869 18870const ( 18871 // InstanceStatusPending is a InstanceStatus enum value 18872 InstanceStatusPending = "Pending" 18873 18874 // InstanceStatusInProgress is a InstanceStatus enum value 18875 InstanceStatusInProgress = "InProgress" 18876 18877 // InstanceStatusSucceeded is a InstanceStatus enum value 18878 InstanceStatusSucceeded = "Succeeded" 18879 18880 // InstanceStatusFailed is a InstanceStatus enum value 18881 InstanceStatusFailed = "Failed" 18882 18883 // InstanceStatusSkipped is a InstanceStatus enum value 18884 InstanceStatusSkipped = "Skipped" 18885 18886 // InstanceStatusUnknown is a InstanceStatus enum value 18887 InstanceStatusUnknown = "Unknown" 18888 18889 // InstanceStatusReady is a InstanceStatus enum value 18890 InstanceStatusReady = "Ready" 18891) 18892 18893const ( 18894 // InstanceTypeBlue is a InstanceType enum value 18895 InstanceTypeBlue = "Blue" 18896 18897 // InstanceTypeGreen is a InstanceType enum value 18898 InstanceTypeGreen = "Green" 18899) 18900 18901const ( 18902 // LifecycleErrorCodeSuccess is a LifecycleErrorCode enum value 18903 LifecycleErrorCodeSuccess = "Success" 18904 18905 // LifecycleErrorCodeScriptMissing is a LifecycleErrorCode enum value 18906 LifecycleErrorCodeScriptMissing = "ScriptMissing" 18907 18908 // LifecycleErrorCodeScriptNotExecutable is a LifecycleErrorCode enum value 18909 LifecycleErrorCodeScriptNotExecutable = "ScriptNotExecutable" 18910 18911 // LifecycleErrorCodeScriptTimedOut is a LifecycleErrorCode enum value 18912 LifecycleErrorCodeScriptTimedOut = "ScriptTimedOut" 18913 18914 // LifecycleErrorCodeScriptFailed is a LifecycleErrorCode enum value 18915 LifecycleErrorCodeScriptFailed = "ScriptFailed" 18916 18917 // LifecycleErrorCodeUnknownError is a LifecycleErrorCode enum value 18918 LifecycleErrorCodeUnknownError = "UnknownError" 18919) 18920 18921const ( 18922 // LifecycleEventStatusPending is a LifecycleEventStatus enum value 18923 LifecycleEventStatusPending = "Pending" 18924 18925 // LifecycleEventStatusInProgress is a LifecycleEventStatus enum value 18926 LifecycleEventStatusInProgress = "InProgress" 18927 18928 // LifecycleEventStatusSucceeded is a LifecycleEventStatus enum value 18929 LifecycleEventStatusSucceeded = "Succeeded" 18930 18931 // LifecycleEventStatusFailed is a LifecycleEventStatus enum value 18932 LifecycleEventStatusFailed = "Failed" 18933 18934 // LifecycleEventStatusSkipped is a LifecycleEventStatus enum value 18935 LifecycleEventStatusSkipped = "Skipped" 18936 18937 // LifecycleEventStatusUnknown is a LifecycleEventStatus enum value 18938 LifecycleEventStatusUnknown = "Unknown" 18939) 18940 18941const ( 18942 // ListStateFilterActionInclude is a ListStateFilterAction enum value 18943 ListStateFilterActionInclude = "include" 18944 18945 // ListStateFilterActionExclude is a ListStateFilterAction enum value 18946 ListStateFilterActionExclude = "exclude" 18947 18948 // ListStateFilterActionIgnore is a ListStateFilterAction enum value 18949 ListStateFilterActionIgnore = "ignore" 18950) 18951 18952const ( 18953 // MinimumHealthyHostsTypeHostCount is a MinimumHealthyHostsType enum value 18954 MinimumHealthyHostsTypeHostCount = "HOST_COUNT" 18955 18956 // MinimumHealthyHostsTypeFleetPercent is a MinimumHealthyHostsType enum value 18957 MinimumHealthyHostsTypeFleetPercent = "FLEET_PERCENT" 18958) 18959 18960const ( 18961 // RegistrationStatusRegistered is a RegistrationStatus enum value 18962 RegistrationStatusRegistered = "Registered" 18963 18964 // RegistrationStatusDeregistered is a RegistrationStatus enum value 18965 RegistrationStatusDeregistered = "Deregistered" 18966) 18967 18968const ( 18969 // RevisionLocationTypeS3 is a RevisionLocationType enum value 18970 RevisionLocationTypeS3 = "S3" 18971 18972 // RevisionLocationTypeGitHub is a RevisionLocationType enum value 18973 RevisionLocationTypeGitHub = "GitHub" 18974 18975 // RevisionLocationTypeString is a RevisionLocationType enum value 18976 RevisionLocationTypeString = "String" 18977 18978 // RevisionLocationTypeAppSpecContent is a RevisionLocationType enum value 18979 RevisionLocationTypeAppSpecContent = "AppSpecContent" 18980) 18981 18982const ( 18983 // SortOrderAscending is a SortOrder enum value 18984 SortOrderAscending = "ascending" 18985 18986 // SortOrderDescending is a SortOrder enum value 18987 SortOrderDescending = "descending" 18988) 18989 18990const ( 18991 // StopStatusPending is a StopStatus enum value 18992 StopStatusPending = "Pending" 18993 18994 // StopStatusSucceeded is a StopStatus enum value 18995 StopStatusSucceeded = "Succeeded" 18996) 18997 18998const ( 18999 // TagFilterTypeKeyOnly is a TagFilterType enum value 19000 TagFilterTypeKeyOnly = "KEY_ONLY" 19001 19002 // TagFilterTypeValueOnly is a TagFilterType enum value 19003 TagFilterTypeValueOnly = "VALUE_ONLY" 19004 19005 // TagFilterTypeKeyAndValue is a TagFilterType enum value 19006 TagFilterTypeKeyAndValue = "KEY_AND_VALUE" 19007) 19008 19009const ( 19010 // TargetFilterNameTargetStatus is a TargetFilterName enum value 19011 TargetFilterNameTargetStatus = "TargetStatus" 19012 19013 // TargetFilterNameServerInstanceLabel is a TargetFilterName enum value 19014 TargetFilterNameServerInstanceLabel = "ServerInstanceLabel" 19015) 19016 19017const ( 19018 // TargetLabelBlue is a TargetLabel enum value 19019 TargetLabelBlue = "Blue" 19020 19021 // TargetLabelGreen is a TargetLabel enum value 19022 TargetLabelGreen = "Green" 19023) 19024 19025const ( 19026 // TargetStatusPending is a TargetStatus enum value 19027 TargetStatusPending = "Pending" 19028 19029 // TargetStatusInProgress is a TargetStatus enum value 19030 TargetStatusInProgress = "InProgress" 19031 19032 // TargetStatusSucceeded is a TargetStatus enum value 19033 TargetStatusSucceeded = "Succeeded" 19034 19035 // TargetStatusFailed is a TargetStatus enum value 19036 TargetStatusFailed = "Failed" 19037 19038 // TargetStatusSkipped is a TargetStatus enum value 19039 TargetStatusSkipped = "Skipped" 19040 19041 // TargetStatusUnknown is a TargetStatus enum value 19042 TargetStatusUnknown = "Unknown" 19043 19044 // TargetStatusReady is a TargetStatus enum value 19045 TargetStatusReady = "Ready" 19046) 19047 19048const ( 19049 // TrafficRoutingTypeTimeBasedCanary is a TrafficRoutingType enum value 19050 TrafficRoutingTypeTimeBasedCanary = "TimeBasedCanary" 19051 19052 // TrafficRoutingTypeTimeBasedLinear is a TrafficRoutingType enum value 19053 TrafficRoutingTypeTimeBasedLinear = "TimeBasedLinear" 19054 19055 // TrafficRoutingTypeAllAtOnce is a TrafficRoutingType enum value 19056 TrafficRoutingTypeAllAtOnce = "AllAtOnce" 19057) 19058 19059const ( 19060 // TriggerEventTypeDeploymentStart is a TriggerEventType enum value 19061 TriggerEventTypeDeploymentStart = "DeploymentStart" 19062 19063 // TriggerEventTypeDeploymentSuccess is a TriggerEventType enum value 19064 TriggerEventTypeDeploymentSuccess = "DeploymentSuccess" 19065 19066 // TriggerEventTypeDeploymentFailure is a TriggerEventType enum value 19067 TriggerEventTypeDeploymentFailure = "DeploymentFailure" 19068 19069 // TriggerEventTypeDeploymentStop is a TriggerEventType enum value 19070 TriggerEventTypeDeploymentStop = "DeploymentStop" 19071 19072 // TriggerEventTypeDeploymentRollback is a TriggerEventType enum value 19073 TriggerEventTypeDeploymentRollback = "DeploymentRollback" 19074 19075 // TriggerEventTypeDeploymentReady is a TriggerEventType enum value 19076 TriggerEventTypeDeploymentReady = "DeploymentReady" 19077 19078 // TriggerEventTypeInstanceStart is a TriggerEventType enum value 19079 TriggerEventTypeInstanceStart = "InstanceStart" 19080 19081 // TriggerEventTypeInstanceSuccess is a TriggerEventType enum value 19082 TriggerEventTypeInstanceSuccess = "InstanceSuccess" 19083 19084 // TriggerEventTypeInstanceFailure is a TriggerEventType enum value 19085 TriggerEventTypeInstanceFailure = "InstanceFailure" 19086 19087 // TriggerEventTypeInstanceReady is a TriggerEventType enum value 19088 TriggerEventTypeInstanceReady = "InstanceReady" 19089) 19090