Debian Codegraph @

service/route53recoveryreadiness/api.go

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