UNPKG

124 kBTypeScriptView Raw
1import {Request} from '../lib/request';
2import {Response} from '../lib/response';
3import {AWSError} from '../lib/error';
4import {Service} from '../lib/service';
5import {WaiterConfiguration} from '../lib/service';
6import {ServiceConfigurationOptions} from '../lib/service';
7import {ConfigBase as Config} from '../lib/config';
8interface Blob {}
9declare class EMR extends Service {
10 /**
11 * Constructs a service object. This object has one method for each API operation.
12 */
13 constructor(options?: EMR.Types.ClientConfiguration)
14 config: Config & EMR.Types.ClientConfiguration;
15 /**
16 * Adds an instance fleet to a running cluster. The instance fleet configuration is available only in Amazon EMR versions 4.8.0 and later, excluding 5.0.x.
17 */
18 addInstanceFleet(params: EMR.Types.AddInstanceFleetInput, callback?: (err: AWSError, data: EMR.Types.AddInstanceFleetOutput) => void): Request<EMR.Types.AddInstanceFleetOutput, AWSError>;
19 /**
20 * Adds an instance fleet to a running cluster. The instance fleet configuration is available only in Amazon EMR versions 4.8.0 and later, excluding 5.0.x.
21 */
22 addInstanceFleet(callback?: (err: AWSError, data: EMR.Types.AddInstanceFleetOutput) => void): Request<EMR.Types.AddInstanceFleetOutput, AWSError>;
23 /**
24 * Adds one or more instance groups to a running cluster.
25 */
26 addInstanceGroups(params: EMR.Types.AddInstanceGroupsInput, callback?: (err: AWSError, data: EMR.Types.AddInstanceGroupsOutput) => void): Request<EMR.Types.AddInstanceGroupsOutput, AWSError>;
27 /**
28 * Adds one or more instance groups to a running cluster.
29 */
30 addInstanceGroups(callback?: (err: AWSError, data: EMR.Types.AddInstanceGroupsOutput) => void): Request<EMR.Types.AddInstanceGroupsOutput, AWSError>;
31 /**
32 * AddJobFlowSteps adds new steps to a running cluster. 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 SSH to connect to the master node and submitting queries directly to the software running on the master node, such as Hive and Hadoop. For more information on how to do this, see Add More than 256 Steps to a Cluster in the Amazon EMR Management Guide. A step specifies the location of a JAR file stored either on the master node of the cluster or in Amazon S3. Each step is performed by the main function of the main class of the JAR file. The main class can be specified either in the manifest of the JAR or by using the MainFunction parameter of the step. Amazon EMR executes each step in the order listed. For a step to be considered complete, the main function must exit with a zero exit code and all Hadoop jobs started while the step was running must have completed and run successfully. You can only add steps to a cluster that is in one of the following states: STARTING, BOOTSTRAPPING, RUNNING, or WAITING.
33 */
34 addJobFlowSteps(params: EMR.Types.AddJobFlowStepsInput, callback?: (err: AWSError, data: EMR.Types.AddJobFlowStepsOutput) => void): Request<EMR.Types.AddJobFlowStepsOutput, AWSError>;
35 /**
36 * AddJobFlowSteps adds new steps to a running cluster. 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 SSH to connect to the master node and submitting queries directly to the software running on the master node, such as Hive and Hadoop. For more information on how to do this, see Add More than 256 Steps to a Cluster in the Amazon EMR Management Guide. A step specifies the location of a JAR file stored either on the master node of the cluster or in Amazon S3. Each step is performed by the main function of the main class of the JAR file. The main class can be specified either in the manifest of the JAR or by using the MainFunction parameter of the step. Amazon EMR executes each step in the order listed. For a step to be considered complete, the main function must exit with a zero exit code and all Hadoop jobs started while the step was running must have completed and run successfully. You can only add steps to a cluster that is in one of the following states: STARTING, BOOTSTRAPPING, RUNNING, or WAITING.
37 */
38 addJobFlowSteps(callback?: (err: AWSError, data: EMR.Types.AddJobFlowStepsOutput) => void): Request<EMR.Types.AddJobFlowStepsOutput, AWSError>;
39 /**
40 * Adds tags to an Amazon EMR resource. Tags make it easier to associate clusters in various ways, such as grouping clusters to track your Amazon EMR resource allocation costs. For more information, see Tag Clusters.
41 */
42 addTags(params: EMR.Types.AddTagsInput, callback?: (err: AWSError, data: EMR.Types.AddTagsOutput) => void): Request<EMR.Types.AddTagsOutput, AWSError>;
43 /**
44 * Adds tags to an Amazon EMR resource. Tags make it easier to associate clusters in various ways, such as grouping clusters to track your Amazon EMR resource allocation costs. For more information, see Tag Clusters.
45 */
46 addTags(callback?: (err: AWSError, data: EMR.Types.AddTagsOutput) => void): Request<EMR.Types.AddTagsOutput, AWSError>;
47 /**
48 * Cancels a pending step or steps in a running cluster. Available only in Amazon EMR versions 4.8.0 and later, excluding version 5.0.0. A maximum of 256 steps are allowed in each CancelSteps request. CancelSteps is idempotent but asynchronous; it does not guarantee a step will be canceled, even if the request is successfully submitted. You can only cancel steps that are in a PENDING state.
49 */
50 cancelSteps(params: EMR.Types.CancelStepsInput, callback?: (err: AWSError, data: EMR.Types.CancelStepsOutput) => void): Request<EMR.Types.CancelStepsOutput, AWSError>;
51 /**
52 * Cancels a pending step or steps in a running cluster. Available only in Amazon EMR versions 4.8.0 and later, excluding version 5.0.0. A maximum of 256 steps are allowed in each CancelSteps request. CancelSteps is idempotent but asynchronous; it does not guarantee a step will be canceled, even if the request is successfully submitted. You can only cancel steps that are in a PENDING state.
53 */
54 cancelSteps(callback?: (err: AWSError, data: EMR.Types.CancelStepsOutput) => void): Request<EMR.Types.CancelStepsOutput, AWSError>;
55 /**
56 * Creates a security configuration, which is stored in the service and can be specified when a cluster is created.
57 */
58 createSecurityConfiguration(params: EMR.Types.CreateSecurityConfigurationInput, callback?: (err: AWSError, data: EMR.Types.CreateSecurityConfigurationOutput) => void): Request<EMR.Types.CreateSecurityConfigurationOutput, AWSError>;
59 /**
60 * Creates a security configuration, which is stored in the service and can be specified when a cluster is created.
61 */
62 createSecurityConfiguration(callback?: (err: AWSError, data: EMR.Types.CreateSecurityConfigurationOutput) => void): Request<EMR.Types.CreateSecurityConfigurationOutput, AWSError>;
63 /**
64 * Deletes a security configuration.
65 */
66 deleteSecurityConfiguration(params: EMR.Types.DeleteSecurityConfigurationInput, callback?: (err: AWSError, data: EMR.Types.DeleteSecurityConfigurationOutput) => void): Request<EMR.Types.DeleteSecurityConfigurationOutput, AWSError>;
67 /**
68 * Deletes a security configuration.
69 */
70 deleteSecurityConfiguration(callback?: (err: AWSError, data: EMR.Types.DeleteSecurityConfigurationOutput) => void): Request<EMR.Types.DeleteSecurityConfigurationOutput, AWSError>;
71 /**
72 * Provides cluster-level details including status, hardware and software configuration, VPC settings, and so on.
73 */
74 describeCluster(params: EMR.Types.DescribeClusterInput, callback?: (err: AWSError, data: EMR.Types.DescribeClusterOutput) => void): Request<EMR.Types.DescribeClusterOutput, AWSError>;
75 /**
76 * Provides cluster-level details including status, hardware and software configuration, VPC settings, and so on.
77 */
78 describeCluster(callback?: (err: AWSError, data: EMR.Types.DescribeClusterOutput) => void): Request<EMR.Types.DescribeClusterOutput, AWSError>;
79 /**
80 * This API is deprecated and will eventually be removed. We recommend you use ListClusters, DescribeCluster, ListSteps, ListInstanceGroups and ListBootstrapActions instead. DescribeJobFlows returns a list of job flows that match all of the supplied parameters. The parameters can include a list of job flow IDs, job flow states, and restrictions on job flow creation date and time. Regardless of supplied parameters, only job flows created within the last two months are returned. If no parameters are supplied, then job flows matching either of the following criteria are returned: Job flows created and completed in the last two weeks Job flows created within the last two months that are in one of the following states: RUNNING, WAITING, SHUTTING_DOWN, STARTING Amazon EMR can return a maximum of 512 job flow descriptions.
81 */
82 describeJobFlows(params: EMR.Types.DescribeJobFlowsInput, callback?: (err: AWSError, data: EMR.Types.DescribeJobFlowsOutput) => void): Request<EMR.Types.DescribeJobFlowsOutput, AWSError>;
83 /**
84 * This API is deprecated and will eventually be removed. We recommend you use ListClusters, DescribeCluster, ListSteps, ListInstanceGroups and ListBootstrapActions instead. DescribeJobFlows returns a list of job flows that match all of the supplied parameters. The parameters can include a list of job flow IDs, job flow states, and restrictions on job flow creation date and time. Regardless of supplied parameters, only job flows created within the last two months are returned. If no parameters are supplied, then job flows matching either of the following criteria are returned: Job flows created and completed in the last two weeks Job flows created within the last two months that are in one of the following states: RUNNING, WAITING, SHUTTING_DOWN, STARTING Amazon EMR can return a maximum of 512 job flow descriptions.
85 */
86 describeJobFlows(callback?: (err: AWSError, data: EMR.Types.DescribeJobFlowsOutput) => void): Request<EMR.Types.DescribeJobFlowsOutput, AWSError>;
87 /**
88 * Provides the details of a security configuration by returning the configuration JSON.
89 */
90 describeSecurityConfiguration(params: EMR.Types.DescribeSecurityConfigurationInput, callback?: (err: AWSError, data: EMR.Types.DescribeSecurityConfigurationOutput) => void): Request<EMR.Types.DescribeSecurityConfigurationOutput, AWSError>;
91 /**
92 * Provides the details of a security configuration by returning the configuration JSON.
93 */
94 describeSecurityConfiguration(callback?: (err: AWSError, data: EMR.Types.DescribeSecurityConfigurationOutput) => void): Request<EMR.Types.DescribeSecurityConfigurationOutput, AWSError>;
95 /**
96 * Provides more detail about the cluster step.
97 */
98 describeStep(params: EMR.Types.DescribeStepInput, callback?: (err: AWSError, data: EMR.Types.DescribeStepOutput) => void): Request<EMR.Types.DescribeStepOutput, AWSError>;
99 /**
100 * Provides more detail about the cluster step.
101 */
102 describeStep(callback?: (err: AWSError, data: EMR.Types.DescribeStepOutput) => void): Request<EMR.Types.DescribeStepOutput, AWSError>;
103 /**
104 * Provides information about the bootstrap actions associated with a cluster.
105 */
106 listBootstrapActions(params: EMR.Types.ListBootstrapActionsInput, callback?: (err: AWSError, data: EMR.Types.ListBootstrapActionsOutput) => void): Request<EMR.Types.ListBootstrapActionsOutput, AWSError>;
107 /**
108 * Provides information about the bootstrap actions associated with a cluster.
109 */
110 listBootstrapActions(callback?: (err: AWSError, data: EMR.Types.ListBootstrapActionsOutput) => void): Request<EMR.Types.ListBootstrapActionsOutput, AWSError>;
111 /**
112 * Provides the status of all clusters visible to this AWS account. Allows you to filter the list of clusters based on certain criteria; for example, filtering by cluster creation date and time or by status. This call returns a maximum of 50 clusters per call, but returns a marker to track the paging of the cluster list across multiple ListClusters calls.
113 */
114 listClusters(params: EMR.Types.ListClustersInput, callback?: (err: AWSError, data: EMR.Types.ListClustersOutput) => void): Request<EMR.Types.ListClustersOutput, AWSError>;
115 /**
116 * Provides the status of all clusters visible to this AWS account. Allows you to filter the list of clusters based on certain criteria; for example, filtering by cluster creation date and time or by status. This call returns a maximum of 50 clusters per call, but returns a marker to track the paging of the cluster list across multiple ListClusters calls.
117 */
118 listClusters(callback?: (err: AWSError, data: EMR.Types.ListClustersOutput) => void): Request<EMR.Types.ListClustersOutput, AWSError>;
119 /**
120 * Lists all available details about the instance fleets in a cluster. The instance fleet configuration is available only in Amazon EMR versions 4.8.0 and later, excluding 5.0.x versions.
121 */
122 listInstanceFleets(params: EMR.Types.ListInstanceFleetsInput, callback?: (err: AWSError, data: EMR.Types.ListInstanceFleetsOutput) => void): Request<EMR.Types.ListInstanceFleetsOutput, AWSError>;
123 /**
124 * Lists all available details about the instance fleets in a cluster. The instance fleet configuration is available only in Amazon EMR versions 4.8.0 and later, excluding 5.0.x versions.
125 */
126 listInstanceFleets(callback?: (err: AWSError, data: EMR.Types.ListInstanceFleetsOutput) => void): Request<EMR.Types.ListInstanceFleetsOutput, AWSError>;
127 /**
128 * Provides all available details about the instance groups in a cluster.
129 */
130 listInstanceGroups(params: EMR.Types.ListInstanceGroupsInput, callback?: (err: AWSError, data: EMR.Types.ListInstanceGroupsOutput) => void): Request<EMR.Types.ListInstanceGroupsOutput, AWSError>;
131 /**
132 * Provides all available details about the instance groups in a cluster.
133 */
134 listInstanceGroups(callback?: (err: AWSError, data: EMR.Types.ListInstanceGroupsOutput) => void): Request<EMR.Types.ListInstanceGroupsOutput, AWSError>;
135 /**
136 * Provides information for all active EC2 instances and EC2 instances terminated in the last 30 days, up to a maximum of 2,000. EC2 instances in any of the following states are considered active: AWAITING_FULFILLMENT, PROVISIONING, BOOTSTRAPPING, RUNNING.
137 */
138 listInstances(params: EMR.Types.ListInstancesInput, callback?: (err: AWSError, data: EMR.Types.ListInstancesOutput) => void): Request<EMR.Types.ListInstancesOutput, AWSError>;
139 /**
140 * Provides information for all active EC2 instances and EC2 instances terminated in the last 30 days, up to a maximum of 2,000. EC2 instances in any of the following states are considered active: AWAITING_FULFILLMENT, PROVISIONING, BOOTSTRAPPING, RUNNING.
141 */
142 listInstances(callback?: (err: AWSError, data: EMR.Types.ListInstancesOutput) => void): Request<EMR.Types.ListInstancesOutput, AWSError>;
143 /**
144 * Lists all the security configurations visible to this account, providing their creation dates and times, and their names. This call returns a maximum of 50 clusters per call, but returns a marker to track the paging of the cluster list across multiple ListSecurityConfigurations calls.
145 */
146 listSecurityConfigurations(params: EMR.Types.ListSecurityConfigurationsInput, callback?: (err: AWSError, data: EMR.Types.ListSecurityConfigurationsOutput) => void): Request<EMR.Types.ListSecurityConfigurationsOutput, AWSError>;
147 /**
148 * Lists all the security configurations visible to this account, providing their creation dates and times, and their names. This call returns a maximum of 50 clusters per call, but returns a marker to track the paging of the cluster list across multiple ListSecurityConfigurations calls.
149 */
150 listSecurityConfigurations(callback?: (err: AWSError, data: EMR.Types.ListSecurityConfigurationsOutput) => void): Request<EMR.Types.ListSecurityConfigurationsOutput, AWSError>;
151 /**
152 * Provides a list of steps for the cluster in reverse order unless you specify stepIds with the request.
153 */
154 listSteps(params: EMR.Types.ListStepsInput, callback?: (err: AWSError, data: EMR.Types.ListStepsOutput) => void): Request<EMR.Types.ListStepsOutput, AWSError>;
155 /**
156 * Provides a list of steps for the cluster in reverse order unless you specify stepIds with the request.
157 */
158 listSteps(callback?: (err: AWSError, data: EMR.Types.ListStepsOutput) => void): Request<EMR.Types.ListStepsOutput, AWSError>;
159 /**
160 * Modifies the target On-Demand and target Spot capacities for the instance fleet with the specified InstanceFleetID within the cluster specified using ClusterID. The call either succeeds or fails atomically. The instance fleet configuration is available only in Amazon EMR versions 4.8.0 and later, excluding 5.0.x versions.
161 */
162 modifyInstanceFleet(params: EMR.Types.ModifyInstanceFleetInput, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
163 /**
164 * Modifies the target On-Demand and target Spot capacities for the instance fleet with the specified InstanceFleetID within the cluster specified using ClusterID. The call either succeeds or fails atomically. The instance fleet configuration is available only in Amazon EMR versions 4.8.0 and later, excluding 5.0.x versions.
165 */
166 modifyInstanceFleet(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
167 /**
168 * ModifyInstanceGroups modifies the number of nodes and configuration settings of an instance group. The input parameters include the new target instance count for the group and the instance group ID. The call will either succeed or fail atomically.
169 */
170 modifyInstanceGroups(params: EMR.Types.ModifyInstanceGroupsInput, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
171 /**
172 * ModifyInstanceGroups modifies the number of nodes and configuration settings of an instance group. The input parameters include the new target instance count for the group and the instance group ID. The call will either succeed or fail atomically.
173 */
174 modifyInstanceGroups(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
175 /**
176 * Creates or updates an automatic scaling policy for a core instance group or task instance group in an Amazon EMR cluster. The automatic scaling policy defines how an instance group dynamically adds and terminates EC2 instances in response to the value of a CloudWatch metric.
177 */
178 putAutoScalingPolicy(params: EMR.Types.PutAutoScalingPolicyInput, callback?: (err: AWSError, data: EMR.Types.PutAutoScalingPolicyOutput) => void): Request<EMR.Types.PutAutoScalingPolicyOutput, AWSError>;
179 /**
180 * Creates or updates an automatic scaling policy for a core instance group or task instance group in an Amazon EMR cluster. The automatic scaling policy defines how an instance group dynamically adds and terminates EC2 instances in response to the value of a CloudWatch metric.
181 */
182 putAutoScalingPolicy(callback?: (err: AWSError, data: EMR.Types.PutAutoScalingPolicyOutput) => void): Request<EMR.Types.PutAutoScalingPolicyOutput, AWSError>;
183 /**
184 * Removes an automatic scaling policy from a specified instance group within an EMR cluster.
185 */
186 removeAutoScalingPolicy(params: EMR.Types.RemoveAutoScalingPolicyInput, callback?: (err: AWSError, data: EMR.Types.RemoveAutoScalingPolicyOutput) => void): Request<EMR.Types.RemoveAutoScalingPolicyOutput, AWSError>;
187 /**
188 * Removes an automatic scaling policy from a specified instance group within an EMR cluster.
189 */
190 removeAutoScalingPolicy(callback?: (err: AWSError, data: EMR.Types.RemoveAutoScalingPolicyOutput) => void): Request<EMR.Types.RemoveAutoScalingPolicyOutput, AWSError>;
191 /**
192 * Removes tags from an Amazon EMR resource. Tags make it easier to associate clusters in various ways, such as grouping clusters to track your Amazon EMR resource allocation costs. For more information, see Tag Clusters. The following example removes the stack tag with value Prod from a cluster:
193 */
194 removeTags(params: EMR.Types.RemoveTagsInput, callback?: (err: AWSError, data: EMR.Types.RemoveTagsOutput) => void): Request<EMR.Types.RemoveTagsOutput, AWSError>;
195 /**
196 * Removes tags from an Amazon EMR resource. Tags make it easier to associate clusters in various ways, such as grouping clusters to track your Amazon EMR resource allocation costs. For more information, see Tag Clusters. The following example removes the stack tag with value Prod from a cluster:
197 */
198 removeTags(callback?: (err: AWSError, data: EMR.Types.RemoveTagsOutput) => void): Request<EMR.Types.RemoveTagsOutput, AWSError>;
199 /**
200 * 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 more information on how to do this, see Add More than 256 Steps to a Cluster in the Amazon EMR Management Guide. For long running clusters, we recommend that you periodically store your results. The instance fleets configuration is available only in Amazon EMR versions 4.8.0 and later, excluding 5.0.x versions. The RunJobFlow request can contain InstanceFleets parameters or InstanceGroups parameters, but not both.
201 */
202 runJobFlow(params: EMR.Types.RunJobFlowInput, callback?: (err: AWSError, data: EMR.Types.RunJobFlowOutput) => void): Request<EMR.Types.RunJobFlowOutput, AWSError>;
203 /**
204 * 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 more information on how to do this, see Add More than 256 Steps to a Cluster in the Amazon EMR Management Guide. For long running clusters, we recommend that you periodically store your results. The instance fleets configuration is available only in Amazon EMR versions 4.8.0 and later, excluding 5.0.x versions. The RunJobFlow request can contain InstanceFleets parameters or InstanceGroups parameters, but not both.
205 */
206 runJobFlow(callback?: (err: AWSError, data: EMR.Types.RunJobFlowOutput) => void): Request<EMR.Types.RunJobFlowOutput, AWSError>;
207 /**
208 * SetTerminationProtection locks a cluster (job flow) so the EC2 instances in the cluster cannot be terminated by user intervention, an API call, or in the event of a job-flow error. The cluster still terminates upon successful completion of the job flow. Calling SetTerminationProtection on a cluster is similar to calling the Amazon EC2 DisableAPITermination API on all EC2 instances in a cluster. SetTerminationProtection is used to prevent accidental termination of a cluster and to ensure that in the event of an error, the instances persist so that you can recover any data stored in their ephemeral instance storage. To terminate a cluster that has been locked by setting SetTerminationProtection to true, you must first unlock the job flow by a subsequent call to SetTerminationProtection in which you set the value to false. For more information, seeManaging Cluster Termination in the Amazon EMR Management Guide.
209 */
210 setTerminationProtection(params: EMR.Types.SetTerminationProtectionInput, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
211 /**
212 * SetTerminationProtection locks a cluster (job flow) so the EC2 instances in the cluster cannot be terminated by user intervention, an API call, or in the event of a job-flow error. The cluster still terminates upon successful completion of the job flow. Calling SetTerminationProtection on a cluster is similar to calling the Amazon EC2 DisableAPITermination API on all EC2 instances in a cluster. SetTerminationProtection is used to prevent accidental termination of a cluster and to ensure that in the event of an error, the instances persist so that you can recover any data stored in their ephemeral instance storage. To terminate a cluster that has been locked by setting SetTerminationProtection to true, you must first unlock the job flow by a subsequent call to SetTerminationProtection in which you set the value to false. For more information, seeManaging Cluster Termination in the Amazon EMR Management Guide.
213 */
214 setTerminationProtection(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
215 /**
216 * Sets whether all AWS Identity and Access Management (IAM) users under your account can access the specified clusters (job flows). This action works on running clusters. You can also set the visibility of a cluster when you launch it using the VisibleToAllUsers parameter of RunJobFlow. The SetVisibleToAllUsers action can be called only by an IAM user who created the cluster or the AWS account that owns the cluster.
217 */
218 setVisibleToAllUsers(params: EMR.Types.SetVisibleToAllUsersInput, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
219 /**
220 * Sets whether all AWS Identity and Access Management (IAM) users under your account can access the specified clusters (job flows). This action works on running clusters. You can also set the visibility of a cluster when you launch it using the VisibleToAllUsers parameter of RunJobFlow. The SetVisibleToAllUsers action can be called only by an IAM user who created the cluster or the AWS account that owns the cluster.
221 */
222 setVisibleToAllUsers(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
223 /**
224 * TerminateJobFlows shuts a list of clusters (job flows) down. When a job flow is shut down, any step not yet completed is canceled and the EC2 instances on which the cluster is running are stopped. Any log files not already saved are uploaded to Amazon S3 if a LogUri was specified when the cluster was created. The maximum number of clusters allowed is 10. The call to TerminateJobFlows is asynchronous. Depending on the configuration of the cluster, it may take up to 1-5 minutes for the cluster to completely terminate and release allocated resources, such as Amazon EC2 instances.
225 */
226 terminateJobFlows(params: EMR.Types.TerminateJobFlowsInput, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
227 /**
228 * TerminateJobFlows shuts a list of clusters (job flows) down. When a job flow is shut down, any step not yet completed is canceled and the EC2 instances on which the cluster is running are stopped. Any log files not already saved are uploaded to Amazon S3 if a LogUri was specified when the cluster was created. The maximum number of clusters allowed is 10. The call to TerminateJobFlows is asynchronous. Depending on the configuration of the cluster, it may take up to 1-5 minutes for the cluster to completely terminate and release allocated resources, such as Amazon EC2 instances.
229 */
230 terminateJobFlows(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
231 /**
232 * Waits for the clusterRunning state by periodically calling the underlying EMR.describeClusteroperation every 30 seconds (at most 60 times).
233 */
234 waitFor(state: "clusterRunning", params: EMR.Types.DescribeClusterInput & {$waiter?: WaiterConfiguration}, callback?: (err: AWSError, data: EMR.Types.DescribeClusterOutput) => void): Request<EMR.Types.DescribeClusterOutput, AWSError>;
235 /**
236 * Waits for the clusterRunning state by periodically calling the underlying EMR.describeClusteroperation every 30 seconds (at most 60 times).
237 */
238 waitFor(state: "clusterRunning", callback?: (err: AWSError, data: EMR.Types.DescribeClusterOutput) => void): Request<EMR.Types.DescribeClusterOutput, AWSError>;
239 /**
240 * Waits for the stepComplete state by periodically calling the underlying EMR.describeStepoperation every 30 seconds (at most 60 times).
241 */
242 waitFor(state: "stepComplete", params: EMR.Types.DescribeStepInput & {$waiter?: WaiterConfiguration}, callback?: (err: AWSError, data: EMR.Types.DescribeStepOutput) => void): Request<EMR.Types.DescribeStepOutput, AWSError>;
243 /**
244 * Waits for the stepComplete state by periodically calling the underlying EMR.describeStepoperation every 30 seconds (at most 60 times).
245 */
246 waitFor(state: "stepComplete", callback?: (err: AWSError, data: EMR.Types.DescribeStepOutput) => void): Request<EMR.Types.DescribeStepOutput, AWSError>;
247 /**
248 * Waits for the clusterTerminated state by periodically calling the underlying EMR.describeClusteroperation every 30 seconds (at most 60 times).
249 */
250 waitFor(state: "clusterTerminated", params: EMR.Types.DescribeClusterInput & {$waiter?: WaiterConfiguration}, callback?: (err: AWSError, data: EMR.Types.DescribeClusterOutput) => void): Request<EMR.Types.DescribeClusterOutput, AWSError>;
251 /**
252 * Waits for the clusterTerminated state by periodically calling the underlying EMR.describeClusteroperation every 30 seconds (at most 60 times).
253 */
254 waitFor(state: "clusterTerminated", callback?: (err: AWSError, data: EMR.Types.DescribeClusterOutput) => void): Request<EMR.Types.DescribeClusterOutput, AWSError>;
255}
256declare namespace EMR {
257 export type ActionOnFailure = "TERMINATE_JOB_FLOW"|"TERMINATE_CLUSTER"|"CANCEL_AND_WAIT"|"CONTINUE"|string;
258 export interface AddInstanceFleetInput {
259 /**
260 * The unique identifier of the cluster.
261 */
262 ClusterId: XmlStringMaxLen256;
263 /**
264 * Specifies the configuration of the instance fleet.
265 */
266 InstanceFleet: InstanceFleetConfig;
267 }
268 export interface AddInstanceFleetOutput {
269 /**
270 * The unique identifier of the cluster.
271 */
272 ClusterId?: XmlStringMaxLen256;
273 /**
274 * The unique identifier of the instance fleet.
275 */
276 InstanceFleetId?: InstanceFleetId;
277 }
278 export interface AddInstanceGroupsInput {
279 /**
280 * Instance groups to add.
281 */
282 InstanceGroups: InstanceGroupConfigList;
283 /**
284 * Job flow in which to add the instance groups.
285 */
286 JobFlowId: XmlStringMaxLen256;
287 }
288 export interface AddInstanceGroupsOutput {
289 /**
290 * The job flow ID in which the instance groups are added.
291 */
292 JobFlowId?: XmlStringMaxLen256;
293 /**
294 * Instance group IDs of the newly created instance groups.
295 */
296 InstanceGroupIds?: InstanceGroupIdsList;
297 }
298 export interface AddJobFlowStepsInput {
299 /**
300 * A string that uniquely identifies the job flow. This identifier is returned by RunJobFlow and can also be obtained from ListClusters.
301 */
302 JobFlowId: XmlStringMaxLen256;
303 /**
304 * A list of StepConfig to be executed by the job flow.
305 */
306 Steps: StepConfigList;
307 }
308 export interface AddJobFlowStepsOutput {
309 /**
310 * The identifiers of the list of steps added to the job flow.
311 */
312 StepIds?: StepIdsList;
313 }
314 export interface AddTagsInput {
315 /**
316 * The Amazon EMR resource identifier to which tags will be added. This value must be a cluster identifier.
317 */
318 ResourceId: ResourceId;
319 /**
320 * A list of tags to associate with a cluster and propagate to EC2 instances. Tags are user-defined key/value pairs that consist of a required key string with a maximum of 128 characters, and an optional value string with a maximum of 256 characters.
321 */
322 Tags: TagList;
323 }
324 export interface AddTagsOutput {
325 }
326 export type AdjustmentType = "CHANGE_IN_CAPACITY"|"PERCENT_CHANGE_IN_CAPACITY"|"EXACT_CAPACITY"|string;
327 export interface Application {
328 /**
329 * The name of the application.
330 */
331 Name?: String;
332 /**
333 * The version of the application.
334 */
335 Version?: String;
336 /**
337 * Arguments for Amazon EMR to pass to the application.
338 */
339 Args?: StringList;
340 /**
341 * This option is for advanced users only. This is meta information about third-party applications that third-party vendors use for testing purposes.
342 */
343 AdditionalInfo?: StringMap;
344 }
345 export type ApplicationList = Application[];
346 export interface AutoScalingPolicy {
347 /**
348 * The upper and lower EC2 instance limits for an automatic scaling policy. Automatic scaling activity will not cause an instance group to grow above or below these limits.
349 */
350 Constraints: ScalingConstraints;
351 /**
352 * The scale-in and scale-out rules that comprise the automatic scaling policy.
353 */
354 Rules: ScalingRuleList;
355 }
356 export interface AutoScalingPolicyDescription {
357 /**
358 * The status of an automatic scaling policy.
359 */
360 Status?: AutoScalingPolicyStatus;
361 /**
362 * The upper and lower EC2 instance limits for an automatic scaling policy. Automatic scaling activity will not cause an instance group to grow above or below these limits.
363 */
364 Constraints?: ScalingConstraints;
365 /**
366 * The scale-in and scale-out rules that comprise the automatic scaling policy.
367 */
368 Rules?: ScalingRuleList;
369 }
370 export type AutoScalingPolicyState = "PENDING"|"ATTACHING"|"ATTACHED"|"DETACHING"|"DETACHED"|"FAILED"|string;
371 export interface AutoScalingPolicyStateChangeReason {
372 /**
373 * The code indicating the reason for the change in status.USER_REQUEST indicates that the scaling policy status was changed by a user. PROVISION_FAILURE indicates that the status change was because the policy failed to provision. CLEANUP_FAILURE indicates an error.
374 */
375 Code?: AutoScalingPolicyStateChangeReasonCode;
376 /**
377 * A friendly, more verbose message that accompanies an automatic scaling policy state change.
378 */
379 Message?: String;
380 }
381 export type AutoScalingPolicyStateChangeReasonCode = "USER_REQUEST"|"PROVISION_FAILURE"|"CLEANUP_FAILURE"|string;
382 export interface AutoScalingPolicyStatus {
383 /**
384 * Indicates the status of the automatic scaling policy.
385 */
386 State?: AutoScalingPolicyState;
387 /**
388 * The reason for a change in status.
389 */
390 StateChangeReason?: AutoScalingPolicyStateChangeReason;
391 }
392 export type Boolean = boolean;
393 export type BooleanObject = boolean;
394 export interface BootstrapActionConfig {
395 /**
396 * The name of the bootstrap action.
397 */
398 Name: XmlStringMaxLen256;
399 /**
400 * The script run by the bootstrap action.
401 */
402 ScriptBootstrapAction: ScriptBootstrapActionConfig;
403 }
404 export type BootstrapActionConfigList = BootstrapActionConfig[];
405 export interface BootstrapActionDetail {
406 /**
407 * A description of the bootstrap action.
408 */
409 BootstrapActionConfig?: BootstrapActionConfig;
410 }
411 export type BootstrapActionDetailList = BootstrapActionDetail[];
412 export interface CancelStepsInfo {
413 /**
414 * The encrypted StepId of a step.
415 */
416 StepId?: StepId;
417 /**
418 * The status of a CancelSteps Request. The value may be SUBMITTED or FAILED.
419 */
420 Status?: CancelStepsRequestStatus;
421 /**
422 * The reason for the failure if the CancelSteps request fails.
423 */
424 Reason?: String;
425 }
426 export type CancelStepsInfoList = CancelStepsInfo[];
427 export interface CancelStepsInput {
428 /**
429 * The ClusterID for which specified steps will be canceled. Use RunJobFlow and ListClusters to get ClusterIDs.
430 */
431 ClusterId?: XmlStringMaxLen256;
432 /**
433 * The list of StepIDs to cancel. Use ListSteps to get steps and their states for the specified cluster.
434 */
435 StepIds?: StepIdsList;
436 }
437 export interface CancelStepsOutput {
438 /**
439 * A list of CancelStepsInfo, which shows the status of specified cancel requests for each StepID specified.
440 */
441 CancelStepsInfoList?: CancelStepsInfoList;
442 }
443 export type CancelStepsRequestStatus = "SUBMITTED"|"FAILED"|string;
444 export interface CloudWatchAlarmDefinition {
445 /**
446 * Determines how the metric specified by MetricName is compared to the value specified by Threshold.
447 */
448 ComparisonOperator: ComparisonOperator;
449 /**
450 * The number of periods, expressed in seconds using Period, during which the alarm condition must exist before the alarm triggers automatic scaling activity. The default value is 1.
451 */
452 EvaluationPeriods?: Integer;
453 /**
454 * The name of the CloudWatch metric that is watched to determine an alarm condition.
455 */
456 MetricName: String;
457 /**
458 * The namespace for the CloudWatch metric. The default is AWS/ElasticMapReduce.
459 */
460 Namespace?: String;
461 /**
462 * The period, in seconds, over which the statistic is applied. EMR CloudWatch metrics are emitted every five minutes (300 seconds), so if an EMR CloudWatch metric is specified, specify 300.
463 */
464 Period: Integer;
465 /**
466 * The statistic to apply to the metric associated with the alarm. The default is AVERAGE.
467 */
468 Statistic?: Statistic;
469 /**
470 * The value against which the specified statistic is compared.
471 */
472 Threshold: NonNegativeDouble;
473 /**
474 * The unit of measure associated with the CloudWatch metric being watched. The value specified for Unit must correspond to the units specified in the CloudWatch metric.
475 */
476 Unit?: Unit;
477 /**
478 * A CloudWatch metric dimension.
479 */
480 Dimensions?: MetricDimensionList;
481 }
482 export interface Cluster {
483 /**
484 * The unique identifier for the cluster.
485 */
486 Id?: ClusterId;
487 /**
488 * The name of the cluster.
489 */
490 Name?: String;
491 /**
492 * The current status details about the cluster.
493 */
494 Status?: ClusterStatus;
495 /**
496 * Provides information about the EC2 instances in a cluster grouped by category. For example, key name, subnet ID, IAM instance profile, and so on.
497 */
498 Ec2InstanceAttributes?: Ec2InstanceAttributes;
499 /**
500 * The instance fleet configuration is available only in Amazon EMR versions 4.8.0 and later, excluding 5.0.x versions. The instance group configuration of the cluster. A value of INSTANCE_GROUP indicates a uniform instance group configuration. A value of INSTANCE_FLEET indicates an instance fleets configuration.
501 */
502 InstanceCollectionType?: InstanceCollectionType;
503 /**
504 * The path to the Amazon S3 location where logs for this cluster are stored.
505 */
506 LogUri?: String;
507 /**
508 * The AMI version requested for this cluster.
509 */
510 RequestedAmiVersion?: String;
511 /**
512 * The AMI version running on this cluster.
513 */
514 RunningAmiVersion?: String;
515 /**
516 * 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, for example, emr-5.14.0. For more information about Amazon EMR release versions and included application versions and features, see http://docs.aws.amazon.com/emr/latest/ReleaseGuide/. The release label applies only to Amazon EMR releases versions 4.x and later. Earlier versions use AmiVersion.
517 */
518 ReleaseLabel?: String;
519 /**
520 * Specifies whether the cluster should terminate after completing all steps.
521 */
522 AutoTerminate?: Boolean;
523 /**
524 * Indicates whether Amazon EMR will lock the cluster to prevent the EC2 instances from being terminated by an API call or user intervention, or in the event of a cluster error.
525 */
526 TerminationProtected?: Boolean;
527 /**
528 * Indicates whether the cluster is visible to all IAM users of the AWS account associated with the cluster. If this value is set to true, all IAM users of that AWS account can view and manage the cluster if they have the proper policy permissions set. If this value is false, only the IAM user that created the cluster can view and manage it. This value can be changed using the SetVisibleToAllUsers action.
529 */
530 VisibleToAllUsers?: Boolean;
531 /**
532 * The applications installed on this cluster.
533 */
534 Applications?: ApplicationList;
535 /**
536 * A list of tags associated with a cluster.
537 */
538 Tags?: TagList;
539 /**
540 * The IAM role that will be assumed by the Amazon EMR service to access AWS resources on your behalf.
541 */
542 ServiceRole?: String;
543 /**
544 * An approximation of the cost of the cluster, represented in m1.small/hours. This value is incremented one time for every hour an m1.small instance runs. Larger instances are weighted more, so an EC2 instance that is roughly four times more expensive would result in the normalized instance hours being incremented by four. This result is only an approximation and does not reflect the actual billing rate.
545 */
546 NormalizedInstanceHours?: Integer;
547 /**
548 * The DNS name of the master node. If the cluster is on a private subnet, this is the private DNS name. On a public subnet, this is the public DNS name.
549 */
550 MasterPublicDnsName?: String;
551 /**
552 * Applies only to Amazon EMR releases 4.x and later. The list of Configurations supplied to the EMR cluster.
553 */
554 Configurations?: ConfigurationList;
555 /**
556 * The name of the security configuration applied to the cluster.
557 */
558 SecurityConfiguration?: XmlString;
559 /**
560 * 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 EC2 instances in an instance group.
561 */
562 AutoScalingRole?: XmlString;
563 /**
564 * 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 blacklists 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 is available only in Amazon EMR version 4.1.0 and later, and is the default for versions of Amazon EMR earlier than 5.1.0.
565 */
566 ScaleDownBehavior?: ScaleDownBehavior;
567 /**
568 * Available only in Amazon EMR version 5.7.0 and later. The ID of a custom Amazon EBS-backed Linux AMI if the cluster uses a custom AMI.
569 */
570 CustomAmiId?: XmlStringMaxLen256;
571 /**
572 * The size, in GiB, of the EBS root device volume of the Linux AMI that is used for each EC2 instance. Available in Amazon EMR version 4.x and later.
573 */
574 EbsRootVolumeSize?: Integer;
575 /**
576 * Applies only when CustomAmiID is used. Specifies the type of updates that are applied from the Amazon Linux AMI package repositories when an instance boots using the AMI.
577 */
578 RepoUpgradeOnBoot?: RepoUpgradeOnBoot;
579 /**
580 * Attributes for Kerberos configuration when Kerberos authentication is enabled using a security configuration. For more information see Use Kerberos Authentication in the EMR Management Guide.
581 */
582 KerberosAttributes?: KerberosAttributes;
583 }
584 export type ClusterId = string;
585 export type ClusterState = "STARTING"|"BOOTSTRAPPING"|"RUNNING"|"WAITING"|"TERMINATING"|"TERMINATED"|"TERMINATED_WITH_ERRORS"|string;
586 export interface ClusterStateChangeReason {
587 /**
588 * The programmatic code for the state change reason.
589 */
590 Code?: ClusterStateChangeReasonCode;
591 /**
592 * The descriptive message for the state change reason.
593 */
594 Message?: String;
595 }
596 export type ClusterStateChangeReasonCode = "INTERNAL_ERROR"|"VALIDATION_ERROR"|"INSTANCE_FAILURE"|"INSTANCE_FLEET_TIMEOUT"|"BOOTSTRAP_FAILURE"|"USER_REQUEST"|"STEP_FAILURE"|"ALL_STEPS_COMPLETED"|string;
597 export type ClusterStateList = ClusterState[];
598 export interface ClusterStatus {
599 /**
600 * The current state of the cluster.
601 */
602 State?: ClusterState;
603 /**
604 * The reason for the cluster status change.
605 */
606 StateChangeReason?: ClusterStateChangeReason;
607 /**
608 * A timeline that represents the status of a cluster over the lifetime of the cluster.
609 */
610 Timeline?: ClusterTimeline;
611 }
612 export interface ClusterSummary {
613 /**
614 * The unique identifier for the cluster.
615 */
616 Id?: ClusterId;
617 /**
618 * The name of the cluster.
619 */
620 Name?: String;
621 /**
622 * The details about the current status of the cluster.
623 */
624 Status?: ClusterStatus;
625 /**
626 * An approximation of the cost of the cluster, represented in m1.small/hours. This value is incremented one time for every hour an m1.small instance runs. Larger instances are weighted more, so an EC2 instance that is roughly four times more expensive would result in the normalized instance hours being incremented by four. This result is only an approximation and does not reflect the actual billing rate.
627 */
628 NormalizedInstanceHours?: Integer;
629 }
630 export type ClusterSummaryList = ClusterSummary[];
631 export interface ClusterTimeline {
632 /**
633 * The creation date and time of the cluster.
634 */
635 CreationDateTime?: _Date;
636 /**
637 * The date and time when the cluster was ready to execute steps.
638 */
639 ReadyDateTime?: _Date;
640 /**
641 * The date and time when the cluster was terminated.
642 */
643 EndDateTime?: _Date;
644 }
645 export interface Command {
646 /**
647 * The name of the command.
648 */
649 Name?: String;
650 /**
651 * The Amazon S3 location of the command script.
652 */
653 ScriptPath?: String;
654 /**
655 * Arguments for Amazon EMR to pass to the command for execution.
656 */
657 Args?: StringList;
658 }
659 export type CommandList = Command[];
660 export type ComparisonOperator = "GREATER_THAN_OR_EQUAL"|"GREATER_THAN"|"LESS_THAN"|"LESS_THAN_OR_EQUAL"|string;
661 export interface Configuration {
662 /**
663 * The classification within a configuration.
664 */
665 Classification?: String;
666 /**
667 * A list of additional configurations to apply within a configuration object.
668 */
669 Configurations?: ConfigurationList;
670 /**
671 * A set of properties specified within a configuration classification.
672 */
673 Properties?: StringMap;
674 }
675 export type ConfigurationList = Configuration[];
676 export interface CreateSecurityConfigurationInput {
677 /**
678 * The name of the security configuration.
679 */
680 Name: XmlString;
681 /**
682 * The security configuration details in JSON format. For JSON parameters and examples, see Use Security Configurations to Set Up Cluster Security in the Amazon EMR Management Guide.
683 */
684 SecurityConfiguration: String;
685 }
686 export interface CreateSecurityConfigurationOutput {
687 /**
688 * The name of the security configuration.
689 */
690 Name: XmlString;
691 /**
692 * The date and time the security configuration was created.
693 */
694 CreationDateTime: _Date;
695 }
696 export type _Date = Date;
697 export interface DeleteSecurityConfigurationInput {
698 /**
699 * The name of the security configuration.
700 */
701 Name: XmlString;
702 }
703 export interface DeleteSecurityConfigurationOutput {
704 }
705 export interface DescribeClusterInput {
706 /**
707 * The identifier of the cluster to describe.
708 */
709 ClusterId: ClusterId;
710 }
711 export interface DescribeClusterOutput {
712 /**
713 * This output contains the details for the requested cluster.
714 */
715 Cluster?: Cluster;
716 }
717 export interface DescribeJobFlowsInput {
718 /**
719 * Return only job flows created after this date and time.
720 */
721 CreatedAfter?: _Date;
722 /**
723 * Return only job flows created before this date and time.
724 */
725 CreatedBefore?: _Date;
726 /**
727 * Return only job flows whose job flow ID is contained in this list.
728 */
729 JobFlowIds?: XmlStringList;
730 /**
731 * Return only job flows whose state is contained in this list.
732 */
733 JobFlowStates?: JobFlowExecutionStateList;
734 }
735 export interface DescribeJobFlowsOutput {
736 /**
737 * A list of job flows matching the parameters supplied.
738 */
739 JobFlows?: JobFlowDetailList;
740 }
741 export interface DescribeSecurityConfigurationInput {
742 /**
743 * The name of the security configuration.
744 */
745 Name: XmlString;
746 }
747 export interface DescribeSecurityConfigurationOutput {
748 /**
749 * The name of the security configuration.
750 */
751 Name?: XmlString;
752 /**
753 * The security configuration details in JSON format.
754 */
755 SecurityConfiguration?: String;
756 /**
757 * The date and time the security configuration was created
758 */
759 CreationDateTime?: _Date;
760 }
761 export interface DescribeStepInput {
762 /**
763 * The identifier of the cluster with steps to describe.
764 */
765 ClusterId: ClusterId;
766 /**
767 * The identifier of the step to describe.
768 */
769 StepId: StepId;
770 }
771 export interface DescribeStepOutput {
772 /**
773 * The step details for the requested step identifier.
774 */
775 Step?: Step;
776 }
777 export type EC2InstanceIdsList = InstanceId[];
778 export type EC2InstanceIdsToTerminateList = InstanceId[];
779 export interface EbsBlockDevice {
780 /**
781 * EBS volume specifications such as volume type, IOPS, and size (GiB) that will be requested for the EBS volume attached to an EC2 instance in the cluster.
782 */
783 VolumeSpecification?: VolumeSpecification;
784 /**
785 * The device name that is exposed to the instance, such as /dev/sdh.
786 */
787 Device?: String;
788 }
789 export interface EbsBlockDeviceConfig {
790 /**
791 * EBS volume specifications such as volume type, IOPS, and size (GiB) that will be requested for the EBS volume attached to an EC2 instance in the cluster.
792 */
793 VolumeSpecification: VolumeSpecification;
794 /**
795 * Number of EBS volumes with a specific volume configuration that will be associated with every instance in the instance group
796 */
797 VolumesPerInstance?: Integer;
798 }
799 export type EbsBlockDeviceConfigList = EbsBlockDeviceConfig[];
800 export type EbsBlockDeviceList = EbsBlockDevice[];
801 export interface EbsConfiguration {
802 /**
803 * An array of Amazon EBS volume specifications attached to a cluster instance.
804 */
805 EbsBlockDeviceConfigs?: EbsBlockDeviceConfigList;
806 /**
807 * Indicates whether an Amazon EBS volume is EBS-optimized.
808 */
809 EbsOptimized?: BooleanObject;
810 }
811 export interface EbsVolume {
812 /**
813 * The device name that is exposed to the instance, such as /dev/sdh.
814 */
815 Device?: String;
816 /**
817 * The volume identifier of the EBS volume.
818 */
819 VolumeId?: String;
820 }
821 export type EbsVolumeList = EbsVolume[];
822 export interface Ec2InstanceAttributes {
823 /**
824 * The name of the Amazon EC2 key pair to use when connecting with SSH into the master node as a user named "hadoop".
825 */
826 Ec2KeyName?: String;
827 /**
828 * To launch the cluster in Amazon VPC, set this parameter to the identifier of the Amazon VPC subnet where you want the cluster to launch. If you do not specify this value, the cluster is launched in the normal AWS cloud, outside of a VPC. Amazon VPC currently does not support cluster compute quadruple extra large (cc1.4xlarge) instances. Thus, you cannot specify the cc1.4xlarge instance type for nodes of a cluster launched in a VPC.
829 */
830 Ec2SubnetId?: String;
831 /**
832 * Applies to clusters configured with the instance fleets option. Specifies the unique identifier of one or more Amazon EC2 subnets in which to launch EC2 cluster instances. Subnets must exist within the same VPC. Amazon EMR chooses the EC2 subnet with the best fit from among the list of RequestedEc2SubnetIds, and then launches all cluster instances within that Subnet. If this value is not specified, and the account and region support EC2-Classic networks, the cluster launches instances in the EC2-Classic network and uses RequestedEc2AvailabilityZones instead of this setting. If EC2-Classic is not supported, and no Subnet is specified, Amazon EMR chooses the subnet for you. RequestedEc2SubnetIDs and RequestedEc2AvailabilityZones cannot be specified together.
833 */
834 RequestedEc2SubnetIds?: XmlStringMaxLen256List;
835 /**
836 * The Availability Zone in which the cluster will run.
837 */
838 Ec2AvailabilityZone?: String;
839 /**
840 * Applies to clusters configured with the instance fleets option. Specifies one or more Availability Zones in which to launch EC2 cluster instances when the EC2-Classic network configuration is supported. Amazon EMR chooses the Availability Zone with the best fit from among the list of RequestedEc2AvailabilityZones, and then launches all cluster instances within that Availability Zone. If you do not specify this value, Amazon EMR chooses the Availability Zone for you. RequestedEc2SubnetIDs and RequestedEc2AvailabilityZones cannot be specified together.
841 */
842 RequestedEc2AvailabilityZones?: XmlStringMaxLen256List;
843 /**
844 * The IAM role that was specified when the cluster was launched. The EC2 instances of the cluster assume this role.
845 */
846 IamInstanceProfile?: String;
847 /**
848 * The identifier of the Amazon EC2 security group for the master node.
849 */
850 EmrManagedMasterSecurityGroup?: String;
851 /**
852 * The identifier of the Amazon EC2 security group for the core and task nodes.
853 */
854 EmrManagedSlaveSecurityGroup?: String;
855 /**
856 * The identifier of the Amazon EC2 security group for the Amazon EMR service to access clusters in VPC private subnets.
857 */
858 ServiceAccessSecurityGroup?: String;
859 /**
860 * A list of additional Amazon EC2 security group IDs for the master node.
861 */
862 AdditionalMasterSecurityGroups?: StringList;
863 /**
864 * A list of additional Amazon EC2 security group IDs for the core and task nodes.
865 */
866 AdditionalSlaveSecurityGroups?: StringList;
867 }
868 export interface FailureDetails {
869 /**
870 * The reason for the step failure. In the case where the service cannot successfully determine the root cause of the failure, it returns "Unknown Error" as a reason.
871 */
872 Reason?: String;
873 /**
874 * The descriptive message including the error the EMR service has identified as the cause of step failure. This is text from an error log that describes the root cause of the failure.
875 */
876 Message?: String;
877 /**
878 * The path to the log file where the step failure root cause was originally recorded.
879 */
880 LogFile?: String;
881 }
882 export interface HadoopJarStepConfig {
883 /**
884 * A list of Java properties that are set when the step runs. You can use these properties to pass key value pairs to your main function.
885 */
886 Properties?: KeyValueList;
887 /**
888 * A path to a JAR file run during the step.
889 */
890 Jar: XmlString;
891 /**
892 * The name of the main class in the specified Java file. If not specified, the JAR file should specify a Main-Class in its manifest file.
893 */
894 MainClass?: XmlString;
895 /**
896 * A list of command line arguments passed to the JAR file's main function when executed.
897 */
898 Args?: XmlStringList;
899 }
900 export interface HadoopStepConfig {
901 /**
902 * The path to the JAR file that runs during the step.
903 */
904 Jar?: String;
905 /**
906 * The list of Java properties that are set when the step runs. You can use these properties to pass key value pairs to your main function.
907 */
908 Properties?: StringMap;
909 /**
910 * The name of the main class in the specified Java file. If not specified, the JAR file should specify a main class in its manifest file.
911 */
912 MainClass?: String;
913 /**
914 * The list of command line arguments to pass to the JAR file's main function for execution.
915 */
916 Args?: StringList;
917 }
918 export interface Instance {
919 /**
920 * The unique identifier for the instance in Amazon EMR.
921 */
922 Id?: InstanceId;
923 /**
924 * The unique identifier of the instance in Amazon EC2.
925 */
926 Ec2InstanceId?: InstanceId;
927 /**
928 * The public DNS name of the instance.
929 */
930 PublicDnsName?: String;
931 /**
932 * The public IP address of the instance.
933 */
934 PublicIpAddress?: String;
935 /**
936 * The private DNS name of the instance.
937 */
938 PrivateDnsName?: String;
939 /**
940 * The private IP address of the instance.
941 */
942 PrivateIpAddress?: String;
943 /**
944 * The current status of the instance.
945 */
946 Status?: InstanceStatus;
947 /**
948 * The identifier of the instance group to which this instance belongs.
949 */
950 InstanceGroupId?: String;
951 /**
952 * The unique identifier of the instance fleet to which an EC2 instance belongs.
953 */
954 InstanceFleetId?: InstanceFleetId;
955 /**
956 * The instance purchasing option. Valid values are ON_DEMAND or SPOT.
957 */
958 Market?: MarketType;
959 /**
960 * The EC2 instance type, for example m3.xlarge.
961 */
962 InstanceType?: InstanceType;
963 /**
964 * The list of EBS volumes that are attached to this instance.
965 */
966 EbsVolumes?: EbsVolumeList;
967 }
968 export type InstanceCollectionType = "INSTANCE_FLEET"|"INSTANCE_GROUP"|string;
969 export interface InstanceFleet {
970 /**
971 * The unique identifier of the instance fleet.
972 */
973 Id?: InstanceFleetId;
974 /**
975 * A friendly name for the instance fleet.
976 */
977 Name?: XmlStringMaxLen256;
978 /**
979 * The current status of the instance fleet.
980 */
981 Status?: InstanceFleetStatus;
982 /**
983 * The node type that the instance fleet hosts. Valid values are MASTER, CORE, or TASK.
984 */
985 InstanceFleetType?: InstanceFleetType;
986 /**
987 * The target capacity of On-Demand units for the instance fleet, which determines how many On-Demand instances to provision. When the instance fleet launches, Amazon EMR tries to provision On-Demand instances as specified by InstanceTypeConfig. Each instance configuration has a specified WeightedCapacity. When an On-Demand instance is provisioned, the WeightedCapacity units count toward the target capacity. Amazon EMR provisions instances until the target capacity is totally fulfilled, even if this results in an overage. For example, if there are 2 units remaining to fulfill capacity, and Amazon EMR can only provision an instance with a WeightedCapacity of 5 units, the instance is provisioned, and the target capacity is exceeded by 3 units. You can use InstanceFleet$ProvisionedOnDemandCapacity to determine the Spot capacity units that have been provisioned for the instance fleet. If not specified or set to 0, only Spot instances are provisioned for the instance fleet using TargetSpotCapacity. At least one of TargetSpotCapacity and TargetOnDemandCapacity should be greater than 0. For a master instance fleet, only one of TargetSpotCapacity and TargetOnDemandCapacity can be specified, and its value must be 1.
988 */
989 TargetOnDemandCapacity?: WholeNumber;
990 /**
991 * The target capacity of Spot units for the instance fleet, which determines how many Spot instances to provision. When the instance fleet launches, Amazon EMR tries to provision Spot instances as specified by InstanceTypeConfig. Each instance configuration has a specified WeightedCapacity. When a Spot instance is provisioned, the WeightedCapacity units count toward the target capacity. Amazon EMR provisions instances until the target capacity is totally fulfilled, even if this results in an overage. For example, if there are 2 units remaining to fulfill capacity, and Amazon EMR can only provision an instance with a WeightedCapacity of 5 units, the instance is provisioned, and the target capacity is exceeded by 3 units. You can use InstanceFleet$ProvisionedSpotCapacity to determine the Spot capacity units that have been provisioned for the instance fleet. If not specified or set to 0, only On-Demand instances are provisioned for the instance fleet. At least one of TargetSpotCapacity and TargetOnDemandCapacity should be greater than 0. For a master instance fleet, only one of TargetSpotCapacity and TargetOnDemandCapacity can be specified, and its value must be 1.
992 */
993 TargetSpotCapacity?: WholeNumber;
994 /**
995 * The number of On-Demand units that have been provisioned for the instance fleet to fulfill TargetOnDemandCapacity. This provisioned capacity might be less than or greater than TargetOnDemandCapacity.
996 */
997 ProvisionedOnDemandCapacity?: WholeNumber;
998 /**
999 * The number of Spot units that have been provisioned for this instance fleet to fulfill TargetSpotCapacity. This provisioned capacity might be less than or greater than TargetSpotCapacity.
1000 */
1001 ProvisionedSpotCapacity?: WholeNumber;
1002 /**
1003 * The specification for the instance types that comprise an instance fleet. Up to five unique instance specifications may be defined for each instance fleet.
1004 */
1005 InstanceTypeSpecifications?: InstanceTypeSpecificationList;
1006 /**
1007 * Describes the launch specification for an instance fleet.
1008 */
1009 LaunchSpecifications?: InstanceFleetProvisioningSpecifications;
1010 }
1011 export interface InstanceFleetConfig {
1012 /**
1013 * The friendly name of the instance fleet.
1014 */
1015 Name?: XmlStringMaxLen256;
1016 /**
1017 * The node type that the instance fleet hosts. Valid values are MASTER,CORE,and TASK.
1018 */
1019 InstanceFleetType: InstanceFleetType;
1020 /**
1021 * The target capacity of On-Demand units for the instance fleet, which determines how many On-Demand instances to provision. When the instance fleet launches, Amazon EMR tries to provision On-Demand instances as specified by InstanceTypeConfig. Each instance configuration has a specified WeightedCapacity. When an On-Demand instance is provisioned, the WeightedCapacity units count toward the target capacity. Amazon EMR provisions instances until the target capacity is totally fulfilled, even if this results in an overage. For example, if there are 2 units remaining to fulfill capacity, and Amazon EMR can only provision an instance with a WeightedCapacity of 5 units, the instance is provisioned, and the target capacity is exceeded by 3 units. If not specified or set to 0, only Spot instances are provisioned for the instance fleet using TargetSpotCapacity. At least one of TargetSpotCapacity and TargetOnDemandCapacity should be greater than 0. For a master instance fleet, only one of TargetSpotCapacity and TargetOnDemandCapacity can be specified, and its value must be 1.
1022 */
1023 TargetOnDemandCapacity?: WholeNumber;
1024 /**
1025 * The target capacity of Spot units for the instance fleet, which determines how many Spot instances to provision. When the instance fleet launches, Amazon EMR tries to provision Spot instances as specified by InstanceTypeConfig. Each instance configuration has a specified WeightedCapacity. When a Spot instance is provisioned, the WeightedCapacity units count toward the target capacity. Amazon EMR provisions instances until the target capacity is totally fulfilled, even if this results in an overage. For example, if there are 2 units remaining to fulfill capacity, and Amazon EMR can only provision an instance with a WeightedCapacity of 5 units, the instance is provisioned, and the target capacity is exceeded by 3 units. If not specified or set to 0, only On-Demand instances are provisioned for the instance fleet. At least one of TargetSpotCapacity and TargetOnDemandCapacity should be greater than 0. For a master instance fleet, only one of TargetSpotCapacity and TargetOnDemandCapacity can be specified, and its value must be 1.
1026 */
1027 TargetSpotCapacity?: WholeNumber;
1028 /**
1029 * The instance type configurations that define the EC2 instances in the instance fleet.
1030 */
1031 InstanceTypeConfigs?: InstanceTypeConfigList;
1032 /**
1033 * The launch specification for the instance fleet.
1034 */
1035 LaunchSpecifications?: InstanceFleetProvisioningSpecifications;
1036 }
1037 export type InstanceFleetConfigList = InstanceFleetConfig[];
1038 export type InstanceFleetId = string;
1039 export type InstanceFleetList = InstanceFleet[];
1040 export interface InstanceFleetModifyConfig {
1041 /**
1042 * A unique identifier for the instance fleet.
1043 */
1044 InstanceFleetId: InstanceFleetId;
1045 /**
1046 * The target capacity of On-Demand units for the instance fleet. For more information see InstanceFleetConfig$TargetOnDemandCapacity.
1047 */
1048 TargetOnDemandCapacity?: WholeNumber;
1049 /**
1050 * The target capacity of Spot units for the instance fleet. For more information, see InstanceFleetConfig$TargetSpotCapacity.
1051 */
1052 TargetSpotCapacity?: WholeNumber;
1053 }
1054 export interface InstanceFleetProvisioningSpecifications {
1055 /**
1056 * The launch specification for Spot instances in the fleet, which determines the defined duration and provisioning timeout behavior.
1057 */
1058 SpotSpecification: SpotProvisioningSpecification;
1059 }
1060 export type InstanceFleetState = "PROVISIONING"|"BOOTSTRAPPING"|"RUNNING"|"RESIZING"|"SUSPENDED"|"TERMINATING"|"TERMINATED"|string;
1061 export interface InstanceFleetStateChangeReason {
1062 /**
1063 * A code corresponding to the reason the state change occurred.
1064 */
1065 Code?: InstanceFleetStateChangeReasonCode;
1066 /**
1067 * An explanatory message.
1068 */
1069 Message?: String;
1070 }
1071 export type InstanceFleetStateChangeReasonCode = "INTERNAL_ERROR"|"VALIDATION_ERROR"|"INSTANCE_FAILURE"|"CLUSTER_TERMINATED"|string;
1072 export interface InstanceFleetStatus {
1073 /**
1074 * A code representing the instance fleet status. PROVISIONING—The instance fleet is provisioning EC2 resources and is not yet ready to run jobs. BOOTSTRAPPING—EC2 instances and other resources have been provisioned and the bootstrap actions specified for the instances are underway. RUNNING—EC2 instances and other resources are running. They are either executing jobs or waiting to execute jobs. RESIZING—A resize operation is underway. EC2 instances are either being added or removed. SUSPENDED—A resize operation could not complete. Existing EC2 instances are running, but instances can't be added or removed. TERMINATING—The instance fleet is terminating EC2 instances. TERMINATED—The instance fleet is no longer active, and all EC2 instances have been terminated.
1075 */
1076 State?: InstanceFleetState;
1077 /**
1078 * Provides status change reason details for the instance fleet.
1079 */
1080 StateChangeReason?: InstanceFleetStateChangeReason;
1081 /**
1082 * Provides historical timestamps for the instance fleet, including the time of creation, the time it became ready to run jobs, and the time of termination.
1083 */
1084 Timeline?: InstanceFleetTimeline;
1085 }
1086 export interface InstanceFleetTimeline {
1087 /**
1088 * The time and date the instance fleet was created.
1089 */
1090 CreationDateTime?: _Date;
1091 /**
1092 * The time and date the instance fleet was ready to run jobs.
1093 */
1094 ReadyDateTime?: _Date;
1095 /**
1096 * The time and date the instance fleet terminated.
1097 */
1098 EndDateTime?: _Date;
1099 }
1100 export type InstanceFleetType = "MASTER"|"CORE"|"TASK"|string;
1101 export interface InstanceGroup {
1102 /**
1103 * The identifier of the instance group.
1104 */
1105 Id?: InstanceGroupId;
1106 /**
1107 * The name of the instance group.
1108 */
1109 Name?: String;
1110 /**
1111 * The marketplace to provision instances for this group. Valid values are ON_DEMAND or SPOT.
1112 */
1113 Market?: MarketType;
1114 /**
1115 * The type of the instance group. Valid values are MASTER, CORE or TASK.
1116 */
1117 InstanceGroupType?: InstanceGroupType;
1118 /**
1119 * The maximum Spot price your are willing to pay for EC2 instances. An optional, nullable field that applies if the MarketType for the instance group is specified as SPOT. Specify the maximum spot price in USD. If the value is NULL and SPOT is specified, the maximum Spot price is set equal to the On-Demand price.
1120 */
1121 BidPrice?: String;
1122 /**
1123 * The EC2 instance type for all instances in the instance group.
1124 */
1125 InstanceType?: InstanceType;
1126 /**
1127 * The target number of instances for the instance group.
1128 */
1129 RequestedInstanceCount?: Integer;
1130 /**
1131 * The number of instances currently running in this instance group.
1132 */
1133 RunningInstanceCount?: Integer;
1134 /**
1135 * The current status of the instance group.
1136 */
1137 Status?: InstanceGroupStatus;
1138 /**
1139 * Amazon EMR releases 4.x or later. The list of configurations supplied for an EMR cluster instance group. You can specify a separate configuration for each instance group (master, core, and task).
1140 */
1141 Configurations?: ConfigurationList;
1142 /**
1143 * The EBS block devices that are mapped to this instance group.
1144 */
1145 EbsBlockDevices?: EbsBlockDeviceList;
1146 /**
1147 * If the instance group is EBS-optimized. An Amazon EBS-optimized instance uses an optimized configuration stack and provides additional, dedicated capacity for Amazon EBS I/O.
1148 */
1149 EbsOptimized?: BooleanObject;
1150 /**
1151 * Policy for customizing shrink operations.
1152 */
1153 ShrinkPolicy?: ShrinkPolicy;
1154 /**
1155 * An automatic scaling policy for a core instance group or task instance group in an Amazon EMR cluster. The automatic scaling policy defines how an instance group dynamically adds and terminates EC2 instances in response to the value of a CloudWatch metric. See PutAutoScalingPolicy.
1156 */
1157 AutoScalingPolicy?: AutoScalingPolicyDescription;
1158 }
1159 export interface InstanceGroupConfig {
1160 /**
1161 * Friendly name given to the instance group.
1162 */
1163 Name?: XmlStringMaxLen256;
1164 /**
1165 * Market type of the EC2 instances used to create a cluster node.
1166 */
1167 Market?: MarketType;
1168 /**
1169 * The role of the instance group in the cluster.
1170 */
1171 InstanceRole: InstanceRoleType;
1172 /**
1173 * The maximum Spot price your are willing to pay for EC2 instances. An optional, nullable field that applies if the MarketType for the instance group is specified as SPOT. Specify the maximum spot price in USD. If the value is NULL and SPOT is specified, the maximum Spot price is set equal to the On-Demand price.
1174 */
1175 BidPrice?: XmlStringMaxLen256;
1176 /**
1177 * The EC2 instance type for all instances in the instance group.
1178 */
1179 InstanceType: InstanceType;
1180 /**
1181 * Target number of instances for the instance group.
1182 */
1183 InstanceCount: Integer;
1184 /**
1185 * Amazon EMR releases 4.x or later. The list of configurations supplied for an EMR cluster instance group. You can specify a separate configuration for each instance group (master, core, and task).
1186 */
1187 Configurations?: ConfigurationList;
1188 /**
1189 * EBS configurations that will be attached to each EC2 instance in the instance group.
1190 */
1191 EbsConfiguration?: EbsConfiguration;
1192 /**
1193 * An automatic scaling policy for a core instance group or task instance group in an Amazon EMR cluster. The automatic scaling policy defines how an instance group dynamically adds and terminates EC2 instances in response to the value of a CloudWatch metric. See PutAutoScalingPolicy.
1194 */
1195 AutoScalingPolicy?: AutoScalingPolicy;
1196 }
1197 export type InstanceGroupConfigList = InstanceGroupConfig[];
1198 export interface InstanceGroupDetail {
1199 /**
1200 * Unique identifier for the instance group.
1201 */
1202 InstanceGroupId?: XmlStringMaxLen256;
1203 /**
1204 * Friendly name for the instance group.
1205 */
1206 Name?: XmlStringMaxLen256;
1207 /**
1208 * Market type of the EC2 instances used to create a cluster node.
1209 */
1210 Market: MarketType;
1211 /**
1212 * Instance group role in the cluster
1213 */
1214 InstanceRole: InstanceRoleType;
1215 /**
1216 * The maximum Spot price your are willing to pay for EC2 instances. An optional, nullable field that applies if the MarketType for the instance group is specified as SPOT. Specified in USD. If the value is NULL and SPOT is specified, the maximum Spot price is set equal to the On-Demand price.
1217 */
1218 BidPrice?: XmlStringMaxLen256;
1219 /**
1220 * EC2 instance type.
1221 */
1222 InstanceType: InstanceType;
1223 /**
1224 * Target number of instances to run in the instance group.
1225 */
1226 InstanceRequestCount: Integer;
1227 /**
1228 * Actual count of running instances.
1229 */
1230 InstanceRunningCount: Integer;
1231 /**
1232 * State of instance group. The following values are deprecated: STARTING, TERMINATED, and FAILED.
1233 */
1234 State: InstanceGroupState;
1235 /**
1236 * Details regarding the state of the instance group.
1237 */
1238 LastStateChangeReason?: XmlString;
1239 /**
1240 * The date/time the instance group was created.
1241 */
1242 CreationDateTime: _Date;
1243 /**
1244 * The date/time the instance group was started.
1245 */
1246 StartDateTime?: _Date;
1247 /**
1248 * The date/time the instance group was available to the cluster.
1249 */
1250 ReadyDateTime?: _Date;
1251 /**
1252 * The date/time the instance group was terminated.
1253 */
1254 EndDateTime?: _Date;
1255 }
1256 export type InstanceGroupDetailList = InstanceGroupDetail[];
1257 export type InstanceGroupId = string;
1258 export type InstanceGroupIdsList = XmlStringMaxLen256[];
1259 export type InstanceGroupList = InstanceGroup[];
1260 export interface InstanceGroupModifyConfig {
1261 /**
1262 * Unique ID of the instance group to expand or shrink.
1263 */
1264 InstanceGroupId: XmlStringMaxLen256;
1265 /**
1266 * Target size for the instance group.
1267 */
1268 InstanceCount?: Integer;
1269 /**
1270 * The EC2 InstanceIds to terminate. After you terminate the instances, the instance group will not return to its original requested size.
1271 */
1272 EC2InstanceIdsToTerminate?: EC2InstanceIdsToTerminateList;
1273 /**
1274 * Policy for customizing shrink operations.
1275 */
1276 ShrinkPolicy?: ShrinkPolicy;
1277 }
1278 export type InstanceGroupModifyConfigList = InstanceGroupModifyConfig[];
1279 export type InstanceGroupState = "PROVISIONING"|"BOOTSTRAPPING"|"RUNNING"|"RESIZING"|"SUSPENDED"|"TERMINATING"|"TERMINATED"|"ARRESTED"|"SHUTTING_DOWN"|"ENDED"|string;
1280 export interface InstanceGroupStateChangeReason {
1281 /**
1282 * The programmable code for the state change reason.
1283 */
1284 Code?: InstanceGroupStateChangeReasonCode;
1285 /**
1286 * The status change reason description.
1287 */
1288 Message?: String;
1289 }
1290 export type InstanceGroupStateChangeReasonCode = "INTERNAL_ERROR"|"VALIDATION_ERROR"|"INSTANCE_FAILURE"|"CLUSTER_TERMINATED"|string;
1291 export interface InstanceGroupStatus {
1292 /**
1293 * The current state of the instance group.
1294 */
1295 State?: InstanceGroupState;
1296 /**
1297 * The status change reason details for the instance group.
1298 */
1299 StateChangeReason?: InstanceGroupStateChangeReason;
1300 /**
1301 * The timeline of the instance group status over time.
1302 */
1303 Timeline?: InstanceGroupTimeline;
1304 }
1305 export interface InstanceGroupTimeline {
1306 /**
1307 * The creation date and time of the instance group.
1308 */
1309 CreationDateTime?: _Date;
1310 /**
1311 * The date and time when the instance group became ready to perform tasks.
1312 */
1313 ReadyDateTime?: _Date;
1314 /**
1315 * The date and time when the instance group terminated.
1316 */
1317 EndDateTime?: _Date;
1318 }
1319 export type InstanceGroupType = "MASTER"|"CORE"|"TASK"|string;
1320 export type InstanceGroupTypeList = InstanceGroupType[];
1321 export type InstanceId = string;
1322 export type InstanceList = Instance[];
1323 export interface InstanceResizePolicy {
1324 /**
1325 * Specific list of instances to be terminated when shrinking an instance group.
1326 */
1327 InstancesToTerminate?: EC2InstanceIdsList;
1328 /**
1329 * Specific list of instances to be protected when shrinking an instance group.
1330 */
1331 InstancesToProtect?: EC2InstanceIdsList;
1332 /**
1333 * Decommissioning timeout override for the specific list of instances to be terminated.
1334 */
1335 InstanceTerminationTimeout?: Integer;
1336 }
1337 export type InstanceRoleType = "MASTER"|"CORE"|"TASK"|string;
1338 export type InstanceState = "AWAITING_FULFILLMENT"|"PROVISIONING"|"BOOTSTRAPPING"|"RUNNING"|"TERMINATED"|string;
1339 export interface InstanceStateChangeReason {
1340 /**
1341 * The programmable code for the state change reason.
1342 */
1343 Code?: InstanceStateChangeReasonCode;
1344 /**
1345 * The status change reason description.
1346 */
1347 Message?: String;
1348 }
1349 export type InstanceStateChangeReasonCode = "INTERNAL_ERROR"|"VALIDATION_ERROR"|"INSTANCE_FAILURE"|"BOOTSTRAP_FAILURE"|"CLUSTER_TERMINATED"|string;
1350 export type InstanceStateList = InstanceState[];
1351 export interface InstanceStatus {
1352 /**
1353 * The current state of the instance.
1354 */
1355 State?: InstanceState;
1356 /**
1357 * The details of the status change reason for the instance.
1358 */
1359 StateChangeReason?: InstanceStateChangeReason;
1360 /**
1361 * The timeline of the instance status over time.
1362 */
1363 Timeline?: InstanceTimeline;
1364 }
1365 export interface InstanceTimeline {
1366 /**
1367 * The creation date and time of the instance.
1368 */
1369 CreationDateTime?: _Date;
1370 /**
1371 * The date and time when the instance was ready to perform tasks.
1372 */
1373 ReadyDateTime?: _Date;
1374 /**
1375 * The date and time when the instance was terminated.
1376 */
1377 EndDateTime?: _Date;
1378 }
1379 export type InstanceType = string;
1380 export interface InstanceTypeConfig {
1381 /**
1382 * An EC2 instance type, such as m3.xlarge.
1383 */
1384 InstanceType: InstanceType;
1385 /**
1386 * The number of units that a provisioned instance of this type provides toward fulfilling the target capacities defined in InstanceFleetConfig. This value is 1 for a master instance fleet, and must be 1 or greater for core and task instance fleets. Defaults to 1 if not specified.
1387 */
1388 WeightedCapacity?: WholeNumber;
1389 /**
1390 * The bid price for each EC2 Spot instance type as defined by InstanceType. Expressed in USD. If neither BidPrice nor BidPriceAsPercentageOfOnDemandPrice is provided, BidPriceAsPercentageOfOnDemandPrice defaults to 100%.
1391 */
1392 BidPrice?: XmlStringMaxLen256;
1393 /**
1394 * The bid price, as a percentage of On-Demand price, for each EC2 Spot instance as defined by InstanceType. Expressed as a number (for example, 20 specifies 20%). If neither BidPrice nor BidPriceAsPercentageOfOnDemandPrice is provided, BidPriceAsPercentageOfOnDemandPrice defaults to 100%.
1395 */
1396 BidPriceAsPercentageOfOnDemandPrice?: NonNegativeDouble;
1397 /**
1398 * The configuration of Amazon Elastic Block Storage (EBS) attached to each instance as defined by InstanceType.
1399 */
1400 EbsConfiguration?: EbsConfiguration;
1401 /**
1402 * A configuration classification that applies when provisioning cluster instances, which can include configurations for applications and software that run on the cluster.
1403 */
1404 Configurations?: ConfigurationList;
1405 }
1406 export type InstanceTypeConfigList = InstanceTypeConfig[];
1407 export interface InstanceTypeSpecification {
1408 /**
1409 * The EC2 instance type, for example m3.xlarge.
1410 */
1411 InstanceType?: InstanceType;
1412 /**
1413 * The number of units that a provisioned instance of this type provides toward fulfilling the target capacities defined in InstanceFleetConfig. Capacity values represent performance characteristics such as vCPUs, memory, or I/O. If not specified, the default value is 1.
1414 */
1415 WeightedCapacity?: WholeNumber;
1416 /**
1417 * The bid price for each EC2 Spot instance type as defined by InstanceType. Expressed in USD.
1418 */
1419 BidPrice?: XmlStringMaxLen256;
1420 /**
1421 * The bid price, as a percentage of On-Demand price, for each EC2 Spot instance as defined by InstanceType. Expressed as a number (for example, 20 specifies 20%).
1422 */
1423 BidPriceAsPercentageOfOnDemandPrice?: NonNegativeDouble;
1424 /**
1425 * A configuration classification that applies when provisioning cluster instances, which can include configurations for applications and software bundled with Amazon EMR.
1426 */
1427 Configurations?: ConfigurationList;
1428 /**
1429 * The configuration of Amazon Elastic Block Storage (EBS) attached to each instance as defined by InstanceType.
1430 */
1431 EbsBlockDevices?: EbsBlockDeviceList;
1432 /**
1433 * Evaluates to TRUE when the specified InstanceType is EBS-optimized.
1434 */
1435 EbsOptimized?: BooleanObject;
1436 }
1437 export type InstanceTypeSpecificationList = InstanceTypeSpecification[];
1438 export type Integer = number;
1439 export interface JobFlowDetail {
1440 /**
1441 * The job flow identifier.
1442 */
1443 JobFlowId: XmlStringMaxLen256;
1444 /**
1445 * The name of the job flow.
1446 */
1447 Name: XmlStringMaxLen256;
1448 /**
1449 * The location in Amazon S3 where log files for the job are stored.
1450 */
1451 LogUri?: XmlString;
1452 /**
1453 * 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.
1454 */
1455 AmiVersion?: XmlStringMaxLen256;
1456 /**
1457 * Describes the execution status of the job flow.
1458 */
1459 ExecutionStatusDetail: JobFlowExecutionStatusDetail;
1460 /**
1461 * Describes the Amazon EC2 instances of the job flow.
1462 */
1463 Instances: JobFlowInstancesDetail;
1464 /**
1465 * A list of steps run by the job flow.
1466 */
1467 Steps?: StepDetailList;
1468 /**
1469 * A list of the bootstrap actions run by the job flow.
1470 */
1471 BootstrapActions?: BootstrapActionDetailList;
1472 /**
1473 * A list of strings set by third party software when the job flow is launched. If you are not using third party software to manage the job flow this value is empty.
1474 */
1475 SupportedProducts?: SupportedProductsList;
1476 /**
1477 * Specifies whether the cluster is visible to all IAM users of the AWS account associated with the cluster. If this value is set to true, all IAM users of that AWS account can view and (if they have the proper policy permissions set) manage the cluster. If it is set to false, only the IAM user that created the cluster can view and manage it. This value can be changed using the SetVisibleToAllUsers action.
1478 */
1479 VisibleToAllUsers?: Boolean;
1480 /**
1481 * The IAM role that was specified when the job flow was launched. The EC2 instances of the job flow assume this role.
1482 */
1483 JobFlowRole?: XmlString;
1484 /**
1485 * The IAM role that will be assumed by the Amazon EMR service to access AWS resources on your behalf.
1486 */
1487 ServiceRole?: XmlString;
1488 /**
1489 * An IAM role for automatic scaling policies. The default role is EMR_AutoScaling_DefaultRole. The IAM role provides a way for the automatic scaling feature to get the required permissions it needs to launch and terminate EC2 instances in an instance group.
1490 */
1491 AutoScalingRole?: XmlString;
1492 /**
1493 * 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 blacklists 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 version 4.1.0 and later, and is the default for versions of Amazon EMR earlier than 5.1.0.
1494 */
1495 ScaleDownBehavior?: ScaleDownBehavior;
1496 }
1497 export type JobFlowDetailList = JobFlowDetail[];
1498 export type JobFlowExecutionState = "STARTING"|"BOOTSTRAPPING"|"RUNNING"|"WAITING"|"SHUTTING_DOWN"|"TERMINATED"|"COMPLETED"|"FAILED"|string;
1499 export type JobFlowExecutionStateList = JobFlowExecutionState[];
1500 export interface JobFlowExecutionStatusDetail {
1501 /**
1502 * The state of the job flow.
1503 */
1504 State: JobFlowExecutionState;
1505 /**
1506 * The creation date and time of the job flow.
1507 */
1508 CreationDateTime: _Date;
1509 /**
1510 * The start date and time of the job flow.
1511 */
1512 StartDateTime?: _Date;
1513 /**
1514 * The date and time when the job flow was ready to start running bootstrap actions.
1515 */
1516 ReadyDateTime?: _Date;
1517 /**
1518 * The completion date and time of the job flow.
1519 */
1520 EndDateTime?: _Date;
1521 /**
1522 * Description of the job flow last changed state.
1523 */
1524 LastStateChangeReason?: XmlString;
1525 }
1526 export interface JobFlowInstancesConfig {
1527 /**
1528 * The EC2 instance type of the master node.
1529 */
1530 MasterInstanceType?: InstanceType;
1531 /**
1532 * The EC2 instance type of the core and task nodes.
1533 */
1534 SlaveInstanceType?: InstanceType;
1535 /**
1536 * The number of EC2 instances in the cluster.
1537 */
1538 InstanceCount?: Integer;
1539 /**
1540 * Configuration for the instance groups in a cluster.
1541 */
1542 InstanceGroups?: InstanceGroupConfigList;
1543 /**
1544 * The instance fleet configuration is available only in Amazon EMR versions 4.8.0 and later, excluding 5.0.x versions. Describes the EC2 instances and instance configurations for clusters that use the instance fleet configuration.
1545 */
1546 InstanceFleets?: InstanceFleetConfigList;
1547 /**
1548 * The name of the EC2 key pair that can be used to ssh to the master node as the user called "hadoop."
1549 */
1550 Ec2KeyName?: XmlStringMaxLen256;
1551 /**
1552 * The Availability Zone in which the cluster runs.
1553 */
1554 Placement?: PlacementType;
1555 /**
1556 * Specifies whether the cluster should remain available after completing all steps.
1557 */
1558 KeepJobFlowAliveWhenNoSteps?: Boolean;
1559 /**
1560 * Specifies whether to lock the cluster to prevent the Amazon EC2 instances from being terminated by API call, user intervention, or in the event of a job-flow error.
1561 */
1562 TerminationProtected?: Boolean;
1563 /**
1564 * Applies only to Amazon EMR release versions earlier than 4.0. The Hadoop version for the cluster. Valid inputs are "0.18" (deprecated), "0.20" (deprecated), "0.20.205" (deprecated), "1.0.3", "2.2.0", or "2.4.0". If you do not set this value, the default of 0.18 is used, unless the AmiVersion parameter is set in the RunJobFlow call, in which case the default version of Hadoop for that AMI version is used.
1565 */
1566 HadoopVersion?: XmlStringMaxLen256;
1567 /**
1568 * Applies to clusters that use the uniform instance group configuration. To launch the cluster in Amazon Virtual Private Cloud (Amazon VPC), set this parameter to the identifier of the Amazon VPC subnet where you want the cluster to launch. If you do not specify this value, the cluster launches in the normal Amazon Web Services cloud, outside of an Amazon VPC, if the account launching the cluster supports EC2 Classic networks in the region where the cluster launches. Amazon VPC currently does not support cluster compute quadruple extra large (cc1.4xlarge) instances. Thus you cannot specify the cc1.4xlarge instance type for clusters launched in an Amazon VPC.
1569 */
1570 Ec2SubnetId?: XmlStringMaxLen256;
1571 /**
1572 * Applies to clusters that use the instance fleet configuration. When multiple EC2 subnet IDs are specified, Amazon EMR evaluates them and launches instances in the optimal subnet. The instance fleet configuration is available only in Amazon EMR versions 4.8.0 and later, excluding 5.0.x versions.
1573 */
1574 Ec2SubnetIds?: XmlStringMaxLen256List;
1575 /**
1576 * The identifier of the Amazon EC2 security group for the master node.
1577 */
1578 EmrManagedMasterSecurityGroup?: XmlStringMaxLen256;
1579 /**
1580 * The identifier of the Amazon EC2 security group for the core and task nodes.
1581 */
1582 EmrManagedSlaveSecurityGroup?: XmlStringMaxLen256;
1583 /**
1584 * The identifier of the Amazon EC2 security group for the Amazon EMR service to access clusters in VPC private subnets.
1585 */
1586 ServiceAccessSecurityGroup?: XmlStringMaxLen256;
1587 /**
1588 * A list of additional Amazon EC2 security group IDs for the master node.
1589 */
1590 AdditionalMasterSecurityGroups?: SecurityGroupsList;
1591 /**
1592 * A list of additional Amazon EC2 security group IDs for the core and task nodes.
1593 */
1594 AdditionalSlaveSecurityGroups?: SecurityGroupsList;
1595 }
1596 export interface JobFlowInstancesDetail {
1597 /**
1598 * The Amazon EC2 master node instance type.
1599 */
1600 MasterInstanceType: InstanceType;
1601 /**
1602 * The DNS name of the master node. If the cluster is on a private subnet, this is the private DNS name. On a public subnet, this is the public DNS name.
1603 */
1604 MasterPublicDnsName?: XmlString;
1605 /**
1606 * The Amazon EC2 instance identifier of the master node.
1607 */
1608 MasterInstanceId?: XmlString;
1609 /**
1610 * The Amazon EC2 core and task node instance type.
1611 */
1612 SlaveInstanceType: InstanceType;
1613 /**
1614 * The number of Amazon EC2 instances in the cluster. If the value is 1, the same instance serves as both the master and core and task node. If the value is greater than 1, one instance is the master node and all others are core and task nodes.
1615 */
1616 InstanceCount: Integer;
1617 /**
1618 * Details about the instance groups in a cluster.
1619 */
1620 InstanceGroups?: InstanceGroupDetailList;
1621 /**
1622 * An approximation of the cost of the cluster, represented in m1.small/hours. This value is incremented one time for every hour that an m1.small runs. Larger instances are weighted more, so an Amazon EC2 instance that is roughly four times more expensive would result in the normalized instance hours being incremented by four. This result is only an approximation and does not reflect the actual billing rate.
1623 */
1624 NormalizedInstanceHours?: Integer;
1625 /**
1626 * The name of an Amazon EC2 key pair that can be used to ssh to the master node.
1627 */
1628 Ec2KeyName?: XmlStringMaxLen256;
1629 /**
1630 * For clusters launched within Amazon Virtual Private Cloud, this is the identifier of the subnet where the cluster was launched.
1631 */
1632 Ec2SubnetId?: XmlStringMaxLen256;
1633 /**
1634 * The Amazon EC2 Availability Zone for the cluster.
1635 */
1636 Placement?: PlacementType;
1637 /**
1638 * Specifies whether the cluster should remain available after completing all steps.
1639 */
1640 KeepJobFlowAliveWhenNoSteps?: Boolean;
1641 /**
1642 * Specifies whether the Amazon EC2 instances in the cluster are protected from termination by API calls, user intervention, or in the event of a job-flow error.
1643 */
1644 TerminationProtected?: Boolean;
1645 /**
1646 * The Hadoop version for the cluster.
1647 */
1648 HadoopVersion?: XmlStringMaxLen256;
1649 }
1650 export interface KerberosAttributes {
1651 /**
1652 * The name of the Kerberos realm to which all nodes in a cluster belong. For example, EC2.INTERNAL.
1653 */
1654 Realm: XmlStringMaxLen256;
1655 /**
1656 * The password used within the cluster for the kadmin service on the cluster-dedicated KDC, which maintains Kerberos principals, password policies, and keytabs for the cluster.
1657 */
1658 KdcAdminPassword: XmlStringMaxLen256;
1659 /**
1660 * Required only when establishing a cross-realm trust with a KDC in a different realm. The cross-realm principal password, which must be identical across realms.
1661 */
1662 CrossRealmTrustPrincipalPassword?: XmlStringMaxLen256;
1663 /**
1664 * Required only when establishing a cross-realm trust with an Active Directory domain. A user with sufficient privileges to join resources to the domain.
1665 */
1666 ADDomainJoinUser?: XmlStringMaxLen256;
1667 /**
1668 * The Active Directory password for ADDomainJoinUser.
1669 */
1670 ADDomainJoinPassword?: XmlStringMaxLen256;
1671 }
1672 export interface KeyValue {
1673 /**
1674 * The unique identifier of a key value pair.
1675 */
1676 Key?: XmlString;
1677 /**
1678 * The value part of the identified key.
1679 */
1680 Value?: XmlString;
1681 }
1682 export type KeyValueList = KeyValue[];
1683 export interface ListBootstrapActionsInput {
1684 /**
1685 * The cluster identifier for the bootstrap actions to list.
1686 */
1687 ClusterId: ClusterId;
1688 /**
1689 * The pagination token that indicates the next set of results to retrieve.
1690 */
1691 Marker?: Marker;
1692 }
1693 export interface ListBootstrapActionsOutput {
1694 /**
1695 * The bootstrap actions associated with the cluster.
1696 */
1697 BootstrapActions?: CommandList;
1698 /**
1699 * The pagination token that indicates the next set of results to retrieve.
1700 */
1701 Marker?: Marker;
1702 }
1703 export interface ListClustersInput {
1704 /**
1705 * The creation date and time beginning value filter for listing clusters.
1706 */
1707 CreatedAfter?: _Date;
1708 /**
1709 * The creation date and time end value filter for listing clusters.
1710 */
1711 CreatedBefore?: _Date;
1712 /**
1713 * The cluster state filters to apply when listing clusters.
1714 */
1715 ClusterStates?: ClusterStateList;
1716 /**
1717 * The pagination token that indicates the next set of results to retrieve.
1718 */
1719 Marker?: Marker;
1720 }
1721 export interface ListClustersOutput {
1722 /**
1723 * The list of clusters for the account based on the given filters.
1724 */
1725 Clusters?: ClusterSummaryList;
1726 /**
1727 * The pagination token that indicates the next set of results to retrieve.
1728 */
1729 Marker?: Marker;
1730 }
1731 export interface ListInstanceFleetsInput {
1732 /**
1733 * The unique identifier of the cluster.
1734 */
1735 ClusterId: ClusterId;
1736 /**
1737 * The pagination token that indicates the next set of results to retrieve.
1738 */
1739 Marker?: Marker;
1740 }
1741 export interface ListInstanceFleetsOutput {
1742 /**
1743 * The list of instance fleets for the cluster and given filters.
1744 */
1745 InstanceFleets?: InstanceFleetList;
1746 /**
1747 * The pagination token that indicates the next set of results to retrieve.
1748 */
1749 Marker?: Marker;
1750 }
1751 export interface ListInstanceGroupsInput {
1752 /**
1753 * The identifier of the cluster for which to list the instance groups.
1754 */
1755 ClusterId: ClusterId;
1756 /**
1757 * The pagination token that indicates the next set of results to retrieve.
1758 */
1759 Marker?: Marker;
1760 }
1761 export interface ListInstanceGroupsOutput {
1762 /**
1763 * The list of instance groups for the cluster and given filters.
1764 */
1765 InstanceGroups?: InstanceGroupList;
1766 /**
1767 * The pagination token that indicates the next set of results to retrieve.
1768 */
1769 Marker?: Marker;
1770 }
1771 export interface ListInstancesInput {
1772 /**
1773 * The identifier of the cluster for which to list the instances.
1774 */
1775 ClusterId: ClusterId;
1776 /**
1777 * The identifier of the instance group for which to list the instances.
1778 */
1779 InstanceGroupId?: InstanceGroupId;
1780 /**
1781 * The type of instance group for which to list the instances.
1782 */
1783 InstanceGroupTypes?: InstanceGroupTypeList;
1784 /**
1785 * The unique identifier of the instance fleet.
1786 */
1787 InstanceFleetId?: InstanceFleetId;
1788 /**
1789 * The node type of the instance fleet. For example MASTER, CORE, or TASK.
1790 */
1791 InstanceFleetType?: InstanceFleetType;
1792 /**
1793 * A list of instance states that will filter the instances returned with this request.
1794 */
1795 InstanceStates?: InstanceStateList;
1796 /**
1797 * The pagination token that indicates the next set of results to retrieve.
1798 */
1799 Marker?: Marker;
1800 }
1801 export interface ListInstancesOutput {
1802 /**
1803 * The list of instances for the cluster and given filters.
1804 */
1805 Instances?: InstanceList;
1806 /**
1807 * The pagination token that indicates the next set of results to retrieve.
1808 */
1809 Marker?: Marker;
1810 }
1811 export interface ListSecurityConfigurationsInput {
1812 /**
1813 * The pagination token that indicates the set of results to retrieve.
1814 */
1815 Marker?: Marker;
1816 }
1817 export interface ListSecurityConfigurationsOutput {
1818 /**
1819 * The creation date and time, and name, of each security configuration.
1820 */
1821 SecurityConfigurations?: SecurityConfigurationList;
1822 /**
1823 * A pagination token that indicates the next set of results to retrieve. Include the marker in the next ListSecurityConfiguration call to retrieve the next page of results, if required.
1824 */
1825 Marker?: Marker;
1826 }
1827 export interface ListStepsInput {
1828 /**
1829 * The identifier of the cluster for which to list the steps.
1830 */
1831 ClusterId: ClusterId;
1832 /**
1833 * The filter to limit the step list based on certain states.
1834 */
1835 StepStates?: StepStateList;
1836 /**
1837 * The filter to limit the step list based on the identifier of the steps.
1838 */
1839 StepIds?: XmlStringList;
1840 /**
1841 * The pagination token that indicates the next set of results to retrieve.
1842 */
1843 Marker?: Marker;
1844 }
1845 export interface ListStepsOutput {
1846 /**
1847 * The filtered list of steps for the cluster.
1848 */
1849 Steps?: StepSummaryList;
1850 /**
1851 * The pagination token that indicates the next set of results to retrieve.
1852 */
1853 Marker?: Marker;
1854 }
1855 export type Marker = string;
1856 export type MarketType = "ON_DEMAND"|"SPOT"|string;
1857 export interface MetricDimension {
1858 /**
1859 * The dimension name.
1860 */
1861 Key?: String;
1862 /**
1863 * The dimension value.
1864 */
1865 Value?: String;
1866 }
1867 export type MetricDimensionList = MetricDimension[];
1868 export interface ModifyInstanceFleetInput {
1869 /**
1870 * The unique identifier of the cluster.
1871 */
1872 ClusterId: ClusterId;
1873 /**
1874 * The unique identifier of the instance fleet.
1875 */
1876 InstanceFleet: InstanceFleetModifyConfig;
1877 }
1878 export interface ModifyInstanceGroupsInput {
1879 /**
1880 * The ID of the cluster to which the instance group belongs.
1881 */
1882 ClusterId?: ClusterId;
1883 /**
1884 * Instance groups to change.
1885 */
1886 InstanceGroups?: InstanceGroupModifyConfigList;
1887 }
1888 export type NewSupportedProductsList = SupportedProductConfig[];
1889 export type NonNegativeDouble = number;
1890 export interface PlacementType {
1891 /**
1892 * The Amazon EC2 Availability Zone for the cluster. AvailabilityZone is used for uniform instance groups, while AvailabilityZones (plural) is used for instance fleets.
1893 */
1894 AvailabilityZone?: XmlString;
1895 /**
1896 * When multiple Availability Zones are specified, Amazon EMR evaluates them and launches instances in the optimal Availability Zone. AvailabilityZones is used for instance fleets, while AvailabilityZone (singular) is used for uniform instance groups. The instance fleet configuration is available only in Amazon EMR versions 4.8.0 and later, excluding 5.0.x versions.
1897 */
1898 AvailabilityZones?: XmlStringMaxLen256List;
1899 }
1900 export interface PutAutoScalingPolicyInput {
1901 /**
1902 * Specifies the ID of a cluster. The instance group to which the automatic scaling policy is applied is within this cluster.
1903 */
1904 ClusterId: ClusterId;
1905 /**
1906 * Specifies the ID of the instance group to which the automatic scaling policy is applied.
1907 */
1908 InstanceGroupId: InstanceGroupId;
1909 /**
1910 * Specifies the definition of the automatic scaling policy.
1911 */
1912 AutoScalingPolicy: AutoScalingPolicy;
1913 }
1914 export interface PutAutoScalingPolicyOutput {
1915 /**
1916 * Specifies the ID of a cluster. The instance group to which the automatic scaling policy is applied is within this cluster.
1917 */
1918 ClusterId?: ClusterId;
1919 /**
1920 * Specifies the ID of the instance group to which the scaling policy is applied.
1921 */
1922 InstanceGroupId?: InstanceGroupId;
1923 /**
1924 * The automatic scaling policy definition.
1925 */
1926 AutoScalingPolicy?: AutoScalingPolicyDescription;
1927 }
1928 export interface RemoveAutoScalingPolicyInput {
1929 /**
1930 * Specifies the ID of a cluster. The instance group to which the automatic scaling policy is applied is within this cluster.
1931 */
1932 ClusterId: ClusterId;
1933 /**
1934 * Specifies the ID of the instance group to which the scaling policy is applied.
1935 */
1936 InstanceGroupId: InstanceGroupId;
1937 }
1938 export interface RemoveAutoScalingPolicyOutput {
1939 }
1940 export interface RemoveTagsInput {
1941 /**
1942 * The Amazon EMR resource identifier from which tags will be removed. This value must be a cluster identifier.
1943 */
1944 ResourceId: ResourceId;
1945 /**
1946 * A list of tag keys to remove from a resource.
1947 */
1948 TagKeys: StringList;
1949 }
1950 export interface RemoveTagsOutput {
1951 }
1952 export type RepoUpgradeOnBoot = "SECURITY"|"NONE"|string;
1953 export type ResourceId = string;
1954 export interface RunJobFlowInput {
1955 /**
1956 * The name of the job flow.
1957 */
1958 Name: XmlStringMaxLen256;
1959 /**
1960 * The location in Amazon S3 to write the log files of the job flow. If a value is not provided, logs are not created.
1961 */
1962 LogUri?: XmlString;
1963 /**
1964 * A JSON string for selecting additional features.
1965 */
1966 AdditionalInfo?: XmlString;
1967 /**
1968 * 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.
1969 */
1970 AmiVersion?: XmlStringMaxLen256;
1971 /**
1972 * 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, for example, emr-5.14.0. For more information about Amazon EMR release versions and included application versions and features, see http://docs.aws.amazon.com/emr/latest/ReleaseGuide/. The release label applies only to Amazon EMR releases versions 4.x and later. Earlier versions use AmiVersion.
1973 */
1974 ReleaseLabel?: XmlStringMaxLen256;
1975 /**
1976 * A specification of the number and type of Amazon EC2 instances.
1977 */
1978 Instances: JobFlowInstancesConfig;
1979 /**
1980 * A list of steps to run.
1981 */
1982 Steps?: StepConfigList;
1983 /**
1984 * A list of bootstrap actions to run before Hadoop starts on the cluster nodes.
1985 */
1986 BootstrapActions?: BootstrapActionConfigList;
1987 /**
1988 * 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.
1989 */
1990 SupportedProducts?: SupportedProductsList;
1991 /**
1992 * 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. 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 Analtics 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.
1993 */
1994 NewSupportedProducts?: NewSupportedProductsList;
1995 /**
1996 * 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 EMR Release Guide.
1997 */
1998 Applications?: ApplicationList;
1999 /**
2000 * For Amazon EMR releases 4.0 and later. The list of configurations supplied for the EMR cluster you are creating.
2001 */
2002 Configurations?: ConfigurationList;
2003 /**
2004 * Whether the cluster is visible to all IAM users of the AWS account associated with the cluster. If this value is set to true, all IAM users of that AWS account can view and (if they have the proper policy permissions set) manage the cluster. If it is set to false, only the IAM user that created the cluster can view and manage it.
2005 */
2006 VisibleToAllUsers?: Boolean;
2007 /**
2008 * Also called instance profile and EC2 role. An IAM role for an EMR cluster. The 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.
2009 */
2010 JobFlowRole?: XmlString;
2011 /**
2012 * The IAM role that will be assumed by the Amazon EMR service to access AWS resources on your behalf.
2013 */
2014 ServiceRole?: XmlString;
2015 /**
2016 * A list of tags to associate with a cluster and propagate to Amazon EC2 instances.
2017 */
2018 Tags?: TagList;
2019 /**
2020 * The name of a security configuration to apply to the cluster.
2021 */
2022 SecurityConfiguration?: XmlString;
2023 /**
2024 * 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 EC2 instances in an instance group.
2025 */
2026 AutoScalingRole?: XmlString;
2027 /**
2028 * 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 blacklists 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 version 4.1.0 and later, and is the default for versions of Amazon EMR earlier than 5.1.0.
2029 */
2030 ScaleDownBehavior?: ScaleDownBehavior;
2031 /**
2032 * Available only in Amazon EMR version 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 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 versions 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.
2033 */
2034 CustomAmiId?: XmlStringMaxLen256;
2035 /**
2036 * The size, in GiB, of the EBS root device volume of the Linux AMI that is used for each EC2 instance. Available in Amazon EMR version 4.x and later.
2037 */
2038 EbsRootVolumeSize?: Integer;
2039 /**
2040 * 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.
2041 */
2042 RepoUpgradeOnBoot?: RepoUpgradeOnBoot;
2043 /**
2044 * Attributes for Kerberos configuration when Kerberos authentication is enabled using a security configuration. For more information see Use Kerberos Authentication in the EMR Management Guide.
2045 */
2046 KerberosAttributes?: KerberosAttributes;
2047 }
2048 export interface RunJobFlowOutput {
2049 /**
2050 * An unique identifier for the job flow.
2051 */
2052 JobFlowId?: XmlStringMaxLen256;
2053 }
2054 export type ScaleDownBehavior = "TERMINATE_AT_INSTANCE_HOUR"|"TERMINATE_AT_TASK_COMPLETION"|string;
2055 export interface ScalingAction {
2056 /**
2057 * Not available for instance groups. Instance groups use the market type specified for the group.
2058 */
2059 Market?: MarketType;
2060 /**
2061 * The type of adjustment the automatic scaling activity makes when triggered, and the periodicity of the adjustment.
2062 */
2063 SimpleScalingPolicyConfiguration: SimpleScalingPolicyConfiguration;
2064 }
2065 export interface ScalingConstraints {
2066 /**
2067 * The lower boundary of EC2 instances in an instance group below which scaling activities are not allowed to shrink. Scale-in activities will not terminate instances below this boundary.
2068 */
2069 MinCapacity: Integer;
2070 /**
2071 * The upper boundary of EC2 instances in an instance group beyond which scaling activities are not allowed to grow. Scale-out activities will not add instances beyond this boundary.
2072 */
2073 MaxCapacity: Integer;
2074 }
2075 export interface ScalingRule {
2076 /**
2077 * The name used to identify an automatic scaling rule. Rule names must be unique within a scaling policy.
2078 */
2079 Name: String;
2080 /**
2081 * A friendly, more verbose description of the automatic scaling rule.
2082 */
2083 Description?: String;
2084 /**
2085 * The conditions that trigger an automatic scaling activity.
2086 */
2087 Action: ScalingAction;
2088 /**
2089 * The CloudWatch alarm definition that determines when automatic scaling activity is triggered.
2090 */
2091 Trigger: ScalingTrigger;
2092 }
2093 export type ScalingRuleList = ScalingRule[];
2094 export interface ScalingTrigger {
2095 /**
2096 * The definition of a CloudWatch metric alarm. When the defined alarm conditions are met along with other trigger parameters, scaling activity begins.
2097 */
2098 CloudWatchAlarmDefinition: CloudWatchAlarmDefinition;
2099 }
2100 export interface ScriptBootstrapActionConfig {
2101 /**
2102 * Location of the script to run during a bootstrap action. Can be either a location in Amazon S3 or on a local file system.
2103 */
2104 Path: XmlString;
2105 /**
2106 * A list of command line arguments to pass to the bootstrap action script.
2107 */
2108 Args?: XmlStringList;
2109 }
2110 export type SecurityConfigurationList = SecurityConfigurationSummary[];
2111 export interface SecurityConfigurationSummary {
2112 /**
2113 * The name of the security configuration.
2114 */
2115 Name?: XmlString;
2116 /**
2117 * The date and time the security configuration was created.
2118 */
2119 CreationDateTime?: _Date;
2120 }
2121 export type SecurityGroupsList = XmlStringMaxLen256[];
2122 export interface SetTerminationProtectionInput {
2123 /**
2124 * A list of strings that uniquely identify the clusters to protect. This identifier is returned by RunJobFlow and can also be obtained from DescribeJobFlows .
2125 */
2126 JobFlowIds: XmlStringList;
2127 /**
2128 * A Boolean that indicates whether to protect the cluster and prevent the Amazon EC2 instances in the cluster from shutting down due to API calls, user intervention, or job-flow error.
2129 */
2130 TerminationProtected: Boolean;
2131 }
2132 export interface SetVisibleToAllUsersInput {
2133 /**
2134 * Identifiers of the job flows to receive the new visibility setting.
2135 */
2136 JobFlowIds: XmlStringList;
2137 /**
2138 * Whether the specified clusters are visible to all IAM users of the AWS account associated with the cluster. If this value is set to True, all IAM users of that AWS account can view and, if they have the proper IAM policy permissions set, manage the clusters. If it is set to False, only the IAM user that created a cluster can view and manage it.
2139 */
2140 VisibleToAllUsers: Boolean;
2141 }
2142 export interface ShrinkPolicy {
2143 /**
2144 * The desired timeout for decommissioning an instance. Overrides the default YARN decommissioning timeout.
2145 */
2146 DecommissionTimeout?: Integer;
2147 /**
2148 * Custom policy for requesting termination protection or termination of specific instances when shrinking an instance group.
2149 */
2150 InstanceResizePolicy?: InstanceResizePolicy;
2151 }
2152 export interface SimpleScalingPolicyConfiguration {
2153 /**
2154 * The way in which EC2 instances are added (if ScalingAdjustment is a positive number) or terminated (if ScalingAdjustment is a negative number) each time the scaling activity is triggered. CHANGE_IN_CAPACITY is the default. CHANGE_IN_CAPACITY indicates that the EC2 instance count increments or decrements by ScalingAdjustment, which should be expressed as an integer. PERCENT_CHANGE_IN_CAPACITY indicates the instance count increments or decrements by the percentage specified by ScalingAdjustment, which should be expressed as an integer. For example, 20 indicates an increase in 20% increments of cluster capacity. EXACT_CAPACITY indicates the scaling activity results in an instance group with the number of EC2 instances specified by ScalingAdjustment, which should be expressed as a positive integer.
2155 */
2156 AdjustmentType?: AdjustmentType;
2157 /**
2158 * The amount by which to scale in or scale out, based on the specified AdjustmentType. A positive value adds to the instance group's EC2 instance count while a negative number removes instances. If AdjustmentType is set to EXACT_CAPACITY, the number should only be a positive integer. If AdjustmentType is set to PERCENT_CHANGE_IN_CAPACITY, the value should express the percentage as an integer. For example, -20 indicates a decrease in 20% increments of cluster capacity.
2159 */
2160 ScalingAdjustment: Integer;
2161 /**
2162 * The amount of time, in seconds, after a scaling activity completes before any further trigger-related scaling activities can start. The default value is 0.
2163 */
2164 CoolDown?: Integer;
2165 }
2166 export interface SpotProvisioningSpecification {
2167 /**
2168 * The spot provisioning timeout period in minutes. If Spot instances are not provisioned within this time period, the TimeOutAction is taken. Minimum value is 5 and maximum value is 1440. The timeout applies only during initial provisioning, when the cluster is first created.
2169 */
2170 TimeoutDurationMinutes: WholeNumber;
2171 /**
2172 * The action to take when TargetSpotCapacity has not been fulfilled when the TimeoutDurationMinutes has expired; that is, when all Spot instances could not be provisioned within the Spot provisioning timeout. Valid values are TERMINATE_CLUSTER and SWITCH_TO_ON_DEMAND. SWITCH_TO_ON_DEMAND specifies that if no Spot instances are available, On-Demand Instances should be provisioned to fulfill any remaining Spot capacity.
2173 */
2174 TimeoutAction: SpotProvisioningTimeoutAction;
2175 /**
2176 * The defined duration for Spot instances (also known as Spot blocks) in minutes. When specified, the Spot instance does not terminate before the defined duration expires, and defined duration pricing for Spot instances applies. Valid values are 60, 120, 180, 240, 300, or 360. The duration period starts as soon as a Spot instance receives its instance ID. At the end of the duration, Amazon EC2 marks the Spot instance for termination and provides a Spot instance termination notice, which gives the instance a two-minute warning before it terminates.
2177 */
2178 BlockDurationMinutes?: WholeNumber;
2179 }
2180 export type SpotProvisioningTimeoutAction = "SWITCH_TO_ON_DEMAND"|"TERMINATE_CLUSTER"|string;
2181 export type Statistic = "SAMPLE_COUNT"|"AVERAGE"|"SUM"|"MINIMUM"|"MAXIMUM"|string;
2182 export interface Step {
2183 /**
2184 * The identifier of the cluster step.
2185 */
2186 Id?: StepId;
2187 /**
2188 * The name of the cluster step.
2189 */
2190 Name?: String;
2191 /**
2192 * The Hadoop job configuration of the cluster step.
2193 */
2194 Config?: HadoopStepConfig;
2195 /**
2196 * The action to take when the cluster step fails. Possible values are TERMINATE_CLUSTER, CANCEL_AND_WAIT, and CONTINUE. TERMINATE_JOB_FLOW is provided for backward compatibility. We recommend using TERMINATE_CLUSTER instead.
2197 */
2198 ActionOnFailure?: ActionOnFailure;
2199 /**
2200 * The current execution status details of the cluster step.
2201 */
2202 Status?: StepStatus;
2203 }
2204 export interface StepConfig {
2205 /**
2206 * The name of the step.
2207 */
2208 Name: XmlStringMaxLen256;
2209 /**
2210 * The action to take when the cluster step fails. Possible values are TERMINATE_CLUSTER, CANCEL_AND_WAIT, and CONTINUE. TERMINATE_JOB_FLOW is provided for backward compatibility. We recommend using TERMINATE_CLUSTER instead.
2211 */
2212 ActionOnFailure?: ActionOnFailure;
2213 /**
2214 * The JAR file used for the step.
2215 */
2216 HadoopJarStep: HadoopJarStepConfig;
2217 }
2218 export type StepConfigList = StepConfig[];
2219 export interface StepDetail {
2220 /**
2221 * The step configuration.
2222 */
2223 StepConfig: StepConfig;
2224 /**
2225 * The description of the step status.
2226 */
2227 ExecutionStatusDetail: StepExecutionStatusDetail;
2228 }
2229 export type StepDetailList = StepDetail[];
2230 export type StepExecutionState = "PENDING"|"RUNNING"|"CONTINUE"|"COMPLETED"|"CANCELLED"|"FAILED"|"INTERRUPTED"|string;
2231 export interface StepExecutionStatusDetail {
2232 /**
2233 * The state of the step.
2234 */
2235 State: StepExecutionState;
2236 /**
2237 * The creation date and time of the step.
2238 */
2239 CreationDateTime: _Date;
2240 /**
2241 * The start date and time of the step.
2242 */
2243 StartDateTime?: _Date;
2244 /**
2245 * The completion date and time of the step.
2246 */
2247 EndDateTime?: _Date;
2248 /**
2249 * A description of the step's current state.
2250 */
2251 LastStateChangeReason?: XmlString;
2252 }
2253 export type StepId = string;
2254 export type StepIdsList = XmlStringMaxLen256[];
2255 export type StepState = "PENDING"|"CANCEL_PENDING"|"RUNNING"|"COMPLETED"|"CANCELLED"|"FAILED"|"INTERRUPTED"|string;
2256 export interface StepStateChangeReason {
2257 /**
2258 * The programmable code for the state change reason. Note: Currently, the service provides no code for the state change.
2259 */
2260 Code?: StepStateChangeReasonCode;
2261 /**
2262 * The descriptive message for the state change reason.
2263 */
2264 Message?: String;
2265 }
2266 export type StepStateChangeReasonCode = "NONE"|string;
2267 export type StepStateList = StepState[];
2268 export interface StepStatus {
2269 /**
2270 * The execution state of the cluster step.
2271 */
2272 State?: StepState;
2273 /**
2274 * The reason for the step execution status change.
2275 */
2276 StateChangeReason?: StepStateChangeReason;
2277 /**
2278 * The details for the step failure including reason, message, and log file path where the root cause was identified.
2279 */
2280 FailureDetails?: FailureDetails;
2281 /**
2282 * The timeline of the cluster step status over time.
2283 */
2284 Timeline?: StepTimeline;
2285 }
2286 export interface StepSummary {
2287 /**
2288 * The identifier of the cluster step.
2289 */
2290 Id?: StepId;
2291 /**
2292 * The name of the cluster step.
2293 */
2294 Name?: String;
2295 /**
2296 * The Hadoop job configuration of the cluster step.
2297 */
2298 Config?: HadoopStepConfig;
2299 /**
2300 * The action to take when the cluster step fails. Possible values are TERMINATE_CLUSTER, CANCEL_AND_WAIT, and CONTINUE. TERMINATE_JOB_FLOW is available for backward compatibility. We recommend using TERMINATE_CLUSTER instead.
2301 */
2302 ActionOnFailure?: ActionOnFailure;
2303 /**
2304 * The current execution status details of the cluster step.
2305 */
2306 Status?: StepStatus;
2307 }
2308 export type StepSummaryList = StepSummary[];
2309 export interface StepTimeline {
2310 /**
2311 * The date and time when the cluster step was created.
2312 */
2313 CreationDateTime?: _Date;
2314 /**
2315 * The date and time when the cluster step execution started.
2316 */
2317 StartDateTime?: _Date;
2318 /**
2319 * The date and time when the cluster step execution completed or failed.
2320 */
2321 EndDateTime?: _Date;
2322 }
2323 export type String = string;
2324 export type StringList = String[];
2325 export type StringMap = {[key: string]: String};
2326 export interface SupportedProductConfig {
2327 /**
2328 * The name of the product configuration.
2329 */
2330 Name?: XmlStringMaxLen256;
2331 /**
2332 * The list of user-supplied arguments.
2333 */
2334 Args?: XmlStringList;
2335 }
2336 export type SupportedProductsList = XmlStringMaxLen256[];
2337 export interface Tag {
2338 /**
2339 * A user-defined key, which is the minimum required information for a valid tag. For more information, see Tag .
2340 */
2341 Key?: String;
2342 /**
2343 * A user-defined value, which is optional in a tag. For more information, see Tag Clusters.
2344 */
2345 Value?: String;
2346 }
2347 export type TagList = Tag[];
2348 export interface TerminateJobFlowsInput {
2349 /**
2350 * A list of job flows to be shutdown.
2351 */
2352 JobFlowIds: XmlStringList;
2353 }
2354 export type Unit = "NONE"|"SECONDS"|"MICRO_SECONDS"|"MILLI_SECONDS"|"BYTES"|"KILO_BYTES"|"MEGA_BYTES"|"GIGA_BYTES"|"TERA_BYTES"|"BITS"|"KILO_BITS"|"MEGA_BITS"|"GIGA_BITS"|"TERA_BITS"|"PERCENT"|"COUNT"|"BYTES_PER_SECOND"|"KILO_BYTES_PER_SECOND"|"MEGA_BYTES_PER_SECOND"|"GIGA_BYTES_PER_SECOND"|"TERA_BYTES_PER_SECOND"|"BITS_PER_SECOND"|"KILO_BITS_PER_SECOND"|"MEGA_BITS_PER_SECOND"|"GIGA_BITS_PER_SECOND"|"TERA_BITS_PER_SECOND"|"COUNT_PER_SECOND"|string;
2355 export interface VolumeSpecification {
2356 /**
2357 * The volume type. Volume types supported are gp2, io1, standard.
2358 */
2359 VolumeType: String;
2360 /**
2361 * The number of I/O operations per second (IOPS) that the volume supports.
2362 */
2363 Iops?: Integer;
2364 /**
2365 * The volume size, in gibibytes (GiB). This can be a number from 1 - 1024. If the volume type is EBS-optimized, the minimum value is 10.
2366 */
2367 SizeInGB: Integer;
2368 }
2369 export type WholeNumber = number;
2370 export type XmlString = string;
2371 export type XmlStringList = XmlString[];
2372 export type XmlStringMaxLen256 = string;
2373 export type XmlStringMaxLen256List = XmlStringMaxLen256[];
2374 /**
2375 * A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
2376 */
2377 export type apiVersion = "2009-03-31"|"latest"|string;
2378 export interface ClientApiVersions {
2379 /**
2380 * A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
2381 */
2382 apiVersion?: apiVersion;
2383 }
2384 export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
2385 /**
2386 * Contains interfaces for use with the EMR client.
2387 */
2388 export import Types = EMR;
2389}
2390export = EMR;