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
// 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, ::std::fmt::Debug)]
pub struct DescribePartnerAppOutput {
/// <p>The ARN of the SageMaker Partner AI App that was described.</p>
pub arn: ::std::option::Option<::std::string::String>,
/// <p>The name of the SageMaker Partner AI App.</p>
pub name: ::std::option::Option<::std::string::String>,
/// <p>The type of SageMaker Partner AI App. Must be one of the following: <code>lakera-guard</code>, <code>comet</code>, <code>deepchecks-llm-evaluation</code>, or <code>fiddler</code>.</p>
pub r#type: ::std::option::Option<crate::types::PartnerAppType>,
/// <p>The status of the SageMaker Partner AI App.</p>
/// <ul>
/// <li>
/// <p>Creating: SageMaker AI is creating the partner AI app. The partner AI app is not available during creation.</p></li>
/// <li>
/// <p>Updating: SageMaker AI is updating the partner AI app. The partner AI app is not available when updating.</p></li>
/// <li>
/// <p>Deleting: SageMaker AI is deleting the partner AI app. The partner AI app is not available during deletion.</p></li>
/// <li>
/// <p>Available: The partner AI app is provisioned and accessible.</p></li>
/// <li>
/// <p>Failed: The partner AI app is in a failed state and isn't available. SageMaker AI is investigating the issue. For further guidance, contact Amazon Web Services Support.</p></li>
/// <li>
/// <p>UpdateFailed: The partner AI app couldn't be updated but is available.</p></li>
/// <li>
/// <p>Deleted: The partner AI app is permanently deleted and not available.</p></li>
/// </ul>
pub status: ::std::option::Option<crate::types::PartnerAppStatus>,
/// <p>The time that the SageMaker Partner AI App was created.</p>
pub creation_time: ::std::option::Option<::aws_smithy_types::DateTime>,
/// <p>The time that the SageMaker Partner AI App was last modified.</p>
pub last_modified_time: ::std::option::Option<::aws_smithy_types::DateTime>,
/// <p>The ARN of the IAM role associated with the SageMaker Partner AI App.</p>
pub execution_role_arn: ::std::option::Option<::std::string::String>,
/// <p>The Amazon Web Services KMS customer managed key used to encrypt the data at rest associated with SageMaker Partner AI Apps.</p>
pub kms_key_id: ::std::option::Option<::std::string::String>,
/// <p>The URL of the SageMaker Partner AI App that the Application SDK uses to support in-app calls for the user.</p>
pub base_url: ::std::option::Option<::std::string::String>,
/// <p>Maintenance configuration settings for the SageMaker Partner AI App.</p>
pub maintenance_config: ::std::option::Option<crate::types::PartnerAppMaintenanceConfig>,
/// <p>The instance type and size of the cluster attached to the SageMaker Partner AI App.</p>
pub tier: ::std::option::Option<::std::string::String>,
/// <p>The version of the SageMaker Partner AI App.</p>
pub version: ::std::option::Option<::std::string::String>,
/// <p>Configuration settings for the SageMaker Partner AI App.</p>
pub application_config: ::std::option::Option<crate::types::PartnerAppConfig>,
/// <p>The authorization type that users use to access the SageMaker Partner AI App.</p>
pub auth_type: ::std::option::Option<crate::types::PartnerAppAuthType>,
/// <p>When set to <code>TRUE</code>, the SageMaker Partner AI App sets the Amazon Web Services IAM session name or the authenticated IAM user as the identity of the SageMaker Partner AI App user.</p>
pub enable_iam_session_based_identity: ::std::option::Option<bool>,
/// <p>This is an error field object that contains the error code and the reason for an operation failure.</p>
pub error: ::std::option::Option<crate::types::ErrorInfo>,
/// <p>Indicates whether the SageMaker Partner AI App is configured for automatic minor version upgrades during scheduled maintenance windows.</p>
pub enable_auto_minor_version_upgrade: ::std::option::Option<bool>,
/// <p>The end-of-life date for the current version of the SageMaker Partner AI App.</p>
pub current_version_eol_date: ::std::option::Option<::aws_smithy_types::DateTime>,
/// <p>A map of available minor version upgrades for the SageMaker Partner AI App. The key is the semantic version number, and the value is a list of release notes for that version. A null value indicates no upgrades are available.</p>
pub available_upgrade: ::std::option::Option<crate::types::AvailableUpgrade>,
_request_id: Option<String>,
}
impl DescribePartnerAppOutput {
/// <p>The ARN of the SageMaker Partner AI App that was described.</p>
pub fn arn(&self) -> ::std::option::Option<&str> {
self.arn.as_deref()
}
/// <p>The name of the SageMaker Partner AI App.</p>
pub fn name(&self) -> ::std::option::Option<&str> {
self.name.as_deref()
}
/// <p>The type of SageMaker Partner AI App. Must be one of the following: <code>lakera-guard</code>, <code>comet</code>, <code>deepchecks-llm-evaluation</code>, or <code>fiddler</code>.</p>
pub fn r#type(&self) -> ::std::option::Option<&crate::types::PartnerAppType> {
self.r#type.as_ref()
}
/// <p>The status of the SageMaker Partner AI App.</p>
/// <ul>
/// <li>
/// <p>Creating: SageMaker AI is creating the partner AI app. The partner AI app is not available during creation.</p></li>
/// <li>
/// <p>Updating: SageMaker AI is updating the partner AI app. The partner AI app is not available when updating.</p></li>
/// <li>
/// <p>Deleting: SageMaker AI is deleting the partner AI app. The partner AI app is not available during deletion.</p></li>
/// <li>
/// <p>Available: The partner AI app is provisioned and accessible.</p></li>
/// <li>
/// <p>Failed: The partner AI app is in a failed state and isn't available. SageMaker AI is investigating the issue. For further guidance, contact Amazon Web Services Support.</p></li>
/// <li>
/// <p>UpdateFailed: The partner AI app couldn't be updated but is available.</p></li>
/// <li>
/// <p>Deleted: The partner AI app is permanently deleted and not available.</p></li>
/// </ul>
pub fn status(&self) -> ::std::option::Option<&crate::types::PartnerAppStatus> {
self.status.as_ref()
}
/// <p>The time that the SageMaker Partner AI App was created.</p>
pub fn creation_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
self.creation_time.as_ref()
}
/// <p>The time that the SageMaker Partner AI App was last modified.</p>
pub fn last_modified_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
self.last_modified_time.as_ref()
}
/// <p>The ARN of the IAM role associated with the SageMaker Partner AI App.</p>
pub fn execution_role_arn(&self) -> ::std::option::Option<&str> {
self.execution_role_arn.as_deref()
}
/// <p>The Amazon Web Services KMS customer managed key used to encrypt the data at rest associated with SageMaker Partner AI Apps.</p>
pub fn kms_key_id(&self) -> ::std::option::Option<&str> {
self.kms_key_id.as_deref()
}
/// <p>The URL of the SageMaker Partner AI App that the Application SDK uses to support in-app calls for the user.</p>
pub fn base_url(&self) -> ::std::option::Option<&str> {
self.base_url.as_deref()
}
/// <p>Maintenance configuration settings for the SageMaker Partner AI App.</p>
pub fn maintenance_config(&self) -> ::std::option::Option<&crate::types::PartnerAppMaintenanceConfig> {
self.maintenance_config.as_ref()
}
/// <p>The instance type and size of the cluster attached to the SageMaker Partner AI App.</p>
pub fn tier(&self) -> ::std::option::Option<&str> {
self.tier.as_deref()
}
/// <p>The version of the SageMaker Partner AI App.</p>
pub fn version(&self) -> ::std::option::Option<&str> {
self.version.as_deref()
}
/// <p>Configuration settings for the SageMaker Partner AI App.</p>
pub fn application_config(&self) -> ::std::option::Option<&crate::types::PartnerAppConfig> {
self.application_config.as_ref()
}
/// <p>The authorization type that users use to access the SageMaker Partner AI App.</p>
pub fn auth_type(&self) -> ::std::option::Option<&crate::types::PartnerAppAuthType> {
self.auth_type.as_ref()
}
/// <p>When set to <code>TRUE</code>, the SageMaker Partner AI App sets the Amazon Web Services IAM session name or the authenticated IAM user as the identity of the SageMaker Partner AI App user.</p>
pub fn enable_iam_session_based_identity(&self) -> ::std::option::Option<bool> {
self.enable_iam_session_based_identity
}
/// <p>This is an error field object that contains the error code and the reason for an operation failure.</p>
pub fn error(&self) -> ::std::option::Option<&crate::types::ErrorInfo> {
self.error.as_ref()
}
/// <p>Indicates whether the SageMaker Partner AI App is configured for automatic minor version upgrades during scheduled maintenance windows.</p>
pub fn enable_auto_minor_version_upgrade(&self) -> ::std::option::Option<bool> {
self.enable_auto_minor_version_upgrade
}
/// <p>The end-of-life date for the current version of the SageMaker Partner AI App.</p>
pub fn current_version_eol_date(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
self.current_version_eol_date.as_ref()
}
/// <p>A map of available minor version upgrades for the SageMaker Partner AI App. The key is the semantic version number, and the value is a list of release notes for that version. A null value indicates no upgrades are available.</p>
pub fn available_upgrade(&self) -> ::std::option::Option<&crate::types::AvailableUpgrade> {
self.available_upgrade.as_ref()
}
}
impl ::aws_types::request_id::RequestId for DescribePartnerAppOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl DescribePartnerAppOutput {
/// Creates a new builder-style object to manufacture [`DescribePartnerAppOutput`](crate::operation::describe_partner_app::DescribePartnerAppOutput).
pub fn builder() -> crate::operation::describe_partner_app::builders::DescribePartnerAppOutputBuilder {
crate::operation::describe_partner_app::builders::DescribePartnerAppOutputBuilder::default()
}
}
/// A builder for [`DescribePartnerAppOutput`](crate::operation::describe_partner_app::DescribePartnerAppOutput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DescribePartnerAppOutputBuilder {
pub(crate) arn: ::std::option::Option<::std::string::String>,
pub(crate) name: ::std::option::Option<::std::string::String>,
pub(crate) r#type: ::std::option::Option<crate::types::PartnerAppType>,
pub(crate) status: ::std::option::Option<crate::types::PartnerAppStatus>,
pub(crate) creation_time: ::std::option::Option<::aws_smithy_types::DateTime>,
pub(crate) last_modified_time: ::std::option::Option<::aws_smithy_types::DateTime>,
pub(crate) execution_role_arn: ::std::option::Option<::std::string::String>,
pub(crate) kms_key_id: ::std::option::Option<::std::string::String>,
pub(crate) base_url: ::std::option::Option<::std::string::String>,
pub(crate) maintenance_config: ::std::option::Option<crate::types::PartnerAppMaintenanceConfig>,
pub(crate) tier: ::std::option::Option<::std::string::String>,
pub(crate) version: ::std::option::Option<::std::string::String>,
pub(crate) application_config: ::std::option::Option<crate::types::PartnerAppConfig>,
pub(crate) auth_type: ::std::option::Option<crate::types::PartnerAppAuthType>,
pub(crate) enable_iam_session_based_identity: ::std::option::Option<bool>,
pub(crate) error: ::std::option::Option<crate::types::ErrorInfo>,
pub(crate) enable_auto_minor_version_upgrade: ::std::option::Option<bool>,
pub(crate) current_version_eol_date: ::std::option::Option<::aws_smithy_types::DateTime>,
pub(crate) available_upgrade: ::std::option::Option<crate::types::AvailableUpgrade>,
_request_id: Option<String>,
}
impl DescribePartnerAppOutputBuilder {
/// <p>The ARN of the SageMaker Partner AI App that was described.</p>
pub fn arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.arn = ::std::option::Option::Some(input.into());
self
}
/// <p>The ARN of the SageMaker Partner AI App that was described.</p>
pub fn set_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.arn = input;
self
}
/// <p>The ARN of the SageMaker Partner AI App that was described.</p>
pub fn get_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.arn
}
/// <p>The name of the SageMaker Partner AI App.</p>
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 of the SageMaker Partner AI App.</p>
pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.name = input;
self
}
/// <p>The name of the SageMaker Partner AI App.</p>
pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
&self.name
}
/// <p>The type of SageMaker Partner AI App. Must be one of the following: <code>lakera-guard</code>, <code>comet</code>, <code>deepchecks-llm-evaluation</code>, or <code>fiddler</code>.</p>
pub fn r#type(mut self, input: crate::types::PartnerAppType) -> Self {
self.r#type = ::std::option::Option::Some(input);
self
}
/// <p>The type of SageMaker Partner AI App. Must be one of the following: <code>lakera-guard</code>, <code>comet</code>, <code>deepchecks-llm-evaluation</code>, or <code>fiddler</code>.</p>
pub fn set_type(mut self, input: ::std::option::Option<crate::types::PartnerAppType>) -> Self {
self.r#type = input;
self
}
/// <p>The type of SageMaker Partner AI App. Must be one of the following: <code>lakera-guard</code>, <code>comet</code>, <code>deepchecks-llm-evaluation</code>, or <code>fiddler</code>.</p>
pub fn get_type(&self) -> &::std::option::Option<crate::types::PartnerAppType> {
&self.r#type
}
/// <p>The status of the SageMaker Partner AI App.</p>
/// <ul>
/// <li>
/// <p>Creating: SageMaker AI is creating the partner AI app. The partner AI app is not available during creation.</p></li>
/// <li>
/// <p>Updating: SageMaker AI is updating the partner AI app. The partner AI app is not available when updating.</p></li>
/// <li>
/// <p>Deleting: SageMaker AI is deleting the partner AI app. The partner AI app is not available during deletion.</p></li>
/// <li>
/// <p>Available: The partner AI app is provisioned and accessible.</p></li>
/// <li>
/// <p>Failed: The partner AI app is in a failed state and isn't available. SageMaker AI is investigating the issue. For further guidance, contact Amazon Web Services Support.</p></li>
/// <li>
/// <p>UpdateFailed: The partner AI app couldn't be updated but is available.</p></li>
/// <li>
/// <p>Deleted: The partner AI app is permanently deleted and not available.</p></li>
/// </ul>
pub fn status(mut self, input: crate::types::PartnerAppStatus) -> Self {
self.status = ::std::option::Option::Some(input);
self
}
/// <p>The status of the SageMaker Partner AI App.</p>
/// <ul>
/// <li>
/// <p>Creating: SageMaker AI is creating the partner AI app. The partner AI app is not available during creation.</p></li>
/// <li>
/// <p>Updating: SageMaker AI is updating the partner AI app. The partner AI app is not available when updating.</p></li>
/// <li>
/// <p>Deleting: SageMaker AI is deleting the partner AI app. The partner AI app is not available during deletion.</p></li>
/// <li>
/// <p>Available: The partner AI app is provisioned and accessible.</p></li>
/// <li>
/// <p>Failed: The partner AI app is in a failed state and isn't available. SageMaker AI is investigating the issue. For further guidance, contact Amazon Web Services Support.</p></li>
/// <li>
/// <p>UpdateFailed: The partner AI app couldn't be updated but is available.</p></li>
/// <li>
/// <p>Deleted: The partner AI app is permanently deleted and not available.</p></li>
/// </ul>
pub fn set_status(mut self, input: ::std::option::Option<crate::types::PartnerAppStatus>) -> Self {
self.status = input;
self
}
/// <p>The status of the SageMaker Partner AI App.</p>
/// <ul>
/// <li>
/// <p>Creating: SageMaker AI is creating the partner AI app. The partner AI app is not available during creation.</p></li>
/// <li>
/// <p>Updating: SageMaker AI is updating the partner AI app. The partner AI app is not available when updating.</p></li>
/// <li>
/// <p>Deleting: SageMaker AI is deleting the partner AI app. The partner AI app is not available during deletion.</p></li>
/// <li>
/// <p>Available: The partner AI app is provisioned and accessible.</p></li>
/// <li>
/// <p>Failed: The partner AI app is in a failed state and isn't available. SageMaker AI is investigating the issue. For further guidance, contact Amazon Web Services Support.</p></li>
/// <li>
/// <p>UpdateFailed: The partner AI app couldn't be updated but is available.</p></li>
/// <li>
/// <p>Deleted: The partner AI app is permanently deleted and not available.</p></li>
/// </ul>
pub fn get_status(&self) -> &::std::option::Option<crate::types::PartnerAppStatus> {
&self.status
}
/// <p>The time that the SageMaker Partner AI App was created.</p>
pub fn creation_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.creation_time = ::std::option::Option::Some(input);
self
}
/// <p>The time that the SageMaker Partner AI App 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 time that the SageMaker Partner AI App was created.</p>
pub fn get_creation_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.creation_time
}
/// <p>The time that the SageMaker Partner AI App 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 time that the SageMaker Partner AI App 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 time that the SageMaker Partner AI App was last modified.</p>
pub fn get_last_modified_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.last_modified_time
}
/// <p>The ARN of the IAM role associated with the SageMaker Partner AI App.</p>
pub fn execution_role_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.execution_role_arn = ::std::option::Option::Some(input.into());
self
}
/// <p>The ARN of the IAM role associated with the SageMaker Partner AI App.</p>
pub fn set_execution_role_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.execution_role_arn = input;
self
}
/// <p>The ARN of the IAM role associated with the SageMaker Partner AI App.</p>
pub fn get_execution_role_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.execution_role_arn
}
/// <p>The Amazon Web Services KMS customer managed key used to encrypt the data at rest associated with SageMaker Partner AI Apps.</p>
pub fn kms_key_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.kms_key_id = ::std::option::Option::Some(input.into());
self
}
/// <p>The Amazon Web Services KMS customer managed key used to encrypt the data at rest associated with SageMaker Partner AI Apps.</p>
pub fn set_kms_key_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.kms_key_id = input;
self
}
/// <p>The Amazon Web Services KMS customer managed key used to encrypt the data at rest associated with SageMaker Partner AI Apps.</p>
pub fn get_kms_key_id(&self) -> &::std::option::Option<::std::string::String> {
&self.kms_key_id
}
/// <p>The URL of the SageMaker Partner AI App that the Application SDK uses to support in-app calls for the user.</p>
pub fn base_url(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.base_url = ::std::option::Option::Some(input.into());
self
}
/// <p>The URL of the SageMaker Partner AI App that the Application SDK uses to support in-app calls for the user.</p>
pub fn set_base_url(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.base_url = input;
self
}
/// <p>The URL of the SageMaker Partner AI App that the Application SDK uses to support in-app calls for the user.</p>
pub fn get_base_url(&self) -> &::std::option::Option<::std::string::String> {
&self.base_url
}
/// <p>Maintenance configuration settings for the SageMaker Partner AI App.</p>
pub fn maintenance_config(mut self, input: crate::types::PartnerAppMaintenanceConfig) -> Self {
self.maintenance_config = ::std::option::Option::Some(input);
self
}
/// <p>Maintenance configuration settings for the SageMaker Partner AI App.</p>
pub fn set_maintenance_config(mut self, input: ::std::option::Option<crate::types::PartnerAppMaintenanceConfig>) -> Self {
self.maintenance_config = input;
self
}
/// <p>Maintenance configuration settings for the SageMaker Partner AI App.</p>
pub fn get_maintenance_config(&self) -> &::std::option::Option<crate::types::PartnerAppMaintenanceConfig> {
&self.maintenance_config
}
/// <p>The instance type and size of the cluster attached to the SageMaker Partner AI App.</p>
pub fn tier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.tier = ::std::option::Option::Some(input.into());
self
}
/// <p>The instance type and size of the cluster attached to the SageMaker Partner AI App.</p>
pub fn set_tier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.tier = input;
self
}
/// <p>The instance type and size of the cluster attached to the SageMaker Partner AI App.</p>
pub fn get_tier(&self) -> &::std::option::Option<::std::string::String> {
&self.tier
}
/// <p>The version of the SageMaker Partner AI App.</p>
pub fn version(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.version = ::std::option::Option::Some(input.into());
self
}
/// <p>The version of the SageMaker Partner AI App.</p>
pub fn set_version(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.version = input;
self
}
/// <p>The version of the SageMaker Partner AI App.</p>
pub fn get_version(&self) -> &::std::option::Option<::std::string::String> {
&self.version
}
/// <p>Configuration settings for the SageMaker Partner AI App.</p>
pub fn application_config(mut self, input: crate::types::PartnerAppConfig) -> Self {
self.application_config = ::std::option::Option::Some(input);
self
}
/// <p>Configuration settings for the SageMaker Partner AI App.</p>
pub fn set_application_config(mut self, input: ::std::option::Option<crate::types::PartnerAppConfig>) -> Self {
self.application_config = input;
self
}
/// <p>Configuration settings for the SageMaker Partner AI App.</p>
pub fn get_application_config(&self) -> &::std::option::Option<crate::types::PartnerAppConfig> {
&self.application_config
}
/// <p>The authorization type that users use to access the SageMaker Partner AI App.</p>
pub fn auth_type(mut self, input: crate::types::PartnerAppAuthType) -> Self {
self.auth_type = ::std::option::Option::Some(input);
self
}
/// <p>The authorization type that users use to access the SageMaker Partner AI App.</p>
pub fn set_auth_type(mut self, input: ::std::option::Option<crate::types::PartnerAppAuthType>) -> Self {
self.auth_type = input;
self
}
/// <p>The authorization type that users use to access the SageMaker Partner AI App.</p>
pub fn get_auth_type(&self) -> &::std::option::Option<crate::types::PartnerAppAuthType> {
&self.auth_type
}
/// <p>When set to <code>TRUE</code>, the SageMaker Partner AI App sets the Amazon Web Services IAM session name or the authenticated IAM user as the identity of the SageMaker Partner AI App user.</p>
pub fn enable_iam_session_based_identity(mut self, input: bool) -> Self {
self.enable_iam_session_based_identity = ::std::option::Option::Some(input);
self
}
/// <p>When set to <code>TRUE</code>, the SageMaker Partner AI App sets the Amazon Web Services IAM session name or the authenticated IAM user as the identity of the SageMaker Partner AI App user.</p>
pub fn set_enable_iam_session_based_identity(mut self, input: ::std::option::Option<bool>) -> Self {
self.enable_iam_session_based_identity = input;
self
}
/// <p>When set to <code>TRUE</code>, the SageMaker Partner AI App sets the Amazon Web Services IAM session name or the authenticated IAM user as the identity of the SageMaker Partner AI App user.</p>
pub fn get_enable_iam_session_based_identity(&self) -> &::std::option::Option<bool> {
&self.enable_iam_session_based_identity
}
/// <p>This is an error field object that contains the error code and the reason for an operation failure.</p>
pub fn error(mut self, input: crate::types::ErrorInfo) -> Self {
self.error = ::std::option::Option::Some(input);
self
}
/// <p>This is an error field object that contains the error code and the reason for an operation failure.</p>
pub fn set_error(mut self, input: ::std::option::Option<crate::types::ErrorInfo>) -> Self {
self.error = input;
self
}
/// <p>This is an error field object that contains the error code and the reason for an operation failure.</p>
pub fn get_error(&self) -> &::std::option::Option<crate::types::ErrorInfo> {
&self.error
}
/// <p>Indicates whether the SageMaker Partner AI App is configured for automatic minor version upgrades during scheduled maintenance windows.</p>
pub fn enable_auto_minor_version_upgrade(mut self, input: bool) -> Self {
self.enable_auto_minor_version_upgrade = ::std::option::Option::Some(input);
self
}
/// <p>Indicates whether the SageMaker Partner AI App is configured for automatic minor version upgrades during scheduled maintenance windows.</p>
pub fn set_enable_auto_minor_version_upgrade(mut self, input: ::std::option::Option<bool>) -> Self {
self.enable_auto_minor_version_upgrade = input;
self
}
/// <p>Indicates whether the SageMaker Partner AI App is configured for automatic minor version upgrades during scheduled maintenance windows.</p>
pub fn get_enable_auto_minor_version_upgrade(&self) -> &::std::option::Option<bool> {
&self.enable_auto_minor_version_upgrade
}
/// <p>The end-of-life date for the current version of the SageMaker Partner AI App.</p>
pub fn current_version_eol_date(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.current_version_eol_date = ::std::option::Option::Some(input);
self
}
/// <p>The end-of-life date for the current version of the SageMaker Partner AI App.</p>
pub fn set_current_version_eol_date(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.current_version_eol_date = input;
self
}
/// <p>The end-of-life date for the current version of the SageMaker Partner AI App.</p>
pub fn get_current_version_eol_date(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.current_version_eol_date
}
/// <p>A map of available minor version upgrades for the SageMaker Partner AI App. The key is the semantic version number, and the value is a list of release notes for that version. A null value indicates no upgrades are available.</p>
pub fn available_upgrade(mut self, input: crate::types::AvailableUpgrade) -> Self {
self.available_upgrade = ::std::option::Option::Some(input);
self
}
/// <p>A map of available minor version upgrades for the SageMaker Partner AI App. The key is the semantic version number, and the value is a list of release notes for that version. A null value indicates no upgrades are available.</p>
pub fn set_available_upgrade(mut self, input: ::std::option::Option<crate::types::AvailableUpgrade>) -> Self {
self.available_upgrade = input;
self
}
/// <p>A map of available minor version upgrades for the SageMaker Partner AI App. The key is the semantic version number, and the value is a list of release notes for that version. A null value indicates no upgrades are available.</p>
pub fn get_available_upgrade(&self) -> &::std::option::Option<crate::types::AvailableUpgrade> {
&self.available_upgrade
}
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 [`DescribePartnerAppOutput`](crate::operation::describe_partner_app::DescribePartnerAppOutput).
pub fn build(self) -> crate::operation::describe_partner_app::DescribePartnerAppOutput {
crate::operation::describe_partner_app::DescribePartnerAppOutput {
arn: self.arn,
name: self.name,
r#type: self.r#type,
status: self.status,
creation_time: self.creation_time,
last_modified_time: self.last_modified_time,
execution_role_arn: self.execution_role_arn,
kms_key_id: self.kms_key_id,
base_url: self.base_url,
maintenance_config: self.maintenance_config,
tier: self.tier,
version: self.version,
application_config: self.application_config,
auth_type: self.auth_type,
enable_iam_session_based_identity: self.enable_iam_session_based_identity,
error: self.error,
enable_auto_minor_version_upgrade: self.enable_auto_minor_version_upgrade,
current_version_eol_date: self.current_version_eol_date,
available_upgrade: self.available_upgrade,
_request_id: self._request_id,
}
}
}