aws-sdk-amplify 1.107.0

AWS SDK for AWS Amplify
Documentation
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
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// <p>Represents the different branches of a repository for building, deploying, and hosting an Amplify app.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq)]
pub struct App {
    /// <p>The unique ID of the Amplify app.</p>
    pub app_id: ::std::string::String,
    /// <p>The Amazon Resource Name (ARN) of the Amplify app.</p>
    pub app_arn: ::std::string::String,
    /// <p>The name for the Amplify app.</p>
    pub name: ::std::string::String,
    /// <p>The tag for the Amplify app.</p>
    pub tags: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
    /// <p>The description for the Amplify app.</p>
    pub description: ::std::string::String,
    /// <p>The Git repository for the Amplify app.</p>
    pub repository: ::std::string::String,
    /// <p>The platform for the Amplify app. For a static app, set the platform type to <code>WEB</code>. For a dynamic server-side rendered (SSR) app, set the platform type to <code>WEB_COMPUTE</code>. For an app requiring Amplify Hosting's original SSR support only, set the platform type to <code>WEB_DYNAMIC</code>.</p>
    /// <p>If you are deploying an SSG only app with Next.js 14 or later, you must use the platform type <code>WEB_COMPUTE</code>.</p>
    pub platform: crate::types::Platform,
    /// <p>A timestamp of when Amplify created the application.</p>
    pub create_time: ::aws_smithy_types::DateTime,
    /// <p>A timestamp of when Amplify updated the application.</p>
    pub update_time: ::aws_smithy_types::DateTime,
    /// <p>The Amazon Resource Name (ARN) of the IAM role for an SSR app. The Compute role allows the Amplify Hosting compute service to securely access specific Amazon Web Services resources based on the role's permissions. For more information about the SSR Compute role, see <a href="https://docs.aws.amazon.com/amplify/latest/userguide/amplify-SSR-compute-role.html">Adding an SSR Compute role</a> in the <i>Amplify User Guide</i>.</p>
    pub compute_role_arn: ::std::option::Option<::std::string::String>,
    /// <p>The Amazon Resource Name (ARN) of the IAM service role for the Amplify app.</p>
    pub iam_service_role_arn: ::std::option::Option<::std::string::String>,
    /// <p>The environment variables for the Amplify app.</p>
    /// <p>For a list of the environment variables that are accessible to Amplify by default, see <a href="https://docs.aws.amazon.com/amplify/latest/userguide/amplify-console-environment-variables.html">Amplify Environment variables</a> in the <i>Amplify Hosting User Guide</i>.</p>
    pub environment_variables: ::std::collections::HashMap<::std::string::String, ::std::string::String>,
    /// <p>The default domain for the Amplify app.</p>
    pub default_domain: ::std::string::String,
    /// <p>Enables the auto-building of branches for the Amplify app.</p>
    pub enable_branch_auto_build: bool,
    /// <p>Automatically disconnect a branch in the Amplify console when you delete a branch from your Git repository.</p>
    pub enable_branch_auto_deletion: ::std::option::Option<bool>,
    /// <p>Enables basic authorization for the Amplify app's branches.</p>
    pub enable_basic_auth: bool,
    /// <p>The basic authorization credentials for branches for the Amplify app. You must base64-encode the authorization credentials and provide them in the format <code>user:password</code>.</p>
    pub basic_auth_credentials: ::std::option::Option<::std::string::String>,
    /// <p>Describes the custom redirect and rewrite rules for the Amplify app.</p>
    pub custom_rules: ::std::option::Option<::std::vec::Vec<crate::types::CustomRule>>,
    /// <p>Describes the information about a production branch of the Amplify app.</p>
    pub production_branch: ::std::option::Option<crate::types::ProductionBranch>,
    /// <p>Describes the content of the build specification (build spec) for the Amplify app.</p>
    pub build_spec: ::std::option::Option<::std::string::String>,
    /// <p>Describes the custom HTTP headers for the Amplify app.</p>
    pub custom_headers: ::std::option::Option<::std::string::String>,
    /// <p>Enables automated branch creation for the Amplify app.</p>
    pub enable_auto_branch_creation: ::std::option::Option<bool>,
    /// <p>Describes the automated branch creation glob patterns for the Amplify app.</p>
    pub auto_branch_creation_patterns: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
    /// <p>Describes the automated branch creation configuration for the Amplify app.</p>
    pub auto_branch_creation_config: ::std::option::Option<crate::types::AutoBranchCreationConfig>,
    /// <note>
    /// <p>This is for internal use.</p>
    /// </note>
    /// <p>The Amplify service uses this parameter to specify the authentication protocol to use to access the Git repository for an Amplify app. Amplify specifies <code>TOKEN</code> for a GitHub repository, <code>SIGV4</code> for an Amazon Web Services CodeCommit repository, and <code>SSH</code> for GitLab and Bitbucket repositories.</p>
    pub repository_clone_method: ::std::option::Option<crate::types::RepositoryCloneMethod>,
    /// <p>The cache configuration for the Amplify app. If you don't specify the cache configuration <code>type</code>, Amplify uses the default <code>AMPLIFY_MANAGED</code> setting.</p>
    pub cache_config: ::std::option::Option<crate::types::CacheConfig>,
    /// <p>A timestamp of when Amplify created the webhook in your Git repository.</p>
    pub webhook_create_time: ::std::option::Option<::aws_smithy_types::DateTime>,
    /// <p>Describes the Firewall configuration for the Amplify app. Firewall support enables you to protect your hosted applications with a direct integration with WAF.</p>
    pub waf_configuration: ::std::option::Option<crate::types::WafConfiguration>,
    /// <p>The configuration details that apply to the jobs for an Amplify app.</p>
    pub job_config: ::std::option::Option<crate::types::JobConfig>,
}
impl App {
    /// <p>The unique ID of the Amplify app.</p>
    pub fn app_id(&self) -> &str {
        use std::ops::Deref;
        self.app_id.deref()
    }
    /// <p>The Amazon Resource Name (ARN) of the Amplify app.</p>
    pub fn app_arn(&self) -> &str {
        use std::ops::Deref;
        self.app_arn.deref()
    }
    /// <p>The name for the Amplify app.</p>
    pub fn name(&self) -> &str {
        use std::ops::Deref;
        self.name.deref()
    }
    /// <p>The tag for the Amplify app.</p>
    pub fn tags(&self) -> ::std::option::Option<&::std::collections::HashMap<::std::string::String, ::std::string::String>> {
        self.tags.as_ref()
    }
    /// <p>The description for the Amplify app.</p>
    pub fn description(&self) -> &str {
        use std::ops::Deref;
        self.description.deref()
    }
    /// <p>The Git repository for the Amplify app.</p>
    pub fn repository(&self) -> &str {
        use std::ops::Deref;
        self.repository.deref()
    }
    /// <p>The platform for the Amplify app. For a static app, set the platform type to <code>WEB</code>. For a dynamic server-side rendered (SSR) app, set the platform type to <code>WEB_COMPUTE</code>. For an app requiring Amplify Hosting's original SSR support only, set the platform type to <code>WEB_DYNAMIC</code>.</p>
    /// <p>If you are deploying an SSG only app with Next.js 14 or later, you must use the platform type <code>WEB_COMPUTE</code>.</p>
    pub fn platform(&self) -> &crate::types::Platform {
        &self.platform
    }
    /// <p>A timestamp of when Amplify created the application.</p>
    pub fn create_time(&self) -> &::aws_smithy_types::DateTime {
        &self.create_time
    }
    /// <p>A timestamp of when Amplify updated the application.</p>
    pub fn update_time(&self) -> &::aws_smithy_types::DateTime {
        &self.update_time
    }
    /// <p>The Amazon Resource Name (ARN) of the IAM role for an SSR app. The Compute role allows the Amplify Hosting compute service to securely access specific Amazon Web Services resources based on the role's permissions. For more information about the SSR Compute role, see <a href="https://docs.aws.amazon.com/amplify/latest/userguide/amplify-SSR-compute-role.html">Adding an SSR Compute role</a> in the <i>Amplify User Guide</i>.</p>
    pub fn compute_role_arn(&self) -> ::std::option::Option<&str> {
        self.compute_role_arn.as_deref()
    }
    /// <p>The Amazon Resource Name (ARN) of the IAM service role for the Amplify app.</p>
    pub fn iam_service_role_arn(&self) -> ::std::option::Option<&str> {
        self.iam_service_role_arn.as_deref()
    }
    /// <p>The environment variables for the Amplify app.</p>
    /// <p>For a list of the environment variables that are accessible to Amplify by default, see <a href="https://docs.aws.amazon.com/amplify/latest/userguide/amplify-console-environment-variables.html">Amplify Environment variables</a> in the <i>Amplify Hosting User Guide</i>.</p>
    pub fn environment_variables(&self) -> &::std::collections::HashMap<::std::string::String, ::std::string::String> {
        &self.environment_variables
    }
    /// <p>The default domain for the Amplify app.</p>
    pub fn default_domain(&self) -> &str {
        use std::ops::Deref;
        self.default_domain.deref()
    }
    /// <p>Enables the auto-building of branches for the Amplify app.</p>
    pub fn enable_branch_auto_build(&self) -> bool {
        self.enable_branch_auto_build
    }
    /// <p>Automatically disconnect a branch in the Amplify console when you delete a branch from your Git repository.</p>
    pub fn enable_branch_auto_deletion(&self) -> ::std::option::Option<bool> {
        self.enable_branch_auto_deletion
    }
    /// <p>Enables basic authorization for the Amplify app's branches.</p>
    pub fn enable_basic_auth(&self) -> bool {
        self.enable_basic_auth
    }
    /// <p>The basic authorization credentials for branches for the Amplify app. You must base64-encode the authorization credentials and provide them in the format <code>user:password</code>.</p>
    pub fn basic_auth_credentials(&self) -> ::std::option::Option<&str> {
        self.basic_auth_credentials.as_deref()
    }
    /// <p>Describes the custom redirect and rewrite rules for the Amplify app.</p>
    ///
    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.custom_rules.is_none()`.
    pub fn custom_rules(&self) -> &[crate::types::CustomRule] {
        self.custom_rules.as_deref().unwrap_or_default()
    }
    /// <p>Describes the information about a production branch of the Amplify app.</p>
    pub fn production_branch(&self) -> ::std::option::Option<&crate::types::ProductionBranch> {
        self.production_branch.as_ref()
    }
    /// <p>Describes the content of the build specification (build spec) for the Amplify app.</p>
    pub fn build_spec(&self) -> ::std::option::Option<&str> {
        self.build_spec.as_deref()
    }
    /// <p>Describes the custom HTTP headers for the Amplify app.</p>
    pub fn custom_headers(&self) -> ::std::option::Option<&str> {
        self.custom_headers.as_deref()
    }
    /// <p>Enables automated branch creation for the Amplify app.</p>
    pub fn enable_auto_branch_creation(&self) -> ::std::option::Option<bool> {
        self.enable_auto_branch_creation
    }
    /// <p>Describes the automated branch creation glob patterns for the Amplify app.</p>
    ///
    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.auto_branch_creation_patterns.is_none()`.
    pub fn auto_branch_creation_patterns(&self) -> &[::std::string::String] {
        self.auto_branch_creation_patterns.as_deref().unwrap_or_default()
    }
    /// <p>Describes the automated branch creation configuration for the Amplify app.</p>
    pub fn auto_branch_creation_config(&self) -> ::std::option::Option<&crate::types::AutoBranchCreationConfig> {
        self.auto_branch_creation_config.as_ref()
    }
    /// <note>
    /// <p>This is for internal use.</p>
    /// </note>
    /// <p>The Amplify service uses this parameter to specify the authentication protocol to use to access the Git repository for an Amplify app. Amplify specifies <code>TOKEN</code> for a GitHub repository, <code>SIGV4</code> for an Amazon Web Services CodeCommit repository, and <code>SSH</code> for GitLab and Bitbucket repositories.</p>
    pub fn repository_clone_method(&self) -> ::std::option::Option<&crate::types::RepositoryCloneMethod> {
        self.repository_clone_method.as_ref()
    }
    /// <p>The cache configuration for the Amplify app. If you don't specify the cache configuration <code>type</code>, Amplify uses the default <code>AMPLIFY_MANAGED</code> setting.</p>
    pub fn cache_config(&self) -> ::std::option::Option<&crate::types::CacheConfig> {
        self.cache_config.as_ref()
    }
    /// <p>A timestamp of when Amplify created the webhook in your Git repository.</p>
    pub fn webhook_create_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
        self.webhook_create_time.as_ref()
    }
    /// <p>Describes the Firewall configuration for the Amplify app. Firewall support enables you to protect your hosted applications with a direct integration with WAF.</p>
    pub fn waf_configuration(&self) -> ::std::option::Option<&crate::types::WafConfiguration> {
        self.waf_configuration.as_ref()
    }
    /// <p>The configuration details that apply to the jobs for an Amplify app.</p>
    pub fn job_config(&self) -> ::std::option::Option<&crate::types::JobConfig> {
        self.job_config.as_ref()
    }
}
impl ::std::fmt::Debug for App {
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
        let mut formatter = f.debug_struct("App");
        formatter.field("app_id", &self.app_id);
        formatter.field("app_arn", &self.app_arn);
        formatter.field("name", &self.name);
        formatter.field("tags", &self.tags);
        formatter.field("description", &self.description);
        formatter.field("repository", &self.repository);
        formatter.field("platform", &self.platform);
        formatter.field("create_time", &self.create_time);
        formatter.field("update_time", &self.update_time);
        formatter.field("compute_role_arn", &self.compute_role_arn);
        formatter.field("iam_service_role_arn", &self.iam_service_role_arn);
        formatter.field("environment_variables", &self.environment_variables);
        formatter.field("default_domain", &self.default_domain);
        formatter.field("enable_branch_auto_build", &self.enable_branch_auto_build);
        formatter.field("enable_branch_auto_deletion", &self.enable_branch_auto_deletion);
        formatter.field("enable_basic_auth", &self.enable_basic_auth);
        formatter.field("basic_auth_credentials", &"*** Sensitive Data Redacted ***");
        formatter.field("custom_rules", &self.custom_rules);
        formatter.field("production_branch", &self.production_branch);
        formatter.field("build_spec", &"*** Sensitive Data Redacted ***");
        formatter.field("custom_headers", &self.custom_headers);
        formatter.field("enable_auto_branch_creation", &self.enable_auto_branch_creation);
        formatter.field("auto_branch_creation_patterns", &self.auto_branch_creation_patterns);
        formatter.field("auto_branch_creation_config", &self.auto_branch_creation_config);
        formatter.field("repository_clone_method", &self.repository_clone_method);
        formatter.field("cache_config", &self.cache_config);
        formatter.field("webhook_create_time", &self.webhook_create_time);
        formatter.field("waf_configuration", &self.waf_configuration);
        formatter.field("job_config", &self.job_config);
        formatter.finish()
    }
}
impl App {
    /// Creates a new builder-style object to manufacture [`App`](crate::types::App).
    pub fn builder() -> crate::types::builders::AppBuilder {
        crate::types::builders::AppBuilder::default()
    }
}

