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