aws-sdk-assurance 1.0.0

AWS SDK for AWS Assurance
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
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq)]
pub struct GetAssessmentOutput {
    /// <p>The identifier of the assessment.</p>
    pub assessment_id: ::std::string::String,
    /// <p>The name of the governance environment the assessment belongs to.</p>
    pub environment: ::std::string::String,
    /// <p>The name of the compliance framework.</p>
    pub framework: ::std::string::String,
    /// <p>The version of the compliance framework.</p>
    pub framework_version: ::std::string::String,
    /// <p>The control identifier. Optional. If omitted, the operation applies to the full framework.</p>
    pub control_id: ::std::string::String,
    /// <p>The name of the project.</p>
    pub project: ::std::string::String,
    /// <p>The canonical state of the assessment.</p>
    pub status: crate::types::AssessmentStatus,
    /// <p>The detailed result of the assessment.</p>
    pub result: ::std::option::Option<::std::string::String>,
    /// <p>The numeric percentage score of the assessment outcome.</p>
    pub outcome_percentage: ::std::option::Option<f32>,
    /// <p>The optional user-provided context or guidance for the assessment evaluation.</p>
    pub context: ::std::option::Option<::std::string::String>,
    /// <p>The timestamp when the assessment was created.</p>
    pub created_at: ::aws_smithy_types::DateTime,
    /// <p>The timestamp when the assessment was last updated.</p>
    pub updated_at: ::aws_smithy_types::DateTime,
    /// <p>A summary of the assessment across an organization. While the assessment is IN_PROGRESS, <code>totalAccounts</code> and <code>evaluatedAccounts</code> report progress; the full summary is available once the assessment finalizes. Omitted for single-account assessments.</p>
    pub organization_summary: ::std::option::Option<crate::types::OrganizationSummary>,
    /// <p>The event that started the assessment. The <code>trigger</code> field of the <code>StartAssessment</code> event in your AWS CloudTrail logs has the same value.</p>
    /// <ul>
    /// <li>
    /// <p><code>SCHEDULE</code> – The framework's assessment schedule.</p></li>
    /// <li>
    /// <p><code>DETECTED_CHANGE</code> – A relevant change to your resources.</p></li>
    /// <li>
    /// <p><code>USER_ACTION</code> – A <code>StartAssessment</code> call.</p></li>
    /// </ul>
    /// <p>This field is empty for assessments that ran before this value was available, or if the value isn't available for your account.</p>
    pub trigger: ::std::option::Option<crate::types::AssessmentTrigger>,
    _request_id: Option<String>,
}
impl GetAssessmentOutput {
    /// <p>The identifier of the assessment.</p>
    pub fn assessment_id(&self) -> &str {
        use std::ops::Deref;
        self.assessment_id.deref()
    }
    /// <p>The name of the governance environment the assessment belongs to.</p>
    pub fn environment(&self) -> &str {
        use std::ops::Deref;
        self.environment.deref()
    }
    /// <p>The name of the compliance framework.</p>
    pub fn framework(&self) -> &str {
        use std::ops::Deref;
        self.framework.deref()
    }
    /// <p>The version of the compliance framework.</p>
    pub fn framework_version(&self) -> &str {
        use std::ops::Deref;
        self.framework_version.deref()
    }
    /// <p>The control identifier. Optional. If omitted, the operation applies to the full framework.</p>
    pub fn control_id(&self) -> &str {
        use std::ops::Deref;
        self.control_id.deref()
    }
    /// <p>The name of the project.</p>
    pub fn project(&self) -> &str {
        use std::ops::Deref;
        self.project.deref()
    }
    /// <p>The canonical state of the assessment.</p>
    pub fn status(&self) -> &crate::types::AssessmentStatus {
        &self.status
    }
    /// <p>The detailed result of the assessment.</p>
    pub fn result(&self) -> ::std::option::Option<&str> {
        self.result.as_deref()
    }
    /// <p>The numeric percentage score of the assessment outcome.</p>
    pub fn outcome_percentage(&self) -> ::std::option::Option<f32> {
        self.outcome_percentage
    }
    /// <p>The optional user-provided context or guidance for the assessment evaluation.</p>
    pub fn context(&self) -> ::std::option::Option<&str> {
        self.context.as_deref()
    }
    /// <p>The timestamp when the assessment was created.</p>
    pub fn created_at(&self) -> &::aws_smithy_types::DateTime {
        &self.created_at
    }
    /// <p>The timestamp when the assessment was last updated.</p>
    pub fn updated_at(&self) -> &::aws_smithy_types::DateTime {
        &self.updated_at
    }
    /// <p>A summary of the assessment across an organization. While the assessment is IN_PROGRESS, <code>totalAccounts</code> and <code>evaluatedAccounts</code> report progress; the full summary is available once the assessment finalizes. Omitted for single-account assessments.</p>
    pub fn organization_summary(&self) -> ::std::option::Option<&crate::types::OrganizationSummary> {
        self.organization_summary.as_ref()
    }
    /// <p>The event that started the assessment. The <code>trigger</code> field of the <code>StartAssessment</code> event in your AWS CloudTrail logs has the same value.</p>
    /// <ul>
    /// <li>
    /// <p><code>SCHEDULE</code> – The framework's assessment schedule.</p></li>
    /// <li>
    /// <p><code>DETECTED_CHANGE</code> – A relevant change to your resources.</p></li>
    /// <li>
    /// <p><code>USER_ACTION</code> – A <code>StartAssessment</code> call.</p></li>
    /// </ul>
    /// <p>This field is empty for assessments that ran before this value was available, or if the value isn't available for your account.</p>
    pub fn trigger(&self) -> ::std::option::Option<&crate::types::AssessmentTrigger> {
        self.trigger.as_ref()
    }
}
impl ::std::fmt::Debug for GetAssessmentOutput {
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
        let mut formatter = f.debug_struct("GetAssessmentOutput");
        formatter.field("assessment_id", &self.assessment_id);
        formatter.field("environment", &self.environment);
        formatter.field("framework", &self.framework);
        formatter.field("framework_version", &self.framework_version);
        formatter.field("control_id", &self.control_id);
        formatter.field("project", &self.project);
        formatter.field("status", &self.status);
        formatter.field("result", &"*** Sensitive Data Redacted ***");
        formatter.field("outcome_percentage", &self.outcome_percentage);
        formatter.field("context", &self.context);
        formatter.field("created_at", &self.created_at);
        formatter.field("updated_at", &self.updated_at);
        formatter.field("organization_summary", &self.organization_summary);
        formatter.field("trigger", &self.trigger);
        formatter.field("_request_id", &self._request_id);
        formatter.finish()
    }
}
impl ::aws_types::request_id::RequestId for GetAssessmentOutput {
    fn request_id(&self) -> Option<&str> {
        self._request_id.as_deref()
    }
}
impl GetAssessmentOutput {
    /// Creates a new builder-style object to manufacture [`GetAssessmentOutput`](crate::operation::get_assessment::GetAssessmentOutput).
    pub fn builder() -> crate::operation::get_assessment::builders::GetAssessmentOutputBuilder {
        crate::operation::get_assessment::builders::GetAssessmentOutputBuilder::default()
    }
}

