github.com/aavshr/aws-sdk-go@v1.41.3/service/apprunner/api.go (about) 1 // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. 2 3 package apprunner 4 5 import ( 6 "fmt" 7 "time" 8 9 "github.com/aavshr/aws-sdk-go/aws" 10 "github.com/aavshr/aws-sdk-go/aws/awsutil" 11 "github.com/aavshr/aws-sdk-go/aws/request" 12 "github.com/aavshr/aws-sdk-go/private/protocol" 13 "github.com/aavshr/aws-sdk-go/private/protocol/jsonrpc" 14 ) 15 16 const opAssociateCustomDomain = "AssociateCustomDomain" 17 18 // AssociateCustomDomainRequest generates a "aws/request.Request" representing the 19 // client's request for the AssociateCustomDomain 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 AssociateCustomDomain for more information on using the AssociateCustomDomain 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 AssociateCustomDomainRequest method. 34 // req, resp := client.AssociateCustomDomainRequest(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/apprunner-2020-05-15/AssociateCustomDomain 42 func (c *AppRunner) AssociateCustomDomainRequest(input *AssociateCustomDomainInput) (req *request.Request, output *AssociateCustomDomainOutput) { 43 op := &request.Operation{ 44 Name: opAssociateCustomDomain, 45 HTTPMethod: "POST", 46 HTTPPath: "/", 47 } 48 49 if input == nil { 50 input = &AssociateCustomDomainInput{} 51 } 52 53 output = &AssociateCustomDomainOutput{} 54 req = c.newRequest(op, input, output) 55 return 56 } 57 58 // AssociateCustomDomain API operation for AWS App Runner. 59 // 60 // Associate your own domain name with the App Runner subdomain URL of your 61 // App Runner service. 62 // 63 // After you call AssociateCustomDomain and receive a successful response, use 64 // the information in the CustomDomain record that's returned to add CNAME records 65 // to your Domain Name System (DNS). For each mapped domain name, add a mapping 66 // to the target App Runner subdomain and one or more certificate validation 67 // records. App Runner then performs DNS validation to verify that you own or 68 // control the domain name that you associated. App Runner tracks domain validity 69 // in a certificate stored in AWS Certificate Manager (ACM) (https://docs.aws.amazon.com/acm/latest/userguide). 70 // 71 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 72 // with awserr.Error's Code and Message methods to get detailed information about 73 // the error. 74 // 75 // See the AWS API reference guide for AWS App Runner's 76 // API operation AssociateCustomDomain for usage and error information. 77 // 78 // Returned Error Types: 79 // * InvalidRequestException 80 // One or more input parameters aren't valid. Refer to the API action's document 81 // page, correct the input parameters, and try the action again. 82 // 83 // * InternalServiceErrorException 84 // An unexpected service exception occurred. 85 // 86 // * InvalidStateException 87 // You can't perform this action when the resource is in its current state. 88 // 89 // See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/AssociateCustomDomain 90 func (c *AppRunner) AssociateCustomDomain(input *AssociateCustomDomainInput) (*AssociateCustomDomainOutput, error) { 91 req, out := c.AssociateCustomDomainRequest(input) 92 return out, req.Send() 93 } 94 95 // AssociateCustomDomainWithContext is the same as AssociateCustomDomain with the addition of 96 // the ability to pass a context and additional request options. 97 // 98 // See AssociateCustomDomain for details on how to use this API operation. 99 // 100 // The context must be non-nil and will be used for request cancellation. If 101 // the context is nil a panic will occur. In the future the SDK may create 102 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 103 // for more information on using Contexts. 104 func (c *AppRunner) AssociateCustomDomainWithContext(ctx aws.Context, input *AssociateCustomDomainInput, opts ...request.Option) (*AssociateCustomDomainOutput, error) { 105 req, out := c.AssociateCustomDomainRequest(input) 106 req.SetContext(ctx) 107 req.ApplyOptions(opts...) 108 return out, req.Send() 109 } 110 111 const opCreateAutoScalingConfiguration = "CreateAutoScalingConfiguration" 112 113 // CreateAutoScalingConfigurationRequest generates a "aws/request.Request" representing the 114 // client's request for the CreateAutoScalingConfiguration operation. The "output" return 115 // value will be populated with the request's response once the request completes 116 // successfully. 117 // 118 // Use "Send" method on the returned Request to send the API call to the service. 119 // the "output" return value is not valid until after Send returns without error. 120 // 121 // See CreateAutoScalingConfiguration for more information on using the CreateAutoScalingConfiguration 122 // API call, and error handling. 123 // 124 // This method is useful when you want to inject custom logic or configuration 125 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 126 // 127 // 128 // // Example sending a request using the CreateAutoScalingConfigurationRequest method. 129 // req, resp := client.CreateAutoScalingConfigurationRequest(params) 130 // 131 // err := req.Send() 132 // if err == nil { // resp is now filled 133 // fmt.Println(resp) 134 // } 135 // 136 // See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/CreateAutoScalingConfiguration 137 func (c *AppRunner) CreateAutoScalingConfigurationRequest(input *CreateAutoScalingConfigurationInput) (req *request.Request, output *CreateAutoScalingConfigurationOutput) { 138 op := &request.Operation{ 139 Name: opCreateAutoScalingConfiguration, 140 HTTPMethod: "POST", 141 HTTPPath: "/", 142 } 143 144 if input == nil { 145 input = &CreateAutoScalingConfigurationInput{} 146 } 147 148 output = &CreateAutoScalingConfigurationOutput{} 149 req = c.newRequest(op, input, output) 150 return 151 } 152 153 // CreateAutoScalingConfiguration API operation for AWS App Runner. 154 // 155 // Create an App Runner automatic scaling configuration resource. App Runner 156 // requires this resource when you create App Runner services that require non-default 157 // auto scaling settings. You can share an auto scaling configuration across 158 // multiple services. 159 // 160 // Create multiple revisions of a configuration by using the same AutoScalingConfigurationName 161 // and different AutoScalingConfigurationRevision values. When you create a 162 // service, you can set it to use the latest active revision of an auto scaling 163 // configuration or a specific revision. 164 // 165 // Configure a higher MinSize to increase the spread of your App Runner service 166 // over more Availability Zones in the Amazon Web Services Region. The tradeoff 167 // is a higher minimal cost. 168 // 169 // Configure a lower MaxSize to control your cost. The tradeoff is lower responsiveness 170 // during peak demand. 171 // 172 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 173 // with awserr.Error's Code and Message methods to get detailed information about 174 // the error. 175 // 176 // See the AWS API reference guide for AWS App Runner's 177 // API operation CreateAutoScalingConfiguration for usage and error information. 178 // 179 // Returned Error Types: 180 // * InvalidRequestException 181 // One or more input parameters aren't valid. Refer to the API action's document 182 // page, correct the input parameters, and try the action again. 183 // 184 // * InternalServiceErrorException 185 // An unexpected service exception occurred. 186 // 187 // * ServiceQuotaExceededException 188 // App Runner can't create this resource. You've reached your account quota 189 // for this resource type. 190 // 191 // For App Runner per-resource quotas, see App Runner endpoints and quotas (https://docs.aws.amazon.com/general/latest/gr/apprunner.html) 192 // in the Amazon Web Services General Reference. 193 // 194 // See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/CreateAutoScalingConfiguration 195 func (c *AppRunner) CreateAutoScalingConfiguration(input *CreateAutoScalingConfigurationInput) (*CreateAutoScalingConfigurationOutput, error) { 196 req, out := c.CreateAutoScalingConfigurationRequest(input) 197 return out, req.Send() 198 } 199 200 // CreateAutoScalingConfigurationWithContext is the same as CreateAutoScalingConfiguration with the addition of 201 // the ability to pass a context and additional request options. 202 // 203 // See CreateAutoScalingConfiguration for details on how to use this API operation. 204 // 205 // The context must be non-nil and will be used for request cancellation. If 206 // the context is nil a panic will occur. In the future the SDK may create 207 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 208 // for more information on using Contexts. 209 func (c *AppRunner) CreateAutoScalingConfigurationWithContext(ctx aws.Context, input *CreateAutoScalingConfigurationInput, opts ...request.Option) (*CreateAutoScalingConfigurationOutput, error) { 210 req, out := c.CreateAutoScalingConfigurationRequest(input) 211 req.SetContext(ctx) 212 req.ApplyOptions(opts...) 213 return out, req.Send() 214 } 215 216 const opCreateConnection = "CreateConnection" 217 218 // CreateConnectionRequest generates a "aws/request.Request" representing the 219 // client's request for the CreateConnection operation. The "output" return 220 // value will be populated with the request's response once the request completes 221 // successfully. 222 // 223 // Use "Send" method on the returned Request to send the API call to the service. 224 // the "output" return value is not valid until after Send returns without error. 225 // 226 // See CreateConnection for more information on using the CreateConnection 227 // API call, and error handling. 228 // 229 // This method is useful when you want to inject custom logic or configuration 230 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 231 // 232 // 233 // // Example sending a request using the CreateConnectionRequest method. 234 // req, resp := client.CreateConnectionRequest(params) 235 // 236 // err := req.Send() 237 // if err == nil { // resp is now filled 238 // fmt.Println(resp) 239 // } 240 // 241 // See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/CreateConnection 242 func (c *AppRunner) CreateConnectionRequest(input *CreateConnectionInput) (req *request.Request, output *CreateConnectionOutput) { 243 op := &request.Operation{ 244 Name: opCreateConnection, 245 HTTPMethod: "POST", 246 HTTPPath: "/", 247 } 248 249 if input == nil { 250 input = &CreateConnectionInput{} 251 } 252 253 output = &CreateConnectionOutput{} 254 req = c.newRequest(op, input, output) 255 return 256 } 257 258 // CreateConnection API operation for AWS App Runner. 259 // 260 // Create an App Runner connection resource. App Runner requires a connection 261 // resource when you create App Runner services that access private repositories 262 // from certain third-party providers. You can share a connection across multiple 263 // services. 264 // 265 // A connection resource is needed to access GitHub repositories. GitHub requires 266 // a user interface approval process through the App Runner console before you 267 // can use the connection. 268 // 269 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 270 // with awserr.Error's Code and Message methods to get detailed information about 271 // the error. 272 // 273 // See the AWS API reference guide for AWS App Runner's 274 // API operation CreateConnection for usage and error information. 275 // 276 // Returned Error Types: 277 // * InvalidRequestException 278 // One or more input parameters aren't valid. Refer to the API action's document 279 // page, correct the input parameters, and try the action again. 280 // 281 // * InternalServiceErrorException 282 // An unexpected service exception occurred. 283 // 284 // * ServiceQuotaExceededException 285 // App Runner can't create this resource. You've reached your account quota 286 // for this resource type. 287 // 288 // For App Runner per-resource quotas, see App Runner endpoints and quotas (https://docs.aws.amazon.com/general/latest/gr/apprunner.html) 289 // in the Amazon Web Services General Reference. 290 // 291 // See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/CreateConnection 292 func (c *AppRunner) CreateConnection(input *CreateConnectionInput) (*CreateConnectionOutput, error) { 293 req, out := c.CreateConnectionRequest(input) 294 return out, req.Send() 295 } 296 297 // CreateConnectionWithContext is the same as CreateConnection with the addition of 298 // the ability to pass a context and additional request options. 299 // 300 // See CreateConnection for details on how to use this API operation. 301 // 302 // The context must be non-nil and will be used for request cancellation. If 303 // the context is nil a panic will occur. In the future the SDK may create 304 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 305 // for more information on using Contexts. 306 func (c *AppRunner) CreateConnectionWithContext(ctx aws.Context, input *CreateConnectionInput, opts ...request.Option) (*CreateConnectionOutput, error) { 307 req, out := c.CreateConnectionRequest(input) 308 req.SetContext(ctx) 309 req.ApplyOptions(opts...) 310 return out, req.Send() 311 } 312 313 const opCreateService = "CreateService" 314 315 // CreateServiceRequest generates a "aws/request.Request" representing the 316 // client's request for the CreateService operation. The "output" return 317 // value will be populated with the request's response once the request completes 318 // successfully. 319 // 320 // Use "Send" method on the returned Request to send the API call to the service. 321 // the "output" return value is not valid until after Send returns without error. 322 // 323 // See CreateService for more information on using the CreateService 324 // API call, and error handling. 325 // 326 // This method is useful when you want to inject custom logic or configuration 327 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 328 // 329 // 330 // // Example sending a request using the CreateServiceRequest method. 331 // req, resp := client.CreateServiceRequest(params) 332 // 333 // err := req.Send() 334 // if err == nil { // resp is now filled 335 // fmt.Println(resp) 336 // } 337 // 338 // See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/CreateService 339 func (c *AppRunner) CreateServiceRequest(input *CreateServiceInput) (req *request.Request, output *CreateServiceOutput) { 340 op := &request.Operation{ 341 Name: opCreateService, 342 HTTPMethod: "POST", 343 HTTPPath: "/", 344 } 345 346 if input == nil { 347 input = &CreateServiceInput{} 348 } 349 350 output = &CreateServiceOutput{} 351 req = c.newRequest(op, input, output) 352 return 353 } 354 355 // CreateService API operation for AWS App Runner. 356 // 357 // Create an App Runner service. After the service is created, the action also 358 // automatically starts a deployment. 359 // 360 // This is an asynchronous operation. On a successful call, you can use the 361 // returned OperationId and the ListOperations (https://docs.aws.amazon.com/apprunner/latest/api/API_ListOperations.html) 362 // call to track the operation's progress. 363 // 364 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 365 // with awserr.Error's Code and Message methods to get detailed information about 366 // the error. 367 // 368 // See the AWS API reference guide for AWS App Runner's 369 // API operation CreateService for usage and error information. 370 // 371 // Returned Error Types: 372 // * InvalidRequestException 373 // One or more input parameters aren't valid. Refer to the API action's document 374 // page, correct the input parameters, and try the action again. 375 // 376 // * InternalServiceErrorException 377 // An unexpected service exception occurred. 378 // 379 // * ServiceQuotaExceededException 380 // App Runner can't create this resource. You've reached your account quota 381 // for this resource type. 382 // 383 // For App Runner per-resource quotas, see App Runner endpoints and quotas (https://docs.aws.amazon.com/general/latest/gr/apprunner.html) 384 // in the Amazon Web Services General Reference. 385 // 386 // See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/CreateService 387 func (c *AppRunner) CreateService(input *CreateServiceInput) (*CreateServiceOutput, error) { 388 req, out := c.CreateServiceRequest(input) 389 return out, req.Send() 390 } 391 392 // CreateServiceWithContext is the same as CreateService with the addition of 393 // the ability to pass a context and additional request options. 394 // 395 // See CreateService for details on how to use this API operation. 396 // 397 // The context must be non-nil and will be used for request cancellation. If 398 // the context is nil a panic will occur. In the future the SDK may create 399 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 400 // for more information on using Contexts. 401 func (c *AppRunner) CreateServiceWithContext(ctx aws.Context, input *CreateServiceInput, opts ...request.Option) (*CreateServiceOutput, error) { 402 req, out := c.CreateServiceRequest(input) 403 req.SetContext(ctx) 404 req.ApplyOptions(opts...) 405 return out, req.Send() 406 } 407 408 const opDeleteAutoScalingConfiguration = "DeleteAutoScalingConfiguration" 409 410 // DeleteAutoScalingConfigurationRequest generates a "aws/request.Request" representing the 411 // client's request for the DeleteAutoScalingConfiguration operation. The "output" return 412 // value will be populated with the request's response once the request completes 413 // successfully. 414 // 415 // Use "Send" method on the returned Request to send the API call to the service. 416 // the "output" return value is not valid until after Send returns without error. 417 // 418 // See DeleteAutoScalingConfiguration for more information on using the DeleteAutoScalingConfiguration 419 // API call, and error handling. 420 // 421 // This method is useful when you want to inject custom logic or configuration 422 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 423 // 424 // 425 // // Example sending a request using the DeleteAutoScalingConfigurationRequest method. 426 // req, resp := client.DeleteAutoScalingConfigurationRequest(params) 427 // 428 // err := req.Send() 429 // if err == nil { // resp is now filled 430 // fmt.Println(resp) 431 // } 432 // 433 // See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DeleteAutoScalingConfiguration 434 func (c *AppRunner) DeleteAutoScalingConfigurationRequest(input *DeleteAutoScalingConfigurationInput) (req *request.Request, output *DeleteAutoScalingConfigurationOutput) { 435 op := &request.Operation{ 436 Name: opDeleteAutoScalingConfiguration, 437 HTTPMethod: "POST", 438 HTTPPath: "/", 439 } 440 441 if input == nil { 442 input = &DeleteAutoScalingConfigurationInput{} 443 } 444 445 output = &DeleteAutoScalingConfigurationOutput{} 446 req = c.newRequest(op, input, output) 447 return 448 } 449 450 // DeleteAutoScalingConfiguration API operation for AWS App Runner. 451 // 452 // Delete an App Runner automatic scaling configuration resource. You can delete 453 // a specific revision or the latest active revision. You can't delete a configuration 454 // that's used by one or more App Runner services. 455 // 456 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 457 // with awserr.Error's Code and Message methods to get detailed information about 458 // the error. 459 // 460 // See the AWS API reference guide for AWS App Runner's 461 // API operation DeleteAutoScalingConfiguration for usage and error information. 462 // 463 // Returned Error Types: 464 // * InvalidRequestException 465 // One or more input parameters aren't valid. Refer to the API action's document 466 // page, correct the input parameters, and try the action again. 467 // 468 // * InternalServiceErrorException 469 // An unexpected service exception occurred. 470 // 471 // * ResourceNotFoundException 472 // A resource doesn't exist for the specified Amazon Resource Name (ARN) in 473 // your Amazon Web Services account. 474 // 475 // See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DeleteAutoScalingConfiguration 476 func (c *AppRunner) DeleteAutoScalingConfiguration(input *DeleteAutoScalingConfigurationInput) (*DeleteAutoScalingConfigurationOutput, error) { 477 req, out := c.DeleteAutoScalingConfigurationRequest(input) 478 return out, req.Send() 479 } 480 481 // DeleteAutoScalingConfigurationWithContext is the same as DeleteAutoScalingConfiguration with the addition of 482 // the ability to pass a context and additional request options. 483 // 484 // See DeleteAutoScalingConfiguration for details on how to use this API operation. 485 // 486 // The context must be non-nil and will be used for request cancellation. If 487 // the context is nil a panic will occur. In the future the SDK may create 488 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 489 // for more information on using Contexts. 490 func (c *AppRunner) DeleteAutoScalingConfigurationWithContext(ctx aws.Context, input *DeleteAutoScalingConfigurationInput, opts ...request.Option) (*DeleteAutoScalingConfigurationOutput, error) { 491 req, out := c.DeleteAutoScalingConfigurationRequest(input) 492 req.SetContext(ctx) 493 req.ApplyOptions(opts...) 494 return out, req.Send() 495 } 496 497 const opDeleteConnection = "DeleteConnection" 498 499 // DeleteConnectionRequest generates a "aws/request.Request" representing the 500 // client's request for the DeleteConnection operation. The "output" return 501 // value will be populated with the request's response once the request completes 502 // successfully. 503 // 504 // Use "Send" method on the returned Request to send the API call to the service. 505 // the "output" return value is not valid until after Send returns without error. 506 // 507 // See DeleteConnection for more information on using the DeleteConnection 508 // API call, and error handling. 509 // 510 // This method is useful when you want to inject custom logic or configuration 511 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 512 // 513 // 514 // // Example sending a request using the DeleteConnectionRequest method. 515 // req, resp := client.DeleteConnectionRequest(params) 516 // 517 // err := req.Send() 518 // if err == nil { // resp is now filled 519 // fmt.Println(resp) 520 // } 521 // 522 // See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DeleteConnection 523 func (c *AppRunner) DeleteConnectionRequest(input *DeleteConnectionInput) (req *request.Request, output *DeleteConnectionOutput) { 524 op := &request.Operation{ 525 Name: opDeleteConnection, 526 HTTPMethod: "POST", 527 HTTPPath: "/", 528 } 529 530 if input == nil { 531 input = &DeleteConnectionInput{} 532 } 533 534 output = &DeleteConnectionOutput{} 535 req = c.newRequest(op, input, output) 536 return 537 } 538 539 // DeleteConnection API operation for AWS App Runner. 540 // 541 // Delete an App Runner connection. You must first ensure that there are no 542 // running App Runner services that use this connection. If there are any, the 543 // DeleteConnection action fails. 544 // 545 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 546 // with awserr.Error's Code and Message methods to get detailed information about 547 // the error. 548 // 549 // See the AWS API reference guide for AWS App Runner's 550 // API operation DeleteConnection for usage and error information. 551 // 552 // Returned Error Types: 553 // * InvalidRequestException 554 // One or more input parameters aren't valid. Refer to the API action's document 555 // page, correct the input parameters, and try the action again. 556 // 557 // * ResourceNotFoundException 558 // A resource doesn't exist for the specified Amazon Resource Name (ARN) in 559 // your Amazon Web Services account. 560 // 561 // * InternalServiceErrorException 562 // An unexpected service exception occurred. 563 // 564 // See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DeleteConnection 565 func (c *AppRunner) DeleteConnection(input *DeleteConnectionInput) (*DeleteConnectionOutput, error) { 566 req, out := c.DeleteConnectionRequest(input) 567 return out, req.Send() 568 } 569 570 // DeleteConnectionWithContext is the same as DeleteConnection with the addition of 571 // the ability to pass a context and additional request options. 572 // 573 // See DeleteConnection for details on how to use this API operation. 574 // 575 // The context must be non-nil and will be used for request cancellation. If 576 // the context is nil a panic will occur. In the future the SDK may create 577 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 578 // for more information on using Contexts. 579 func (c *AppRunner) DeleteConnectionWithContext(ctx aws.Context, input *DeleteConnectionInput, opts ...request.Option) (*DeleteConnectionOutput, error) { 580 req, out := c.DeleteConnectionRequest(input) 581 req.SetContext(ctx) 582 req.ApplyOptions(opts...) 583 return out, req.Send() 584 } 585 586 const opDeleteService = "DeleteService" 587 588 // DeleteServiceRequest generates a "aws/request.Request" representing the 589 // client's request for the DeleteService operation. The "output" return 590 // value will be populated with the request's response once the request completes 591 // successfully. 592 // 593 // Use "Send" method on the returned Request to send the API call to the service. 594 // the "output" return value is not valid until after Send returns without error. 595 // 596 // See DeleteService for more information on using the DeleteService 597 // API call, and error handling. 598 // 599 // This method is useful when you want to inject custom logic or configuration 600 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 601 // 602 // 603 // // Example sending a request using the DeleteServiceRequest method. 604 // req, resp := client.DeleteServiceRequest(params) 605 // 606 // err := req.Send() 607 // if err == nil { // resp is now filled 608 // fmt.Println(resp) 609 // } 610 // 611 // See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DeleteService 612 func (c *AppRunner) DeleteServiceRequest(input *DeleteServiceInput) (req *request.Request, output *DeleteServiceOutput) { 613 op := &request.Operation{ 614 Name: opDeleteService, 615 HTTPMethod: "POST", 616 HTTPPath: "/", 617 } 618 619 if input == nil { 620 input = &DeleteServiceInput{} 621 } 622 623 output = &DeleteServiceOutput{} 624 req = c.newRequest(op, input, output) 625 return 626 } 627 628 // DeleteService API operation for AWS App Runner. 629 // 630 // Delete an App Runner service. 631 // 632 // This is an asynchronous operation. On a successful call, you can use the 633 // returned OperationId and the ListOperations call to track the operation's 634 // progress. 635 // 636 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 637 // with awserr.Error's Code and Message methods to get detailed information about 638 // the error. 639 // 640 // See the AWS API reference guide for AWS App Runner's 641 // API operation DeleteService for usage and error information. 642 // 643 // Returned Error Types: 644 // * InvalidRequestException 645 // One or more input parameters aren't valid. Refer to the API action's document 646 // page, correct the input parameters, and try the action again. 647 // 648 // * ResourceNotFoundException 649 // A resource doesn't exist for the specified Amazon Resource Name (ARN) in 650 // your Amazon Web Services account. 651 // 652 // * InvalidStateException 653 // You can't perform this action when the resource is in its current state. 654 // 655 // * InternalServiceErrorException 656 // An unexpected service exception occurred. 657 // 658 // See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DeleteService 659 func (c *AppRunner) DeleteService(input *DeleteServiceInput) (*DeleteServiceOutput, error) { 660 req, out := c.DeleteServiceRequest(input) 661 return out, req.Send() 662 } 663 664 // DeleteServiceWithContext is the same as DeleteService with the addition of 665 // the ability to pass a context and additional request options. 666 // 667 // See DeleteService for details on how to use this API operation. 668 // 669 // The context must be non-nil and will be used for request cancellation. If 670 // the context is nil a panic will occur. In the future the SDK may create 671 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 672 // for more information on using Contexts. 673 func (c *AppRunner) DeleteServiceWithContext(ctx aws.Context, input *DeleteServiceInput, opts ...request.Option) (*DeleteServiceOutput, error) { 674 req, out := c.DeleteServiceRequest(input) 675 req.SetContext(ctx) 676 req.ApplyOptions(opts...) 677 return out, req.Send() 678 } 679 680 const opDescribeAutoScalingConfiguration = "DescribeAutoScalingConfiguration" 681 682 // DescribeAutoScalingConfigurationRequest generates a "aws/request.Request" representing the 683 // client's request for the DescribeAutoScalingConfiguration operation. The "output" return 684 // value will be populated with the request's response once the request completes 685 // successfully. 686 // 687 // Use "Send" method on the returned Request to send the API call to the service. 688 // the "output" return value is not valid until after Send returns without error. 689 // 690 // See DescribeAutoScalingConfiguration for more information on using the DescribeAutoScalingConfiguration 691 // API call, and error handling. 692 // 693 // This method is useful when you want to inject custom logic or configuration 694 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 695 // 696 // 697 // // Example sending a request using the DescribeAutoScalingConfigurationRequest method. 698 // req, resp := client.DescribeAutoScalingConfigurationRequest(params) 699 // 700 // err := req.Send() 701 // if err == nil { // resp is now filled 702 // fmt.Println(resp) 703 // } 704 // 705 // See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DescribeAutoScalingConfiguration 706 func (c *AppRunner) DescribeAutoScalingConfigurationRequest(input *DescribeAutoScalingConfigurationInput) (req *request.Request, output *DescribeAutoScalingConfigurationOutput) { 707 op := &request.Operation{ 708 Name: opDescribeAutoScalingConfiguration, 709 HTTPMethod: "POST", 710 HTTPPath: "/", 711 } 712 713 if input == nil { 714 input = &DescribeAutoScalingConfigurationInput{} 715 } 716 717 output = &DescribeAutoScalingConfigurationOutput{} 718 req = c.newRequest(op, input, output) 719 return 720 } 721 722 // DescribeAutoScalingConfiguration API operation for AWS App Runner. 723 // 724 // Return a full description of an App Runner automatic scaling configuration 725 // resource. 726 // 727 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 728 // with awserr.Error's Code and Message methods to get detailed information about 729 // the error. 730 // 731 // See the AWS API reference guide for AWS App Runner's 732 // API operation DescribeAutoScalingConfiguration for usage and error information. 733 // 734 // Returned Error Types: 735 // * InvalidRequestException 736 // One or more input parameters aren't valid. Refer to the API action's document 737 // page, correct the input parameters, and try the action again. 738 // 739 // * InternalServiceErrorException 740 // An unexpected service exception occurred. 741 // 742 // * ResourceNotFoundException 743 // A resource doesn't exist for the specified Amazon Resource Name (ARN) in 744 // your Amazon Web Services account. 745 // 746 // See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DescribeAutoScalingConfiguration 747 func (c *AppRunner) DescribeAutoScalingConfiguration(input *DescribeAutoScalingConfigurationInput) (*DescribeAutoScalingConfigurationOutput, error) { 748 req, out := c.DescribeAutoScalingConfigurationRequest(input) 749 return out, req.Send() 750 } 751 752 // DescribeAutoScalingConfigurationWithContext is the same as DescribeAutoScalingConfiguration with the addition of 753 // the ability to pass a context and additional request options. 754 // 755 // See DescribeAutoScalingConfiguration for details on how to use this API operation. 756 // 757 // The context must be non-nil and will be used for request cancellation. If 758 // the context is nil a panic will occur. In the future the SDK may create 759 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 760 // for more information on using Contexts. 761 func (c *AppRunner) DescribeAutoScalingConfigurationWithContext(ctx aws.Context, input *DescribeAutoScalingConfigurationInput, opts ...request.Option) (*DescribeAutoScalingConfigurationOutput, error) { 762 req, out := c.DescribeAutoScalingConfigurationRequest(input) 763 req.SetContext(ctx) 764 req.ApplyOptions(opts...) 765 return out, req.Send() 766 } 767 768 const opDescribeCustomDomains = "DescribeCustomDomains" 769 770 // DescribeCustomDomainsRequest generates a "aws/request.Request" representing the 771 // client's request for the DescribeCustomDomains operation. The "output" return 772 // value will be populated with the request's response once the request completes 773 // successfully. 774 // 775 // Use "Send" method on the returned Request to send the API call to the service. 776 // the "output" return value is not valid until after Send returns without error. 777 // 778 // See DescribeCustomDomains for more information on using the DescribeCustomDomains 779 // API call, and error handling. 780 // 781 // This method is useful when you want to inject custom logic or configuration 782 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 783 // 784 // 785 // // Example sending a request using the DescribeCustomDomainsRequest method. 786 // req, resp := client.DescribeCustomDomainsRequest(params) 787 // 788 // err := req.Send() 789 // if err == nil { // resp is now filled 790 // fmt.Println(resp) 791 // } 792 // 793 // See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DescribeCustomDomains 794 func (c *AppRunner) DescribeCustomDomainsRequest(input *DescribeCustomDomainsInput) (req *request.Request, output *DescribeCustomDomainsOutput) { 795 op := &request.Operation{ 796 Name: opDescribeCustomDomains, 797 HTTPMethod: "POST", 798 HTTPPath: "/", 799 Paginator: &request.Paginator{ 800 InputTokens: []string{"NextToken"}, 801 OutputTokens: []string{"NextToken"}, 802 LimitToken: "MaxResults", 803 TruncationToken: "", 804 }, 805 } 806 807 if input == nil { 808 input = &DescribeCustomDomainsInput{} 809 } 810 811 output = &DescribeCustomDomainsOutput{} 812 req = c.newRequest(op, input, output) 813 return 814 } 815 816 // DescribeCustomDomains API operation for AWS App Runner. 817 // 818 // Return a description of custom domain names that are associated with an App 819 // Runner service. 820 // 821 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 822 // with awserr.Error's Code and Message methods to get detailed information about 823 // the error. 824 // 825 // See the AWS API reference guide for AWS App Runner's 826 // API operation DescribeCustomDomains for usage and error information. 827 // 828 // Returned Error Types: 829 // * InvalidRequestException 830 // One or more input parameters aren't valid. Refer to the API action's document 831 // page, correct the input parameters, and try the action again. 832 // 833 // * InternalServiceErrorException 834 // An unexpected service exception occurred. 835 // 836 // * ResourceNotFoundException 837 // A resource doesn't exist for the specified Amazon Resource Name (ARN) in 838 // your Amazon Web Services account. 839 // 840 // See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DescribeCustomDomains 841 func (c *AppRunner) DescribeCustomDomains(input *DescribeCustomDomainsInput) (*DescribeCustomDomainsOutput, error) { 842 req, out := c.DescribeCustomDomainsRequest(input) 843 return out, req.Send() 844 } 845 846 // DescribeCustomDomainsWithContext is the same as DescribeCustomDomains with the addition of 847 // the ability to pass a context and additional request options. 848 // 849 // See DescribeCustomDomains for details on how to use this API operation. 850 // 851 // The context must be non-nil and will be used for request cancellation. If 852 // the context is nil a panic will occur. In the future the SDK may create 853 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 854 // for more information on using Contexts. 855 func (c *AppRunner) DescribeCustomDomainsWithContext(ctx aws.Context, input *DescribeCustomDomainsInput, opts ...request.Option) (*DescribeCustomDomainsOutput, error) { 856 req, out := c.DescribeCustomDomainsRequest(input) 857 req.SetContext(ctx) 858 req.ApplyOptions(opts...) 859 return out, req.Send() 860 } 861 862 // DescribeCustomDomainsPages iterates over the pages of a DescribeCustomDomains operation, 863 // calling the "fn" function with the response data for each page. To stop 864 // iterating, return false from the fn function. 865 // 866 // See DescribeCustomDomains method for more information on how to use this operation. 867 // 868 // Note: This operation can generate multiple requests to a service. 869 // 870 // // Example iterating over at most 3 pages of a DescribeCustomDomains operation. 871 // pageNum := 0 872 // err := client.DescribeCustomDomainsPages(params, 873 // func(page *apprunner.DescribeCustomDomainsOutput, lastPage bool) bool { 874 // pageNum++ 875 // fmt.Println(page) 876 // return pageNum <= 3 877 // }) 878 // 879 func (c *AppRunner) DescribeCustomDomainsPages(input *DescribeCustomDomainsInput, fn func(*DescribeCustomDomainsOutput, bool) bool) error { 880 return c.DescribeCustomDomainsPagesWithContext(aws.BackgroundContext(), input, fn) 881 } 882 883 // DescribeCustomDomainsPagesWithContext same as DescribeCustomDomainsPages except 884 // it takes a Context and allows setting request options on the pages. 885 // 886 // The context must be non-nil and will be used for request cancellation. If 887 // the context is nil a panic will occur. In the future the SDK may create 888 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 889 // for more information on using Contexts. 890 func (c *AppRunner) DescribeCustomDomainsPagesWithContext(ctx aws.Context, input *DescribeCustomDomainsInput, fn func(*DescribeCustomDomainsOutput, bool) bool, opts ...request.Option) error { 891 p := request.Pagination{ 892 NewRequest: func() (*request.Request, error) { 893 var inCpy *DescribeCustomDomainsInput 894 if input != nil { 895 tmp := *input 896 inCpy = &tmp 897 } 898 req, _ := c.DescribeCustomDomainsRequest(inCpy) 899 req.SetContext(ctx) 900 req.ApplyOptions(opts...) 901 return req, nil 902 }, 903 } 904 905 for p.Next() { 906 if !fn(p.Page().(*DescribeCustomDomainsOutput), !p.HasNextPage()) { 907 break 908 } 909 } 910 911 return p.Err() 912 } 913 914 const opDescribeService = "DescribeService" 915 916 // DescribeServiceRequest generates a "aws/request.Request" representing the 917 // client's request for the DescribeService operation. The "output" return 918 // value will be populated with the request's response once the request completes 919 // successfully. 920 // 921 // Use "Send" method on the returned Request to send the API call to the service. 922 // the "output" return value is not valid until after Send returns without error. 923 // 924 // See DescribeService for more information on using the DescribeService 925 // API call, and error handling. 926 // 927 // This method is useful when you want to inject custom logic or configuration 928 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 929 // 930 // 931 // // Example sending a request using the DescribeServiceRequest method. 932 // req, resp := client.DescribeServiceRequest(params) 933 // 934 // err := req.Send() 935 // if err == nil { // resp is now filled 936 // fmt.Println(resp) 937 // } 938 // 939 // See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DescribeService 940 func (c *AppRunner) DescribeServiceRequest(input *DescribeServiceInput) (req *request.Request, output *DescribeServiceOutput) { 941 op := &request.Operation{ 942 Name: opDescribeService, 943 HTTPMethod: "POST", 944 HTTPPath: "/", 945 } 946 947 if input == nil { 948 input = &DescribeServiceInput{} 949 } 950 951 output = &DescribeServiceOutput{} 952 req = c.newRequest(op, input, output) 953 return 954 } 955 956 // DescribeService API operation for AWS App Runner. 957 // 958 // Return a full description of an App Runner service. 959 // 960 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 961 // with awserr.Error's Code and Message methods to get detailed information about 962 // the error. 963 // 964 // See the AWS API reference guide for AWS App Runner's 965 // API operation DescribeService for usage and error information. 966 // 967 // Returned Error Types: 968 // * InvalidRequestException 969 // One or more input parameters aren't valid. Refer to the API action's document 970 // page, correct the input parameters, and try the action again. 971 // 972 // * ResourceNotFoundException 973 // A resource doesn't exist for the specified Amazon Resource Name (ARN) in 974 // your Amazon Web Services account. 975 // 976 // * InternalServiceErrorException 977 // An unexpected service exception occurred. 978 // 979 // See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DescribeService 980 func (c *AppRunner) DescribeService(input *DescribeServiceInput) (*DescribeServiceOutput, error) { 981 req, out := c.DescribeServiceRequest(input) 982 return out, req.Send() 983 } 984 985 // DescribeServiceWithContext is the same as DescribeService with the addition of 986 // the ability to pass a context and additional request options. 987 // 988 // See DescribeService for details on how to use this API operation. 989 // 990 // The context must be non-nil and will be used for request cancellation. If 991 // the context is nil a panic will occur. In the future the SDK may create 992 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 993 // for more information on using Contexts. 994 func (c *AppRunner) DescribeServiceWithContext(ctx aws.Context, input *DescribeServiceInput, opts ...request.Option) (*DescribeServiceOutput, error) { 995 req, out := c.DescribeServiceRequest(input) 996 req.SetContext(ctx) 997 req.ApplyOptions(opts...) 998 return out, req.Send() 999 } 1000 1001 const opDisassociateCustomDomain = "DisassociateCustomDomain" 1002 1003 // DisassociateCustomDomainRequest generates a "aws/request.Request" representing the 1004 // client's request for the DisassociateCustomDomain operation. The "output" return 1005 // value will be populated with the request's response once the request completes 1006 // successfully. 1007 // 1008 // Use "Send" method on the returned Request to send the API call to the service. 1009 // the "output" return value is not valid until after Send returns without error. 1010 // 1011 // See DisassociateCustomDomain for more information on using the DisassociateCustomDomain 1012 // API call, and error handling. 1013 // 1014 // This method is useful when you want to inject custom logic or configuration 1015 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 1016 // 1017 // 1018 // // Example sending a request using the DisassociateCustomDomainRequest method. 1019 // req, resp := client.DisassociateCustomDomainRequest(params) 1020 // 1021 // err := req.Send() 1022 // if err == nil { // resp is now filled 1023 // fmt.Println(resp) 1024 // } 1025 // 1026 // See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DisassociateCustomDomain 1027 func (c *AppRunner) DisassociateCustomDomainRequest(input *DisassociateCustomDomainInput) (req *request.Request, output *DisassociateCustomDomainOutput) { 1028 op := &request.Operation{ 1029 Name: opDisassociateCustomDomain, 1030 HTTPMethod: "POST", 1031 HTTPPath: "/", 1032 } 1033 1034 if input == nil { 1035 input = &DisassociateCustomDomainInput{} 1036 } 1037 1038 output = &DisassociateCustomDomainOutput{} 1039 req = c.newRequest(op, input, output) 1040 return 1041 } 1042 1043 // DisassociateCustomDomain API operation for AWS App Runner. 1044 // 1045 // Disassociate a custom domain name from an App Runner service. 1046 // 1047 // Certificates tracking domain validity are associated with a custom domain 1048 // and are stored in AWS Certificate Manager (ACM) (https://docs.aws.amazon.com/acm/latest/userguide). 1049 // These certificates aren't deleted as part of this action. App Runner delays 1050 // certificate deletion for 30 days after a domain is disassociated from your 1051 // service. 1052 // 1053 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1054 // with awserr.Error's Code and Message methods to get detailed information about 1055 // the error. 1056 // 1057 // See the AWS API reference guide for AWS App Runner's 1058 // API operation DisassociateCustomDomain for usage and error information. 1059 // 1060 // Returned Error Types: 1061 // * InvalidRequestException 1062 // One or more input parameters aren't valid. Refer to the API action's document 1063 // page, correct the input parameters, and try the action again. 1064 // 1065 // * InternalServiceErrorException 1066 // An unexpected service exception occurred. 1067 // 1068 // * ResourceNotFoundException 1069 // A resource doesn't exist for the specified Amazon Resource Name (ARN) in 1070 // your Amazon Web Services account. 1071 // 1072 // * InvalidStateException 1073 // You can't perform this action when the resource is in its current state. 1074 // 1075 // See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/DisassociateCustomDomain 1076 func (c *AppRunner) DisassociateCustomDomain(input *DisassociateCustomDomainInput) (*DisassociateCustomDomainOutput, error) { 1077 req, out := c.DisassociateCustomDomainRequest(input) 1078 return out, req.Send() 1079 } 1080 1081 // DisassociateCustomDomainWithContext is the same as DisassociateCustomDomain with the addition of 1082 // the ability to pass a context and additional request options. 1083 // 1084 // See DisassociateCustomDomain for details on how to use this API operation. 1085 // 1086 // The context must be non-nil and will be used for request cancellation. If 1087 // the context is nil a panic will occur. In the future the SDK may create 1088 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1089 // for more information on using Contexts. 1090 func (c *AppRunner) DisassociateCustomDomainWithContext(ctx aws.Context, input *DisassociateCustomDomainInput, opts ...request.Option) (*DisassociateCustomDomainOutput, error) { 1091 req, out := c.DisassociateCustomDomainRequest(input) 1092 req.SetContext(ctx) 1093 req.ApplyOptions(opts...) 1094 return out, req.Send() 1095 } 1096 1097 const opListAutoScalingConfigurations = "ListAutoScalingConfigurations" 1098 1099 // ListAutoScalingConfigurationsRequest generates a "aws/request.Request" representing the 1100 // client's request for the ListAutoScalingConfigurations operation. The "output" return 1101 // value will be populated with the request's response once the request completes 1102 // successfully. 1103 // 1104 // Use "Send" method on the returned Request to send the API call to the service. 1105 // the "output" return value is not valid until after Send returns without error. 1106 // 1107 // See ListAutoScalingConfigurations for more information on using the ListAutoScalingConfigurations 1108 // API call, and error handling. 1109 // 1110 // This method is useful when you want to inject custom logic or configuration 1111 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 1112 // 1113 // 1114 // // Example sending a request using the ListAutoScalingConfigurationsRequest method. 1115 // req, resp := client.ListAutoScalingConfigurationsRequest(params) 1116 // 1117 // err := req.Send() 1118 // if err == nil { // resp is now filled 1119 // fmt.Println(resp) 1120 // } 1121 // 1122 // See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/ListAutoScalingConfigurations 1123 func (c *AppRunner) ListAutoScalingConfigurationsRequest(input *ListAutoScalingConfigurationsInput) (req *request.Request, output *ListAutoScalingConfigurationsOutput) { 1124 op := &request.Operation{ 1125 Name: opListAutoScalingConfigurations, 1126 HTTPMethod: "POST", 1127 HTTPPath: "/", 1128 Paginator: &request.Paginator{ 1129 InputTokens: []string{"NextToken"}, 1130 OutputTokens: []string{"NextToken"}, 1131 LimitToken: "MaxResults", 1132 TruncationToken: "", 1133 }, 1134 } 1135 1136 if input == nil { 1137 input = &ListAutoScalingConfigurationsInput{} 1138 } 1139 1140 output = &ListAutoScalingConfigurationsOutput{} 1141 req = c.newRequest(op, input, output) 1142 return 1143 } 1144 1145 // ListAutoScalingConfigurations API operation for AWS App Runner. 1146 // 1147 // Returns a list of App Runner automatic scaling configurations in your Amazon 1148 // Web Services account. You can query the revisions for a specific configuration 1149 // name or the revisions for all configurations in your account. You can optionally 1150 // query only the latest revision of each requested name. 1151 // 1152 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1153 // with awserr.Error's Code and Message methods to get detailed information about 1154 // the error. 1155 // 1156 // See the AWS API reference guide for AWS App Runner's 1157 // API operation ListAutoScalingConfigurations for usage and error information. 1158 // 1159 // Returned Error Types: 1160 // * InvalidRequestException 1161 // One or more input parameters aren't valid. Refer to the API action's document 1162 // page, correct the input parameters, and try the action again. 1163 // 1164 // * InternalServiceErrorException 1165 // An unexpected service exception occurred. 1166 // 1167 // See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/ListAutoScalingConfigurations 1168 func (c *AppRunner) ListAutoScalingConfigurations(input *ListAutoScalingConfigurationsInput) (*ListAutoScalingConfigurationsOutput, error) { 1169 req, out := c.ListAutoScalingConfigurationsRequest(input) 1170 return out, req.Send() 1171 } 1172 1173 // ListAutoScalingConfigurationsWithContext is the same as ListAutoScalingConfigurations with the addition of 1174 // the ability to pass a context and additional request options. 1175 // 1176 // See ListAutoScalingConfigurations for details on how to use this API operation. 1177 // 1178 // The context must be non-nil and will be used for request cancellation. If 1179 // the context is nil a panic will occur. In the future the SDK may create 1180 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1181 // for more information on using Contexts. 1182 func (c *AppRunner) ListAutoScalingConfigurationsWithContext(ctx aws.Context, input *ListAutoScalingConfigurationsInput, opts ...request.Option) (*ListAutoScalingConfigurationsOutput, error) { 1183 req, out := c.ListAutoScalingConfigurationsRequest(input) 1184 req.SetContext(ctx) 1185 req.ApplyOptions(opts...) 1186 return out, req.Send() 1187 } 1188 1189 // ListAutoScalingConfigurationsPages iterates over the pages of a ListAutoScalingConfigurations operation, 1190 // calling the "fn" function with the response data for each page. To stop 1191 // iterating, return false from the fn function. 1192 // 1193 // See ListAutoScalingConfigurations method for more information on how to use this operation. 1194 // 1195 // Note: This operation can generate multiple requests to a service. 1196 // 1197 // // Example iterating over at most 3 pages of a ListAutoScalingConfigurations operation. 1198 // pageNum := 0 1199 // err := client.ListAutoScalingConfigurationsPages(params, 1200 // func(page *apprunner.ListAutoScalingConfigurationsOutput, lastPage bool) bool { 1201 // pageNum++ 1202 // fmt.Println(page) 1203 // return pageNum <= 3 1204 // }) 1205 // 1206 func (c *AppRunner) ListAutoScalingConfigurationsPages(input *ListAutoScalingConfigurationsInput, fn func(*ListAutoScalingConfigurationsOutput, bool) bool) error { 1207 return c.ListAutoScalingConfigurationsPagesWithContext(aws.BackgroundContext(), input, fn) 1208 } 1209 1210 // ListAutoScalingConfigurationsPagesWithContext same as ListAutoScalingConfigurationsPages except 1211 // it takes a Context and allows setting request options on the pages. 1212 // 1213 // The context must be non-nil and will be used for request cancellation. If 1214 // the context is nil a panic will occur. In the future the SDK may create 1215 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1216 // for more information on using Contexts. 1217 func (c *AppRunner) ListAutoScalingConfigurationsPagesWithContext(ctx aws.Context, input *ListAutoScalingConfigurationsInput, fn func(*ListAutoScalingConfigurationsOutput, bool) bool, opts ...request.Option) error { 1218 p := request.Pagination{ 1219 NewRequest: func() (*request.Request, error) { 1220 var inCpy *ListAutoScalingConfigurationsInput 1221 if input != nil { 1222 tmp := *input 1223 inCpy = &tmp 1224 } 1225 req, _ := c.ListAutoScalingConfigurationsRequest(inCpy) 1226 req.SetContext(ctx) 1227 req.ApplyOptions(opts...) 1228 return req, nil 1229 }, 1230 } 1231 1232 for p.Next() { 1233 if !fn(p.Page().(*ListAutoScalingConfigurationsOutput), !p.HasNextPage()) { 1234 break 1235 } 1236 } 1237 1238 return p.Err() 1239 } 1240 1241 const opListConnections = "ListConnections" 1242 1243 // ListConnectionsRequest generates a "aws/request.Request" representing the 1244 // client's request for the ListConnections operation. The "output" return 1245 // value will be populated with the request's response once the request completes 1246 // successfully. 1247 // 1248 // Use "Send" method on the returned Request to send the API call to the service. 1249 // the "output" return value is not valid until after Send returns without error. 1250 // 1251 // See ListConnections for more information on using the ListConnections 1252 // API call, and error handling. 1253 // 1254 // This method is useful when you want to inject custom logic or configuration 1255 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 1256 // 1257 // 1258 // // Example sending a request using the ListConnectionsRequest method. 1259 // req, resp := client.ListConnectionsRequest(params) 1260 // 1261 // err := req.Send() 1262 // if err == nil { // resp is now filled 1263 // fmt.Println(resp) 1264 // } 1265 // 1266 // See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/ListConnections 1267 func (c *AppRunner) ListConnectionsRequest(input *ListConnectionsInput) (req *request.Request, output *ListConnectionsOutput) { 1268 op := &request.Operation{ 1269 Name: opListConnections, 1270 HTTPMethod: "POST", 1271 HTTPPath: "/", 1272 Paginator: &request.Paginator{ 1273 InputTokens: []string{"NextToken"}, 1274 OutputTokens: []string{"NextToken"}, 1275 LimitToken: "MaxResults", 1276 TruncationToken: "", 1277 }, 1278 } 1279 1280 if input == nil { 1281 input = &ListConnectionsInput{} 1282 } 1283 1284 output = &ListConnectionsOutput{} 1285 req = c.newRequest(op, input, output) 1286 return 1287 } 1288 1289 // ListConnections API operation for AWS App Runner. 1290 // 1291 // Returns a list of App Runner connections that are associated with your Amazon 1292 // Web Services account. 1293 // 1294 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1295 // with awserr.Error's Code and Message methods to get detailed information about 1296 // the error. 1297 // 1298 // See the AWS API reference guide for AWS App Runner's 1299 // API operation ListConnections for usage and error information. 1300 // 1301 // Returned Error Types: 1302 // * InvalidRequestException 1303 // One or more input parameters aren't valid. Refer to the API action's document 1304 // page, correct the input parameters, and try the action again. 1305 // 1306 // * InternalServiceErrorException 1307 // An unexpected service exception occurred. 1308 // 1309 // See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/ListConnections 1310 func (c *AppRunner) ListConnections(input *ListConnectionsInput) (*ListConnectionsOutput, error) { 1311 req, out := c.ListConnectionsRequest(input) 1312 return out, req.Send() 1313 } 1314 1315 // ListConnectionsWithContext is the same as ListConnections with the addition of 1316 // the ability to pass a context and additional request options. 1317 // 1318 // See ListConnections for details on how to use this API operation. 1319 // 1320 // The context must be non-nil and will be used for request cancellation. If 1321 // the context is nil a panic will occur. In the future the SDK may create 1322 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1323 // for more information on using Contexts. 1324 func (c *AppRunner) ListConnectionsWithContext(ctx aws.Context, input *ListConnectionsInput, opts ...request.Option) (*ListConnectionsOutput, error) { 1325 req, out := c.ListConnectionsRequest(input) 1326 req.SetContext(ctx) 1327 req.ApplyOptions(opts...) 1328 return out, req.Send() 1329 } 1330 1331 // ListConnectionsPages iterates over the pages of a ListConnections operation, 1332 // calling the "fn" function with the response data for each page. To stop 1333 // iterating, return false from the fn function. 1334 // 1335 // See ListConnections method for more information on how to use this operation. 1336 // 1337 // Note: This operation can generate multiple requests to a service. 1338 // 1339 // // Example iterating over at most 3 pages of a ListConnections operation. 1340 // pageNum := 0 1341 // err := client.ListConnectionsPages(params, 1342 // func(page *apprunner.ListConnectionsOutput, lastPage bool) bool { 1343 // pageNum++ 1344 // fmt.Println(page) 1345 // return pageNum <= 3 1346 // }) 1347 // 1348 func (c *AppRunner) ListConnectionsPages(input *ListConnectionsInput, fn func(*ListConnectionsOutput, bool) bool) error { 1349 return c.ListConnectionsPagesWithContext(aws.BackgroundContext(), input, fn) 1350 } 1351 1352 // ListConnectionsPagesWithContext same as ListConnectionsPages except 1353 // it takes a Context and allows setting request options on the pages. 1354 // 1355 // The context must be non-nil and will be used for request cancellation. If 1356 // the context is nil a panic will occur. In the future the SDK may create 1357 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1358 // for more information on using Contexts. 1359 func (c *AppRunner) ListConnectionsPagesWithContext(ctx aws.Context, input *ListConnectionsInput, fn func(*ListConnectionsOutput, bool) bool, opts ...request.Option) error { 1360 p := request.Pagination{ 1361 NewRequest: func() (*request.Request, error) { 1362 var inCpy *ListConnectionsInput 1363 if input != nil { 1364 tmp := *input 1365 inCpy = &tmp 1366 } 1367 req, _ := c.ListConnectionsRequest(inCpy) 1368 req.SetContext(ctx) 1369 req.ApplyOptions(opts...) 1370 return req, nil 1371 }, 1372 } 1373 1374 for p.Next() { 1375 if !fn(p.Page().(*ListConnectionsOutput), !p.HasNextPage()) { 1376 break 1377 } 1378 } 1379 1380 return p.Err() 1381 } 1382 1383 const opListOperations = "ListOperations" 1384 1385 // ListOperationsRequest generates a "aws/request.Request" representing the 1386 // client's request for the ListOperations operation. The "output" return 1387 // value will be populated with the request's response once the request completes 1388 // successfully. 1389 // 1390 // Use "Send" method on the returned Request to send the API call to the service. 1391 // the "output" return value is not valid until after Send returns without error. 1392 // 1393 // See ListOperations for more information on using the ListOperations 1394 // API call, and error handling. 1395 // 1396 // This method is useful when you want to inject custom logic or configuration 1397 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 1398 // 1399 // 1400 // // Example sending a request using the ListOperationsRequest method. 1401 // req, resp := client.ListOperationsRequest(params) 1402 // 1403 // err := req.Send() 1404 // if err == nil { // resp is now filled 1405 // fmt.Println(resp) 1406 // } 1407 // 1408 // See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/ListOperations 1409 func (c *AppRunner) ListOperationsRequest(input *ListOperationsInput) (req *request.Request, output *ListOperationsOutput) { 1410 op := &request.Operation{ 1411 Name: opListOperations, 1412 HTTPMethod: "POST", 1413 HTTPPath: "/", 1414 Paginator: &request.Paginator{ 1415 InputTokens: []string{"NextToken"}, 1416 OutputTokens: []string{"NextToken"}, 1417 LimitToken: "MaxResults", 1418 TruncationToken: "", 1419 }, 1420 } 1421 1422 if input == nil { 1423 input = &ListOperationsInput{} 1424 } 1425 1426 output = &ListOperationsOutput{} 1427 req = c.newRequest(op, input, output) 1428 return 1429 } 1430 1431 // ListOperations API operation for AWS App Runner. 1432 // 1433 // Return a list of operations that occurred on an App Runner service. 1434 // 1435 // The resulting list of OperationSummary objects is sorted in reverse chronological 1436 // order. The first object on the list represents the last started operation. 1437 // 1438 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1439 // with awserr.Error's Code and Message methods to get detailed information about 1440 // the error. 1441 // 1442 // See the AWS API reference guide for AWS App Runner's 1443 // API operation ListOperations for usage and error information. 1444 // 1445 // Returned Error Types: 1446 // * InvalidRequestException 1447 // One or more input parameters aren't valid. Refer to the API action's document 1448 // page, correct the input parameters, and try the action again. 1449 // 1450 // * InternalServiceErrorException 1451 // An unexpected service exception occurred. 1452 // 1453 // * ResourceNotFoundException 1454 // A resource doesn't exist for the specified Amazon Resource Name (ARN) in 1455 // your Amazon Web Services account. 1456 // 1457 // See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/ListOperations 1458 func (c *AppRunner) ListOperations(input *ListOperationsInput) (*ListOperationsOutput, error) { 1459 req, out := c.ListOperationsRequest(input) 1460 return out, req.Send() 1461 } 1462 1463 // ListOperationsWithContext is the same as ListOperations with the addition of 1464 // the ability to pass a context and additional request options. 1465 // 1466 // See ListOperations for details on how to use this API operation. 1467 // 1468 // The context must be non-nil and will be used for request cancellation. If 1469 // the context is nil a panic will occur. In the future the SDK may create 1470 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1471 // for more information on using Contexts. 1472 func (c *AppRunner) ListOperationsWithContext(ctx aws.Context, input *ListOperationsInput, opts ...request.Option) (*ListOperationsOutput, error) { 1473 req, out := c.ListOperationsRequest(input) 1474 req.SetContext(ctx) 1475 req.ApplyOptions(opts...) 1476 return out, req.Send() 1477 } 1478 1479 // ListOperationsPages iterates over the pages of a ListOperations operation, 1480 // calling the "fn" function with the response data for each page. To stop 1481 // iterating, return false from the fn function. 1482 // 1483 // See ListOperations method for more information on how to use this operation. 1484 // 1485 // Note: This operation can generate multiple requests to a service. 1486 // 1487 // // Example iterating over at most 3 pages of a ListOperations operation. 1488 // pageNum := 0 1489 // err := client.ListOperationsPages(params, 1490 // func(page *apprunner.ListOperationsOutput, lastPage bool) bool { 1491 // pageNum++ 1492 // fmt.Println(page) 1493 // return pageNum <= 3 1494 // }) 1495 // 1496 func (c *AppRunner) ListOperationsPages(input *ListOperationsInput, fn func(*ListOperationsOutput, bool) bool) error { 1497 return c.ListOperationsPagesWithContext(aws.BackgroundContext(), input, fn) 1498 } 1499 1500 // ListOperationsPagesWithContext same as ListOperationsPages except 1501 // it takes a Context and allows setting request options on the pages. 1502 // 1503 // The context must be non-nil and will be used for request cancellation. If 1504 // the context is nil a panic will occur. In the future the SDK may create 1505 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1506 // for more information on using Contexts. 1507 func (c *AppRunner) ListOperationsPagesWithContext(ctx aws.Context, input *ListOperationsInput, fn func(*ListOperationsOutput, bool) bool, opts ...request.Option) error { 1508 p := request.Pagination{ 1509 NewRequest: func() (*request.Request, error) { 1510 var inCpy *ListOperationsInput 1511 if input != nil { 1512 tmp := *input 1513 inCpy = &tmp 1514 } 1515 req, _ := c.ListOperationsRequest(inCpy) 1516 req.SetContext(ctx) 1517 req.ApplyOptions(opts...) 1518 return req, nil 1519 }, 1520 } 1521 1522 for p.Next() { 1523 if !fn(p.Page().(*ListOperationsOutput), !p.HasNextPage()) { 1524 break 1525 } 1526 } 1527 1528 return p.Err() 1529 } 1530 1531 const opListServices = "ListServices" 1532 1533 // ListServicesRequest generates a "aws/request.Request" representing the 1534 // client's request for the ListServices operation. The "output" return 1535 // value will be populated with the request's response once the request completes 1536 // successfully. 1537 // 1538 // Use "Send" method on the returned Request to send the API call to the service. 1539 // the "output" return value is not valid until after Send returns without error. 1540 // 1541 // See ListServices for more information on using the ListServices 1542 // API call, and error handling. 1543 // 1544 // This method is useful when you want to inject custom logic or configuration 1545 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 1546 // 1547 // 1548 // // Example sending a request using the ListServicesRequest method. 1549 // req, resp := client.ListServicesRequest(params) 1550 // 1551 // err := req.Send() 1552 // if err == nil { // resp is now filled 1553 // fmt.Println(resp) 1554 // } 1555 // 1556 // See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/ListServices 1557 func (c *AppRunner) ListServicesRequest(input *ListServicesInput) (req *request.Request, output *ListServicesOutput) { 1558 op := &request.Operation{ 1559 Name: opListServices, 1560 HTTPMethod: "POST", 1561 HTTPPath: "/", 1562 Paginator: &request.Paginator{ 1563 InputTokens: []string{"NextToken"}, 1564 OutputTokens: []string{"NextToken"}, 1565 LimitToken: "MaxResults", 1566 TruncationToken: "", 1567 }, 1568 } 1569 1570 if input == nil { 1571 input = &ListServicesInput{} 1572 } 1573 1574 output = &ListServicesOutput{} 1575 req = c.newRequest(op, input, output) 1576 return 1577 } 1578 1579 // ListServices API operation for AWS App Runner. 1580 // 1581 // Returns a list of running App Runner services in your Amazon Web Services 1582 // account. 1583 // 1584 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1585 // with awserr.Error's Code and Message methods to get detailed information about 1586 // the error. 1587 // 1588 // See the AWS API reference guide for AWS App Runner's 1589 // API operation ListServices for usage and error information. 1590 // 1591 // Returned Error Types: 1592 // * InvalidRequestException 1593 // One or more input parameters aren't valid. Refer to the API action's document 1594 // page, correct the input parameters, and try the action again. 1595 // 1596 // * InternalServiceErrorException 1597 // An unexpected service exception occurred. 1598 // 1599 // See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/ListServices 1600 func (c *AppRunner) ListServices(input *ListServicesInput) (*ListServicesOutput, error) { 1601 req, out := c.ListServicesRequest(input) 1602 return out, req.Send() 1603 } 1604 1605 // ListServicesWithContext is the same as ListServices with the addition of 1606 // the ability to pass a context and additional request options. 1607 // 1608 // See ListServices for details on how to use this API operation. 1609 // 1610 // The context must be non-nil and will be used for request cancellation. If 1611 // the context is nil a panic will occur. In the future the SDK may create 1612 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1613 // for more information on using Contexts. 1614 func (c *AppRunner) ListServicesWithContext(ctx aws.Context, input *ListServicesInput, opts ...request.Option) (*ListServicesOutput, error) { 1615 req, out := c.ListServicesRequest(input) 1616 req.SetContext(ctx) 1617 req.ApplyOptions(opts...) 1618 return out, req.Send() 1619 } 1620 1621 // ListServicesPages iterates over the pages of a ListServices operation, 1622 // calling the "fn" function with the response data for each page. To stop 1623 // iterating, return false from the fn function. 1624 // 1625 // See ListServices method for more information on how to use this operation. 1626 // 1627 // Note: This operation can generate multiple requests to a service. 1628 // 1629 // // Example iterating over at most 3 pages of a ListServices operation. 1630 // pageNum := 0 1631 // err := client.ListServicesPages(params, 1632 // func(page *apprunner.ListServicesOutput, lastPage bool) bool { 1633 // pageNum++ 1634 // fmt.Println(page) 1635 // return pageNum <= 3 1636 // }) 1637 // 1638 func (c *AppRunner) ListServicesPages(input *ListServicesInput, fn func(*ListServicesOutput, bool) bool) error { 1639 return c.ListServicesPagesWithContext(aws.BackgroundContext(), input, fn) 1640 } 1641 1642 // ListServicesPagesWithContext same as ListServicesPages except 1643 // it takes a Context and allows setting request options on the pages. 1644 // 1645 // The context must be non-nil and will be used for request cancellation. If 1646 // the context is nil a panic will occur. In the future the SDK may create 1647 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1648 // for more information on using Contexts. 1649 func (c *AppRunner) ListServicesPagesWithContext(ctx aws.Context, input *ListServicesInput, fn func(*ListServicesOutput, bool) bool, opts ...request.Option) error { 1650 p := request.Pagination{ 1651 NewRequest: func() (*request.Request, error) { 1652 var inCpy *ListServicesInput 1653 if input != nil { 1654 tmp := *input 1655 inCpy = &tmp 1656 } 1657 req, _ := c.ListServicesRequest(inCpy) 1658 req.SetContext(ctx) 1659 req.ApplyOptions(opts...) 1660 return req, nil 1661 }, 1662 } 1663 1664 for p.Next() { 1665 if !fn(p.Page().(*ListServicesOutput), !p.HasNextPage()) { 1666 break 1667 } 1668 } 1669 1670 return p.Err() 1671 } 1672 1673 const opListTagsForResource = "ListTagsForResource" 1674 1675 // ListTagsForResourceRequest generates a "aws/request.Request" representing the 1676 // client's request for the ListTagsForResource operation. The "output" return 1677 // value will be populated with the request's response once the request completes 1678 // successfully. 1679 // 1680 // Use "Send" method on the returned Request to send the API call to the service. 1681 // the "output" return value is not valid until after Send returns without error. 1682 // 1683 // See ListTagsForResource for more information on using the ListTagsForResource 1684 // API call, and error handling. 1685 // 1686 // This method is useful when you want to inject custom logic or configuration 1687 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 1688 // 1689 // 1690 // // Example sending a request using the ListTagsForResourceRequest method. 1691 // req, resp := client.ListTagsForResourceRequest(params) 1692 // 1693 // err := req.Send() 1694 // if err == nil { // resp is now filled 1695 // fmt.Println(resp) 1696 // } 1697 // 1698 // See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/ListTagsForResource 1699 func (c *AppRunner) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) { 1700 op := &request.Operation{ 1701 Name: opListTagsForResource, 1702 HTTPMethod: "POST", 1703 HTTPPath: "/", 1704 } 1705 1706 if input == nil { 1707 input = &ListTagsForResourceInput{} 1708 } 1709 1710 output = &ListTagsForResourceOutput{} 1711 req = c.newRequest(op, input, output) 1712 return 1713 } 1714 1715 // ListTagsForResource API operation for AWS App Runner. 1716 // 1717 // List tags that are associated with for an App Runner resource. The response 1718 // contains a list of tag key-value pairs. 1719 // 1720 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1721 // with awserr.Error's Code and Message methods to get detailed information about 1722 // the error. 1723 // 1724 // See the AWS API reference guide for AWS App Runner's 1725 // API operation ListTagsForResource for usage and error information. 1726 // 1727 // Returned Error Types: 1728 // * ResourceNotFoundException 1729 // A resource doesn't exist for the specified Amazon Resource Name (ARN) in 1730 // your Amazon Web Services account. 1731 // 1732 // * InternalServiceErrorException 1733 // An unexpected service exception occurred. 1734 // 1735 // * InvalidRequestException 1736 // One or more input parameters aren't valid. Refer to the API action's document 1737 // page, correct the input parameters, and try the action again. 1738 // 1739 // * InvalidStateException 1740 // You can't perform this action when the resource is in its current state. 1741 // 1742 // See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/ListTagsForResource 1743 func (c *AppRunner) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) { 1744 req, out := c.ListTagsForResourceRequest(input) 1745 return out, req.Send() 1746 } 1747 1748 // ListTagsForResourceWithContext is the same as ListTagsForResource with the addition of 1749 // the ability to pass a context and additional request options. 1750 // 1751 // See ListTagsForResource for details on how to use this API operation. 1752 // 1753 // The context must be non-nil and will be used for request cancellation. If 1754 // the context is nil a panic will occur. In the future the SDK may create 1755 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1756 // for more information on using Contexts. 1757 func (c *AppRunner) ListTagsForResourceWithContext(ctx aws.Context, input *ListTagsForResourceInput, opts ...request.Option) (*ListTagsForResourceOutput, error) { 1758 req, out := c.ListTagsForResourceRequest(input) 1759 req.SetContext(ctx) 1760 req.ApplyOptions(opts...) 1761 return out, req.Send() 1762 } 1763 1764 const opPauseService = "PauseService" 1765 1766 // PauseServiceRequest generates a "aws/request.Request" representing the 1767 // client's request for the PauseService operation. The "output" return 1768 // value will be populated with the request's response once the request completes 1769 // successfully. 1770 // 1771 // Use "Send" method on the returned Request to send the API call to the service. 1772 // the "output" return value is not valid until after Send returns without error. 1773 // 1774 // See PauseService for more information on using the PauseService 1775 // API call, and error handling. 1776 // 1777 // This method is useful when you want to inject custom logic or configuration 1778 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 1779 // 1780 // 1781 // // Example sending a request using the PauseServiceRequest method. 1782 // req, resp := client.PauseServiceRequest(params) 1783 // 1784 // err := req.Send() 1785 // if err == nil { // resp is now filled 1786 // fmt.Println(resp) 1787 // } 1788 // 1789 // See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/PauseService 1790 func (c *AppRunner) PauseServiceRequest(input *PauseServiceInput) (req *request.Request, output *PauseServiceOutput) { 1791 op := &request.Operation{ 1792 Name: opPauseService, 1793 HTTPMethod: "POST", 1794 HTTPPath: "/", 1795 } 1796 1797 if input == nil { 1798 input = &PauseServiceInput{} 1799 } 1800 1801 output = &PauseServiceOutput{} 1802 req = c.newRequest(op, input, output) 1803 return 1804 } 1805 1806 // PauseService API operation for AWS App Runner. 1807 // 1808 // Pause an active App Runner service. App Runner reduces compute capacity for 1809 // the service to zero and loses state (for example, ephemeral storage is removed). 1810 // 1811 // This is an asynchronous operation. On a successful call, you can use the 1812 // returned OperationId and the ListOperations call to track the operation's 1813 // progress. 1814 // 1815 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1816 // with awserr.Error's Code and Message methods to get detailed information about 1817 // the error. 1818 // 1819 // See the AWS API reference guide for AWS App Runner's 1820 // API operation PauseService for usage and error information. 1821 // 1822 // Returned Error Types: 1823 // * InvalidRequestException 1824 // One or more input parameters aren't valid. Refer to the API action's document 1825 // page, correct the input parameters, and try the action again. 1826 // 1827 // * ResourceNotFoundException 1828 // A resource doesn't exist for the specified Amazon Resource Name (ARN) in 1829 // your Amazon Web Services account. 1830 // 1831 // * InternalServiceErrorException 1832 // An unexpected service exception occurred. 1833 // 1834 // * InvalidStateException 1835 // You can't perform this action when the resource is in its current state. 1836 // 1837 // See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/PauseService 1838 func (c *AppRunner) PauseService(input *PauseServiceInput) (*PauseServiceOutput, error) { 1839 req, out := c.PauseServiceRequest(input) 1840 return out, req.Send() 1841 } 1842 1843 // PauseServiceWithContext is the same as PauseService with the addition of 1844 // the ability to pass a context and additional request options. 1845 // 1846 // See PauseService for details on how to use this API operation. 1847 // 1848 // The context must be non-nil and will be used for request cancellation. If 1849 // the context is nil a panic will occur. In the future the SDK may create 1850 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1851 // for more information on using Contexts. 1852 func (c *AppRunner) PauseServiceWithContext(ctx aws.Context, input *PauseServiceInput, opts ...request.Option) (*PauseServiceOutput, error) { 1853 req, out := c.PauseServiceRequest(input) 1854 req.SetContext(ctx) 1855 req.ApplyOptions(opts...) 1856 return out, req.Send() 1857 } 1858 1859 const opResumeService = "ResumeService" 1860 1861 // ResumeServiceRequest generates a "aws/request.Request" representing the 1862 // client's request for the ResumeService operation. The "output" return 1863 // value will be populated with the request's response once the request completes 1864 // successfully. 1865 // 1866 // Use "Send" method on the returned Request to send the API call to the service. 1867 // the "output" return value is not valid until after Send returns without error. 1868 // 1869 // See ResumeService for more information on using the ResumeService 1870 // API call, and error handling. 1871 // 1872 // This method is useful when you want to inject custom logic or configuration 1873 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 1874 // 1875 // 1876 // // Example sending a request using the ResumeServiceRequest method. 1877 // req, resp := client.ResumeServiceRequest(params) 1878 // 1879 // err := req.Send() 1880 // if err == nil { // resp is now filled 1881 // fmt.Println(resp) 1882 // } 1883 // 1884 // See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/ResumeService 1885 func (c *AppRunner) ResumeServiceRequest(input *ResumeServiceInput) (req *request.Request, output *ResumeServiceOutput) { 1886 op := &request.Operation{ 1887 Name: opResumeService, 1888 HTTPMethod: "POST", 1889 HTTPPath: "/", 1890 } 1891 1892 if input == nil { 1893 input = &ResumeServiceInput{} 1894 } 1895 1896 output = &ResumeServiceOutput{} 1897 req = c.newRequest(op, input, output) 1898 return 1899 } 1900 1901 // ResumeService API operation for AWS App Runner. 1902 // 1903 // Resume an active App Runner service. App Runner provisions compute capacity 1904 // for the service. 1905 // 1906 // This is an asynchronous operation. On a successful call, you can use the 1907 // returned OperationId and the ListOperations call to track the operation's 1908 // progress. 1909 // 1910 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1911 // with awserr.Error's Code and Message methods to get detailed information about 1912 // the error. 1913 // 1914 // See the AWS API reference guide for AWS App Runner's 1915 // API operation ResumeService for usage and error information. 1916 // 1917 // Returned Error Types: 1918 // * InvalidRequestException 1919 // One or more input parameters aren't valid. Refer to the API action's document 1920 // page, correct the input parameters, and try the action again. 1921 // 1922 // * ResourceNotFoundException 1923 // A resource doesn't exist for the specified Amazon Resource Name (ARN) in 1924 // your Amazon Web Services account. 1925 // 1926 // * InternalServiceErrorException 1927 // An unexpected service exception occurred. 1928 // 1929 // * InvalidStateException 1930 // You can't perform this action when the resource is in its current state. 1931 // 1932 // See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/ResumeService 1933 func (c *AppRunner) ResumeService(input *ResumeServiceInput) (*ResumeServiceOutput, error) { 1934 req, out := c.ResumeServiceRequest(input) 1935 return out, req.Send() 1936 } 1937 1938 // ResumeServiceWithContext is the same as ResumeService with the addition of 1939 // the ability to pass a context and additional request options. 1940 // 1941 // See ResumeService for details on how to use this API operation. 1942 // 1943 // The context must be non-nil and will be used for request cancellation. If 1944 // the context is nil a panic will occur. In the future the SDK may create 1945 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1946 // for more information on using Contexts. 1947 func (c *AppRunner) ResumeServiceWithContext(ctx aws.Context, input *ResumeServiceInput, opts ...request.Option) (*ResumeServiceOutput, error) { 1948 req, out := c.ResumeServiceRequest(input) 1949 req.SetContext(ctx) 1950 req.ApplyOptions(opts...) 1951 return out, req.Send() 1952 } 1953 1954 const opStartDeployment = "StartDeployment" 1955 1956 // StartDeploymentRequest generates a "aws/request.Request" representing the 1957 // client's request for the StartDeployment operation. The "output" return 1958 // value will be populated with the request's response once the request completes 1959 // successfully. 1960 // 1961 // Use "Send" method on the returned Request to send the API call to the service. 1962 // the "output" return value is not valid until after Send returns without error. 1963 // 1964 // See StartDeployment for more information on using the StartDeployment 1965 // API call, and error handling. 1966 // 1967 // This method is useful when you want to inject custom logic or configuration 1968 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 1969 // 1970 // 1971 // // Example sending a request using the StartDeploymentRequest method. 1972 // req, resp := client.StartDeploymentRequest(params) 1973 // 1974 // err := req.Send() 1975 // if err == nil { // resp is now filled 1976 // fmt.Println(resp) 1977 // } 1978 // 1979 // See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/StartDeployment 1980 func (c *AppRunner) StartDeploymentRequest(input *StartDeploymentInput) (req *request.Request, output *StartDeploymentOutput) { 1981 op := &request.Operation{ 1982 Name: opStartDeployment, 1983 HTTPMethod: "POST", 1984 HTTPPath: "/", 1985 } 1986 1987 if input == nil { 1988 input = &StartDeploymentInput{} 1989 } 1990 1991 output = &StartDeploymentOutput{} 1992 req = c.newRequest(op, input, output) 1993 return 1994 } 1995 1996 // StartDeployment API operation for AWS App Runner. 1997 // 1998 // Initiate a manual deployment of the latest commit in a source code repository 1999 // or the latest image in a source image repository to an App Runner service. 2000 // 2001 // For a source code repository, App Runner retrieves the commit and builds 2002 // a Docker image. For a source image repository, App Runner retrieves the latest 2003 // Docker image. In both cases, App Runner then deploys the new image to your 2004 // service and starts a new container instance. 2005 // 2006 // This is an asynchronous operation. On a successful call, you can use the 2007 // returned OperationId and the ListOperations call to track the operation's 2008 // progress. 2009 // 2010 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 2011 // with awserr.Error's Code and Message methods to get detailed information about 2012 // the error. 2013 // 2014 // See the AWS API reference guide for AWS App Runner's 2015 // API operation StartDeployment for usage and error information. 2016 // 2017 // Returned Error Types: 2018 // * InvalidRequestException 2019 // One or more input parameters aren't valid. Refer to the API action's document 2020 // page, correct the input parameters, and try the action again. 2021 // 2022 // * ResourceNotFoundException 2023 // A resource doesn't exist for the specified Amazon Resource Name (ARN) in 2024 // your Amazon Web Services account. 2025 // 2026 // * InternalServiceErrorException 2027 // An unexpected service exception occurred. 2028 // 2029 // See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/StartDeployment 2030 func (c *AppRunner) StartDeployment(input *StartDeploymentInput) (*StartDeploymentOutput, error) { 2031 req, out := c.StartDeploymentRequest(input) 2032 return out, req.Send() 2033 } 2034 2035 // StartDeploymentWithContext is the same as StartDeployment with the addition of 2036 // the ability to pass a context and additional request options. 2037 // 2038 // See StartDeployment for details on how to use this API operation. 2039 // 2040 // The context must be non-nil and will be used for request cancellation. If 2041 // the context is nil a panic will occur. In the future the SDK may create 2042 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 2043 // for more information on using Contexts. 2044 func (c *AppRunner) StartDeploymentWithContext(ctx aws.Context, input *StartDeploymentInput, opts ...request.Option) (*StartDeploymentOutput, error) { 2045 req, out := c.StartDeploymentRequest(input) 2046 req.SetContext(ctx) 2047 req.ApplyOptions(opts...) 2048 return out, req.Send() 2049 } 2050 2051 const opTagResource = "TagResource" 2052 2053 // TagResourceRequest generates a "aws/request.Request" representing the 2054 // client's request for the TagResource operation. The "output" return 2055 // value will be populated with the request's response once the request completes 2056 // successfully. 2057 // 2058 // Use "Send" method on the returned Request to send the API call to the service. 2059 // the "output" return value is not valid until after Send returns without error. 2060 // 2061 // See TagResource for more information on using the TagResource 2062 // API call, and error handling. 2063 // 2064 // This method is useful when you want to inject custom logic or configuration 2065 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 2066 // 2067 // 2068 // // Example sending a request using the TagResourceRequest method. 2069 // req, resp := client.TagResourceRequest(params) 2070 // 2071 // err := req.Send() 2072 // if err == nil { // resp is now filled 2073 // fmt.Println(resp) 2074 // } 2075 // 2076 // See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/TagResource 2077 func (c *AppRunner) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput) { 2078 op := &request.Operation{ 2079 Name: opTagResource, 2080 HTTPMethod: "POST", 2081 HTTPPath: "/", 2082 } 2083 2084 if input == nil { 2085 input = &TagResourceInput{} 2086 } 2087 2088 output = &TagResourceOutput{} 2089 req = c.newRequest(op, input, output) 2090 req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) 2091 return 2092 } 2093 2094 // TagResource API operation for AWS App Runner. 2095 // 2096 // Add tags to, or update the tag values of, an App Runner resource. A tag is 2097 // a key-value pair. 2098 // 2099 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 2100 // with awserr.Error's Code and Message methods to get detailed information about 2101 // the error. 2102 // 2103 // See the AWS API reference guide for AWS App Runner's 2104 // API operation TagResource for usage and error information. 2105 // 2106 // Returned Error Types: 2107 // * ResourceNotFoundException 2108 // A resource doesn't exist for the specified Amazon Resource Name (ARN) in 2109 // your Amazon Web Services account. 2110 // 2111 // * InternalServiceErrorException 2112 // An unexpected service exception occurred. 2113 // 2114 // * InvalidRequestException 2115 // One or more input parameters aren't valid. Refer to the API action's document 2116 // page, correct the input parameters, and try the action again. 2117 // 2118 // * InvalidStateException 2119 // You can't perform this action when the resource is in its current state. 2120 // 2121 // See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/TagResource 2122 func (c *AppRunner) TagResource(input *TagResourceInput) (*TagResourceOutput, error) { 2123 req, out := c.TagResourceRequest(input) 2124 return out, req.Send() 2125 } 2126 2127 // TagResourceWithContext is the same as TagResource with the addition of 2128 // the ability to pass a context and additional request options. 2129 // 2130 // See TagResource for details on how to use this API operation. 2131 // 2132 // The context must be non-nil and will be used for request cancellation. If 2133 // the context is nil a panic will occur. In the future the SDK may create 2134 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 2135 // for more information on using Contexts. 2136 func (c *AppRunner) TagResourceWithContext(ctx aws.Context, input *TagResourceInput, opts ...request.Option) (*TagResourceOutput, error) { 2137 req, out := c.TagResourceRequest(input) 2138 req.SetContext(ctx) 2139 req.ApplyOptions(opts...) 2140 return out, req.Send() 2141 } 2142 2143 const opUntagResource = "UntagResource" 2144 2145 // UntagResourceRequest generates a "aws/request.Request" representing the 2146 // client's request for the UntagResource operation. The "output" return 2147 // value will be populated with the request's response once the request completes 2148 // successfully. 2149 // 2150 // Use "Send" method on the returned Request to send the API call to the service. 2151 // the "output" return value is not valid until after Send returns without error. 2152 // 2153 // See UntagResource for more information on using the UntagResource 2154 // API call, and error handling. 2155 // 2156 // This method is useful when you want to inject custom logic or configuration 2157 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 2158 // 2159 // 2160 // // Example sending a request using the UntagResourceRequest method. 2161 // req, resp := client.UntagResourceRequest(params) 2162 // 2163 // err := req.Send() 2164 // if err == nil { // resp is now filled 2165 // fmt.Println(resp) 2166 // } 2167 // 2168 // See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/UntagResource 2169 func (c *AppRunner) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput) { 2170 op := &request.Operation{ 2171 Name: opUntagResource, 2172 HTTPMethod: "POST", 2173 HTTPPath: "/", 2174 } 2175 2176 if input == nil { 2177 input = &UntagResourceInput{} 2178 } 2179 2180 output = &UntagResourceOutput{} 2181 req = c.newRequest(op, input, output) 2182 req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) 2183 return 2184 } 2185 2186 // UntagResource API operation for AWS App Runner. 2187 // 2188 // Remove tags from an App Runner resource. 2189 // 2190 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 2191 // with awserr.Error's Code and Message methods to get detailed information about 2192 // the error. 2193 // 2194 // See the AWS API reference guide for AWS App Runner's 2195 // API operation UntagResource for usage and error information. 2196 // 2197 // Returned Error Types: 2198 // * ResourceNotFoundException 2199 // A resource doesn't exist for the specified Amazon Resource Name (ARN) in 2200 // your Amazon Web Services account. 2201 // 2202 // * InternalServiceErrorException 2203 // An unexpected service exception occurred. 2204 // 2205 // * InvalidRequestException 2206 // One or more input parameters aren't valid. Refer to the API action's document 2207 // page, correct the input parameters, and try the action again. 2208 // 2209 // * InvalidStateException 2210 // You can't perform this action when the resource is in its current state. 2211 // 2212 // See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/UntagResource 2213 func (c *AppRunner) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) { 2214 req, out := c.UntagResourceRequest(input) 2215 return out, req.Send() 2216 } 2217 2218 // UntagResourceWithContext is the same as UntagResource with the addition of 2219 // the ability to pass a context and additional request options. 2220 // 2221 // See UntagResource for details on how to use this API operation. 2222 // 2223 // The context must be non-nil and will be used for request cancellation. If 2224 // the context is nil a panic will occur. In the future the SDK may create 2225 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 2226 // for more information on using Contexts. 2227 func (c *AppRunner) UntagResourceWithContext(ctx aws.Context, input *UntagResourceInput, opts ...request.Option) (*UntagResourceOutput, error) { 2228 req, out := c.UntagResourceRequest(input) 2229 req.SetContext(ctx) 2230 req.ApplyOptions(opts...) 2231 return out, req.Send() 2232 } 2233 2234 const opUpdateService = "UpdateService" 2235 2236 // UpdateServiceRequest generates a "aws/request.Request" representing the 2237 // client's request for the UpdateService operation. The "output" return 2238 // value will be populated with the request's response once the request completes 2239 // successfully. 2240 // 2241 // Use "Send" method on the returned Request to send the API call to the service. 2242 // the "output" return value is not valid until after Send returns without error. 2243 // 2244 // See UpdateService for more information on using the UpdateService 2245 // API call, and error handling. 2246 // 2247 // This method is useful when you want to inject custom logic or configuration 2248 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 2249 // 2250 // 2251 // // Example sending a request using the UpdateServiceRequest method. 2252 // req, resp := client.UpdateServiceRequest(params) 2253 // 2254 // err := req.Send() 2255 // if err == nil { // resp is now filled 2256 // fmt.Println(resp) 2257 // } 2258 // 2259 // See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/UpdateService 2260 func (c *AppRunner) UpdateServiceRequest(input *UpdateServiceInput) (req *request.Request, output *UpdateServiceOutput) { 2261 op := &request.Operation{ 2262 Name: opUpdateService, 2263 HTTPMethod: "POST", 2264 HTTPPath: "/", 2265 } 2266 2267 if input == nil { 2268 input = &UpdateServiceInput{} 2269 } 2270 2271 output = &UpdateServiceOutput{} 2272 req = c.newRequest(op, input, output) 2273 return 2274 } 2275 2276 // UpdateService API operation for AWS App Runner. 2277 // 2278 // Update an App Runner service. You can update the source configuration and 2279 // instance configuration of the service. You can also update the ARN of the 2280 // auto scaling configuration resource that's associated with the service. However, 2281 // you can't change the name or the encryption configuration of the service. 2282 // These can be set only when you create the service. 2283 // 2284 // To update the tags applied to your service, use the separate actions TagResource 2285 // and UntagResource. 2286 // 2287 // This is an asynchronous operation. On a successful call, you can use the 2288 // returned OperationId and the ListOperations call to track the operation's 2289 // progress. 2290 // 2291 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 2292 // with awserr.Error's Code and Message methods to get detailed information about 2293 // the error. 2294 // 2295 // See the AWS API reference guide for AWS App Runner's 2296 // API operation UpdateService for usage and error information. 2297 // 2298 // Returned Error Types: 2299 // * InvalidRequestException 2300 // One or more input parameters aren't valid. Refer to the API action's document 2301 // page, correct the input parameters, and try the action again. 2302 // 2303 // * ResourceNotFoundException 2304 // A resource doesn't exist for the specified Amazon Resource Name (ARN) in 2305 // your Amazon Web Services account. 2306 // 2307 // * InvalidStateException 2308 // You can't perform this action when the resource is in its current state. 2309 // 2310 // * InternalServiceErrorException 2311 // An unexpected service exception occurred. 2312 // 2313 // See also, https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/UpdateService 2314 func (c *AppRunner) UpdateService(input *UpdateServiceInput) (*UpdateServiceOutput, error) { 2315 req, out := c.UpdateServiceRequest(input) 2316 return out, req.Send() 2317 } 2318 2319 // UpdateServiceWithContext is the same as UpdateService with the addition of 2320 // the ability to pass a context and additional request options. 2321 // 2322 // See UpdateService for details on how to use this API operation. 2323 // 2324 // The context must be non-nil and will be used for request cancellation. If 2325 // the context is nil a panic will occur. In the future the SDK may create 2326 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 2327 // for more information on using Contexts. 2328 func (c *AppRunner) UpdateServiceWithContext(ctx aws.Context, input *UpdateServiceInput, opts ...request.Option) (*UpdateServiceOutput, error) { 2329 req, out := c.UpdateServiceRequest(input) 2330 req.SetContext(ctx) 2331 req.ApplyOptions(opts...) 2332 return out, req.Send() 2333 } 2334 2335 type AssociateCustomDomainInput struct { 2336 _ struct{} `type:"structure"` 2337 2338 // A custom domain endpoint to associate. Specify a root domain (for example, 2339 // example.com), a subdomain (for example, login.example.com or admin.login.example.com), 2340 // or a wildcard (for example, *.example.com). 2341 // 2342 // DomainName is a required field 2343 DomainName *string `min:"1" type:"string" required:"true"` 2344 2345 // Set to true to associate the subdomain www.DomainName with the App Runner 2346 // service in addition to the base domain. 2347 // 2348 // Default: true 2349 EnableWWWSubdomain *bool `type:"boolean"` 2350 2351 // The Amazon Resource Name (ARN) of the App Runner service that you want to 2352 // associate a custom domain name with. 2353 // 2354 // ServiceArn is a required field 2355 ServiceArn *string `min:"1" type:"string" required:"true"` 2356 } 2357 2358 // String returns the string representation. 2359 // 2360 // API parameter values that are decorated as "sensitive" in the API will not 2361 // be included in the string output. The member name will be present, but the 2362 // value will be replaced with "sensitive". 2363 func (s AssociateCustomDomainInput) String() string { 2364 return awsutil.Prettify(s) 2365 } 2366 2367 // GoString returns the string representation. 2368 // 2369 // API parameter values that are decorated as "sensitive" in the API will not 2370 // be included in the string output. The member name will be present, but the 2371 // value will be replaced with "sensitive". 2372 func (s AssociateCustomDomainInput) GoString() string { 2373 return s.String() 2374 } 2375 2376 // Validate inspects the fields of the type to determine if they are valid. 2377 func (s *AssociateCustomDomainInput) Validate() error { 2378 invalidParams := request.ErrInvalidParams{Context: "AssociateCustomDomainInput"} 2379 if s.DomainName == nil { 2380 invalidParams.Add(request.NewErrParamRequired("DomainName")) 2381 } 2382 if s.DomainName != nil && len(*s.DomainName) < 1 { 2383 invalidParams.Add(request.NewErrParamMinLen("DomainName", 1)) 2384 } 2385 if s.ServiceArn == nil { 2386 invalidParams.Add(request.NewErrParamRequired("ServiceArn")) 2387 } 2388 if s.ServiceArn != nil && len(*s.ServiceArn) < 1 { 2389 invalidParams.Add(request.NewErrParamMinLen("ServiceArn", 1)) 2390 } 2391 2392 if invalidParams.Len() > 0 { 2393 return invalidParams 2394 } 2395 return nil 2396 } 2397 2398 // SetDomainName sets the DomainName field's value. 2399 func (s *AssociateCustomDomainInput) SetDomainName(v string) *AssociateCustomDomainInput { 2400 s.DomainName = &v 2401 return s 2402 } 2403 2404 // SetEnableWWWSubdomain sets the EnableWWWSubdomain field's value. 2405 func (s *AssociateCustomDomainInput) SetEnableWWWSubdomain(v bool) *AssociateCustomDomainInput { 2406 s.EnableWWWSubdomain = &v 2407 return s 2408 } 2409 2410 // SetServiceArn sets the ServiceArn field's value. 2411 func (s *AssociateCustomDomainInput) SetServiceArn(v string) *AssociateCustomDomainInput { 2412 s.ServiceArn = &v 2413 return s 2414 } 2415 2416 type AssociateCustomDomainOutput struct { 2417 _ struct{} `type:"structure"` 2418 2419 // A description of the domain name that's being associated. 2420 // 2421 // CustomDomain is a required field 2422 CustomDomain *CustomDomain `type:"structure" required:"true"` 2423 2424 // The App Runner subdomain of the App Runner service. The custom domain name 2425 // is mapped to this target name. 2426 // 2427 // DNSTarget is a required field 2428 DNSTarget *string `type:"string" required:"true"` 2429 2430 // The Amazon Resource Name (ARN) of the App Runner service with which a custom 2431 // domain name is associated. 2432 // 2433 // ServiceArn is a required field 2434 ServiceArn *string `min:"1" type:"string" required:"true"` 2435 } 2436 2437 // String returns the string representation. 2438 // 2439 // API parameter values that are decorated as "sensitive" in the API will not 2440 // be included in the string output. The member name will be present, but the 2441 // value will be replaced with "sensitive". 2442 func (s AssociateCustomDomainOutput) String() string { 2443 return awsutil.Prettify(s) 2444 } 2445 2446 // GoString returns the string representation. 2447 // 2448 // API parameter values that are decorated as "sensitive" in the API will not 2449 // be included in the string output. The member name will be present, but the 2450 // value will be replaced with "sensitive". 2451 func (s AssociateCustomDomainOutput) GoString() string { 2452 return s.String() 2453 } 2454 2455 // SetCustomDomain sets the CustomDomain field's value. 2456 func (s *AssociateCustomDomainOutput) SetCustomDomain(v *CustomDomain) *AssociateCustomDomainOutput { 2457 s.CustomDomain = v 2458 return s 2459 } 2460 2461 // SetDNSTarget sets the DNSTarget field's value. 2462 func (s *AssociateCustomDomainOutput) SetDNSTarget(v string) *AssociateCustomDomainOutput { 2463 s.DNSTarget = &v 2464 return s 2465 } 2466 2467 // SetServiceArn sets the ServiceArn field's value. 2468 func (s *AssociateCustomDomainOutput) SetServiceArn(v string) *AssociateCustomDomainOutput { 2469 s.ServiceArn = &v 2470 return s 2471 } 2472 2473 // Describes resources needed to authenticate access to some source repositories. 2474 // The specific resource depends on the repository provider. 2475 type AuthenticationConfiguration struct { 2476 _ struct{} `type:"structure"` 2477 2478 // The Amazon Resource Name (ARN) of the IAM role that grants the App Runner 2479 // service access to a source repository. It's required for ECR image repositories 2480 // (but not for ECR Public repositories). 2481 AccessRoleArn *string `min:"29" type:"string"` 2482 2483 // The Amazon Resource Name (ARN) of the App Runner connection that enables 2484 // the App Runner service to connect to a source repository. It's required for 2485 // GitHub code repositories. 2486 ConnectionArn *string `min:"1" type:"string"` 2487 } 2488 2489 // String returns the string representation. 2490 // 2491 // API parameter values that are decorated as "sensitive" in the API will not 2492 // be included in the string output. The member name will be present, but the 2493 // value will be replaced with "sensitive". 2494 func (s AuthenticationConfiguration) String() string { 2495 return awsutil.Prettify(s) 2496 } 2497 2498 // GoString returns the string representation. 2499 // 2500 // API parameter values that are decorated as "sensitive" in the API will not 2501 // be included in the string output. The member name will be present, but the 2502 // value will be replaced with "sensitive". 2503 func (s AuthenticationConfiguration) GoString() string { 2504 return s.String() 2505 } 2506 2507 // Validate inspects the fields of the type to determine if they are valid. 2508 func (s *AuthenticationConfiguration) Validate() error { 2509 invalidParams := request.ErrInvalidParams{Context: "AuthenticationConfiguration"} 2510 if s.AccessRoleArn != nil && len(*s.AccessRoleArn) < 29 { 2511 invalidParams.Add(request.NewErrParamMinLen("AccessRoleArn", 29)) 2512 } 2513 if s.ConnectionArn != nil && len(*s.ConnectionArn) < 1 { 2514 invalidParams.Add(request.NewErrParamMinLen("ConnectionArn", 1)) 2515 } 2516 2517 if invalidParams.Len() > 0 { 2518 return invalidParams 2519 } 2520 return nil 2521 } 2522 2523 // SetAccessRoleArn sets the AccessRoleArn field's value. 2524 func (s *AuthenticationConfiguration) SetAccessRoleArn(v string) *AuthenticationConfiguration { 2525 s.AccessRoleArn = &v 2526 return s 2527 } 2528 2529 // SetConnectionArn sets the ConnectionArn field's value. 2530 func (s *AuthenticationConfiguration) SetConnectionArn(v string) *AuthenticationConfiguration { 2531 s.ConnectionArn = &v 2532 return s 2533 } 2534 2535 // Describes an App Runner automatic scaling configuration resource. Multiple 2536 // revisions of a configuration have the same AutoScalingConfigurationName and 2537 // different AutoScalingConfigurationRevision values. 2538 // 2539 // A higher MinSize increases the spread of your App Runner service over more 2540 // Availability Zones in the Amazon Web Services Region. The tradeoff is a higher 2541 // minimal cost. 2542 // 2543 // A lower MaxSize controls your cost. The tradeoff is lower responsiveness 2544 // during peak demand. 2545 type AutoScalingConfiguration struct { 2546 _ struct{} `type:"structure"` 2547 2548 // The Amazon Resource Name (ARN) of this auto scaling configuration. 2549 AutoScalingConfigurationArn *string `min:"1" type:"string"` 2550 2551 // The customer-provided auto scaling configuration name. It can be used in 2552 // multiple revisions of a configuration. 2553 AutoScalingConfigurationName *string `min:"4" type:"string"` 2554 2555 // The revision of this auto scaling configuration. It's unique among all the 2556 // active configurations ("Status": "ACTIVE") that share the same AutoScalingConfigurationName. 2557 AutoScalingConfigurationRevision *int64 `type:"integer"` 2558 2559 // The time when the auto scaling configuration was created. It's in Unix time 2560 // stamp format. 2561 CreatedAt *time.Time `type:"timestamp"` 2562 2563 // The time when the auto scaling configuration was deleted. It's in Unix time 2564 // stamp format. 2565 DeletedAt *time.Time `type:"timestamp"` 2566 2567 // It's set to true for the configuration with the highest Revision among all 2568 // configurations that share the same Name. It's set to false otherwise. 2569 Latest *bool `type:"boolean"` 2570 2571 // The maximum number of concurrent requests that an instance processes. If 2572 // the number of concurrent requests exceeds this limit, App Runner scales the 2573 // service up. 2574 MaxConcurrency *int64 `type:"integer"` 2575 2576 // The maximum number of instances that a service scales up to. At most MaxSize 2577 // instances actively serve traffic for your service. 2578 MaxSize *int64 `type:"integer"` 2579 2580 // The minimum number of instances that App Runner provisions for a service. 2581 // The service always has at least MinSize provisioned instances. Some of them 2582 // actively serve traffic. The rest of them (provisioned and inactive instances) 2583 // are a cost-effective compute capacity reserve and are ready to be quickly 2584 // activated. You pay for memory usage of all the provisioned instances. You 2585 // pay for CPU usage of only the active subset. 2586 // 2587 // App Runner temporarily doubles the number of provisioned instances during 2588 // deployments, to maintain the same capacity for both old and new code. 2589 MinSize *int64 `type:"integer"` 2590 2591 // The current state of the auto scaling configuration. If the status of a configuration 2592 // revision is INACTIVE, it was deleted and can't be used. Inactive configuration 2593 // revisions are permanently removed some time after they are deleted. 2594 Status *string `type:"string" enum:"AutoScalingConfigurationStatus"` 2595 } 2596 2597 // String returns the string representation. 2598 // 2599 // API parameter values that are decorated as "sensitive" in the API will not 2600 // be included in the string output. The member name will be present, but the 2601 // value will be replaced with "sensitive". 2602 func (s AutoScalingConfiguration) String() string { 2603 return awsutil.Prettify(s) 2604 } 2605 2606 // GoString returns the string representation. 2607 // 2608 // API parameter values that are decorated as "sensitive" in the API will not 2609 // be included in the string output. The member name will be present, but the 2610 // value will be replaced with "sensitive". 2611 func (s AutoScalingConfiguration) GoString() string { 2612 return s.String() 2613 } 2614 2615 // SetAutoScalingConfigurationArn sets the AutoScalingConfigurationArn field's value. 2616 func (s *AutoScalingConfiguration) SetAutoScalingConfigurationArn(v string) *AutoScalingConfiguration { 2617 s.AutoScalingConfigurationArn = &v 2618 return s 2619 } 2620 2621 // SetAutoScalingConfigurationName sets the AutoScalingConfigurationName field's value. 2622 func (s *AutoScalingConfiguration) SetAutoScalingConfigurationName(v string) *AutoScalingConfiguration { 2623 s.AutoScalingConfigurationName = &v 2624 return s 2625 } 2626 2627 // SetAutoScalingConfigurationRevision sets the AutoScalingConfigurationRevision field's value. 2628 func (s *AutoScalingConfiguration) SetAutoScalingConfigurationRevision(v int64) *AutoScalingConfiguration { 2629 s.AutoScalingConfigurationRevision = &v 2630 return s 2631 } 2632 2633 // SetCreatedAt sets the CreatedAt field's value. 2634 func (s *AutoScalingConfiguration) SetCreatedAt(v time.Time) *AutoScalingConfiguration { 2635 s.CreatedAt = &v 2636 return s 2637 } 2638 2639 // SetDeletedAt sets the DeletedAt field's value. 2640 func (s *AutoScalingConfiguration) SetDeletedAt(v time.Time) *AutoScalingConfiguration { 2641 s.DeletedAt = &v 2642 return s 2643 } 2644 2645 // SetLatest sets the Latest field's value. 2646 func (s *AutoScalingConfiguration) SetLatest(v bool) *AutoScalingConfiguration { 2647 s.Latest = &v 2648 return s 2649 } 2650 2651 // SetMaxConcurrency sets the MaxConcurrency field's value. 2652 func (s *AutoScalingConfiguration) SetMaxConcurrency(v int64) *AutoScalingConfiguration { 2653 s.MaxConcurrency = &v 2654 return s 2655 } 2656 2657 // SetMaxSize sets the MaxSize field's value. 2658 func (s *AutoScalingConfiguration) SetMaxSize(v int64) *AutoScalingConfiguration { 2659 s.MaxSize = &v 2660 return s 2661 } 2662 2663 // SetMinSize sets the MinSize field's value. 2664 func (s *AutoScalingConfiguration) SetMinSize(v int64) *AutoScalingConfiguration { 2665 s.MinSize = &v 2666 return s 2667 } 2668 2669 // SetStatus sets the Status field's value. 2670 func (s *AutoScalingConfiguration) SetStatus(v string) *AutoScalingConfiguration { 2671 s.Status = &v 2672 return s 2673 } 2674 2675 // Provides summary information about an App Runner automatic scaling configuration 2676 // resource. 2677 // 2678 // This type contains limited information about an auto scaling configuration. 2679 // It includes only identification information, without configuration details. 2680 // It's returned by the ListAutoScalingConfigurations action. Complete configuration 2681 // information is returned by the CreateAutoScalingConfiguration, DescribeAutoScalingConfiguration, 2682 // and DeleteAutoScalingConfiguration actions using the AutoScalingConfiguration 2683 // type. 2684 type AutoScalingConfigurationSummary struct { 2685 _ struct{} `type:"structure"` 2686 2687 // The Amazon Resource Name (ARN) of this auto scaling configuration. 2688 AutoScalingConfigurationArn *string `min:"1" type:"string"` 2689 2690 // The customer-provided auto scaling configuration name. It can be used in 2691 // multiple revisions of a configuration. 2692 AutoScalingConfigurationName *string `min:"4" type:"string"` 2693 2694 // The revision of this auto scaling configuration. It's unique among all the 2695 // active configurations ("Status": "ACTIVE") with the same AutoScalingConfigurationName. 2696 AutoScalingConfigurationRevision *int64 `type:"integer"` 2697 } 2698 2699 // String returns the string representation. 2700 // 2701 // API parameter values that are decorated as "sensitive" in the API will not 2702 // be included in the string output. The member name will be present, but the 2703 // value will be replaced with "sensitive". 2704 func (s AutoScalingConfigurationSummary) String() string { 2705 return awsutil.Prettify(s) 2706 } 2707 2708 // GoString returns the string representation. 2709 // 2710 // API parameter values that are decorated as "sensitive" in the API will not 2711 // be included in the string output. The member name will be present, but the 2712 // value will be replaced with "sensitive". 2713 func (s AutoScalingConfigurationSummary) GoString() string { 2714 return s.String() 2715 } 2716 2717 // SetAutoScalingConfigurationArn sets the AutoScalingConfigurationArn field's value. 2718 func (s *AutoScalingConfigurationSummary) SetAutoScalingConfigurationArn(v string) *AutoScalingConfigurationSummary { 2719 s.AutoScalingConfigurationArn = &v 2720 return s 2721 } 2722 2723 // SetAutoScalingConfigurationName sets the AutoScalingConfigurationName field's value. 2724 func (s *AutoScalingConfigurationSummary) SetAutoScalingConfigurationName(v string) *AutoScalingConfigurationSummary { 2725 s.AutoScalingConfigurationName = &v 2726 return s 2727 } 2728 2729 // SetAutoScalingConfigurationRevision sets the AutoScalingConfigurationRevision field's value. 2730 func (s *AutoScalingConfigurationSummary) SetAutoScalingConfigurationRevision(v int64) *AutoScalingConfigurationSummary { 2731 s.AutoScalingConfigurationRevision = &v 2732 return s 2733 } 2734 2735 // Describes a certificate CNAME record to add to your DNS. For more information, 2736 // see AssociateCustomDomain (https://docs.aws.amazon.com/apprunner/latest/api/API_AssociateCustomDomain.html). 2737 type CertificateValidationRecord struct { 2738 _ struct{} `type:"structure"` 2739 2740 // The certificate CNAME record name. 2741 Name *string `type:"string"` 2742 2743 // The current state of the certificate CNAME record validation. It should change 2744 // to SUCCESS after App Runner completes validation with your DNS. 2745 Status *string `type:"string" enum:"CertificateValidationRecordStatus"` 2746 2747 // The record type, always CNAME. 2748 Type *string `type:"string"` 2749 2750 // The certificate CNAME record value. 2751 Value *string `type:"string"` 2752 } 2753 2754 // String returns the string representation. 2755 // 2756 // API parameter values that are decorated as "sensitive" in the API will not 2757 // be included in the string output. The member name will be present, but the 2758 // value will be replaced with "sensitive". 2759 func (s CertificateValidationRecord) String() string { 2760 return awsutil.Prettify(s) 2761 } 2762 2763 // GoString returns the string representation. 2764 // 2765 // API parameter values that are decorated as "sensitive" in the API will not 2766 // be included in the string output. The member name will be present, but the 2767 // value will be replaced with "sensitive". 2768 func (s CertificateValidationRecord) GoString() string { 2769 return s.String() 2770 } 2771 2772 // SetName sets the Name field's value. 2773 func (s *CertificateValidationRecord) SetName(v string) *CertificateValidationRecord { 2774 s.Name = &v 2775 return s 2776 } 2777 2778 // SetStatus sets the Status field's value. 2779 func (s *CertificateValidationRecord) SetStatus(v string) *CertificateValidationRecord { 2780 s.Status = &v 2781 return s 2782 } 2783 2784 // SetType sets the Type field's value. 2785 func (s *CertificateValidationRecord) SetType(v string) *CertificateValidationRecord { 2786 s.Type = &v 2787 return s 2788 } 2789 2790 // SetValue sets the Value field's value. 2791 func (s *CertificateValidationRecord) SetValue(v string) *CertificateValidationRecord { 2792 s.Value = &v 2793 return s 2794 } 2795 2796 // Describes the configuration that App Runner uses to build and run an App 2797 // Runner service from a source code repository. 2798 type CodeConfiguration struct { 2799 _ struct{} `type:"structure"` 2800 2801 // The basic configuration for building and running the App Runner service. 2802 // Use it to quickly launch an App Runner service without providing a apprunner.yaml 2803 // file in the source code repository (or ignoring the file if it exists). 2804 CodeConfigurationValues *CodeConfigurationValues `type:"structure"` 2805 2806 // The source of the App Runner configuration. Values are interpreted as follows: 2807 // 2808 // * REPOSITORY – App Runner reads configuration values from the apprunner.yaml 2809 // file in the source code repository and ignores CodeConfigurationValues. 2810 // 2811 // * API – App Runner uses configuration values provided in CodeConfigurationValues 2812 // and ignores the apprunner.yaml file in the source code repository. 2813 // 2814 // ConfigurationSource is a required field 2815 ConfigurationSource *string `type:"string" required:"true" enum:"ConfigurationSource"` 2816 } 2817 2818 // String returns the string representation. 2819 // 2820 // API parameter values that are decorated as "sensitive" in the API will not 2821 // be included in the string output. The member name will be present, but the 2822 // value will be replaced with "sensitive". 2823 func (s CodeConfiguration) String() string { 2824 return awsutil.Prettify(s) 2825 } 2826 2827 // GoString returns the string representation. 2828 // 2829 // API parameter values that are decorated as "sensitive" in the API will not 2830 // be included in the string output. The member name will be present, but the 2831 // value will be replaced with "sensitive". 2832 func (s CodeConfiguration) GoString() string { 2833 return s.String() 2834 } 2835 2836 // Validate inspects the fields of the type to determine if they are valid. 2837 func (s *CodeConfiguration) Validate() error { 2838 invalidParams := request.ErrInvalidParams{Context: "CodeConfiguration"} 2839 if s.ConfigurationSource == nil { 2840 invalidParams.Add(request.NewErrParamRequired("ConfigurationSource")) 2841 } 2842 if s.CodeConfigurationValues != nil { 2843 if err := s.CodeConfigurationValues.Validate(); err != nil { 2844 invalidParams.AddNested("CodeConfigurationValues", err.(request.ErrInvalidParams)) 2845 } 2846 } 2847 2848 if invalidParams.Len() > 0 { 2849 return invalidParams 2850 } 2851 return nil 2852 } 2853 2854 // SetCodeConfigurationValues sets the CodeConfigurationValues field's value. 2855 func (s *CodeConfiguration) SetCodeConfigurationValues(v *CodeConfigurationValues) *CodeConfiguration { 2856 s.CodeConfigurationValues = v 2857 return s 2858 } 2859 2860 // SetConfigurationSource sets the ConfigurationSource field's value. 2861 func (s *CodeConfiguration) SetConfigurationSource(v string) *CodeConfiguration { 2862 s.ConfigurationSource = &v 2863 return s 2864 } 2865 2866 // Describes the basic configuration needed for building and running an App 2867 // Runner service. This type doesn't support the full set of possible configuration 2868 // options. Fur full configuration capabilities, use a apprunner.yaml file in 2869 // the source code repository. 2870 type CodeConfigurationValues struct { 2871 _ struct{} `type:"structure"` 2872 2873 // The command App Runner runs to build your application. 2874 // 2875 // BuildCommand is a sensitive parameter and its value will be 2876 // replaced with "sensitive" in string returned by CodeConfigurationValues's 2877 // String and GoString methods. 2878 BuildCommand *string `type:"string" sensitive:"true"` 2879 2880 // The port that your application listens to in the container. 2881 // 2882 // Default: 8080 2883 Port *string `type:"string"` 2884 2885 // A runtime environment type for building and running an App Runner service. 2886 // It represents a programming language runtime. 2887 // 2888 // Runtime is a required field 2889 Runtime *string `type:"string" required:"true" enum:"Runtime"` 2890 2891 // The environment variables that are available to your running App Runner service. 2892 // An array of key-value pairs. Keys with a prefix of AWSAPPRUNNER are reserved 2893 // for system use and aren't valid. 2894 RuntimeEnvironmentVariables map[string]*string `type:"map"` 2895 2896 // The command App Runner runs to start your application. 2897 // 2898 // StartCommand is a sensitive parameter and its value will be 2899 // replaced with "sensitive" in string returned by CodeConfigurationValues's 2900 // String and GoString methods. 2901 StartCommand *string `type:"string" sensitive:"true"` 2902 } 2903 2904 // String returns the string representation. 2905 // 2906 // API parameter values that are decorated as "sensitive" in the API will not 2907 // be included in the string output. The member name will be present, but the 2908 // value will be replaced with "sensitive". 2909 func (s CodeConfigurationValues) String() string { 2910 return awsutil.Prettify(s) 2911 } 2912 2913 // GoString returns the string representation. 2914 // 2915 // API parameter values that are decorated as "sensitive" in the API will not 2916 // be included in the string output. The member name will be present, but the 2917 // value will be replaced with "sensitive". 2918 func (s CodeConfigurationValues) GoString() string { 2919 return s.String() 2920 } 2921 2922 // Validate inspects the fields of the type to determine if they are valid. 2923 func (s *CodeConfigurationValues) Validate() error { 2924 invalidParams := request.ErrInvalidParams{Context: "CodeConfigurationValues"} 2925 if s.Runtime == nil { 2926 invalidParams.Add(request.NewErrParamRequired("Runtime")) 2927 } 2928 2929 if invalidParams.Len() > 0 { 2930 return invalidParams 2931 } 2932 return nil 2933 } 2934 2935 // SetBuildCommand sets the BuildCommand field's value. 2936 func (s *CodeConfigurationValues) SetBuildCommand(v string) *CodeConfigurationValues { 2937 s.BuildCommand = &v 2938 return s 2939 } 2940 2941 // SetPort sets the Port field's value. 2942 func (s *CodeConfigurationValues) SetPort(v string) *CodeConfigurationValues { 2943 s.Port = &v 2944 return s 2945 } 2946 2947 // SetRuntime sets the Runtime field's value. 2948 func (s *CodeConfigurationValues) SetRuntime(v string) *CodeConfigurationValues { 2949 s.Runtime = &v 2950 return s 2951 } 2952 2953 // SetRuntimeEnvironmentVariables sets the RuntimeEnvironmentVariables field's value. 2954 func (s *CodeConfigurationValues) SetRuntimeEnvironmentVariables(v map[string]*string) *CodeConfigurationValues { 2955 s.RuntimeEnvironmentVariables = v 2956 return s 2957 } 2958 2959 // SetStartCommand sets the StartCommand field's value. 2960 func (s *CodeConfigurationValues) SetStartCommand(v string) *CodeConfigurationValues { 2961 s.StartCommand = &v 2962 return s 2963 } 2964 2965 // Describes a source code repository. 2966 type CodeRepository struct { 2967 _ struct{} `type:"structure"` 2968 2969 // Configuration for building and running the service from a source code repository. 2970 CodeConfiguration *CodeConfiguration `type:"structure"` 2971 2972 // The location of the repository that contains the source code. 2973 // 2974 // RepositoryUrl is a required field 2975 RepositoryUrl *string `type:"string" required:"true"` 2976 2977 // The version that should be used within the source code repository. 2978 // 2979 // SourceCodeVersion is a required field 2980 SourceCodeVersion *SourceCodeVersion `type:"structure" required:"true"` 2981 } 2982 2983 // String returns the string representation. 2984 // 2985 // API parameter values that are decorated as "sensitive" in the API will not 2986 // be included in the string output. The member name will be present, but the 2987 // value will be replaced with "sensitive". 2988 func (s CodeRepository) String() string { 2989 return awsutil.Prettify(s) 2990 } 2991 2992 // GoString returns the string representation. 2993 // 2994 // API parameter values that are decorated as "sensitive" in the API will not 2995 // be included in the string output. The member name will be present, but the 2996 // value will be replaced with "sensitive". 2997 func (s CodeRepository) GoString() string { 2998 return s.String() 2999 } 3000 3001 // Validate inspects the fields of the type to determine if they are valid. 3002 func (s *CodeRepository) Validate() error { 3003 invalidParams := request.ErrInvalidParams{Context: "CodeRepository"} 3004 if s.RepositoryUrl == nil { 3005 invalidParams.Add(request.NewErrParamRequired("RepositoryUrl")) 3006 } 3007 if s.SourceCodeVersion == nil { 3008 invalidParams.Add(request.NewErrParamRequired("SourceCodeVersion")) 3009 } 3010 if s.CodeConfiguration != nil { 3011 if err := s.CodeConfiguration.Validate(); err != nil { 3012 invalidParams.AddNested("CodeConfiguration", err.(request.ErrInvalidParams)) 3013 } 3014 } 3015 if s.SourceCodeVersion != nil { 3016 if err := s.SourceCodeVersion.Validate(); err != nil { 3017 invalidParams.AddNested("SourceCodeVersion", err.(request.ErrInvalidParams)) 3018 } 3019 } 3020 3021 if invalidParams.Len() > 0 { 3022 return invalidParams 3023 } 3024 return nil 3025 } 3026 3027 // SetCodeConfiguration sets the CodeConfiguration field's value. 3028 func (s *CodeRepository) SetCodeConfiguration(v *CodeConfiguration) *CodeRepository { 3029 s.CodeConfiguration = v 3030 return s 3031 } 3032 3033 // SetRepositoryUrl sets the RepositoryUrl field's value. 3034 func (s *CodeRepository) SetRepositoryUrl(v string) *CodeRepository { 3035 s.RepositoryUrl = &v 3036 return s 3037 } 3038 3039 // SetSourceCodeVersion sets the SourceCodeVersion field's value. 3040 func (s *CodeRepository) SetSourceCodeVersion(v *SourceCodeVersion) *CodeRepository { 3041 s.SourceCodeVersion = v 3042 return s 3043 } 3044 3045 // Describes an App Runner connection resource. 3046 type Connection struct { 3047 _ struct{} `type:"structure"` 3048 3049 // The Amazon Resource Name (ARN) of this connection. 3050 ConnectionArn *string `min:"1" type:"string"` 3051 3052 // The customer-provided connection name. 3053 ConnectionName *string `min:"4" type:"string"` 3054 3055 // The App Runner connection creation time, expressed as a Unix time stamp. 3056 CreatedAt *time.Time `type:"timestamp"` 3057 3058 // The source repository provider. 3059 ProviderType *string `type:"string" enum:"ProviderType"` 3060 3061 // The current state of the App Runner connection. When the state is AVAILABLE, 3062 // you can use the connection to create an App Runner service. 3063 Status *string `type:"string" enum:"ConnectionStatus"` 3064 } 3065 3066 // String returns the string representation. 3067 // 3068 // API parameter values that are decorated as "sensitive" in the API will not 3069 // be included in the string output. The member name will be present, but the 3070 // value will be replaced with "sensitive". 3071 func (s Connection) String() string { 3072 return awsutil.Prettify(s) 3073 } 3074 3075 // GoString returns the string representation. 3076 // 3077 // API parameter values that are decorated as "sensitive" in the API will not 3078 // be included in the string output. The member name will be present, but the 3079 // value will be replaced with "sensitive". 3080 func (s Connection) GoString() string { 3081 return s.String() 3082 } 3083 3084 // SetConnectionArn sets the ConnectionArn field's value. 3085 func (s *Connection) SetConnectionArn(v string) *Connection { 3086 s.ConnectionArn = &v 3087 return s 3088 } 3089 3090 // SetConnectionName sets the ConnectionName field's value. 3091 func (s *Connection) SetConnectionName(v string) *Connection { 3092 s.ConnectionName = &v 3093 return s 3094 } 3095 3096 // SetCreatedAt sets the CreatedAt field's value. 3097 func (s *Connection) SetCreatedAt(v time.Time) *Connection { 3098 s.CreatedAt = &v 3099 return s 3100 } 3101 3102 // SetProviderType sets the ProviderType field's value. 3103 func (s *Connection) SetProviderType(v string) *Connection { 3104 s.ProviderType = &v 3105 return s 3106 } 3107 3108 // SetStatus sets the Status field's value. 3109 func (s *Connection) SetStatus(v string) *Connection { 3110 s.Status = &v 3111 return s 3112 } 3113 3114 // Provides summary information about an App Runner connection resource. 3115 type ConnectionSummary struct { 3116 _ struct{} `type:"structure"` 3117 3118 // The Amazon Resource Name (ARN) of this connection. 3119 ConnectionArn *string `min:"1" type:"string"` 3120 3121 // The customer-provided connection name. 3122 ConnectionName *string `min:"4" type:"string"` 3123 3124 // The App Runner connection creation time, expressed as a Unix time stamp. 3125 CreatedAt *time.Time `type:"timestamp"` 3126 3127 // The source repository provider. 3128 ProviderType *string `type:"string" enum:"ProviderType"` 3129 3130 // The current state of the App Runner connection. When the state is AVAILABLE, 3131 // you can use the connection to create an App Runner service. 3132 Status *string `type:"string" enum:"ConnectionStatus"` 3133 } 3134 3135 // String returns the string representation. 3136 // 3137 // API parameter values that are decorated as "sensitive" in the API will not 3138 // be included in the string output. The member name will be present, but the 3139 // value will be replaced with "sensitive". 3140 func (s ConnectionSummary) String() string { 3141 return awsutil.Prettify(s) 3142 } 3143 3144 // GoString returns the string representation. 3145 // 3146 // API parameter values that are decorated as "sensitive" in the API will not 3147 // be included in the string output. The member name will be present, but the 3148 // value will be replaced with "sensitive". 3149 func (s ConnectionSummary) GoString() string { 3150 return s.String() 3151 } 3152 3153 // SetConnectionArn sets the ConnectionArn field's value. 3154 func (s *ConnectionSummary) SetConnectionArn(v string) *ConnectionSummary { 3155 s.ConnectionArn = &v 3156 return s 3157 } 3158 3159 // SetConnectionName sets the ConnectionName field's value. 3160 func (s *ConnectionSummary) SetConnectionName(v string) *ConnectionSummary { 3161 s.ConnectionName = &v 3162 return s 3163 } 3164 3165 // SetCreatedAt sets the CreatedAt field's value. 3166 func (s *ConnectionSummary) SetCreatedAt(v time.Time) *ConnectionSummary { 3167 s.CreatedAt = &v 3168 return s 3169 } 3170 3171 // SetProviderType sets the ProviderType field's value. 3172 func (s *ConnectionSummary) SetProviderType(v string) *ConnectionSummary { 3173 s.ProviderType = &v 3174 return s 3175 } 3176 3177 // SetStatus sets the Status field's value. 3178 func (s *ConnectionSummary) SetStatus(v string) *ConnectionSummary { 3179 s.Status = &v 3180 return s 3181 } 3182 3183 type CreateAutoScalingConfigurationInput struct { 3184 _ struct{} `type:"structure"` 3185 3186 // A name for the auto scaling configuration. When you use it for the first 3187 // time in an Amazon Web Services Region, App Runner creates revision number 3188 // 1 of this name. When you use the same name in subsequent calls, App Runner 3189 // creates incremental revisions of the configuration. 3190 // 3191 // AutoScalingConfigurationName is a required field 3192 AutoScalingConfigurationName *string `min:"4" type:"string" required:"true"` 3193 3194 // The maximum number of concurrent requests that you want an instance to process. 3195 // If the number of concurrent requests exceeds this limit, App Runner scales 3196 // up your service. 3197 // 3198 // Default: 100 3199 MaxConcurrency *int64 `min:"1" type:"integer"` 3200 3201 // The maximum number of instances that your service scales up to. At most MaxSize 3202 // instances actively serve traffic for your service. 3203 // 3204 // Default: 25 3205 MaxSize *int64 `min:"1" type:"integer"` 3206 3207 // The minimum number of instances that App Runner provisions for your service. 3208 // The service always has at least MinSize provisioned instances. Some of them 3209 // actively serve traffic. The rest of them (provisioned and inactive instances) 3210 // are a cost-effective compute capacity reserve and are ready to be quickly 3211 // activated. You pay for memory usage of all the provisioned instances. You 3212 // pay for CPU usage of only the active subset. 3213 // 3214 // App Runner temporarily doubles the number of provisioned instances during 3215 // deployments, to maintain the same capacity for both old and new code. 3216 // 3217 // Default: 1 3218 MinSize *int64 `min:"1" type:"integer"` 3219 3220 // A list of metadata items that you can associate with your auto scaling configuration 3221 // resource. A tag is a key-value pair. 3222 Tags []*Tag `type:"list"` 3223 } 3224 3225 // String returns the string representation. 3226 // 3227 // API parameter values that are decorated as "sensitive" in the API will not 3228 // be included in the string output. The member name will be present, but the 3229 // value will be replaced with "sensitive". 3230 func (s CreateAutoScalingConfigurationInput) String() string { 3231 return awsutil.Prettify(s) 3232 } 3233 3234 // GoString returns the string representation. 3235 // 3236 // API parameter values that are decorated as "sensitive" in the API will not 3237 // be included in the string output. The member name will be present, but the 3238 // value will be replaced with "sensitive". 3239 func (s CreateAutoScalingConfigurationInput) GoString() string { 3240 return s.String() 3241 } 3242 3243 // Validate inspects the fields of the type to determine if they are valid. 3244 func (s *CreateAutoScalingConfigurationInput) Validate() error { 3245 invalidParams := request.ErrInvalidParams{Context: "CreateAutoScalingConfigurationInput"} 3246 if s.AutoScalingConfigurationName == nil { 3247 invalidParams.Add(request.NewErrParamRequired("AutoScalingConfigurationName")) 3248 } 3249 if s.AutoScalingConfigurationName != nil && len(*s.AutoScalingConfigurationName) < 4 { 3250 invalidParams.Add(request.NewErrParamMinLen("AutoScalingConfigurationName", 4)) 3251 } 3252 if s.MaxConcurrency != nil && *s.MaxConcurrency < 1 { 3253 invalidParams.Add(request.NewErrParamMinValue("MaxConcurrency", 1)) 3254 } 3255 if s.MaxSize != nil && *s.MaxSize < 1 { 3256 invalidParams.Add(request.NewErrParamMinValue("MaxSize", 1)) 3257 } 3258 if s.MinSize != nil && *s.MinSize < 1 { 3259 invalidParams.Add(request.NewErrParamMinValue("MinSize", 1)) 3260 } 3261 if s.Tags != nil { 3262 for i, v := range s.Tags { 3263 if v == nil { 3264 continue 3265 } 3266 if err := v.Validate(); err != nil { 3267 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) 3268 } 3269 } 3270 } 3271 3272 if invalidParams.Len() > 0 { 3273 return invalidParams 3274 } 3275 return nil 3276 } 3277 3278 // SetAutoScalingConfigurationName sets the AutoScalingConfigurationName field's value. 3279 func (s *CreateAutoScalingConfigurationInput) SetAutoScalingConfigurationName(v string) *CreateAutoScalingConfigurationInput { 3280 s.AutoScalingConfigurationName = &v 3281 return s 3282 } 3283 3284 // SetMaxConcurrency sets the MaxConcurrency field's value. 3285 func (s *CreateAutoScalingConfigurationInput) SetMaxConcurrency(v int64) *CreateAutoScalingConfigurationInput { 3286 s.MaxConcurrency = &v 3287 return s 3288 } 3289 3290 // SetMaxSize sets the MaxSize field's value. 3291 func (s *CreateAutoScalingConfigurationInput) SetMaxSize(v int64) *CreateAutoScalingConfigurationInput { 3292 s.MaxSize = &v 3293 return s 3294 } 3295 3296 // SetMinSize sets the MinSize field's value. 3297 func (s *CreateAutoScalingConfigurationInput) SetMinSize(v int64) *CreateAutoScalingConfigurationInput { 3298 s.MinSize = &v 3299 return s 3300 } 3301 3302 // SetTags sets the Tags field's value. 3303 func (s *CreateAutoScalingConfigurationInput) SetTags(v []*Tag) *CreateAutoScalingConfigurationInput { 3304 s.Tags = v 3305 return s 3306 } 3307 3308 type CreateAutoScalingConfigurationOutput struct { 3309 _ struct{} `type:"structure"` 3310 3311 // A description of the App Runner auto scaling configuration that's created 3312 // by this request. 3313 // 3314 // AutoScalingConfiguration is a required field 3315 AutoScalingConfiguration *AutoScalingConfiguration `type:"structure" required:"true"` 3316 } 3317 3318 // String returns the string representation. 3319 // 3320 // API parameter values that are decorated as "sensitive" in the API will not 3321 // be included in the string output. The member name will be present, but the 3322 // value will be replaced with "sensitive". 3323 func (s CreateAutoScalingConfigurationOutput) String() string { 3324 return awsutil.Prettify(s) 3325 } 3326 3327 // GoString returns the string representation. 3328 // 3329 // API parameter values that are decorated as "sensitive" in the API will not 3330 // be included in the string output. The member name will be present, but the 3331 // value will be replaced with "sensitive". 3332 func (s CreateAutoScalingConfigurationOutput) GoString() string { 3333 return s.String() 3334 } 3335 3336 // SetAutoScalingConfiguration sets the AutoScalingConfiguration field's value. 3337 func (s *CreateAutoScalingConfigurationOutput) SetAutoScalingConfiguration(v *AutoScalingConfiguration) *CreateAutoScalingConfigurationOutput { 3338 s.AutoScalingConfiguration = v 3339 return s 3340 } 3341 3342 type CreateConnectionInput struct { 3343 _ struct{} `type:"structure"` 3344 3345 // A name for the new connection. It must be unique across all App Runner connections 3346 // for the Amazon Web Services account in the Amazon Web Services Region. 3347 // 3348 // ConnectionName is a required field 3349 ConnectionName *string `min:"4" type:"string" required:"true"` 3350 3351 // The source repository provider. 3352 // 3353 // ProviderType is a required field 3354 ProviderType *string `type:"string" required:"true" enum:"ProviderType"` 3355 3356 // A list of metadata items that you can associate with your connection resource. 3357 // A tag is a key-value pair. 3358 Tags []*Tag `type:"list"` 3359 } 3360 3361 // String returns the string representation. 3362 // 3363 // API parameter values that are decorated as "sensitive" in the API will not 3364 // be included in the string output. The member name will be present, but the 3365 // value will be replaced with "sensitive". 3366 func (s CreateConnectionInput) String() string { 3367 return awsutil.Prettify(s) 3368 } 3369 3370 // GoString returns the string representation. 3371 // 3372 // API parameter values that are decorated as "sensitive" in the API will not 3373 // be included in the string output. The member name will be present, but the 3374 // value will be replaced with "sensitive". 3375 func (s CreateConnectionInput) GoString() string { 3376 return s.String() 3377 } 3378 3379 // Validate inspects the fields of the type to determine if they are valid. 3380 func (s *CreateConnectionInput) Validate() error { 3381 invalidParams := request.ErrInvalidParams{Context: "CreateConnectionInput"} 3382 if s.ConnectionName == nil { 3383 invalidParams.Add(request.NewErrParamRequired("ConnectionName")) 3384 } 3385 if s.ConnectionName != nil && len(*s.ConnectionName) < 4 { 3386 invalidParams.Add(request.NewErrParamMinLen("ConnectionName", 4)) 3387 } 3388 if s.ProviderType == nil { 3389 invalidParams.Add(request.NewErrParamRequired("ProviderType")) 3390 } 3391 if s.Tags != nil { 3392 for i, v := range s.Tags { 3393 if v == nil { 3394 continue 3395 } 3396 if err := v.Validate(); err != nil { 3397 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) 3398 } 3399 } 3400 } 3401 3402 if invalidParams.Len() > 0 { 3403 return invalidParams 3404 } 3405 return nil 3406 } 3407 3408 // SetConnectionName sets the ConnectionName field's value. 3409 func (s *CreateConnectionInput) SetConnectionName(v string) *CreateConnectionInput { 3410 s.ConnectionName = &v 3411 return s 3412 } 3413 3414 // SetProviderType sets the ProviderType field's value. 3415 func (s *CreateConnectionInput) SetProviderType(v string) *CreateConnectionInput { 3416 s.ProviderType = &v 3417 return s 3418 } 3419 3420 // SetTags sets the Tags field's value. 3421 func (s *CreateConnectionInput) SetTags(v []*Tag) *CreateConnectionInput { 3422 s.Tags = v 3423 return s 3424 } 3425 3426 type CreateConnectionOutput struct { 3427 _ struct{} `type:"structure"` 3428 3429 // A description of the App Runner connection that's created by this request. 3430 // 3431 // Connection is a required field 3432 Connection *Connection `type:"structure" required:"true"` 3433 } 3434 3435 // String returns the string representation. 3436 // 3437 // API parameter values that are decorated as "sensitive" in the API will not 3438 // be included in the string output. The member name will be present, but the 3439 // value will be replaced with "sensitive". 3440 func (s CreateConnectionOutput) String() string { 3441 return awsutil.Prettify(s) 3442 } 3443 3444 // GoString returns the string representation. 3445 // 3446 // API parameter values that are decorated as "sensitive" in the API will not 3447 // be included in the string output. The member name will be present, but the 3448 // value will be replaced with "sensitive". 3449 func (s CreateConnectionOutput) GoString() string { 3450 return s.String() 3451 } 3452 3453 // SetConnection sets the Connection field's value. 3454 func (s *CreateConnectionOutput) SetConnection(v *Connection) *CreateConnectionOutput { 3455 s.Connection = v 3456 return s 3457 } 3458 3459 type CreateServiceInput struct { 3460 _ struct{} `type:"structure"` 3461 3462 // The Amazon Resource Name (ARN) of an App Runner automatic scaling configuration 3463 // resource that you want to associate with your service. If not provided, App 3464 // Runner associates the latest revision of a default auto scaling configuration. 3465 AutoScalingConfigurationArn *string `min:"1" type:"string"` 3466 3467 // An optional custom encryption key that App Runner uses to encrypt the copy 3468 // of your source repository that it maintains and your service logs. By default, 3469 // App Runner uses an Amazon Web Services managed CMK. 3470 EncryptionConfiguration *EncryptionConfiguration `type:"structure"` 3471 3472 // The settings for the health check that App Runner performs to monitor the 3473 // health of your service. 3474 HealthCheckConfiguration *HealthCheckConfiguration `type:"structure"` 3475 3476 // The runtime configuration of instances (scaling units) of the App Runner 3477 // service. 3478 InstanceConfiguration *InstanceConfiguration `type:"structure"` 3479 3480 // A name for the new service. It must be unique across all the running App 3481 // Runner services in your Amazon Web Services account in the Amazon Web Services 3482 // Region. 3483 // 3484 // ServiceName is a required field 3485 ServiceName *string `min:"4" type:"string" required:"true"` 3486 3487 // The source to deploy to the App Runner service. It can be a code or an image 3488 // repository. 3489 // 3490 // SourceConfiguration is a required field 3491 SourceConfiguration *SourceConfiguration `type:"structure" required:"true"` 3492 3493 // An optional list of metadata items that you can associate with your service 3494 // resource. A tag is a key-value pair. 3495 Tags []*Tag `type:"list"` 3496 } 3497 3498 // String returns the string representation. 3499 // 3500 // API parameter values that are decorated as "sensitive" in the API will not 3501 // be included in the string output. The member name will be present, but the 3502 // value will be replaced with "sensitive". 3503 func (s CreateServiceInput) String() string { 3504 return awsutil.Prettify(s) 3505 } 3506 3507 // GoString returns the string representation. 3508 // 3509 // API parameter values that are decorated as "sensitive" in the API will not 3510 // be included in the string output. The member name will be present, but the 3511 // value will be replaced with "sensitive". 3512 func (s CreateServiceInput) GoString() string { 3513 return s.String() 3514 } 3515 3516 // Validate inspects the fields of the type to determine if they are valid. 3517 func (s *CreateServiceInput) Validate() error { 3518 invalidParams := request.ErrInvalidParams{Context: "CreateServiceInput"} 3519 if s.AutoScalingConfigurationArn != nil && len(*s.AutoScalingConfigurationArn) < 1 { 3520 invalidParams.Add(request.NewErrParamMinLen("AutoScalingConfigurationArn", 1)) 3521 } 3522 if s.ServiceName == nil { 3523 invalidParams.Add(request.NewErrParamRequired("ServiceName")) 3524 } 3525 if s.ServiceName != nil && len(*s.ServiceName) < 4 { 3526 invalidParams.Add(request.NewErrParamMinLen("ServiceName", 4)) 3527 } 3528 if s.SourceConfiguration == nil { 3529 invalidParams.Add(request.NewErrParamRequired("SourceConfiguration")) 3530 } 3531 if s.EncryptionConfiguration != nil { 3532 if err := s.EncryptionConfiguration.Validate(); err != nil { 3533 invalidParams.AddNested("EncryptionConfiguration", err.(request.ErrInvalidParams)) 3534 } 3535 } 3536 if s.HealthCheckConfiguration != nil { 3537 if err := s.HealthCheckConfiguration.Validate(); err != nil { 3538 invalidParams.AddNested("HealthCheckConfiguration", err.(request.ErrInvalidParams)) 3539 } 3540 } 3541 if s.InstanceConfiguration != nil { 3542 if err := s.InstanceConfiguration.Validate(); err != nil { 3543 invalidParams.AddNested("InstanceConfiguration", err.(request.ErrInvalidParams)) 3544 } 3545 } 3546 if s.SourceConfiguration != nil { 3547 if err := s.SourceConfiguration.Validate(); err != nil { 3548 invalidParams.AddNested("SourceConfiguration", err.(request.ErrInvalidParams)) 3549 } 3550 } 3551 if s.Tags != nil { 3552 for i, v := range s.Tags { 3553 if v == nil { 3554 continue 3555 } 3556 if err := v.Validate(); err != nil { 3557 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) 3558 } 3559 } 3560 } 3561 3562 if invalidParams.Len() > 0 { 3563 return invalidParams 3564 } 3565 return nil 3566 } 3567 3568 // SetAutoScalingConfigurationArn sets the AutoScalingConfigurationArn field's value. 3569 func (s *CreateServiceInput) SetAutoScalingConfigurationArn(v string) *CreateServiceInput { 3570 s.AutoScalingConfigurationArn = &v 3571 return s 3572 } 3573 3574 // SetEncryptionConfiguration sets the EncryptionConfiguration field's value. 3575 func (s *CreateServiceInput) SetEncryptionConfiguration(v *EncryptionConfiguration) *CreateServiceInput { 3576 s.EncryptionConfiguration = v 3577 return s 3578 } 3579 3580 // SetHealthCheckConfiguration sets the HealthCheckConfiguration field's value. 3581 func (s *CreateServiceInput) SetHealthCheckConfiguration(v *HealthCheckConfiguration) *CreateServiceInput { 3582 s.HealthCheckConfiguration = v 3583 return s 3584 } 3585 3586 // SetInstanceConfiguration sets the InstanceConfiguration field's value. 3587 func (s *CreateServiceInput) SetInstanceConfiguration(v *InstanceConfiguration) *CreateServiceInput { 3588 s.InstanceConfiguration = v 3589 return s 3590 } 3591 3592 // SetServiceName sets the ServiceName field's value. 3593 func (s *CreateServiceInput) SetServiceName(v string) *CreateServiceInput { 3594 s.ServiceName = &v 3595 return s 3596 } 3597 3598 // SetSourceConfiguration sets the SourceConfiguration field's value. 3599 func (s *CreateServiceInput) SetSourceConfiguration(v *SourceConfiguration) *CreateServiceInput { 3600 s.SourceConfiguration = v 3601 return s 3602 } 3603 3604 // SetTags sets the Tags field's value. 3605 func (s *CreateServiceInput) SetTags(v []*Tag) *CreateServiceInput { 3606 s.Tags = v 3607 return s 3608 } 3609 3610 type CreateServiceOutput struct { 3611 _ struct{} `type:"structure"` 3612 3613 // The unique ID of the asynchronous operation that this request started. You 3614 // can use it combined with the ListOperations (https://docs.aws.amazon.com/apprunner/latest/api/API_ListOperations.html) 3615 // call to track the operation's progress. 3616 // 3617 // OperationId is a required field 3618 OperationId *string `min:"36" type:"string" required:"true"` 3619 3620 // A description of the App Runner service that's created by this request. 3621 // 3622 // Service is a required field 3623 Service *Service `type:"structure" required:"true"` 3624 } 3625 3626 // String returns the string representation. 3627 // 3628 // API parameter values that are decorated as "sensitive" in the API will not 3629 // be included in the string output. The member name will be present, but the 3630 // value will be replaced with "sensitive". 3631 func (s CreateServiceOutput) String() string { 3632 return awsutil.Prettify(s) 3633 } 3634 3635 // GoString returns the string representation. 3636 // 3637 // API parameter values that are decorated as "sensitive" in the API will not 3638 // be included in the string output. The member name will be present, but the 3639 // value will be replaced with "sensitive". 3640 func (s CreateServiceOutput) GoString() string { 3641 return s.String() 3642 } 3643 3644 // SetOperationId sets the OperationId field's value. 3645 func (s *CreateServiceOutput) SetOperationId(v string) *CreateServiceOutput { 3646 s.OperationId = &v 3647 return s 3648 } 3649 3650 // SetService sets the Service field's value. 3651 func (s *CreateServiceOutput) SetService(v *Service) *CreateServiceOutput { 3652 s.Service = v 3653 return s 3654 } 3655 3656 // Describes a custom domain that's associated with an App Runner service. 3657 type CustomDomain struct { 3658 _ struct{} `type:"structure"` 3659 3660 // A list of certificate CNAME records that's used for this domain name. 3661 CertificateValidationRecords []*CertificateValidationRecord `type:"list"` 3662 3663 // An associated custom domain endpoint. It can be a root domain (for example, 3664 // example.com), a subdomain (for example, login.example.com or admin.login.example.com), 3665 // or a wildcard (for example, *.example.com). 3666 // 3667 // DomainName is a required field 3668 DomainName *string `min:"1" type:"string" required:"true"` 3669 3670 // When true, the subdomain www.DomainName is associated with the App Runner 3671 // service in addition to the base domain. 3672 // 3673 // EnableWWWSubdomain is a required field 3674 EnableWWWSubdomain *bool `type:"boolean" required:"true"` 3675 3676 // The current state of the domain name association. 3677 // 3678 // Status is a required field 3679 Status *string `type:"string" required:"true" enum:"CustomDomainAssociationStatus"` 3680 } 3681 3682 // String returns the string representation. 3683 // 3684 // API parameter values that are decorated as "sensitive" in the API will not 3685 // be included in the string output. The member name will be present, but the 3686 // value will be replaced with "sensitive". 3687 func (s CustomDomain) String() string { 3688 return awsutil.Prettify(s) 3689 } 3690 3691 // GoString returns the string representation. 3692 // 3693 // API parameter values that are decorated as "sensitive" in the API will not 3694 // be included in the string output. The member name will be present, but the 3695 // value will be replaced with "sensitive". 3696 func (s CustomDomain) GoString() string { 3697 return s.String() 3698 } 3699 3700 // SetCertificateValidationRecords sets the CertificateValidationRecords field's value. 3701 func (s *CustomDomain) SetCertificateValidationRecords(v []*CertificateValidationRecord) *CustomDomain { 3702 s.CertificateValidationRecords = v 3703 return s 3704 } 3705 3706 // SetDomainName sets the DomainName field's value. 3707 func (s *CustomDomain) SetDomainName(v string) *CustomDomain { 3708 s.DomainName = &v 3709 return s 3710 } 3711 3712 // SetEnableWWWSubdomain sets the EnableWWWSubdomain field's value. 3713 func (s *CustomDomain) SetEnableWWWSubdomain(v bool) *CustomDomain { 3714 s.EnableWWWSubdomain = &v 3715 return s 3716 } 3717 3718 // SetStatus sets the Status field's value. 3719 func (s *CustomDomain) SetStatus(v string) *CustomDomain { 3720 s.Status = &v 3721 return s 3722 } 3723 3724 type DeleteAutoScalingConfigurationInput struct { 3725 _ struct{} `type:"structure"` 3726 3727 // The Amazon Resource Name (ARN) of the App Runner auto scaling configuration 3728 // that you want to delete. 3729 // 3730 // The ARN can be a full auto scaling configuration ARN, or a partial ARN ending 3731 // with either .../name or .../name/revision . If a revision isn't specified, 3732 // the latest active revision is deleted. 3733 // 3734 // AutoScalingConfigurationArn is a required field 3735 AutoScalingConfigurationArn *string `min:"1" type:"string" required:"true"` 3736 } 3737 3738 // String returns the string representation. 3739 // 3740 // API parameter values that are decorated as "sensitive" in the API will not 3741 // be included in the string output. The member name will be present, but the 3742 // value will be replaced with "sensitive". 3743 func (s DeleteAutoScalingConfigurationInput) String() string { 3744 return awsutil.Prettify(s) 3745 } 3746 3747 // GoString returns the string representation. 3748 // 3749 // API parameter values that are decorated as "sensitive" in the API will not 3750 // be included in the string output. The member name will be present, but the 3751 // value will be replaced with "sensitive". 3752 func (s DeleteAutoScalingConfigurationInput) GoString() string { 3753 return s.String() 3754 } 3755 3756 // Validate inspects the fields of the type to determine if they are valid. 3757 func (s *DeleteAutoScalingConfigurationInput) Validate() error { 3758 invalidParams := request.ErrInvalidParams{Context: "DeleteAutoScalingConfigurationInput"} 3759 if s.AutoScalingConfigurationArn == nil { 3760 invalidParams.Add(request.NewErrParamRequired("AutoScalingConfigurationArn")) 3761 } 3762 if s.AutoScalingConfigurationArn != nil && len(*s.AutoScalingConfigurationArn) < 1 { 3763 invalidParams.Add(request.NewErrParamMinLen("AutoScalingConfigurationArn", 1)) 3764 } 3765 3766 if invalidParams.Len() > 0 { 3767 return invalidParams 3768 } 3769 return nil 3770 } 3771 3772 // SetAutoScalingConfigurationArn sets the AutoScalingConfigurationArn field's value. 3773 func (s *DeleteAutoScalingConfigurationInput) SetAutoScalingConfigurationArn(v string) *DeleteAutoScalingConfigurationInput { 3774 s.AutoScalingConfigurationArn = &v 3775 return s 3776 } 3777 3778 type DeleteAutoScalingConfigurationOutput struct { 3779 _ struct{} `type:"structure"` 3780 3781 // A description of the App Runner auto scaling configuration that this request 3782 // just deleted. 3783 // 3784 // AutoScalingConfiguration is a required field 3785 AutoScalingConfiguration *AutoScalingConfiguration `type:"structure" required:"true"` 3786 } 3787 3788 // String returns the string representation. 3789 // 3790 // API parameter values that are decorated as "sensitive" in the API will not 3791 // be included in the string output. The member name will be present, but the 3792 // value will be replaced with "sensitive". 3793 func (s DeleteAutoScalingConfigurationOutput) String() string { 3794 return awsutil.Prettify(s) 3795 } 3796 3797 // GoString returns the string representation. 3798 // 3799 // API parameter values that are decorated as "sensitive" in the API will not 3800 // be included in the string output. The member name will be present, but the 3801 // value will be replaced with "sensitive". 3802 func (s DeleteAutoScalingConfigurationOutput) GoString() string { 3803 return s.String() 3804 } 3805 3806 // SetAutoScalingConfiguration sets the AutoScalingConfiguration field's value. 3807 func (s *DeleteAutoScalingConfigurationOutput) SetAutoScalingConfiguration(v *AutoScalingConfiguration) *DeleteAutoScalingConfigurationOutput { 3808 s.AutoScalingConfiguration = v 3809 return s 3810 } 3811 3812 type DeleteConnectionInput struct { 3813 _ struct{} `type:"structure"` 3814 3815 // The Amazon Resource Name (ARN) of the App Runner connection that you want 3816 // to delete. 3817 // 3818 // ConnectionArn is a required field 3819 ConnectionArn *string `min:"1" type:"string" required:"true"` 3820 } 3821 3822 // String returns the string representation. 3823 // 3824 // API parameter values that are decorated as "sensitive" in the API will not 3825 // be included in the string output. The member name will be present, but the 3826 // value will be replaced with "sensitive". 3827 func (s DeleteConnectionInput) String() string { 3828 return awsutil.Prettify(s) 3829 } 3830 3831 // GoString returns the string representation. 3832 // 3833 // API parameter values that are decorated as "sensitive" in the API will not 3834 // be included in the string output. The member name will be present, but the 3835 // value will be replaced with "sensitive". 3836 func (s DeleteConnectionInput) GoString() string { 3837 return s.String() 3838 } 3839 3840 // Validate inspects the fields of the type to determine if they are valid. 3841 func (s *DeleteConnectionInput) Validate() error { 3842 invalidParams := request.ErrInvalidParams{Context: "DeleteConnectionInput"} 3843 if s.ConnectionArn == nil { 3844 invalidParams.Add(request.NewErrParamRequired("ConnectionArn")) 3845 } 3846 if s.ConnectionArn != nil && len(*s.ConnectionArn) < 1 { 3847 invalidParams.Add(request.NewErrParamMinLen("ConnectionArn", 1)) 3848 } 3849 3850 if invalidParams.Len() > 0 { 3851 return invalidParams 3852 } 3853 return nil 3854 } 3855 3856 // SetConnectionArn sets the ConnectionArn field's value. 3857 func (s *DeleteConnectionInput) SetConnectionArn(v string) *DeleteConnectionInput { 3858 s.ConnectionArn = &v 3859 return s 3860 } 3861 3862 type DeleteConnectionOutput struct { 3863 _ struct{} `type:"structure"` 3864 3865 // A description of the App Runner connection that this request just deleted. 3866 Connection *Connection `type:"structure"` 3867 } 3868 3869 // String returns the string representation. 3870 // 3871 // API parameter values that are decorated as "sensitive" in the API will not 3872 // be included in the string output. The member name will be present, but the 3873 // value will be replaced with "sensitive". 3874 func (s DeleteConnectionOutput) String() string { 3875 return awsutil.Prettify(s) 3876 } 3877 3878 // GoString returns the string representation. 3879 // 3880 // API parameter values that are decorated as "sensitive" in the API will not 3881 // be included in the string output. The member name will be present, but the 3882 // value will be replaced with "sensitive". 3883 func (s DeleteConnectionOutput) GoString() string { 3884 return s.String() 3885 } 3886 3887 // SetConnection sets the Connection field's value. 3888 func (s *DeleteConnectionOutput) SetConnection(v *Connection) *DeleteConnectionOutput { 3889 s.Connection = v 3890 return s 3891 } 3892 3893 type DeleteServiceInput struct { 3894 _ struct{} `type:"structure"` 3895 3896 // The Amazon Resource Name (ARN) of the App Runner service that you want to 3897 // delete. 3898 // 3899 // ServiceArn is a required field 3900 ServiceArn *string `min:"1" type:"string" required:"true"` 3901 } 3902 3903 // String returns the string representation. 3904 // 3905 // API parameter values that are decorated as "sensitive" in the API will not 3906 // be included in the string output. The member name will be present, but the 3907 // value will be replaced with "sensitive". 3908 func (s DeleteServiceInput) String() string { 3909 return awsutil.Prettify(s) 3910 } 3911 3912 // GoString returns the string representation. 3913 // 3914 // API parameter values that are decorated as "sensitive" in the API will not 3915 // be included in the string output. The member name will be present, but the 3916 // value will be replaced with "sensitive". 3917 func (s DeleteServiceInput) GoString() string { 3918 return s.String() 3919 } 3920 3921 // Validate inspects the fields of the type to determine if they are valid. 3922 func (s *DeleteServiceInput) Validate() error { 3923 invalidParams := request.ErrInvalidParams{Context: "DeleteServiceInput"} 3924 if s.ServiceArn == nil { 3925 invalidParams.Add(request.NewErrParamRequired("ServiceArn")) 3926 } 3927 if s.ServiceArn != nil && len(*s.ServiceArn) < 1 { 3928 invalidParams.Add(request.NewErrParamMinLen("ServiceArn", 1)) 3929 } 3930 3931 if invalidParams.Len() > 0 { 3932 return invalidParams 3933 } 3934 return nil 3935 } 3936 3937 // SetServiceArn sets the ServiceArn field's value. 3938 func (s *DeleteServiceInput) SetServiceArn(v string) *DeleteServiceInput { 3939 s.ServiceArn = &v 3940 return s 3941 } 3942 3943 type DeleteServiceOutput struct { 3944 _ struct{} `type:"structure"` 3945 3946 // The unique ID of the asynchronous operation that this request started. You 3947 // can use it combined with the ListOperations call to track the operation's 3948 // progress. 3949 // 3950 // OperationId is a required field 3951 OperationId *string `min:"36" type:"string" required:"true"` 3952 3953 // A description of the App Runner service that this request just deleted. 3954 // 3955 // Service is a required field 3956 Service *Service `type:"structure" required:"true"` 3957 } 3958 3959 // String returns the string representation. 3960 // 3961 // API parameter values that are decorated as "sensitive" in the API will not 3962 // be included in the string output. The member name will be present, but the 3963 // value will be replaced with "sensitive". 3964 func (s DeleteServiceOutput) String() string { 3965 return awsutil.Prettify(s) 3966 } 3967 3968 // GoString returns the string representation. 3969 // 3970 // API parameter values that are decorated as "sensitive" in the API will not 3971 // be included in the string output. The member name will be present, but the 3972 // value will be replaced with "sensitive". 3973 func (s DeleteServiceOutput) GoString() string { 3974 return s.String() 3975 } 3976 3977 // SetOperationId sets the OperationId field's value. 3978 func (s *DeleteServiceOutput) SetOperationId(v string) *DeleteServiceOutput { 3979 s.OperationId = &v 3980 return s 3981 } 3982 3983 // SetService sets the Service field's value. 3984 func (s *DeleteServiceOutput) SetService(v *Service) *DeleteServiceOutput { 3985 s.Service = v 3986 return s 3987 } 3988 3989 type DescribeAutoScalingConfigurationInput struct { 3990 _ struct{} `type:"structure"` 3991 3992 // The Amazon Resource Name (ARN) of the App Runner auto scaling configuration 3993 // that you want a description for. 3994 // 3995 // The ARN can be a full auto scaling configuration ARN, or a partial ARN ending 3996 // with either .../name or .../name/revision . If a revision isn't specified, 3997 // the latest active revision is described. 3998 // 3999 // AutoScalingConfigurationArn is a required field 4000 AutoScalingConfigurationArn *string `min:"1" type:"string" required:"true"` 4001 } 4002 4003 // String returns the string representation. 4004 // 4005 // API parameter values that are decorated as "sensitive" in the API will not 4006 // be included in the string output. The member name will be present, but the 4007 // value will be replaced with "sensitive". 4008 func (s DescribeAutoScalingConfigurationInput) String() string { 4009 return awsutil.Prettify(s) 4010 } 4011 4012 // GoString returns the string representation. 4013 // 4014 // API parameter values that are decorated as "sensitive" in the API will not 4015 // be included in the string output. The member name will be present, but the 4016 // value will be replaced with "sensitive". 4017 func (s DescribeAutoScalingConfigurationInput) GoString() string { 4018 return s.String() 4019 } 4020 4021 // Validate inspects the fields of the type to determine if they are valid. 4022 func (s *DescribeAutoScalingConfigurationInput) Validate() error { 4023 invalidParams := request.ErrInvalidParams{Context: "DescribeAutoScalingConfigurationInput"} 4024 if s.AutoScalingConfigurationArn == nil { 4025 invalidParams.Add(request.NewErrParamRequired("AutoScalingConfigurationArn")) 4026 } 4027 if s.AutoScalingConfigurationArn != nil && len(*s.AutoScalingConfigurationArn) < 1 { 4028 invalidParams.Add(request.NewErrParamMinLen("AutoScalingConfigurationArn", 1)) 4029 } 4030 4031 if invalidParams.Len() > 0 { 4032 return invalidParams 4033 } 4034 return nil 4035 } 4036 4037 // SetAutoScalingConfigurationArn sets the AutoScalingConfigurationArn field's value. 4038 func (s *DescribeAutoScalingConfigurationInput) SetAutoScalingConfigurationArn(v string) *DescribeAutoScalingConfigurationInput { 4039 s.AutoScalingConfigurationArn = &v 4040 return s 4041 } 4042 4043 type DescribeAutoScalingConfigurationOutput struct { 4044 _ struct{} `type:"structure"` 4045 4046 // A full description of the App Runner auto scaling configuration that you 4047 // specified in this request. 4048 // 4049 // AutoScalingConfiguration is a required field 4050 AutoScalingConfiguration *AutoScalingConfiguration `type:"structure" required:"true"` 4051 } 4052 4053 // String returns the string representation. 4054 // 4055 // API parameter values that are decorated as "sensitive" in the API will not 4056 // be included in the string output. The member name will be present, but the 4057 // value will be replaced with "sensitive". 4058 func (s DescribeAutoScalingConfigurationOutput) String() string { 4059 return awsutil.Prettify(s) 4060 } 4061 4062 // GoString returns the string representation. 4063 // 4064 // API parameter values that are decorated as "sensitive" in the API will not 4065 // be included in the string output. The member name will be present, but the 4066 // value will be replaced with "sensitive". 4067 func (s DescribeAutoScalingConfigurationOutput) GoString() string { 4068 return s.String() 4069 } 4070 4071 // SetAutoScalingConfiguration sets the AutoScalingConfiguration field's value. 4072 func (s *DescribeAutoScalingConfigurationOutput) SetAutoScalingConfiguration(v *AutoScalingConfiguration) *DescribeAutoScalingConfigurationOutput { 4073 s.AutoScalingConfiguration = v 4074 return s 4075 } 4076 4077 type DescribeCustomDomainsInput struct { 4078 _ struct{} `type:"structure"` 4079 4080 // The maximum number of results that each response (result page) can include. 4081 // It's used for a paginated request. 4082 // 4083 // If you don't specify MaxResults, the request retrieves all available results 4084 // in a single response. 4085 MaxResults *int64 `min:"1" type:"integer"` 4086 4087 // A token from a previous result page. It's used for a paginated request. The 4088 // request retrieves the next result page. All other parameter values must be 4089 // identical to the ones that are specified in the initial request. 4090 // 4091 // If you don't specify NextToken, the request retrieves the first result page. 4092 NextToken *string `type:"string"` 4093 4094 // The Amazon Resource Name (ARN) of the App Runner service that you want associated 4095 // custom domain names to be described for. 4096 // 4097 // ServiceArn is a required field 4098 ServiceArn *string `min:"1" type:"string" required:"true"` 4099 } 4100 4101 // String returns the string representation. 4102 // 4103 // API parameter values that are decorated as "sensitive" in the API will not 4104 // be included in the string output. The member name will be present, but the 4105 // value will be replaced with "sensitive". 4106 func (s DescribeCustomDomainsInput) String() string { 4107 return awsutil.Prettify(s) 4108 } 4109 4110 // GoString returns the string representation. 4111 // 4112 // API parameter values that are decorated as "sensitive" in the API will not 4113 // be included in the string output. The member name will be present, but the 4114 // value will be replaced with "sensitive". 4115 func (s DescribeCustomDomainsInput) GoString() string { 4116 return s.String() 4117 } 4118 4119 // Validate inspects the fields of the type to determine if they are valid. 4120 func (s *DescribeCustomDomainsInput) Validate() error { 4121 invalidParams := request.ErrInvalidParams{Context: "DescribeCustomDomainsInput"} 4122 if s.MaxResults != nil && *s.MaxResults < 1 { 4123 invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) 4124 } 4125 if s.ServiceArn == nil { 4126 invalidParams.Add(request.NewErrParamRequired("ServiceArn")) 4127 } 4128 if s.ServiceArn != nil && len(*s.ServiceArn) < 1 { 4129 invalidParams.Add(request.NewErrParamMinLen("ServiceArn", 1)) 4130 } 4131 4132 if invalidParams.Len() > 0 { 4133 return invalidParams 4134 } 4135 return nil 4136 } 4137 4138 // SetMaxResults sets the MaxResults field's value. 4139 func (s *DescribeCustomDomainsInput) SetMaxResults(v int64) *DescribeCustomDomainsInput { 4140 s.MaxResults = &v 4141 return s 4142 } 4143 4144 // SetNextToken sets the NextToken field's value. 4145 func (s *DescribeCustomDomainsInput) SetNextToken(v string) *DescribeCustomDomainsInput { 4146 s.NextToken = &v 4147 return s 4148 } 4149 4150 // SetServiceArn sets the ServiceArn field's value. 4151 func (s *DescribeCustomDomainsInput) SetServiceArn(v string) *DescribeCustomDomainsInput { 4152 s.ServiceArn = &v 4153 return s 4154 } 4155 4156 type DescribeCustomDomainsOutput struct { 4157 _ struct{} `type:"structure"` 4158 4159 // A list of descriptions of custom domain names that are associated with the 4160 // service. In a paginated request, the request returns up to MaxResults records 4161 // per call. 4162 // 4163 // CustomDomains is a required field 4164 CustomDomains []*CustomDomain `type:"list" required:"true"` 4165 4166 // The App Runner subdomain of the App Runner service. The associated custom 4167 // domain names are mapped to this target name. 4168 // 4169 // DNSTarget is a required field 4170 DNSTarget *string `type:"string" required:"true"` 4171 4172 // The token that you can pass in a subsequent request to get the next result 4173 // page. It's returned in a paginated request. 4174 NextToken *string `type:"string"` 4175 4176 // The Amazon Resource Name (ARN) of the App Runner service whose associated 4177 // custom domain names you want to describe. 4178 // 4179 // ServiceArn is a required field 4180 ServiceArn *string `min:"1" type:"string" required:"true"` 4181 } 4182 4183 // String returns the string representation. 4184 // 4185 // API parameter values that are decorated as "sensitive" in the API will not 4186 // be included in the string output. The member name will be present, but the 4187 // value will be replaced with "sensitive". 4188 func (s DescribeCustomDomainsOutput) String() string { 4189 return awsutil.Prettify(s) 4190 } 4191 4192 // GoString returns the string representation. 4193 // 4194 // API parameter values that are decorated as "sensitive" in the API will not 4195 // be included in the string output. The member name will be present, but the 4196 // value will be replaced with "sensitive". 4197 func (s DescribeCustomDomainsOutput) GoString() string { 4198 return s.String() 4199 } 4200 4201 // SetCustomDomains sets the CustomDomains field's value. 4202 func (s *DescribeCustomDomainsOutput) SetCustomDomains(v []*CustomDomain) *DescribeCustomDomainsOutput { 4203 s.CustomDomains = v 4204 return s 4205 } 4206 4207 // SetDNSTarget sets the DNSTarget field's value. 4208 func (s *DescribeCustomDomainsOutput) SetDNSTarget(v string) *DescribeCustomDomainsOutput { 4209 s.DNSTarget = &v 4210 return s 4211 } 4212 4213 // SetNextToken sets the NextToken field's value. 4214 func (s *DescribeCustomDomainsOutput) SetNextToken(v string) *DescribeCustomDomainsOutput { 4215 s.NextToken = &v 4216 return s 4217 } 4218 4219 // SetServiceArn sets the ServiceArn field's value. 4220 func (s *DescribeCustomDomainsOutput) SetServiceArn(v string) *DescribeCustomDomainsOutput { 4221 s.ServiceArn = &v 4222 return s 4223 } 4224 4225 type DescribeServiceInput struct { 4226 _ struct{} `type:"structure"` 4227 4228 // The Amazon Resource Name (ARN) of the App Runner service that you want a 4229 // description for. 4230 // 4231 // ServiceArn is a required field 4232 ServiceArn *string `min:"1" type:"string" required:"true"` 4233 } 4234 4235 // String returns the string representation. 4236 // 4237 // API parameter values that are decorated as "sensitive" in the API will not 4238 // be included in the string output. The member name will be present, but the 4239 // value will be replaced with "sensitive". 4240 func (s DescribeServiceInput) String() string { 4241 return awsutil.Prettify(s) 4242 } 4243 4244 // GoString returns the string representation. 4245 // 4246 // API parameter values that are decorated as "sensitive" in the API will not 4247 // be included in the string output. The member name will be present, but the 4248 // value will be replaced with "sensitive". 4249 func (s DescribeServiceInput) GoString() string { 4250 return s.String() 4251 } 4252 4253 // Validate inspects the fields of the type to determine if they are valid. 4254 func (s *DescribeServiceInput) Validate() error { 4255 invalidParams := request.ErrInvalidParams{Context: "DescribeServiceInput"} 4256 if s.ServiceArn == nil { 4257 invalidParams.Add(request.NewErrParamRequired("ServiceArn")) 4258 } 4259 if s.ServiceArn != nil && len(*s.ServiceArn) < 1 { 4260 invalidParams.Add(request.NewErrParamMinLen("ServiceArn", 1)) 4261 } 4262 4263 if invalidParams.Len() > 0 { 4264 return invalidParams 4265 } 4266 return nil 4267 } 4268 4269 // SetServiceArn sets the ServiceArn field's value. 4270 func (s *DescribeServiceInput) SetServiceArn(v string) *DescribeServiceInput { 4271 s.ServiceArn = &v 4272 return s 4273 } 4274 4275 type DescribeServiceOutput struct { 4276 _ struct{} `type:"structure"` 4277 4278 // A full description of the App Runner service that you specified in this request. 4279 // 4280 // Service is a required field 4281 Service *Service `type:"structure" required:"true"` 4282 } 4283 4284 // String returns the string representation. 4285 // 4286 // API parameter values that are decorated as "sensitive" in the API will not 4287 // be included in the string output. The member name will be present, but the 4288 // value will be replaced with "sensitive". 4289 func (s DescribeServiceOutput) String() string { 4290 return awsutil.Prettify(s) 4291 } 4292 4293 // GoString returns the string representation. 4294 // 4295 // API parameter values that are decorated as "sensitive" in the API will not 4296 // be included in the string output. The member name will be present, but the 4297 // value will be replaced with "sensitive". 4298 func (s DescribeServiceOutput) GoString() string { 4299 return s.String() 4300 } 4301 4302 // SetService sets the Service field's value. 4303 func (s *DescribeServiceOutput) SetService(v *Service) *DescribeServiceOutput { 4304 s.Service = v 4305 return s 4306 } 4307 4308 type DisassociateCustomDomainInput struct { 4309 _ struct{} `type:"structure"` 4310 4311 // The domain name that you want to disassociate from the App Runner service. 4312 // 4313 // DomainName is a required field 4314 DomainName *string `min:"1" type:"string" required:"true"` 4315 4316 // The Amazon Resource Name (ARN) of the App Runner service that you want to 4317 // disassociate a custom domain name from. 4318 // 4319 // ServiceArn is a required field 4320 ServiceArn *string `min:"1" type:"string" required:"true"` 4321 } 4322 4323 // String returns the string representation. 4324 // 4325 // API parameter values that are decorated as "sensitive" in the API will not 4326 // be included in the string output. The member name will be present, but the 4327 // value will be replaced with "sensitive". 4328 func (s DisassociateCustomDomainInput) String() string { 4329 return awsutil.Prettify(s) 4330 } 4331 4332 // GoString returns the string representation. 4333 // 4334 // API parameter values that are decorated as "sensitive" in the API will not 4335 // be included in the string output. The member name will be present, but the 4336 // value will be replaced with "sensitive". 4337 func (s DisassociateCustomDomainInput) GoString() string { 4338 return s.String() 4339 } 4340 4341 // Validate inspects the fields of the type to determine if they are valid. 4342 func (s *DisassociateCustomDomainInput) Validate() error { 4343 invalidParams := request.ErrInvalidParams{Context: "DisassociateCustomDomainInput"} 4344 if s.DomainName == nil { 4345 invalidParams.Add(request.NewErrParamRequired("DomainName")) 4346 } 4347 if s.DomainName != nil && len(*s.DomainName) < 1 { 4348 invalidParams.Add(request.NewErrParamMinLen("DomainName", 1)) 4349 } 4350 if s.ServiceArn == nil { 4351 invalidParams.Add(request.NewErrParamRequired("ServiceArn")) 4352 } 4353 if s.ServiceArn != nil && len(*s.ServiceArn) < 1 { 4354 invalidParams.Add(request.NewErrParamMinLen("ServiceArn", 1)) 4355 } 4356 4357 if invalidParams.Len() > 0 { 4358 return invalidParams 4359 } 4360 return nil 4361 } 4362 4363 // SetDomainName sets the DomainName field's value. 4364 func (s *DisassociateCustomDomainInput) SetDomainName(v string) *DisassociateCustomDomainInput { 4365 s.DomainName = &v 4366 return s 4367 } 4368 4369 // SetServiceArn sets the ServiceArn field's value. 4370 func (s *DisassociateCustomDomainInput) SetServiceArn(v string) *DisassociateCustomDomainInput { 4371 s.ServiceArn = &v 4372 return s 4373 } 4374 4375 type DisassociateCustomDomainOutput struct { 4376 _ struct{} `type:"structure"` 4377 4378 // A description of the domain name that's being disassociated. 4379 // 4380 // CustomDomain is a required field 4381 CustomDomain *CustomDomain `type:"structure" required:"true"` 4382 4383 // The App Runner subdomain of the App Runner service. The disassociated custom 4384 // domain name was mapped to this target name. 4385 // 4386 // DNSTarget is a required field 4387 DNSTarget *string `type:"string" required:"true"` 4388 4389 // The Amazon Resource Name (ARN) of the App Runner service that a custom domain 4390 // name is disassociated from. 4391 // 4392 // ServiceArn is a required field 4393 ServiceArn *string `min:"1" type:"string" required:"true"` 4394 } 4395 4396 // String returns the string representation. 4397 // 4398 // API parameter values that are decorated as "sensitive" in the API will not 4399 // be included in the string output. The member name will be present, but the 4400 // value will be replaced with "sensitive". 4401 func (s DisassociateCustomDomainOutput) String() string { 4402 return awsutil.Prettify(s) 4403 } 4404 4405 // GoString returns the string representation. 4406 // 4407 // API parameter values that are decorated as "sensitive" in the API will not 4408 // be included in the string output. The member name will be present, but the 4409 // value will be replaced with "sensitive". 4410 func (s DisassociateCustomDomainOutput) GoString() string { 4411 return s.String() 4412 } 4413 4414 // SetCustomDomain sets the CustomDomain field's value. 4415 func (s *DisassociateCustomDomainOutput) SetCustomDomain(v *CustomDomain) *DisassociateCustomDomainOutput { 4416 s.CustomDomain = v 4417 return s 4418 } 4419 4420 // SetDNSTarget sets the DNSTarget field's value. 4421 func (s *DisassociateCustomDomainOutput) SetDNSTarget(v string) *DisassociateCustomDomainOutput { 4422 s.DNSTarget = &v 4423 return s 4424 } 4425 4426 // SetServiceArn sets the ServiceArn field's value. 4427 func (s *DisassociateCustomDomainOutput) SetServiceArn(v string) *DisassociateCustomDomainOutput { 4428 s.ServiceArn = &v 4429 return s 4430 } 4431 4432 // Describes a custom encryption key that App Runner uses to encrypt copies 4433 // of the source repository and service logs. 4434 type EncryptionConfiguration struct { 4435 _ struct{} `type:"structure"` 4436 4437 // The ARN of the KMS key that's used for encryption. 4438 // 4439 // KmsKey is a required field 4440 KmsKey *string `type:"string" required:"true"` 4441 } 4442 4443 // String returns the string representation. 4444 // 4445 // API parameter values that are decorated as "sensitive" in the API will not 4446 // be included in the string output. The member name will be present, but the 4447 // value will be replaced with "sensitive". 4448 func (s EncryptionConfiguration) String() string { 4449 return awsutil.Prettify(s) 4450 } 4451 4452 // GoString returns the string representation. 4453 // 4454 // API parameter values that are decorated as "sensitive" in the API will not 4455 // be included in the string output. The member name will be present, but the 4456 // value will be replaced with "sensitive". 4457 func (s EncryptionConfiguration) GoString() string { 4458 return s.String() 4459 } 4460 4461 // Validate inspects the fields of the type to determine if they are valid. 4462 func (s *EncryptionConfiguration) Validate() error { 4463 invalidParams := request.ErrInvalidParams{Context: "EncryptionConfiguration"} 4464 if s.KmsKey == nil { 4465 invalidParams.Add(request.NewErrParamRequired("KmsKey")) 4466 } 4467 4468 if invalidParams.Len() > 0 { 4469 return invalidParams 4470 } 4471 return nil 4472 } 4473 4474 // SetKmsKey sets the KmsKey field's value. 4475 func (s *EncryptionConfiguration) SetKmsKey(v string) *EncryptionConfiguration { 4476 s.KmsKey = &v 4477 return s 4478 } 4479 4480 // Describes the settings for the health check that App Runner performs to monitor 4481 // the health of a service. 4482 type HealthCheckConfiguration struct { 4483 _ struct{} `type:"structure"` 4484 4485 // The number of consecutive checks that must succeed before App Runner decides 4486 // that the service is healthy. 4487 // 4488 // Default: 1 4489 HealthyThreshold *int64 `min:"1" type:"integer"` 4490 4491 // The time interval, in seconds, between health checks. 4492 // 4493 // Default: 5 4494 Interval *int64 `min:"1" type:"integer"` 4495 4496 // The URL that health check requests are sent to. 4497 // 4498 // Path is only applicable when you set Protocol to HTTP. 4499 // 4500 // Default: "/" 4501 Path *string `min:"1" type:"string"` 4502 4503 // The IP protocol that App Runner uses to perform health checks for your service. 4504 // 4505 // If you set Protocol to HTTP, App Runner sends health check requests to the 4506 // HTTP path specified by Path. 4507 // 4508 // Default: TCP 4509 Protocol *string `type:"string" enum:"HealthCheckProtocol"` 4510 4511 // The time, in seconds, to wait for a health check response before deciding 4512 // it failed. 4513 // 4514 // Default: 2 4515 Timeout *int64 `min:"1" type:"integer"` 4516 4517 // The number of consecutive checks that must fail before App Runner decides 4518 // that the service is unhealthy. 4519 // 4520 // Default: 5 4521 UnhealthyThreshold *int64 `min:"1" type:"integer"` 4522 } 4523 4524 // String returns the string representation. 4525 // 4526 // API parameter values that are decorated as "sensitive" in the API will not 4527 // be included in the string output. The member name will be present, but the 4528 // value will be replaced with "sensitive". 4529 func (s HealthCheckConfiguration) String() string { 4530 return awsutil.Prettify(s) 4531 } 4532 4533 // GoString returns the string representation. 4534 // 4535 // API parameter values that are decorated as "sensitive" in the API will not 4536 // be included in the string output. The member name will be present, but the 4537 // value will be replaced with "sensitive". 4538 func (s HealthCheckConfiguration) GoString() string { 4539 return s.String() 4540 } 4541 4542 // Validate inspects the fields of the type to determine if they are valid. 4543 func (s *HealthCheckConfiguration) Validate() error { 4544 invalidParams := request.ErrInvalidParams{Context: "HealthCheckConfiguration"} 4545 if s.HealthyThreshold != nil && *s.HealthyThreshold < 1 { 4546 invalidParams.Add(request.NewErrParamMinValue("HealthyThreshold", 1)) 4547 } 4548 if s.Interval != nil && *s.Interval < 1 { 4549 invalidParams.Add(request.NewErrParamMinValue("Interval", 1)) 4550 } 4551 if s.Path != nil && len(*s.Path) < 1 { 4552 invalidParams.Add(request.NewErrParamMinLen("Path", 1)) 4553 } 4554 if s.Timeout != nil && *s.Timeout < 1 { 4555 invalidParams.Add(request.NewErrParamMinValue("Timeout", 1)) 4556 } 4557 if s.UnhealthyThreshold != nil && *s.UnhealthyThreshold < 1 { 4558 invalidParams.Add(request.NewErrParamMinValue("UnhealthyThreshold", 1)) 4559 } 4560 4561 if invalidParams.Len() > 0 { 4562 return invalidParams 4563 } 4564 return nil 4565 } 4566 4567 // SetHealthyThreshold sets the HealthyThreshold field's value. 4568 func (s *HealthCheckConfiguration) SetHealthyThreshold(v int64) *HealthCheckConfiguration { 4569 s.HealthyThreshold = &v 4570 return s 4571 } 4572 4573 // SetInterval sets the Interval field's value. 4574 func (s *HealthCheckConfiguration) SetInterval(v int64) *HealthCheckConfiguration { 4575 s.Interval = &v 4576 return s 4577 } 4578 4579 // SetPath sets the Path field's value. 4580 func (s *HealthCheckConfiguration) SetPath(v string) *HealthCheckConfiguration { 4581 s.Path = &v 4582 return s 4583 } 4584 4585 // SetProtocol sets the Protocol field's value. 4586 func (s *HealthCheckConfiguration) SetProtocol(v string) *HealthCheckConfiguration { 4587 s.Protocol = &v 4588 return s 4589 } 4590 4591 // SetTimeout sets the Timeout field's value. 4592 func (s *HealthCheckConfiguration) SetTimeout(v int64) *HealthCheckConfiguration { 4593 s.Timeout = &v 4594 return s 4595 } 4596 4597 // SetUnhealthyThreshold sets the UnhealthyThreshold field's value. 4598 func (s *HealthCheckConfiguration) SetUnhealthyThreshold(v int64) *HealthCheckConfiguration { 4599 s.UnhealthyThreshold = &v 4600 return s 4601 } 4602 4603 // Describes the configuration that App Runner uses to run an App Runner service 4604 // using an image pulled from a source image repository. 4605 type ImageConfiguration struct { 4606 _ struct{} `type:"structure"` 4607 4608 // The port that your application listens to in the container. 4609 // 4610 // Default: 8080 4611 Port *string `type:"string"` 4612 4613 // Environment variables that are available to your running App Runner service. 4614 // An array of key-value pairs. Keys with a prefix of AWSAPPRUNNER are reserved 4615 // for system use and aren't valid. 4616 RuntimeEnvironmentVariables map[string]*string `type:"map"` 4617 4618 // An optional command that App Runner runs to start the application in the 4619 // source image. If specified, this command overrides the Docker image’s default 4620 // start command. 4621 StartCommand *string `type:"string"` 4622 } 4623 4624 // String returns the string representation. 4625 // 4626 // API parameter values that are decorated as "sensitive" in the API will not 4627 // be included in the string output. The member name will be present, but the 4628 // value will be replaced with "sensitive". 4629 func (s ImageConfiguration) String() string { 4630 return awsutil.Prettify(s) 4631 } 4632 4633 // GoString returns the string representation. 4634 // 4635 // API parameter values that are decorated as "sensitive" in the API will not 4636 // be included in the string output. The member name will be present, but the 4637 // value will be replaced with "sensitive". 4638 func (s ImageConfiguration) GoString() string { 4639 return s.String() 4640 } 4641 4642 // SetPort sets the Port field's value. 4643 func (s *ImageConfiguration) SetPort(v string) *ImageConfiguration { 4644 s.Port = &v 4645 return s 4646 } 4647 4648 // SetRuntimeEnvironmentVariables sets the RuntimeEnvironmentVariables field's value. 4649 func (s *ImageConfiguration) SetRuntimeEnvironmentVariables(v map[string]*string) *ImageConfiguration { 4650 s.RuntimeEnvironmentVariables = v 4651 return s 4652 } 4653 4654 // SetStartCommand sets the StartCommand field's value. 4655 func (s *ImageConfiguration) SetStartCommand(v string) *ImageConfiguration { 4656 s.StartCommand = &v 4657 return s 4658 } 4659 4660 // Describes a source image repository. 4661 type ImageRepository struct { 4662 _ struct{} `type:"structure"` 4663 4664 // Configuration for running the identified image. 4665 ImageConfiguration *ImageConfiguration `type:"structure"` 4666 4667 // The identifier of an image. 4668 // 4669 // For an image in Amazon Elastic Container Registry (Amazon ECR), this is an 4670 // image name. For the image name format, see Pulling an image (https://docs.aws.amazon.com/AmazonECR/latest/userguide/docker-pull-ecr-image.html) 4671 // in the Amazon ECR User Guide. 4672 // 4673 // ImageIdentifier is a required field 4674 ImageIdentifier *string `min:"1" type:"string" required:"true"` 4675 4676 // The type of the image repository. This reflects the repository provider and 4677 // whether the repository is private or public. 4678 // 4679 // ImageRepositoryType is a required field 4680 ImageRepositoryType *string `type:"string" required:"true" enum:"ImageRepositoryType"` 4681 } 4682 4683 // String returns the string representation. 4684 // 4685 // API parameter values that are decorated as "sensitive" in the API will not 4686 // be included in the string output. The member name will be present, but the 4687 // value will be replaced with "sensitive". 4688 func (s ImageRepository) String() string { 4689 return awsutil.Prettify(s) 4690 } 4691 4692 // GoString returns the string representation. 4693 // 4694 // API parameter values that are decorated as "sensitive" in the API will not 4695 // be included in the string output. The member name will be present, but the 4696 // value will be replaced with "sensitive". 4697 func (s ImageRepository) GoString() string { 4698 return s.String() 4699 } 4700 4701 // Validate inspects the fields of the type to determine if they are valid. 4702 func (s *ImageRepository) Validate() error { 4703 invalidParams := request.ErrInvalidParams{Context: "ImageRepository"} 4704 if s.ImageIdentifier == nil { 4705 invalidParams.Add(request.NewErrParamRequired("ImageIdentifier")) 4706 } 4707 if s.ImageIdentifier != nil && len(*s.ImageIdentifier) < 1 { 4708 invalidParams.Add(request.NewErrParamMinLen("ImageIdentifier", 1)) 4709 } 4710 if s.ImageRepositoryType == nil { 4711 invalidParams.Add(request.NewErrParamRequired("ImageRepositoryType")) 4712 } 4713 4714 if invalidParams.Len() > 0 { 4715 return invalidParams 4716 } 4717 return nil 4718 } 4719 4720 // SetImageConfiguration sets the ImageConfiguration field's value. 4721 func (s *ImageRepository) SetImageConfiguration(v *ImageConfiguration) *ImageRepository { 4722 s.ImageConfiguration = v 4723 return s 4724 } 4725 4726 // SetImageIdentifier sets the ImageIdentifier field's value. 4727 func (s *ImageRepository) SetImageIdentifier(v string) *ImageRepository { 4728 s.ImageIdentifier = &v 4729 return s 4730 } 4731 4732 // SetImageRepositoryType sets the ImageRepositoryType field's value. 4733 func (s *ImageRepository) SetImageRepositoryType(v string) *ImageRepository { 4734 s.ImageRepositoryType = &v 4735 return s 4736 } 4737 4738 // Describes the runtime configuration of an App Runner service instance (scaling 4739 // unit). 4740 type InstanceConfiguration struct { 4741 _ struct{} `type:"structure"` 4742 4743 // The number of CPU units reserved for each instance of your App Runner service. 4744 // 4745 // Default: 1 vCPU 4746 Cpu *string `min:"4" type:"string"` 4747 4748 // The Amazon Resource Name (ARN) of an IAM role that provides permissions to 4749 // your App Runner service. These are permissions that your code needs when 4750 // it calls any Amazon Web Services APIs. 4751 InstanceRoleArn *string `min:"29" type:"string"` 4752 4753 // The amount of memory, in MB or GB, reserved for each instance of your App 4754 // Runner service. 4755 // 4756 // Default: 2 GB 4757 Memory *string `min:"4" type:"string"` 4758 } 4759 4760 // String returns the string representation. 4761 // 4762 // API parameter values that are decorated as "sensitive" in the API will not 4763 // be included in the string output. The member name will be present, but the 4764 // value will be replaced with "sensitive". 4765 func (s InstanceConfiguration) String() string { 4766 return awsutil.Prettify(s) 4767 } 4768 4769 // GoString returns the string representation. 4770 // 4771 // API parameter values that are decorated as "sensitive" in the API will not 4772 // be included in the string output. The member name will be present, but the 4773 // value will be replaced with "sensitive". 4774 func (s InstanceConfiguration) GoString() string { 4775 return s.String() 4776 } 4777 4778 // Validate inspects the fields of the type to determine if they are valid. 4779 func (s *InstanceConfiguration) Validate() error { 4780 invalidParams := request.ErrInvalidParams{Context: "InstanceConfiguration"} 4781 if s.Cpu != nil && len(*s.Cpu) < 4 { 4782 invalidParams.Add(request.NewErrParamMinLen("Cpu", 4)) 4783 } 4784 if s.InstanceRoleArn != nil && len(*s.InstanceRoleArn) < 29 { 4785 invalidParams.Add(request.NewErrParamMinLen("InstanceRoleArn", 29)) 4786 } 4787 if s.Memory != nil && len(*s.Memory) < 4 { 4788 invalidParams.Add(request.NewErrParamMinLen("Memory", 4)) 4789 } 4790 4791 if invalidParams.Len() > 0 { 4792 return invalidParams 4793 } 4794 return nil 4795 } 4796 4797 // SetCpu sets the Cpu field's value. 4798 func (s *InstanceConfiguration) SetCpu(v string) *InstanceConfiguration { 4799 s.Cpu = &v 4800 return s 4801 } 4802 4803 // SetInstanceRoleArn sets the InstanceRoleArn field's value. 4804 func (s *InstanceConfiguration) SetInstanceRoleArn(v string) *InstanceConfiguration { 4805 s.InstanceRoleArn = &v 4806 return s 4807 } 4808 4809 // SetMemory sets the Memory field's value. 4810 func (s *InstanceConfiguration) SetMemory(v string) *InstanceConfiguration { 4811 s.Memory = &v 4812 return s 4813 } 4814 4815 // An unexpected service exception occurred. 4816 type InternalServiceErrorException struct { 4817 _ struct{} `type:"structure"` 4818 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 4819 4820 Message_ *string `locationName:"Message" type:"string"` 4821 } 4822 4823 // String returns the string representation. 4824 // 4825 // API parameter values that are decorated as "sensitive" in the API will not 4826 // be included in the string output. The member name will be present, but the 4827 // value will be replaced with "sensitive". 4828 func (s InternalServiceErrorException) String() string { 4829 return awsutil.Prettify(s) 4830 } 4831 4832 // GoString returns the string representation. 4833 // 4834 // API parameter values that are decorated as "sensitive" in the API will not 4835 // be included in the string output. The member name will be present, but the 4836 // value will be replaced with "sensitive". 4837 func (s InternalServiceErrorException) GoString() string { 4838 return s.String() 4839 } 4840 4841 func newErrorInternalServiceErrorException(v protocol.ResponseMetadata) error { 4842 return &InternalServiceErrorException{ 4843 RespMetadata: v, 4844 } 4845 } 4846 4847 // Code returns the exception type name. 4848 func (s *InternalServiceErrorException) Code() string { 4849 return "InternalServiceErrorException" 4850 } 4851 4852 // Message returns the exception's message. 4853 func (s *InternalServiceErrorException) Message() string { 4854 if s.Message_ != nil { 4855 return *s.Message_ 4856 } 4857 return "" 4858 } 4859 4860 // OrigErr always returns nil, satisfies awserr.Error interface. 4861 func (s *InternalServiceErrorException) OrigErr() error { 4862 return nil 4863 } 4864 4865 func (s *InternalServiceErrorException) Error() string { 4866 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 4867 } 4868 4869 // Status code returns the HTTP status code for the request's response error. 4870 func (s *InternalServiceErrorException) StatusCode() int { 4871 return s.RespMetadata.StatusCode 4872 } 4873 4874 // RequestID returns the service's response RequestID for request. 4875 func (s *InternalServiceErrorException) RequestID() string { 4876 return s.RespMetadata.RequestID 4877 } 4878 4879 // One or more input parameters aren't valid. Refer to the API action's document 4880 // page, correct the input parameters, and try the action again. 4881 type InvalidRequestException struct { 4882 _ struct{} `type:"structure"` 4883 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 4884 4885 Message_ *string `locationName:"Message" type:"string"` 4886 } 4887 4888 // String returns the string representation. 4889 // 4890 // API parameter values that are decorated as "sensitive" in the API will not 4891 // be included in the string output. The member name will be present, but the 4892 // value will be replaced with "sensitive". 4893 func (s InvalidRequestException) String() string { 4894 return awsutil.Prettify(s) 4895 } 4896 4897 // GoString returns the string representation. 4898 // 4899 // API parameter values that are decorated as "sensitive" in the API will not 4900 // be included in the string output. The member name will be present, but the 4901 // value will be replaced with "sensitive". 4902 func (s InvalidRequestException) GoString() string { 4903 return s.String() 4904 } 4905 4906 func newErrorInvalidRequestException(v protocol.ResponseMetadata) error { 4907 return &InvalidRequestException{ 4908 RespMetadata: v, 4909 } 4910 } 4911 4912 // Code returns the exception type name. 4913 func (s *InvalidRequestException) Code() string { 4914 return "InvalidRequestException" 4915 } 4916 4917 // Message returns the exception's message. 4918 func (s *InvalidRequestException) Message() string { 4919 if s.Message_ != nil { 4920 return *s.Message_ 4921 } 4922 return "" 4923 } 4924 4925 // OrigErr always returns nil, satisfies awserr.Error interface. 4926 func (s *InvalidRequestException) OrigErr() error { 4927 return nil 4928 } 4929 4930 func (s *InvalidRequestException) Error() string { 4931 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 4932 } 4933 4934 // Status code returns the HTTP status code for the request's response error. 4935 func (s *InvalidRequestException) StatusCode() int { 4936 return s.RespMetadata.StatusCode 4937 } 4938 4939 // RequestID returns the service's response RequestID for request. 4940 func (s *InvalidRequestException) RequestID() string { 4941 return s.RespMetadata.RequestID 4942 } 4943 4944 // You can't perform this action when the resource is in its current state. 4945 type InvalidStateException struct { 4946 _ struct{} `type:"structure"` 4947 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 4948 4949 Message_ *string `locationName:"Message" type:"string"` 4950 } 4951 4952 // String returns the string representation. 4953 // 4954 // API parameter values that are decorated as "sensitive" in the API will not 4955 // be included in the string output. The member name will be present, but the 4956 // value will be replaced with "sensitive". 4957 func (s InvalidStateException) String() string { 4958 return awsutil.Prettify(s) 4959 } 4960 4961 // GoString returns the string representation. 4962 // 4963 // API parameter values that are decorated as "sensitive" in the API will not 4964 // be included in the string output. The member name will be present, but the 4965 // value will be replaced with "sensitive". 4966 func (s InvalidStateException) GoString() string { 4967 return s.String() 4968 } 4969 4970 func newErrorInvalidStateException(v protocol.ResponseMetadata) error { 4971 return &InvalidStateException{ 4972 RespMetadata: v, 4973 } 4974 } 4975 4976 // Code returns the exception type name. 4977 func (s *InvalidStateException) Code() string { 4978 return "InvalidStateException" 4979 } 4980 4981 // Message returns the exception's message. 4982 func (s *InvalidStateException) Message() string { 4983 if s.Message_ != nil { 4984 return *s.Message_ 4985 } 4986 return "" 4987 } 4988 4989 // OrigErr always returns nil, satisfies awserr.Error interface. 4990 func (s *InvalidStateException) OrigErr() error { 4991 return nil 4992 } 4993 4994 func (s *InvalidStateException) Error() string { 4995 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 4996 } 4997 4998 // Status code returns the HTTP status code for the request's response error. 4999 func (s *InvalidStateException) StatusCode() int { 5000 return s.RespMetadata.StatusCode 5001 } 5002 5003 // RequestID returns the service's response RequestID for request. 5004 func (s *InvalidStateException) RequestID() string { 5005 return s.RespMetadata.RequestID 5006 } 5007 5008 type ListAutoScalingConfigurationsInput struct { 5009 _ struct{} `type:"structure"` 5010 5011 // The name of the App Runner auto scaling configuration that you want to list. 5012 // If specified, App Runner lists revisions that share this name. If not specified, 5013 // App Runner returns revisions of all configurations. 5014 AutoScalingConfigurationName *string `min:"4" type:"string"` 5015 5016 // Set to true to list only the latest revision for each requested configuration 5017 // name. 5018 // 5019 // Keep as false to list all revisions for each requested configuration name. 5020 // 5021 // Default: false 5022 LatestOnly *bool `type:"boolean"` 5023 5024 // The maximum number of results to include in each response (result page). 5025 // It's used for a paginated request. 5026 // 5027 // If you don't specify MaxResults, the request retrieves all available results 5028 // in a single response. 5029 MaxResults *int64 `min:"1" type:"integer"` 5030 5031 // A token from a previous result page. It's used for a paginated request. The 5032 // request retrieves the next result page. All other parameter values must be 5033 // identical to the ones that are specified in the initial request. 5034 // 5035 // If you don't specify NextToken, the request retrieves the first result page. 5036 NextToken *string `min:"1" type:"string"` 5037 } 5038 5039 // String returns the string representation. 5040 // 5041 // API parameter values that are decorated as "sensitive" in the API will not 5042 // be included in the string output. The member name will be present, but the 5043 // value will be replaced with "sensitive". 5044 func (s ListAutoScalingConfigurationsInput) String() string { 5045 return awsutil.Prettify(s) 5046 } 5047 5048 // GoString returns the string representation. 5049 // 5050 // API parameter values that are decorated as "sensitive" in the API will not 5051 // be included in the string output. The member name will be present, but the 5052 // value will be replaced with "sensitive". 5053 func (s ListAutoScalingConfigurationsInput) GoString() string { 5054 return s.String() 5055 } 5056 5057 // Validate inspects the fields of the type to determine if they are valid. 5058 func (s *ListAutoScalingConfigurationsInput) Validate() error { 5059 invalidParams := request.ErrInvalidParams{Context: "ListAutoScalingConfigurationsInput"} 5060 if s.AutoScalingConfigurationName != nil && len(*s.AutoScalingConfigurationName) < 4 { 5061 invalidParams.Add(request.NewErrParamMinLen("AutoScalingConfigurationName", 4)) 5062 } 5063 if s.MaxResults != nil && *s.MaxResults < 1 { 5064 invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) 5065 } 5066 if s.NextToken != nil && len(*s.NextToken) < 1 { 5067 invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) 5068 } 5069 5070 if invalidParams.Len() > 0 { 5071 return invalidParams 5072 } 5073 return nil 5074 } 5075 5076 // SetAutoScalingConfigurationName sets the AutoScalingConfigurationName field's value. 5077 func (s *ListAutoScalingConfigurationsInput) SetAutoScalingConfigurationName(v string) *ListAutoScalingConfigurationsInput { 5078 s.AutoScalingConfigurationName = &v 5079 return s 5080 } 5081 5082 // SetLatestOnly sets the LatestOnly field's value. 5083 func (s *ListAutoScalingConfigurationsInput) SetLatestOnly(v bool) *ListAutoScalingConfigurationsInput { 5084 s.LatestOnly = &v 5085 return s 5086 } 5087 5088 // SetMaxResults sets the MaxResults field's value. 5089 func (s *ListAutoScalingConfigurationsInput) SetMaxResults(v int64) *ListAutoScalingConfigurationsInput { 5090 s.MaxResults = &v 5091 return s 5092 } 5093 5094 // SetNextToken sets the NextToken field's value. 5095 func (s *ListAutoScalingConfigurationsInput) SetNextToken(v string) *ListAutoScalingConfigurationsInput { 5096 s.NextToken = &v 5097 return s 5098 } 5099 5100 type ListAutoScalingConfigurationsOutput struct { 5101 _ struct{} `type:"structure"` 5102 5103 // A list of summary information records for auto scaling configurations. In 5104 // a paginated request, the request returns up to MaxResults records for each 5105 // call. 5106 // 5107 // AutoScalingConfigurationSummaryList is a required field 5108 AutoScalingConfigurationSummaryList []*AutoScalingConfigurationSummary `type:"list" required:"true"` 5109 5110 // The token that you can pass in a subsequent request to get the next result 5111 // page. It's returned in a paginated request. 5112 NextToken *string `min:"1" type:"string"` 5113 } 5114 5115 // String returns the string representation. 5116 // 5117 // API parameter values that are decorated as "sensitive" in the API will not 5118 // be included in the string output. The member name will be present, but the 5119 // value will be replaced with "sensitive". 5120 func (s ListAutoScalingConfigurationsOutput) String() string { 5121 return awsutil.Prettify(s) 5122 } 5123 5124 // GoString returns the string representation. 5125 // 5126 // API parameter values that are decorated as "sensitive" in the API will not 5127 // be included in the string output. The member name will be present, but the 5128 // value will be replaced with "sensitive". 5129 func (s ListAutoScalingConfigurationsOutput) GoString() string { 5130 return s.String() 5131 } 5132 5133 // SetAutoScalingConfigurationSummaryList sets the AutoScalingConfigurationSummaryList field's value. 5134 func (s *ListAutoScalingConfigurationsOutput) SetAutoScalingConfigurationSummaryList(v []*AutoScalingConfigurationSummary) *ListAutoScalingConfigurationsOutput { 5135 s.AutoScalingConfigurationSummaryList = v 5136 return s 5137 } 5138 5139 // SetNextToken sets the NextToken field's value. 5140 func (s *ListAutoScalingConfigurationsOutput) SetNextToken(v string) *ListAutoScalingConfigurationsOutput { 5141 s.NextToken = &v 5142 return s 5143 } 5144 5145 type ListConnectionsInput struct { 5146 _ struct{} `type:"structure"` 5147 5148 // If specified, only this connection is returned. If not specified, the result 5149 // isn't filtered by name. 5150 ConnectionName *string `min:"4" type:"string"` 5151 5152 // The maximum number of results to include in each response (result page). 5153 // Used for a paginated request. 5154 // 5155 // If you don't specify MaxResults, the request retrieves all available results 5156 // in a single response. 5157 MaxResults *int64 `min:"1" type:"integer"` 5158 5159 // A token from a previous result page. Used for a paginated request. The request 5160 // retrieves the next result page. All other parameter values must be identical 5161 // to the ones specified in the initial request. 5162 // 5163 // If you don't specify NextToken, the request retrieves the first result page. 5164 NextToken *string `min:"1" type:"string"` 5165 } 5166 5167 // String returns the string representation. 5168 // 5169 // API parameter values that are decorated as "sensitive" in the API will not 5170 // be included in the string output. The member name will be present, but the 5171 // value will be replaced with "sensitive". 5172 func (s ListConnectionsInput) String() string { 5173 return awsutil.Prettify(s) 5174 } 5175 5176 // GoString returns the string representation. 5177 // 5178 // API parameter values that are decorated as "sensitive" in the API will not 5179 // be included in the string output. The member name will be present, but the 5180 // value will be replaced with "sensitive". 5181 func (s ListConnectionsInput) GoString() string { 5182 return s.String() 5183 } 5184 5185 // Validate inspects the fields of the type to determine if they are valid. 5186 func (s *ListConnectionsInput) Validate() error { 5187 invalidParams := request.ErrInvalidParams{Context: "ListConnectionsInput"} 5188 if s.ConnectionName != nil && len(*s.ConnectionName) < 4 { 5189 invalidParams.Add(request.NewErrParamMinLen("ConnectionName", 4)) 5190 } 5191 if s.MaxResults != nil && *s.MaxResults < 1 { 5192 invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) 5193 } 5194 if s.NextToken != nil && len(*s.NextToken) < 1 { 5195 invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) 5196 } 5197 5198 if invalidParams.Len() > 0 { 5199 return invalidParams 5200 } 5201 return nil 5202 } 5203 5204 // SetConnectionName sets the ConnectionName field's value. 5205 func (s *ListConnectionsInput) SetConnectionName(v string) *ListConnectionsInput { 5206 s.ConnectionName = &v 5207 return s 5208 } 5209 5210 // SetMaxResults sets the MaxResults field's value. 5211 func (s *ListConnectionsInput) SetMaxResults(v int64) *ListConnectionsInput { 5212 s.MaxResults = &v 5213 return s 5214 } 5215 5216 // SetNextToken sets the NextToken field's value. 5217 func (s *ListConnectionsInput) SetNextToken(v string) *ListConnectionsInput { 5218 s.NextToken = &v 5219 return s 5220 } 5221 5222 type ListConnectionsOutput struct { 5223 _ struct{} `type:"structure"` 5224 5225 // A list of summary information records for connections. In a paginated request, 5226 // the request returns up to MaxResults records for each call. 5227 // 5228 // ConnectionSummaryList is a required field 5229 ConnectionSummaryList []*ConnectionSummary `type:"list" required:"true"` 5230 5231 // The token that you can pass in a subsequent request to get the next result 5232 // page. Returned in a paginated request. 5233 NextToken *string `min:"1" type:"string"` 5234 } 5235 5236 // String returns the string representation. 5237 // 5238 // API parameter values that are decorated as "sensitive" in the API will not 5239 // be included in the string output. The member name will be present, but the 5240 // value will be replaced with "sensitive". 5241 func (s ListConnectionsOutput) String() string { 5242 return awsutil.Prettify(s) 5243 } 5244 5245 // GoString returns the string representation. 5246 // 5247 // API parameter values that are decorated as "sensitive" in the API will not 5248 // be included in the string output. The member name will be present, but the 5249 // value will be replaced with "sensitive". 5250 func (s ListConnectionsOutput) GoString() string { 5251 return s.String() 5252 } 5253 5254 // SetConnectionSummaryList sets the ConnectionSummaryList field's value. 5255 func (s *ListConnectionsOutput) SetConnectionSummaryList(v []*ConnectionSummary) *ListConnectionsOutput { 5256 s.ConnectionSummaryList = v 5257 return s 5258 } 5259 5260 // SetNextToken sets the NextToken field's value. 5261 func (s *ListConnectionsOutput) SetNextToken(v string) *ListConnectionsOutput { 5262 s.NextToken = &v 5263 return s 5264 } 5265 5266 type ListOperationsInput struct { 5267 _ struct{} `type:"structure"` 5268 5269 // The maximum number of results to include in each response (result page). 5270 // It's used for a paginated request. 5271 // 5272 // If you don't specify MaxResults, the request retrieves all available results 5273 // in a single response. 5274 MaxResults *int64 `min:"1" type:"integer"` 5275 5276 // A token from a previous result page. It's used for a paginated request. The 5277 // request retrieves the next result page. All other parameter values must be 5278 // identical to the ones specified in the initial request. 5279 // 5280 // If you don't specify NextToken, the request retrieves the first result page. 5281 NextToken *string `type:"string"` 5282 5283 // The Amazon Resource Name (ARN) of the App Runner service that you want a 5284 // list of operations for. 5285 // 5286 // ServiceArn is a required field 5287 ServiceArn *string `min:"1" type:"string" required:"true"` 5288 } 5289 5290 // String returns the string representation. 5291 // 5292 // API parameter values that are decorated as "sensitive" in the API will not 5293 // be included in the string output. The member name will be present, but the 5294 // value will be replaced with "sensitive". 5295 func (s ListOperationsInput) String() string { 5296 return awsutil.Prettify(s) 5297 } 5298 5299 // GoString returns the string representation. 5300 // 5301 // API parameter values that are decorated as "sensitive" in the API will not 5302 // be included in the string output. The member name will be present, but the 5303 // value will be replaced with "sensitive". 5304 func (s ListOperationsInput) GoString() string { 5305 return s.String() 5306 } 5307 5308 // Validate inspects the fields of the type to determine if they are valid. 5309 func (s *ListOperationsInput) Validate() error { 5310 invalidParams := request.ErrInvalidParams{Context: "ListOperationsInput"} 5311 if s.MaxResults != nil && *s.MaxResults < 1 { 5312 invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) 5313 } 5314 if s.ServiceArn == nil { 5315 invalidParams.Add(request.NewErrParamRequired("ServiceArn")) 5316 } 5317 if s.ServiceArn != nil && len(*s.ServiceArn) < 1 { 5318 invalidParams.Add(request.NewErrParamMinLen("ServiceArn", 1)) 5319 } 5320 5321 if invalidParams.Len() > 0 { 5322 return invalidParams 5323 } 5324 return nil 5325 } 5326 5327 // SetMaxResults sets the MaxResults field's value. 5328 func (s *ListOperationsInput) SetMaxResults(v int64) *ListOperationsInput { 5329 s.MaxResults = &v 5330 return s 5331 } 5332 5333 // SetNextToken sets the NextToken field's value. 5334 func (s *ListOperationsInput) SetNextToken(v string) *ListOperationsInput { 5335 s.NextToken = &v 5336 return s 5337 } 5338 5339 // SetServiceArn sets the ServiceArn field's value. 5340 func (s *ListOperationsInput) SetServiceArn(v string) *ListOperationsInput { 5341 s.ServiceArn = &v 5342 return s 5343 } 5344 5345 type ListOperationsOutput struct { 5346 _ struct{} `type:"structure"` 5347 5348 // The token that you can pass in a subsequent request to get the next result 5349 // page. It's returned in a paginated request. 5350 NextToken *string `type:"string"` 5351 5352 // A list of operation summary information records. In a paginated request, 5353 // the request returns up to MaxResults records for each call. 5354 OperationSummaryList []*OperationSummary `type:"list"` 5355 } 5356 5357 // String returns the string representation. 5358 // 5359 // API parameter values that are decorated as "sensitive" in the API will not 5360 // be included in the string output. The member name will be present, but the 5361 // value will be replaced with "sensitive". 5362 func (s ListOperationsOutput) String() string { 5363 return awsutil.Prettify(s) 5364 } 5365 5366 // GoString returns the string representation. 5367 // 5368 // API parameter values that are decorated as "sensitive" in the API will not 5369 // be included in the string output. The member name will be present, but the 5370 // value will be replaced with "sensitive". 5371 func (s ListOperationsOutput) GoString() string { 5372 return s.String() 5373 } 5374 5375 // SetNextToken sets the NextToken field's value. 5376 func (s *ListOperationsOutput) SetNextToken(v string) *ListOperationsOutput { 5377 s.NextToken = &v 5378 return s 5379 } 5380 5381 // SetOperationSummaryList sets the OperationSummaryList field's value. 5382 func (s *ListOperationsOutput) SetOperationSummaryList(v []*OperationSummary) *ListOperationsOutput { 5383 s.OperationSummaryList = v 5384 return s 5385 } 5386 5387 type ListServicesInput struct { 5388 _ struct{} `type:"structure"` 5389 5390 // The maximum number of results to include in each response (result page). 5391 // It's used for a paginated request. 5392 // 5393 // If you don't specify MaxResults, the request retrieves all available results 5394 // in a single response. 5395 MaxResults *int64 `min:"1" type:"integer"` 5396 5397 // A token from a previous result page. Used for a paginated request. The request 5398 // retrieves the next result page. All other parameter values must be identical 5399 // to the ones specified in the initial request. 5400 // 5401 // If you don't specify NextToken, the request retrieves the first result page. 5402 NextToken *string `type:"string"` 5403 } 5404 5405 // String returns the string representation. 5406 // 5407 // API parameter values that are decorated as "sensitive" in the API will not 5408 // be included in the string output. The member name will be present, but the 5409 // value will be replaced with "sensitive". 5410 func (s ListServicesInput) String() string { 5411 return awsutil.Prettify(s) 5412 } 5413 5414 // GoString returns the string representation. 5415 // 5416 // API parameter values that are decorated as "sensitive" in the API will not 5417 // be included in the string output. The member name will be present, but the 5418 // value will be replaced with "sensitive". 5419 func (s ListServicesInput) GoString() string { 5420 return s.String() 5421 } 5422 5423 // Validate inspects the fields of the type to determine if they are valid. 5424 func (s *ListServicesInput) Validate() error { 5425 invalidParams := request.ErrInvalidParams{Context: "ListServicesInput"} 5426 if s.MaxResults != nil && *s.MaxResults < 1 { 5427 invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) 5428 } 5429 5430 if invalidParams.Len() > 0 { 5431 return invalidParams 5432 } 5433 return nil 5434 } 5435 5436 // SetMaxResults sets the MaxResults field's value. 5437 func (s *ListServicesInput) SetMaxResults(v int64) *ListServicesInput { 5438 s.MaxResults = &v 5439 return s 5440 } 5441 5442 // SetNextToken sets the NextToken field's value. 5443 func (s *ListServicesInput) SetNextToken(v string) *ListServicesInput { 5444 s.NextToken = &v 5445 return s 5446 } 5447 5448 type ListServicesOutput struct { 5449 _ struct{} `type:"structure"` 5450 5451 // The token that you can pass in a subsequent request to get the next result 5452 // page. It's returned in a paginated request. 5453 NextToken *string `type:"string"` 5454 5455 // A list of service summary information records. In a paginated request, the 5456 // request returns up to MaxResults records for each call. 5457 // 5458 // ServiceSummaryList is a required field 5459 ServiceSummaryList []*ServiceSummary `type:"list" required:"true"` 5460 } 5461 5462 // String returns the string representation. 5463 // 5464 // API parameter values that are decorated as "sensitive" in the API will not 5465 // be included in the string output. The member name will be present, but the 5466 // value will be replaced with "sensitive". 5467 func (s ListServicesOutput) String() string { 5468 return awsutil.Prettify(s) 5469 } 5470 5471 // GoString returns the string representation. 5472 // 5473 // API parameter values that are decorated as "sensitive" in the API will not 5474 // be included in the string output. The member name will be present, but the 5475 // value will be replaced with "sensitive". 5476 func (s ListServicesOutput) GoString() string { 5477 return s.String() 5478 } 5479 5480 // SetNextToken sets the NextToken field's value. 5481 func (s *ListServicesOutput) SetNextToken(v string) *ListServicesOutput { 5482 s.NextToken = &v 5483 return s 5484 } 5485 5486 // SetServiceSummaryList sets the ServiceSummaryList field's value. 5487 func (s *ListServicesOutput) SetServiceSummaryList(v []*ServiceSummary) *ListServicesOutput { 5488 s.ServiceSummaryList = v 5489 return s 5490 } 5491 5492 type ListTagsForResourceInput struct { 5493 _ struct{} `type:"structure"` 5494 5495 // The Amazon Resource Name (ARN) of the resource that a tag list is requested 5496 // for. 5497 // 5498 // It must be the ARN of an App Runner resource. 5499 // 5500 // ResourceArn is a required field 5501 ResourceArn *string `min:"1" type:"string" required:"true"` 5502 } 5503 5504 // String returns the string representation. 5505 // 5506 // API parameter values that are decorated as "sensitive" in the API will not 5507 // be included in the string output. The member name will be present, but the 5508 // value will be replaced with "sensitive". 5509 func (s ListTagsForResourceInput) String() string { 5510 return awsutil.Prettify(s) 5511 } 5512 5513 // GoString returns the string representation. 5514 // 5515 // API parameter values that are decorated as "sensitive" in the API will not 5516 // be included in the string output. The member name will be present, but the 5517 // value will be replaced with "sensitive". 5518 func (s ListTagsForResourceInput) GoString() string { 5519 return s.String() 5520 } 5521 5522 // Validate inspects the fields of the type to determine if they are valid. 5523 func (s *ListTagsForResourceInput) Validate() error { 5524 invalidParams := request.ErrInvalidParams{Context: "ListTagsForResourceInput"} 5525 if s.ResourceArn == nil { 5526 invalidParams.Add(request.NewErrParamRequired("ResourceArn")) 5527 } 5528 if s.ResourceArn != nil && len(*s.ResourceArn) < 1 { 5529 invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1)) 5530 } 5531 5532 if invalidParams.Len() > 0 { 5533 return invalidParams 5534 } 5535 return nil 5536 } 5537 5538 // SetResourceArn sets the ResourceArn field's value. 5539 func (s *ListTagsForResourceInput) SetResourceArn(v string) *ListTagsForResourceInput { 5540 s.ResourceArn = &v 5541 return s 5542 } 5543 5544 type ListTagsForResourceOutput struct { 5545 _ struct{} `type:"structure"` 5546 5547 // A list of the tag key-value pairs that are associated with the resource. 5548 Tags []*Tag `type:"list"` 5549 } 5550 5551 // String returns the string representation. 5552 // 5553 // API parameter values that are decorated as "sensitive" in the API will not 5554 // be included in the string output. The member name will be present, but the 5555 // value will be replaced with "sensitive". 5556 func (s ListTagsForResourceOutput) String() string { 5557 return awsutil.Prettify(s) 5558 } 5559 5560 // GoString returns the string representation. 5561 // 5562 // API parameter values that are decorated as "sensitive" in the API will not 5563 // be included in the string output. The member name will be present, but the 5564 // value will be replaced with "sensitive". 5565 func (s ListTagsForResourceOutput) GoString() string { 5566 return s.String() 5567 } 5568 5569 // SetTags sets the Tags field's value. 5570 func (s *ListTagsForResourceOutput) SetTags(v []*Tag) *ListTagsForResourceOutput { 5571 s.Tags = v 5572 return s 5573 } 5574 5575 // Provides summary information for an operation that occurred on an App Runner 5576 // service. 5577 type OperationSummary struct { 5578 _ struct{} `type:"structure"` 5579 5580 // The time when the operation ended. It's in the Unix time stamp format. 5581 EndedAt *time.Time `type:"timestamp"` 5582 5583 // A unique ID of this operation. It's unique in the scope of the App Runner 5584 // service. 5585 Id *string `min:"36" type:"string"` 5586 5587 // The time when the operation started. It's in the Unix time stamp format. 5588 StartedAt *time.Time `type:"timestamp"` 5589 5590 // The current state of the operation. 5591 Status *string `type:"string" enum:"OperationStatus"` 5592 5593 // The Amazon Resource Name (ARN) of the resource that the operation acted on 5594 // (for example, an App Runner service). 5595 TargetArn *string `min:"1" type:"string"` 5596 5597 // The type of operation. It indicates a specific action that occured. 5598 Type *string `type:"string" enum:"OperationType"` 5599 5600 // The time when the operation was last updated. It's in the Unix time stamp 5601 // format. 5602 UpdatedAt *time.Time `type:"timestamp"` 5603 } 5604 5605 // String returns the string representation. 5606 // 5607 // API parameter values that are decorated as "sensitive" in the API will not 5608 // be included in the string output. The member name will be present, but the 5609 // value will be replaced with "sensitive". 5610 func (s OperationSummary) String() string { 5611 return awsutil.Prettify(s) 5612 } 5613 5614 // GoString returns the string representation. 5615 // 5616 // API parameter values that are decorated as "sensitive" in the API will not 5617 // be included in the string output. The member name will be present, but the 5618 // value will be replaced with "sensitive". 5619 func (s OperationSummary) GoString() string { 5620 return s.String() 5621 } 5622 5623 // SetEndedAt sets the EndedAt field's value. 5624 func (s *OperationSummary) SetEndedAt(v time.Time) *OperationSummary { 5625 s.EndedAt = &v 5626 return s 5627 } 5628 5629 // SetId sets the Id field's value. 5630 func (s *OperationSummary) SetId(v string) *OperationSummary { 5631 s.Id = &v 5632 return s 5633 } 5634 5635 // SetStartedAt sets the StartedAt field's value. 5636 func (s *OperationSummary) SetStartedAt(v time.Time) *OperationSummary { 5637 s.StartedAt = &v 5638 return s 5639 } 5640 5641 // SetStatus sets the Status field's value. 5642 func (s *OperationSummary) SetStatus(v string) *OperationSummary { 5643 s.Status = &v 5644 return s 5645 } 5646 5647 // SetTargetArn sets the TargetArn field's value. 5648 func (s *OperationSummary) SetTargetArn(v string) *OperationSummary { 5649 s.TargetArn = &v 5650 return s 5651 } 5652 5653 // SetType sets the Type field's value. 5654 func (s *OperationSummary) SetType(v string) *OperationSummary { 5655 s.Type = &v 5656 return s 5657 } 5658 5659 // SetUpdatedAt sets the UpdatedAt field's value. 5660 func (s *OperationSummary) SetUpdatedAt(v time.Time) *OperationSummary { 5661 s.UpdatedAt = &v 5662 return s 5663 } 5664 5665 type PauseServiceInput struct { 5666 _ struct{} `type:"structure"` 5667 5668 // The Amazon Resource Name (ARN) of the App Runner service that you want to 5669 // pause. 5670 // 5671 // ServiceArn is a required field 5672 ServiceArn *string `min:"1" type:"string" required:"true"` 5673 } 5674 5675 // String returns the string representation. 5676 // 5677 // API parameter values that are decorated as "sensitive" in the API will not 5678 // be included in the string output. The member name will be present, but the 5679 // value will be replaced with "sensitive". 5680 func (s PauseServiceInput) String() string { 5681 return awsutil.Prettify(s) 5682 } 5683 5684 // GoString returns the string representation. 5685 // 5686 // API parameter values that are decorated as "sensitive" in the API will not 5687 // be included in the string output. The member name will be present, but the 5688 // value will be replaced with "sensitive". 5689 func (s PauseServiceInput) GoString() string { 5690 return s.String() 5691 } 5692 5693 // Validate inspects the fields of the type to determine if they are valid. 5694 func (s *PauseServiceInput) Validate() error { 5695 invalidParams := request.ErrInvalidParams{Context: "PauseServiceInput"} 5696 if s.ServiceArn == nil { 5697 invalidParams.Add(request.NewErrParamRequired("ServiceArn")) 5698 } 5699 if s.ServiceArn != nil && len(*s.ServiceArn) < 1 { 5700 invalidParams.Add(request.NewErrParamMinLen("ServiceArn", 1)) 5701 } 5702 5703 if invalidParams.Len() > 0 { 5704 return invalidParams 5705 } 5706 return nil 5707 } 5708 5709 // SetServiceArn sets the ServiceArn field's value. 5710 func (s *PauseServiceInput) SetServiceArn(v string) *PauseServiceInput { 5711 s.ServiceArn = &v 5712 return s 5713 } 5714 5715 type PauseServiceOutput struct { 5716 _ struct{} `type:"structure"` 5717 5718 // The unique ID of the asynchronous operation that this request started. You 5719 // can use it combined with the ListOperations call to track the operation's 5720 // progress. 5721 OperationId *string `min:"36" type:"string"` 5722 5723 // A description of the App Runner service that this request just paused. 5724 // 5725 // Service is a required field 5726 Service *Service `type:"structure" required:"true"` 5727 } 5728 5729 // String returns the string representation. 5730 // 5731 // API parameter values that are decorated as "sensitive" in the API will not 5732 // be included in the string output. The member name will be present, but the 5733 // value will be replaced with "sensitive". 5734 func (s PauseServiceOutput) String() string { 5735 return awsutil.Prettify(s) 5736 } 5737 5738 // GoString returns the string representation. 5739 // 5740 // API parameter values that are decorated as "sensitive" in the API will not 5741 // be included in the string output. The member name will be present, but the 5742 // value will be replaced with "sensitive". 5743 func (s PauseServiceOutput) GoString() string { 5744 return s.String() 5745 } 5746 5747 // SetOperationId sets the OperationId field's value. 5748 func (s *PauseServiceOutput) SetOperationId(v string) *PauseServiceOutput { 5749 s.OperationId = &v 5750 return s 5751 } 5752 5753 // SetService sets the Service field's value. 5754 func (s *PauseServiceOutput) SetService(v *Service) *PauseServiceOutput { 5755 s.Service = v 5756 return s 5757 } 5758 5759 // A resource doesn't exist for the specified Amazon Resource Name (ARN) in 5760 // your Amazon Web Services account. 5761 type ResourceNotFoundException struct { 5762 _ struct{} `type:"structure"` 5763 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 5764 5765 Message_ *string `locationName:"Message" type:"string"` 5766 } 5767 5768 // String returns the string representation. 5769 // 5770 // API parameter values that are decorated as "sensitive" in the API will not 5771 // be included in the string output. The member name will be present, but the 5772 // value will be replaced with "sensitive". 5773 func (s ResourceNotFoundException) String() string { 5774 return awsutil.Prettify(s) 5775 } 5776 5777 // GoString returns the string representation. 5778 // 5779 // API parameter values that are decorated as "sensitive" in the API will not 5780 // be included in the string output. The member name will be present, but the 5781 // value will be replaced with "sensitive". 5782 func (s ResourceNotFoundException) GoString() string { 5783 return s.String() 5784 } 5785 5786 func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { 5787 return &ResourceNotFoundException{ 5788 RespMetadata: v, 5789 } 5790 } 5791 5792 // Code returns the exception type name. 5793 func (s *ResourceNotFoundException) Code() string { 5794 return "ResourceNotFoundException" 5795 } 5796 5797 // Message returns the exception's message. 5798 func (s *ResourceNotFoundException) Message() string { 5799 if s.Message_ != nil { 5800 return *s.Message_ 5801 } 5802 return "" 5803 } 5804 5805 // OrigErr always returns nil, satisfies awserr.Error interface. 5806 func (s *ResourceNotFoundException) OrigErr() error { 5807 return nil 5808 } 5809 5810 func (s *ResourceNotFoundException) Error() string { 5811 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 5812 } 5813 5814 // Status code returns the HTTP status code for the request's response error. 5815 func (s *ResourceNotFoundException) StatusCode() int { 5816 return s.RespMetadata.StatusCode 5817 } 5818 5819 // RequestID returns the service's response RequestID for request. 5820 func (s *ResourceNotFoundException) RequestID() string { 5821 return s.RespMetadata.RequestID 5822 } 5823 5824 type ResumeServiceInput struct { 5825 _ struct{} `type:"structure"` 5826 5827 // The Amazon Resource Name (ARN) of the App Runner service that you want to 5828 // resume. 5829 // 5830 // ServiceArn is a required field 5831 ServiceArn *string `min:"1" type:"string" required:"true"` 5832 } 5833 5834 // String returns the string representation. 5835 // 5836 // API parameter values that are decorated as "sensitive" in the API will not 5837 // be included in the string output. The member name will be present, but the 5838 // value will be replaced with "sensitive". 5839 func (s ResumeServiceInput) String() string { 5840 return awsutil.Prettify(s) 5841 } 5842 5843 // GoString returns the string representation. 5844 // 5845 // API parameter values that are decorated as "sensitive" in the API will not 5846 // be included in the string output. The member name will be present, but the 5847 // value will be replaced with "sensitive". 5848 func (s ResumeServiceInput) GoString() string { 5849 return s.String() 5850 } 5851 5852 // Validate inspects the fields of the type to determine if they are valid. 5853 func (s *ResumeServiceInput) Validate() error { 5854 invalidParams := request.ErrInvalidParams{Context: "ResumeServiceInput"} 5855 if s.ServiceArn == nil { 5856 invalidParams.Add(request.NewErrParamRequired("ServiceArn")) 5857 } 5858 if s.ServiceArn != nil && len(*s.ServiceArn) < 1 { 5859 invalidParams.Add(request.NewErrParamMinLen("ServiceArn", 1)) 5860 } 5861 5862 if invalidParams.Len() > 0 { 5863 return invalidParams 5864 } 5865 return nil 5866 } 5867 5868 // SetServiceArn sets the ServiceArn field's value. 5869 func (s *ResumeServiceInput) SetServiceArn(v string) *ResumeServiceInput { 5870 s.ServiceArn = &v 5871 return s 5872 } 5873 5874 type ResumeServiceOutput struct { 5875 _ struct{} `type:"structure"` 5876 5877 // The unique ID of the asynchronous operation that this request started. You 5878 // can use it combined with the ListOperations call to track the operation's 5879 // progress. 5880 OperationId *string `min:"36" type:"string"` 5881 5882 // A description of the App Runner service that this request just resumed. 5883 // 5884 // Service is a required field 5885 Service *Service `type:"structure" required:"true"` 5886 } 5887 5888 // String returns the string representation. 5889 // 5890 // API parameter values that are decorated as "sensitive" in the API will not 5891 // be included in the string output. The member name will be present, but the 5892 // value will be replaced with "sensitive". 5893 func (s ResumeServiceOutput) String() string { 5894 return awsutil.Prettify(s) 5895 } 5896 5897 // GoString returns the string representation. 5898 // 5899 // API parameter values that are decorated as "sensitive" in the API will not 5900 // be included in the string output. The member name will be present, but the 5901 // value will be replaced with "sensitive". 5902 func (s ResumeServiceOutput) GoString() string { 5903 return s.String() 5904 } 5905 5906 // SetOperationId sets the OperationId field's value. 5907 func (s *ResumeServiceOutput) SetOperationId(v string) *ResumeServiceOutput { 5908 s.OperationId = &v 5909 return s 5910 } 5911 5912 // SetService sets the Service field's value. 5913 func (s *ResumeServiceOutput) SetService(v *Service) *ResumeServiceOutput { 5914 s.Service = v 5915 return s 5916 } 5917 5918 // Describes an App Runner service. It can describe a service in any state, 5919 // including deleted services. 5920 // 5921 // This type contains the full information about a service, including configuration 5922 // details. It's returned by the CreateService (https://docs.aws.amazon.com/apprunner/latest/api/API_CreateService.html), 5923 // DescribeService (https://docs.aws.amazon.com/apprunner/latest/api/API_DescribeService.html), 5924 // and DeleteService (https://docs.aws.amazon.com/apprunner/latest/api/API_DeleteService.html) 5925 // actions. A subset of this information is returned by the ListServices (https://docs.aws.amazon.com/apprunner/latest/api/API_ListServices.html) 5926 // action using the ServiceSummary (https://docs.aws.amazon.com/apprunner/latest/api/API_ServiceSummary.html) 5927 // type. 5928 type Service struct { 5929 _ struct{} `type:"structure"` 5930 5931 // Summary information for the App Runner automatic scaling configuration resource 5932 // that's associated with this service. 5933 // 5934 // AutoScalingConfigurationSummary is a required field 5935 AutoScalingConfigurationSummary *AutoScalingConfigurationSummary `type:"structure" required:"true"` 5936 5937 // The time when the App Runner service was created. It's in the Unix time stamp 5938 // format. 5939 // 5940 // CreatedAt is a required field 5941 CreatedAt *time.Time `type:"timestamp" required:"true"` 5942 5943 // The time when the App Runner service was deleted. It's in the Unix time stamp 5944 // format. 5945 DeletedAt *time.Time `type:"timestamp"` 5946 5947 // The encryption key that App Runner uses to encrypt the service logs and the 5948 // copy of the source repository that App Runner maintains for the service. 5949 // It can be either a customer-provided encryption key or an Amazon Web Services 5950 // managed CMK. 5951 EncryptionConfiguration *EncryptionConfiguration `type:"structure"` 5952 5953 // The settings for the health check that App Runner performs to monitor the 5954 // health of this service. 5955 HealthCheckConfiguration *HealthCheckConfiguration `type:"structure"` 5956 5957 // The runtime configuration of instances (scaling units) of this service. 5958 // 5959 // InstanceConfiguration is a required field 5960 InstanceConfiguration *InstanceConfiguration `type:"structure" required:"true"` 5961 5962 // The Amazon Resource Name (ARN) of this service. 5963 // 5964 // ServiceArn is a required field 5965 ServiceArn *string `min:"1" type:"string" required:"true"` 5966 5967 // An ID that App Runner generated for this service. It's unique within the 5968 // Amazon Web Services Region. 5969 // 5970 // ServiceId is a required field 5971 ServiceId *string `min:"32" type:"string" required:"true"` 5972 5973 // The customer-provided service name. 5974 // 5975 // ServiceName is a required field 5976 ServiceName *string `min:"4" type:"string" required:"true"` 5977 5978 // A subdomain URL that App Runner generated for this service. You can use this 5979 // URL to access your service web application. 5980 // 5981 // ServiceUrl is a required field 5982 ServiceUrl *string `type:"string" required:"true"` 5983 5984 // The source deployed to the App Runner service. It can be a code or an image 5985 // repository. 5986 // 5987 // SourceConfiguration is a required field 5988 SourceConfiguration *SourceConfiguration `type:"structure" required:"true"` 5989 5990 // The current state of the App Runner service. These particular values mean 5991 // the following. 5992 // 5993 // * CREATE_FAILED – The service failed to create. To troubleshoot this 5994 // failure, read the failure events and logs, change any parameters that 5995 // need to be fixed, and retry the call to create the service. The failed 5996 // service isn't usable, and still counts towards your service quota. When 5997 // you're done analyzing the failure, delete the service. 5998 // 5999 // * DELETE_FAILED – The service failed to delete and can't be successfully 6000 // recovered. Retry the service deletion call to ensure that all related 6001 // resources are removed. 6002 // 6003 // Status is a required field 6004 Status *string `type:"string" required:"true" enum:"ServiceStatus"` 6005 6006 // The time when the App Runner service was last updated at. It's in the Unix 6007 // time stamp format. 6008 // 6009 // UpdatedAt is a required field 6010 UpdatedAt *time.Time `type:"timestamp" required:"true"` 6011 } 6012 6013 // String returns the string representation. 6014 // 6015 // API parameter values that are decorated as "sensitive" in the API will not 6016 // be included in the string output. The member name will be present, but the 6017 // value will be replaced with "sensitive". 6018 func (s Service) String() string { 6019 return awsutil.Prettify(s) 6020 } 6021 6022 // GoString returns the string representation. 6023 // 6024 // API parameter values that are decorated as "sensitive" in the API will not 6025 // be included in the string output. The member name will be present, but the 6026 // value will be replaced with "sensitive". 6027 func (s Service) GoString() string { 6028 return s.String() 6029 } 6030 6031 // SetAutoScalingConfigurationSummary sets the AutoScalingConfigurationSummary field's value. 6032 func (s *Service) SetAutoScalingConfigurationSummary(v *AutoScalingConfigurationSummary) *Service { 6033 s.AutoScalingConfigurationSummary = v 6034 return s 6035 } 6036 6037 // SetCreatedAt sets the CreatedAt field's value. 6038 func (s *Service) SetCreatedAt(v time.Time) *Service { 6039 s.CreatedAt = &v 6040 return s 6041 } 6042 6043 // SetDeletedAt sets the DeletedAt field's value. 6044 func (s *Service) SetDeletedAt(v time.Time) *Service { 6045 s.DeletedAt = &v 6046 return s 6047 } 6048 6049 // SetEncryptionConfiguration sets the EncryptionConfiguration field's value. 6050 func (s *Service) SetEncryptionConfiguration(v *EncryptionConfiguration) *Service { 6051 s.EncryptionConfiguration = v 6052 return s 6053 } 6054 6055 // SetHealthCheckConfiguration sets the HealthCheckConfiguration field's value. 6056 func (s *Service) SetHealthCheckConfiguration(v *HealthCheckConfiguration) *Service { 6057 s.HealthCheckConfiguration = v 6058 return s 6059 } 6060 6061 // SetInstanceConfiguration sets the InstanceConfiguration field's value. 6062 func (s *Service) SetInstanceConfiguration(v *InstanceConfiguration) *Service { 6063 s.InstanceConfiguration = v 6064 return s 6065 } 6066 6067 // SetServiceArn sets the ServiceArn field's value. 6068 func (s *Service) SetServiceArn(v string) *Service { 6069 s.ServiceArn = &v 6070 return s 6071 } 6072 6073 // SetServiceId sets the ServiceId field's value. 6074 func (s *Service) SetServiceId(v string) *Service { 6075 s.ServiceId = &v 6076 return s 6077 } 6078 6079 // SetServiceName sets the ServiceName field's value. 6080 func (s *Service) SetServiceName(v string) *Service { 6081 s.ServiceName = &v 6082 return s 6083 } 6084 6085 // SetServiceUrl sets the ServiceUrl field's value. 6086 func (s *Service) SetServiceUrl(v string) *Service { 6087 s.ServiceUrl = &v 6088 return s 6089 } 6090 6091 // SetSourceConfiguration sets the SourceConfiguration field's value. 6092 func (s *Service) SetSourceConfiguration(v *SourceConfiguration) *Service { 6093 s.SourceConfiguration = v 6094 return s 6095 } 6096 6097 // SetStatus sets the Status field's value. 6098 func (s *Service) SetStatus(v string) *Service { 6099 s.Status = &v 6100 return s 6101 } 6102 6103 // SetUpdatedAt sets the UpdatedAt field's value. 6104 func (s *Service) SetUpdatedAt(v time.Time) *Service { 6105 s.UpdatedAt = &v 6106 return s 6107 } 6108 6109 // App Runner can't create this resource. You've reached your account quota 6110 // for this resource type. 6111 // 6112 // For App Runner per-resource quotas, see App Runner endpoints and quotas (https://docs.aws.amazon.com/general/latest/gr/apprunner.html) 6113 // in the Amazon Web Services General Reference. 6114 type ServiceQuotaExceededException struct { 6115 _ struct{} `type:"structure"` 6116 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 6117 6118 Message_ *string `locationName:"Message" type:"string"` 6119 } 6120 6121 // String returns the string representation. 6122 // 6123 // API parameter values that are decorated as "sensitive" in the API will not 6124 // be included in the string output. The member name will be present, but the 6125 // value will be replaced with "sensitive". 6126 func (s ServiceQuotaExceededException) String() string { 6127 return awsutil.Prettify(s) 6128 } 6129 6130 // GoString returns the string representation. 6131 // 6132 // API parameter values that are decorated as "sensitive" in the API will not 6133 // be included in the string output. The member name will be present, but the 6134 // value will be replaced with "sensitive". 6135 func (s ServiceQuotaExceededException) GoString() string { 6136 return s.String() 6137 } 6138 6139 func newErrorServiceQuotaExceededException(v protocol.ResponseMetadata) error { 6140 return &ServiceQuotaExceededException{ 6141 RespMetadata: v, 6142 } 6143 } 6144 6145 // Code returns the exception type name. 6146 func (s *ServiceQuotaExceededException) Code() string { 6147 return "ServiceQuotaExceededException" 6148 } 6149 6150 // Message returns the exception's message. 6151 func (s *ServiceQuotaExceededException) Message() string { 6152 if s.Message_ != nil { 6153 return *s.Message_ 6154 } 6155 return "" 6156 } 6157 6158 // OrigErr always returns nil, satisfies awserr.Error interface. 6159 func (s *ServiceQuotaExceededException) OrigErr() error { 6160 return nil 6161 } 6162 6163 func (s *ServiceQuotaExceededException) Error() string { 6164 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 6165 } 6166 6167 // Status code returns the HTTP status code for the request's response error. 6168 func (s *ServiceQuotaExceededException) StatusCode() int { 6169 return s.RespMetadata.StatusCode 6170 } 6171 6172 // RequestID returns the service's response RequestID for request. 6173 func (s *ServiceQuotaExceededException) RequestID() string { 6174 return s.RespMetadata.RequestID 6175 } 6176 6177 // Provides summary information for an App Runner service. 6178 // 6179 // This type contains limited information about a service. It doesn't include 6180 // configuration details. It's returned by the ListServices (https://docs.aws.amazon.com/apprunner/latest/api/API_ListServices.html) 6181 // action. Complete service information is returned by the CreateService (https://docs.aws.amazon.com/apprunner/latest/api/API_CreateService.html), 6182 // DescribeService (https://docs.aws.amazon.com/apprunner/latest/api/API_DescribeService.html), 6183 // and DeleteService (https://docs.aws.amazon.com/apprunner/latest/api/API_DeleteService.html) 6184 // actions using the Service (https://docs.aws.amazon.com/apprunner/latest/api/API_Service.html) 6185 // type. 6186 type ServiceSummary struct { 6187 _ struct{} `type:"structure"` 6188 6189 // The time when the App Runner service was created. It's in the Unix time stamp 6190 // format. 6191 CreatedAt *time.Time `type:"timestamp"` 6192 6193 // The Amazon Resource Name (ARN) of this service. 6194 ServiceArn *string `min:"1" type:"string"` 6195 6196 // An ID that App Runner generated for this service. It's unique within the 6197 // Amazon Web Services Region. 6198 ServiceId *string `min:"32" type:"string"` 6199 6200 // The customer-provided service name. 6201 ServiceName *string `min:"4" type:"string"` 6202 6203 // A subdomain URL that App Runner generated for this service. You can use this 6204 // URL to access your service web application. 6205 ServiceUrl *string `type:"string"` 6206 6207 // The current state of the App Runner service. These particular values mean 6208 // the following. 6209 // 6210 // * CREATE_FAILED – The service failed to create. Read the failure events 6211 // and logs, change any parameters that need to be fixed, and retry the call 6212 // to create the service. The failed service isn't usable, and still counts 6213 // towards your service quota. When you're done analyzing the failure, delete 6214 // the service. 6215 // 6216 // * DELETE_FAILED – The service failed to delete and can't be successfully 6217 // recovered. Retry the service deletion call to ensure that all related 6218 // resources are removed. 6219 Status *string `type:"string" enum:"ServiceStatus"` 6220 6221 // The time when the App Runner service was last updated. It's in theUnix time 6222 // stamp format. 6223 UpdatedAt *time.Time `type:"timestamp"` 6224 } 6225 6226 // String returns the string representation. 6227 // 6228 // API parameter values that are decorated as "sensitive" in the API will not 6229 // be included in the string output. The member name will be present, but the 6230 // value will be replaced with "sensitive". 6231 func (s ServiceSummary) String() string { 6232 return awsutil.Prettify(s) 6233 } 6234 6235 // GoString returns the string representation. 6236 // 6237 // API parameter values that are decorated as "sensitive" in the API will not 6238 // be included in the string output. The member name will be present, but the 6239 // value will be replaced with "sensitive". 6240 func (s ServiceSummary) GoString() string { 6241 return s.String() 6242 } 6243 6244 // SetCreatedAt sets the CreatedAt field's value. 6245 func (s *ServiceSummary) SetCreatedAt(v time.Time) *ServiceSummary { 6246 s.CreatedAt = &v 6247 return s 6248 } 6249 6250 // SetServiceArn sets the ServiceArn field's value. 6251 func (s *ServiceSummary) SetServiceArn(v string) *ServiceSummary { 6252 s.ServiceArn = &v 6253 return s 6254 } 6255 6256 // SetServiceId sets the ServiceId field's value. 6257 func (s *ServiceSummary) SetServiceId(v string) *ServiceSummary { 6258 s.ServiceId = &v 6259 return s 6260 } 6261 6262 // SetServiceName sets the ServiceName field's value. 6263 func (s *ServiceSummary) SetServiceName(v string) *ServiceSummary { 6264 s.ServiceName = &v 6265 return s 6266 } 6267 6268 // SetServiceUrl sets the ServiceUrl field's value. 6269 func (s *ServiceSummary) SetServiceUrl(v string) *ServiceSummary { 6270 s.ServiceUrl = &v 6271 return s 6272 } 6273 6274 // SetStatus sets the Status field's value. 6275 func (s *ServiceSummary) SetStatus(v string) *ServiceSummary { 6276 s.Status = &v 6277 return s 6278 } 6279 6280 // SetUpdatedAt sets the UpdatedAt field's value. 6281 func (s *ServiceSummary) SetUpdatedAt(v time.Time) *ServiceSummary { 6282 s.UpdatedAt = &v 6283 return s 6284 } 6285 6286 // Identifies a version of code that App Runner refers to within a source code 6287 // repository. 6288 type SourceCodeVersion struct { 6289 _ struct{} `type:"structure"` 6290 6291 // The type of version identifier. 6292 // 6293 // For a git-based repository, branches represent versions. 6294 // 6295 // Type is a required field 6296 Type *string `type:"string" required:"true" enum:"SourceCodeVersionType"` 6297 6298 // A source code version. 6299 // 6300 // For a git-based repository, a branch name maps to a specific version. App 6301 // Runner uses the most recent commit to the branch. 6302 // 6303 // Value is a required field 6304 Value *string `type:"string" required:"true"` 6305 } 6306 6307 // String returns the string representation. 6308 // 6309 // API parameter values that are decorated as "sensitive" in the API will not 6310 // be included in the string output. The member name will be present, but the 6311 // value will be replaced with "sensitive". 6312 func (s SourceCodeVersion) String() string { 6313 return awsutil.Prettify(s) 6314 } 6315 6316 // GoString returns the string representation. 6317 // 6318 // API parameter values that are decorated as "sensitive" in the API will not 6319 // be included in the string output. The member name will be present, but the 6320 // value will be replaced with "sensitive". 6321 func (s SourceCodeVersion) GoString() string { 6322 return s.String() 6323 } 6324 6325 // Validate inspects the fields of the type to determine if they are valid. 6326 func (s *SourceCodeVersion) Validate() error { 6327 invalidParams := request.ErrInvalidParams{Context: "SourceCodeVersion"} 6328 if s.Type == nil { 6329 invalidParams.Add(request.NewErrParamRequired("Type")) 6330 } 6331 if s.Value == nil { 6332 invalidParams.Add(request.NewErrParamRequired("Value")) 6333 } 6334 6335 if invalidParams.Len() > 0 { 6336 return invalidParams 6337 } 6338 return nil 6339 } 6340 6341 // SetType sets the Type field's value. 6342 func (s *SourceCodeVersion) SetType(v string) *SourceCodeVersion { 6343 s.Type = &v 6344 return s 6345 } 6346 6347 // SetValue sets the Value field's value. 6348 func (s *SourceCodeVersion) SetValue(v string) *SourceCodeVersion { 6349 s.Value = &v 6350 return s 6351 } 6352 6353 // Describes the source deployed to an App Runner service. It can be a code 6354 // or an image repository. 6355 type SourceConfiguration struct { 6356 _ struct{} `type:"structure"` 6357 6358 // Describes the resources that are needed to authenticate access to some source 6359 // repositories. 6360 AuthenticationConfiguration *AuthenticationConfiguration `type:"structure"` 6361 6362 // If true, continuous integration from the source repository is enabled for 6363 // the App Runner service. Each repository change (including any source code 6364 // commit or new image version) starts a deployment. 6365 // 6366 // Default: App Runner sets to false for a source image that uses an ECR Public 6367 // repository or an ECR repository that's in an Amazon Web Services account 6368 // other than the one that the service is in. App Runner sets to true in all 6369 // other cases (which currently include a source code repository or a source 6370 // image using a same-account ECR repository). 6371 AutoDeploymentsEnabled *bool `type:"boolean"` 6372 6373 // The description of a source code repository. 6374 // 6375 // You must provide either this member or ImageRepository (but not both). 6376 CodeRepository *CodeRepository `type:"structure"` 6377 6378 // The description of a source image repository. 6379 // 6380 // You must provide either this member or CodeRepository (but not both). 6381 ImageRepository *ImageRepository `type:"structure"` 6382 } 6383 6384 // String returns the string representation. 6385 // 6386 // API parameter values that are decorated as "sensitive" in the API will not 6387 // be included in the string output. The member name will be present, but the 6388 // value will be replaced with "sensitive". 6389 func (s SourceConfiguration) String() string { 6390 return awsutil.Prettify(s) 6391 } 6392 6393 // GoString returns the string representation. 6394 // 6395 // API parameter values that are decorated as "sensitive" in the API will not 6396 // be included in the string output. The member name will be present, but the 6397 // value will be replaced with "sensitive". 6398 func (s SourceConfiguration) GoString() string { 6399 return s.String() 6400 } 6401 6402 // Validate inspects the fields of the type to determine if they are valid. 6403 func (s *SourceConfiguration) Validate() error { 6404 invalidParams := request.ErrInvalidParams{Context: "SourceConfiguration"} 6405 if s.AuthenticationConfiguration != nil { 6406 if err := s.AuthenticationConfiguration.Validate(); err != nil { 6407 invalidParams.AddNested("AuthenticationConfiguration", err.(request.ErrInvalidParams)) 6408 } 6409 } 6410 if s.CodeRepository != nil { 6411 if err := s.CodeRepository.Validate(); err != nil { 6412 invalidParams.AddNested("CodeRepository", err.(request.ErrInvalidParams)) 6413 } 6414 } 6415 if s.ImageRepository != nil { 6416 if err := s.ImageRepository.Validate(); err != nil { 6417 invalidParams.AddNested("ImageRepository", err.(request.ErrInvalidParams)) 6418 } 6419 } 6420 6421 if invalidParams.Len() > 0 { 6422 return invalidParams 6423 } 6424 return nil 6425 } 6426 6427 // SetAuthenticationConfiguration sets the AuthenticationConfiguration field's value. 6428 func (s *SourceConfiguration) SetAuthenticationConfiguration(v *AuthenticationConfiguration) *SourceConfiguration { 6429 s.AuthenticationConfiguration = v 6430 return s 6431 } 6432 6433 // SetAutoDeploymentsEnabled sets the AutoDeploymentsEnabled field's value. 6434 func (s *SourceConfiguration) SetAutoDeploymentsEnabled(v bool) *SourceConfiguration { 6435 s.AutoDeploymentsEnabled = &v 6436 return s 6437 } 6438 6439 // SetCodeRepository sets the CodeRepository field's value. 6440 func (s *SourceConfiguration) SetCodeRepository(v *CodeRepository) *SourceConfiguration { 6441 s.CodeRepository = v 6442 return s 6443 } 6444 6445 // SetImageRepository sets the ImageRepository field's value. 6446 func (s *SourceConfiguration) SetImageRepository(v *ImageRepository) *SourceConfiguration { 6447 s.ImageRepository = v 6448 return s 6449 } 6450 6451 type StartDeploymentInput struct { 6452 _ struct{} `type:"structure"` 6453 6454 // The Amazon Resource Name (ARN) of the App Runner service that you want to 6455 // manually deploy to. 6456 // 6457 // ServiceArn is a required field 6458 ServiceArn *string `min:"1" type:"string" required:"true"` 6459 } 6460 6461 // String returns the string representation. 6462 // 6463 // API parameter values that are decorated as "sensitive" in the API will not 6464 // be included in the string output. The member name will be present, but the 6465 // value will be replaced with "sensitive". 6466 func (s StartDeploymentInput) String() string { 6467 return awsutil.Prettify(s) 6468 } 6469 6470 // GoString returns the string representation. 6471 // 6472 // API parameter values that are decorated as "sensitive" in the API will not 6473 // be included in the string output. The member name will be present, but the 6474 // value will be replaced with "sensitive". 6475 func (s StartDeploymentInput) GoString() string { 6476 return s.String() 6477 } 6478 6479 // Validate inspects the fields of the type to determine if they are valid. 6480 func (s *StartDeploymentInput) Validate() error { 6481 invalidParams := request.ErrInvalidParams{Context: "StartDeploymentInput"} 6482 if s.ServiceArn == nil { 6483 invalidParams.Add(request.NewErrParamRequired("ServiceArn")) 6484 } 6485 if s.ServiceArn != nil && len(*s.ServiceArn) < 1 { 6486 invalidParams.Add(request.NewErrParamMinLen("ServiceArn", 1)) 6487 } 6488 6489 if invalidParams.Len() > 0 { 6490 return invalidParams 6491 } 6492 return nil 6493 } 6494 6495 // SetServiceArn sets the ServiceArn field's value. 6496 func (s *StartDeploymentInput) SetServiceArn(v string) *StartDeploymentInput { 6497 s.ServiceArn = &v 6498 return s 6499 } 6500 6501 type StartDeploymentOutput struct { 6502 _ struct{} `type:"structure"` 6503 6504 // The unique ID of the asynchronous operation that this request started. You 6505 // can use it combined with the ListOperations call to track the operation's 6506 // progress. 6507 // 6508 // OperationId is a required field 6509 OperationId *string `min:"36" type:"string" required:"true"` 6510 } 6511 6512 // String returns the string representation. 6513 // 6514 // API parameter values that are decorated as "sensitive" in the API will not 6515 // be included in the string output. The member name will be present, but the 6516 // value will be replaced with "sensitive". 6517 func (s StartDeploymentOutput) String() string { 6518 return awsutil.Prettify(s) 6519 } 6520 6521 // GoString returns the string representation. 6522 // 6523 // API parameter values that are decorated as "sensitive" in the API will not 6524 // be included in the string output. The member name will be present, but the 6525 // value will be replaced with "sensitive". 6526 func (s StartDeploymentOutput) GoString() string { 6527 return s.String() 6528 } 6529 6530 // SetOperationId sets the OperationId field's value. 6531 func (s *StartDeploymentOutput) SetOperationId(v string) *StartDeploymentOutput { 6532 s.OperationId = &v 6533 return s 6534 } 6535 6536 // Describes a tag that is applied to an App Runner resource. A tag is a metadata 6537 // item consisting of a key-value pair. 6538 type Tag struct { 6539 _ struct{} `type:"structure"` 6540 6541 // The key of the tag. 6542 Key *string `min:"1" type:"string"` 6543 6544 // The value of the tag. 6545 Value *string `type:"string"` 6546 } 6547 6548 // String returns the string representation. 6549 // 6550 // API parameter values that are decorated as "sensitive" in the API will not 6551 // be included in the string output. The member name will be present, but the 6552 // value will be replaced with "sensitive". 6553 func (s Tag) String() string { 6554 return awsutil.Prettify(s) 6555 } 6556 6557 // GoString returns the string representation. 6558 // 6559 // API parameter values that are decorated as "sensitive" in the API will not 6560 // be included in the string output. The member name will be present, but the 6561 // value will be replaced with "sensitive". 6562 func (s Tag) GoString() string { 6563 return s.String() 6564 } 6565 6566 // Validate inspects the fields of the type to determine if they are valid. 6567 func (s *Tag) Validate() error { 6568 invalidParams := request.ErrInvalidParams{Context: "Tag"} 6569 if s.Key != nil && len(*s.Key) < 1 { 6570 invalidParams.Add(request.NewErrParamMinLen("Key", 1)) 6571 } 6572 6573 if invalidParams.Len() > 0 { 6574 return invalidParams 6575 } 6576 return nil 6577 } 6578 6579 // SetKey sets the Key field's value. 6580 func (s *Tag) SetKey(v string) *Tag { 6581 s.Key = &v 6582 return s 6583 } 6584 6585 // SetValue sets the Value field's value. 6586 func (s *Tag) SetValue(v string) *Tag { 6587 s.Value = &v 6588 return s 6589 } 6590 6591 type TagResourceInput struct { 6592 _ struct{} `type:"structure"` 6593 6594 // The Amazon Resource Name (ARN) of the resource that you want to update tags 6595 // for. 6596 // 6597 // It must be the ARN of an App Runner resource. 6598 // 6599 // ResourceArn is a required field 6600 ResourceArn *string `min:"1" type:"string" required:"true"` 6601 6602 // A list of tag key-value pairs to add or update. If a key is new to the resource, 6603 // the tag is added with the provided value. If a key is already associated 6604 // with the resource, the value of the tag is updated. 6605 // 6606 // Tags is a required field 6607 Tags []*Tag `type:"list" required:"true"` 6608 } 6609 6610 // String returns the string representation. 6611 // 6612 // API parameter values that are decorated as "sensitive" in the API will not 6613 // be included in the string output. The member name will be present, but the 6614 // value will be replaced with "sensitive". 6615 func (s TagResourceInput) String() string { 6616 return awsutil.Prettify(s) 6617 } 6618 6619 // GoString returns the string representation. 6620 // 6621 // API parameter values that are decorated as "sensitive" in the API will not 6622 // be included in the string output. The member name will be present, but the 6623 // value will be replaced with "sensitive". 6624 func (s TagResourceInput) GoString() string { 6625 return s.String() 6626 } 6627 6628 // Validate inspects the fields of the type to determine if they are valid. 6629 func (s *TagResourceInput) Validate() error { 6630 invalidParams := request.ErrInvalidParams{Context: "TagResourceInput"} 6631 if s.ResourceArn == nil { 6632 invalidParams.Add(request.NewErrParamRequired("ResourceArn")) 6633 } 6634 if s.ResourceArn != nil && len(*s.ResourceArn) < 1 { 6635 invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1)) 6636 } 6637 if s.Tags == nil { 6638 invalidParams.Add(request.NewErrParamRequired("Tags")) 6639 } 6640 if s.Tags != nil { 6641 for i, v := range s.Tags { 6642 if v == nil { 6643 continue 6644 } 6645 if err := v.Validate(); err != nil { 6646 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) 6647 } 6648 } 6649 } 6650 6651 if invalidParams.Len() > 0 { 6652 return invalidParams 6653 } 6654 return nil 6655 } 6656 6657 // SetResourceArn sets the ResourceArn field's value. 6658 func (s *TagResourceInput) SetResourceArn(v string) *TagResourceInput { 6659 s.ResourceArn = &v 6660 return s 6661 } 6662 6663 // SetTags sets the Tags field's value. 6664 func (s *TagResourceInput) SetTags(v []*Tag) *TagResourceInput { 6665 s.Tags = v 6666 return s 6667 } 6668 6669 type TagResourceOutput struct { 6670 _ struct{} `type:"structure"` 6671 } 6672 6673 // String returns the string representation. 6674 // 6675 // API parameter values that are decorated as "sensitive" in the API will not 6676 // be included in the string output. The member name will be present, but the 6677 // value will be replaced with "sensitive". 6678 func (s TagResourceOutput) String() string { 6679 return awsutil.Prettify(s) 6680 } 6681 6682 // GoString returns the string representation. 6683 // 6684 // API parameter values that are decorated as "sensitive" in the API will not 6685 // be included in the string output. The member name will be present, but the 6686 // value will be replaced with "sensitive". 6687 func (s TagResourceOutput) GoString() string { 6688 return s.String() 6689 } 6690 6691 type UntagResourceInput struct { 6692 _ struct{} `type:"structure"` 6693 6694 // The Amazon Resource Name (ARN) of the resource that you want to remove tags 6695 // from. 6696 // 6697 // It must be the ARN of an App Runner resource. 6698 // 6699 // ResourceArn is a required field 6700 ResourceArn *string `min:"1" type:"string" required:"true"` 6701 6702 // A list of tag keys that you want to remove. 6703 // 6704 // TagKeys is a required field 6705 TagKeys []*string `type:"list" required:"true"` 6706 } 6707 6708 // String returns the string representation. 6709 // 6710 // API parameter values that are decorated as "sensitive" in the API will not 6711 // be included in the string output. The member name will be present, but the 6712 // value will be replaced with "sensitive". 6713 func (s UntagResourceInput) String() string { 6714 return awsutil.Prettify(s) 6715 } 6716 6717 // GoString returns the string representation. 6718 // 6719 // API parameter values that are decorated as "sensitive" in the API will not 6720 // be included in the string output. The member name will be present, but the 6721 // value will be replaced with "sensitive". 6722 func (s UntagResourceInput) GoString() string { 6723 return s.String() 6724 } 6725 6726 // Validate inspects the fields of the type to determine if they are valid. 6727 func (s *UntagResourceInput) Validate() error { 6728 invalidParams := request.ErrInvalidParams{Context: "UntagResourceInput"} 6729 if s.ResourceArn == nil { 6730 invalidParams.Add(request.NewErrParamRequired("ResourceArn")) 6731 } 6732 if s.ResourceArn != nil && len(*s.ResourceArn) < 1 { 6733 invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1)) 6734 } 6735 if s.TagKeys == nil { 6736 invalidParams.Add(request.NewErrParamRequired("TagKeys")) 6737 } 6738 6739 if invalidParams.Len() > 0 { 6740 return invalidParams 6741 } 6742 return nil 6743 } 6744 6745 // SetResourceArn sets the ResourceArn field's value. 6746 func (s *UntagResourceInput) SetResourceArn(v string) *UntagResourceInput { 6747 s.ResourceArn = &v 6748 return s 6749 } 6750 6751 // SetTagKeys sets the TagKeys field's value. 6752 func (s *UntagResourceInput) SetTagKeys(v []*string) *UntagResourceInput { 6753 s.TagKeys = v 6754 return s 6755 } 6756 6757 type UntagResourceOutput struct { 6758 _ struct{} `type:"structure"` 6759 } 6760 6761 // String returns the string representation. 6762 // 6763 // API parameter values that are decorated as "sensitive" in the API will not 6764 // be included in the string output. The member name will be present, but the 6765 // value will be replaced with "sensitive". 6766 func (s UntagResourceOutput) String() string { 6767 return awsutil.Prettify(s) 6768 } 6769 6770 // GoString returns the string representation. 6771 // 6772 // API parameter values that are decorated as "sensitive" in the API will not 6773 // be included in the string output. The member name will be present, but the 6774 // value will be replaced with "sensitive". 6775 func (s UntagResourceOutput) GoString() string { 6776 return s.String() 6777 } 6778 6779 type UpdateServiceInput struct { 6780 _ struct{} `type:"structure"` 6781 6782 // The Amazon Resource Name (ARN) of an App Runner automatic scaling configuration 6783 // resource that you want to associate with your service. 6784 AutoScalingConfigurationArn *string `min:"1" type:"string"` 6785 6786 // The settings for the health check that App Runner performs to monitor the 6787 // health of your service. 6788 HealthCheckConfiguration *HealthCheckConfiguration `type:"structure"` 6789 6790 // The runtime configuration to apply to instances (scaling units) of the App 6791 // Runner service. 6792 InstanceConfiguration *InstanceConfiguration `type:"structure"` 6793 6794 // The Amazon Resource Name (ARN) of the App Runner service that you want to 6795 // update. 6796 // 6797 // ServiceArn is a required field 6798 ServiceArn *string `min:"1" type:"string" required:"true"` 6799 6800 // The source configuration to apply to the App Runner service. 6801 // 6802 // You can change the configuration of the code or image repository that the 6803 // service uses. However, you can't switch from code to image or the other way 6804 // around. This means that you must provide the same structure member of SourceConfiguration 6805 // that you originally included when you created the service. Specifically, 6806 // you can include either CodeRepository or ImageRepository. To update the source 6807 // configuration, set the values to members of the structure that you include. 6808 SourceConfiguration *SourceConfiguration `type:"structure"` 6809 } 6810 6811 // String returns the string representation. 6812 // 6813 // API parameter values that are decorated as "sensitive" in the API will not 6814 // be included in the string output. The member name will be present, but the 6815 // value will be replaced with "sensitive". 6816 func (s UpdateServiceInput) String() string { 6817 return awsutil.Prettify(s) 6818 } 6819 6820 // GoString returns the string representation. 6821 // 6822 // API parameter values that are decorated as "sensitive" in the API will not 6823 // be included in the string output. The member name will be present, but the 6824 // value will be replaced with "sensitive". 6825 func (s UpdateServiceInput) GoString() string { 6826 return s.String() 6827 } 6828 6829 // Validate inspects the fields of the type to determine if they are valid. 6830 func (s *UpdateServiceInput) Validate() error { 6831 invalidParams := request.ErrInvalidParams{Context: "UpdateServiceInput"} 6832 if s.AutoScalingConfigurationArn != nil && len(*s.AutoScalingConfigurationArn) < 1 { 6833 invalidParams.Add(request.NewErrParamMinLen("AutoScalingConfigurationArn", 1)) 6834 } 6835 if s.ServiceArn == nil { 6836 invalidParams.Add(request.NewErrParamRequired("ServiceArn")) 6837 } 6838 if s.ServiceArn != nil && len(*s.ServiceArn) < 1 { 6839 invalidParams.Add(request.NewErrParamMinLen("ServiceArn", 1)) 6840 } 6841 if s.HealthCheckConfiguration != nil { 6842 if err := s.HealthCheckConfiguration.Validate(); err != nil { 6843 invalidParams.AddNested("HealthCheckConfiguration", err.(request.ErrInvalidParams)) 6844 } 6845 } 6846 if s.InstanceConfiguration != nil { 6847 if err := s.InstanceConfiguration.Validate(); err != nil { 6848 invalidParams.AddNested("InstanceConfiguration", err.(request.ErrInvalidParams)) 6849 } 6850 } 6851 if s.SourceConfiguration != nil { 6852 if err := s.SourceConfiguration.Validate(); err != nil { 6853 invalidParams.AddNested("SourceConfiguration", err.(request.ErrInvalidParams)) 6854 } 6855 } 6856 6857 if invalidParams.Len() > 0 { 6858 return invalidParams 6859 } 6860 return nil 6861 } 6862 6863 // SetAutoScalingConfigurationArn sets the AutoScalingConfigurationArn field's value. 6864 func (s *UpdateServiceInput) SetAutoScalingConfigurationArn(v string) *UpdateServiceInput { 6865 s.AutoScalingConfigurationArn = &v 6866 return s 6867 } 6868 6869 // SetHealthCheckConfiguration sets the HealthCheckConfiguration field's value. 6870 func (s *UpdateServiceInput) SetHealthCheckConfiguration(v *HealthCheckConfiguration) *UpdateServiceInput { 6871 s.HealthCheckConfiguration = v 6872 return s 6873 } 6874 6875 // SetInstanceConfiguration sets the InstanceConfiguration field's value. 6876 func (s *UpdateServiceInput) SetInstanceConfiguration(v *InstanceConfiguration) *UpdateServiceInput { 6877 s.InstanceConfiguration = v 6878 return s 6879 } 6880 6881 // SetServiceArn sets the ServiceArn field's value. 6882 func (s *UpdateServiceInput) SetServiceArn(v string) *UpdateServiceInput { 6883 s.ServiceArn = &v 6884 return s 6885 } 6886 6887 // SetSourceConfiguration sets the SourceConfiguration field's value. 6888 func (s *UpdateServiceInput) SetSourceConfiguration(v *SourceConfiguration) *UpdateServiceInput { 6889 s.SourceConfiguration = v 6890 return s 6891 } 6892 6893 type UpdateServiceOutput struct { 6894 _ struct{} `type:"structure"` 6895 6896 // The unique ID of the asynchronous operation that this request started. You 6897 // can use it combined with the ListOperations call to track the operation's 6898 // progress. 6899 // 6900 // OperationId is a required field 6901 OperationId *string `min:"36" type:"string" required:"true"` 6902 6903 // A description of the App Runner service updated by this request. All configuration 6904 // values in the returned Service structure reflect configuration changes that 6905 // are being applied by this request. 6906 // 6907 // Service is a required field 6908 Service *Service `type:"structure" required:"true"` 6909 } 6910 6911 // String returns the string representation. 6912 // 6913 // API parameter values that are decorated as "sensitive" in the API will not 6914 // be included in the string output. The member name will be present, but the 6915 // value will be replaced with "sensitive". 6916 func (s UpdateServiceOutput) String() string { 6917 return awsutil.Prettify(s) 6918 } 6919 6920 // GoString returns the string representation. 6921 // 6922 // API parameter values that are decorated as "sensitive" in the API will not 6923 // be included in the string output. The member name will be present, but the 6924 // value will be replaced with "sensitive". 6925 func (s UpdateServiceOutput) GoString() string { 6926 return s.String() 6927 } 6928 6929 // SetOperationId sets the OperationId field's value. 6930 func (s *UpdateServiceOutput) SetOperationId(v string) *UpdateServiceOutput { 6931 s.OperationId = &v 6932 return s 6933 } 6934 6935 // SetService sets the Service field's value. 6936 func (s *UpdateServiceOutput) SetService(v *Service) *UpdateServiceOutput { 6937 s.Service = v 6938 return s 6939 } 6940 6941 const ( 6942 // AutoScalingConfigurationStatusActive is a AutoScalingConfigurationStatus enum value 6943 AutoScalingConfigurationStatusActive = "ACTIVE" 6944 6945 // AutoScalingConfigurationStatusInactive is a AutoScalingConfigurationStatus enum value 6946 AutoScalingConfigurationStatusInactive = "INACTIVE" 6947 ) 6948 6949 // AutoScalingConfigurationStatus_Values returns all elements of the AutoScalingConfigurationStatus enum 6950 func AutoScalingConfigurationStatus_Values() []string { 6951 return []string{ 6952 AutoScalingConfigurationStatusActive, 6953 AutoScalingConfigurationStatusInactive, 6954 } 6955 } 6956 6957 const ( 6958 // CertificateValidationRecordStatusPendingValidation is a CertificateValidationRecordStatus enum value 6959 CertificateValidationRecordStatusPendingValidation = "PENDING_VALIDATION" 6960 6961 // CertificateValidationRecordStatusSuccess is a CertificateValidationRecordStatus enum value 6962 CertificateValidationRecordStatusSuccess = "SUCCESS" 6963 6964 // CertificateValidationRecordStatusFailed is a CertificateValidationRecordStatus enum value 6965 CertificateValidationRecordStatusFailed = "FAILED" 6966 ) 6967 6968 // CertificateValidationRecordStatus_Values returns all elements of the CertificateValidationRecordStatus enum 6969 func CertificateValidationRecordStatus_Values() []string { 6970 return []string{ 6971 CertificateValidationRecordStatusPendingValidation, 6972 CertificateValidationRecordStatusSuccess, 6973 CertificateValidationRecordStatusFailed, 6974 } 6975 } 6976 6977 const ( 6978 // ConfigurationSourceRepository is a ConfigurationSource enum value 6979 ConfigurationSourceRepository = "REPOSITORY" 6980 6981 // ConfigurationSourceApi is a ConfigurationSource enum value 6982 ConfigurationSourceApi = "API" 6983 ) 6984 6985 // ConfigurationSource_Values returns all elements of the ConfigurationSource enum 6986 func ConfigurationSource_Values() []string { 6987 return []string{ 6988 ConfigurationSourceRepository, 6989 ConfigurationSourceApi, 6990 } 6991 } 6992 6993 const ( 6994 // ConnectionStatusPendingHandshake is a ConnectionStatus enum value 6995 ConnectionStatusPendingHandshake = "PENDING_HANDSHAKE" 6996 6997 // ConnectionStatusAvailable is a ConnectionStatus enum value 6998 ConnectionStatusAvailable = "AVAILABLE" 6999 7000 // ConnectionStatusError is a ConnectionStatus enum value 7001 ConnectionStatusError = "ERROR" 7002 7003 // ConnectionStatusDeleted is a ConnectionStatus enum value 7004 ConnectionStatusDeleted = "DELETED" 7005 ) 7006 7007 // ConnectionStatus_Values returns all elements of the ConnectionStatus enum 7008 func ConnectionStatus_Values() []string { 7009 return []string{ 7010 ConnectionStatusPendingHandshake, 7011 ConnectionStatusAvailable, 7012 ConnectionStatusError, 7013 ConnectionStatusDeleted, 7014 } 7015 } 7016 7017 const ( 7018 // CustomDomainAssociationStatusCreating is a CustomDomainAssociationStatus enum value 7019 CustomDomainAssociationStatusCreating = "CREATING" 7020 7021 // CustomDomainAssociationStatusCreateFailed is a CustomDomainAssociationStatus enum value 7022 CustomDomainAssociationStatusCreateFailed = "CREATE_FAILED" 7023 7024 // CustomDomainAssociationStatusActive is a CustomDomainAssociationStatus enum value 7025 CustomDomainAssociationStatusActive = "ACTIVE" 7026 7027 // CustomDomainAssociationStatusDeleting is a CustomDomainAssociationStatus enum value 7028 CustomDomainAssociationStatusDeleting = "DELETING" 7029 7030 // CustomDomainAssociationStatusDeleteFailed is a CustomDomainAssociationStatus enum value 7031 CustomDomainAssociationStatusDeleteFailed = "DELETE_FAILED" 7032 7033 // CustomDomainAssociationStatusPendingCertificateDnsValidation is a CustomDomainAssociationStatus enum value 7034 CustomDomainAssociationStatusPendingCertificateDnsValidation = "PENDING_CERTIFICATE_DNS_VALIDATION" 7035 7036 // CustomDomainAssociationStatusBindingCertificate is a CustomDomainAssociationStatus enum value 7037 CustomDomainAssociationStatusBindingCertificate = "BINDING_CERTIFICATE" 7038 ) 7039 7040 // CustomDomainAssociationStatus_Values returns all elements of the CustomDomainAssociationStatus enum 7041 func CustomDomainAssociationStatus_Values() []string { 7042 return []string{ 7043 CustomDomainAssociationStatusCreating, 7044 CustomDomainAssociationStatusCreateFailed, 7045 CustomDomainAssociationStatusActive, 7046 CustomDomainAssociationStatusDeleting, 7047 CustomDomainAssociationStatusDeleteFailed, 7048 CustomDomainAssociationStatusPendingCertificateDnsValidation, 7049 CustomDomainAssociationStatusBindingCertificate, 7050 } 7051 } 7052 7053 const ( 7054 // HealthCheckProtocolTcp is a HealthCheckProtocol enum value 7055 HealthCheckProtocolTcp = "TCP" 7056 7057 // HealthCheckProtocolHttp is a HealthCheckProtocol enum value 7058 HealthCheckProtocolHttp = "HTTP" 7059 ) 7060 7061 // HealthCheckProtocol_Values returns all elements of the HealthCheckProtocol enum 7062 func HealthCheckProtocol_Values() []string { 7063 return []string{ 7064 HealthCheckProtocolTcp, 7065 HealthCheckProtocolHttp, 7066 } 7067 } 7068 7069 const ( 7070 // ImageRepositoryTypeEcr is a ImageRepositoryType enum value 7071 ImageRepositoryTypeEcr = "ECR" 7072 7073 // ImageRepositoryTypeEcrPublic is a ImageRepositoryType enum value 7074 ImageRepositoryTypeEcrPublic = "ECR_PUBLIC" 7075 ) 7076 7077 // ImageRepositoryType_Values returns all elements of the ImageRepositoryType enum 7078 func ImageRepositoryType_Values() []string { 7079 return []string{ 7080 ImageRepositoryTypeEcr, 7081 ImageRepositoryTypeEcrPublic, 7082 } 7083 } 7084 7085 const ( 7086 // OperationStatusPending is a OperationStatus enum value 7087 OperationStatusPending = "PENDING" 7088 7089 // OperationStatusInProgress is a OperationStatus enum value 7090 OperationStatusInProgress = "IN_PROGRESS" 7091 7092 // OperationStatusFailed is a OperationStatus enum value 7093 OperationStatusFailed = "FAILED" 7094 7095 // OperationStatusSucceeded is a OperationStatus enum value 7096 OperationStatusSucceeded = "SUCCEEDED" 7097 7098 // OperationStatusRollbackInProgress is a OperationStatus enum value 7099 OperationStatusRollbackInProgress = "ROLLBACK_IN_PROGRESS" 7100 7101 // OperationStatusRollbackFailed is a OperationStatus enum value 7102 OperationStatusRollbackFailed = "ROLLBACK_FAILED" 7103 7104 // OperationStatusRollbackSucceeded is a OperationStatus enum value 7105 OperationStatusRollbackSucceeded = "ROLLBACK_SUCCEEDED" 7106 ) 7107 7108 // OperationStatus_Values returns all elements of the OperationStatus enum 7109 func OperationStatus_Values() []string { 7110 return []string{ 7111 OperationStatusPending, 7112 OperationStatusInProgress, 7113 OperationStatusFailed, 7114 OperationStatusSucceeded, 7115 OperationStatusRollbackInProgress, 7116 OperationStatusRollbackFailed, 7117 OperationStatusRollbackSucceeded, 7118 } 7119 } 7120 7121 const ( 7122 // OperationTypeStartDeployment is a OperationType enum value 7123 OperationTypeStartDeployment = "START_DEPLOYMENT" 7124 7125 // OperationTypeCreateService is a OperationType enum value 7126 OperationTypeCreateService = "CREATE_SERVICE" 7127 7128 // OperationTypePauseService is a OperationType enum value 7129 OperationTypePauseService = "PAUSE_SERVICE" 7130 7131 // OperationTypeResumeService is a OperationType enum value 7132 OperationTypeResumeService = "RESUME_SERVICE" 7133 7134 // OperationTypeDeleteService is a OperationType enum value 7135 OperationTypeDeleteService = "DELETE_SERVICE" 7136 ) 7137 7138 // OperationType_Values returns all elements of the OperationType enum 7139 func OperationType_Values() []string { 7140 return []string{ 7141 OperationTypeStartDeployment, 7142 OperationTypeCreateService, 7143 OperationTypePauseService, 7144 OperationTypeResumeService, 7145 OperationTypeDeleteService, 7146 } 7147 } 7148 7149 const ( 7150 // ProviderTypeGithub is a ProviderType enum value 7151 ProviderTypeGithub = "GITHUB" 7152 ) 7153 7154 // ProviderType_Values returns all elements of the ProviderType enum 7155 func ProviderType_Values() []string { 7156 return []string{ 7157 ProviderTypeGithub, 7158 } 7159 } 7160 7161 const ( 7162 // RuntimePython3 is a Runtime enum value 7163 RuntimePython3 = "PYTHON_3" 7164 7165 // RuntimeNodejs12 is a Runtime enum value 7166 RuntimeNodejs12 = "NODEJS_12" 7167 ) 7168 7169 // Runtime_Values returns all elements of the Runtime enum 7170 func Runtime_Values() []string { 7171 return []string{ 7172 RuntimePython3, 7173 RuntimeNodejs12, 7174 } 7175 } 7176 7177 const ( 7178 // ServiceStatusCreateFailed is a ServiceStatus enum value 7179 ServiceStatusCreateFailed = "CREATE_FAILED" 7180 7181 // ServiceStatusRunning is a ServiceStatus enum value 7182 ServiceStatusRunning = "RUNNING" 7183 7184 // ServiceStatusDeleted is a ServiceStatus enum value 7185 ServiceStatusDeleted = "DELETED" 7186 7187 // ServiceStatusDeleteFailed is a ServiceStatus enum value 7188 ServiceStatusDeleteFailed = "DELETE_FAILED" 7189 7190 // ServiceStatusPaused is a ServiceStatus enum value 7191 ServiceStatusPaused = "PAUSED" 7192 7193 // ServiceStatusOperationInProgress is a ServiceStatus enum value 7194 ServiceStatusOperationInProgress = "OPERATION_IN_PROGRESS" 7195 ) 7196 7197 // ServiceStatus_Values returns all elements of the ServiceStatus enum 7198 func ServiceStatus_Values() []string { 7199 return []string{ 7200 ServiceStatusCreateFailed, 7201 ServiceStatusRunning, 7202 ServiceStatusDeleted, 7203 ServiceStatusDeleteFailed, 7204 ServiceStatusPaused, 7205 ServiceStatusOperationInProgress, 7206 } 7207 } 7208 7209 const ( 7210 // SourceCodeVersionTypeBranch is a SourceCodeVersionType enum value 7211 SourceCodeVersionTypeBranch = "BRANCH" 7212 ) 7213 7214 // SourceCodeVersionType_Values returns all elements of the SourceCodeVersionType enum 7215 func SourceCodeVersionType_Values() []string { 7216 return []string{ 7217 SourceCodeVersionTypeBranch, 7218 } 7219 }