1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
pub use crate::operation::run_job_flow::_run_job_flow_output::RunJobFlowOutputBuilder;
pub use crate::operation::run_job_flow::_run_job_flow_input::RunJobFlowInputBuilder;
impl crate::operation::run_job_flow::builders::RunJobFlowInputBuilder {
/// Sends a request with this input using the given client.
pub async fn send_with(
self,
client: &crate::Client,
) -> ::std::result::Result<
crate::operation::run_job_flow::RunJobFlowOutput,
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::run_job_flow::RunJobFlowError,
::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
>,
> {
let mut fluent_builder = client.run_job_flow();
fluent_builder.inner = self;
fluent_builder.send().await
}
}
/// Fluent builder constructing a request to `RunJobFlow`.
///
/// <p>RunJobFlow creates and starts running a new cluster (job flow). The cluster runs the steps specified. After the steps complete, the cluster stops and the HDFS partition is lost. To prevent loss of data, configure the last step of the job flow to store results in Amazon S3. If the <code>JobFlowInstancesConfig</code> <code>KeepJobFlowAliveWhenNoSteps</code> parameter is set to <code>TRUE</code>, the cluster transitions to the WAITING state rather than shutting down after the steps have completed.</p>
/// <p>For additional protection, you can set the <code>JobFlowInstancesConfig</code> <code>TerminationProtected</code> parameter to <code>TRUE</code> to lock the cluster and prevent it from being terminated by API call, user intervention, or in the event of a job flow error.</p>
/// <p>A maximum of 256 steps are allowed in each job flow.</p>
/// <p>If your cluster is long-running (such as a Hive data warehouse) or complex, you may require more than 256 steps to process your data. You can bypass the 256-step limitation in various ways, including using the SSH shell to connect to the master node and submitting queries directly to the software running on the master node, such as Hive and Hadoop.</p>
/// <p>For long-running clusters, we recommend that you periodically store your results.</p><note>
/// <p>The instance fleets configuration is available only in Amazon EMR releases 4.8.0 and later, excluding 5.0.x versions. The RunJobFlow request can contain InstanceFleets parameters or InstanceGroups parameters, but not both.</p>
/// </note>
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
pub struct RunJobFlowFluentBuilder {
handle: ::std::sync::Arc<crate::client::Handle>,
inner: crate::operation::run_job_flow::builders::RunJobFlowInputBuilder,
config_override: ::std::option::Option<crate::config::Builder>,
}
impl
crate::client::customize::internal::CustomizableSend<
crate::operation::run_job_flow::RunJobFlowOutput,
crate::operation::run_job_flow::RunJobFlowError,
> for RunJobFlowFluentBuilder
{
fn send(
self,
config_override: crate::config::Builder,
) -> crate::client::customize::internal::BoxFuture<
crate::client::customize::internal::SendResult<
crate::operation::run_job_flow::RunJobFlowOutput,
crate::operation::run_job_flow::RunJobFlowError,
>,
> {
::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
}
}
impl RunJobFlowFluentBuilder {
/// Creates a new `RunJobFlowFluentBuilder`.
pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
Self {
handle,
inner: ::std::default::Default::default(),
config_override: ::std::option::Option::None,
}
}
/// Access the RunJobFlow as a reference.
pub fn as_input(&self) -> &crate::operation::run_job_flow::builders::RunJobFlowInputBuilder {
&self.inner
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> ::std::result::Result<
crate::operation::run_job_flow::RunJobFlowOutput,
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::run_job_flow::RunJobFlowError,
::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
>,
> {
let input = self
.inner
.build()
.map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
let runtime_plugins = crate::operation::run_job_flow::RunJobFlow::operation_runtime_plugins(
self.handle.runtime_plugins.clone(),
&self.handle.conf,
self.config_override,
);
crate::operation::run_job_flow::RunJobFlow::orchestrate(&runtime_plugins, input).await
}
/// Consumes this builder, creating a customizable operation that can be modified before being sent.
pub fn customize(
self,
) -> crate::client::customize::CustomizableOperation<
crate::operation::run_job_flow::RunJobFlowOutput,
crate::operation::run_job_flow::RunJobFlowError,
Self,
> {
crate::client::customize::CustomizableOperation::new(self)
}
pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
self.set_config_override(::std::option::Option::Some(config_override.into()));
self
}
pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
self.config_override = config_override;
self
}
/// <p>The name of the job flow.</p>
pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.name(input.into());
self
}
/// <p>The name of the job flow.</p>
pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_name(input);
self
}
/// <p>The name of the job flow.</p>
pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_name()
}
/// <p>The location in Amazon S3 to write the log files of the job flow. If a value is not provided, logs are not created.</p>
pub fn log_uri(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.log_uri(input.into());
self
}
/// <p>The location in Amazon S3 to write the log files of the job flow. If a value is not provided, logs are not created.</p>
pub fn set_log_uri(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_log_uri(input);
self
}
/// <p>The location in Amazon S3 to write the log files of the job flow. If a value is not provided, logs are not created.</p>
pub fn get_log_uri(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_log_uri()
}
/// <p>The KMS key used for encrypting log files. If a value is not provided, the logs remain encrypted by AES-256. This attribute is only available with Amazon EMR releases 5.30.0 and later, excluding Amazon EMR 6.0.0.</p>
pub fn log_encryption_kms_key_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.log_encryption_kms_key_id(input.into());
self
}
/// <p>The KMS key used for encrypting log files. If a value is not provided, the logs remain encrypted by AES-256. This attribute is only available with Amazon EMR releases 5.30.0 and later, excluding Amazon EMR 6.0.0.</p>
pub fn set_log_encryption_kms_key_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_log_encryption_kms_key_id(input);
self
}
/// <p>The KMS key used for encrypting log files. If a value is not provided, the logs remain encrypted by AES-256. This attribute is only available with Amazon EMR releases 5.30.0 and later, excluding Amazon EMR 6.0.0.</p>
pub fn get_log_encryption_kms_key_id(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_log_encryption_kms_key_id()
}
/// <p>A JSON string for selecting additional features.</p>
pub fn additional_info(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.additional_info(input.into());
self
}
/// <p>A JSON string for selecting additional features.</p>
pub fn set_additional_info(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_additional_info(input);
self
}
/// <p>A JSON string for selecting additional features.</p>
pub fn get_additional_info(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_additional_info()
}
/// <p>Applies only to Amazon EMR AMI versions 3.x and 2.x. For Amazon EMR releases 4.0 and later, <code>ReleaseLabel</code> is used. To specify a custom AMI, use <code>CustomAmiID</code>.</p>
pub fn ami_version(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.ami_version(input.into());
self
}
/// <p>Applies only to Amazon EMR AMI versions 3.x and 2.x. For Amazon EMR releases 4.0 and later, <code>ReleaseLabel</code> is used. To specify a custom AMI, use <code>CustomAmiID</code>.</p>
pub fn set_ami_version(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_ami_version(input);
self
}
/// <p>Applies only to Amazon EMR AMI versions 3.x and 2.x. For Amazon EMR releases 4.0 and later, <code>ReleaseLabel</code> is used. To specify a custom AMI, use <code>CustomAmiID</code>.</p>
pub fn get_ami_version(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_ami_version()
}
/// <p>The Amazon EMR release label, which determines the version of open-source application packages installed on the cluster. Release labels are in the form <code>emr-x.x.x</code>, where x.x.x is an Amazon EMR release version such as <code>emr-5.14.0</code>. For more information about Amazon EMR release versions and included application versions and features, see <a href="https://docs.aws.amazon.com/emr/latest/ReleaseGuide/">https://docs.aws.amazon.com/emr/latest/ReleaseGuide/</a>. The release label applies only to Amazon EMR releases version 4.0 and later. Earlier versions use <code>AmiVersion</code>.</p>
pub fn release_label(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.release_label(input.into());
self
}
/// <p>The Amazon EMR release label, which determines the version of open-source application packages installed on the cluster. Release labels are in the form <code>emr-x.x.x</code>, where x.x.x is an Amazon EMR release version such as <code>emr-5.14.0</code>. For more information about Amazon EMR release versions and included application versions and features, see <a href="https://docs.aws.amazon.com/emr/latest/ReleaseGuide/">https://docs.aws.amazon.com/emr/latest/ReleaseGuide/</a>. The release label applies only to Amazon EMR releases version 4.0 and later. Earlier versions use <code>AmiVersion</code>.</p>
pub fn set_release_label(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_release_label(input);
self
}
/// <p>The Amazon EMR release label, which determines the version of open-source application packages installed on the cluster. Release labels are in the form <code>emr-x.x.x</code>, where x.x.x is an Amazon EMR release version such as <code>emr-5.14.0</code>. For more information about Amazon EMR release versions and included application versions and features, see <a href="https://docs.aws.amazon.com/emr/latest/ReleaseGuide/">https://docs.aws.amazon.com/emr/latest/ReleaseGuide/</a>. The release label applies only to Amazon EMR releases version 4.0 and later. Earlier versions use <code>AmiVersion</code>.</p>
pub fn get_release_label(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_release_label()
}
/// <p>A specification of the number and type of Amazon EC2 instances.</p>
pub fn instances(mut self, input: crate::types::JobFlowInstancesConfig) -> Self {
self.inner = self.inner.instances(input);
self
}
/// <p>A specification of the number and type of Amazon EC2 instances.</p>
pub fn set_instances(mut self, input: ::std::option::Option<crate::types::JobFlowInstancesConfig>) -> Self {
self.inner = self.inner.set_instances(input);
self
}
/// <p>A specification of the number and type of Amazon EC2 instances.</p>
pub fn get_instances(&self) -> &::std::option::Option<crate::types::JobFlowInstancesConfig> {
self.inner.get_instances()
}
///
/// Appends an item to `Steps`.
///
/// To override the contents of this collection use [`set_steps`](Self::set_steps).
///
/// <p>A list of steps to run.</p>
pub fn steps(mut self, input: crate::types::StepConfig) -> Self {
self.inner = self.inner.steps(input);
self
}
/// <p>A list of steps to run.</p>
pub fn set_steps(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::StepConfig>>) -> Self {
self.inner = self.inner.set_steps(input);
self
}
/// <p>A list of steps to run.</p>
pub fn get_steps(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::StepConfig>> {
self.inner.get_steps()
}
///
/// Appends an item to `BootstrapActions`.
///
/// To override the contents of this collection use [`set_bootstrap_actions`](Self::set_bootstrap_actions).
///
/// <p>A list of bootstrap actions to run before Hadoop starts on the cluster nodes.</p>
pub fn bootstrap_actions(mut self, input: crate::types::BootstrapActionConfig) -> Self {
self.inner = self.inner.bootstrap_actions(input);
self
}
/// <p>A list of bootstrap actions to run before Hadoop starts on the cluster nodes.</p>
pub fn set_bootstrap_actions(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::BootstrapActionConfig>>) -> Self {
self.inner = self.inner.set_bootstrap_actions(input);
self
}
/// <p>A list of bootstrap actions to run before Hadoop starts on the cluster nodes.</p>
pub fn get_bootstrap_actions(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::BootstrapActionConfig>> {
self.inner.get_bootstrap_actions()
}
///
/// Appends an item to `SupportedProducts`.
///
/// To override the contents of this collection use [`set_supported_products`](Self::set_supported_products).
///
/// <note>
/// <p>For Amazon EMR releases 3.x and 2.x. For Amazon EMR releases 4.x and later, use Applications.</p>
/// </note>
/// <p>A list of strings that indicates third-party software to use. For more information, see the <a href="https://docs.aws.amazon.com/emr/latest/DeveloperGuide/emr-dg.pdf">Amazon EMR Developer Guide</a>. Currently supported values are:</p>
/// <ul>
/// <li>
/// <p>"mapr-m3" - launch the job flow using MapR M3 Edition.</p></li>
/// <li>
/// <p>"mapr-m5" - launch the job flow using MapR M5 Edition.</p></li>
/// </ul>
pub fn supported_products(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.supported_products(input.into());
self
}
/// <note>
/// <p>For Amazon EMR releases 3.x and 2.x. For Amazon EMR releases 4.x and later, use Applications.</p>
/// </note>
/// <p>A list of strings that indicates third-party software to use. For more information, see the <a href="https://docs.aws.amazon.com/emr/latest/DeveloperGuide/emr-dg.pdf">Amazon EMR Developer Guide</a>. Currently supported values are:</p>
/// <ul>
/// <li>
/// <p>"mapr-m3" - launch the job flow using MapR M3 Edition.</p></li>
/// <li>
/// <p>"mapr-m5" - launch the job flow using MapR M5 Edition.</p></li>
/// </ul>
pub fn set_supported_products(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
self.inner = self.inner.set_supported_products(input);
self
}
/// <note>
/// <p>For Amazon EMR releases 3.x and 2.x. For Amazon EMR releases 4.x and later, use Applications.</p>
/// </note>
/// <p>A list of strings that indicates third-party software to use. For more information, see the <a href="https://docs.aws.amazon.com/emr/latest/DeveloperGuide/emr-dg.pdf">Amazon EMR Developer Guide</a>. Currently supported values are:</p>
/// <ul>
/// <li>
/// <p>"mapr-m3" - launch the job flow using MapR M3 Edition.</p></li>
/// <li>
/// <p>"mapr-m5" - launch the job flow using MapR M5 Edition.</p></li>
/// </ul>
pub fn get_supported_products(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
self.inner.get_supported_products()
}
///
/// Appends an item to `NewSupportedProducts`.
///
/// To override the contents of this collection use [`set_new_supported_products`](Self::set_new_supported_products).
///
/// <note>
/// <p>For Amazon EMR releases 3.x and 2.x. For Amazon EMR releases 4.x and later, use Applications.</p>
/// </note>
/// <p>A list of strings that indicates third-party software to use with the job flow that accepts a user argument list. Amazon EMR accepts and forwards the argument list to the corresponding installation script as bootstrap action arguments. For more information, see "Launch a Job Flow on the MapR Distribution for Hadoop" in the <a href="https://docs.aws.amazon.com/emr/latest/DeveloperGuide/emr-dg.pdf">Amazon EMR Developer Guide</a>. Supported values are:</p>
/// <ul>
/// <li>
/// <p>"mapr-m3" - launch the cluster using MapR M3 Edition.</p></li>
/// <li>
/// <p>"mapr-m5" - launch the cluster using MapR M5 Edition.</p></li>
/// <li>
/// <p>"mapr" with the user arguments specifying "--edition,m3" or "--edition,m5" - launch the job flow using MapR M3 or M5 Edition respectively.</p></li>
/// <li>
/// <p>"mapr-m7" - launch the cluster using MapR M7 Edition.</p></li>
/// <li>
/// <p>"hunk" - launch the cluster with the Hunk Big Data Analytics Platform.</p></li>
/// <li>
/// <p>"hue"- launch the cluster with Hue installed.</p></li>
/// <li>
/// <p>"spark" - launch the cluster with Apache Spark installed.</p></li>
/// <li>
/// <p>"ganglia" - launch the cluster with the Ganglia Monitoring System installed.</p></li>
/// </ul>
pub fn new_supported_products(mut self, input: crate::types::SupportedProductConfig) -> Self {
self.inner = self.inner.new_supported_products(input);
self
}
/// <note>
/// <p>For Amazon EMR releases 3.x and 2.x. For Amazon EMR releases 4.x and later, use Applications.</p>
/// </note>
/// <p>A list of strings that indicates third-party software to use with the job flow that accepts a user argument list. Amazon EMR accepts and forwards the argument list to the corresponding installation script as bootstrap action arguments. For more information, see "Launch a Job Flow on the MapR Distribution for Hadoop" in the <a href="https://docs.aws.amazon.com/emr/latest/DeveloperGuide/emr-dg.pdf">Amazon EMR Developer Guide</a>. Supported values are:</p>
/// <ul>
/// <li>
/// <p>"mapr-m3" - launch the cluster using MapR M3 Edition.</p></li>
/// <li>
/// <p>"mapr-m5" - launch the cluster using MapR M5 Edition.</p></li>
/// <li>
/// <p>"mapr" with the user arguments specifying "--edition,m3" or "--edition,m5" - launch the job flow using MapR M3 or M5 Edition respectively.</p></li>
/// <li>
/// <p>"mapr-m7" - launch the cluster using MapR M7 Edition.</p></li>
/// <li>
/// <p>"hunk" - launch the cluster with the Hunk Big Data Analytics Platform.</p></li>
/// <li>
/// <p>"hue"- launch the cluster with Hue installed.</p></li>
/// <li>
/// <p>"spark" - launch the cluster with Apache Spark installed.</p></li>
/// <li>
/// <p>"ganglia" - launch the cluster with the Ganglia Monitoring System installed.</p></li>
/// </ul>
pub fn set_new_supported_products(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::SupportedProductConfig>>) -> Self {
self.inner = self.inner.set_new_supported_products(input);
self
}
/// <note>
/// <p>For Amazon EMR releases 3.x and 2.x. For Amazon EMR releases 4.x and later, use Applications.</p>
/// </note>
/// <p>A list of strings that indicates third-party software to use with the job flow that accepts a user argument list. Amazon EMR accepts and forwards the argument list to the corresponding installation script as bootstrap action arguments. For more information, see "Launch a Job Flow on the MapR Distribution for Hadoop" in the <a href="https://docs.aws.amazon.com/emr/latest/DeveloperGuide/emr-dg.pdf">Amazon EMR Developer Guide</a>. Supported values are:</p>
/// <ul>
/// <li>
/// <p>"mapr-m3" - launch the cluster using MapR M3 Edition.</p></li>
/// <li>
/// <p>"mapr-m5" - launch the cluster using MapR M5 Edition.</p></li>
/// <li>
/// <p>"mapr" with the user arguments specifying "--edition,m3" or "--edition,m5" - launch the job flow using MapR M3 or M5 Edition respectively.</p></li>
/// <li>
/// <p>"mapr-m7" - launch the cluster using MapR M7 Edition.</p></li>
/// <li>
/// <p>"hunk" - launch the cluster with the Hunk Big Data Analytics Platform.</p></li>
/// <li>
/// <p>"hue"- launch the cluster with Hue installed.</p></li>
/// <li>
/// <p>"spark" - launch the cluster with Apache Spark installed.</p></li>
/// <li>
/// <p>"ganglia" - launch the cluster with the Ganglia Monitoring System installed.</p></li>
/// </ul>
pub fn get_new_supported_products(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::SupportedProductConfig>> {
self.inner.get_new_supported_products()
}
///
/// Appends an item to `Applications`.
///
/// To override the contents of this collection use [`set_applications`](Self::set_applications).
///
/// <p>Applies to Amazon EMR releases 4.0 and later. A case-insensitive list of applications for Amazon EMR to install and configure when launching the cluster. For a list of applications available for each Amazon EMR release version, see the <a href="https://docs.aws.amazon.com/emr/latest/ReleaseGuide/">Amazon EMRRelease Guide</a>.</p>
pub fn applications(mut self, input: crate::types::Application) -> Self {
self.inner = self.inner.applications(input);
self
}
/// <p>Applies to Amazon EMR releases 4.0 and later. A case-insensitive list of applications for Amazon EMR to install and configure when launching the cluster. For a list of applications available for each Amazon EMR release version, see the <a href="https://docs.aws.amazon.com/emr/latest/ReleaseGuide/">Amazon EMRRelease Guide</a>.</p>
pub fn set_applications(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::Application>>) -> Self {
self.inner = self.inner.set_applications(input);
self
}
/// <p>Applies to Amazon EMR releases 4.0 and later. A case-insensitive list of applications for Amazon EMR to install and configure when launching the cluster. For a list of applications available for each Amazon EMR release version, see the <a href="https://docs.aws.amazon.com/emr/latest/ReleaseGuide/">Amazon EMRRelease Guide</a>.</p>
pub fn get_applications(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::Application>> {
self.inner.get_applications()
}
///
/// Appends an item to `Configurations`.
///
/// To override the contents of this collection use [`set_configurations`](Self::set_configurations).
///
/// <p>For Amazon EMR releases 4.0 and later. The list of configurations supplied for the Amazon EMR cluster that you are creating.</p>
pub fn configurations(mut self, input: crate::types::Configuration) -> Self {
self.inner = self.inner.configurations(input);
self
}
/// <p>For Amazon EMR releases 4.0 and later. The list of configurations supplied for the Amazon EMR cluster that you are creating.</p>
pub fn set_configurations(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::Configuration>>) -> Self {
self.inner = self.inner.set_configurations(input);
self
}
/// <p>For Amazon EMR releases 4.0 and later. The list of configurations supplied for the Amazon EMR cluster that you are creating.</p>
pub fn get_configurations(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::Configuration>> {
self.inner.get_configurations()
}
/// <important>
/// <p>The VisibleToAllUsers parameter is no longer supported. By default, the value is set to <code>true</code>. Setting it to <code>false</code> now has no effect.</p>
/// </important>
/// <p>Set this value to <code>true</code> so that IAM principals in the Amazon Web Services account associated with the cluster can perform Amazon EMR actions on the cluster that their IAM policies allow. This value defaults to <code>true</code> for clusters created using the Amazon EMR API or the CLI <a href="https://docs.aws.amazon.com/cli/latest/reference/emr/create-cluster.html">create-cluster</a> command.</p>
/// <p>When set to <code>false</code>, only the IAM principal that created the cluster and the Amazon Web Services account root user can perform Amazon EMR actions for the cluster, regardless of the IAM permissions policies attached to other IAM principals. For more information, see <a href="https://docs.aws.amazon.com/emr/latest/ManagementGuide/security_IAM_emr-with-IAM.html#security_set_visible_to_all_users">Understanding the Amazon EMR cluster VisibleToAllUsers setting</a> in the <i>Amazon EMR Management Guide</i>.</p>
pub fn visible_to_all_users(mut self, input: bool) -> Self {
self.inner = self.inner.visible_to_all_users(input);
self
}
/// <important>
/// <p>The VisibleToAllUsers parameter is no longer supported. By default, the value is set to <code>true</code>. Setting it to <code>false</code> now has no effect.</p>
/// </important>
/// <p>Set this value to <code>true</code> so that IAM principals in the Amazon Web Services account associated with the cluster can perform Amazon EMR actions on the cluster that their IAM policies allow. This value defaults to <code>true</code> for clusters created using the Amazon EMR API or the CLI <a href="https://docs.aws.amazon.com/cli/latest/reference/emr/create-cluster.html">create-cluster</a> command.</p>
/// <p>When set to <code>false</code>, only the IAM principal that created the cluster and the Amazon Web Services account root user can perform Amazon EMR actions for the cluster, regardless of the IAM permissions policies attached to other IAM principals. For more information, see <a href="https://docs.aws.amazon.com/emr/latest/ManagementGuide/security_IAM_emr-with-IAM.html#security_set_visible_to_all_users">Understanding the Amazon EMR cluster VisibleToAllUsers setting</a> in the <i>Amazon EMR Management Guide</i>.</p>
pub fn set_visible_to_all_users(mut self, input: ::std::option::Option<bool>) -> Self {
self.inner = self.inner.set_visible_to_all_users(input);
self
}
/// <important>
/// <p>The VisibleToAllUsers parameter is no longer supported. By default, the value is set to <code>true</code>. Setting it to <code>false</code> now has no effect.</p>
/// </important>
/// <p>Set this value to <code>true</code> so that IAM principals in the Amazon Web Services account associated with the cluster can perform Amazon EMR actions on the cluster that their IAM policies allow. This value defaults to <code>true</code> for clusters created using the Amazon EMR API or the CLI <a href="https://docs.aws.amazon.com/cli/latest/reference/emr/create-cluster.html">create-cluster</a> command.</p>
/// <p>When set to <code>false</code>, only the IAM principal that created the cluster and the Amazon Web Services account root user can perform Amazon EMR actions for the cluster, regardless of the IAM permissions policies attached to other IAM principals. For more information, see <a href="https://docs.aws.amazon.com/emr/latest/ManagementGuide/security_IAM_emr-with-IAM.html#security_set_visible_to_all_users">Understanding the Amazon EMR cluster VisibleToAllUsers setting</a> in the <i>Amazon EMR Management Guide</i>.</p>
pub fn get_visible_to_all_users(&self) -> &::std::option::Option<bool> {
self.inner.get_visible_to_all_users()
}
/// <p>Also called instance profile and Amazon EC2 role. An IAM role for an Amazon EMR cluster. The Amazon EC2 instances of the cluster assume this role. The default role is <code>EMR_EC2_DefaultRole</code>. In order to use the default role, you must have already created it using the CLI or console.</p>
pub fn job_flow_role(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.job_flow_role(input.into());
self
}
/// <p>Also called instance profile and Amazon EC2 role. An IAM role for an Amazon EMR cluster. The Amazon EC2 instances of the cluster assume this role. The default role is <code>EMR_EC2_DefaultRole</code>. In order to use the default role, you must have already created it using the CLI or console.</p>
pub fn set_job_flow_role(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_job_flow_role(input);
self
}
/// <p>Also called instance profile and Amazon EC2 role. An IAM role for an Amazon EMR cluster. The Amazon EC2 instances of the cluster assume this role. The default role is <code>EMR_EC2_DefaultRole</code>. In order to use the default role, you must have already created it using the CLI or console.</p>
pub fn get_job_flow_role(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_job_flow_role()
}
/// <p>The IAM role that Amazon EMR assumes in order to access Amazon Web Services resources on your behalf. If you've created a custom service role path, you must specify it for the service role when you launch your cluster.</p>
pub fn service_role(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.service_role(input.into());
self
}
/// <p>The IAM role that Amazon EMR assumes in order to access Amazon Web Services resources on your behalf. If you've created a custom service role path, you must specify it for the service role when you launch your cluster.</p>
pub fn set_service_role(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_service_role(input);
self
}
/// <p>The IAM role that Amazon EMR assumes in order to access Amazon Web Services resources on your behalf. If you've created a custom service role path, you must specify it for the service role when you launch your cluster.</p>
pub fn get_service_role(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_service_role()
}
///
/// Appends an item to `Tags`.
///
/// To override the contents of this collection use [`set_tags`](Self::set_tags).
///
/// <p>A list of tags to associate with a cluster and propagate to Amazon EC2 instances.</p>
pub fn tags(mut self, input: crate::types::Tag) -> Self {
self.inner = self.inner.tags(input);
self
}
/// <p>A list of tags to associate with a cluster and propagate to Amazon EC2 instances.</p>
pub fn set_tags(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::Tag>>) -> Self {
self.inner = self.inner.set_tags(input);
self
}
/// <p>A list of tags to associate with a cluster and propagate to Amazon EC2 instances.</p>
pub fn get_tags(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::Tag>> {
self.inner.get_tags()
}
/// <p>The name of a security configuration to apply to the cluster.</p>
pub fn security_configuration(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.security_configuration(input.into());
self
}
/// <p>The name of a security configuration to apply to the cluster.</p>
pub fn set_security_configuration(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_security_configuration(input);
self
}
/// <p>The name of a security configuration to apply to the cluster.</p>
pub fn get_security_configuration(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_security_configuration()
}
/// <p>An IAM role for automatic scaling policies. The default role is <code>EMR_AutoScaling_DefaultRole</code>. The IAM role provides permissions that the automatic scaling feature requires to launch and terminate Amazon EC2 instances in an instance group.</p>
pub fn auto_scaling_role(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.auto_scaling_role(input.into());
self
}
/// <p>An IAM role for automatic scaling policies. The default role is <code>EMR_AutoScaling_DefaultRole</code>. The IAM role provides permissions that the automatic scaling feature requires to launch and terminate Amazon EC2 instances in an instance group.</p>
pub fn set_auto_scaling_role(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_auto_scaling_role(input);
self
}
/// <p>An IAM role for automatic scaling policies. The default role is <code>EMR_AutoScaling_DefaultRole</code>. The IAM role provides permissions that the automatic scaling feature requires to launch and terminate Amazon EC2 instances in an instance group.</p>
pub fn get_auto_scaling_role(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_auto_scaling_role()
}
/// <p>Specifies the way that individual Amazon EC2 instances terminate when an automatic scale-in activity occurs or an instance group is resized. <code>TERMINATE_AT_INSTANCE_HOUR</code> indicates that Amazon EMR terminates nodes at the instance-hour boundary, regardless of when the request to terminate the instance was submitted. This option is only available with Amazon EMR 5.1.0 and later and is the default for clusters created using that version. <code>TERMINATE_AT_TASK_COMPLETION</code> indicates that Amazon EMR adds nodes to a deny list and drains tasks from nodes before terminating the Amazon EC2 instances, regardless of the instance-hour boundary. With either behavior, Amazon EMR removes the least active nodes first and blocks instance termination if it could lead to HDFS corruption. <code>TERMINATE_AT_TASK_COMPLETION</code> available only in Amazon EMR releases 4.1.0 and later, and is the default for releases of Amazon EMR earlier than 5.1.0.</p>
pub fn scale_down_behavior(mut self, input: crate::types::ScaleDownBehavior) -> Self {
self.inner = self.inner.scale_down_behavior(input);
self
}
/// <p>Specifies the way that individual Amazon EC2 instances terminate when an automatic scale-in activity occurs or an instance group is resized. <code>TERMINATE_AT_INSTANCE_HOUR</code> indicates that Amazon EMR terminates nodes at the instance-hour boundary, regardless of when the request to terminate the instance was submitted. This option is only available with Amazon EMR 5.1.0 and later and is the default for clusters created using that version. <code>TERMINATE_AT_TASK_COMPLETION</code> indicates that Amazon EMR adds nodes to a deny list and drains tasks from nodes before terminating the Amazon EC2 instances, regardless of the instance-hour boundary. With either behavior, Amazon EMR removes the least active nodes first and blocks instance termination if it could lead to HDFS corruption. <code>TERMINATE_AT_TASK_COMPLETION</code> available only in Amazon EMR releases 4.1.0 and later, and is the default for releases of Amazon EMR earlier than 5.1.0.</p>
pub fn set_scale_down_behavior(mut self, input: ::std::option::Option<crate::types::ScaleDownBehavior>) -> Self {
self.inner = self.inner.set_scale_down_behavior(input);
self
}
/// <p>Specifies the way that individual Amazon EC2 instances terminate when an automatic scale-in activity occurs or an instance group is resized. <code>TERMINATE_AT_INSTANCE_HOUR</code> indicates that Amazon EMR terminates nodes at the instance-hour boundary, regardless of when the request to terminate the instance was submitted. This option is only available with Amazon EMR 5.1.0 and later and is the default for clusters created using that version. <code>TERMINATE_AT_TASK_COMPLETION</code> indicates that Amazon EMR adds nodes to a deny list and drains tasks from nodes before terminating the Amazon EC2 instances, regardless of the instance-hour boundary. With either behavior, Amazon EMR removes the least active nodes first and blocks instance termination if it could lead to HDFS corruption. <code>TERMINATE_AT_TASK_COMPLETION</code> available only in Amazon EMR releases 4.1.0 and later, and is the default for releases of Amazon EMR earlier than 5.1.0.</p>
pub fn get_scale_down_behavior(&self) -> &::std::option::Option<crate::types::ScaleDownBehavior> {
self.inner.get_scale_down_behavior()
}
/// <p>Available only in Amazon EMR releases 5.7.0 and later. The ID of a custom Amazon EBS-backed Linux AMI. If specified, Amazon EMR uses this AMI when it launches cluster Amazon EC2 instances. For more information about custom AMIs in Amazon EMR, see <a href="https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-custom-ami.html">Using a Custom AMI</a> in the <i>Amazon EMR Management Guide</i>. If omitted, the cluster uses the base Linux AMI for the <code>ReleaseLabel</code> specified. For Amazon EMR releases 2.x and 3.x, use <code>AmiVersion</code> instead.</p>
/// <p>For information about creating a custom AMI, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/creating-an-ami-ebs.html">Creating an Amazon EBS-Backed Linux AMI</a> in the <i>Amazon Elastic Compute Cloud User Guide for Linux Instances</i>. For information about finding an AMI ID, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/finding-an-ami.html">Finding a Linux AMI</a>.</p>
pub fn custom_ami_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.custom_ami_id(input.into());
self
}
/// <p>Available only in Amazon EMR releases 5.7.0 and later. The ID of a custom Amazon EBS-backed Linux AMI. If specified, Amazon EMR uses this AMI when it launches cluster Amazon EC2 instances. For more information about custom AMIs in Amazon EMR, see <a href="https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-custom-ami.html">Using a Custom AMI</a> in the <i>Amazon EMR Management Guide</i>. If omitted, the cluster uses the base Linux AMI for the <code>ReleaseLabel</code> specified. For Amazon EMR releases 2.x and 3.x, use <code>AmiVersion</code> instead.</p>
/// <p>For information about creating a custom AMI, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/creating-an-ami-ebs.html">Creating an Amazon EBS-Backed Linux AMI</a> in the <i>Amazon Elastic Compute Cloud User Guide for Linux Instances</i>. For information about finding an AMI ID, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/finding-an-ami.html">Finding a Linux AMI</a>.</p>
pub fn set_custom_ami_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_custom_ami_id(input);
self
}
/// <p>Available only in Amazon EMR releases 5.7.0 and later. The ID of a custom Amazon EBS-backed Linux AMI. If specified, Amazon EMR uses this AMI when it launches cluster Amazon EC2 instances. For more information about custom AMIs in Amazon EMR, see <a href="https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-custom-ami.html">Using a Custom AMI</a> in the <i>Amazon EMR Management Guide</i>. If omitted, the cluster uses the base Linux AMI for the <code>ReleaseLabel</code> specified. For Amazon EMR releases 2.x and 3.x, use <code>AmiVersion</code> instead.</p>
/// <p>For information about creating a custom AMI, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/creating-an-ami-ebs.html">Creating an Amazon EBS-Backed Linux AMI</a> in the <i>Amazon Elastic Compute Cloud User Guide for Linux Instances</i>. For information about finding an AMI ID, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/finding-an-ami.html">Finding a Linux AMI</a>.</p>
pub fn get_custom_ami_id(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_custom_ami_id()
}
/// <p>The size, in GiB, of the Amazon EBS root device volume of the Linux AMI that is used for each Amazon EC2 instance. Available in Amazon EMR releases 4.x and later.</p>
pub fn ebs_root_volume_size(mut self, input: i32) -> Self {
self.inner = self.inner.ebs_root_volume_size(input);
self
}
/// <p>The size, in GiB, of the Amazon EBS root device volume of the Linux AMI that is used for each Amazon EC2 instance. Available in Amazon EMR releases 4.x and later.</p>
pub fn set_ebs_root_volume_size(mut self, input: ::std::option::Option<i32>) -> Self {
self.inner = self.inner.set_ebs_root_volume_size(input);
self
}
/// <p>The size, in GiB, of the Amazon EBS root device volume of the Linux AMI that is used for each Amazon EC2 instance. Available in Amazon EMR releases 4.x and later.</p>
pub fn get_ebs_root_volume_size(&self) -> &::std::option::Option<i32> {
self.inner.get_ebs_root_volume_size()
}
/// <p>Applies only when <code>CustomAmiID</code> is used. Specifies which updates from the Amazon Linux AMI package repositories to apply automatically when the instance boots using the AMI. If omitted, the default is <code>SECURITY</code>, which indicates that only security updates are applied. If <code>NONE</code> is specified, no updates are applied, and all updates must be applied manually.</p>
pub fn repo_upgrade_on_boot(mut self, input: crate::types::RepoUpgradeOnBoot) -> Self {
self.inner = self.inner.repo_upgrade_on_boot(input);
self
}
/// <p>Applies only when <code>CustomAmiID</code> is used. Specifies which updates from the Amazon Linux AMI package repositories to apply automatically when the instance boots using the AMI. If omitted, the default is <code>SECURITY</code>, which indicates that only security updates are applied. If <code>NONE</code> is specified, no updates are applied, and all updates must be applied manually.</p>
pub fn set_repo_upgrade_on_boot(mut self, input: ::std::option::Option<crate::types::RepoUpgradeOnBoot>) -> Self {
self.inner = self.inner.set_repo_upgrade_on_boot(input);
self
}
/// <p>Applies only when <code>CustomAmiID</code> is used. Specifies which updates from the Amazon Linux AMI package repositories to apply automatically when the instance boots using the AMI. If omitted, the default is <code>SECURITY</code>, which indicates that only security updates are applied. If <code>NONE</code> is specified, no updates are applied, and all updates must be applied manually.</p>
pub fn get_repo_upgrade_on_boot(&self) -> &::std::option::Option<crate::types::RepoUpgradeOnBoot> {
self.inner.get_repo_upgrade_on_boot()
}
/// <p>Attributes for Kerberos configuration when Kerberos authentication is enabled using a security configuration. For more information see <a href="https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-kerberos.html">Use Kerberos Authentication</a> in the <i>Amazon EMR Management Guide</i>.</p>
pub fn kerberos_attributes(mut self, input: crate::types::KerberosAttributes) -> Self {
self.inner = self.inner.kerberos_attributes(input);
self
}
/// <p>Attributes for Kerberos configuration when Kerberos authentication is enabled using a security configuration. For more information see <a href="https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-kerberos.html">Use Kerberos Authentication</a> in the <i>Amazon EMR Management Guide</i>.</p>
pub fn set_kerberos_attributes(mut self, input: ::std::option::Option<crate::types::KerberosAttributes>) -> Self {
self.inner = self.inner.set_kerberos_attributes(input);
self
}
/// <p>Attributes for Kerberos configuration when Kerberos authentication is enabled using a security configuration. For more information see <a href="https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-kerberos.html">Use Kerberos Authentication</a> in the <i>Amazon EMR Management Guide</i>.</p>
pub fn get_kerberos_attributes(&self) -> &::std::option::Option<crate::types::KerberosAttributes> {
self.inner.get_kerberos_attributes()
}
/// <p>Specifies the number of steps that can be executed concurrently. The default value is <code>1</code>. The maximum value is <code>256</code>.</p>
pub fn step_concurrency_level(mut self, input: i32) -> Self {
self.inner = self.inner.step_concurrency_level(input);
self
}
/// <p>Specifies the number of steps that can be executed concurrently. The default value is <code>1</code>. The maximum value is <code>256</code>.</p>
pub fn set_step_concurrency_level(mut self, input: ::std::option::Option<i32>) -> Self {
self.inner = self.inner.set_step_concurrency_level(input);
self
}
/// <p>Specifies the number of steps that can be executed concurrently. The default value is <code>1</code>. The maximum value is <code>256</code>.</p>
pub fn get_step_concurrency_level(&self) -> &::std::option::Option<i32> {
self.inner.get_step_concurrency_level()
}
/// <p>The specified managed scaling policy for an Amazon EMR cluster.</p>
pub fn managed_scaling_policy(mut self, input: crate::types::ManagedScalingPolicy) -> Self {
self.inner = self.inner.managed_scaling_policy(input);
self
}
/// <p>The specified managed scaling policy for an Amazon EMR cluster.</p>
pub fn set_managed_scaling_policy(mut self, input: ::std::option::Option<crate::types::ManagedScalingPolicy>) -> Self {
self.inner = self.inner.set_managed_scaling_policy(input);
self
}
/// <p>The specified managed scaling policy for an Amazon EMR cluster.</p>
pub fn get_managed_scaling_policy(&self) -> &::std::option::Option<crate::types::ManagedScalingPolicy> {
self.inner.get_managed_scaling_policy()
}
///
/// Appends an item to `PlacementGroupConfigs`.
///
/// To override the contents of this collection use [`set_placement_group_configs`](Self::set_placement_group_configs).
///
/// <p>The specified placement group configuration for an Amazon EMR cluster.</p>
pub fn placement_group_configs(mut self, input: crate::types::PlacementGroupConfig) -> Self {
self.inner = self.inner.placement_group_configs(input);
self
}
/// <p>The specified placement group configuration for an Amazon EMR cluster.</p>
pub fn set_placement_group_configs(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::PlacementGroupConfig>>) -> Self {
self.inner = self.inner.set_placement_group_configs(input);
self
}
/// <p>The specified placement group configuration for an Amazon EMR cluster.</p>
pub fn get_placement_group_configs(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::PlacementGroupConfig>> {
self.inner.get_placement_group_configs()
}
/// <p>An auto-termination policy for an Amazon EMR cluster. An auto-termination policy defines the amount of idle time in seconds after which a cluster automatically terminates. For alternative cluster termination options, see <a href="https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-plan-termination.html">Control cluster termination</a>.</p>
pub fn auto_termination_policy(mut self, input: crate::types::AutoTerminationPolicy) -> Self {
self.inner = self.inner.auto_termination_policy(input);
self
}
/// <p>An auto-termination policy for an Amazon EMR cluster. An auto-termination policy defines the amount of idle time in seconds after which a cluster automatically terminates. For alternative cluster termination options, see <a href="https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-plan-termination.html">Control cluster termination</a>.</p>
pub fn set_auto_termination_policy(mut self, input: ::std::option::Option<crate::types::AutoTerminationPolicy>) -> Self {
self.inner = self.inner.set_auto_termination_policy(input);
self
}
/// <p>An auto-termination policy for an Amazon EMR cluster. An auto-termination policy defines the amount of idle time in seconds after which a cluster automatically terminates. For alternative cluster termination options, see <a href="https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-plan-termination.html">Control cluster termination</a>.</p>
pub fn get_auto_termination_policy(&self) -> &::std::option::Option<crate::types::AutoTerminationPolicy> {
self.inner.get_auto_termination_policy()
}
/// <p>Specifies a particular Amazon Linux release for all nodes in a cluster launch RunJobFlow request. If a release is not specified, Amazon EMR uses the latest validated Amazon Linux release for cluster launch.</p>
pub fn os_release_label(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.os_release_label(input.into());
self
}
/// <p>Specifies a particular Amazon Linux release for all nodes in a cluster launch RunJobFlow request. If a release is not specified, Amazon EMR uses the latest validated Amazon Linux release for cluster launch.</p>
pub fn set_os_release_label(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_os_release_label(input);
self
}
/// <p>Specifies a particular Amazon Linux release for all nodes in a cluster launch RunJobFlow request. If a release is not specified, Amazon EMR uses the latest validated Amazon Linux release for cluster launch.</p>
pub fn get_os_release_label(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_os_release_label()
}
/// <p>The IOPS, of the Amazon EBS root device volume of the Linux AMI that is used for each Amazon EC2 instance. Available in Amazon EMR releases 6.15.0 and later.</p>
pub fn ebs_root_volume_iops(mut self, input: i32) -> Self {
self.inner = self.inner.ebs_root_volume_iops(input);
self
}
/// <p>The IOPS, of the Amazon EBS root device volume of the Linux AMI that is used for each Amazon EC2 instance. Available in Amazon EMR releases 6.15.0 and later.</p>
pub fn set_ebs_root_volume_iops(mut self, input: ::std::option::Option<i32>) -> Self {
self.inner = self.inner.set_ebs_root_volume_iops(input);
self
}
/// <p>The IOPS, of the Amazon EBS root device volume of the Linux AMI that is used for each Amazon EC2 instance. Available in Amazon EMR releases 6.15.0 and later.</p>
pub fn get_ebs_root_volume_iops(&self) -> &::std::option::Option<i32> {
self.inner.get_ebs_root_volume_iops()
}
/// <p>The throughput, in MiB/s, of the Amazon EBS root device volume of the Linux AMI that is used for each Amazon EC2 instance. Available in Amazon EMR releases 6.15.0 and later.</p>
pub fn ebs_root_volume_throughput(mut self, input: i32) -> Self {
self.inner = self.inner.ebs_root_volume_throughput(input);
self
}
/// <p>The throughput, in MiB/s, of the Amazon EBS root device volume of the Linux AMI that is used for each Amazon EC2 instance. Available in Amazon EMR releases 6.15.0 and later.</p>
pub fn set_ebs_root_volume_throughput(mut self, input: ::std::option::Option<i32>) -> Self {
self.inner = self.inner.set_ebs_root_volume_throughput(input);
self
}
/// <p>The throughput, in MiB/s, of the Amazon EBS root device volume of the Linux AMI that is used for each Amazon EC2 instance. Available in Amazon EMR releases 6.15.0 and later.</p>
pub fn get_ebs_root_volume_throughput(&self) -> &::std::option::Option<i32> {
self.inner.get_ebs_root_volume_throughput()
}
}