/// A builder for [`GetAssessmentOutput`](crate::operation::get_assessment::GetAssessmentOutput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)]
#[non_exhaustive]
pub struct GetAssessmentOutputBuilder {
    pub(crate) assessment_id: ::std::option::Option<::std::string::String>,
    pub(crate) environment: ::std::option::Option<::std::string::String>,
    pub(crate) framework: ::std::option::Option<::std::string::String>,
    pub(crate) framework_version: ::std::option::Option<::std::string::String>,
    pub(crate) control_id: ::std::option::Option<::std::string::String>,
    pub(crate) project: ::std::option::Option<::std::string::String>,
    pub(crate) status: ::std::option::Option<crate::types::AssessmentStatus>,
    pub(crate) result: ::std::option::Option<::std::string::String>,
    pub(crate) outcome_percentage: ::std::option::Option<f32>,
    pub(crate) context: ::std::option::Option<::std::string::String>,
    pub(crate) created_at: ::std::option::Option<::aws_smithy_types::DateTime>,
    pub(crate) updated_at: ::std::option::Option<::aws_smithy_types::DateTime>,
    pub(crate) organization_summary: ::std::option::Option<crate::types::OrganizationSummary>,
    pub(crate) trigger: ::std::option::Option<crate::types::AssessmentTrigger>,
    _request_id: Option<String>,
}
impl GetAssessmentOutputBuilder {
    /// <p>The identifier of the assessment.</p>
    /// This field is required.
    pub fn assessment_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.assessment_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The identifier of the assessment.</p>
    pub fn set_assessment_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.assessment_id = input;
        self
    }
    /// <p>The identifier of the assessment.</p>
    pub fn get_assessment_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.assessment_id
    }
    /// <p>The name of the governance environment the assessment belongs to.</p>
    /// This field is required.
    pub fn environment(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.environment = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The name of the governance environment the assessment belongs to.</p>
    pub fn set_environment(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.environment = input;
        self
    }
    /// <p>The name of the governance environment the assessment belongs to.</p>
    pub fn get_environment(&self) -> &::std::option::Option<::std::string::String> {
        &self.environment
    }
    /// <p>The name of the compliance framework.</p>
    /// This field is required.
    pub fn framework(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.framework = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The name of the compliance framework.</p>
    pub fn set_framework(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.framework = input;
        self
    }
    /// <p>The name of the compliance framework.</p>
    pub fn get_framework(&self) -> &::std::option::Option<::std::string::String> {
        &self.framework
    }
    /// <p>The version of the compliance framework.</p>
    /// This field is required.
    pub fn framework_version(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.framework_version = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The version of the compliance framework.</p>
    pub fn set_framework_version(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.framework_version = input;
        self
    }
    /// <p>The version of the compliance framework.</p>
    pub fn get_framework_version(&self) -> &::std::option::Option<::std::string::String> {
        &self.framework_version
    }
    /// <p>The control identifier. Optional. If omitted, the operation applies to the full framework.</p>
    /// This field is required.
    pub fn control_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.control_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The control identifier. Optional. If omitted, the operation applies to the full framework.</p>
    pub fn set_control_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.control_id = input;
        self
    }
    /// <p>The control identifier. Optional. If omitted, the operation applies to the full framework.</p>
    pub fn get_control_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.control_id
    }
    /// <p>The name of the project.</p>
    /// This field is required.
    pub fn project(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.project = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The name of the project.</p>
    pub fn set_project(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.project = input;
        self
    }
    /// <p>The name of the project.</p>
    pub fn get_project(&self) -> &::std::option::Option<::std::string::String> {
        &self.project
    }
    /// <p>The canonical state of the assessment.</p>
    /// This field is required.
    pub fn status(mut self, input: crate::types::AssessmentStatus) -> Self {
        self.status = ::std::option::Option::Some(input);
        self
    }
    /// <p>The canonical state of the assessment.</p>
    pub fn set_status(mut self, input: ::std::option::Option<crate::types::AssessmentStatus>) -> Self {
        self.status = input;
        self
    }
    /// <p>The canonical state of the assessment.</p>
    pub fn get_status(&self) -> &::std::option::Option<crate::types::AssessmentStatus> {
        &self.status
    }
    /// <p>The detailed result of the assessment.</p>
    pub fn result(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.result = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The detailed result of the assessment.</p>
    pub fn set_result(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.result = input;
        self
    }
    /// <p>The detailed result of the assessment.</p>
    pub fn get_result(&self) -> &::std::option::Option<::std::string::String> {
        &self.result
    }
    /// <p>The numeric percentage score of the assessment outcome.</p>
    pub fn outcome_percentage(mut self, input: f32) -> Self {
        self.outcome_percentage = ::std::option::Option::Some(input);
        self
    }
    /// <p>The numeric percentage score of the assessment outcome.</p>
    pub fn set_outcome_percentage(mut self, input: ::std::option::Option<f32>) -> Self {
        self.outcome_percentage = input;
        self
    }
    /// <p>The numeric percentage score of the assessment outcome.</p>
    pub fn get_outcome_percentage(&self) -> &::std::option::Option<f32> {
        &self.outcome_percentage
    }
    /// <p>The optional user-provided context or guidance for the assessment evaluation.</p>
    pub fn context(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.context = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The optional user-provided context or guidance for the assessment evaluation.</p>
    pub fn set_context(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.context = input;
        self
    }
    /// <p>The optional user-provided context or guidance for the assessment evaluation.</p>
    pub fn get_context(&self) -> &::std::option::Option<::std::string::String> {
        &self.context
    }
    /// <p>The timestamp when the assessment was created.</p>
    /// This field is required.
    pub fn created_at(mut self, input: ::aws_smithy_types::DateTime) -> Self {
        self.created_at = ::std::option::Option::Some(input);
        self
    }
    /// <p>The timestamp when the assessment was created.</p>
    pub fn set_created_at(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
        self.created_at = input;
        self
    }
    /// <p>The timestamp when the assessment was created.</p>
    pub fn get_created_at(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
        &self.created_at
    }
    /// <p>The timestamp when the assessment was last updated.</p>
    /// This field is required.
    pub fn updated_at(mut self, input: ::aws_smithy_types::DateTime) -> Self {
        self.updated_at = ::std::option::Option::Some(input);
        self
    }
    /// <p>The timestamp when the assessment was last updated.</p>
    pub fn set_updated_at(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
        self.updated_at = input;
        self
    }
    /// <p>The timestamp when the assessment was last updated.</p>
    pub fn get_updated_at(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
        &self.updated_at
    }
    /// <p>A summary of the assessment across an organization. While the assessment is IN_PROGRESS, <code>totalAccounts</code> and <code>evaluatedAccounts</code> report progress; the full summary is available once the assessment finalizes. Omitted for single-account assessments.</p>
    pub fn organization_summary(mut self, input: crate::types::OrganizationSummary) -> Self {
        self.organization_summary = ::std::option::Option::Some(input);
        self
    }
    /// <p>A summary of the assessment across an organization. While the assessment is IN_PROGRESS, <code>totalAccounts</code> and <code>evaluatedAccounts</code> report progress; the full summary is available once the assessment finalizes. Omitted for single-account assessments.</p>
    pub fn set_organization_summary(mut self, input: ::std::option::Option<crate::types::OrganizationSummary>) -> Self {
        self.organization_summary = input;
        self
    }
    /// <p>A summary of the assessment across an organization. While the assessment is IN_PROGRESS, <code>totalAccounts</code> and <code>evaluatedAccounts</code> report progress; the full summary is available once the assessment finalizes. Omitted for single-account assessments.</p>
    pub fn get_organization_summary(&self) -> &::std::option::Option<crate::types::OrganizationSummary> {
        &self.organization_summary
    }
    /// <p>The event that started the assessment. The <code>trigger</code> field of the <code>StartAssessment</code> event in your AWS CloudTrail logs has the same value.</p>
    /// <ul>
    /// <li>
    /// <p><code>SCHEDULE</code> – The framework's assessment schedule.</p></li>
    /// <li>
    /// <p><code>DETECTED_CHANGE</code> – A relevant change to your resources.</p></li>
    /// <li>
    /// <p><code>USER_ACTION</code> – A <code>StartAssessment</code> call.</p></li>
    /// </ul>
    /// <p>This field is empty for assessments that ran before this value was available, or if the value isn't available for your account.</p>
    pub fn trigger(mut self, input: crate::types::AssessmentTrigger) -> Self {
        self.trigger = ::std::option::Option::Some(input);
        self
    }
    /// <p>The event that started the assessment. The <code>trigger</code> field of the <code>StartAssessment</code> event in your AWS CloudTrail logs has the same value.</p>
    /// <ul>
    /// <li>
    /// <p><code>SCHEDULE</code> – The framework's assessment schedule.</p></li>
    /// <li>
    /// <p><code>DETECTED_CHANGE</code> – A relevant change to your resources.</p></li>
    /// <li>
    /// <p><code>USER_ACTION</code> – A <code>StartAssessment</code> call.</p></li>
    /// </ul>
    /// <p>This field is empty for assessments that ran before this value was available, or if the value isn't available for your account.</p>
    pub fn set_trigger(mut self, input: ::std::option::Option<crate::types::AssessmentTrigger>) -> Self {
        self.trigger = input;
        self
    }
    /// <p>The event that started the assessment. The <code>trigger</code> field of the <code>StartAssessment</code> event in your AWS CloudTrail logs has the same value.</p>
    /// <ul>
    /// <li>
    /// <p><code>SCHEDULE</code> – The framework's assessment schedule.</p></li>
    /// <li>
    /// <p><code>DETECTED_CHANGE</code> – A relevant change to your resources.</p></li>
    /// <li>
    /// <p><code>USER_ACTION</code> – A <code>StartAssessment</code> call.</p></li>
    /// </ul>
    /// <p>This field is empty for assessments that ran before this value was available, or if the value isn't available for your account.</p>
    pub fn get_trigger(&self) -> &::std::option::Option<crate::types::AssessmentTrigger> {
        &self.trigger
    }
    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
        self._request_id = Some(request_id.into());
        self
    }

    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
        self._request_id = request_id;
        self
    }
    /// Consumes the builder and constructs a [`GetAssessmentOutput`](crate::operation::get_assessment::GetAssessmentOutput).
    /// This method will fail if any of the following fields are not set:
    /// - [`assessment_id`](crate::operation::get_assessment::builders::GetAssessmentOutputBuilder::assessment_id)
    /// - [`environment`](crate::operation::get_assessment::builders::GetAssessmentOutputBuilder::environment)
    /// - [`framework`](crate::operation::get_assessment::builders::GetAssessmentOutputBuilder::framework)
    /// - [`framework_version`](crate::operation::get_assessment::builders::GetAssessmentOutputBuilder::framework_version)
    /// - [`control_id`](crate::operation::get_assessment::builders::GetAssessmentOutputBuilder::control_id)
    /// - [`project`](crate::operation::get_assessment::builders::GetAssessmentOutputBuilder::project)
    /// - [`status`](crate::operation::get_assessment::builders::GetAssessmentOutputBuilder::status)
    /// - [`created_at`](crate::operation::get_assessment::builders::GetAssessmentOutputBuilder::created_at)
    /// - [`updated_at`](crate::operation::get_assessment::builders::GetAssessmentOutputBuilder::updated_at)
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::get_assessment::GetAssessmentOutput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::get_assessment::GetAssessmentOutput {
            assessment_id: self.assessment_id.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "assessment_id",
                    "assessment_id was not specified but it is required when building GetAssessmentOutput",
                )
            })?,
            environment: self.environment.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "environment",
                    "environment was not specified but it is required when building GetAssessmentOutput",
                )
            })?,
            framework: self.framework.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "framework",
                    "framework was not specified but it is required when building GetAssessmentOutput",
                )
            })?,
            framework_version: self.framework_version.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "framework_version",
                    "framework_version was not specified but it is required when building GetAssessmentOutput",
                )
            })?,
            control_id: self.control_id.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "control_id",
                    "control_id was not specified but it is required when building GetAssessmentOutput",
                )
            })?,
            project: self.project.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "project",
                    "project was not specified but it is required when building GetAssessmentOutput",
                )
            })?,
            status: self.status.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "status",
                    "status was not specified but it is required when building GetAssessmentOutput",
                )
            })?,
            result: self.result,
            outcome_percentage: self.outcome_percentage,
            context: self.context,
            created_at: self.created_at.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "created_at",
                    "created_at was not specified but it is required when building GetAssessmentOutput",
                )
            })?,
            updated_at: self.updated_at.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "updated_at",
                    "updated_at was not specified but it is required when building GetAssessmentOutput",
                )
            })?,
            organization_summary: self.organization_summary,
            trigger: self.trigger,
            _request_id: self._request_id,
        })
    }
}
impl ::std::fmt::Debug for GetAssessmentOutputBuilder {
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
        let mut formatter = f.debug_struct("GetAssessmentOutputBuilder");
        formatter.field("assessment_id", &self.assessment_id);
        formatter.field("environment", &self.environment);
        formatter.field("framework", &self.framework);
        formatter.field("framework_version", &self.framework_version);
        formatter.field("control_id", &self.control_id);
        formatter.field("project", &self.project);
        formatter.field("status", &self.status);
        formatter.field("result", &"*** Sensitive Data Redacted ***");
        formatter.field("outcome_percentage", &self.outcome_percentage);
        formatter.field("context", &self.context);
        formatter.field("created_at", &self.created_at);
        formatter.field("updated_at", &self.updated_at);
        formatter.field("organization_summary", &self.organization_summary);
        formatter.field("trigger", &self.trigger);
        formatter.field("_request_id", &self._request_id);
        formatter.finish()
    }
}