@aws-sdk/client-emr 3.329.0 → 3.332.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (27) hide show
  1. package/dist-cjs/models/models_0.js +4 -1
  2. package/dist-cjs/protocols/Aws_json1_1.js +7 -0
  3. package/dist-es/models/models_0.js +3 -0
  4. package/dist-es/protocols/Aws_json1_1.js +7 -0
  5. package/dist-types/commands/AddInstanceFleetCommand.d.ts +1 -1
  6. package/dist-types/commands/CancelStepsCommand.d.ts +1 -1
  7. package/dist-types/commands/DescribeNotebookExecutionCommand.d.ts +13 -0
  8. package/dist-types/commands/DescribeReleaseLabelCommand.d.ts +3 -3
  9. package/dist-types/commands/GetClusterSessionCredentialsCommand.d.ts +4 -2
  10. package/dist-types/commands/ListInstanceFleetsCommand.d.ts +1 -1
  11. package/dist-types/commands/ListInstancesCommand.d.ts +4 -3
  12. package/dist-types/commands/ListNotebookExecutionsCommand.d.ts +7 -1
  13. package/dist-types/commands/ListReleaseLabelsCommand.d.ts +2 -1
  14. package/dist-types/commands/ModifyInstanceFleetCommand.d.ts +1 -1
  15. package/dist-types/commands/PutAutoScalingPolicyCommand.d.ts +2 -2
  16. package/dist-types/commands/PutAutoTerminationPolicyCommand.d.ts +1 -1
  17. package/dist-types/commands/PutManagedScalingPolicyCommand.d.ts +3 -3
  18. package/dist-types/commands/RemoveAutoScalingPolicyCommand.d.ts +1 -2
  19. package/dist-types/commands/RemoveManagedScalingPolicyCommand.d.ts +1 -1
  20. package/dist-types/commands/RunJobFlowCommand.d.ts +1 -1
  21. package/dist-types/commands/SetTerminationProtectionCommand.d.ts +7 -5
  22. package/dist-types/commands/SetVisibleToAllUsersCommand.d.ts +9 -10
  23. package/dist-types/commands/StartNotebookExecutionCommand.d.ts +15 -2
  24. package/dist-types/commands/TerminateJobFlowsCommand.d.ts +2 -3
  25. package/dist-types/models/models_0.d.ts +466 -326
  26. package/dist-types/ts3.4/models/models_0.d.ts +35 -2
  27. package/package.json +5 -5
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GetClusterSessionCredentialsOutputFilterSensitiveLog = exports.CredentialsFilterSensitiveLog = exports.UsernamePasswordFilterSensitiveLog = exports.ReconfigurationType = exports.InstanceStateChangeReasonCode = exports.InstanceState = exports.InstanceGroupStateChangeReasonCode = exports.InstanceGroupType = exports.InstanceFleetStateChangeReasonCode = exports.InstanceFleetState = exports.StepStateChangeReasonCode = exports.StepState = exports.NotebookExecutionStatus = exports.ExecutionEngineType = exports.StepExecutionState = exports.InstanceGroupState = exports.JobFlowExecutionState = exports.Credentials = exports.IdentityType = exports.ComputeLimitsUnitType = exports.ClusterStateChangeReasonCode = exports.ClusterState = exports.ScaleDownBehavior = exports.RepoUpgradeOnBoot = exports.PlacementGroupStrategy = exports.InstanceCollectionType = exports.CancelStepsRequestStatus = exports.StepCancellationOption = exports.AutoScalingPolicyStateChangeReasonCode = exports.AutoScalingPolicyState = exports.AuthMode = exports.InternalServerError = exports.InstanceRoleType = exports.Unit = exports.Statistic = exports.ComparisonOperator = exports.AdjustmentType = exports.MarketType = exports.InvalidRequestException = exports.InternalServerException = exports.SpotProvisioningTimeoutAction = exports.SpotProvisioningAllocationStrategy = exports.OnDemandCapacityReservationUsageStrategy = exports.OnDemandCapacityReservationPreference = exports.OnDemandProvisioningAllocationStrategy = exports.InstanceFleetType = exports.ActionOnFailure = void 0;
3
+ exports.GetClusterSessionCredentialsOutputFilterSensitiveLog = exports.CredentialsFilterSensitiveLog = exports.UsernamePasswordFilterSensitiveLog = exports.ReconfigurationType = exports.InstanceStateChangeReasonCode = exports.InstanceState = exports.InstanceGroupStateChangeReasonCode = exports.InstanceGroupType = exports.InstanceFleetStateChangeReasonCode = exports.InstanceFleetState = exports.StepStateChangeReasonCode = exports.StepState = exports.NotebookExecutionStatus = exports.OutputNotebookFormat = exports.ExecutionEngineType = exports.StepExecutionState = exports.InstanceGroupState = exports.JobFlowExecutionState = exports.Credentials = exports.IdentityType = exports.ComputeLimitsUnitType = exports.ClusterStateChangeReasonCode = exports.ClusterState = exports.ScaleDownBehavior = exports.RepoUpgradeOnBoot = exports.PlacementGroupStrategy = exports.InstanceCollectionType = exports.CancelStepsRequestStatus = exports.StepCancellationOption = exports.AutoScalingPolicyStateChangeReasonCode = exports.AutoScalingPolicyState = exports.AuthMode = exports.InternalServerError = exports.InstanceRoleType = exports.Unit = exports.Statistic = exports.ComparisonOperator = exports.AdjustmentType = exports.MarketType = exports.InvalidRequestException = exports.InternalServerException = exports.SpotProvisioningTimeoutAction = exports.SpotProvisioningAllocationStrategy = exports.OnDemandCapacityReservationUsageStrategy = exports.OnDemandCapacityReservationPreference = exports.OnDemandProvisioningAllocationStrategy = exports.InstanceFleetType = exports.ActionOnFailure = void 0;
4
4
  const smithy_client_1 = require("@aws-sdk/smithy-client");