/// A builder for [`App`](crate::types::App).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)]
#[non_exhaustive]
pub struct AppBuilder {
    pub(crate) app_id: ::std::option::Option<::std::string::String>,
    pub(crate) app_arn: ::std::option::Option<::std::string::String>,
    pub(crate) name: ::std::option::Option<::std::string::String>,
    pub(crate) tags: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
    pub(crate) description: ::std::option::Option<::std::string::String>,
    pub(crate) repository: ::std::option::Option<::std::string::String>,
    pub(crate) platform: ::std::option::Option<crate::types::Platform>,
    pub(crate) create_time: ::std::option::Option<::aws_smithy_types::DateTime>,
    pub(crate) update_time: ::std::option::Option<::aws_smithy_types::DateTime>,
    pub(crate) compute_role_arn: ::std::option::Option<::std::string::String>,
    pub(crate) iam_service_role_arn: ::std::option::Option<::std::string::String>,
    pub(crate) environment_variables: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
    pub(crate) default_domain: ::std::option::Option<::std::string::String>,
    pub(crate) enable_branch_auto_build: ::std::option::Option<bool>,
    pub(crate) enable_branch_auto_deletion: ::std::option::Option<bool>,
    pub(crate) enable_basic_auth: ::std::option::Option<bool>,
    pub(crate) basic_auth_credentials: ::std::option::Option<::std::string::String>,
    pub(crate) custom_rules: ::std::option::Option<::std::vec::Vec<crate::types::CustomRule>>,
    pub(crate) production_branch: ::std::option::Option<crate::types::ProductionBranch>,
    pub(crate) build_spec: ::std::option::Option<::std::string::String>,
    pub(crate) custom_headers: ::std::option::Option<::std::string::String>,
    pub(crate) enable_auto_branch_creation: ::std::option::Option<bool>,
    pub(crate) auto_branch_creation_patterns: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
    pub(crate) auto_branch_creation_config: ::std::option::Option<crate::types::AutoBranchCreationConfig>,
    pub(crate) repository_clone_method: ::std::option::Option<crate::types::RepositoryCloneMethod>,
    pub(crate) cache_config: ::std::option::Option<crate::types::CacheConfig>,
    pub(crate) webhook_create_time: ::std::option::Option<::aws_smithy_types::DateTime>,
    pub(crate) waf_configuration: ::std::option::Option<crate::types::WafConfiguration>,
    pub(crate) job_config: ::std::option::Option<crate::types::JobConfig>,
}
impl AppBuilder {
    /// <p>The unique ID of the Amplify app.</p>
    /// This field is required.
    pub fn app_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.app_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The unique ID of the Amplify app.</p>
    pub fn set_app_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.app_id = input;
        self
    }
    /// <p>The unique ID of the Amplify app.</p>
    pub fn get_app_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.app_id
    }
    /// <p>The Amazon Resource Name (ARN) of the Amplify app.</p>
    /// This field is required.
    pub fn app_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.app_arn = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The Amazon Resource Name (ARN) of the Amplify app.</p>
    pub fn set_app_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.app_arn = input;
        self
    }
    /// <p>The Amazon Resource Name (ARN) of the Amplify app.</p>
    pub fn get_app_arn(&self) -> &::std::option::Option<::std::string::String> {
        &self.app_arn
    }
    /// <p>The name for the Amplify app.</p>
    /// This field is required.
    pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.name = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The name for the Amplify app.</p>
    pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.name = input;
        self
    }
    /// <p>The name for the Amplify app.</p>
    pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.name
    }
    /// Adds a key-value pair to `tags`.
    ///
    /// To override the contents of this collection use [`set_tags`](Self::set_tags).
    ///
    /// <p>The tag for the Amplify app.</p>
    pub fn tags(mut self, k: impl ::std::convert::Into<::std::string::String>, v: impl ::std::convert::Into<::std::string::String>) -> Self {
        let mut hash_map = self.tags.unwrap_or_default();
        hash_map.insert(k.into(), v.into());
        self.tags = ::std::option::Option::Some(hash_map);
        self
    }
    /// <p>The tag for the Amplify app.</p>
    pub fn set_tags(mut self, input: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>) -> Self {
        self.tags = input;
        self
    }
    /// <p>The tag for the Amplify app.</p>
    pub fn get_tags(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>> {
        &self.tags
    }
    /// <p>The description for the Amplify app.</p>
    /// This field is required.
    pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.description = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The description for the Amplify app.</p>
    pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.description = input;
        self
    }
    /// <p>The description for the Amplify app.</p>
    pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
        &self.description
    }
    /// <p>The Git repository for the Amplify app.</p>
    /// This field is required.
    pub fn repository(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.repository = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The Git repository for the Amplify app.</p>
    pub fn set_repository(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.repository = input;
        self
    }
    /// <p>The Git repository for the Amplify app.</p>
    pub fn get_repository(&self) -> &::std::option::Option<::std::string::String> {
        &self.repository
    }
    /// <p>The platform for the Amplify app. For a static app, set the platform type to <code>WEB</code>. For a dynamic server-side rendered (SSR) app, set the platform type to <code>WEB_COMPUTE</code>. For an app requiring Amplify Hosting's original SSR support only, set the platform type to <code>WEB_DYNAMIC</code>.</p>
    /// <p>If you are deploying an SSG only app with Next.js 14 or later, you must use the platform type <code>WEB_COMPUTE</code>.</p>
    /// This field is required.
    pub fn platform(mut self, input: crate::types::Platform) -> Self {
        self.platform = ::std::option::Option::Some(input);
        self
    }
    /// <p>The platform for the Amplify app. For a static app, set the platform type to <code>WEB</code>. For a dynamic server-side rendered (SSR) app, set the platform type to <code>WEB_COMPUTE</code>. For an app requiring Amplify Hosting's original SSR support only, set the platform type to <code>WEB_DYNAMIC</code>.</p>
    /// <p>If you are deploying an SSG only app with Next.js 14 or later, you must use the platform type <code>WEB_COMPUTE</code>.</p>
    pub fn set_platform(mut self, input: ::std::option::Option<crate::types::Platform>) -> Self {
        self.platform = input;
        self
    }
    /// <p>The platform for the Amplify app. For a static app, set the platform type to <code>WEB</code>. For a dynamic server-side rendered (SSR) app, set the platform type to <code>WEB_COMPUTE</code>. For an app requiring Amplify Hosting's original SSR support only, set the platform type to <code>WEB_DYNAMIC</code>.</p>
    /// <p>If you are deploying an SSG only app with Next.js 14 or later, you must use the platform type <code>WEB_COMPUTE</code>.</p>
    pub fn get_platform(&self) -> &::std::option::Option<crate::types::Platform> {
        &self.platform
    }
    /// <p>A timestamp of when Amplify created the application.</p>
    /// This field is required.
    pub fn create_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
        self.create_time = ::std::option::Option::Some(input);
        self
    }
    /// <p>A timestamp of when Amplify created the application.</p>
    pub fn set_create_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
        self.create_time = input;
        self
    }
    /// <p>A timestamp of when Amplify created the application.</p>
    pub fn get_create_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
        &self.create_time
    }
    /// <p>A timestamp of when Amplify updated the application.</p>
    /// This field is required.
    pub fn update_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
        self.update_time = ::std::option::Option::Some(input);
        self
    }
    /// <p>A timestamp of when Amplify updated the application.</p>
    pub fn set_update_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
        self.update_time = input;
        self
    }
    /// <p>A timestamp of when Amplify updated the application.</p>
    pub fn get_update_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
        &self.update_time
    }
    /// <p>The Amazon Resource Name (ARN) of the IAM role for an SSR app. The Compute role allows the Amplify Hosting compute service to securely access specific Amazon Web Services resources based on the role's permissions. For more information about the SSR Compute role, see <a href="https://docs.aws.amazon.com/amplify/latest/userguide/amplify-SSR-compute-role.html">Adding an SSR Compute role</a> in the <i>Amplify User Guide</i>.</p>
    pub fn compute_role_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.compute_role_arn = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The Amazon Resource Name (ARN) of the IAM role for an SSR app. The Compute role allows the Amplify Hosting compute service to securely access specific Amazon Web Services resources based on the role's permissions. For more information about the SSR Compute role, see <a href="https://docs.aws.amazon.com/amplify/latest/userguide/amplify-SSR-compute-role.html">Adding an SSR Compute role</a> in the <i>Amplify User Guide</i>.</p>
    pub fn set_compute_role_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.compute_role_arn = input;
        self
    }
    /// <p>The Amazon Resource Name (ARN) of the IAM role for an SSR app. The Compute role allows the Amplify Hosting compute service to securely access specific Amazon Web Services resources based on the role's permissions. For more information about the SSR Compute role, see <a href="https://docs.aws.amazon.com/amplify/latest/userguide/amplify-SSR-compute-role.html">Adding an SSR Compute role</a> in the <i>Amplify User Guide</i>.</p>
    pub fn get_compute_role_arn(&self) -> &::std::option::Option<::std::string::String> {
        &self.compute_role_arn
    }
    /// <p>The Amazon Resource Name (ARN) of the IAM service role for the Amplify app.</p>
    pub fn iam_service_role_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.iam_service_role_arn = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The Amazon Resource Name (ARN) of the IAM service role for the Amplify app.</p>
    pub fn set_iam_service_role_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.iam_service_role_arn = input;
        self
    }
    /// <p>The Amazon Resource Name (ARN) of the IAM service role for the Amplify app.</p>
    pub fn get_iam_service_role_arn(&self) -> &::std::option::Option<::std::string::String> {
        &self.iam_service_role_arn
    }
    /// Adds a key-value pair to `environment_variables`.
    ///
    /// To override the contents of this collection use [`set_environment_variables`](Self::set_environment_variables).
    ///
    /// <p>The environment variables for the Amplify app.</p>
    /// <p>For a list of the environment variables that are accessible to Amplify by default, see <a href="https://docs.aws.amazon.com/amplify/latest/userguide/amplify-console-environment-variables.html">Amplify Environment variables</a> in the <i>Amplify Hosting User Guide</i>.</p>
    pub fn environment_variables(
        mut self,
        k: impl ::std::convert::Into<::std::string::String>,
        v: impl ::std::convert::Into<::std::string::String>,
    ) -> Self {
        let mut hash_map = self.environment_variables.unwrap_or_default();
        hash_map.insert(k.into(), v.into());
        self.environment_variables = ::std::option::Option::Some(hash_map);
        self
    }
    /// <p>The environment variables for the Amplify app.</p>
    /// <p>For a list of the environment variables that are accessible to Amplify by default, see <a href="https://docs.aws.amazon.com/amplify/latest/userguide/amplify-console-environment-variables.html">Amplify Environment variables</a> in the <i>Amplify Hosting User Guide</i>.</p>
    pub fn set_environment_variables(
        mut self,
        input: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
    ) -> Self {
        self.environment_variables = input;
        self
    }
    /// <p>The environment variables for the Amplify app.</p>
    /// <p>For a list of the environment variables that are accessible to Amplify by default, see <a href="https://docs.aws.amazon.com/amplify/latest/userguide/amplify-console-environment-variables.html">Amplify Environment variables</a> in the <i>Amplify Hosting User Guide</i>.</p>
    pub fn get_environment_variables(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>> {
        &self.environment_variables
    }
    /// <p>The default domain for the Amplify app.</p>
    /// This field is required.
    pub fn default_domain(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.default_domain = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The default domain for the Amplify app.</p>
    pub fn set_default_domain(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.default_domain = input;
        self
    }
    /// <p>The default domain for the Amplify app.</p>
    pub fn get_default_domain(&self) -> &::std::option::Option<::std::string::String> {
        &self.default_domain
    }
    /// <p>Enables the auto-building of branches for the Amplify app.</p>
    /// This field is required.
    pub fn enable_branch_auto_build(mut self, input: bool) -> Self {
        self.enable_branch_auto_build = ::std::option::Option::Some(input);
        self
    }
    /// <p>Enables the auto-building of branches for the Amplify app.</p>
    pub fn set_enable_branch_auto_build(mut self, input: ::std::option::Option<bool>) -> Self {
        self.enable_branch_auto_build = input;
        self
    }
    /// <p>Enables the auto-building of branches for the Amplify app.</p>
    pub fn get_enable_branch_auto_build(&self) -> &::std::option::Option<bool> {
        &self.enable_branch_auto_build
    }
    /// <p>Automatically disconnect a branch in the Amplify console when you delete a branch from your Git repository.</p>
    pub fn enable_branch_auto_deletion(mut self, input: bool) -> Self {
        self.enable_branch_auto_deletion = ::std::option::Option::Some(input);
        self
    }
    /// <p>Automatically disconnect a branch in the Amplify console when you delete a branch from your Git repository.</p>
    pub fn set_enable_branch_auto_deletion(mut self, input: ::std::option::Option<bool>) -> Self {
        self.enable_branch_auto_deletion = input;
        self
    }
    /// <p>Automatically disconnect a branch in the Amplify console when you delete a branch from your Git repository.</p>
    pub fn get_enable_branch_auto_deletion(&self) -> &::std::option::Option<bool> {
        &self.enable_branch_auto_deletion
    }
    /// <p>Enables basic authorization for the Amplify app's branches.</p>
    /// This field is required.
    pub fn enable_basic_auth(mut self, input: bool) -> Self {
        self.enable_basic_auth = ::std::option::Option::Some(input);
        self
    }
    /// <p>Enables basic authorization for the Amplify app's branches.</p>
    pub fn set_enable_basic_auth(mut self, input: ::std::option::Option<bool>) -> Self {
        self.enable_basic_auth = input;
        self
    }
    /// <p>Enables basic authorization for the Amplify app's branches.</p>
    pub fn get_enable_basic_auth(&self) -> &::std::option::Option<bool> {
        &self.enable_basic_auth
    }
    /// <p>The basic authorization credentials for branches for the Amplify app. You must base64-encode the authorization credentials and provide them in the format <code>user:password</code>.</p>
    pub fn basic_auth_credentials(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.basic_auth_credentials = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The basic authorization credentials for branches for the Amplify app. You must base64-encode the authorization credentials and provide them in the format <code>user:password</code>.</p>
    pub fn set_basic_auth_credentials(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.basic_auth_credentials = input;
        self
    }
    /// <p>The basic authorization credentials for branches for the Amplify app. You must base64-encode the authorization credentials and provide them in the format <code>user:password</code>.</p>
    pub fn get_basic_auth_credentials(&self) -> &::std::option::Option<::std::string::String> {
        &self.basic_auth_credentials
    }
    /// Appends an item to `custom_rules`.
    ///
    /// To override the contents of this collection use [`set_custom_rules`](Self::set_custom_rules).
    ///
    /// <p>Describes the custom redirect and rewrite rules for the Amplify app.</p>
    pub fn custom_rules(mut self, input: crate::types::CustomRule) -> Self {
        let mut v = self.custom_rules.unwrap_or_default();
        v.push(input);
        self.custom_rules = ::std::option::Option::Some(v);
        self
    }
    /// <p>Describes the custom redirect and rewrite rules for the Amplify app.</p>
    pub fn set_custom_rules(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::CustomRule>>) -> Self {
        self.custom_rules = input;
        self
    }
    /// <p>Describes the custom redirect and rewrite rules for the Amplify app.</p>
    pub fn get_custom_rules(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::CustomRule>> {
        &self.custom_rules
    }
    /// <p>Describes the information about a production branch of the Amplify app.</p>
    pub fn production_branch(mut self, input: crate::types::ProductionBranch) -> Self {
        self.production_branch = ::std::option::Option::Some(input);
        self
    }
    /// <p>Describes the information about a production branch of the Amplify app.</p>
    pub fn set_production_branch(mut self, input: ::std::option::Option<crate::types::ProductionBranch>) -> Self {
        self.production_branch = input;
        self
    }
    /// <p>Describes the information about a production branch of the Amplify app.</p>
    pub fn get_production_branch(&self) -> &::std::option::Option<crate::types::ProductionBranch> {
        &self.production_branch
    }
    /// <p>Describes the content of the build specification (build spec) for the Amplify app.</p>
    pub fn build_spec(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.build_spec = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>Describes the content of the build specification (build spec) for the Amplify app.</p>
    pub fn set_build_spec(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.build_spec = input;
        self
    }
    /// <p>Describes the content of the build specification (build spec) for the Amplify app.</p>
    pub fn get_build_spec(&self) -> &::std::option::Option<::std::string::String> {
        &self.build_spec
    }
    /// <p>Describes the custom HTTP headers for the Amplify app.</p>
    pub fn custom_headers(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.custom_headers = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>Describes the custom HTTP headers for the Amplify app.</p>
    pub fn set_custom_headers(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.custom_headers = input;
        self
    }
    /// <p>Describes the custom HTTP headers for the Amplify app.</p>
    pub fn get_custom_headers(&self) -> &::std::option::Option<::std::string::String> {
        &self.custom_headers
    }
    /// <p>Enables automated branch creation for the Amplify app.</p>
    pub fn enable_auto_branch_creation(mut self, input: bool) -> Self {
        self.enable_auto_branch_creation = ::std::option::Option::Some(input);
        self
    }
    /// <p>Enables automated branch creation for the Amplify app.</p>
    pub fn set_enable_auto_branch_creation(mut self, input: ::std::option::Option<bool>) -> Self {
        self.enable_auto_branch_creation = input;
        self
    }
    /// <p>Enables automated branch creation for the Amplify app.</p>
    pub fn get_enable_auto_branch_creation(&self) -> &::std::option::Option<bool> {
        &self.enable_auto_branch_creation
    }
    /// Appends an item to `auto_branch_creation_patterns`.
    ///
    /// To override the contents of this collection use [`set_auto_branch_creation_patterns`](Self::set_auto_branch_creation_patterns).
    ///
    /// <p>Describes the automated branch creation glob patterns for the Amplify app.</p>
    pub fn auto_branch_creation_patterns(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        let mut v = self.auto_branch_creation_patterns.unwrap_or_default();
        v.push(input.into());
        self.auto_branch_creation_patterns = ::std::option::Option::Some(v);
        self
    }
    /// <p>Describes the automated branch creation glob patterns for the Amplify app.</p>
    pub fn set_auto_branch_creation_patterns(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
        self.auto_branch_creation_patterns = input;
        self
    }
    /// <p>Describes the automated branch creation glob patterns for the Amplify app.</p>
    pub fn get_auto_branch_creation_patterns(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
        &self.auto_branch_creation_patterns
    }
    /// <p>Describes the automated branch creation configuration for the Amplify app.</p>
    pub fn auto_branch_creation_config(mut self, input: crate::types::AutoBranchCreationConfig) -> Self {
        self.auto_branch_creation_config = ::std::option::Option::Some(input);
        self
    }
    /// <p>Describes the automated branch creation configuration for the Amplify app.</p>
    pub fn set_auto_branch_creation_config(mut self, input: ::std::option::Option<crate::types::AutoBranchCreationConfig>) -> Self {
        self.auto_branch_creation_config = input;
        self
    }
    /// <p>Describes the automated branch creation configuration for the Amplify app.</p>
    pub fn get_auto_branch_creation_config(&self) -> &::std::option::Option<crate::types::AutoBranchCreationConfig> {
        &self.auto_branch_creation_config
    }
    /// <note>
    /// <p>This is for internal use.</p>
    /// </note>
    /// <p>The Amplify service uses this parameter to specify the authentication protocol to use to access the Git repository for an Amplify app. Amplify specifies <code>TOKEN</code> for a GitHub repository, <code>SIGV4</code> for an Amazon Web Services CodeCommit repository, and <code>SSH</code> for GitLab and Bitbucket repositories.</p>
    pub fn repository_clone_method(mut self, input: crate::types::RepositoryCloneMethod) -> Self {
        self.repository_clone_method = ::std::option::Option::Some(input);
        self
    }
    /// <note>
    /// <p>This is for internal use.</p>
    /// </note>
    /// <p>The Amplify service uses this parameter to specify the authentication protocol to use to access the Git repository for an Amplify app. Amplify specifies <code>TOKEN</code> for a GitHub repository, <code>SIGV4</code> for an Amazon Web Services CodeCommit repository, and <code>SSH</code> for GitLab and Bitbucket repositories.</p>
    pub fn set_repository_clone_method(mut self, input: ::std::option::Option<crate::types::RepositoryCloneMethod>) -> Self {
        self.repository_clone_method = input;
        self
    }
    /// <note>
    /// <p>This is for internal use.</p>
    /// </note>
    /// <p>The Amplify service uses this parameter to specify the authentication protocol to use to access the Git repository for an Amplify app. Amplify specifies <code>TOKEN</code> for a GitHub repository, <code>SIGV4</code> for an Amazon Web Services CodeCommit repository, and <code>SSH</code> for GitLab and Bitbucket repositories.</p>
    pub fn get_repository_clone_method(&self) -> &::std::option::Option<crate::types::RepositoryCloneMethod> {
        &self.repository_clone_method
    }
    /// <p>The cache configuration for the Amplify app. If you don't specify the cache configuration <code>type</code>, Amplify uses the default <code>AMPLIFY_MANAGED</code> setting.</p>
    pub fn cache_config(mut self, input: crate::types::CacheConfig) -> Self {
        self.cache_config = ::std::option::Option::Some(input);
        self
    }
    /// <p>The cache configuration for the Amplify app. If you don't specify the cache configuration <code>type</code>, Amplify uses the default <code>AMPLIFY_MANAGED</code> setting.</p>
    pub fn set_cache_config(mut self, input: ::std::option::Option<crate::types::CacheConfig>) -> Self {
        self.cache_config = input;
        self
    }
    /// <p>The cache configuration for the Amplify app. If you don't specify the cache configuration <code>type</code>, Amplify uses the default <code>AMPLIFY_MANAGED</code> setting.</p>
    pub fn get_cache_config(&self) -> &::std::option::Option<crate::types::CacheConfig> {
        &self.cache_config
    }
    /// <p>A timestamp of when Amplify created the webhook in your Git repository.</p>
    pub fn webhook_create_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
        self.webhook_create_time = ::std::option::Option::Some(input);
        self
    }
    /// <p>A timestamp of when Amplify created the webhook in your Git repository.</p>
    pub fn set_webhook_create_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
        self.webhook_create_time = input;
        self
    }
    /// <p>A timestamp of when Amplify created the webhook in your Git repository.</p>
    pub fn get_webhook_create_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
        &self.webhook_create_time
    }
    /// <p>Describes the Firewall configuration for the Amplify app. Firewall support enables you to protect your hosted applications with a direct integration with WAF.</p>
    pub fn waf_configuration(mut self, input: crate::types::WafConfiguration) -> Self {
        self.waf_configuration = ::std::option::Option::Some(input);
        self
    }
    /// <p>Describes the Firewall configuration for the Amplify app. Firewall support enables you to protect your hosted applications with a direct integration with WAF.</p>
    pub fn set_waf_configuration(mut self, input: ::std::option::Option<crate::types::WafConfiguration>) -> Self {
        self.waf_configuration = input;
        self
    }
    /// <p>Describes the Firewall configuration for the Amplify app. Firewall support enables you to protect your hosted applications with a direct integration with WAF.</p>
    pub fn get_waf_configuration(&self) -> &::std::option::Option<crate::types::WafConfiguration> {
        &self.waf_configuration
    }
    /// <p>The configuration details that apply to the jobs for an Amplify app.</p>
    pub fn job_config(mut self, input: crate::types::JobConfig) -> Self {
        self.job_config = ::std::option::Option::Some(input);
        self
    }
    /// <p>The configuration details that apply to the jobs for an Amplify app.</p>
    pub fn set_job_config(mut self, input: ::std::option::Option<crate::types::JobConfig>) -> Self {
        self.job_config = input;
        self
    }
    /// <p>The configuration details that apply to the jobs for an Amplify app.</p>
    pub fn get_job_config(&self) -> &::std::option::Option<crate::types::JobConfig> {
        &self.job_config
    }
    /// Consumes the builder and constructs a [`App`](crate::types::App).
    /// This method will fail if any of the following fields are not set:
    /// - [`app_id`](crate::types::builders::AppBuilder::app_id)
    /// - [`app_arn`](crate::types::builders::AppBuilder::app_arn)
    /// - [`name`](crate::types::builders::AppBuilder::name)
    /// - [`description`](crate::types::builders::AppBuilder::description)
    /// - [`repository`](crate::types::builders::AppBuilder::repository)
    /// - [`platform`](crate::types::builders::AppBuilder::platform)
    /// - [`create_time`](crate::types::builders::AppBuilder::create_time)
    /// - [`update_time`](crate::types::builders::AppBuilder::update_time)
    /// - [`environment_variables`](crate::types::builders::AppBuilder::environment_variables)
    /// - [`default_domain`](crate::types::builders::AppBuilder::default_domain)
    /// - [`enable_branch_auto_build`](crate::types::builders::AppBuilder::enable_branch_auto_build)
    /// - [`enable_basic_auth`](crate::types::builders::AppBuilder::enable_basic_auth)
    pub fn build(self) -> ::std::result::Result<crate::types::App, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::types::App {
            app_id: self.app_id.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "app_id",
                    "app_id was not specified but it is required when building App",
                )
            })?,
            app_arn: self.app_arn.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "app_arn",
                    "app_arn was not specified but it is required when building App",
                )
            })?,
            name: self.name.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field("name", "name was not specified but it is required when building App")
            })?,
            tags: self.tags,
            description: self.description.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "description",
                    "description was not specified but it is required when building App",
                )
            })?,
            repository: self.repository.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "repository",
                    "repository was not specified but it is required when building App",
                )
            })?,
            platform: self.platform.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "platform",
                    "platform was not specified but it is required when building App",
                )
            })?,
            create_time: self.create_time.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "create_time",
                    "create_time was not specified but it is required when building App",
                )
            })?,
            update_time: self.update_time.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "update_time",
                    "update_time was not specified but it is required when building App",
                )
            })?,
            compute_role_arn: self.compute_role_arn,
            iam_service_role_arn: self.iam_service_role_arn,
            environment_variables: self.environment_variables.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "environment_variables",
                    "environment_variables was not specified but it is required when building App",
                )
            })?,
            default_domain: self.default_domain.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "default_domain",
                    "default_domain was not specified but it is required when building App",
                )
            })?,
            enable_branch_auto_build: self.enable_branch_auto_build.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "enable_branch_auto_build",
                    "enable_branch_auto_build was not specified but it is required when building App",
                )
            })?,
            enable_branch_auto_deletion: self.enable_branch_auto_deletion,
            enable_basic_auth: self.enable_basic_auth.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "enable_basic_auth",
                    "enable_basic_auth was not specified but it is required when building App",
                )
            })?,
            basic_auth_credentials: self.basic_auth_credentials,
            custom_rules: self.custom_rules,
            production_branch: self.production_branch,
            build_spec: self.build_spec,
            custom_headers: self.custom_headers,
            enable_auto_branch_creation: self.enable_auto_branch_creation,
            auto_branch_creation_patterns: self.auto_branch_creation_patterns,
            auto_branch_creation_config: self.auto_branch_creation_config,
            repository_clone_method: self.repository_clone_method,
            cache_config: self.cache_config,
            webhook_create_time: self.webhook_create_time,
            waf_configuration: self.waf_configuration,
            job_config: self.job_config,
        })
    }
}
impl ::std::fmt::Debug for AppBuilder {
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
        let mut formatter = f.debug_struct("AppBuilder");
        formatter.field("app_id", &self.app_id);
        formatter.field("app_arn", &self.app_arn);
        formatter.field("name", &self.name);
        formatter.field("tags", &self.tags);
        formatter.field("description", &self.description);
        formatter.field("repository", &self.repository);
        formatter.field("platform", &self.platform);
        formatter.field("create_time", &self.create_time);
        formatter.field("update_time", &self.update_time);
        formatter.field("compute_role_arn", &self.compute_role_arn);
        formatter.field("iam_service_role_arn", &self.iam_service_role_arn);
        formatter.field("environment_variables", &self.environment_variables);
        formatter.field("default_domain", &self.default_domain);
        formatter.field("enable_branch_auto_build", &self.enable_branch_auto_build);
        formatter.field("enable_branch_auto_deletion", &self.enable_branch_auto_deletion);
        formatter.field("enable_basic_auth", &self.enable_basic_auth);
        formatter.field("basic_auth_credentials", &"*** Sensitive Data Redacted ***");
        formatter.field("custom_rules", &self.custom_rules);
        formatter.field("production_branch", &self.production_branch);
        formatter.field("build_spec", &"*** Sensitive Data Redacted ***");
        formatter.field("custom_headers", &self.custom_headers);
        formatter.field("enable_auto_branch_creation", &self.enable_auto_branch_creation);
        formatter.field("auto_branch_creation_patterns", &self.auto_branch_creation_patterns);
        formatter.field("auto_branch_creation_config", &self.auto_branch_creation_config);
        formatter.field("repository_clone_method", &self.repository_clone_method);
        formatter.field("cache_config", &self.cache_config);
        formatter.field("webhook_create_time", &self.webhook_create_time);
        formatter.field("waf_configuration", &self.waf_configuration);
        formatter.field("job_config", &self.job_config);
        formatter.finish()
    }
}