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
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
/// <p>Details for an Amazon EMR Studio including ID, creation time, name, and so on.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct Studio {
/// <p>The ID of the Amazon EMR Studio.</p>
pub studio_id: ::std::option::Option<::std::string::String>,
/// <p>The Amazon Resource Name (ARN) of the Amazon EMR Studio.</p>
pub studio_arn: ::std::option::Option<::std::string::String>,
/// <p>The name of the Amazon EMR Studio.</p>
pub name: ::std::option::Option<::std::string::String>,
/// <p>The detailed description of the Amazon EMR Studio.</p>
pub description: ::std::option::Option<::std::string::String>,
/// <p>Specifies whether the Amazon EMR Studio authenticates users with IAM or IAM Identity Center.</p>
pub auth_mode: ::std::option::Option<crate::types::AuthMode>,
/// <p>The ID of the VPC associated with the Amazon EMR Studio.</p>
pub vpc_id: ::std::option::Option<::std::string::String>,
/// <p>The list of IDs of the subnets associated with the Amazon EMR Studio.</p>
pub subnet_ids: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
/// <p>The name of the IAM role assumed by the Amazon EMR Studio.</p>
pub service_role: ::std::option::Option<::std::string::String>,
/// <p>The name of the IAM role assumed by users logged in to the Amazon EMR Studio. A Studio only requires a <code>UserRole</code> when you use IAM authentication.</p>
pub user_role: ::std::option::Option<::std::string::String>,
/// <p>The ID of the Workspace security group associated with the Amazon EMR Studio. The Workspace security group allows outbound network traffic to resources in the Engine security group and to the internet.</p>
pub workspace_security_group_id: ::std::option::Option<::std::string::String>,
/// <p>The ID of the Engine security group associated with the Amazon EMR Studio. The Engine security group allows inbound network traffic from resources in the Workspace security group.</p>
pub engine_security_group_id: ::std::option::Option<::std::string::String>,
/// <p>The unique access URL of the Amazon EMR Studio.</p>
pub url: ::std::option::Option<::std::string::String>,
/// <p>The time the Amazon EMR Studio was created.</p>
pub creation_time: ::std::option::Option<::aws_smithy_types::DateTime>,
/// <p>The Amazon S3 location to back up Amazon EMR Studio Workspaces and notebook files.</p>
pub default_s3_location: ::std::option::Option<::std::string::String>,
/// <p>Your identity provider's authentication endpoint. Amazon EMR Studio redirects federated users to this endpoint for authentication when logging in to a Studio with the Studio URL.</p>
pub idp_auth_url: ::std::option::Option<::std::string::String>,
/// <p>The name of your identity provider's <code>RelayState</code> parameter.</p>
pub idp_relay_state_parameter_name: ::std::option::Option<::std::string::String>,
/// <p>A list of tags associated with the Amazon EMR Studio.</p>
pub tags: ::std::option::Option<::std::vec::Vec<crate::types::Tag>>,
/// <p>The ARN of the IAM Identity Center instance the Studio application belongs to.</p>
pub idc_instance_arn: ::std::option::Option<::std::string::String>,
/// <p>Indicates whether the Studio has Trusted identity propagation enabled. The default value is <code>false</code>.</p>
pub trusted_identity_propagation_enabled: ::std::option::Option<bool>,
/// <p>Indicates whether the Studio has <code>REQUIRED</code> or <code>OPTIONAL</code> IAM Identity Center user assignment. If the value is set to <code>REQUIRED</code>, users must be explicitly assigned to the Studio application to access the Studio.</p>
pub idc_user_assignment: ::std::option::Option<crate::types::IdcUserAssignment>,
/// <p>The KMS key identifier (ARN) used to encrypt Amazon EMR Studio workspace and notebook files when backed up to Amazon S3.</p>
pub encryption_key_arn: ::std::option::Option<::std::string::String>,
}
impl Studio {
/// <p>The ID of the Amazon EMR Studio.</p>
pub fn studio_id(&self) -> ::std::option::Option<&str> {
self.studio_id.as_deref()
}
/// <p>The Amazon Resource Name (ARN) of the Amazon EMR Studio.</p>
pub fn studio_arn(&self) -> ::std::option::Option<&str> {
self.studio_arn.as_deref()
}
/// <p>The name of the Amazon EMR Studio.</p>
pub fn name(&self) -> ::std::option::Option<&str> {
self.name.as_deref()
}
/// <p>The detailed description of the Amazon EMR Studio.</p>
pub fn description(&self) -> ::std::option::Option<&str> {
self.description.as_deref()
}
/// <p>Specifies whether the Amazon EMR Studio authenticates users with IAM or IAM Identity Center.</p>
pub fn auth_mode(&self) -> ::std::option::Option<&crate::types::AuthMode> {
self.auth_mode.as_ref()
}
/// <p>The ID of the VPC associated with the Amazon EMR Studio.</p>
pub fn vpc_id(&self) -> ::std::option::Option<&str> {
self.vpc_id.as_deref()
}
/// <p>The list of IDs of the subnets associated with the Amazon EMR Studio.</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 `.subnet_ids.is_none()`.
pub fn subnet_ids(&self) -> &[::std::string::String] {
self.subnet_ids.as_deref().unwrap_or_default()
}
/// <p>The name of the IAM role assumed by the Amazon EMR Studio.</p>
pub fn service_role(&self) -> ::std::option::Option<&str> {
self.service_role.as_deref()
}
/// <p>The name of the IAM role assumed by users logged in to the Amazon EMR Studio. A Studio only requires a <code>UserRole</code> when you use IAM authentication.</p>
pub fn user_role(&self) -> ::std::option::Option<&str> {
self.user_role.as_deref()
}
/// <p>The ID of the Workspace security group associated with the Amazon EMR Studio. The Workspace security group allows outbound network traffic to resources in the Engine security group and to the internet.</p>
pub fn workspace_security_group_id(&self) -> ::std::option::Option<&str> {
self.workspace_security_group_id.as_deref()
}
/// <p>The ID of the Engine security group associated with the Amazon EMR Studio. The Engine security group allows inbound network traffic from resources in the Workspace security group.</p>
pub fn engine_security_group_id(&self) -> ::std::option::Option<&str> {
self.engine_security_group_id.as_deref()
}
/// <p>The unique access URL of the Amazon EMR Studio.</p>
pub fn url(&self) -> ::std::option::Option<&str> {
self.url.as_deref()
}
/// <p>The time the Amazon EMR Studio was created.</p>
pub fn creation_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
self.creation_time.as_ref()
}
/// <p>The Amazon S3 location to back up Amazon EMR Studio Workspaces and notebook files.</p>
pub fn default_s3_location(&self) -> ::std::option::Option<&str> {
self.default_s3_location.as_deref()
}
/// <p>Your identity provider's authentication endpoint. Amazon EMR Studio redirects federated users to this endpoint for authentication when logging in to a Studio with the Studio URL.</p>
pub fn idp_auth_url(&self) -> ::std::option::Option<&str> {
self.idp_auth_url.as_deref()
}
/// <p>The name of your identity provider's <code>RelayState</code> parameter.</p>
pub fn idp_relay_state_parameter_name(&self) -> ::std::option::Option<&str> {
self.idp_relay_state_parameter_name.as_deref()
}
/// <p>A list of tags associated with the Amazon EMR Studio.</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 `.tags.is_none()`.
pub fn tags(&self) -> &[crate::types::Tag] {
self.tags.as_deref().unwrap_or_default()
}
/// <p>The ARN of the IAM Identity Center instance the Studio application belongs to.</p>
pub fn idc_instance_arn(&self) -> ::std::option::Option<&str> {
self.idc_instance_arn.as_deref()
}
/// <p>Indicates whether the Studio has Trusted identity propagation enabled. The default value is <code>false</code>.</p>
pub fn trusted_identity_propagation_enabled(&self) -> ::std::option::Option<bool> {
self.trusted_identity_propagation_enabled
}
/// <p>Indicates whether the Studio has <code>REQUIRED</code> or <code>OPTIONAL</code> IAM Identity Center user assignment. If the value is set to <code>REQUIRED</code>, users must be explicitly assigned to the Studio application to access the Studio.</p>
pub fn idc_user_assignment(&self) -> ::std::option::Option<&crate::types::IdcUserAssignment> {
self.idc_user_assignment.as_ref()
}
/// <p>The KMS key identifier (ARN) used to encrypt Amazon EMR Studio workspace and notebook files when backed up to Amazon S3.</p>
pub fn encryption_key_arn(&self) -> ::std::option::Option<&str> {
self.encryption_key_arn.as_deref()
}
}
impl Studio {
/// Creates a new builder-style object to manufacture [`Studio`](crate::types::Studio).
pub fn builder() -> crate::types::builders::StudioBuilder {
crate::types::builders::StudioBuilder::default()
}
}
/// A builder for [`Studio`](crate::types::Studio).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct StudioBuilder {
pub(crate) studio_id: ::std::option::Option<::std::string::String>,
pub(crate) studio_arn: ::std::option::Option<::std::string::String>,
pub(crate) name: ::std::option::Option<::std::string::String>,
pub(crate) description: ::std::option::Option<::std::string::String>,
pub(crate) auth_mode: ::std::option::Option<crate::types::AuthMode>,
pub(crate) vpc_id: ::std::option::Option<::std::string::String>,
pub(crate) subnet_ids: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
pub(crate) service_role: ::std::option::Option<::std::string::String>,
pub(crate) user_role: ::std::option::Option<::std::string::String>,
pub(crate) workspace_security_group_id: ::std::option::Option<::std::string::String>,
pub(crate) engine_security_group_id: ::std::option::Option<::std::string::String>,
pub(crate) url: ::std::option::Option<::std::string::String>,
pub(crate) creation_time: ::std::option::Option<::aws_smithy_types::DateTime>,
pub(crate) default_s3_location: ::std::option::Option<::std::string::String>,
pub(crate) idp_auth_url: ::std::option::Option<::std::string::String>,
pub(crate) idp_relay_state_parameter_name: ::std::option::Option<::std::string::String>,
pub(crate) tags: ::std::option::Option<::std::vec::Vec<crate::types::Tag>>,
pub(crate) idc_instance_arn: ::std::option::Option<::std::string::String>,
pub(crate) trusted_identity_propagation_enabled: ::std::option::Option<bool>,
pub(crate) idc_user_assignment: ::std::option::Option<crate::types::IdcUserAssignment>,
pub(crate) encryption_key_arn: ::std::option::Option<::std::string::String>,
}
impl StudioBuilder {
/// <p>The ID of the Amazon EMR Studio.</p>
pub fn studio_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.studio_id = ::std::option::Option::Some(input.into());
self
}
/// <p>The ID of the Amazon EMR Studio.</p>
pub fn set_studio_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.studio_id = input;
self
}
/// <p>The ID of the Amazon EMR Studio.</p>
pub fn get_studio_id(&self) -> &::std::option::Option<::std::string::String> {
&self.studio_id
}
/// <p>The Amazon Resource Name (ARN) of the Amazon EMR Studio.</p>
pub fn studio_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.studio_arn = ::std::option::Option::Some(input.into());
self
}
/// <p>The Amazon Resource Name (ARN) of the Amazon EMR Studio.</p>
pub fn set_studio_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.studio_arn = input;
self
}
/// <p>The Amazon Resource Name (ARN) of the Amazon EMR Studio.</p>
pub fn get_studio_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.studio_arn
}
/// <p>The name of the Amazon EMR Studio.</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 Amazon EMR Studio.</p>
pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.name = input;
self
}
/// <p>The name of the Amazon EMR Studio.</p>
pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
&self.name
}
/// <p>The detailed description of the Amazon EMR Studio.</p>
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 detailed description of the Amazon EMR Studio.</p>
pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.description = input;
self
}
/// <p>The detailed description of the Amazon EMR Studio.</p>
pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
&self.description
}
/// <p>Specifies whether the Amazon EMR Studio authenticates users with IAM or IAM Identity Center.</p>
pub fn auth_mode(mut self, input: crate::types::AuthMode) -> Self {
self.auth_mode = ::std::option::Option::Some(input);
self
}
/// <p>Specifies whether the Amazon EMR Studio authenticates users with IAM or IAM Identity Center.</p>
pub fn set_auth_mode(mut self, input: ::std::option::Option<crate::types::AuthMode>) -> Self {
self.auth_mode = input;
self
}
/// <p>Specifies whether the Amazon EMR Studio authenticates users with IAM or IAM Identity Center.</p>
pub fn get_auth_mode(&self) -> &::std::option::Option<crate::types::AuthMode> {
&self.auth_mode
}
/// <p>The ID of the VPC associated with the Amazon EMR Studio.</p>
pub fn vpc_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.vpc_id = ::std::option::Option::Some(input.into());
self
}
/// <p>The ID of the VPC associated with the Amazon EMR Studio.</p>
pub fn set_vpc_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.vpc_id = input;
self
}
/// <p>The ID of the VPC associated with the Amazon EMR Studio.</p>
pub fn get_vpc_id(&self) -> &::std::option::Option<::std::string::String> {
&self.vpc_id
}
/// Appends an item to `subnet_ids`.
///
/// To override the contents of this collection use [`set_subnet_ids`](Self::set_subnet_ids).
///
/// <p>The list of IDs of the subnets associated with the Amazon EMR Studio.</p>
pub fn subnet_ids(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
let mut v = self.subnet_ids.unwrap_or_default();
v.push(input.into());
self.subnet_ids = ::std::option::Option::Some(v);
self
}
/// <p>The list of IDs of the subnets associated with the Amazon EMR Studio.</p>
pub fn set_subnet_ids(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
self.subnet_ids = input;
self
}
/// <p>The list of IDs of the subnets associated with the Amazon EMR Studio.</p>
pub fn get_subnet_ids(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
&self.subnet_ids
}
/// <p>The name of the IAM role assumed by the Amazon EMR Studio.</p>
pub fn service_role(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.service_role = ::std::option::Option::Some(input.into());
self
}
/// <p>The name of the IAM role assumed by the Amazon EMR Studio.</p>
pub fn set_service_role(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.service_role = input;
self
}
/// <p>The name of the IAM role assumed by the Amazon EMR Studio.</p>
pub fn get_service_role(&self) -> &::std::option::Option<::std::string::String> {
&self.service_role
}
/// <p>The name of the IAM role assumed by users logged in to the Amazon EMR Studio. A Studio only requires a <code>UserRole</code> when you use IAM authentication.</p>
pub fn user_role(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.user_role = ::std::option::Option::Some(input.into());
self
}
/// <p>The name of the IAM role assumed by users logged in to the Amazon EMR Studio. A Studio only requires a <code>UserRole</code> when you use IAM authentication.</p>
pub fn set_user_role(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.user_role = input;
self
}
/// <p>The name of the IAM role assumed by users logged in to the Amazon EMR Studio. A Studio only requires a <code>UserRole</code> when you use IAM authentication.</p>
pub fn get_user_role(&self) -> &::std::option::Option<::std::string::String> {
&self.user_role
}
/// <p>The ID of the Workspace security group associated with the Amazon EMR Studio. The Workspace security group allows outbound network traffic to resources in the Engine security group and to the internet.</p>
pub fn workspace_security_group_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.workspace_security_group_id = ::std::option::Option::Some(input.into());
self
}
/// <p>The ID of the Workspace security group associated with the Amazon EMR Studio. The Workspace security group allows outbound network traffic to resources in the Engine security group and to the internet.</p>
pub fn set_workspace_security_group_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.workspace_security_group_id = input;
self
}
/// <p>The ID of the Workspace security group associated with the Amazon EMR Studio. The Workspace security group allows outbound network traffic to resources in the Engine security group and to the internet.</p>
pub fn get_workspace_security_group_id(&self) -> &::std::option::Option<::std::string::String> {
&self.workspace_security_group_id
}
/// <p>The ID of the Engine security group associated with the Amazon EMR Studio. The Engine security group allows inbound network traffic from resources in the Workspace security group.</p>
pub fn engine_security_group_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.engine_security_group_id = ::std::option::Option::Some(input.into());
self
}
/// <p>The ID of the Engine security group associated with the Amazon EMR Studio. The Engine security group allows inbound network traffic from resources in the Workspace security group.</p>
pub fn set_engine_security_group_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.engine_security_group_id = input;
self
}
/// <p>The ID of the Engine security group associated with the Amazon EMR Studio. The Engine security group allows inbound network traffic from resources in the Workspace security group.</p>
pub fn get_engine_security_group_id(&self) -> &::std::option::Option<::std::string::String> {
&self.engine_security_group_id
}
/// <p>The unique access URL of the Amazon EMR Studio.</p>
pub fn url(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.url = ::std::option::Option::Some(input.into());
self
}
/// <p>The unique access URL of the Amazon EMR Studio.</p>
pub fn set_url(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.url = input;
self
}
/// <p>The unique access URL of the Amazon EMR Studio.</p>
pub fn get_url(&self) -> &::std::option::Option<::std::string::String> {
&self.url
}
/// <p>The time the Amazon EMR Studio 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 the Amazon EMR Studio 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 the Amazon EMR Studio was created.</p>
pub fn get_creation_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.creation_time
}
/// <p>The Amazon S3 location to back up Amazon EMR Studio Workspaces and notebook files.</p>
pub fn default_s3_location(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.default_s3_location = ::std::option::Option::Some(input.into());
self
}
/// <p>The Amazon S3 location to back up Amazon EMR Studio Workspaces and notebook files.</p>
pub fn set_default_s3_location(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.default_s3_location = input;
self
}
/// <p>The Amazon S3 location to back up Amazon EMR Studio Workspaces and notebook files.</p>
pub fn get_default_s3_location(&self) -> &::std::option::Option<::std::string::String> {
&self.default_s3_location
}
/// <p>Your identity provider's authentication endpoint. Amazon EMR Studio redirects federated users to this endpoint for authentication when logging in to a Studio with the Studio URL.</p>
pub fn idp_auth_url(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.idp_auth_url = ::std::option::Option::Some(input.into());
self
}
/// <p>Your identity provider's authentication endpoint. Amazon EMR Studio redirects federated users to this endpoint for authentication when logging in to a Studio with the Studio URL.</p>
pub fn set_idp_auth_url(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.idp_auth_url = input;
self
}
/// <p>Your identity provider's authentication endpoint. Amazon EMR Studio redirects federated users to this endpoint for authentication when logging in to a Studio with the Studio URL.</p>
pub fn get_idp_auth_url(&self) -> &::std::option::Option<::std::string::String> {
&self.idp_auth_url
}
/// <p>The name of your identity provider's <code>RelayState</code> parameter.</p>
pub fn idp_relay_state_parameter_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.idp_relay_state_parameter_name = ::std::option::Option::Some(input.into());
self
}
/// <p>The name of your identity provider's <code>RelayState</code> parameter.</p>
pub fn set_idp_relay_state_parameter_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.idp_relay_state_parameter_name = input;
self
}
/// <p>The name of your identity provider's <code>RelayState</code> parameter.</p>
pub fn get_idp_relay_state_parameter_name(&self) -> &::std::option::Option<::std::string::String> {
&self.idp_relay_state_parameter_name
}
/// Appends an item to `tags`.
///
/// To override the contents of this collection use [`set_tags`](Self::set_tags).
///
/// <p>A list of tags associated with the Amazon EMR Studio.</p>
pub fn tags(mut self, input: crate::types::Tag) -> Self {
let mut v = self.tags.unwrap_or_default();
v.push(input);
self.tags = ::std::option::Option::Some(v);
self
}
/// <p>A list of tags associated with the Amazon EMR Studio.</p>
pub fn set_tags(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::Tag>>) -> Self {
self.tags = input;
self
}
/// <p>A list of tags associated with the Amazon EMR Studio.</p>
pub fn get_tags(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::Tag>> {
&self.tags
}
/// <p>The ARN of the IAM Identity Center instance the Studio application belongs to.</p>
pub fn idc_instance_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.idc_instance_arn = ::std::option::Option::Some(input.into());
self
}
/// <p>The ARN of the IAM Identity Center instance the Studio application belongs to.</p>
pub fn set_idc_instance_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.idc_instance_arn = input;
self
}
/// <p>The ARN of the IAM Identity Center instance the Studio application belongs to.</p>
pub fn get_idc_instance_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.idc_instance_arn
}
/// <p>Indicates whether the Studio has Trusted identity propagation enabled. The default value is <code>false</code>.</p>
pub fn trusted_identity_propagation_enabled(mut self, input: bool) -> Self {
self.trusted_identity_propagation_enabled = ::std::option::Option::Some(input);
self
}
/// <p>Indicates whether the Studio has Trusted identity propagation enabled. The default value is <code>false</code>.</p>
pub fn set_trusted_identity_propagation_enabled(mut self, input: ::std::option::Option<bool>) -> Self {
self.trusted_identity_propagation_enabled = input;
self
}
/// <p>Indicates whether the Studio has Trusted identity propagation enabled. The default value is <code>false</code>.</p>
pub fn get_trusted_identity_propagation_enabled(&self) -> &::std::option::Option<bool> {
&self.trusted_identity_propagation_enabled
}
/// <p>Indicates whether the Studio has <code>REQUIRED</code> or <code>OPTIONAL</code> IAM Identity Center user assignment. If the value is set to <code>REQUIRED</code>, users must be explicitly assigned to the Studio application to access the Studio.</p>
pub fn idc_user_assignment(mut self, input: crate::types::IdcUserAssignment) -> Self {
self.idc_user_assignment = ::std::option::Option::Some(input);
self
}
/// <p>Indicates whether the Studio has <code>REQUIRED</code> or <code>OPTIONAL</code> IAM Identity Center user assignment. If the value is set to <code>REQUIRED</code>, users must be explicitly assigned to the Studio application to access the Studio.</p>
pub fn set_idc_user_assignment(mut self, input: ::std::option::Option<crate::types::IdcUserAssignment>) -> Self {
self.idc_user_assignment = input;
self
}
/// <p>Indicates whether the Studio has <code>REQUIRED</code> or <code>OPTIONAL</code> IAM Identity Center user assignment. If the value is set to <code>REQUIRED</code>, users must be explicitly assigned to the Studio application to access the Studio.</p>
pub fn get_idc_user_assignment(&self) -> &::std::option::Option<crate::types::IdcUserAssignment> {
&self.idc_user_assignment
}
/// <p>The KMS key identifier (ARN) used to encrypt Amazon EMR Studio workspace and notebook files when backed up to Amazon S3.</p>
pub fn encryption_key_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.encryption_key_arn = ::std::option::Option::Some(input.into());
self
}
/// <p>The KMS key identifier (ARN) used to encrypt Amazon EMR Studio workspace and notebook files when backed up to Amazon S3.</p>
pub fn set_encryption_key_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.encryption_key_arn = input;
self
}
/// <p>The KMS key identifier (ARN) used to encrypt Amazon EMR Studio workspace and notebook files when backed up to Amazon S3.</p>
pub fn get_encryption_key_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.encryption_key_arn
}
/// Consumes the builder and constructs a [`Studio`](crate::types::Studio).
pub fn build(self) -> crate::types::Studio {
crate::types::Studio {
studio_id: self.studio_id,
studio_arn: self.studio_arn,
name: self.name,
description: self.description,
auth_mode: self.auth_mode,
vpc_id: self.vpc_id,
subnet_ids: self.subnet_ids,
service_role: self.service_role,
user_role: self.user_role,
workspace_security_group_id: self.workspace_security_group_id,
engine_security_group_id: self.engine_security_group_id,
url: self.url,
creation_time: self.creation_time,
default_s3_location: self.default_s3_location,
idp_auth_url: self.idp_auth_url,
idp_relay_state_parameter_name: self.idp_relay_state_parameter_name,
tags: self.tags,
idc_instance_arn: self.idc_instance_arn,
trusted_identity_propagation_enabled: self.trusted_identity_propagation_enabled,
idc_user_assignment: self.idc_user_assignment,
encryption_key_arn: self.encryption_key_arn,
}
}
}