5
5
  const EMRServiceException_1 = require("./EMRServiceException");
6
6
  exports.ActionOnFailure = {
@@ -243,6 +243,9 @@ exports.StepExecutionState = {
243
243
  exports.ExecutionEngineType = {
244
244
  EMR: "EMR",
245
245
  };
246
+ exports.OutputNotebookFormat = {
247
+ HTML: "HTML",
248
+ };
246
249
  exports.NotebookExecutionStatus = {
247
250
  FAILED: "FAILED",
248
251
  FAILING: "FAILING",
@@ -2352,6 +2352,7 @@ const se_ListClustersInput = (input, context) => {
2352
2352
  const se_ListNotebookExecutionsInput = (input, context) => {
2353
2353
  return (0, smithy_client_1.take)(input, {
2354
2354
  EditorId: [],
2355
+ ExecutionEngineId: [],
2355
2356
  From: (_) => Math.round(_.getTime() / 1000),
2356
2357
  Marker: [],
2357
2358
  Status: [],
@@ -2881,12 +2882,16 @@ const de_NotebookExecution = (output, context) => {
2881
2882
  Arn: smithy_client_1.expectString,
2882
2883
  EditorId: smithy_client_1.expectString,
2883
2884
  EndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2885
+ EnvironmentVariables: smithy_client_1._json,
2884
2886
  ExecutionEngine: smithy_client_1._json,
2885
2887
  LastStateChangeReason: smithy_client_1.expectString,
2886
2888
  NotebookExecutionId: smithy_client_1.expectString,
2887
2889
  NotebookExecutionName: smithy_client_1.expectString,
2888
2890
  NotebookInstanceSecurityGroupId: smithy_client_1.expectString,
2889
2891
  NotebookParams: smithy_client_1.expectString,
2892
+ NotebookS3Location: smithy_client_1._json,
2893
+ OutputNotebookFormat: smithy_client_1.expectString,
2894
+ OutputNotebookS3Location: smithy_client_1._json,
2890
2895
  OutputNotebookURI: smithy_client_1.expectString,
2891
2896
  StartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2892
2897
  Status: smithy_client_1.expectString,
@@ -2897,8 +2902,10 @@ const de_NotebookExecutionSummary = (output, context) => {
2897
2902
  return (0, smithy_client_1.take)(output, {
2898
2903
  EditorId: smithy_client_1.expectString,
2899
2904
  EndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2905
+ ExecutionEngineId: smithy_client_1.expectString,
2900
2906
  NotebookExecutionId: smithy_client_1.expectString,
2901
2907
  NotebookExecutionName: smithy_client_1.expectString,
2908
+ NotebookS3Location: smithy_client_1._json,
2902
2909
  StartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
2903
2910
  Status: smithy_client_1.expectString,
2904
2911
  });
@@ -237,6 +237,9 @@ export const StepExecutionState = {
237
237
  export const ExecutionEngineType = {
238
238
  EMR: "EMR",
239
239
  };
240
+ export const OutputNotebookFormat = {
241
+ HTML: "HTML",
242
+ };
240
243
  export const NotebookExecutionStatus = {
241
244
  FAILED: "FAILED",
242
245
  FAILING: "FAILING",
@@ -2241,6 +2241,7 @@ const se_ListClustersInput = (input, context) => {
2241
2241
  const se_ListNotebookExecutionsInput = (input, context) => {
2242
2242
  return take(input, {
2243
2243
  EditorId: [],
2244
+ ExecutionEngineId: [],
2244
2245
  From: (_) => Math.round(_.getTime() / 1000),
2245
2246
  Marker: [],
2246
2247
  Status: [],
@@ -2770,12 +2771,16 @@ const de_NotebookExecution = (output, context) => {
2770
2771
  Arn: __expectString,
2771
2772
  EditorId: __expectString,
2772
2773
  EndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2774
+ EnvironmentVariables: _json,
2773
2775
  ExecutionEngine: _json,
2774
2776
  LastStateChangeReason: __expectString,
2775
2777
  NotebookExecutionId: __expectString,
2776
2778
  NotebookExecutionName: __expectString,
2777
2779
  NotebookInstanceSecurityGroupId: __expectString,
2778
2780
  NotebookParams: __expectString,
2781
+ NotebookS3Location: _json,
2782
+ OutputNotebookFormat: __expectString,
2783
+ OutputNotebookS3Location: _json,
2779
2784
  OutputNotebookURI: __expectString,
2780
2785
  StartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2781
2786
  Status: __expectString,
@@ -2786,8 +2791,10 @@ const de_NotebookExecutionSummary = (output, context) => {
2786
2791
  return take(output, {
2787
2792
  EditorId: __expectString,
2788
2793
  EndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2794
+ ExecutionEngineId: __expectString,
2789
2795
  NotebookExecutionId: __expectString,
2790
2796
  NotebookExecutionName: __expectString,
2797
+ NotebookS3Location: _json,
2791
2798
  StartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2792
2799
  Status: __expectString,
2793
2800
  });
@@ -21,7 +21,7 @@ export interface AddInstanceFleetCommandOutput extends AddInstanceFleetOutput, _
21
21
  * @public
22
22
  * <p>Adds an instance fleet to a running cluster.</p>
23
23
  * <note>
24
- * <p>The instance fleet configuration is available only in Amazon EMR versions
24
+ * <p>The instance fleet configuration is available only in Amazon EMR releases
25
25
  * 4.8.0 and later, excluding 5.0.x.</p>
26
26
  * </note>
27
27
  * @example
@@ -22,7 +22,7 @@ export interface CancelStepsCommandOutput extends CancelStepsOutput, __MetadataB
22
22
  * <p>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
23
23
  * each CancelSteps request. CancelSteps is idempotent but asynchronous; it does not guarantee
24
24
  * that a step will be canceled, even if the request is successfully submitted. When you use
25
- * Amazon EMR versions 5.28.0 and later, you can cancel steps that are in a
25
+ * Amazon EMR releases 5.28.0 and later, you can cancel steps that are in a
26
26
  * <code>PENDING</code> or <code>RUNNING</code> state. In earlier versions of Amazon EMR, you can only cancel steps that are in a <code>PENDING</code> state. </p>
27
27
  * @example
28
28
  * Use a bare-bones client and the command you need to make an API call.
@@ -39,6 +39,7 @@ export interface DescribeNotebookExecutionCommandOutput extends DescribeNotebook
39
39
  * // Id: "STRING_VALUE", // required
40
40
  * // Type: "EMR",
41
41
  * // MasterInstanceSecurityGroupId: "STRING_VALUE",
42
+ * // ExecutionRoleArn: "STRING_VALUE",
42
43
  * // },
43
44
  * // NotebookExecutionName: "STRING_VALUE",
44
45
  * // NotebookParams: "STRING_VALUE",
@@ -55,6 +56,18 @@ export interface DescribeNotebookExecutionCommandOutput extends DescribeNotebook
55
56
  * // Value: "STRING_VALUE",
56
57
  * // },
57
58
  * // ],
59
+ * // NotebookS3Location: { // NotebookS3LocationForOutput
60
+ * // Bucket: "STRING_VALUE",
61
+ * // Key: "STRING_VALUE",
62
+ * // },
63
+ * // OutputNotebookS3Location: { // OutputNotebookS3LocationForOutput
64
+ * // Bucket: "STRING_VALUE",
65
+ * // Key: "STRING_VALUE",
66
+ * // },
67
+ * // OutputNotebookFormat: "HTML",
68
+ * // EnvironmentVariables: { // EnvironmentVariablesMap
69
+ * // "<keys>": "STRING_VALUE",
70
+ * // },
58
71
  * // },
59
72
  * // };
60
73
  *
@@ -19,9 +19,9 @@ export interface DescribeReleaseLabelCommandOutput extends DescribeReleaseLabelO
19
19
  }
20
20
  /**
21
21
  * @public
22
- * <p>Provides EMR release label details, such as releases available the region where the API
23
- * request is run, and the available applications for a specific EMR release label. Can also
24
- * list EMR release versions that support a specified version of Spark.</p>
22
+ * <p>Provides Amazon EMR release label details, such as the releases available the
23
+ * Region where the API request is run, and the available applications for a specific Amazon EMR release label. Can also list Amazon EMR releases that support a
24
+ * specified version of Spark.</p>
25
25
  * @example
26
26
  * Use a bare-bones client and the command you need to make an API call.
27
27
  * ```javascript
@@ -19,8 +19,10 @@ export interface GetClusterSessionCredentialsCommandOutput extends GetClusterSes
19
19
  }
20
20
  /**
21
21
  * @public
22
- * <p>Provides temporary, HTTP basic credentials that are associated with a given runtime IAM role
23
- * and used by a cluster with fine-grained access control activated. You can use these credentials to connect to cluster endpoints that support username and password authentication.</p>
22
+ * <p>Provides temporary, HTTP basic credentials that are associated with a given runtime
23
+ * IAM role and used by a cluster with fine-grained access control
24
+ * activated. You can use these credentials to connect to cluster endpoints that support
25
+ * username and password authentication.</p>
24
26
  * @example
25
27
  * Use a bare-bones client and the command you need to make an API call.
26
28
  * ```javascript
@@ -21,7 +21,7 @@ export interface ListInstanceFleetsCommandOutput extends ListInstanceFleetsOutpu
21
21
  * @public
22
22
  * <p>Lists all available details about the instance fleets in a cluster.</p>
23
23
  * <note>
24
- * <p>The instance fleet configuration is available only in Amazon EMR versions
24
+ * <p>The instance fleet configuration is available only in Amazon EMR releases
25
25
  * 4.8.0 and later, excluding 5.0.x versions.</p>
26
26
  * </note>
27
27
  * @example
@@ -19,9 +19,10 @@ export interface ListInstancesCommandOutput extends ListInstancesOutput, __Metad
19
19
  }
20
20
  /**
21
21
  * @public
22
- * <p>Provides information for all active EC2 instances and EC2 instances terminated in the
23
- * last 30 days, up to a maximum of 2,000. EC2 instances in any of the following states are
24
- * considered active: AWAITING_FULFILLMENT, PROVISIONING, BOOTSTRAPPING, RUNNING.</p>
22
+ * <p>Provides information for all active Amazon EC2 instances and Amazon EC2
23
+ * instances terminated in the last 30 days, up to a maximum of 2,000. Amazon EC2
24
+ * instances in any of the following states are considered active: AWAITING_FULFILLMENT,
25
+ * PROVISIONING, BOOTSTRAPPING, RUNNING.</p>
25
26
  * @example
26
27
  * Use a bare-bones client and the command you need to make an API call.
27
28
  * ```javascript
@@ -22,7 +22,7 @@ export interface ListNotebookExecutionsCommandOutput extends ListNotebookExecuti
22
22
  * <p>Provides summaries of all notebook executions. You can filter the list based on multiple
23
23
  * criteria such as status, time range, and editor id. Returns a maximum of 50 notebook
24
24
  * executions and a marker to track the paging of a longer notebook execution list across
25
- * multiple <code>ListNotebookExecution</code> calls.</p>
25
+ * multiple <code>ListNotebookExecutions</code> calls.</p>
26
26
  * @example
27
27
  * Use a bare-bones client and the command you need to make an API call.
28
28
  * ```javascript
@@ -35,6 +35,7 @@ export interface ListNotebookExecutionsCommandOutput extends ListNotebookExecuti
35
35
  * From: new Date("TIMESTAMP"),
36
36
  * To: new Date("TIMESTAMP"),
37
37
  * Marker: "STRING_VALUE",
38
+ * ExecutionEngineId: "STRING_VALUE",
38
39
  * };
39
40
  * const command = new ListNotebookExecutionsCommand(input);
40
41
  * const response = await client.send(command);
@@ -47,6 +48,11 @@ export interface ListNotebookExecutionsCommandOutput extends ListNotebookExecuti
47
48
  * // Status: "START_PENDING" || "STARTING" || "RUNNING" || "FINISHING" || "FINISHED" || "FAILING" || "FAILED" || "STOP_PENDING" || "STOPPING" || "STOPPED",
48
49
  * // StartTime: new Date("TIMESTAMP"),
49
50
  * // EndTime: new Date("TIMESTAMP"),
51
+ * // NotebookS3Location: { // NotebookS3LocationForOutput
52
+ * // Bucket: "STRING_VALUE",
53
+ * // Key: "STRING_VALUE",
54
+ * // },
55
+ * // ExecutionEngineId: "STRING_VALUE",
50
56
  * // },
51
57
  * // ],
52
58
  * // Marker: "STRING_VALUE",
@@ -19,7 +19,8 @@ export interface ListReleaseLabelsCommandOutput extends ListReleaseLabelsOutput,
19
19
  }
20
20
  /**
21
21
  * @public
22
- * <p>Retrieves release labels of EMR services in the region where the API is called.</p>
22
+ * <p>Retrieves release labels of Amazon EMR services in the Region where the API is
23
+ * called.</p>
23
24
  * @example
24
25
  * Use a bare-bones client and the command you need to make an API call.
25
26
  * ```javascript
@@ -23,7 +23,7 @@ export interface ModifyInstanceFleetCommandOutput extends __MetadataBearer {
23
23
  * specified InstanceFleetID within the cluster specified using ClusterID. The call either
24
24
  * succeeds or fails atomically.</p>
25
25
  * <note>
26
- * <p>The instance fleet configuration is available only in Amazon EMR versions
26
+ * <p>The instance fleet configuration is available only in Amazon EMR releases
27
27
  * 4.8.0 and later, excluding 5.0.x versions.</p>
28
28
  * </note>
29
29
  * @example
@@ -21,8 +21,8 @@ export interface PutAutoScalingPolicyCommandOutput extends PutAutoScalingPolicyO
21
21
  * @public
22
22
  * <p>Creates or updates an automatic scaling policy for a core instance group or task
23
23
  * instance group in an Amazon EMR cluster. The automatic scaling policy defines how
24
- * an instance group dynamically adds and terminates EC2 instances in response to the value of
25
- * a CloudWatch metric.</p>
24
+ * an instance group dynamically adds and terminates Amazon EC2 instances in response
25
+ * to the value of a CloudWatch metric.</p>
26
26
  * @example
27
27
  * Use a bare-bones client and the command you need to make an API call.
28
28
  * ```javascript
@@ -20,7 +20,7 @@ export interface PutAutoTerminationPolicyCommandOutput extends PutAutoTerminatio
20
20
  /**
21
21
  * @public
22
22
  * <note>
23
- * <p>Auto-termination is supported in Amazon EMR versions 5.30.0 and 6.1.0 and
23
+ * <p>Auto-termination is supported in Amazon EMR releases 5.30.0 and 6.1.0 and
24
24
  * later. For more information, see <a href="https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-auto-termination-policy.html">Using an
25
25
  * auto-termination policy</a>.</p>
26
26
  * </note>
@@ -20,9 +20,9 @@ export interface PutManagedScalingPolicyCommandOutput extends PutManagedScalingP
20
20
  /**
21
21
  * @public
22
22
  * <p>Creates or updates a managed scaling policy for an Amazon EMR cluster. The
23
- * managed scaling policy defines the limits for resources, such as EC2 instances that can be
24
- * added or terminated from a cluster. The policy only applies to the core and task nodes. The
25
- * master node cannot be scaled after initial configuration. </p>
23
+ * managed scaling policy defines the limits for resources, such as Amazon EC2
24
+ * instances that can be added or terminated from a cluster. The policy only applies to the
25
+ * core and task nodes. The master node cannot be scaled after initial configuration. </p>
26
26
  * @example
27
27
  * Use a bare-bones client and the command you need to make an API call.
28
28
  * ```javascript
@@ -19,8 +19,7 @@ export interface RemoveAutoScalingPolicyCommandOutput extends RemoveAutoScalingP
19
19
  }
20
20
  /**
21
21
  * @public
22
- * <p>Removes an automatic scaling policy from a specified instance group within an EMR
23
- * cluster.</p>
22
+ * <p>Removes an automatic scaling policy from a specified instance group within an Amazon EMR cluster.</p>
24
23
  * @example
25
24
  * Use a bare-bones client and the command you need to make an API call.
26
25
  * ```javascript
@@ -19,7 +19,7 @@ export interface RemoveManagedScalingPolicyCommandOutput extends RemoveManagedSc
19
19
  }
20
20
  /**
21
21
  * @public
22
- * <p> Removes a managed scaling policy from a specified EMR cluster. </p>
22
+ * <p> Removes a managed scaling policy from a specified Amazon EMR cluster. </p>
23
23
  * @example
24
24
  * Use a bare-bones client and the command you need to make an API call.
25
25
  * ```javascript
@@ -37,7 +37,7 @@ export interface RunJobFlowCommandOutput extends RunJobFlowOutput, __MetadataBea
37
37
  * Hadoop.</p>
38
38
  * <p>For long-running clusters, we recommend that you periodically store your results.</p>
39
39
  * <note>
40
- * <p>The instance fleets configuration is available only in Amazon EMR versions
40
+ * <p>The instance fleets configuration is available only in Amazon EMR releases
41
41
  * 4.8.0 and later, excluding 5.0.x versions. The RunJobFlow request can contain
42
42
  * InstanceFleets parameters or InstanceGroups parameters, but not both.</p>
43
43
  * </note>
@@ -19,11 +19,13 @@ export interface SetTerminationProtectionCommandOutput extends __MetadataBearer
19
19
  }
20
20
  /**
21
21
  * @public
22
- * <p>SetTerminationProtection locks a cluster (job flow) so the EC2 instances in the cluster
23
- * cannot be terminated by user intervention, an API call, or in the event of a job-flow
24
- * error. The cluster still terminates upon successful completion of the job flow. Calling
25
- * <code>SetTerminationProtection</code> on a cluster is similar to calling the Amazon EC2
26
- * <code>DisableAPITermination</code> API on all EC2 instances in a cluster.</p>
22
+ * <p>SetTerminationProtection locks a cluster (job flow) so the Amazon EC2 instances
23
+ * in the cluster cannot be terminated by user intervention, an API call, or in the event of a
24
+ * job-flow error. The cluster still terminates upon successful completion of the job flow.
25
+ * Calling <code>SetTerminationProtection</code> on a cluster is similar to calling the
26
+ * Amazon EC2
27
+ * <code>DisableAPITermination</code> API on all Amazon EC2 instances in a
28
+ * cluster.</p>
27
29
  * <p>
28
30
  * <code>SetTerminationProtection</code> is used to prevent accidental termination of a
29
31
  * cluster and to ensure that in the event of an error, the instances persist so that you can
@@ -21,18 +21,17 @@ export interface SetVisibleToAllUsersCommandOutput extends __MetadataBearer {
21
21
  * @public
22
22
  * <important>
23
23
  * <p>The SetVisibleToAllUsers parameter is no longer supported. Your cluster may be
24
- * visible to all users in your account. To restrict cluster access using an IAM policy, see <a href="https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-plan-access-iam.html">Identity and Access
25
- * Management for EMR</a>. </p>
24
+ * visible to all users in your account. To restrict cluster access using an IAM policy, see <a href="https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-plan-access-IAM.html">Identity and Access
25
+ * Management for Amazon EMR</a>. </p>
26
26
  * </important>
27
- * <p>Sets the <a>Cluster$VisibleToAllUsers</a> value for an EMR cluster. When
28
- * <code>true</code>, IAM principals in the Amazon Web Services account can perform EMR
29
- * cluster actions that their IAM policies allow. When <code>false</code>, only
30
- * the IAM principal that created the cluster and the Amazon Web Services account root user can
31
- * perform EMR actions on the cluster, regardless of IAM permissions policies attached to
32
- * other IAM principals.</p>
27
+ * <p>Sets the <a>Cluster$VisibleToAllUsers</a> value for an Amazon EMR
28
+ * cluster. When <code>true</code>, IAM principals in the Amazon Web Services account can perform Amazon EMR cluster actions that their IAM policies allow. When <code>false</code>, only the IAM
29
+ * principal that created the cluster and the Amazon Web Services account root user can perform
30
+ * Amazon EMR actions on the cluster, regardless of IAM permissions
31
+ * policies attached to other IAM principals.</p>
33
32
  * <p>This action works on running clusters. When you create a cluster, use the <a>RunJobFlowInput$VisibleToAllUsers</a> parameter.</p>
34
- * <p>For more information, see <a href="https://docs.aws.amazon.com/emr/latest/ManagementGuide/security_iam_emr-with-iam.html#security_set_visible_to_all_users">Understanding the EMR Cluster VisibleToAllUsers Setting</a> in the
35
- * <i>Amazon EMRManagement Guide</i>.</p>
33
+ * <p>For more information, see <a href="https://docs.aws.amazon.com/emr/latest/ManagementGuide/security_IAM_emr-with-IAM.html#security_set_visible_to_all_users">Understanding the Amazon EMR Cluster VisibleToAllUsers Setting</a> in the
34
+ * <i>Amazon EMR Management Guide</i>.</p>
36
35
  * @example
37
36
  * Use a bare-bones client and the command you need to make an API call.
38
37
  * ```javascript
@@ -27,14 +27,15 @@ export interface StartNotebookExecutionCommandOutput extends StartNotebookExecut
27
27
  * // const { EMRClient, StartNotebookExecutionCommand } = require("@aws-sdk/client-emr"); // CommonJS import
28
28
  * const client = new EMRClient(config);
29
29
  * const input = { // StartNotebookExecutionInput
30
- * EditorId: "STRING_VALUE", // required
31
- * RelativePath: "STRING_VALUE", // required
30
+ * EditorId: "STRING_VALUE",
31
+ * RelativePath: "STRING_VALUE",
32
32
  * NotebookExecutionName: "STRING_VALUE",
33
33
  * NotebookParams: "STRING_VALUE",
34
34
  * ExecutionEngine: { // ExecutionEngineConfig
35
35
  * Id: "STRING_VALUE", // required
36
36
  * Type: "EMR",
37
37
  * MasterInstanceSecurityGroupId: "STRING_VALUE",
38
+ * ExecutionRoleArn: "STRING_VALUE",
38
39
  * },
39
40
  * ServiceRole: "STRING_VALUE", // required
40
41
  * NotebookInstanceSecurityGroupId: "STRING_VALUE",
@@ -44,6 +45,18 @@ export interface StartNotebookExecutionCommandOutput extends StartNotebookExecut
44
45
  * Value: "STRING_VALUE",
45
46
  * },
46
47
  * ],
48
+ * NotebookS3Location: { // NotebookS3LocationFromInput
49
+ * Bucket: "STRING_VALUE",
50
+ * Key: "STRING_VALUE",
51
+ * },
52
+ * OutputNotebookS3Location: { // OutputNotebookS3LocationFromInput
53
+ * Bucket: "STRING_VALUE",
54
+ * Key: "STRING_VALUE",
55
+ * },
56
+ * OutputNotebookFormat: "HTML",
57
+ * EnvironmentVariables: { // EnvironmentVariablesMap
58
+ * "<keys>": "STRING_VALUE",
59
+ * },
47
60
  * };
48
61
  * const command = new StartNotebookExecutionCommand(input);
49
62
  * const response = await client.send(command);
@@ -20,9 +20,8 @@ export interface TerminateJobFlowsCommandOutput extends __MetadataBearer {
20
20
  /**
21
21
  * @public
22
22
  * <p>TerminateJobFlows shuts a list of clusters (job flows) down. When a job flow is shut
23
- * down, any step not yet completed is canceled and the EC2 instances on which the cluster is
24
- * running are stopped. Any log files not already saved are uploaded to Amazon S3 if a
25
- * LogUri was specified when the cluster was created.</p>
23
+ * down, any step not yet completed is canceled and the Amazon EC2 instances on which
24
+ * 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.</p>
26
25
  * <p>The maximum number of clusters allowed is 10. The call to <code>TerminateJobFlows</code>
27
26
  * is asynchronous. Depending on the configuration of the cluster, it may take up to 1-5
28
27
  * minutes for the cluster to completely terminate and release allocated resources, such as