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
// 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 DescribeModelCardOutput {
/// <p>The Amazon Resource Name (ARN) of the model card.</p>
pub model_card_arn: ::std::option::Option<::std::string::String>,
/// <p>The name of the model card.</p>
pub model_card_name: ::std::option::Option<::std::string::String>,
/// <p>The version of the model card.</p>
pub model_card_version: ::std::option::Option<i32>,
/// <p>The content of the model card.</p>
pub content: ::std::option::Option<::std::string::String>,
/// <p>The approval status of the model card within your organization. Different organizations might have different criteria for model card review and approval.</p>
/// <ul>
/// <li>
/// <p><code>Draft</code>: The model card is a work in progress.</p></li>
/// <li>
/// <p><code>PendingReview</code>: The model card is pending review.</p></li>
/// <li>
/// <p><code>Approved</code>: The model card is approved.</p></li>
/// <li>
/// <p><code>Archived</code>: The model card is archived. No more updates should be made to the model card, but it can still be exported.</p></li>
/// </ul>
pub model_card_status: ::std::option::Option<crate::types::ModelCardStatus>,
/// <p>The security configuration used to protect model card content.</p>
pub security_config: ::std::option::Option<crate::types::ModelCardSecurityConfig>,
/// <p>The date and time the model card was created.</p>
pub creation_time: ::std::option::Option<::aws_smithy_types::DateTime>,
/// <p>Information about the user who created or modified a SageMaker resource.</p>
pub created_by: ::std::option::Option<crate::types::UserContext>,
/// <p>The date and time the model card was last modified.</p>
pub last_modified_time: ::std::option::Option<::aws_smithy_types::DateTime>,
/// <p>Information about the user who created or modified a SageMaker resource.</p>
pub last_modified_by: ::std::option::Option<crate::types::UserContext>,
/// <p>The processing status of model card deletion. The <code>ModelCardProcessingStatus</code> updates throughout the different deletion steps.</p>
/// <ul>
/// <li>
/// <p><code>DeletePending</code>: Model card deletion request received.</p></li>
/// <li>
/// <p><code>DeleteInProgress</code>: Model card deletion is in progress.</p></li>
/// <li>
/// <p><code>ContentDeleted</code>: Deleted model card content.</p></li>
/// <li>
/// <p><code>ExportJobsDeleted</code>: Deleted all export jobs associated with the model card.</p></li>
/// <li>
/// <p><code>DeleteCompleted</code>: Successfully deleted the model card.</p></li>
/// <li>
/// <p><code>DeleteFailed</code>: The model card failed to delete.</p></li>
/// </ul>
pub model_card_processing_status: ::std::option::Option<crate::types::ModelCardProcessingStatus>,
_request_id: Option<String>,
}
impl DescribeModelCardOutput {
/// <p>The Amazon Resource Name (ARN) of the model card.</p>
pub fn model_card_arn(&self) -> ::std::option::Option<&str> {
self.model_card_arn.as_deref()
}
/// <p>The name of the model card.</p>
pub fn model_card_name(&self) -> ::std::option::Option<&str> {
self.model_card_name.as_deref()
}
/// <p>The version of the model card.</p>
pub fn model_card_version(&self) -> ::std::option::Option<i32> {
self.model_card_version
}
/// <p>The content of the model card.</p>
pub fn content(&self) -> ::std::option::Option<&str> {
self.content.as_deref()
}
/// <p>The approval status of the model card within your organization. Different organizations might have different criteria for model card review and approval.</p>
/// <ul>
/// <li>
/// <p><code>Draft</code>: The model card is a work in progress.</p></li>
/// <li>
/// <p><code>PendingReview</code>: The model card is pending review.</p></li>
/// <li>
/// <p><code>Approved</code>: The model card is approved.</p></li>
/// <li>
/// <p><code>Archived</code>: The model card is archived. No more updates should be made to the model card, but it can still be exported.</p></li>
/// </ul>
pub fn model_card_status(&self) -> ::std::option::Option<&crate::types::ModelCardStatus> {
self.model_card_status.as_ref()
}
/// <p>The security configuration used to protect model card content.</p>
pub fn security_config(&self) -> ::std::option::Option<&crate::types::ModelCardSecurityConfig> {
self.security_config.as_ref()
}
/// <p>The date and time the model card was created.</p>
pub fn creation_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
self.creation_time.as_ref()
}
/// <p>Information about the user who created or modified a SageMaker resource.</p>
pub fn created_by(&self) -> ::std::option::Option<&crate::types::UserContext> {
self.created_by.as_ref()
}
/// <p>The date and time the model card was last modified.</p>
pub fn last_modified_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
self.last_modified_time.as_ref()
}
/// <p>Information about the user who created or modified a SageMaker resource.</p>
pub fn last_modified_by(&self) -> ::std::option::Option<&crate::types::UserContext> {
self.last_modified_by.as_ref()
}
/// <p>The processing status of model card deletion. The <code>ModelCardProcessingStatus</code> updates throughout the different deletion steps.</p>
/// <ul>
/// <li>
/// <p><code>DeletePending</code>: Model card deletion request received.</p></li>
/// <li>
/// <p><code>DeleteInProgress</code>: Model card deletion is in progress.</p></li>
/// <li>
/// <p><code>ContentDeleted</code>: Deleted model card content.</p></li>
/// <li>
/// <p><code>ExportJobsDeleted</code>: Deleted all export jobs associated with the model card.</p></li>
/// <li>
/// <p><code>DeleteCompleted</code>: Successfully deleted the model card.</p></li>
/// <li>
/// <p><code>DeleteFailed</code>: The model card failed to delete.</p></li>
/// </ul>
pub fn model_card_processing_status(&self) -> ::std::option::Option<&crate::types::ModelCardProcessingStatus> {
self.model_card_processing_status.as_ref()
}
}
impl ::std::fmt::Debug for DescribeModelCardOutput {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
let mut formatter = f.debug_struct("DescribeModelCardOutput");
formatter.field("model_card_arn", &self.model_card_arn);
formatter.field("model_card_name", &self.model_card_name);
formatter.field("model_card_version", &self.model_card_version);
formatter.field("content", &"*** Sensitive Data Redacted ***");
formatter.field("model_card_status", &self.model_card_status);
formatter.field("security_config", &self.security_config);
formatter.field("creation_time", &self.creation_time);
formatter.field("created_by", &self.created_by);
formatter.field("last_modified_time", &self.last_modified_time);
formatter.field("last_modified_by", &self.last_modified_by);
formatter.field("model_card_processing_status", &self.model_card_processing_status);
formatter.field("_request_id", &self._request_id);
formatter.finish()
}
}
impl ::aws_types::request_id::RequestId for DescribeModelCardOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl DescribeModelCardOutput {
/// Creates a new builder-style object to manufacture [`DescribeModelCardOutput`](crate::operation::describe_model_card::DescribeModelCardOutput).
pub fn builder() -> crate::operation::describe_model_card::builders::DescribeModelCardOutputBuilder {
crate::operation::describe_model_card::builders::DescribeModelCardOutputBuilder::default()
}
}
/// A builder for [`DescribeModelCardOutput`](crate::operation::describe_model_card::DescribeModelCardOutput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)]
#[non_exhaustive]
pub struct DescribeModelCardOutputBuilder {
pub(crate) model_card_arn: ::std::option::Option<::std::string::String>,
pub(crate) model_card_name: ::std::option::Option<::std::string::String>,
pub(crate) model_card_version: ::std::option::Option<i32>,
pub(crate) content: ::std::option::Option<::std::string::String>,
pub(crate) model_card_status: ::std::option::Option<crate::types::ModelCardStatus>,
pub(crate) security_config: ::std::option::Option<crate::types::ModelCardSecurityConfig>,
pub(crate) creation_time: ::std::option::Option<::aws_smithy_types::DateTime>,
pub(crate) created_by: ::std::option::Option<crate::types::UserContext>,
pub(crate) last_modified_time: ::std::option::Option<::aws_smithy_types::DateTime>,
pub(crate) last_modified_by: ::std::option::Option<crate::types::UserContext>,
pub(crate) model_card_processing_status: ::std::option::Option<crate::types::ModelCardProcessingStatus>,
_request_id: Option<String>,
}
impl DescribeModelCardOutputBuilder {
/// <p>The Amazon Resource Name (ARN) of the model card.</p>
/// This field is required.
pub fn model_card_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.model_card_arn = ::std::option::Option::Some(input.into());
self
}
/// <p>The Amazon Resource Name (ARN) of the model card.</p>
pub fn set_model_card_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.model_card_arn = input;
self
}
/// <p>The Amazon Resource Name (ARN) of the model card.</p>
pub fn get_model_card_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.model_card_arn
}
/// <p>The name of the model card.</p>
/// This field is required.
pub fn model_card_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.model_card_name = ::std::option::Option::Some(input.into());
self
}
/// <p>The name of the model card.</p>
pub fn set_model_card_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.model_card_name = input;
self
}
/// <p>The name of the model card.</p>
pub fn get_model_card_name(&self) -> &::std::option::Option<::std::string::String> {
&self.model_card_name
}
/// <p>The version of the model card.</p>
/// This field is required.
pub fn model_card_version(mut self, input: i32) -> Self {
self.model_card_version = ::std::option::Option::Some(input);
self
}
/// <p>The version of the model card.</p>
pub fn set_model_card_version(mut self, input: ::std::option::Option<i32>) -> Self {
self.model_card_version = input;
self
}
/// <p>The version of the model card.</p>
pub fn get_model_card_version(&self) -> &::std::option::Option<i32> {
&self.model_card_version
}
/// <p>The content of the model card.</p>
/// This field is required.
pub fn content(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.content = ::std::option::Option::Some(input.into());
self
}
/// <p>The content of the model card.</p>
pub fn set_content(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.content = input;
self
}
/// <p>The content of the model card.</p>
pub fn get_content(&self) -> &::std::option::Option<::std::string::String> {
&self.content
}
/// <p>The approval status of the model card within your organization. Different organizations might have different criteria for model card review and approval.</p>
/// <ul>
/// <li>
/// <p><code>Draft</code>: The model card is a work in progress.</p></li>
/// <li>
/// <p><code>PendingReview</code>: The model card is pending review.</p></li>
/// <li>
/// <p><code>Approved</code>: The model card is approved.</p></li>
/// <li>
/// <p><code>Archived</code>: The model card is archived. No more updates should be made to the model card, but it can still be exported.</p></li>
/// </ul>
/// This field is required.
pub fn model_card_status(mut self, input: crate::types::ModelCardStatus) -> Self {
self.model_card_status = ::std::option::Option::Some(input);
self
}
/// <p>The approval status of the model card within your organization. Different organizations might have different criteria for model card review and approval.</p>
/// <ul>
/// <li>
/// <p><code>Draft</code>: The model card is a work in progress.</p></li>
/// <li>
/// <p><code>PendingReview</code>: The model card is pending review.</p></li>
/// <li>
/// <p><code>Approved</code>: The model card is approved.</p></li>
/// <li>
/// <p><code>Archived</code>: The model card is archived. No more updates should be made to the model card, but it can still be exported.</p></li>
/// </ul>
pub fn set_model_card_status(mut self, input: ::std::option::Option<crate::types::ModelCardStatus>) -> Self {
self.model_card_status = input;
self
}
/// <p>The approval status of the model card within your organization. Different organizations might have different criteria for model card review and approval.</p>
/// <ul>
/// <li>
/// <p><code>Draft</code>: The model card is a work in progress.</p></li>
/// <li>
/// <p><code>PendingReview</code>: The model card is pending review.</p></li>
/// <li>
/// <p><code>Approved</code>: The model card is approved.</p></li>
/// <li>
/// <p><code>Archived</code>: The model card is archived. No more updates should be made to the model card, but it can still be exported.</p></li>
/// </ul>
pub fn get_model_card_status(&self) -> &::std::option::Option<crate::types::ModelCardStatus> {
&self.model_card_status
}
/// <p>The security configuration used to protect model card content.</p>
pub fn security_config(mut self, input: crate::types::ModelCardSecurityConfig) -> Self {
self.security_config = ::std::option::Option::Some(input);
self
}
/// <p>The security configuration used to protect model card content.</p>
pub fn set_security_config(mut self, input: ::std::option::Option<crate::types::ModelCardSecurityConfig>) -> Self {
self.security_config = input;
self
}
/// <p>The security configuration used to protect model card content.</p>
pub fn get_security_config(&self) -> &::std::option::Option<crate::types::ModelCardSecurityConfig> {
&self.security_config
}
/// <p>The date and time the model card was created.</p>
/// This field is required.
pub fn creation_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.creation_time = ::std::option::Option::Some(input);
self
}
/// <p>The date and time the model card was created.</p>
pub fn set_creation_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.creation_time = input;
self
}
/// <p>The date and time the model card was created.</p>
pub fn get_creation_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.creation_time
}
/// <p>Information about the user who created or modified a SageMaker resource.</p>
/// This field is required.
pub fn created_by(mut self, input: crate::types::UserContext) -> Self {
self.created_by = ::std::option::Option::Some(input);
self
}
/// <p>Information about the user who created or modified a SageMaker resource.</p>
pub fn set_created_by(mut self, input: ::std::option::Option<crate::types::UserContext>) -> Self {
self.created_by = input;
self
}
/// <p>Information about the user who created or modified a SageMaker resource.</p>
pub fn get_created_by(&self) -> &::std::option::Option<crate::types::UserContext> {
&self.created_by
}
/// <p>The date and time the model card was last modified.</p>
pub fn last_modified_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.last_modified_time = ::std::option::Option::Some(input);
self
}
/// <p>The date and time the model card was last modified.</p>
pub fn set_last_modified_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.last_modified_time = input;
self
}
/// <p>The date and time the model card was last modified.</p>
pub fn get_last_modified_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.last_modified_time
}
/// <p>Information about the user who created or modified a SageMaker resource.</p>
pub fn last_modified_by(mut self, input: crate::types::UserContext) -> Self {
self.last_modified_by = ::std::option::Option::Some(input);
self
}
/// <p>Information about the user who created or modified a SageMaker resource.</p>
pub fn set_last_modified_by(mut self, input: ::std::option::Option<crate::types::UserContext>) -> Self {
self.last_modified_by = input;
self
}
/// <p>Information about the user who created or modified a SageMaker resource.</p>
pub fn get_last_modified_by(&self) -> &::std::option::Option<crate::types::UserContext> {
&self.last_modified_by
}
/// <p>The processing status of model card deletion. The <code>ModelCardProcessingStatus</code> updates throughout the different deletion steps.</p>
/// <ul>
/// <li>
/// <p><code>DeletePending</code>: Model card deletion request received.</p></li>
/// <li>
/// <p><code>DeleteInProgress</code>: Model card deletion is in progress.</p></li>
/// <li>
/// <p><code>ContentDeleted</code>: Deleted model card content.</p></li>
/// <li>
/// <p><code>ExportJobsDeleted</code>: Deleted all export jobs associated with the model card.</p></li>
/// <li>
/// <p><code>DeleteCompleted</code>: Successfully deleted the model card.</p></li>
/// <li>
/// <p><code>DeleteFailed</code>: The model card failed to delete.</p></li>
/// </ul>
pub fn model_card_processing_status(mut self, input: crate::types::ModelCardProcessingStatus) -> Self {
self.model_card_processing_status = ::std::option::Option::Some(input);
self
}
/// <p>The processing status of model card deletion. The <code>ModelCardProcessingStatus</code> updates throughout the different deletion steps.</p>
/// <ul>
/// <li>
/// <p><code>DeletePending</code>: Model card deletion request received.</p></li>
/// <li>
/// <p><code>DeleteInProgress</code>: Model card deletion is in progress.</p></li>
/// <li>
/// <p><code>ContentDeleted</code>: Deleted model card content.</p></li>
/// <li>
/// <p><code>ExportJobsDeleted</code>: Deleted all export jobs associated with the model card.</p></li>
/// <li>
/// <p><code>DeleteCompleted</code>: Successfully deleted the model card.</p></li>
/// <li>
/// <p><code>DeleteFailed</code>: The model card failed to delete.</p></li>
/// </ul>
pub fn set_model_card_processing_status(mut self, input: ::std::option::Option<crate::types::ModelCardProcessingStatus>) -> Self {
self.model_card_processing_status = input;
self
}
/// <p>The processing status of model card deletion. The <code>ModelCardProcessingStatus</code> updates throughout the different deletion steps.</p>
/// <ul>
/// <li>
/// <p><code>DeletePending</code>: Model card deletion request received.</p></li>
/// <li>
/// <p><code>DeleteInProgress</code>: Model card deletion is in progress.</p></li>
/// <li>
/// <p><code>ContentDeleted</code>: Deleted model card content.</p></li>
/// <li>
/// <p><code>ExportJobsDeleted</code>: Deleted all export jobs associated with the model card.</p></li>
/// <li>
/// <p><code>DeleteCompleted</code>: Successfully deleted the model card.</p></li>
/// <li>
/// <p><code>DeleteFailed</code>: The model card failed to delete.</p></li>
/// </ul>
pub fn get_model_card_processing_status(&self) -> &::std::option::Option<crate::types::ModelCardProcessingStatus> {
&self.model_card_processing_status
}
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 [`DescribeModelCardOutput`](crate::operation::describe_model_card::DescribeModelCardOutput).
pub fn build(self) -> crate::operation::describe_model_card::DescribeModelCardOutput {
crate::operation::describe_model_card::DescribeModelCardOutput {
model_card_arn: self.model_card_arn,
model_card_name: self.model_card_name,
model_card_version: self.model_card_version,
content: self.content,
model_card_status: self.model_card_status,
security_config: self.security_config,
creation_time: self.creation_time,
created_by: self.created_by,
last_modified_time: self.last_modified_time,
last_modified_by: self.last_modified_by,
model_card_processing_status: self.model_card_processing_status,
_request_id: self._request_id,
}
}
}
impl ::std::fmt::Debug for DescribeModelCardOutputBuilder {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
let mut formatter = f.debug_struct("DescribeModelCardOutputBuilder");
formatter.field("model_card_arn", &self.model_card_arn);
formatter.field("model_card_name", &self.model_card_name);
formatter.field("model_card_version", &self.model_card_version);
formatter.field("content", &"*** Sensitive Data Redacted ***");
formatter.field("model_card_status", &self.model_card_status);
formatter.field("security_config", &self.security_config);
formatter.field("creation_time", &self.creation_time);
formatter.field("created_by", &self.created_by);
formatter.field("last_modified_time", &self.last_modified_time);
formatter.field("last_modified_by", &self.last_modified_by);
formatter.field("model_card_processing_status", &self.model_card_processing_status);
formatter.field("_request_id", &self._request_id);
formatter.finish()
}
}