-
Notifications
You must be signed in to change notification settings - Fork 248
/
client.rs
2961 lines (2916 loc) · 219 KB
/
client.rs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[derive(Debug)]
pub(crate) struct Handle {
pub(crate) client: aws_smithy_client::Client<
aws_smithy_client::erase::DynConnector,
aws_smithy_client::erase::DynMiddleware<aws_smithy_client::erase::DynConnector>,
>,
pub(crate) conf: crate::Config,
}
/// Client for Amazon Route 53 Domains
///
/// Client for invoking operations on Amazon Route 53 Domains. Each operation on Amazon Route 53 Domains is a method on this
/// this struct. `.send()` MUST be invoked on the generated operations to dispatch the request to the service.
///
/// # Examples
/// **Constructing a client and invoking an operation**
/// ```rust,no_run
/// # async fn docs() {
/// // create a shared configuration. This can be used & shared between multiple service clients.
/// let shared_config = aws_config::load_from_env().await;
/// let client = aws_sdk_route53domains::Client::new(&shared_config);
/// // invoke an operation
/// /* let rsp = client
/// .<operation_name>().
/// .<param>("some value")
/// .send().await; */
/// # }
/// ```
/// **Constructing a client with custom configuration**
/// ```rust,no_run
/// use aws_config::RetryConfig;
/// # async fn docs() {
/// let shared_config = aws_config::load_from_env().await;
/// let config = aws_sdk_route53domains::config::Builder::from(&shared_config)
/// .retry_config(RetryConfig::disabled())
/// .build();
/// let client = aws_sdk_route53domains::Client::from_conf(config);
/// # }
#[derive(std::fmt::Debug)]
pub struct Client {
handle: std::sync::Arc<Handle>,
}
impl std::clone::Clone for Client {
fn clone(&self) -> Self {
Self {
handle: self.handle.clone(),
}
}
}
#[doc(inline)]
pub use aws_smithy_client::Builder;
impl
From<
aws_smithy_client::Client<
aws_smithy_client::erase::DynConnector,
aws_smithy_client::erase::DynMiddleware<aws_smithy_client::erase::DynConnector>,
>,
> for Client
{
fn from(
client: aws_smithy_client::Client<
aws_smithy_client::erase::DynConnector,
aws_smithy_client::erase::DynMiddleware<aws_smithy_client::erase::DynConnector>,
>,
) -> Self {
Self::with_config(client, crate::Config::builder().build())
}
}
impl Client {
/// Creates a client with the given service configuration.
pub fn with_config(
client: aws_smithy_client::Client<
aws_smithy_client::erase::DynConnector,
aws_smithy_client::erase::DynMiddleware<aws_smithy_client::erase::DynConnector>,
>,
conf: crate::Config,
) -> Self {
Self {
handle: std::sync::Arc::new(Handle { client, conf }),
}
}
/// Returns the client's configuration.
pub fn conf(&self) -> &crate::Config {
&self.handle.conf
}
}
impl Client {
/// Constructs a fluent builder for the [`AcceptDomainTransferFromAnotherAwsAccount`](crate::client::fluent_builders::AcceptDomainTransferFromAnotherAwsAccount) operation.
///
/// - The fluent builder is configurable:
/// - [`domain_name(impl Into<String>)`](crate::client::fluent_builders::AcceptDomainTransferFromAnotherAwsAccount::domain_name) / [`set_domain_name(Option<String>)`](crate::client::fluent_builders::AcceptDomainTransferFromAnotherAwsAccount::set_domain_name): <p>The name of the domain that was specified when another Amazon Web Services account submitted a <a href="https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_TransferDomainToAnotherAwsAccount.html">TransferDomainToAnotherAwsAccount</a> request. </p>
/// - [`password(impl Into<String>)`](crate::client::fluent_builders::AcceptDomainTransferFromAnotherAwsAccount::password) / [`set_password(Option<String>)`](crate::client::fluent_builders::AcceptDomainTransferFromAnotherAwsAccount::set_password): <p>The password that was returned by the <a href="https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_TransferDomainToAnotherAwsAccount.html">TransferDomainToAnotherAwsAccount</a> request. </p>
/// - On success, responds with [`AcceptDomainTransferFromAnotherAwsAccountOutput`](crate::output::AcceptDomainTransferFromAnotherAwsAccountOutput) with field(s):
/// - [`operation_id(Option<String>)`](crate::output::AcceptDomainTransferFromAnotherAwsAccountOutput::operation_id): <p>Identifier for tracking the progress of the request. To query the operation status, use <a href="https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_GetOperationDetail.html">GetOperationDetail</a>.</p>
/// - On failure, responds with [`SdkError<AcceptDomainTransferFromAnotherAwsAccountError>`](crate::error::AcceptDomainTransferFromAnotherAwsAccountError)
pub fn accept_domain_transfer_from_another_aws_account(
&self,
) -> fluent_builders::AcceptDomainTransferFromAnotherAwsAccount {
fluent_builders::AcceptDomainTransferFromAnotherAwsAccount::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`CancelDomainTransferToAnotherAwsAccount`](crate::client::fluent_builders::CancelDomainTransferToAnotherAwsAccount) operation.
///
/// - The fluent builder is configurable:
/// - [`domain_name(impl Into<String>)`](crate::client::fluent_builders::CancelDomainTransferToAnotherAwsAccount::domain_name) / [`set_domain_name(Option<String>)`](crate::client::fluent_builders::CancelDomainTransferToAnotherAwsAccount::set_domain_name): <p>The name of the domain for which you want to cancel the transfer to another Amazon Web Services account.</p>
/// - On success, responds with [`CancelDomainTransferToAnotherAwsAccountOutput`](crate::output::CancelDomainTransferToAnotherAwsAccountOutput) with field(s):
/// - [`operation_id(Option<String>)`](crate::output::CancelDomainTransferToAnotherAwsAccountOutput::operation_id): <p>The identifier that <code>TransferDomainToAnotherAwsAccount</code> returned to track the progress of the request. Because the transfer request was canceled, the value is no longer valid, and you can't use <code>GetOperationDetail</code> to query the operation status.</p>
/// - On failure, responds with [`SdkError<CancelDomainTransferToAnotherAwsAccountError>`](crate::error::CancelDomainTransferToAnotherAwsAccountError)
pub fn cancel_domain_transfer_to_another_aws_account(
&self,
) -> fluent_builders::CancelDomainTransferToAnotherAwsAccount {
fluent_builders::CancelDomainTransferToAnotherAwsAccount::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`CheckDomainAvailability`](crate::client::fluent_builders::CheckDomainAvailability) operation.
///
/// - The fluent builder is configurable:
/// - [`domain_name(impl Into<String>)`](crate::client::fluent_builders::CheckDomainAvailability::domain_name) / [`set_domain_name(Option<String>)`](crate::client::fluent_builders::CheckDomainAvailability::set_domain_name): <p>The name of the domain that you want to get availability for. The top-level domain (TLD), such as .com, must be a TLD that Route 53 supports. For a list of supported TLDs, see <a href="https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/registrar-tld-list.html">Domains that You Can Register with Amazon Route 53</a> in the <i>Amazon Route 53 Developer Guide</i>.</p> <p>The domain name can contain only the following characters:</p> <ul> <li> <p>Letters a through z. Domain names are not case sensitive.</p> </li> <li> <p>Numbers 0 through 9.</p> </li> <li> <p>Hyphen (-). You can't specify a hyphen at the beginning or end of a label. </p> </li> <li> <p>Period (.) to separate the labels in the name, such as the <code>.</code> in <code>example.com</code>.</p> </li> </ul> <p>Internationalized domain names are not supported for some top-level domains. To determine whether the TLD that you want to use supports internationalized domain names, see <a href="https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/registrar-tld-list.html">Domains that You Can Register with Amazon Route 53</a>. For more information, see <a href="https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/DomainNameFormat.html#domain-name-format-idns">Formatting Internationalized Domain Names</a>. </p>
/// - [`idn_lang_code(impl Into<String>)`](crate::client::fluent_builders::CheckDomainAvailability::idn_lang_code) / [`set_idn_lang_code(Option<String>)`](crate::client::fluent_builders::CheckDomainAvailability::set_idn_lang_code): <p>Reserved for future use.</p>
/// - On success, responds with [`CheckDomainAvailabilityOutput`](crate::output::CheckDomainAvailabilityOutput) with field(s):
/// - [`availability(Option<DomainAvailability>)`](crate::output::CheckDomainAvailabilityOutput::availability): <p>Whether the domain name is available for registering.</p> <note> <p>You can register only domains designated as <code>AVAILABLE</code>.</p> </note> <p>Valid values:</p> <dl> <dt> AVAILABLE </dt> <dd> <p>The domain name is available.</p> </dd> <dt> AVAILABLE_RESERVED </dt> <dd> <p>The domain name is reserved under specific conditions.</p> </dd> <dt> AVAILABLE_PREORDER </dt> <dd> <p>The domain name is available and can be preordered.</p> </dd> <dt> DONT_KNOW </dt> <dd> <p>The TLD registry didn't reply with a definitive answer about whether the domain name is available. Route 53 can return this response for a variety of reasons, for example, the registry is performing maintenance. Try again later.</p> </dd> <dt> PENDING </dt> <dd> <p>The TLD registry didn't return a response in the expected amount of time. When the response is delayed, it usually takes just a few extra seconds. You can resubmit the request immediately.</p> </dd> <dt> RESERVED </dt> <dd> <p>The domain name has been reserved for another person or organization.</p> </dd> <dt> UNAVAILABLE </dt> <dd> <p>The domain name is not available.</p> </dd> <dt> UNAVAILABLE_PREMIUM </dt> <dd> <p>The domain name is not available.</p> </dd> <dt> UNAVAILABLE_RESTRICTED </dt> <dd> <p>The domain name is forbidden.</p> </dd> </dl>
/// - On failure, responds with [`SdkError<CheckDomainAvailabilityError>`](crate::error::CheckDomainAvailabilityError)
pub fn check_domain_availability(&self) -> fluent_builders::CheckDomainAvailability {
fluent_builders::CheckDomainAvailability::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`CheckDomainTransferability`](crate::client::fluent_builders::CheckDomainTransferability) operation.
///
/// - The fluent builder is configurable:
/// - [`domain_name(impl Into<String>)`](crate::client::fluent_builders::CheckDomainTransferability::domain_name) / [`set_domain_name(Option<String>)`](crate::client::fluent_builders::CheckDomainTransferability::set_domain_name): <p>The name of the domain that you want to transfer to Route 53. The top-level domain (TLD), such as .com, must be a TLD that Route 53 supports. For a list of supported TLDs, see <a href="https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/registrar-tld-list.html">Domains that You Can Register with Amazon Route 53</a> in the <i>Amazon Route 53 Developer Guide</i>.</p> <p>The domain name can contain only the following characters:</p> <ul> <li> <p>Letters a through z. Domain names are not case sensitive.</p> </li> <li> <p>Numbers 0 through 9.</p> </li> <li> <p>Hyphen (-). You can't specify a hyphen at the beginning or end of a label. </p> </li> <li> <p>Period (.) to separate the labels in the name, such as the <code>.</code> in <code>example.com</code>.</p> </li> </ul>
/// - [`auth_code(impl Into<String>)`](crate::client::fluent_builders::CheckDomainTransferability::auth_code) / [`set_auth_code(Option<String>)`](crate::client::fluent_builders::CheckDomainTransferability::set_auth_code): <p>If the registrar for the top-level domain (TLD) requires an authorization code to transfer the domain, the code that you got from the current registrar for the domain.</p>
/// - On success, responds with [`CheckDomainTransferabilityOutput`](crate::output::CheckDomainTransferabilityOutput) with field(s):
/// - [`transferability(Option<DomainTransferability>)`](crate::output::CheckDomainTransferabilityOutput::transferability): <p>A complex type that contains information about whether the specified domain can be transferred to Route 53.</p>
/// - On failure, responds with [`SdkError<CheckDomainTransferabilityError>`](crate::error::CheckDomainTransferabilityError)
pub fn check_domain_transferability(&self) -> fluent_builders::CheckDomainTransferability {
fluent_builders::CheckDomainTransferability::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`DeleteDomain`](crate::client::fluent_builders::DeleteDomain) operation.
///
/// - The fluent builder is configurable:
/// - [`domain_name(impl Into<String>)`](crate::client::fluent_builders::DeleteDomain::domain_name) / [`set_domain_name(Option<String>)`](crate::client::fluent_builders::DeleteDomain::set_domain_name): <p>Name of the domain to be deleted.</p>
/// - On success, responds with [`DeleteDomainOutput`](crate::output::DeleteDomainOutput) with field(s):
/// - [`operation_id(Option<String>)`](crate::output::DeleteDomainOutput::operation_id): <p>Identifier for tracking the progress of the request. To query the operation status, use <a href="https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_GetOperationDetail.html">GetOperationDetail</a>.</p>
/// - On failure, responds with [`SdkError<DeleteDomainError>`](crate::error::DeleteDomainError)
pub fn delete_domain(&self) -> fluent_builders::DeleteDomain {
fluent_builders::DeleteDomain::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`DeleteTagsForDomain`](crate::client::fluent_builders::DeleteTagsForDomain) operation.
///
/// - The fluent builder is configurable:
/// - [`domain_name(impl Into<String>)`](crate::client::fluent_builders::DeleteTagsForDomain::domain_name) / [`set_domain_name(Option<String>)`](crate::client::fluent_builders::DeleteTagsForDomain::set_domain_name): <p>The domain for which you want to delete one or more tags.</p>
/// - [`tags_to_delete(Vec<String>)`](crate::client::fluent_builders::DeleteTagsForDomain::tags_to_delete) / [`set_tags_to_delete(Option<Vec<String>>)`](crate::client::fluent_builders::DeleteTagsForDomain::set_tags_to_delete): <p>A list of tag keys to delete.</p>
/// - On success, responds with [`DeleteTagsForDomainOutput`](crate::output::DeleteTagsForDomainOutput)
/// - On failure, responds with [`SdkError<DeleteTagsForDomainError>`](crate::error::DeleteTagsForDomainError)
pub fn delete_tags_for_domain(&self) -> fluent_builders::DeleteTagsForDomain {
fluent_builders::DeleteTagsForDomain::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`DisableDomainAutoRenew`](crate::client::fluent_builders::DisableDomainAutoRenew) operation.
///
/// - The fluent builder is configurable:
/// - [`domain_name(impl Into<String>)`](crate::client::fluent_builders::DisableDomainAutoRenew::domain_name) / [`set_domain_name(Option<String>)`](crate::client::fluent_builders::DisableDomainAutoRenew::set_domain_name): <p>The name of the domain that you want to disable automatic renewal for.</p>
/// - On success, responds with [`DisableDomainAutoRenewOutput`](crate::output::DisableDomainAutoRenewOutput)
/// - On failure, responds with [`SdkError<DisableDomainAutoRenewError>`](crate::error::DisableDomainAutoRenewError)
pub fn disable_domain_auto_renew(&self) -> fluent_builders::DisableDomainAutoRenew {
fluent_builders::DisableDomainAutoRenew::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`DisableDomainTransferLock`](crate::client::fluent_builders::DisableDomainTransferLock) operation.
///
/// - The fluent builder is configurable:
/// - [`domain_name(impl Into<String>)`](crate::client::fluent_builders::DisableDomainTransferLock::domain_name) / [`set_domain_name(Option<String>)`](crate::client::fluent_builders::DisableDomainTransferLock::set_domain_name): <p>The name of the domain that you want to remove the transfer lock for.</p>
/// - On success, responds with [`DisableDomainTransferLockOutput`](crate::output::DisableDomainTransferLockOutput) with field(s):
/// - [`operation_id(Option<String>)`](crate::output::DisableDomainTransferLockOutput::operation_id): <p>Identifier for tracking the progress of the request. To query the operation status, use <a href="https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_GetOperationDetail.html">GetOperationDetail</a>.</p>
/// - On failure, responds with [`SdkError<DisableDomainTransferLockError>`](crate::error::DisableDomainTransferLockError)
pub fn disable_domain_transfer_lock(&self) -> fluent_builders::DisableDomainTransferLock {
fluent_builders::DisableDomainTransferLock::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`EnableDomainAutoRenew`](crate::client::fluent_builders::EnableDomainAutoRenew) operation.
///
/// - The fluent builder is configurable:
/// - [`domain_name(impl Into<String>)`](crate::client::fluent_builders::EnableDomainAutoRenew::domain_name) / [`set_domain_name(Option<String>)`](crate::client::fluent_builders::EnableDomainAutoRenew::set_domain_name): <p>The name of the domain that you want to enable automatic renewal for.</p>
/// - On success, responds with [`EnableDomainAutoRenewOutput`](crate::output::EnableDomainAutoRenewOutput)
/// - On failure, responds with [`SdkError<EnableDomainAutoRenewError>`](crate::error::EnableDomainAutoRenewError)
pub fn enable_domain_auto_renew(&self) -> fluent_builders::EnableDomainAutoRenew {
fluent_builders::EnableDomainAutoRenew::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`EnableDomainTransferLock`](crate::client::fluent_builders::EnableDomainTransferLock) operation.
///
/// - The fluent builder is configurable:
/// - [`domain_name(impl Into<String>)`](crate::client::fluent_builders::EnableDomainTransferLock::domain_name) / [`set_domain_name(Option<String>)`](crate::client::fluent_builders::EnableDomainTransferLock::set_domain_name): <p>The name of the domain that you want to set the transfer lock for.</p>
/// - On success, responds with [`EnableDomainTransferLockOutput`](crate::output::EnableDomainTransferLockOutput) with field(s):
/// - [`operation_id(Option<String>)`](crate::output::EnableDomainTransferLockOutput::operation_id): <p>Identifier for tracking the progress of the request. To use this ID to query the operation status, use GetOperationDetail.</p>
/// - On failure, responds with [`SdkError<EnableDomainTransferLockError>`](crate::error::EnableDomainTransferLockError)
pub fn enable_domain_transfer_lock(&self) -> fluent_builders::EnableDomainTransferLock {
fluent_builders::EnableDomainTransferLock::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`GetContactReachabilityStatus`](crate::client::fluent_builders::GetContactReachabilityStatus) operation.
///
/// - The fluent builder is configurable:
/// - [`domain_name(impl Into<String>)`](crate::client::fluent_builders::GetContactReachabilityStatus::domain_name) / [`set_domain_name(Option<String>)`](crate::client::fluent_builders::GetContactReachabilityStatus::set_domain_name): <p>The name of the domain for which you want to know whether the registrant contact has confirmed that the email address is valid.</p>
/// - On success, responds with [`GetContactReachabilityStatusOutput`](crate::output::GetContactReachabilityStatusOutput) with field(s):
/// - [`domain_name(Option<String>)`](crate::output::GetContactReachabilityStatusOutput::domain_name): <p>The domain name for which you requested the reachability status.</p>
/// - [`status(Option<ReachabilityStatus>)`](crate::output::GetContactReachabilityStatusOutput::status): <p>Whether the registrant contact has responded. Values include the following:</p> <dl> <dt> PENDING </dt> <dd> <p>We sent the confirmation email and haven't received a response yet.</p> </dd> <dt> DONE </dt> <dd> <p>We sent the email and got confirmation from the registrant contact.</p> </dd> <dt> EXPIRED </dt> <dd> <p>The time limit expired before the registrant contact responded.</p> </dd> </dl>
/// - On failure, responds with [`SdkError<GetContactReachabilityStatusError>`](crate::error::GetContactReachabilityStatusError)
pub fn get_contact_reachability_status(&self) -> fluent_builders::GetContactReachabilityStatus {
fluent_builders::GetContactReachabilityStatus::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`GetDomainDetail`](crate::client::fluent_builders::GetDomainDetail) operation.
///
/// - The fluent builder is configurable:
/// - [`domain_name(impl Into<String>)`](crate::client::fluent_builders::GetDomainDetail::domain_name) / [`set_domain_name(Option<String>)`](crate::client::fluent_builders::GetDomainDetail::set_domain_name): <p>The name of the domain that you want to get detailed information about.</p>
/// - On success, responds with [`GetDomainDetailOutput`](crate::output::GetDomainDetailOutput) with field(s):
/// - [`domain_name(Option<String>)`](crate::output::GetDomainDetailOutput::domain_name): <p>The name of a domain.</p>
/// - [`nameservers(Option<Vec<Nameserver>>)`](crate::output::GetDomainDetailOutput::nameservers): <p>The name of the domain.</p>
/// - [`auto_renew(Option<bool>)`](crate::output::GetDomainDetailOutput::auto_renew): <p>Specifies whether the domain registration is set to renew automatically.</p>
/// - [`admin_contact(Option<ContactDetail>)`](crate::output::GetDomainDetailOutput::admin_contact): <p>Provides details about the domain administrative contact.</p>
/// - [`registrant_contact(Option<ContactDetail>)`](crate::output::GetDomainDetailOutput::registrant_contact): <p>Provides details about the domain registrant.</p>
/// - [`tech_contact(Option<ContactDetail>)`](crate::output::GetDomainDetailOutput::tech_contact): <p>Provides details about the domain technical contact.</p>
/// - [`admin_privacy(Option<bool>)`](crate::output::GetDomainDetailOutput::admin_privacy): <p>Specifies whether contact information is concealed from WHOIS queries. If the value is <code>true</code>, WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If the value is <code>false</code>, WHOIS queries return the information that you entered for the admin contact.</p>
/// - [`registrant_privacy(Option<bool>)`](crate::output::GetDomainDetailOutput::registrant_privacy): <p>Specifies whether contact information is concealed from WHOIS queries. If the value is <code>true</code>, WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If the value is <code>false</code>, WHOIS queries return the information that you entered for the registrant contact (domain owner).</p>
/// - [`tech_privacy(Option<bool>)`](crate::output::GetDomainDetailOutput::tech_privacy): <p>Specifies whether contact information is concealed from WHOIS queries. If the value is <code>true</code>, WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If the value is <code>false</code>, WHOIS queries return the information that you entered for the technical contact.</p>
/// - [`registrar_name(Option<String>)`](crate::output::GetDomainDetailOutput::registrar_name): <p>Name of the registrar of the domain as identified in the registry. Domains with a .com, .net, or .org TLD are registered by Amazon Registrar. All other domains are registered by our registrar associate, Gandi. The value for domains that are registered by Gandi is <code>"GANDI SAS"</code>. </p>
/// - [`who_is_server(Option<String>)`](crate::output::GetDomainDetailOutput::who_is_server): <p>The fully qualified name of the WHOIS server that can answer the WHOIS query for the domain.</p>
/// - [`registrar_url(Option<String>)`](crate::output::GetDomainDetailOutput::registrar_url): <p>Web address of the registrar.</p>
/// - [`abuse_contact_email(Option<String>)`](crate::output::GetDomainDetailOutput::abuse_contact_email): <p>Email address to contact to report incorrect contact information for a domain, to report that the domain is being used to send spam, to report that someone is cybersquatting on a domain name, or report some other type of abuse.</p>
/// - [`abuse_contact_phone(Option<String>)`](crate::output::GetDomainDetailOutput::abuse_contact_phone): <p>Phone number for reporting abuse.</p>
/// - [`registry_domain_id(Option<String>)`](crate::output::GetDomainDetailOutput::registry_domain_id): <p>Reserved for future use.</p>
/// - [`creation_date(Option<DateTime>)`](crate::output::GetDomainDetailOutput::creation_date): <p>The date when the domain was created as found in the response to a WHOIS query. The date and time is in Unix time format and Coordinated Universal time (UTC).</p>
/// - [`updated_date(Option<DateTime>)`](crate::output::GetDomainDetailOutput::updated_date): <p>The last updated date of the domain as found in the response to a WHOIS query. The date and time is in Unix time format and Coordinated Universal time (UTC).</p>
/// - [`expiration_date(Option<DateTime>)`](crate::output::GetDomainDetailOutput::expiration_date): <p>The date when the registration for the domain is set to expire. The date and time is in Unix time format and Coordinated Universal time (UTC).</p>
/// - [`reseller(Option<String>)`](crate::output::GetDomainDetailOutput::reseller): <p>Reseller of the domain. Domains registered or transferred using Route 53 domains will have <code>"Amazon"</code> as the reseller. </p>
/// - [`dns_sec(Option<String>)`](crate::output::GetDomainDetailOutput::dns_sec): <p>Deprecated.</p>
/// - [`status_list(Option<Vec<String>>)`](crate::output::GetDomainDetailOutput::status_list): <p>An array of domain name status codes, also known as Extensible Provisioning Protocol (EPP) status codes.</p> <p>ICANN, the organization that maintains a central database of domain names, has developed a set of domain name status codes that tell you the status of a variety of operations on a domain name, for example, registering a domain name, transferring a domain name to another registrar, renewing the registration for a domain name, and so on. All registrars use this same set of status codes.</p> <p>For a current list of domain name status codes and an explanation of what each code means, go to the <a href="https://www.icann.org/">ICANN website</a> and search for <code>epp status codes</code>. (Search on the ICANN website; web searches sometimes return an old version of the document.)</p>
/// - On failure, responds with [`SdkError<GetDomainDetailError>`](crate::error::GetDomainDetailError)
pub fn get_domain_detail(&self) -> fluent_builders::GetDomainDetail {
fluent_builders::GetDomainDetail::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`GetDomainSuggestions`](crate::client::fluent_builders::GetDomainSuggestions) operation.
///
/// - The fluent builder is configurable:
/// - [`domain_name(impl Into<String>)`](crate::client::fluent_builders::GetDomainSuggestions::domain_name) / [`set_domain_name(Option<String>)`](crate::client::fluent_builders::GetDomainSuggestions::set_domain_name): <p>A domain name that you want to use as the basis for a list of possible domain names. The top-level domain (TLD), such as .com, must be a TLD that Route 53 supports. For a list of supported TLDs, see <a href="https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/registrar-tld-list.html">Domains that You Can Register with Amazon Route 53</a> in the <i>Amazon Route 53 Developer Guide</i>.</p> <p>The domain name can contain only the following characters:</p> <ul> <li> <p>Letters a through z. Domain names are not case sensitive.</p> </li> <li> <p>Numbers 0 through 9.</p> </li> <li> <p>Hyphen (-). You can't specify a hyphen at the beginning or end of a label. </p> </li> <li> <p>Period (.) to separate the labels in the name, such as the <code>.</code> in <code>example.com</code>.</p> </li> </ul> <p>Internationalized domain names are not supported for some top-level domains. To determine whether the TLD that you want to use supports internationalized domain names, see <a href="https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/registrar-tld-list.html">Domains that You Can Register with Amazon Route 53</a>. </p>
/// - [`suggestion_count(i32)`](crate::client::fluent_builders::GetDomainSuggestions::suggestion_count) / [`set_suggestion_count(i32)`](crate::client::fluent_builders::GetDomainSuggestions::set_suggestion_count): <p>The number of suggested domain names that you want Route 53 to return. Specify a value between 1 and 50.</p>
/// - [`only_available(bool)`](crate::client::fluent_builders::GetDomainSuggestions::only_available) / [`set_only_available(Option<bool>)`](crate::client::fluent_builders::GetDomainSuggestions::set_only_available): <p>If <code>OnlyAvailable</code> is <code>true</code>, Route 53 returns only domain names that are available. If <code>OnlyAvailable</code> is <code>false</code>, Route 53 returns domain names without checking whether they're available to be registered. To determine whether the domain is available, you can call <code>checkDomainAvailability</code> for each suggestion.</p>
/// - On success, responds with [`GetDomainSuggestionsOutput`](crate::output::GetDomainSuggestionsOutput) with field(s):
/// - [`suggestions_list(Option<Vec<DomainSuggestion>>)`](crate::output::GetDomainSuggestionsOutput::suggestions_list): <p>A list of possible domain names. If you specified <code>true</code> for <code>OnlyAvailable</code> in the request, the list contains only domains that are available for registration.</p>
/// - On failure, responds with [`SdkError<GetDomainSuggestionsError>`](crate::error::GetDomainSuggestionsError)
pub fn get_domain_suggestions(&self) -> fluent_builders::GetDomainSuggestions {
fluent_builders::GetDomainSuggestions::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`GetOperationDetail`](crate::client::fluent_builders::GetOperationDetail) operation.
///
/// - The fluent builder is configurable:
/// - [`operation_id(impl Into<String>)`](crate::client::fluent_builders::GetOperationDetail::operation_id) / [`set_operation_id(Option<String>)`](crate::client::fluent_builders::GetOperationDetail::set_operation_id): <p>The identifier for the operation for which you want to get the status. Route 53 returned the identifier in the response to the original request.</p>
/// - On success, responds with [`GetOperationDetailOutput`](crate::output::GetOperationDetailOutput) with field(s):
/// - [`operation_id(Option<String>)`](crate::output::GetOperationDetailOutput::operation_id): <p>The identifier for the operation.</p>
/// - [`status(Option<OperationStatus>)`](crate::output::GetOperationDetailOutput::status): <p>The current status of the requested operation in the system.</p>
/// - [`message(Option<String>)`](crate::output::GetOperationDetailOutput::message): <p>Detailed information on the status including possible errors.</p>
/// - [`domain_name(Option<String>)`](crate::output::GetOperationDetailOutput::domain_name): <p>The name of a domain.</p>
/// - [`r#type(Option<OperationType>)`](crate::output::GetOperationDetailOutput::type): <p>The type of operation that was requested.</p>
/// - [`submitted_date(Option<DateTime>)`](crate::output::GetOperationDetailOutput::submitted_date): <p>The date when the request was submitted.</p>
/// - On failure, responds with [`SdkError<GetOperationDetailError>`](crate::error::GetOperationDetailError)
pub fn get_operation_detail(&self) -> fluent_builders::GetOperationDetail {
fluent_builders::GetOperationDetail::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`ListDomains`](crate::client::fluent_builders::ListDomains) operation.
/// This operation supports pagination; See [`into_paginator()`](crate::client::fluent_builders::ListDomains::into_paginator).
///
/// - The fluent builder is configurable:
/// - [`filter_conditions(Vec<FilterCondition>)`](crate::client::fluent_builders::ListDomains::filter_conditions) / [`set_filter_conditions(Option<Vec<FilterCondition>>)`](crate::client::fluent_builders::ListDomains::set_filter_conditions): <p>A complex type that contains information about the filters applied during the <code>ListDomains</code> request. The filter conditions can include domain name and domain expiration.</p>
/// - [`sort_condition(SortCondition)`](crate::client::fluent_builders::ListDomains::sort_condition) / [`set_sort_condition(Option<SortCondition>)`](crate::client::fluent_builders::ListDomains::set_sort_condition): <p>A complex type that contains information about the requested ordering of domains in the returned list.</p>
/// - [`marker(impl Into<String>)`](crate::client::fluent_builders::ListDomains::marker) / [`set_marker(Option<String>)`](crate::client::fluent_builders::ListDomains::set_marker): <p>For an initial request for a list of domains, omit this element. If the number of domains that are associated with the current Amazon Web Services account is greater than the value that you specified for <code>MaxItems</code>, you can use <code>Marker</code> to return additional domains. Get the value of <code>NextPageMarker</code> from the previous response, and submit another request that includes the value of <code>NextPageMarker</code> in the <code>Marker</code> element.</p> <p>Constraints: The marker must match the value specified in the previous request.</p>
/// - [`max_items(i32)`](crate::client::fluent_builders::ListDomains::max_items) / [`set_max_items(Option<i32>)`](crate::client::fluent_builders::ListDomains::set_max_items): <p>Number of domains to be returned.</p> <p>Default: 20</p>
/// - On success, responds with [`ListDomainsOutput`](crate::output::ListDomainsOutput) with field(s):
/// - [`domains(Option<Vec<DomainSummary>>)`](crate::output::ListDomainsOutput::domains): <p>A list of domains.</p>
/// - [`next_page_marker(Option<String>)`](crate::output::ListDomainsOutput::next_page_marker): <p>If there are more domains than you specified for <code>MaxItems</code> in the request, submit another request and include the value of <code>NextPageMarker</code> in the value of <code>Marker</code>.</p>
/// - On failure, responds with [`SdkError<ListDomainsError>`](crate::error::ListDomainsError)
pub fn list_domains(&self) -> fluent_builders::ListDomains {
fluent_builders::ListDomains::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`ListOperations`](crate::client::fluent_builders::ListOperations) operation.
/// This operation supports pagination; See [`into_paginator()`](crate::client::fluent_builders::ListOperations::into_paginator).
///
/// - The fluent builder is configurable:
/// - [`submitted_since(DateTime)`](crate::client::fluent_builders::ListOperations::submitted_since) / [`set_submitted_since(Option<DateTime>)`](crate::client::fluent_builders::ListOperations::set_submitted_since): <p>An optional parameter that lets you get information about all the operations that you submitted after a specified date and time. Specify the date and time in Unix time format and Coordinated Universal time (UTC).</p>
/// - [`marker(impl Into<String>)`](crate::client::fluent_builders::ListOperations::marker) / [`set_marker(Option<String>)`](crate::client::fluent_builders::ListOperations::set_marker): <p>For an initial request for a list of operations, omit this element. If the number of operations that are not yet complete is greater than the value that you specified for <code>MaxItems</code>, you can use <code>Marker</code> to return additional operations. Get the value of <code>NextPageMarker</code> from the previous response, and submit another request that includes the value of <code>NextPageMarker</code> in the <code>Marker</code> element.</p>
/// - [`max_items(i32)`](crate::client::fluent_builders::ListOperations::max_items) / [`set_max_items(Option<i32>)`](crate::client::fluent_builders::ListOperations::set_max_items): <p>Number of domains to be returned.</p> <p>Default: 20</p>
/// - On success, responds with [`ListOperationsOutput`](crate::output::ListOperationsOutput) with field(s):
/// - [`operations(Option<Vec<OperationSummary>>)`](crate::output::ListOperationsOutput::operations): <p>Lists summaries of the operations.</p>
/// - [`next_page_marker(Option<String>)`](crate::output::ListOperationsOutput::next_page_marker): <p>If there are more operations than you specified for <code>MaxItems</code> in the request, submit another request and include the value of <code>NextPageMarker</code> in the value of <code>Marker</code>.</p>
/// - On failure, responds with [`SdkError<ListOperationsError>`](crate::error::ListOperationsError)
pub fn list_operations(&self) -> fluent_builders::ListOperations {
fluent_builders::ListOperations::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`ListPrices`](crate::client::fluent_builders::ListPrices) operation.
/// This operation supports pagination; See [`into_paginator()`](crate::client::fluent_builders::ListPrices::into_paginator).
///
/// - The fluent builder is configurable:
/// - [`tld(impl Into<String>)`](crate::client::fluent_builders::ListPrices::tld) / [`set_tld(Option<String>)`](crate::client::fluent_builders::ListPrices::set_tld): <p>The TLD for which you want to receive the pricing information. For example. <code>.net</code>.</p> <p>If a <code>Tld</code> value is not provided, a list of prices for all TLDs supported by Route 53 is returned.</p>
/// - [`marker(impl Into<String>)`](crate::client::fluent_builders::ListPrices::marker) / [`set_marker(Option<String>)`](crate::client::fluent_builders::ListPrices::set_marker): <p>For an initial request for a list of prices, omit this element. If the number of prices that are not yet complete is greater than the value that you specified for <code>MaxItems</code>, you can use <code>Marker</code> to return additional prices. Get the value of <code>NextPageMarker</code> from the previous response, and submit another request that includes the value of <code>NextPageMarker</code> in the <code>Marker</code> element. </p> <p>Used only for all TLDs. If you specify a TLD, don't specify a <code>Marker</code>.</p>
/// - [`max_items(i32)`](crate::client::fluent_builders::ListPrices::max_items) / [`set_max_items(Option<i32>)`](crate::client::fluent_builders::ListPrices::set_max_items): <p>Number of <code>Prices</code> to be returned.</p> <p>Used only for all TLDs. If you specify a TLD, don't specify a <code>MaxItems</code>.</p>
/// - On success, responds with [`ListPricesOutput`](crate::output::ListPricesOutput) with field(s):
/// - [`prices(Option<Vec<DomainPrice>>)`](crate::output::ListPricesOutput::prices): <p>A complex type that includes all the pricing information. If you specify a TLD, this array contains only the pricing for that TLD.</p>
/// - [`next_page_marker(Option<String>)`](crate::output::ListPricesOutput::next_page_marker): <p>If there are more prices than you specified for <code>MaxItems</code> in the request, submit another request and include the value of <code>NextPageMarker</code> in the value of <code>Marker</code>. </p> <p>Used only for all TLDs. If you specify a TLD, don't specify a <code>NextPageMarker</code>.</p>
/// - On failure, responds with [`SdkError<ListPricesError>`](crate::error::ListPricesError)
pub fn list_prices(&self) -> fluent_builders::ListPrices {
fluent_builders::ListPrices::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`ListTagsForDomain`](crate::client::fluent_builders::ListTagsForDomain) operation.
///
/// - The fluent builder is configurable:
/// - [`domain_name(impl Into<String>)`](crate::client::fluent_builders::ListTagsForDomain::domain_name) / [`set_domain_name(Option<String>)`](crate::client::fluent_builders::ListTagsForDomain::set_domain_name): <p>The domain for which you want to get a list of tags.</p>
/// - On success, responds with [`ListTagsForDomainOutput`](crate::output::ListTagsForDomainOutput) with field(s):
/// - [`tag_list(Option<Vec<Tag>>)`](crate::output::ListTagsForDomainOutput::tag_list): <p>A list of the tags that are associated with the specified domain.</p>
/// - On failure, responds with [`SdkError<ListTagsForDomainError>`](crate::error::ListTagsForDomainError)
pub fn list_tags_for_domain(&self) -> fluent_builders::ListTagsForDomain {
fluent_builders::ListTagsForDomain::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`RegisterDomain`](crate::client::fluent_builders::RegisterDomain) operation.
///
/// - The fluent builder is configurable:
/// - [`domain_name(impl Into<String>)`](crate::client::fluent_builders::RegisterDomain::domain_name) / [`set_domain_name(Option<String>)`](crate::client::fluent_builders::RegisterDomain::set_domain_name): <p>The domain name that you want to register. The top-level domain (TLD), such as .com, must be a TLD that Route 53 supports. For a list of supported TLDs, see <a href="https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/registrar-tld-list.html">Domains that You Can Register with Amazon Route 53</a> in the <i>Amazon Route 53 Developer Guide</i>.</p> <p>The domain name can contain only the following characters:</p> <ul> <li> <p>Letters a through z. Domain names are not case sensitive.</p> </li> <li> <p>Numbers 0 through 9.</p> </li> <li> <p>Hyphen (-). You can't specify a hyphen at the beginning or end of a label. </p> </li> <li> <p>Period (.) to separate the labels in the name, such as the <code>.</code> in <code>example.com</code>.</p> </li> </ul> <p>Internationalized domain names are not supported for some top-level domains. To determine whether the TLD that you want to use supports internationalized domain names, see <a href="https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/registrar-tld-list.html">Domains that You Can Register with Amazon Route 53</a>. For more information, see <a href="https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/DomainNameFormat.html#domain-name-format-idns">Formatting Internationalized Domain Names</a>. </p>
/// - [`idn_lang_code(impl Into<String>)`](crate::client::fluent_builders::RegisterDomain::idn_lang_code) / [`set_idn_lang_code(Option<String>)`](crate::client::fluent_builders::RegisterDomain::set_idn_lang_code): <p>Reserved for future use.</p>
/// - [`duration_in_years(i32)`](crate::client::fluent_builders::RegisterDomain::duration_in_years) / [`set_duration_in_years(Option<i32>)`](crate::client::fluent_builders::RegisterDomain::set_duration_in_years): <p>The number of years that you want to register the domain for. Domains are registered for a minimum of one year. The maximum period depends on the top-level domain. For the range of valid values for your domain, see <a href="https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/registrar-tld-list.html">Domains that You Can Register with Amazon Route 53</a> in the <i>Amazon Route 53 Developer Guide</i>.</p> <p>Default: 1</p>
/// - [`auto_renew(bool)`](crate::client::fluent_builders::RegisterDomain::auto_renew) / [`set_auto_renew(Option<bool>)`](crate::client::fluent_builders::RegisterDomain::set_auto_renew): <p>Indicates whether the domain will be automatically renewed (<code>true</code>) or not (<code>false</code>). Autorenewal only takes effect after the account is charged.</p> <p>Default: <code>true</code> </p>
/// - [`admin_contact(ContactDetail)`](crate::client::fluent_builders::RegisterDomain::admin_contact) / [`set_admin_contact(Option<ContactDetail>)`](crate::client::fluent_builders::RegisterDomain::set_admin_contact): <p>Provides detailed contact information. For information about the values that you specify for each element, see <a href="https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_ContactDetail.html">ContactDetail</a>.</p>
/// - [`registrant_contact(ContactDetail)`](crate::client::fluent_builders::RegisterDomain::registrant_contact) / [`set_registrant_contact(Option<ContactDetail>)`](crate::client::fluent_builders::RegisterDomain::set_registrant_contact): <p>Provides detailed contact information. For information about the values that you specify for each element, see <a href="https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_ContactDetail.html">ContactDetail</a>.</p>
/// - [`tech_contact(ContactDetail)`](crate::client::fluent_builders::RegisterDomain::tech_contact) / [`set_tech_contact(Option<ContactDetail>)`](crate::client::fluent_builders::RegisterDomain::set_tech_contact): <p>Provides detailed contact information. For information about the values that you specify for each element, see <a href="https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_ContactDetail.html">ContactDetail</a>.</p>
/// - [`privacy_protect_admin_contact(bool)`](crate::client::fluent_builders::RegisterDomain::privacy_protect_admin_contact) / [`set_privacy_protect_admin_contact(Option<bool>)`](crate::client::fluent_builders::RegisterDomain::set_privacy_protect_admin_contact): <p>Whether you want to conceal contact information from WHOIS queries. If you specify <code>true</code>, WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If you specify <code>false</code>, WHOIS queries return the information that you entered for the admin contact.</p> <note> <p>You must specify the same privacy setting for the administrative, registrant, and technical contacts.</p> </note> <p>Default: <code>true</code> </p>
/// - [`privacy_protect_registrant_contact(bool)`](crate::client::fluent_builders::RegisterDomain::privacy_protect_registrant_contact) / [`set_privacy_protect_registrant_contact(Option<bool>)`](crate::client::fluent_builders::RegisterDomain::set_privacy_protect_registrant_contact): <p>Whether you want to conceal contact information from WHOIS queries. If you specify <code>true</code>, WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If you specify <code>false</code>, WHOIS queries return the information that you entered for the registrant contact (the domain owner).</p> <note> <p>You must specify the same privacy setting for the administrative, registrant, and technical contacts.</p> </note> <p>Default: <code>true</code> </p>
/// - [`privacy_protect_tech_contact(bool)`](crate::client::fluent_builders::RegisterDomain::privacy_protect_tech_contact) / [`set_privacy_protect_tech_contact(Option<bool>)`](crate::client::fluent_builders::RegisterDomain::set_privacy_protect_tech_contact): <p>Whether you want to conceal contact information from WHOIS queries. If you specify <code>true</code>, WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If you specify <code>false</code>, WHOIS queries return the information that you entered for the technical contact.</p> <note> <p>You must specify the same privacy setting for the administrative, registrant, and technical contacts.</p> </note> <p>Default: <code>true</code> </p>
/// - On success, responds with [`RegisterDomainOutput`](crate::output::RegisterDomainOutput) with field(s):
/// - [`operation_id(Option<String>)`](crate::output::RegisterDomainOutput::operation_id): <p>Identifier for tracking the progress of the request. To query the operation status, use <a href="https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_GetOperationDetail.html">GetOperationDetail</a>.</p>
/// - On failure, responds with [`SdkError<RegisterDomainError>`](crate::error::RegisterDomainError)
pub fn register_domain(&self) -> fluent_builders::RegisterDomain {
fluent_builders::RegisterDomain::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`RejectDomainTransferFromAnotherAwsAccount`](crate::client::fluent_builders::RejectDomainTransferFromAnotherAwsAccount) operation.
///
/// - The fluent builder is configurable:
/// - [`domain_name(impl Into<String>)`](crate::client::fluent_builders::RejectDomainTransferFromAnotherAwsAccount::domain_name) / [`set_domain_name(Option<String>)`](crate::client::fluent_builders::RejectDomainTransferFromAnotherAwsAccount::set_domain_name): <p>The name of the domain that was specified when another Amazon Web Services account submitted a <a href="https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_TransferDomainToAnotherAwsAccount.html">TransferDomainToAnotherAwsAccount</a> request. </p>
/// - On success, responds with [`RejectDomainTransferFromAnotherAwsAccountOutput`](crate::output::RejectDomainTransferFromAnotherAwsAccountOutput) with field(s):
/// - [`operation_id(Option<String>)`](crate::output::RejectDomainTransferFromAnotherAwsAccountOutput::operation_id): <p>The identifier that <code>TransferDomainToAnotherAwsAccount</code> returned to track the progress of the request. Because the transfer request was rejected, the value is no longer valid, and you can't use <code>GetOperationDetail</code> to query the operation status.</p>
/// - On failure, responds with [`SdkError<RejectDomainTransferFromAnotherAwsAccountError>`](crate::error::RejectDomainTransferFromAnotherAwsAccountError)
pub fn reject_domain_transfer_from_another_aws_account(
&self,
) -> fluent_builders::RejectDomainTransferFromAnotherAwsAccount {
fluent_builders::RejectDomainTransferFromAnotherAwsAccount::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`RenewDomain`](crate::client::fluent_builders::RenewDomain) operation.
///
/// - The fluent builder is configurable:
/// - [`domain_name(impl Into<String>)`](crate::client::fluent_builders::RenewDomain::domain_name) / [`set_domain_name(Option<String>)`](crate::client::fluent_builders::RenewDomain::set_domain_name): <p>The name of the domain that you want to renew.</p>
/// - [`duration_in_years(i32)`](crate::client::fluent_builders::RenewDomain::duration_in_years) / [`set_duration_in_years(Option<i32>)`](crate::client::fluent_builders::RenewDomain::set_duration_in_years): <p>The number of years that you want to renew the domain for. The maximum number of years depends on the top-level domain. For the range of valid values for your domain, see <a href="https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/registrar-tld-list.html">Domains that You Can Register with Amazon Route 53</a> in the <i>Amazon Route 53 Developer Guide</i>.</p> <p>Default: 1</p>
/// - [`current_expiry_year(i32)`](crate::client::fluent_builders::RenewDomain::current_expiry_year) / [`set_current_expiry_year(i32)`](crate::client::fluent_builders::RenewDomain::set_current_expiry_year): <p>The year when the registration for the domain is set to expire. This value must match the current expiration date for the domain.</p>
/// - On success, responds with [`RenewDomainOutput`](crate::output::RenewDomainOutput) with field(s):
/// - [`operation_id(Option<String>)`](crate::output::RenewDomainOutput::operation_id): <p>Identifier for tracking the progress of the request. To query the operation status, use <a href="https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_GetOperationDetail.html">GetOperationDetail</a>.</p>
/// - On failure, responds with [`SdkError<RenewDomainError>`](crate::error::RenewDomainError)
pub fn renew_domain(&self) -> fluent_builders::RenewDomain {
fluent_builders::RenewDomain::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`ResendContactReachabilityEmail`](crate::client::fluent_builders::ResendContactReachabilityEmail) operation.
///
/// - The fluent builder is configurable:
/// - [`domain_name(impl Into<String>)`](crate::client::fluent_builders::ResendContactReachabilityEmail::domain_name) / [`set_domain_name(Option<String>)`](crate::client::fluent_builders::ResendContactReachabilityEmail::set_domain_name): <p>The name of the domain for which you want Route 53 to resend a confirmation email to the registrant contact.</p>
/// - On success, responds with [`ResendContactReachabilityEmailOutput`](crate::output::ResendContactReachabilityEmailOutput) with field(s):
/// - [`domain_name(Option<String>)`](crate::output::ResendContactReachabilityEmailOutput::domain_name): <p>The domain name for which you requested a confirmation email.</p>
/// - [`email_address(Option<String>)`](crate::output::ResendContactReachabilityEmailOutput::email_address): <p>The email address for the registrant contact at the time that we sent the verification email.</p>
/// - [`is_already_verified(Option<bool>)`](crate::output::ResendContactReachabilityEmailOutput::is_already_verified): <p> <code>True</code> if the email address for the registrant contact has already been verified, and <code>false</code> otherwise. If the email address has already been verified, we don't send another confirmation email.</p>
/// - On failure, responds with [`SdkError<ResendContactReachabilityEmailError>`](crate::error::ResendContactReachabilityEmailError)
pub fn resend_contact_reachability_email(
&self,
) -> fluent_builders::ResendContactReachabilityEmail {
fluent_builders::ResendContactReachabilityEmail::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`RetrieveDomainAuthCode`](crate::client::fluent_builders::RetrieveDomainAuthCode) operation.
///
/// - The fluent builder is configurable:
/// - [`domain_name(impl Into<String>)`](crate::client::fluent_builders::RetrieveDomainAuthCode::domain_name) / [`set_domain_name(Option<String>)`](crate::client::fluent_builders::RetrieveDomainAuthCode::set_domain_name): <p>The name of the domain that you want to get an authorization code for.</p>
/// - On success, responds with [`RetrieveDomainAuthCodeOutput`](crate::output::RetrieveDomainAuthCodeOutput) with field(s):
/// - [`auth_code(Option<String>)`](crate::output::RetrieveDomainAuthCodeOutput::auth_code): <p>The authorization code for the domain.</p>
/// - On failure, responds with [`SdkError<RetrieveDomainAuthCodeError>`](crate::error::RetrieveDomainAuthCodeError)
pub fn retrieve_domain_auth_code(&self) -> fluent_builders::RetrieveDomainAuthCode {
fluent_builders::RetrieveDomainAuthCode::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`TransferDomain`](crate::client::fluent_builders::TransferDomain) operation.
///
/// - The fluent builder is configurable:
/// - [`domain_name(impl Into<String>)`](crate::client::fluent_builders::TransferDomain::domain_name) / [`set_domain_name(Option<String>)`](crate::client::fluent_builders::TransferDomain::set_domain_name): <p>The name of the domain that you want to transfer to Route 53. The top-level domain (TLD), such as .com, must be a TLD that Route 53 supports. For a list of supported TLDs, see <a href="https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/registrar-tld-list.html">Domains that You Can Register with Amazon Route 53</a> in the <i>Amazon Route 53 Developer Guide</i>.</p> <p>The domain name can contain only the following characters:</p> <ul> <li> <p>Letters a through z. Domain names are not case sensitive.</p> </li> <li> <p>Numbers 0 through 9.</p> </li> <li> <p>Hyphen (-). You can't specify a hyphen at the beginning or end of a label. </p> </li> <li> <p>Period (.) to separate the labels in the name, such as the <code>.</code> in <code>example.com</code>.</p> </li> </ul>
/// - [`idn_lang_code(impl Into<String>)`](crate::client::fluent_builders::TransferDomain::idn_lang_code) / [`set_idn_lang_code(Option<String>)`](crate::client::fluent_builders::TransferDomain::set_idn_lang_code): <p>Reserved for future use.</p>
/// - [`duration_in_years(i32)`](crate::client::fluent_builders::TransferDomain::duration_in_years) / [`set_duration_in_years(Option<i32>)`](crate::client::fluent_builders::TransferDomain::set_duration_in_years): <p>The number of years that you want to register the domain for. Domains are registered for a minimum of one year. The maximum period depends on the top-level domain.</p> <p>Default: 1</p>
/// - [`nameservers(Vec<Nameserver>)`](crate::client::fluent_builders::TransferDomain::nameservers) / [`set_nameservers(Option<Vec<Nameserver>>)`](crate::client::fluent_builders::TransferDomain::set_nameservers): <p>Contains details for the host and glue IP addresses.</p>
/// - [`auth_code(impl Into<String>)`](crate::client::fluent_builders::TransferDomain::auth_code) / [`set_auth_code(Option<String>)`](crate::client::fluent_builders::TransferDomain::set_auth_code): <p>The authorization code for the domain. You get this value from the current registrar.</p>
/// - [`auto_renew(bool)`](crate::client::fluent_builders::TransferDomain::auto_renew) / [`set_auto_renew(Option<bool>)`](crate::client::fluent_builders::TransferDomain::set_auto_renew): <p>Indicates whether the domain will be automatically renewed (true) or not (false). Autorenewal only takes effect after the account is charged.</p> <p>Default: true</p>
/// - [`admin_contact(ContactDetail)`](crate::client::fluent_builders::TransferDomain::admin_contact) / [`set_admin_contact(Option<ContactDetail>)`](crate::client::fluent_builders::TransferDomain::set_admin_contact): <p>Provides detailed contact information.</p>
/// - [`registrant_contact(ContactDetail)`](crate::client::fluent_builders::TransferDomain::registrant_contact) / [`set_registrant_contact(Option<ContactDetail>)`](crate::client::fluent_builders::TransferDomain::set_registrant_contact): <p>Provides detailed contact information.</p>
/// - [`tech_contact(ContactDetail)`](crate::client::fluent_builders::TransferDomain::tech_contact) / [`set_tech_contact(Option<ContactDetail>)`](crate::client::fluent_builders::TransferDomain::set_tech_contact): <p>Provides detailed contact information.</p>
/// - [`privacy_protect_admin_contact(bool)`](crate::client::fluent_builders::TransferDomain::privacy_protect_admin_contact) / [`set_privacy_protect_admin_contact(Option<bool>)`](crate::client::fluent_builders::TransferDomain::set_privacy_protect_admin_contact): <p>Whether you want to conceal contact information from WHOIS queries. If you specify <code>true</code>, WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If you specify <code>false</code>, WHOIS queries return the information that you entered for the admin contact.</p> <note> <p>You must specify the same privacy setting for the administrative, registrant, and technical contacts.</p> </note> <p>Default: <code>true</code> </p>
/// - [`privacy_protect_registrant_contact(bool)`](crate::client::fluent_builders::TransferDomain::privacy_protect_registrant_contact) / [`set_privacy_protect_registrant_contact(Option<bool>)`](crate::client::fluent_builders::TransferDomain::set_privacy_protect_registrant_contact): <p>Whether you want to conceal contact information from WHOIS queries. If you specify <code>true</code>, WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If you specify <code>false</code>, WHOIS queries return the information that you entered for the registrant contact (domain owner).</p> <note> <p>You must specify the same privacy setting for the administrative, registrant, and technical contacts.</p> </note> <p>Default: <code>true</code> </p>
/// - [`privacy_protect_tech_contact(bool)`](crate::client::fluent_builders::TransferDomain::privacy_protect_tech_contact) / [`set_privacy_protect_tech_contact(Option<bool>)`](crate::client::fluent_builders::TransferDomain::set_privacy_protect_tech_contact): <p>Whether you want to conceal contact information from WHOIS queries. If you specify <code>true</code>, WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If you specify <code>false</code>, WHOIS queries return the information that you entered for the technical contact.</p> <note> <p>You must specify the same privacy setting for the administrative, registrant, and technical contacts.</p> </note> <p>Default: <code>true</code> </p>
/// - On success, responds with [`TransferDomainOutput`](crate::output::TransferDomainOutput) with field(s):
/// - [`operation_id(Option<String>)`](crate::output::TransferDomainOutput::operation_id): <p>Identifier for tracking the progress of the request. To query the operation status, use <a href="https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_GetOperationDetail.html">GetOperationDetail</a>.</p>
/// - On failure, responds with [`SdkError<TransferDomainError>`](crate::error::TransferDomainError)
pub fn transfer_domain(&self) -> fluent_builders::TransferDomain {
fluent_builders::TransferDomain::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`TransferDomainToAnotherAwsAccount`](crate::client::fluent_builders::TransferDomainToAnotherAwsAccount) operation.
///
/// - The fluent builder is configurable:
/// - [`domain_name(impl Into<String>)`](crate::client::fluent_builders::TransferDomainToAnotherAwsAccount::domain_name) / [`set_domain_name(Option<String>)`](crate::client::fluent_builders::TransferDomainToAnotherAwsAccount::set_domain_name): <p>The name of the domain that you want to transfer from the current Amazon Web Services account to another account.</p>
/// - [`account_id(impl Into<String>)`](crate::client::fluent_builders::TransferDomainToAnotherAwsAccount::account_id) / [`set_account_id(Option<String>)`](crate::client::fluent_builders::TransferDomainToAnotherAwsAccount::set_account_id): <p>The account ID of the Amazon Web Services account that you want to transfer the domain to, for example, <code>111122223333</code>.</p>
/// - On success, responds with [`TransferDomainToAnotherAwsAccountOutput`](crate::output::TransferDomainToAnotherAwsAccountOutput) with field(s):
/// - [`operation_id(Option<String>)`](crate::output::TransferDomainToAnotherAwsAccountOutput::operation_id): <p>Identifier for tracking the progress of the request. To query the operation status, use <a href="https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_GetOperationDetail.html">GetOperationDetail</a>.</p>
/// - [`password(Option<String>)`](crate::output::TransferDomainToAnotherAwsAccountOutput::password): <p>To finish transferring a domain to another Amazon Web Services account, the account that the domain is being transferred to must submit an <a href="https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_AcceptDomainTransferFromAnotherAwsAccount.html">AcceptDomainTransferFromAnotherAwsAccount</a> request. The request must include the value of the <code>Password</code> element that was returned in the <code>TransferDomainToAnotherAwsAccount</code> response.</p>
/// - On failure, responds with [`SdkError<TransferDomainToAnotherAwsAccountError>`](crate::error::TransferDomainToAnotherAwsAccountError)
pub fn transfer_domain_to_another_aws_account(
&self,
) -> fluent_builders::TransferDomainToAnotherAwsAccount {
fluent_builders::TransferDomainToAnotherAwsAccount::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`UpdateDomainContact`](crate::client::fluent_builders::UpdateDomainContact) operation.
///
/// - The fluent builder is configurable:
/// - [`domain_name(impl Into<String>)`](crate::client::fluent_builders::UpdateDomainContact::domain_name) / [`set_domain_name(Option<String>)`](crate::client::fluent_builders::UpdateDomainContact::set_domain_name): <p>The name of the domain that you want to update contact information for.</p>
/// - [`admin_contact(ContactDetail)`](crate::client::fluent_builders::UpdateDomainContact::admin_contact) / [`set_admin_contact(Option<ContactDetail>)`](crate::client::fluent_builders::UpdateDomainContact::set_admin_contact): <p>Provides detailed contact information.</p>
/// - [`registrant_contact(ContactDetail)`](crate::client::fluent_builders::UpdateDomainContact::registrant_contact) / [`set_registrant_contact(Option<ContactDetail>)`](crate::client::fluent_builders::UpdateDomainContact::set_registrant_contact): <p>Provides detailed contact information.</p>
/// - [`tech_contact(ContactDetail)`](crate::client::fluent_builders::UpdateDomainContact::tech_contact) / [`set_tech_contact(Option<ContactDetail>)`](crate::client::fluent_builders::UpdateDomainContact::set_tech_contact): <p>Provides detailed contact information.</p>
/// - On success, responds with [`UpdateDomainContactOutput`](crate::output::UpdateDomainContactOutput) with field(s):
/// - [`operation_id(Option<String>)`](crate::output::UpdateDomainContactOutput::operation_id): <p>Identifier for tracking the progress of the request. To query the operation status, use <a href="https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_GetOperationDetail.html">GetOperationDetail</a>.</p>
/// - On failure, responds with [`SdkError<UpdateDomainContactError>`](crate::error::UpdateDomainContactError)
pub fn update_domain_contact(&self) -> fluent_builders::UpdateDomainContact {
fluent_builders::UpdateDomainContact::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`UpdateDomainContactPrivacy`](crate::client::fluent_builders::UpdateDomainContactPrivacy) operation.
///
/// - The fluent builder is configurable:
/// - [`domain_name(impl Into<String>)`](crate::client::fluent_builders::UpdateDomainContactPrivacy::domain_name) / [`set_domain_name(Option<String>)`](crate::client::fluent_builders::UpdateDomainContactPrivacy::set_domain_name): <p>The name of the domain that you want to update the privacy setting for.</p>
/// - [`admin_privacy(bool)`](crate::client::fluent_builders::UpdateDomainContactPrivacy::admin_privacy) / [`set_admin_privacy(Option<bool>)`](crate::client::fluent_builders::UpdateDomainContactPrivacy::set_admin_privacy): <p>Whether you want to conceal contact information from WHOIS queries. If you specify <code>true</code>, WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If you specify <code>false</code>, WHOIS queries return the information that you entered for the admin contact.</p> <note> <p>You must specify the same privacy setting for the administrative, registrant, and technical contacts.</p> </note>
/// - [`registrant_privacy(bool)`](crate::client::fluent_builders::UpdateDomainContactPrivacy::registrant_privacy) / [`set_registrant_privacy(Option<bool>)`](crate::client::fluent_builders::UpdateDomainContactPrivacy::set_registrant_privacy): <p>Whether you want to conceal contact information from WHOIS queries. If you specify <code>true</code>, WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If you specify <code>false</code>, WHOIS queries return the information that you entered for the registrant contact (domain owner).</p> <note> <p>You must specify the same privacy setting for the administrative, registrant, and technical contacts.</p> </note>
/// - [`tech_privacy(bool)`](crate::client::fluent_builders::UpdateDomainContactPrivacy::tech_privacy) / [`set_tech_privacy(Option<bool>)`](crate::client::fluent_builders::UpdateDomainContactPrivacy::set_tech_privacy): <p>Whether you want to conceal contact information from WHOIS queries. If you specify <code>true</code>, WHOIS ("who is") queries return contact information either for Amazon Registrar (for .com, .net, and .org domains) or for our registrar associate, Gandi (for all other TLDs). If you specify <code>false</code>, WHOIS queries return the information that you entered for the technical contact.</p> <note> <p>You must specify the same privacy setting for the administrative, registrant, and technical contacts.</p> </note>
/// - On success, responds with [`UpdateDomainContactPrivacyOutput`](crate::output::UpdateDomainContactPrivacyOutput) with field(s):
/// - [`operation_id(Option<String>)`](crate::output::UpdateDomainContactPrivacyOutput::operation_id): <p>Identifier for tracking the progress of the request. To use this ID to query the operation status, use GetOperationDetail.</p>
/// - On failure, responds with [`SdkError<UpdateDomainContactPrivacyError>`](crate::error::UpdateDomainContactPrivacyError)
pub fn update_domain_contact_privacy(&self) -> fluent_builders::UpdateDomainContactPrivacy {
fluent_builders::UpdateDomainContactPrivacy::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`UpdateDomainNameservers`](crate::client::fluent_builders::UpdateDomainNameservers) operation.
///
/// - The fluent builder is configurable:
/// - [`domain_name(impl Into<String>)`](crate::client::fluent_builders::UpdateDomainNameservers::domain_name) / [`set_domain_name(Option<String>)`](crate::client::fluent_builders::UpdateDomainNameservers::set_domain_name): <p>The name of the domain that you want to change name servers for.</p>
/// - [`fi_auth_key(impl Into<String>)`](crate::client::fluent_builders::UpdateDomainNameservers::fi_auth_key) / [`set_fi_auth_key(Option<String>)`](crate::client::fluent_builders::UpdateDomainNameservers::set_fi_auth_key): <p>The authorization key for .fi domains</p>
/// - [`nameservers(Vec<Nameserver>)`](crate::client::fluent_builders::UpdateDomainNameservers::nameservers) / [`set_nameservers(Option<Vec<Nameserver>>)`](crate::client::fluent_builders::UpdateDomainNameservers::set_nameservers): <p>A list of new name servers for the domain.</p>
/// - On success, responds with [`UpdateDomainNameserversOutput`](crate::output::UpdateDomainNameserversOutput) with field(s):
/// - [`operation_id(Option<String>)`](crate::output::UpdateDomainNameserversOutput::operation_id): <p>Identifier for tracking the progress of the request. To query the operation status, use <a href="https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_GetOperationDetail.html">GetOperationDetail</a>.</p>
/// - On failure, responds with [`SdkError<UpdateDomainNameserversError>`](crate::error::UpdateDomainNameserversError)
pub fn update_domain_nameservers(&self) -> fluent_builders::UpdateDomainNameservers {
fluent_builders::UpdateDomainNameservers::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`UpdateTagsForDomain`](crate::client::fluent_builders::UpdateTagsForDomain) operation.
///
/// - The fluent builder is configurable:
/// - [`domain_name(impl Into<String>)`](crate::client::fluent_builders::UpdateTagsForDomain::domain_name) / [`set_domain_name(Option<String>)`](crate::client::fluent_builders::UpdateTagsForDomain::set_domain_name): <p>The domain for which you want to add or update tags.</p>
/// - [`tags_to_update(Vec<Tag>)`](crate::client::fluent_builders::UpdateTagsForDomain::tags_to_update) / [`set_tags_to_update(Option<Vec<Tag>>)`](crate::client::fluent_builders::UpdateTagsForDomain::set_tags_to_update): <p>A list of the tag keys and values that you want to add or update. If you specify a key that already exists, the corresponding value will be replaced.</p>
/// - On success, responds with [`UpdateTagsForDomainOutput`](crate::output::UpdateTagsForDomainOutput)
/// - On failure, responds with [`SdkError<UpdateTagsForDomainError>`](crate::error::UpdateTagsForDomainError)
pub fn update_tags_for_domain(&self) -> fluent_builders::UpdateTagsForDomain {
fluent_builders::UpdateTagsForDomain::new(self.handle.clone())
}
/// Constructs a fluent builder for the [`ViewBilling`](crate::client::fluent_builders::ViewBilling) operation.
/// This operation supports pagination; See [`into_paginator()`](crate::client::fluent_builders::ViewBilling::into_paginator).
///
/// - The fluent builder is configurable:
/// - [`start(DateTime)`](crate::client::fluent_builders::ViewBilling::start) / [`set_start(Option<DateTime>)`](crate::client::fluent_builders::ViewBilling::set_start): <p>The beginning date and time for the time period for which you want a list of billing records. Specify the date and time in Unix time format and Coordinated Universal time (UTC).</p>
/// - [`end(DateTime)`](crate::client::fluent_builders::ViewBilling::end) / [`set_end(Option<DateTime>)`](crate::client::fluent_builders::ViewBilling::set_end): <p>The end date and time for the time period for which you want a list of billing records. Specify the date and time in Unix time format and Coordinated Universal time (UTC).</p>
/// - [`marker(impl Into<String>)`](crate::client::fluent_builders::ViewBilling::marker) / [`set_marker(Option<String>)`](crate::client::fluent_builders::ViewBilling::set_marker): <p>For an initial request for a list of billing records, omit this element. If the number of billing records that are associated with the current Amazon Web Services account during the specified period is greater than the value that you specified for <code>MaxItems</code>, you can use <code>Marker</code> to return additional billing records. Get the value of <code>NextPageMarker</code> from the previous response, and submit another request that includes the value of <code>NextPageMarker</code> in the <code>Marker</code> element. </p> <p>Constraints: The marker must match the value of <code>NextPageMarker</code> that was returned in the previous response.</p>
/// - [`max_items(i32)`](crate::client::fluent_builders::ViewBilling::max_items) / [`set_max_items(Option<i32>)`](crate::client::fluent_builders::ViewBilling::set_max_items): <p>The number of billing records to be returned.</p> <p>Default: 20</p>
/// - On success, responds with [`ViewBillingOutput`](crate::output::ViewBillingOutput) with field(s):
/// - [`next_page_marker(Option<String>)`](crate::output::ViewBillingOutput::next_page_marker): <p>If there are more billing records than you specified for <code>MaxItems</code> in the request, submit another request and include the value of <code>NextPageMarker</code> in the value of <code>Marker</code>.</p>
/// - [`billing_records(Option<Vec<BillingRecord>>)`](crate::output::ViewBillingOutput::billing_records): <p>A summary of billing records.</p>
/// - On failure, responds with [`SdkError<ViewBillingError>`](crate::error::ViewBillingError)
pub fn view_billing(&self) -> fluent_builders::ViewBilling {
fluent_builders::ViewBilling::new(self.handle.clone())
}
}
pub mod fluent_builders {
//! Utilities to ergonomically construct a request to the service.
//!
//! Fluent builders are created through the [`Client`](crate::client::Client) by calling
//! one if its operation methods. After parameters are set using the builder methods,
//! the `send` method can be called to initiate the request.
/// Fluent builder constructing a request to `AcceptDomainTransferFromAnotherAwsAccount`.
///
/// <p>Accepts the transfer of a domain from another Amazon Web Services account to the currentAmazon Web Services account. You initiate a transfer between Amazon Web Services accounts using <a href="https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_TransferDomainToAnotherAwsAccount.html">TransferDomainToAnotherAwsAccount</a>.</p>
/// <p>If you use the CLI command at <a href="https://docs.aws.amazon.com/cli/latest/reference/route53domains/accept-domain-transfer-from-another-aws-account.html">accept-domain-transfer-from-another-aws-account</a>, use JSON format as input instead of text because otherwise CLI will throw an error from domain transfer input that includes single quotes.</p>
/// <p>Use either <a href="https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_ListOperations.html">ListOperations</a> or <a href="https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_GetOperationDetail.html">GetOperationDetail</a> to determine whether the operation succeeded. <a href="https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_GetOperationDetail.html">GetOperationDetail</a> provides additional information, for example, <code>Domain Transfer from Aws Account 111122223333 has been cancelled</code>. </p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct AcceptDomainTransferFromAnotherAwsAccount {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::accept_domain_transfer_from_another_aws_account_input::Builder,
}
impl AcceptDomainTransferFromAnotherAwsAccount {
/// Creates a new `AcceptDomainTransferFromAnotherAwsAccount`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::AcceptDomainTransferFromAnotherAwsAccountOutput,
aws_smithy_http::result::SdkError<
crate::error::AcceptDomainTransferFromAnotherAwsAccountError,
>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The name of the domain that was specified when another Amazon Web Services account submitted a <a href="https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_TransferDomainToAnotherAwsAccount.html">TransferDomainToAnotherAwsAccount</a> request. </p>
pub fn domain_name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.domain_name(input.into());
self
}
/// <p>The name of the domain that was specified when another Amazon Web Services account submitted a <a href="https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_TransferDomainToAnotherAwsAccount.html">TransferDomainToAnotherAwsAccount</a> request. </p>
pub fn set_domain_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_domain_name(input);
self
}
/// <p>The password that was returned by the <a href="https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_TransferDomainToAnotherAwsAccount.html">TransferDomainToAnotherAwsAccount</a> request. </p>
pub fn password(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.password(input.into());
self
}
/// <p>The password that was returned by the <a href="https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_TransferDomainToAnotherAwsAccount.html">TransferDomainToAnotherAwsAccount</a> request. </p>
pub fn set_password(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_password(input);
self
}
}
/// Fluent builder constructing a request to `CancelDomainTransferToAnotherAwsAccount`.
///
/// <p>Cancels the transfer of a domain from the current Amazon Web Services account to another Amazon Web Services account. You initiate a transfer betweenAmazon Web Services accounts using <a href="https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_TransferDomainToAnotherAwsAccount.html">TransferDomainToAnotherAwsAccount</a>. </p> <important>
/// <p>You must cancel the transfer before the other Amazon Web Services account accepts the transfer using <a href="https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_AcceptDomainTransferFromAnotherAwsAccount.html">AcceptDomainTransferFromAnotherAwsAccount</a>.</p>
/// </important>
/// <p>Use either <a href="https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_ListOperations.html">ListOperations</a> or <a href="https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_GetOperationDetail.html">GetOperationDetail</a> to determine whether the operation succeeded. <a href="https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_GetOperationDetail.html">GetOperationDetail</a> provides additional information, for example, <code>Domain Transfer from Aws Account 111122223333 has been cancelled</code>. </p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct CancelDomainTransferToAnotherAwsAccount {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::cancel_domain_transfer_to_another_aws_account_input::Builder,
}
impl CancelDomainTransferToAnotherAwsAccount {
/// Creates a new `CancelDomainTransferToAnotherAwsAccount`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::CancelDomainTransferToAnotherAwsAccountOutput,
aws_smithy_http::result::SdkError<
crate::error::CancelDomainTransferToAnotherAwsAccountError,
>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The name of the domain for which you want to cancel the transfer to another Amazon Web Services account.</p>
pub fn domain_name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.domain_name(input.into());
self
}
/// <p>The name of the domain for which you want to cancel the transfer to another Amazon Web Services account.</p>
pub fn set_domain_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_domain_name(input);
self
}
}
/// Fluent builder constructing a request to `CheckDomainAvailability`.
///
/// <p>This operation checks the availability of one domain name. Note that if the availability status of a domain is pending, you must submit another request to determine the availability of the domain name.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct CheckDomainAvailability {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::check_domain_availability_input::Builder,
}
impl CheckDomainAvailability {
/// Creates a new `CheckDomainAvailability`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::CheckDomainAvailabilityOutput,
aws_smithy_http::result::SdkError<crate::error::CheckDomainAvailabilityError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The name of the domain that you want to get availability for. The top-level domain (TLD), such as .com, must be a TLD that Route 53 supports. For a list of supported TLDs, see <a href="https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/registrar-tld-list.html">Domains that You Can Register with Amazon Route 53</a> in the <i>Amazon Route 53 Developer Guide</i>.</p>
/// <p>The domain name can contain only the following characters:</p>
/// <ul>
/// <li> <p>Letters a through z. Domain names are not case sensitive.</p> </li>
/// <li> <p>Numbers 0 through 9.</p> </li>
/// <li> <p>Hyphen (-). You can't specify a hyphen at the beginning or end of a label. </p> </li>
/// <li> <p>Period (.) to separate the labels in the name, such as the <code>.</code> in <code>example.com</code>.</p> </li>
/// </ul>
/// <p>Internationalized domain names are not supported for some top-level domains. To determine whether the TLD that you want to use supports internationalized domain names, see <a href="https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/registrar-tld-list.html">Domains that You Can Register with Amazon Route 53</a>. For more information, see <a href="https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/DomainNameFormat.html#domain-name-format-idns">Formatting Internationalized Domain Names</a>. </p>
pub fn domain_name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.domain_name(input.into());
self
}
/// <p>The name of the domain that you want to get availability for. The top-level domain (TLD), such as .com, must be a TLD that Route 53 supports. For a list of supported TLDs, see <a href="https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/registrar-tld-list.html">Domains that You Can Register with Amazon Route 53</a> in the <i>Amazon Route 53 Developer Guide</i>.</p>
/// <p>The domain name can contain only the following characters:</p>
/// <ul>
/// <li> <p>Letters a through z. Domain names are not case sensitive.</p> </li>
/// <li> <p>Numbers 0 through 9.</p> </li>
/// <li> <p>Hyphen (-). You can't specify a hyphen at the beginning or end of a label. </p> </li>
/// <li> <p>Period (.) to separate the labels in the name, such as the <code>.</code> in <code>example.com</code>.</p> </li>
/// </ul>
/// <p>Internationalized domain names are not supported for some top-level domains. To determine whether the TLD that you want to use supports internationalized domain names, see <a href="https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/registrar-tld-list.html">Domains that You Can Register with Amazon Route 53</a>. For more information, see <a href="https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/DomainNameFormat.html#domain-name-format-idns">Formatting Internationalized Domain Names</a>. </p>
pub fn set_domain_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_domain_name(input);
self
}
/// <p>Reserved for future use.</p>
pub fn idn_lang_code(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.idn_lang_code(input.into());
self
}
/// <p>Reserved for future use.</p>
pub fn set_idn_lang_code(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.inner = self.inner.set_idn_lang_code(input);
self
}
}
/// Fluent builder constructing a request to `CheckDomainTransferability`.
///
/// <p>Checks whether a domain name can be transferred to Amazon Route 53. </p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct CheckDomainTransferability {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::check_domain_transferability_input::Builder,
}
impl CheckDomainTransferability {
/// Creates a new `CheckDomainTransferability`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::CheckDomainTransferabilityOutput,
aws_smithy_http::result::SdkError<crate::error::CheckDomainTransferabilityError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The name of the domain that you want to transfer to Route 53. The top-level domain (TLD), such as .com, must be a TLD that Route 53 supports. For a list of supported TLDs, see <a href="https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/registrar-tld-list.html">Domains that You Can Register with Amazon Route 53</a> in the <i>Amazon Route 53 Developer Guide</i>.</p>
/// <p>The domain name can contain only the following characters:</p>
/// <ul>
/// <li> <p>Letters a through z. Domain names are not case sensitive.</p> </li>
/// <li> <p>Numbers 0 through 9.</p> </li>
/// <li> <p>Hyphen (-). You can't specify a hyphen at the beginning or end of a label. </p> </li>
/// <li> <p>Period (.) to separate the labels in the name, such as the <code>.</code> in <code>example.com</code>.</p> </li>
/// </ul>
pub fn domain_name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.domain_name(input.into());
self
}
/// <p>The name of the domain that you want to transfer to Route 53. The top-level domain (TLD), such as .com, must be a TLD that Route 53 supports. For a list of supported TLDs, see <a href="https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/registrar-tld-list.html">Domains that You Can Register with Amazon Route 53</a> in the <i>Amazon Route 53 Developer Guide</i>.</p>
/// <p>The domain name can contain only the following characters:</p>
/// <ul>
/// <li> <p>Letters a through z. Domain names are not case sensitive.</p> </li>
/// <li> <p>Numbers 0 through 9.</p> </li>
/// <li> <p>Hyphen (-). You can't specify a hyphen at the beginning or end of a label. </p> </li>
/// <li> <p>Period (.) to separate the labels in the name, such as the <code>.</code> in <code>example.com</code>.</p> </li>
/// </ul>
pub fn set_domain_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_domain_name(input);
self
}
/// <p>If the registrar for the top-level domain (TLD) requires an authorization code to transfer the domain, the code that you got from the current registrar for the domain.</p>
pub fn auth_code(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.auth_code(input.into());
self
}
/// <p>If the registrar for the top-level domain (TLD) requires an authorization code to transfer the domain, the code that you got from the current registrar for the domain.</p>
pub fn set_auth_code(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_auth_code(input);
self
}
}
/// Fluent builder constructing a request to `DeleteDomain`.
///
/// <p>This operation deletes the specified domain. This action is permanent. For more information, see <a href="https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/domain-delete.html">Deleting a domain name registration</a>.</p>
/// <p>To transfer the domain registration to another registrar, use the transfer process that’s provided by the registrar to which you want to transfer the registration. Otherwise, the following apply:</p>
/// <ol>
/// <li> <p>You can’t get a refund for the cost of a deleted domain registration.</p> </li>
/// <li> <p>The registry for the top-level domain might hold the domain name for a brief time before releasing it for other users to register (varies by registry). </p> </li>
/// <li> <p>When the registration has been deleted, we'll send you a confirmation to the registrant contact. The email will come from <code>noreply@domainnameverification.net</code> or <code>noreply@registrar.amazon.com</code>.</p> </li>
/// </ol>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct DeleteDomain {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::delete_domain_input::Builder,
}
impl DeleteDomain {
/// Creates a new `DeleteDomain`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::DeleteDomainOutput,
aws_smithy_http::result::SdkError<crate::error::DeleteDomainError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>Name of the domain to be deleted.</p>
pub fn domain_name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.domain_name(input.into());
self
}
/// <p>Name of the domain to be deleted.</p>
pub fn set_domain_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_domain_name(input);
self
}
}
/// Fluent builder constructing a request to `DeleteTagsForDomain`.
///
/// <p>This operation deletes the specified tags for a domain.</p>
/// <p>All tag operations are eventually consistent; subsequent operations might not immediately represent all issued operations.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct DeleteTagsForDomain {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::delete_tags_for_domain_input::Builder,
}
impl DeleteTagsForDomain {
/// Creates a new `DeleteTagsForDomain`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::DeleteTagsForDomainOutput,
aws_smithy_http::result::SdkError<crate::error::DeleteTagsForDomainError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The domain for which you want to delete one or more tags.</p>
pub fn domain_name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.domain_name(input.into());
self
}
/// <p>The domain for which you want to delete one or more tags.</p>
pub fn set_domain_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_domain_name(input);
self
}
/// Appends an item to `TagsToDelete`.
///
/// To override the contents of this collection use [`set_tags_to_delete`](Self::set_tags_to_delete).
///
/// <p>A list of tag keys to delete.</p>
pub fn tags_to_delete(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.tags_to_delete(input.into());
self
}
/// <p>A list of tag keys to delete.</p>
pub fn set_tags_to_delete(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.inner = self.inner.set_tags_to_delete(input);
self
}
}
/// Fluent builder constructing a request to `DisableDomainAutoRenew`.
///
/// <p>This operation disables automatic renewal of domain registration for the specified domain.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct DisableDomainAutoRenew {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::disable_domain_auto_renew_input::Builder,
}
impl DisableDomainAutoRenew {
/// Creates a new `DisableDomainAutoRenew`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::DisableDomainAutoRenewOutput,
aws_smithy_http::result::SdkError<crate::error::DisableDomainAutoRenewError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await
.map_err(|err| {
aws_smithy_http::result::SdkError::ConstructionFailure(err.into())
})?;
self.handle.client.call(op).await
}
/// <p>The name of the domain that you want to disable automatic renewal for.</p>
pub fn domain_name(mut self, input: impl Into<std::string::String>) -> Self {
self.inner = self.inner.domain_name(input.into());
self
}
/// <p>The name of the domain that you want to disable automatic renewal for.</p>
pub fn set_domain_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.inner = self.inner.set_domain_name(input);
self
}
}
/// Fluent builder constructing a request to `DisableDomainTransferLock`.
///
/// <p>This operation removes the transfer lock on the domain (specifically the <code>clientTransferProhibited</code> status) to allow domain transfers. We recommend you refrain from performing this action unless you intend to transfer the domain to a different registrar. Successful submission returns an operation ID that you can use to track the progress and completion of the action. If the request is not completed successfully, the domain registrant will be notified by email.</p>
#[derive(std::clone::Clone, std::fmt::Debug)]
pub struct DisableDomainTransferLock {
handle: std::sync::Arc<super::Handle>,
inner: crate::input::disable_domain_transfer_lock_input::Builder,
}
impl DisableDomainTransferLock {
/// Creates a new `DisableDomainTransferLock`.
pub(crate) fn new(handle: std::sync::Arc<super::Handle>) -> Self {
Self {
handle,
inner: Default::default(),
}
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::DisableDomainTransferLockOutput,
aws_smithy_http::result::SdkError<crate::error::DisableDomainTransferLockError>,
> {
let op = self
.inner
.build()
.map_err(|err| aws_smithy_http::result::SdkError::ConstructionFailure(err.into()))?
.make_operation(&self.handle.conf)
.await