aws_sdk_emr/operation/run_job_flow/
builders.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2pub use crate::operation::run_job_flow::_run_job_flow_output::RunJobFlowOutputBuilder;
3
4pub use crate::operation::run_job_flow::_run_job_flow_input::RunJobFlowInputBuilder;
5
6impl crate::operation::run_job_flow::builders::RunJobFlowInputBuilder {
7    /// Sends a request with this input using the given client.
8    pub async fn send_with(
9        self,
10        client: &crate::Client,
11    ) -> ::std::result::Result<
12        crate::operation::run_job_flow::RunJobFlowOutput,
13        ::aws_smithy_runtime_api::client::result::SdkError<
14            crate::operation::run_job_flow::RunJobFlowError,
15            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
16        >,
17    > {
18        let mut fluent_builder = client.run_job_flow();
19        fluent_builder.inner = self;
20        fluent_builder.send().await
21    }
22}
23/// Fluent builder constructing a request to `RunJobFlow`.
24///
25/// <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>
26/// <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>
27/// <p>A maximum of 256 steps are allowed in each job flow.</p>
28/// <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>
29/// <p>For long-running clusters, we recommend that you periodically store your results.</p><note>
30/// <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>
31/// </note>
32#[derive(::std::clone::Clone, ::std::fmt::Debug)]
33pub struct RunJobFlowFluentBuilder {
34    handle: ::std::sync::Arc<crate::client::Handle>,
35    inner: crate::operation::run_job_flow::builders::RunJobFlowInputBuilder,
36    config_override: ::std::option::Option<crate::config::Builder>,
37}
38impl
39    crate::client::customize::internal::CustomizableSend<
40        crate::operation::run_job_flow::RunJobFlowOutput,
41        crate::operation::run_job_flow::RunJobFlowError,
42    > for RunJobFlowFluentBuilder
43{
44    fn send(
45        self,
46        config_override: crate::config::Builder,
47    ) -> crate::client::customize::internal::BoxFuture<
48        crate::client::customize::internal::SendResult<
49            crate::operation::run_job_flow::RunJobFlowOutput,
50            crate::operation::run_job_flow::RunJobFlowError,
51        >,
52    > {
53        ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
54    }
55}
56impl RunJobFlowFluentBuilder {
57    /// Creates a new `RunJobFlowFluentBuilder`.
58    pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
59        Self {
60            handle,
61            inner: ::std::default::Default::default(),
62            config_override: ::std::option::Option::None,
63        }
64    }
65    /// Access the RunJobFlow as a reference.
66    pub fn as_input(&self) -> &crate::operation::run_job_flow::builders::RunJobFlowInputBuilder {
67        &self.inner
68    }
69    /// Sends the request and returns the response.
70    ///
71    /// If an error occurs, an `SdkError` will be returned with additional details that
72    /// can be matched against.
73    ///
74    /// By default, any retryable failures will be retried twice. Retry behavior
75    /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
76    /// set when configuring the client.
77    pub async fn send(
78        self,
79    ) -> ::std::result::Result<
80        crate::operation::run_job_flow::RunJobFlowOutput,
81        ::aws_smithy_runtime_api::client::result::SdkError<
82            crate::operation::run_job_flow::RunJobFlowError,
83            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
84        >,
85    > {
86        let input = self
87            .inner
88            .build()
89            .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
90        let runtime_plugins = crate::operation::run_job_flow::RunJobFlow::operation_runtime_plugins(
91            self.handle.runtime_plugins.clone(),
92            &self.handle.conf,
93            self.config_override,
94        );
95        crate::operation::run_job_flow::RunJobFlow::orchestrate(&runtime_plugins, input).await
96    }
97
98    /// Consumes this builder, creating a customizable operation that can be modified before being sent.
99    pub fn customize(
100        self,
101    ) -> crate::client::customize::CustomizableOperation<
102        crate::operation::run_job_flow::RunJobFlowOutput,
103        crate::operation::run_job_flow::RunJobFlowError,
104        Self,
105    > {
106        crate::client::customize::CustomizableOperation::new(self)
107    }
108    pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
109        self.set_config_override(::std::option::Option::Some(config_override.into()));
110        self
111    }
112
113    pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
114        self.config_override = config_override;
115        self
116    }
117    /// <p>The name of the job flow.</p>
118    pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
119        self.inner = self.inner.name(input.into());
120        self
121    }
122    /// <p>The name of the job flow.</p>
123    pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
124        self.inner = self.inner.set_name(input);
125        self
126    }
127    /// <p>The name of the job flow.</p>
128    pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
129        self.inner.get_name()
130    }
131    /// <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>
132    pub fn log_uri(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
133        self.inner = self.inner.log_uri(input.into());
134        self
135    }
136    /// <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>
137    pub fn set_log_uri(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
138        self.inner = self.inner.set_log_uri(input);
139        self
140    }
141    /// <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>
142    pub fn get_log_uri(&self) -> &::std::option::Option<::std::string::String> {
143        self.inner.get_log_uri()
144    }
145    /// <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>
146    pub fn log_encryption_kms_key_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
147        self.inner = self.inner.log_encryption_kms_key_id(input.into());
148        self
149    }
150    /// <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>
151    pub fn set_log_encryption_kms_key_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
152        self.inner = self.inner.set_log_encryption_kms_key_id(input);
153        self
154    }
155    /// <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>
156    pub fn get_log_encryption_kms_key_id(&self) -> &::std::option::Option<::std::string::String> {
157        self.inner.get_log_encryption_kms_key_id()
158    }
159    /// <p>A JSON string for selecting additional features.</p>
160    pub fn additional_info(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
161        self.inner = self.inner.additional_info(input.into());
162        self
163    }
164    /// <p>A JSON string for selecting additional features.</p>
165    pub fn set_additional_info(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
166        self.inner = self.inner.set_additional_info(input);
167        self
168    }
169    /// <p>A JSON string for selecting additional features.</p>
170    pub fn get_additional_info(&self) -> &::std::option::Option<::std::string::String> {
171        self.inner.get_additional_info()
172    }
173    /// <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>
174    pub fn ami_version(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
175        self.inner = self.inner.ami_version(input.into());
176        self
177    }
178    /// <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>
179    pub fn set_ami_version(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
180        self.inner = self.inner.set_ami_version(input);
181        self
182    }
183    /// <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>
184    pub fn get_ami_version(&self) -> &::std::option::Option<::std::string::String> {
185        self.inner.get_ami_version()
186    }
187    /// <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>
188    pub fn release_label(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
189        self.inner = self.inner.release_label(input.into());
190        self
191    }
192    /// <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>
193    pub fn set_release_label(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
194        self.inner = self.inner.set_release_label(input);
195        self
196    }
197    /// <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>
198    pub fn get_release_label(&self) -> &::std::option::Option<::std::string::String> {
199        self.inner.get_release_label()
200    }
201    /// <p>A specification of the number and type of Amazon EC2 instances.</p>
202    pub fn instances(mut self, input: crate::types::JobFlowInstancesConfig) -> Self {
203        self.inner = self.inner.instances(input);
204        self
205    }
206    /// <p>A specification of the number and type of Amazon EC2 instances.</p>
207    pub fn set_instances(mut self, input: ::std::option::Option<crate::types::JobFlowInstancesConfig>) -> Self {
208        self.inner = self.inner.set_instances(input);
209        self
210    }
211    /// <p>A specification of the number and type of Amazon EC2 instances.</p>
212    pub fn get_instances(&self) -> &::std::option::Option<crate::types::JobFlowInstancesConfig> {
213        self.inner.get_instances()
214    }
215    ///
216    /// Appends an item to `Steps`.
217    ///
218    /// To override the contents of this collection use [`set_steps`](Self::set_steps).
219    ///
220    /// <p>A list of steps to run.</p>
221    pub fn steps(mut self, input: crate::types::StepConfig) -> Self {
222        self.inner = self.inner.steps(input);
223        self
224    }
225    /// <p>A list of steps to run.</p>
226    pub fn set_steps(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::StepConfig>>) -> Self {
227        self.inner = self.inner.set_steps(input);
228        self
229    }
230    /// <p>A list of steps to run.</p>
231    pub fn get_steps(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::StepConfig>> {
232        self.inner.get_steps()
233    }
234    ///
235    /// Appends an item to `BootstrapActions`.
236    ///
237    /// To override the contents of this collection use [`set_bootstrap_actions`](Self::set_bootstrap_actions).
238    ///
239    /// <p>A list of bootstrap actions to run before Hadoop starts on the cluster nodes.</p>
240    pub fn bootstrap_actions(mut self, input: crate::types::BootstrapActionConfig) -> Self {
241        self.inner = self.inner.bootstrap_actions(input);
242        self
243    }
244    /// <p>A list of bootstrap actions to run before Hadoop starts on the cluster nodes.</p>
245    pub fn set_bootstrap_actions(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::BootstrapActionConfig>>) -> Self {
246        self.inner = self.inner.set_bootstrap_actions(input);
247        self
248    }
249    /// <p>A list of bootstrap actions to run before Hadoop starts on the cluster nodes.</p>
250    pub fn get_bootstrap_actions(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::BootstrapActionConfig>> {
251        self.inner.get_bootstrap_actions()
252    }
253    ///
254    /// Appends an item to `SupportedProducts`.
255    ///
256    /// To override the contents of this collection use [`set_supported_products`](Self::set_supported_products).
257    ///
258    /// <note>
259    /// <p>For Amazon EMR releases 3.x and 2.x. For Amazon EMR releases 4.x and later, use Applications.</p>
260    /// </note>
261    /// <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>
262    /// <ul>
263    /// <li>
264    /// <p>"mapr-m3" - launch the job flow using MapR M3 Edition.</p></li>
265    /// <li>
266    /// <p>"mapr-m5" - launch the job flow using MapR M5 Edition.</p></li>
267    /// </ul>
268    pub fn supported_products(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
269        self.inner = self.inner.supported_products(input.into());
270        self
271    }
272    /// <note>
273    /// <p>For Amazon EMR releases 3.x and 2.x. For Amazon EMR releases 4.x and later, use Applications.</p>
274    /// </note>
275    /// <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>
276    /// <ul>
277    /// <li>
278    /// <p>"mapr-m3" - launch the job flow using MapR M3 Edition.</p></li>
279    /// <li>
280    /// <p>"mapr-m5" - launch the job flow using MapR M5 Edition.</p></li>
281    /// </ul>
282    pub fn set_supported_products(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
283        self.inner = self.inner.set_supported_products(input);
284        self
285    }
286    /// <note>
287    /// <p>For Amazon EMR releases 3.x and 2.x. For Amazon EMR releases 4.x and later, use Applications.</p>
288    /// </note>
289    /// <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>
290    /// <ul>
291    /// <li>
292    /// <p>"mapr-m3" - launch the job flow using MapR M3 Edition.</p></li>
293    /// <li>
294    /// <p>"mapr-m5" - launch the job flow using MapR M5 Edition.</p></li>
295    /// </ul>
296    pub fn get_supported_products(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
297        self.inner.get_supported_products()
298    }
299    ///
300    /// Appends an item to `NewSupportedProducts`.
301    ///
302    /// To override the contents of this collection use [`set_new_supported_products`](Self::set_new_supported_products).
303    ///
304    /// <note>
305    /// <p>For Amazon EMR releases 3.x and 2.x. For Amazon EMR releases 4.x and later, use Applications.</p>
306    /// </note>
307    /// <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>
308    /// <ul>
309    /// <li>
310    /// <p>"mapr-m3" - launch the cluster using MapR M3 Edition.</p></li>
311    /// <li>
312    /// <p>"mapr-m5" - launch the cluster using MapR M5 Edition.</p></li>
313    /// <li>
314    /// <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>
315    /// <li>
316    /// <p>"mapr-m7" - launch the cluster using MapR M7 Edition.</p></li>
317    /// <li>
318    /// <p>"hunk" - launch the cluster with the Hunk Big Data Analytics Platform.</p></li>
319    /// <li>
320    /// <p>"hue"- launch the cluster with Hue installed.</p></li>
321    /// <li>
322    /// <p>"spark" - launch the cluster with Apache Spark installed.</p></li>
323    /// <li>
324    /// <p>"ganglia" - launch the cluster with the Ganglia Monitoring System installed.</p></li>
325    /// </ul>
326    pub fn new_supported_products(mut self, input: crate::types::SupportedProductConfig) -> Self {
327        self.inner = self.inner.new_supported_products(input);
328        self
329    }
330    /// <note>
331    /// <p>For Amazon EMR releases 3.x and 2.x. For Amazon EMR releases 4.x and later, use Applications.</p>
332    /// </note>
333    /// <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>
334    /// <ul>
335    /// <li>
336    /// <p>"mapr-m3" - launch the cluster using MapR M3 Edition.</p></li>
337    /// <li>
338    /// <p>"mapr-m5" - launch the cluster using MapR M5 Edition.</p></li>
339    /// <li>
340    /// <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>
341    /// <li>
342    /// <p>"mapr-m7" - launch the cluster using MapR M7 Edition.</p></li>
343    /// <li>
344    /// <p>"hunk" - launch the cluster with the Hunk Big Data Analytics Platform.</p></li>
345    /// <li>
346    /// <p>"hue"- launch the cluster with Hue installed.</p></li>
347    /// <li>
348    /// <p>"spark" - launch the cluster with Apache Spark installed.</p></li>
349    /// <li>
350    /// <p>"ganglia" - launch the cluster with the Ganglia Monitoring System installed.</p></li>
351    /// </ul>
352    pub fn set_new_supported_products(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::SupportedProductConfig>>) -> Self {
353        self.inner = self.inner.set_new_supported_products(input);
354        self
355    }
356    /// <note>
357    /// <p>For Amazon EMR releases 3.x and 2.x. For Amazon EMR releases 4.x and later, use Applications.</p>
358    /// </note>
359    /// <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>
360    /// <ul>
361    /// <li>
362    /// <p>"mapr-m3" - launch the cluster using MapR M3 Edition.</p></li>
363    /// <li>
364    /// <p>"mapr-m5" - launch the cluster using MapR M5 Edition.</p></li>
365    /// <li>
366    /// <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>
367    /// <li>
368    /// <p>"mapr-m7" - launch the cluster using MapR M7 Edition.</p></li>
369    /// <li>
370    /// <p>"hunk" - launch the cluster with the Hunk Big Data Analytics Platform.</p></li>
371    /// <li>
372    /// <p>"hue"- launch the cluster with Hue installed.</p></li>
373    /// <li>
374    /// <p>"spark" - launch the cluster with Apache Spark installed.</p></li>
375    /// <li>
376    /// <p>"ganglia" - launch the cluster with the Ganglia Monitoring System installed.</p></li>
377    /// </ul>
378    pub fn get_new_supported_products(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::SupportedProductConfig>> {
379        self.inner.get_new_supported_products()
380    }
381    ///
382    /// Appends an item to `Applications`.
383    ///
384    /// To override the contents of this collection use [`set_applications`](Self::set_applications).
385    ///
386    /// <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>
387    pub fn applications(mut self, input: crate::types::Application) -> Self {
388        self.inner = self.inner.applications(input);
389        self
390    }
391    /// <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>
392    pub fn set_applications(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::Application>>) -> Self {
393        self.inner = self.inner.set_applications(input);
394        self
395    }
396    /// <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>
397    pub fn get_applications(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::Application>> {
398        self.inner.get_applications()
399    }
400    ///
401    /// Appends an item to `Configurations`.
402    ///
403    /// To override the contents of this collection use [`set_configurations`](Self::set_configurations).
404    ///
405    /// <p>For Amazon EMR releases 4.0 and later. The list of configurations supplied for the Amazon EMR cluster that you are creating.</p>
406    pub fn configurations(mut self, input: crate::types::Configuration) -> Self {
407        self.inner = self.inner.configurations(input);
408        self
409    }
410    /// <p>For Amazon EMR releases 4.0 and later. The list of configurations supplied for the Amazon EMR cluster that you are creating.</p>
411    pub fn set_configurations(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::Configuration>>) -> Self {
412        self.inner = self.inner.set_configurations(input);
413        self
414    }
415    /// <p>For Amazon EMR releases 4.0 and later. The list of configurations supplied for the Amazon EMR cluster that you are creating.</p>
416    pub fn get_configurations(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::Configuration>> {
417        self.inner.get_configurations()
418    }
419    /// <important>
420    /// <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>
421    /// </important>
422    /// <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>
423    /// <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>
424    pub fn visible_to_all_users(mut self, input: bool) -> Self {
425        self.inner = self.inner.visible_to_all_users(input);
426        self
427    }
428    /// <important>
429    /// <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>
430    /// </important>
431    /// <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>
432    /// <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>
433    pub fn set_visible_to_all_users(mut self, input: ::std::option::Option<bool>) -> Self {
434        self.inner = self.inner.set_visible_to_all_users(input);
435        self
436    }
437    /// <important>
438    /// <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>
439    /// </important>
440    /// <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>
441    /// <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>
442    pub fn get_visible_to_all_users(&self) -> &::std::option::Option<bool> {
443        self.inner.get_visible_to_all_users()
444    }
445    /// <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>
446    pub fn job_flow_role(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
447        self.inner = self.inner.job_flow_role(input.into());
448        self
449    }
450    /// <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>
451    pub fn set_job_flow_role(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
452        self.inner = self.inner.set_job_flow_role(input);
453        self
454    }
455    /// <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>
456    pub fn get_job_flow_role(&self) -> &::std::option::Option<::std::string::String> {
457        self.inner.get_job_flow_role()
458    }
459    /// <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>
460    pub fn service_role(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
461        self.inner = self.inner.service_role(input.into());
462        self
463    }
464    /// <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>
465    pub fn set_service_role(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
466        self.inner = self.inner.set_service_role(input);
467        self
468    }
469    /// <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>
470    pub fn get_service_role(&self) -> &::std::option::Option<::std::string::String> {
471        self.inner.get_service_role()
472    }
473    ///
474    /// Appends an item to `Tags`.
475    ///
476    /// To override the contents of this collection use [`set_tags`](Self::set_tags).
477    ///
478    /// <p>A list of tags to associate with a cluster and propagate to Amazon EC2 instances.</p>
479    pub fn tags(mut self, input: crate::types::Tag) -> Self {
480        self.inner = self.inner.tags(input);
481        self
482    }
483    /// <p>A list of tags to associate with a cluster and propagate to Amazon EC2 instances.</p>
484    pub fn set_tags(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::Tag>>) -> Self {
485        self.inner = self.inner.set_tags(input);
486        self
487    }
488    /// <p>A list of tags to associate with a cluster and propagate to Amazon EC2 instances.</p>
489    pub fn get_tags(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::Tag>> {
490        self.inner.get_tags()
491    }
492    /// <p>The name of a security configuration to apply to the cluster.</p>
493    pub fn security_configuration(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
494        self.inner = self.inner.security_configuration(input.into());
495        self
496    }
497    /// <p>The name of a security configuration to apply to the cluster.</p>
498    pub fn set_security_configuration(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
499        self.inner = self.inner.set_security_configuration(input);
500        self
501    }
502    /// <p>The name of a security configuration to apply to the cluster.</p>
503    pub fn get_security_configuration(&self) -> &::std::option::Option<::std::string::String> {
504        self.inner.get_security_configuration()
505    }
506    /// <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>
507    pub fn auto_scaling_role(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
508        self.inner = self.inner.auto_scaling_role(input.into());
509        self
510    }
511    /// <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>
512    pub fn set_auto_scaling_role(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
513        self.inner = self.inner.set_auto_scaling_role(input);
514        self
515    }
516    /// <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>
517    pub fn get_auto_scaling_role(&self) -> &::std::option::Option<::std::string::String> {
518        self.inner.get_auto_scaling_role()
519    }
520    /// <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>
521    pub fn scale_down_behavior(mut self, input: crate::types::ScaleDownBehavior) -> Self {
522        self.inner = self.inner.scale_down_behavior(input);
523        self
524    }
525    /// <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>
526    pub fn set_scale_down_behavior(mut self, input: ::std::option::Option<crate::types::ScaleDownBehavior>) -> Self {
527        self.inner = self.inner.set_scale_down_behavior(input);
528        self
529    }
530    /// <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>
531    pub fn get_scale_down_behavior(&self) -> &::std::option::Option<crate::types::ScaleDownBehavior> {
532        self.inner.get_scale_down_behavior()
533    }
534    /// <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>
535    /// <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>
536    pub fn custom_ami_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
537        self.inner = self.inner.custom_ami_id(input.into());
538        self
539    }
540    /// <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>
541    /// <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>
542    pub fn set_custom_ami_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
543        self.inner = self.inner.set_custom_ami_id(input);
544        self
545    }
546    /// <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>
547    /// <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>
548    pub fn get_custom_ami_id(&self) -> &::std::option::Option<::std::string::String> {
549        self.inner.get_custom_ami_id()
550    }
551    /// <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>
552    pub fn ebs_root_volume_size(mut self, input: i32) -> Self {
553        self.inner = self.inner.ebs_root_volume_size(input);
554        self
555    }
556    /// <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>
557    pub fn set_ebs_root_volume_size(mut self, input: ::std::option::Option<i32>) -> Self {
558        self.inner = self.inner.set_ebs_root_volume_size(input);
559        self
560    }
561    /// <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>
562    pub fn get_ebs_root_volume_size(&self) -> &::std::option::Option<i32> {
563        self.inner.get_ebs_root_volume_size()
564    }
565    /// <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>
566    pub fn repo_upgrade_on_boot(mut self, input: crate::types::RepoUpgradeOnBoot) -> Self {
567        self.inner = self.inner.repo_upgrade_on_boot(input);
568        self
569    }
570    /// <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>
571    pub fn set_repo_upgrade_on_boot(mut self, input: ::std::option::Option<crate::types::RepoUpgradeOnBoot>) -> Self {
572        self.inner = self.inner.set_repo_upgrade_on_boot(input);
573        self
574    }
575    /// <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>
576    pub fn get_repo_upgrade_on_boot(&self) -> &::std::option::Option<crate::types::RepoUpgradeOnBoot> {
577        self.inner.get_repo_upgrade_on_boot()
578    }
579    /// <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>
580    pub fn kerberos_attributes(mut self, input: crate::types::KerberosAttributes) -> Self {
581        self.inner = self.inner.kerberos_attributes(input);
582        self
583    }
584    /// <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>
585    pub fn set_kerberos_attributes(mut self, input: ::std::option::Option<crate::types::KerberosAttributes>) -> Self {
586        self.inner = self.inner.set_kerberos_attributes(input);
587        self
588    }
589    /// <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>
590    pub fn get_kerberos_attributes(&self) -> &::std::option::Option<crate::types::KerberosAttributes> {
591        self.inner.get_kerberos_attributes()
592    }
593    /// <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>
594    pub fn step_concurrency_level(mut self, input: i32) -> Self {
595        self.inner = self.inner.step_concurrency_level(input);
596        self
597    }
598    /// <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>
599    pub fn set_step_concurrency_level(mut self, input: ::std::option::Option<i32>) -> Self {
600        self.inner = self.inner.set_step_concurrency_level(input);
601        self
602    }
603    /// <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>
604    pub fn get_step_concurrency_level(&self) -> &::std::option::Option<i32> {
605        self.inner.get_step_concurrency_level()
606    }
607    /// <p>The specified managed scaling policy for an Amazon EMR cluster.</p>
608    pub fn managed_scaling_policy(mut self, input: crate::types::ManagedScalingPolicy) -> Self {
609        self.inner = self.inner.managed_scaling_policy(input);
610        self
611    }
612    /// <p>The specified managed scaling policy for an Amazon EMR cluster.</p>
613    pub fn set_managed_scaling_policy(mut self, input: ::std::option::Option<crate::types::ManagedScalingPolicy>) -> Self {
614        self.inner = self.inner.set_managed_scaling_policy(input);
615        self
616    }
617    /// <p>The specified managed scaling policy for an Amazon EMR cluster.</p>
618    pub fn get_managed_scaling_policy(&self) -> &::std::option::Option<crate::types::ManagedScalingPolicy> {
619        self.inner.get_managed_scaling_policy()
620    }
621    ///
622    /// Appends an item to `PlacementGroupConfigs`.
623    ///
624    /// To override the contents of this collection use [`set_placement_group_configs`](Self::set_placement_group_configs).
625    ///
626    /// <p>The specified placement group configuration for an Amazon EMR cluster.</p>
627    pub fn placement_group_configs(mut self, input: crate::types::PlacementGroupConfig) -> Self {
628        self.inner = self.inner.placement_group_configs(input);
629        self
630    }
631    /// <p>The specified placement group configuration for an Amazon EMR cluster.</p>
632    pub fn set_placement_group_configs(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::PlacementGroupConfig>>) -> Self {
633        self.inner = self.inner.set_placement_group_configs(input);
634        self
635    }
636    /// <p>The specified placement group configuration for an Amazon EMR cluster.</p>
637    pub fn get_placement_group_configs(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::PlacementGroupConfig>> {
638        self.inner.get_placement_group_configs()
639    }
640    /// <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>
641    pub fn auto_termination_policy(mut self, input: crate::types::AutoTerminationPolicy) -> Self {
642        self.inner = self.inner.auto_termination_policy(input);
643        self
644    }
645    /// <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>
646    pub fn set_auto_termination_policy(mut self, input: ::std::option::Option<crate::types::AutoTerminationPolicy>) -> Self {
647        self.inner = self.inner.set_auto_termination_policy(input);
648        self
649    }
650    /// <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>
651    pub fn get_auto_termination_policy(&self) -> &::std::option::Option<crate::types::AutoTerminationPolicy> {
652        self.inner.get_auto_termination_policy()
653    }
654    /// <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>
655    pub fn os_release_label(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
656        self.inner = self.inner.os_release_label(input.into());
657        self
658    }
659    /// <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>
660    pub fn set_os_release_label(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
661        self.inner = self.inner.set_os_release_label(input);
662        self
663    }
664    /// <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>
665    pub fn get_os_release_label(&self) -> &::std::option::Option<::std::string::String> {
666        self.inner.get_os_release_label()
667    }
668    /// <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>
669    pub fn ebs_root_volume_iops(mut self, input: i32) -> Self {
670        self.inner = self.inner.ebs_root_volume_iops(input);
671        self
672    }
673    /// <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>
674    pub fn set_ebs_root_volume_iops(mut self, input: ::std::option::Option<i32>) -> Self {
675        self.inner = self.inner.set_ebs_root_volume_iops(input);
676        self
677    }
678    /// <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>
679    pub fn get_ebs_root_volume_iops(&self) -> &::std::option::Option<i32> {
680        self.inner.get_ebs_root_volume_iops()
681    }
682    /// <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>
683    pub fn ebs_root_volume_throughput(mut self, input: i32) -> Self {
684        self.inner = self.inner.ebs_root_volume_throughput(input);
685        self
686    }
687    /// <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>
688    pub fn set_ebs_root_volume_throughput(mut self, input: ::std::option::Option<i32>) -> Self {
689        self.inner = self.inner.set_ebs_root_volume_throughput(input);
690        self
691    }
692    /// <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>
693    pub fn get_ebs_root_volume_throughput(&self) -> &::std::option::Option<i32> {
694        self.inner.get_ebs_root_volume_throughput()
695    }
696    /// <p>Reserved.</p>
697    pub fn extended_support(mut self, input: bool) -> Self {
698        self.inner = self.inner.extended_support(input);
699        self
700    }
701    /// <p>Reserved.</p>
702    pub fn set_extended_support(mut self, input: ::std::option::Option<bool>) -> Self {
703        self.inner = self.inner.set_extended_support(input);
704        self
705    }
706    /// <p>Reserved.</p>
707    pub fn get_extended_support(&self) -> &::std::option::Option<bool> {
708        self.inner.get_extended_support()
709    }
710    /// <p>Contains CloudWatch log configuration metadata and settings.</p>
711    pub fn monitoring_configuration(mut self, input: crate::types::MonitoringConfiguration) -> Self {
712        self.inner = self.inner.monitoring_configuration(input);
713        self
714    }
715    /// <p>Contains CloudWatch log configuration metadata and settings.</p>
716    pub fn set_monitoring_configuration(mut self, input: ::std::option::Option<crate::types::MonitoringConfiguration>) -> Self {
717        self.inner = self.inner.set_monitoring_configuration(input);
718        self
719    }
720    /// <p>Contains CloudWatch log configuration metadata and settings.</p>
721    pub fn get_monitoring_configuration(&self) -> &::std::option::Option<crate::types::MonitoringConfiguration> {
722        self.inner.get_monitoring_configuration()
723    }
724}