pub struct RunJobFlowFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to RunJobFlow
.
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 JobFlowInstancesConfig
KeepJobFlowAliveWhenNoSteps
parameter is set to TRUE
, the cluster transitions to the WAITING state rather than shutting down after the steps have completed.
For additional protection, you can set the JobFlowInstancesConfig
TerminationProtected
parameter to TRUE
to lock the cluster and prevent it from being terminated by API call, user intervention, or in the event of a job flow error.
A maximum of 256 steps are allowed in each job flow.
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.
For long-running clusters, we recommend that you periodically store your results.
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.
Implementations§
Source§impl RunJobFlowFluentBuilder
impl RunJobFlowFluentBuilder
Sourcepub fn as_input(&self) -> &RunJobFlowInputBuilder
pub fn as_input(&self) -> &RunJobFlowInputBuilder
Access the RunJobFlow as a reference.
Sourcepub async fn send(
self,
) -> Result<RunJobFlowOutput, SdkError<RunJobFlowError, HttpResponse>>
pub async fn send( self, ) -> Result<RunJobFlowOutput, SdkError<RunJobFlowError, HttpResponse>>
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, which can be set when configuring the client.
Sourcepub fn customize(
self,
) -> CustomizableOperation<RunJobFlowOutput, RunJobFlowError, Self>
pub fn customize( self, ) -> CustomizableOperation<RunJobFlowOutput, RunJobFlowError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
Sourcepub fn log_uri(self, input: impl Into<String>) -> Self
pub fn log_uri(self, input: impl Into<String>) -> Self
The location in Amazon S3 to write the log files of the job flow. If a value is not provided, logs are not created.
Sourcepub fn set_log_uri(self, input: Option<String>) -> Self
pub fn set_log_uri(self, input: Option<String>) -> Self
The location in Amazon S3 to write the log files of the job flow. If a value is not provided, logs are not created.
Sourcepub fn get_log_uri(&self) -> &Option<String>
pub fn get_log_uri(&self) -> &Option<String>
The location in Amazon S3 to write the log files of the job flow. If a value is not provided, logs are not created.
Sourcepub fn log_encryption_kms_key_id(self, input: impl Into<String>) -> Self
pub fn log_encryption_kms_key_id(self, input: impl Into<String>) -> Self
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.
Sourcepub fn set_log_encryption_kms_key_id(self, input: Option<String>) -> Self
pub fn set_log_encryption_kms_key_id(self, input: Option<String>) -> Self
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.
Sourcepub fn get_log_encryption_kms_key_id(&self) -> &Option<String>
pub fn get_log_encryption_kms_key_id(&self) -> &Option<String>
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.
Sourcepub fn additional_info(self, input: impl Into<String>) -> Self
pub fn additional_info(self, input: impl Into<String>) -> Self
A JSON string for selecting additional features.
Sourcepub fn set_additional_info(self, input: Option<String>) -> Self
pub fn set_additional_info(self, input: Option<String>) -> Self
A JSON string for selecting additional features.
Sourcepub fn get_additional_info(&self) -> &Option<String>
pub fn get_additional_info(&self) -> &Option<String>
A JSON string for selecting additional features.
Sourcepub fn ami_version(self, input: impl Into<String>) -> Self
pub fn ami_version(self, input: impl Into<String>) -> Self
Applies only to Amazon EMR AMI versions 3.x and 2.x. For Amazon EMR releases 4.0 and later, ReleaseLabel
is used. To specify a custom AMI, use CustomAmiID
.
Sourcepub fn set_ami_version(self, input: Option<String>) -> Self
pub fn set_ami_version(self, input: Option<String>) -> Self
Applies only to Amazon EMR AMI versions 3.x and 2.x. For Amazon EMR releases 4.0 and later, ReleaseLabel
is used. To specify a custom AMI, use CustomAmiID
.
Sourcepub fn get_ami_version(&self) -> &Option<String>
pub fn get_ami_version(&self) -> &Option<String>
Applies only to Amazon EMR AMI versions 3.x and 2.x. For Amazon EMR releases 4.0 and later, ReleaseLabel
is used. To specify a custom AMI, use CustomAmiID
.
Sourcepub fn release_label(self, input: impl Into<String>) -> Self
pub fn release_label(self, input: impl Into<String>) -> Self
The Amazon EMR release label, which determines the version of open-source application packages installed on the cluster. Release labels are in the form emr-x.x.x
, where x.x.x is an Amazon EMR release version such as emr-5.14.0
. For more information about Amazon EMR release versions and included application versions and features, see https://docs.aws.amazon.com/emr/latest/ReleaseGuide/. The release label applies only to Amazon EMR releases version 4.0 and later. Earlier versions use AmiVersion
.
Sourcepub fn set_release_label(self, input: Option<String>) -> Self
pub fn set_release_label(self, input: Option<String>) -> Self
The Amazon EMR release label, which determines the version of open-source application packages installed on the cluster. Release labels are in the form emr-x.x.x
, where x.x.x is an Amazon EMR release version such as emr-5.14.0
. For more information about Amazon EMR release versions and included application versions and features, see https://docs.aws.amazon.com/emr/latest/ReleaseGuide/. The release label applies only to Amazon EMR releases version 4.0 and later. Earlier versions use AmiVersion
.
Sourcepub fn get_release_label(&self) -> &Option<String>
pub fn get_release_label(&self) -> &Option<String>
The Amazon EMR release label, which determines the version of open-source application packages installed on the cluster. Release labels are in the form emr-x.x.x
, where x.x.x is an Amazon EMR release version such as emr-5.14.0
. For more information about Amazon EMR release versions and included application versions and features, see https://docs.aws.amazon.com/emr/latest/ReleaseGuide/. The release label applies only to Amazon EMR releases version 4.0 and later. Earlier versions use AmiVersion
.
Sourcepub fn instances(self, input: JobFlowInstancesConfig) -> Self
pub fn instances(self, input: JobFlowInstancesConfig) -> Self
A specification of the number and type of Amazon EC2 instances.
Sourcepub fn set_instances(self, input: Option<JobFlowInstancesConfig>) -> Self
pub fn set_instances(self, input: Option<JobFlowInstancesConfig>) -> Self
A specification of the number and type of Amazon EC2 instances.
Sourcepub fn get_instances(&self) -> &Option<JobFlowInstancesConfig>
pub fn get_instances(&self) -> &Option<JobFlowInstancesConfig>
A specification of the number and type of Amazon EC2 instances.
Sourcepub fn steps(self, input: StepConfig) -> Self
pub fn steps(self, input: StepConfig) -> Self
Appends an item to Steps
.
To override the contents of this collection use set_steps
.
A list of steps to run.
Sourcepub fn set_steps(self, input: Option<Vec<StepConfig>>) -> Self
pub fn set_steps(self, input: Option<Vec<StepConfig>>) -> Self
A list of steps to run.
Sourcepub fn get_steps(&self) -> &Option<Vec<StepConfig>>
pub fn get_steps(&self) -> &Option<Vec<StepConfig>>
A list of steps to run.
Sourcepub fn bootstrap_actions(self, input: BootstrapActionConfig) -> Self
pub fn bootstrap_actions(self, input: BootstrapActionConfig) -> Self
Appends an item to BootstrapActions
.
To override the contents of this collection use set_bootstrap_actions
.
A list of bootstrap actions to run before Hadoop starts on the cluster nodes.
Sourcepub fn set_bootstrap_actions(
self,
input: Option<Vec<BootstrapActionConfig>>,
) -> Self
pub fn set_bootstrap_actions( self, input: Option<Vec<BootstrapActionConfig>>, ) -> Self
A list of bootstrap actions to run before Hadoop starts on the cluster nodes.
Sourcepub fn get_bootstrap_actions(&self) -> &Option<Vec<BootstrapActionConfig>>
pub fn get_bootstrap_actions(&self) -> &Option<Vec<BootstrapActionConfig>>
A list of bootstrap actions to run before Hadoop starts on the cluster nodes.
Sourcepub fn supported_products(self, input: impl Into<String>) -> Self
pub fn supported_products(self, input: impl Into<String>) -> Self
Appends an item to SupportedProducts
.
To override the contents of this collection use set_supported_products
.
For Amazon EMR releases 3.x and 2.x. For Amazon EMR releases 4.x and later, use Applications.
A list of strings that indicates third-party software to use. For more information, see the Amazon EMR Developer Guide. Currently supported values are:
-
"mapr-m3" - launch the job flow using MapR M3 Edition.
-
"mapr-m5" - launch the job flow using MapR M5 Edition.
Sourcepub fn set_supported_products(self, input: Option<Vec<String>>) -> Self
pub fn set_supported_products(self, input: Option<Vec<String>>) -> Self
For Amazon EMR releases 3.x and 2.x. For Amazon EMR releases 4.x and later, use Applications.
A list of strings that indicates third-party software to use. For more information, see the Amazon EMR Developer Guide. Currently supported values are:
-
"mapr-m3" - launch the job flow using MapR M3 Edition.
-
"mapr-m5" - launch the job flow using MapR M5 Edition.
Sourcepub fn get_supported_products(&self) -> &Option<Vec<String>>
pub fn get_supported_products(&self) -> &Option<Vec<String>>
For Amazon EMR releases 3.x and 2.x. For Amazon EMR releases 4.x and later, use Applications.
A list of strings that indicates third-party software to use. For more information, see the Amazon EMR Developer Guide. Currently supported values are:
-
"mapr-m3" - launch the job flow using MapR M3 Edition.
-
"mapr-m5" - launch the job flow using MapR M5 Edition.
Sourcepub fn new_supported_products(self, input: SupportedProductConfig) -> Self
pub fn new_supported_products(self, input: SupportedProductConfig) -> Self
Appends an item to NewSupportedProducts
.
To override the contents of this collection use set_new_supported_products
.
For Amazon EMR releases 3.x and 2.x. For Amazon EMR releases 4.x and later, use Applications.
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 Amazon EMR Developer Guide. Supported values are:
-
"mapr-m3" - launch the cluster using MapR M3 Edition.
-
"mapr-m5" - launch the cluster using MapR M5 Edition.
-
"mapr" with the user arguments specifying "--edition,m3" or "--edition,m5" - launch the job flow using MapR M3 or M5 Edition respectively.
-
"mapr-m7" - launch the cluster using MapR M7 Edition.
-
"hunk" - launch the cluster with the Hunk Big Data Analytics Platform.
-
"hue"- launch the cluster with Hue installed.
-
"spark" - launch the cluster with Apache Spark installed.
-
"ganglia" - launch the cluster with the Ganglia Monitoring System installed.
Sourcepub fn set_new_supported_products(
self,
input: Option<Vec<SupportedProductConfig>>,
) -> Self
pub fn set_new_supported_products( self, input: Option<Vec<SupportedProductConfig>>, ) -> Self
For Amazon EMR releases 3.x and 2.x. For Amazon EMR releases 4.x and later, use Applications.
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 Amazon EMR Developer Guide. Supported values are:
-
"mapr-m3" - launch the cluster using MapR M3 Edition.
-
"mapr-m5" - launch the cluster using MapR M5 Edition.
-
"mapr" with the user arguments specifying "--edition,m3" or "--edition,m5" - launch the job flow using MapR M3 or M5 Edition respectively.
-
"mapr-m7" - launch the cluster using MapR M7 Edition.
-
"hunk" - launch the cluster with the Hunk Big Data Analytics Platform.
-
"hue"- launch the cluster with Hue installed.
-
"spark" - launch the cluster with Apache Spark installed.
-
"ganglia" - launch the cluster with the Ganglia Monitoring System installed.
Sourcepub fn get_new_supported_products(&self) -> &Option<Vec<SupportedProductConfig>>
pub fn get_new_supported_products(&self) -> &Option<Vec<SupportedProductConfig>>
For Amazon EMR releases 3.x and 2.x. For Amazon EMR releases 4.x and later, use Applications.
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 Amazon EMR Developer Guide. Supported values are:
-
"mapr-m3" - launch the cluster using MapR M3 Edition.
-
"mapr-m5" - launch the cluster using MapR M5 Edition.
-
"mapr" with the user arguments specifying "--edition,m3" or "--edition,m5" - launch the job flow using MapR M3 or M5 Edition respectively.
-
"mapr-m7" - launch the cluster using MapR M7 Edition.
-
"hunk" - launch the cluster with the Hunk Big Data Analytics Platform.
-
"hue"- launch the cluster with Hue installed.
-
"spark" - launch the cluster with Apache Spark installed.
-
"ganglia" - launch the cluster with the Ganglia Monitoring System installed.
Sourcepub fn applications(self, input: Application) -> Self
pub fn applications(self, input: Application) -> Self
Appends an item to Applications
.
To override the contents of this collection use set_applications
.
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 Amazon EMRRelease Guide.
Sourcepub fn set_applications(self, input: Option<Vec<Application>>) -> Self
pub fn set_applications(self, input: Option<Vec<Application>>) -> Self
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 Amazon EMRRelease Guide.
Sourcepub fn get_applications(&self) -> &Option<Vec<Application>>
pub fn get_applications(&self) -> &Option<Vec<Application>>
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 Amazon EMRRelease Guide.
Sourcepub fn configurations(self, input: Configuration) -> Self
pub fn configurations(self, input: Configuration) -> Self
Appends an item to Configurations
.
To override the contents of this collection use set_configurations
.
For Amazon EMR releases 4.0 and later. The list of configurations supplied for the Amazon EMR cluster that you are creating.
Sourcepub fn set_configurations(self, input: Option<Vec<Configuration>>) -> Self
pub fn set_configurations(self, input: Option<Vec<Configuration>>) -> Self
For Amazon EMR releases 4.0 and later. The list of configurations supplied for the Amazon EMR cluster that you are creating.
Sourcepub fn get_configurations(&self) -> &Option<Vec<Configuration>>
pub fn get_configurations(&self) -> &Option<Vec<Configuration>>
For Amazon EMR releases 4.0 and later. The list of configurations supplied for the Amazon EMR cluster that you are creating.
Sourcepub fn visible_to_all_users(self, input: bool) -> Self
pub fn visible_to_all_users(self, input: bool) -> Self
The VisibleToAllUsers parameter is no longer supported. By default, the value is set to true
. Setting it to false
now has no effect.
Set this value to true
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 true
for clusters created using the Amazon EMR API or the CLI create-cluster command.
When set to false
, 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 Understanding the Amazon EMR cluster VisibleToAllUsers setting in the Amazon EMR Management Guide.
Sourcepub fn set_visible_to_all_users(self, input: Option<bool>) -> Self
pub fn set_visible_to_all_users(self, input: Option<bool>) -> Self
The VisibleToAllUsers parameter is no longer supported. By default, the value is set to true
. Setting it to false
now has no effect.
Set this value to true
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 true
for clusters created using the Amazon EMR API or the CLI create-cluster command.
When set to false
, 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 Understanding the Amazon EMR cluster VisibleToAllUsers setting in the Amazon EMR Management Guide.
Sourcepub fn get_visible_to_all_users(&self) -> &Option<bool>
pub fn get_visible_to_all_users(&self) -> &Option<bool>
The VisibleToAllUsers parameter is no longer supported. By default, the value is set to true
. Setting it to false
now has no effect.
Set this value to true
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 true
for clusters created using the Amazon EMR API or the CLI create-cluster command.
When set to false
, 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 Understanding the Amazon EMR cluster VisibleToAllUsers setting in the Amazon EMR Management Guide.
Sourcepub fn job_flow_role(self, input: impl Into<String>) -> Self
pub fn job_flow_role(self, input: impl Into<String>) -> Self
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 EMR_EC2_DefaultRole
. In order to use the default role, you must have already created it using the CLI or console.
Sourcepub fn set_job_flow_role(self, input: Option<String>) -> Self
pub fn set_job_flow_role(self, input: Option<String>) -> Self
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 EMR_EC2_DefaultRole
. In order to use the default role, you must have already created it using the CLI or console.
Sourcepub fn get_job_flow_role(&self) -> &Option<String>
pub fn get_job_flow_role(&self) -> &Option<String>
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 EMR_EC2_DefaultRole
. In order to use the default role, you must have already created it using the CLI or console.
Sourcepub fn service_role(self, input: impl Into<String>) -> Self
pub fn service_role(self, input: impl Into<String>) -> Self
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.
Sourcepub fn set_service_role(self, input: Option<String>) -> Self
pub fn set_service_role(self, input: Option<String>) -> Self
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.
Sourcepub fn get_service_role(&self) -> &Option<String>
pub fn get_service_role(&self) -> &Option<String>
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.
Appends an item to Tags
.
To override the contents of this collection use set_tags
.
A list of tags to associate with a cluster and propagate to Amazon EC2 instances.
A list of tags to associate with a cluster and propagate to Amazon EC2 instances.
A list of tags to associate with a cluster and propagate to Amazon EC2 instances.
Sourcepub fn security_configuration(self, input: impl Into<String>) -> Self
pub fn security_configuration(self, input: impl Into<String>) -> Self
The name of a security configuration to apply to the cluster.
Sourcepub fn set_security_configuration(self, input: Option<String>) -> Self
pub fn set_security_configuration(self, input: Option<String>) -> Self
The name of a security configuration to apply to the cluster.
Sourcepub fn get_security_configuration(&self) -> &Option<String>
pub fn get_security_configuration(&self) -> &Option<String>
The name of a security configuration to apply to the cluster.
Sourcepub fn auto_scaling_role(self, input: impl Into<String>) -> Self
pub fn auto_scaling_role(self, input: impl Into<String>) -> Self
An IAM role for automatic scaling policies. The default role is EMR_AutoScaling_DefaultRole
. The IAM role provides permissions that the automatic scaling feature requires to launch and terminate Amazon EC2 instances in an instance group.
Sourcepub fn set_auto_scaling_role(self, input: Option<String>) -> Self
pub fn set_auto_scaling_role(self, input: Option<String>) -> Self
An IAM role for automatic scaling policies. The default role is EMR_AutoScaling_DefaultRole
. The IAM role provides permissions that the automatic scaling feature requires to launch and terminate Amazon EC2 instances in an instance group.
Sourcepub fn get_auto_scaling_role(&self) -> &Option<String>
pub fn get_auto_scaling_role(&self) -> &Option<String>
An IAM role for automatic scaling policies. The default role is EMR_AutoScaling_DefaultRole
. The IAM role provides permissions that the automatic scaling feature requires to launch and terminate Amazon EC2 instances in an instance group.
Sourcepub fn scale_down_behavior(self, input: ScaleDownBehavior) -> Self
pub fn scale_down_behavior(self, input: ScaleDownBehavior) -> Self
Specifies the way that individual Amazon EC2 instances terminate when an automatic scale-in activity occurs or an instance group is resized. TERMINATE_AT_INSTANCE_HOUR
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. TERMINATE_AT_TASK_COMPLETION
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. TERMINATE_AT_TASK_COMPLETION
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.
Sourcepub fn set_scale_down_behavior(self, input: Option<ScaleDownBehavior>) -> Self
pub fn set_scale_down_behavior(self, input: Option<ScaleDownBehavior>) -> Self
Specifies the way that individual Amazon EC2 instances terminate when an automatic scale-in activity occurs or an instance group is resized. TERMINATE_AT_INSTANCE_HOUR
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. TERMINATE_AT_TASK_COMPLETION
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. TERMINATE_AT_TASK_COMPLETION
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.
Sourcepub fn get_scale_down_behavior(&self) -> &Option<ScaleDownBehavior>
pub fn get_scale_down_behavior(&self) -> &Option<ScaleDownBehavior>
Specifies the way that individual Amazon EC2 instances terminate when an automatic scale-in activity occurs or an instance group is resized. TERMINATE_AT_INSTANCE_HOUR
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. TERMINATE_AT_TASK_COMPLETION
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. TERMINATE_AT_TASK_COMPLETION
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.
Sourcepub fn custom_ami_id(self, input: impl Into<String>) -> Self
pub fn custom_ami_id(self, input: impl Into<String>) -> Self
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 Using a Custom AMI in the Amazon EMR Management Guide. If omitted, the cluster uses the base Linux AMI for the ReleaseLabel
specified. For Amazon EMR releases 2.x and 3.x, use AmiVersion
instead.
For information about creating a custom AMI, see Creating an Amazon EBS-Backed Linux AMI in the Amazon Elastic Compute Cloud User Guide for Linux Instances. For information about finding an AMI ID, see Finding a Linux AMI.
Sourcepub fn set_custom_ami_id(self, input: Option<String>) -> Self
pub fn set_custom_ami_id(self, input: Option<String>) -> Self
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 Using a Custom AMI in the Amazon EMR Management Guide. If omitted, the cluster uses the base Linux AMI for the ReleaseLabel
specified. For Amazon EMR releases 2.x and 3.x, use AmiVersion
instead.
For information about creating a custom AMI, see Creating an Amazon EBS-Backed Linux AMI in the Amazon Elastic Compute Cloud User Guide for Linux Instances. For information about finding an AMI ID, see Finding a Linux AMI.
Sourcepub fn get_custom_ami_id(&self) -> &Option<String>
pub fn get_custom_ami_id(&self) -> &Option<String>
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 Using a Custom AMI in the Amazon EMR Management Guide. If omitted, the cluster uses the base Linux AMI for the ReleaseLabel
specified. For Amazon EMR releases 2.x and 3.x, use AmiVersion
instead.
For information about creating a custom AMI, see Creating an Amazon EBS-Backed Linux AMI in the Amazon Elastic Compute Cloud User Guide for Linux Instances. For information about finding an AMI ID, see Finding a Linux AMI.
Sourcepub fn ebs_root_volume_size(self, input: i32) -> Self
pub fn ebs_root_volume_size(self, input: i32) -> Self
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.
Sourcepub fn set_ebs_root_volume_size(self, input: Option<i32>) -> Self
pub fn set_ebs_root_volume_size(self, input: Option<i32>) -> Self
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.
Sourcepub fn get_ebs_root_volume_size(&self) -> &Option<i32>
pub fn get_ebs_root_volume_size(&self) -> &Option<i32>
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.
Sourcepub fn repo_upgrade_on_boot(self, input: RepoUpgradeOnBoot) -> Self
pub fn repo_upgrade_on_boot(self, input: RepoUpgradeOnBoot) -> Self
Applies only when CustomAmiID
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 SECURITY
, which indicates that only security updates are applied. If NONE
is specified, no updates are applied, and all updates must be applied manually.
Sourcepub fn set_repo_upgrade_on_boot(self, input: Option<RepoUpgradeOnBoot>) -> Self
pub fn set_repo_upgrade_on_boot(self, input: Option<RepoUpgradeOnBoot>) -> Self
Applies only when CustomAmiID
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 SECURITY
, which indicates that only security updates are applied. If NONE
is specified, no updates are applied, and all updates must be applied manually.
Sourcepub fn get_repo_upgrade_on_boot(&self) -> &Option<RepoUpgradeOnBoot>
pub fn get_repo_upgrade_on_boot(&self) -> &Option<RepoUpgradeOnBoot>
Applies only when CustomAmiID
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 SECURITY
, which indicates that only security updates are applied. If NONE
is specified, no updates are applied, and all updates must be applied manually.
Sourcepub fn kerberos_attributes(self, input: KerberosAttributes) -> Self
pub fn kerberos_attributes(self, input: KerberosAttributes) -> Self
Attributes for Kerberos configuration when Kerberos authentication is enabled using a security configuration. For more information see Use Kerberos Authentication in the Amazon EMR Management Guide.
Sourcepub fn set_kerberos_attributes(self, input: Option<KerberosAttributes>) -> Self
pub fn set_kerberos_attributes(self, input: Option<KerberosAttributes>) -> Self
Attributes for Kerberos configuration when Kerberos authentication is enabled using a security configuration. For more information see Use Kerberos Authentication in the Amazon EMR Management Guide.
Sourcepub fn get_kerberos_attributes(&self) -> &Option<KerberosAttributes>
pub fn get_kerberos_attributes(&self) -> &Option<KerberosAttributes>
Attributes for Kerberos configuration when Kerberos authentication is enabled using a security configuration. For more information see Use Kerberos Authentication in the Amazon EMR Management Guide.
Sourcepub fn step_concurrency_level(self, input: i32) -> Self
pub fn step_concurrency_level(self, input: i32) -> Self
Specifies the number of steps that can be executed concurrently. The default value is 1
. The maximum value is 256
.
Sourcepub fn set_step_concurrency_level(self, input: Option<i32>) -> Self
pub fn set_step_concurrency_level(self, input: Option<i32>) -> Self
Specifies the number of steps that can be executed concurrently. The default value is 1
. The maximum value is 256
.
Sourcepub fn get_step_concurrency_level(&self) -> &Option<i32>
pub fn get_step_concurrency_level(&self) -> &Option<i32>
Specifies the number of steps that can be executed concurrently. The default value is 1
. The maximum value is 256
.
Sourcepub fn managed_scaling_policy(self, input: ManagedScalingPolicy) -> Self
pub fn managed_scaling_policy(self, input: ManagedScalingPolicy) -> Self
The specified managed scaling policy for an Amazon EMR cluster.
Sourcepub fn set_managed_scaling_policy(
self,
input: Option<ManagedScalingPolicy>,
) -> Self
pub fn set_managed_scaling_policy( self, input: Option<ManagedScalingPolicy>, ) -> Self
The specified managed scaling policy for an Amazon EMR cluster.
Sourcepub fn get_managed_scaling_policy(&self) -> &Option<ManagedScalingPolicy>
pub fn get_managed_scaling_policy(&self) -> &Option<ManagedScalingPolicy>
The specified managed scaling policy for an Amazon EMR cluster.
Sourcepub fn placement_group_configs(self, input: PlacementGroupConfig) -> Self
pub fn placement_group_configs(self, input: PlacementGroupConfig) -> Self
Appends an item to PlacementGroupConfigs
.
To override the contents of this collection use set_placement_group_configs
.
The specified placement group configuration for an Amazon EMR cluster.
Sourcepub fn set_placement_group_configs(
self,
input: Option<Vec<PlacementGroupConfig>>,
) -> Self
pub fn set_placement_group_configs( self, input: Option<Vec<PlacementGroupConfig>>, ) -> Self
The specified placement group configuration for an Amazon EMR cluster.
Sourcepub fn get_placement_group_configs(&self) -> &Option<Vec<PlacementGroupConfig>>
pub fn get_placement_group_configs(&self) -> &Option<Vec<PlacementGroupConfig>>
The specified placement group configuration for an Amazon EMR cluster.
Sourcepub fn auto_termination_policy(self, input: AutoTerminationPolicy) -> Self
pub fn auto_termination_policy(self, input: AutoTerminationPolicy) -> Self
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 Control cluster termination.
Sourcepub fn set_auto_termination_policy(
self,
input: Option<AutoTerminationPolicy>,
) -> Self
pub fn set_auto_termination_policy( self, input: Option<AutoTerminationPolicy>, ) -> Self
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 Control cluster termination.
Sourcepub fn get_auto_termination_policy(&self) -> &Option<AutoTerminationPolicy>
pub fn get_auto_termination_policy(&self) -> &Option<AutoTerminationPolicy>
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 Control cluster termination.
Sourcepub fn os_release_label(self, input: impl Into<String>) -> Self
pub fn os_release_label(self, input: impl Into<String>) -> Self
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.
Sourcepub fn set_os_release_label(self, input: Option<String>) -> Self
pub fn set_os_release_label(self, input: Option<String>) -> Self
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.
Sourcepub fn get_os_release_label(&self) -> &Option<String>
pub fn get_os_release_label(&self) -> &Option<String>
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.
Sourcepub fn ebs_root_volume_iops(self, input: i32) -> Self
pub fn ebs_root_volume_iops(self, input: i32) -> Self
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.
Sourcepub fn set_ebs_root_volume_iops(self, input: Option<i32>) -> Self
pub fn set_ebs_root_volume_iops(self, input: Option<i32>) -> Self
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.
Sourcepub fn get_ebs_root_volume_iops(&self) -> &Option<i32>
pub fn get_ebs_root_volume_iops(&self) -> &Option<i32>
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.
Sourcepub fn ebs_root_volume_throughput(self, input: i32) -> Self
pub fn ebs_root_volume_throughput(self, input: i32) -> Self
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.
Sourcepub fn set_ebs_root_volume_throughput(self, input: Option<i32>) -> Self
pub fn set_ebs_root_volume_throughput(self, input: Option<i32>) -> Self
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.
Sourcepub fn get_ebs_root_volume_throughput(&self) -> &Option<i32>
pub fn get_ebs_root_volume_throughput(&self) -> &Option<i32>
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.
Sourcepub fn extended_support(self, input: bool) -> Self
pub fn extended_support(self, input: bool) -> Self
Reserved.
Sourcepub fn set_extended_support(self, input: Option<bool>) -> Self
pub fn set_extended_support(self, input: Option<bool>) -> Self
Reserved.
Sourcepub fn get_extended_support(&self) -> &Option<bool>
pub fn get_extended_support(&self) -> &Option<bool>
Reserved.
Trait Implementations§
Source§impl Clone for RunJobFlowFluentBuilder
impl Clone for RunJobFlowFluentBuilder
Source§fn clone(&self) -> RunJobFlowFluentBuilder
fn clone(&self) -> RunJobFlowFluentBuilder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for RunJobFlowFluentBuilder
impl !RefUnwindSafe for RunJobFlowFluentBuilder
impl Send for RunJobFlowFluentBuilder
impl Sync for RunJobFlowFluentBuilder
impl Unpin for RunJobFlowFluentBuilder
impl !UnwindSafe for RunJobFlowFluentBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Paint for Twhere
T: ?Sized,
impl<T> Paint for Twhere
T: ?Sized,
Source§fn fg(&self, value: Color) -> Painted<&T>
fn fg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self
with the foreground set to
value
.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like red()
and
green()
, which have the same functionality but are
pithier.
§Example
Set foreground color to white using fg()
:
use yansi::{Paint, Color};
painted.fg(Color::White);
Set foreground color to white using white()
.
use yansi::Paint;
painted.white();
Source§fn bright_black(&self) -> Painted<&T>
fn bright_black(&self) -> Painted<&T>
Source§fn bright_red(&self) -> Painted<&T>
fn bright_red(&self) -> Painted<&T>
Source§fn bright_green(&self) -> Painted<&T>
fn bright_green(&self) -> Painted<&T>
Source§fn bright_yellow(&self) -> Painted<&T>
fn bright_yellow(&self) -> Painted<&T>
Source§fn bright_blue(&self) -> Painted<&T>
fn bright_blue(&self) -> Painted<&T>
Source§fn bright_magenta(&self) -> Painted<&T>
fn bright_magenta(&self) -> Painted<&T>
Source§fn bright_cyan(&self) -> Painted<&T>
fn bright_cyan(&self) -> Painted<&T>
Source§fn bright_white(&self) -> Painted<&T>
fn bright_white(&self) -> Painted<&T>
Source§fn bg(&self, value: Color) -> Painted<&T>
fn bg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self
with the background set to
value
.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like on_red()
and
on_green()
, which have the same functionality but
are pithier.
§Example
Set background color to red using fg()
:
use yansi::{Paint, Color};
painted.bg(Color::Red);
Set background color to red using on_red()
.
use yansi::Paint;
painted.on_red();
Source§fn on_primary(&self) -> Painted<&T>
fn on_primary(&self) -> Painted<&T>
Source§fn on_magenta(&self) -> Painted<&T>
fn on_magenta(&self) -> Painted<&T>
Source§fn on_bright_black(&self) -> Painted<&T>
fn on_bright_black(&self) -> Painted<&T>
Source§fn on_bright_red(&self) -> Painted<&T>
fn on_bright_red(&self) -> Painted<&T>
Source§fn on_bright_green(&self) -> Painted<&T>
fn on_bright_green(&self) -> Painted<&T>
Source§fn on_bright_yellow(&self) -> Painted<&T>
fn on_bright_yellow(&self) -> Painted<&T>
Source§fn on_bright_blue(&self) -> Painted<&T>
fn on_bright_blue(&self) -> Painted<&T>
Source§fn on_bright_magenta(&self) -> Painted<&T>
fn on_bright_magenta(&self) -> Painted<&T>
Source§fn on_bright_cyan(&self) -> Painted<&T>
fn on_bright_cyan(&self) -> Painted<&T>
Source§fn on_bright_white(&self) -> Painted<&T>
fn on_bright_white(&self) -> Painted<&T>
Source§fn attr(&self, value: Attribute) -> Painted<&T>
fn attr(&self, value: Attribute) -> Painted<&T>
Enables the styling Attribute
value
.
This method should be used rarely. Instead, prefer to use
attribute-specific builder methods like bold()
and
underline()
, which have the same functionality
but are pithier.
§Example
Make text bold using attr()
:
use yansi::{Paint, Attribute};
painted.attr(Attribute::Bold);
Make text bold using using bold()
.
use yansi::Paint;
painted.bold();
Source§fn rapid_blink(&self) -> Painted<&T>
fn rapid_blink(&self) -> Painted<&T>
Source§fn quirk(&self, value: Quirk) -> Painted<&T>
fn quirk(&self, value: Quirk) -> Painted<&T>
Enables the yansi
Quirk
value
.
This method should be used rarely. Instead, prefer to use quirk-specific
builder methods like mask()
and
wrap()
, which have the same functionality but are
pithier.
§Example
Enable wrapping using .quirk()
:
use yansi::{Paint, Quirk};
painted.quirk(Quirk::Wrap);
Enable wrapping using wrap()
.
use yansi::Paint;
painted.wrap();
Source§fn clear(&self) -> Painted<&T>
👎Deprecated since 1.0.1: renamed to resetting()
due to conflicts with Vec::clear()
.
The clear()
method will be removed in a future release.
fn clear(&self) -> Painted<&T>
resetting()
due to conflicts with Vec::clear()
.
The clear()
method will be removed in a future release.Source§fn whenever(&self, value: Condition) -> Painted<&T>
fn whenever(&self, value: Condition) -> Painted<&T>
Conditionally enable styling based on whether the Condition
value
applies. Replaces any previous condition.
See the crate level docs for more details.
§Example
Enable styling painted
only when both stdout
and stderr
are TTYs:
use yansi::{Paint, Condition};
painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);