@aws-sdk/client-emr 3.47.2 → 3.51.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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,41 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.51.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.50.0...v3.51.0) (2022-02-12)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-emr
9
+
10
+
11
+
12
+
13
+
14
+ # [3.50.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.49.0...v3.50.0) (2022-02-08)
15
+
16
+
17
+ ### Features
18
+
19
+ * **clients:** update clients as of 02/04/2022 ([#3280](https://github.com/aws/aws-sdk-js-v3/issues/3280)) ([63d7f8c](https://github.com/aws/aws-sdk-js-v3/commit/63d7f8c539e0fd782fa5bf997bd6ac2730e4bfda))
20
+
21
+
22
+
23
+
24
+
25
+ # [3.49.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.48.0...v3.49.0) (2022-01-29)
26
+
27
+ **Note:** Version bump only for package @aws-sdk/client-emr
28
+
29
+
30
+
31
+
32
+
33
+ # [3.48.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.47.2...v3.48.0) (2022-01-22)
34
+
35
+ **Note:** Version bump only for package @aws-sdk/client-emr
36
+
37
+
38
+
39
+
40
+
6
41
  ## [3.47.2](https://github.com/aws/aws-sdk-js-v3/compare/v3.47.1...v3.47.2) (2022-01-21)
7
42
 
8
43
  **Note:** Version bump only for package @aws-sdk/client-emr
@@ -93,6 +93,9 @@ export declare class EMR extends EMRClient {
93
93
  * step was running must have completed and run successfully.</p>
94
94
  * <p>You can only add steps to a cluster that is in one of the following states: STARTING,
95
95
  * BOOTSTRAPPING, RUNNING, or WAITING.</p>
96
+ * <note>
97
+ * <p>The string values passed into <code>HadoopJarStep</code> object cannot exceed a total of 10240 characters.</p>
98
+ * </note>
96
99
  */
97
100
  addJobFlowSteps(args: AddJobFlowStepsCommandInput, options?: __HttpHandlerOptions): Promise<AddJobFlowStepsCommandOutput>;
98
101
  addJobFlowSteps(args: AddJobFlowStepsCommandInput, cb: (err: any, data?: AddJobFlowStepsCommandOutput) => void): void;
@@ -370,7 +373,10 @@ export declare class EMR extends EMRClient {
370
373
  putAutoScalingPolicy(args: PutAutoScalingPolicyCommandInput, cb: (err: any, data?: PutAutoScalingPolicyCommandOutput) => void): void;
371
374
  putAutoScalingPolicy(args: PutAutoScalingPolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutAutoScalingPolicyCommandOutput) => void): void;
372
375
  /**
373
- * <p>Creates or updates an auto-termination policy for an Amazon EMR cluster. An auto-termination policy defines the amount of idle time in seconds after which a cluster automatically terminates. For alternative cluster termination options, see <a href="https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-plan-termination.html">Control cluster termination</a>.</p>
376
+ * <note>
377
+ * <p>Auto-termination is supported in Amazon EMR versions 5.30.0 and 6.1.0 and later. For more information, see <a href="https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-auto-termination-policy.html">Using an auto-termination policy</a>.</p>
378
+ * </note>
379
+ * <p>Creates or updates an auto-termination policy for an Amazon EMR cluster. An auto-termination policy defines the amount of idle time in seconds after which a cluster automatically terminates. For alternative cluster termination options, see <a href="https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-plan-termination.html">Control cluster termination</a>.</p>
374
380
  */
375
381
  putAutoTerminationPolicy(args: PutAutoTerminationPolicyCommandInput, options?: __HttpHandlerOptions): Promise<PutAutoTerminationPolicyCommandOutput>;
376
382
  putAutoTerminationPolicy(args: PutAutoTerminationPolicyCommandInput, cb: (err: any, data?: PutAutoTerminationPolicyCommandOutput) => void): void;
@@ -470,7 +476,12 @@ export declare class EMR extends EMRClient {
470
476
  setTerminationProtection(args: SetTerminationProtectionCommandInput, cb: (err: any, data?: SetTerminationProtectionCommandOutput) => void): void;
471
477
  setTerminationProtection(args: SetTerminationProtectionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SetTerminationProtectionCommandOutput) => void): void;
472
478
  /**
473
- * <p>Sets the <a>Cluster$VisibleToAllUsers</a> value for an EMR cluster. When <code>true</code>, IAM principals in the
479
+ * <important>
480
+ * <p>The SetVisibleToAllUsers parameter is no longer supported. Your cluster may be visible to all users in your account.
481
+ * 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 Management for EMR</a>.
482
+ * </p>
483
+ * </important>
484
+ * <p>Sets the <a>Cluster$VisibleToAllUsers</a> value for an EMR cluster. When <code>true</code>, IAM principals in the
474
485
  * Amazon Web Services account can perform EMR cluster actions that their IAM policies allow. When <code>false</code>, only the IAM principal that created the cluster and the Amazon Web Services account root user can perform EMR actions on the cluster, regardless of IAM permissions policies attached to other IAM principals.</p>
475
486
  * <p>This action works on running clusters. When you create a cluster, use the <a>RunJobFlowInput$VisibleToAllUsers</a> parameter.</p>
476
487
  * <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 <i>Amazon EMRManagement Guide</i>.</p>
@@ -24,6 +24,9 @@ export interface AddJobFlowStepsCommandOutput extends AddJobFlowStepsOutput, __M
24
24
  * step was running must have completed and run successfully.</p>
25
25
  * <p>You can only add steps to a cluster that is in one of the following states: STARTING,
26
26
  * BOOTSTRAPPING, RUNNING, or WAITING.</p>
27
+ * <note>
28
+ * <p>The string values passed into <code>HadoopJarStep</code> object cannot exceed a total of 10240 characters.</p>
29
+ * </note>
27
30
  * @example
28
31
  * Use a bare-bones client and the command you need to make an API call.
29
32
  * ```javascript
@@ -7,7 +7,10 @@ export interface PutAutoTerminationPolicyCommandInput extends PutAutoTermination
7
7
  export interface PutAutoTerminationPolicyCommandOutput extends PutAutoTerminationPolicyOutput, __MetadataBearer {
8
8
  }
9
9
  /**
10
- * <p>Creates or updates an auto-termination policy for an Amazon EMR cluster. An auto-termination policy defines the amount of idle time in seconds after which a cluster automatically terminates. For alternative cluster termination options, see <a href="https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-plan-termination.html">Control cluster termination</a>.</p>
10
+ * <note>
11
+ * <p>Auto-termination is supported in Amazon EMR versions 5.30.0 and 6.1.0 and later. For more information, see <a href="https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-auto-termination-policy.html">Using an auto-termination policy</a>.</p>
12
+ * </note>
13
+ * <p>Creates or updates an auto-termination policy for an Amazon EMR cluster. An auto-termination policy defines the amount of idle time in seconds after which a cluster automatically terminates. For alternative cluster termination options, see <a href="https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-plan-termination.html">Control cluster termination</a>.</p>
11
14
  * @example
12
15
  * Use a bare-bones client and the command you need to make an API call.
13
16
  * ```javascript
@@ -7,7 +7,12 @@ export interface SetVisibleToAllUsersCommandInput extends SetVisibleToAllUsersIn
7
7
  export interface SetVisibleToAllUsersCommandOutput extends __MetadataBearer {
8
8
  }
9
9
  /**
10
- * <p>Sets the <a>Cluster$VisibleToAllUsers</a> value for an EMR cluster. When <code>true</code>, IAM principals in the
10
+ * <important>
11
+ * <p>The SetVisibleToAllUsers parameter is no longer supported. Your cluster may be visible to all users in your account.
12
+ * 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 Management for EMR</a>.
13
+ * </p>
14
+ * </important>
15
+ * <p>Sets the <a>Cluster$VisibleToAllUsers</a> value for an EMR cluster. When <code>true</code>, IAM principals in the
11
16
  * Amazon Web Services account can perform EMR cluster actions that their IAM policies allow. When <code>false</code>, only the IAM principal that created the cluster and the Amazon Web Services account root user can perform EMR actions on the cluster, regardless of IAM permissions policies attached to other IAM principals.</p>
12
17
  * <p>This action works on running clusters. When you create a cluster, use the <a>RunJobFlowInput$VisibleToAllUsers</a> parameter.</p>
13
18
  * <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 <i>Amazon EMRManagement Guide</i>.</p>
@@ -16,7 +16,7 @@ export declare enum InstanceFleetType {
16
16
  */
17
17
  export interface VolumeSpecification {
18
18
  /**
19
- * <p>The volume type. Volume types supported are gp2, io1, standard.</p>
19
+ * <p>The volume type. Volume types supported are gp2, io1, and standard.</p>
20
20
  */
21
21
  VolumeType: string | undefined;
22
22
  /**
@@ -158,6 +158,10 @@ export declare type SpotProvisioningTimeoutAction = "SWITCH_TO_ON_DEMAND" | "TER
158
158
  * later, excluding 5.0.x versions. Spot Instance allocation strategy is available in
159
159
  * Amazon EMR version 5.12.1 and later.</p>
160
160
  * </note>
161
+ * <note>
162
+ * <p>Spot Instances with a defined duration (also known as Spot blocks) are no longer available to new customers from July 1, 2021. For customers who have previously used the feature, we will continue to support Spot Instances with a defined duration until December 31, 2022.
163
+ * </p>
164
+ * </note>
161
165
  */
162
166
  export interface SpotProvisioningSpecification {
163
167
  /**
@@ -184,6 +188,10 @@ export interface SpotProvisioningSpecification {
184
188
  * ID. At the end of the duration, Amazon EC2 marks the Spot Instance for termination and
185
189
  * provides a Spot Instance termination notice, which gives the instance a two-minute warning
186
190
  * before it terminates. </p>
191
+ * <note>
192
+ * <p>Spot Instances with a defined duration (also known as Spot blocks) are no longer available to new customers from July 1, 2021. For customers who have previously used the feature, we will continue to support Spot Instances with a defined duration until December 31, 2022.
193
+ * </p>
194
+ * </note>
187
195
  */
188
196
  BlockDurationMinutes?: number;
189
197
  /**
@@ -742,7 +750,7 @@ export declare namespace AddJobFlowStepsOutput {
742
750
  export interface Tag {
743
751
  /**
744
752
  * <p>A user-defined key, which is the minimum required information for a valid tag. For more
745
- * information, see <a href="https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-plan-tags.html">Tag </a>. </p>
753
+ * information, see <a href="https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-plan-tags.html">Tag</a>. </p>
746
754
  */
747
755
  Key?: string;
748
756
  /**
@@ -1809,7 +1817,7 @@ export interface InstanceGroupDetail {
1809
1817
  */
1810
1818
  InstanceRunningCount: number | undefined;
1811
1819
  /**
1812
- * <p>State of instance group. The following values are deprecated: STARTING, TERMINATED, and
1820
+ * <p>State of instance group. The following values are no longer supported: STARTING, TERMINATED, and
1813
1821
  * FAILED.</p>
1814
1822
  */
1815
1823
  State: InstanceGroupState | string | undefined;
@@ -2050,7 +2058,7 @@ export interface JobFlowDetail {
2050
2058
  * Amazon Web Services account can perform EMR cluster actions that their IAM policies allow. When <code>false</code>, only the IAM principal that created the cluster and the Amazon Web Services account root user can perform EMR actions, regardless of IAM permissions policies attached to other IAM principals.</p>
2051
2059
  * <p>The default value is <code>true</code> if a value is not provided when creating a
2052
2060
  * cluster using the EMR API <a>RunJobFlow</a> command, the CLI
2053
- * <a href="https://docs.aws.amazon.com/cli/latest/reference/emr/create-cluster.html">create-cluster</a> command, or the Amazon Web Services Management Console. IAM principals that are authorized to perform actions on the cluster can use the <a>SetVisibleToAllUsers</a> action to change the value on a running cluster. 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 <i>Amazon EMRManagement Guide</i>.</p>
2061
+ * <a href="https://docs.aws.amazon.com/cli/latest/reference/emr/create-cluster.html">create-cluster</a> command, or the Amazon Web Services Management Console.</p>
2054
2062
  */
2055
2063
  VisibleToAllUsers?: boolean;
2056
2064
  /**
@@ -4655,8 +4663,7 @@ export interface Cluster {
4655
4663
  * Amazon Web Services account can perform EMR cluster actions on the cluster that their IAM policies allow. When <code>false</code>, only the IAM principal that created the cluster and the Amazon Web Services account root user can perform EMR actions, regardless of IAM permissions policies attached to other IAM principals.</p>
4656
4664
  * <p>The default value is <code>true</code> if a value is not provided when creating a
4657
4665
  * cluster using the EMR API <a>RunJobFlow</a> command, the CLI
4658
- * <a href="https://docs.aws.amazon.com/cli/latest/reference/emr/create-cluster.html">create-cluster</a> command, or the Amazon Web Services Management Console. IAM principals that are
4659
- * allowed to perform actions on the cluster can use the <a>SetVisibleToAllUsers</a> action to change the value on a running cluster. 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 <i>Amazon EMRManagement Guide</i>.</p>
4666
+ * <a href="https://docs.aws.amazon.com/cli/latest/reference/emr/create-cluster.html">create-cluster</a> command, or the Amazon Web Services Management Console.</p>
4660
4667
  */
4661
4668
  VisibleToAllUsers?: boolean;
4662
4669
  /**
@@ -5611,7 +5618,7 @@ export interface RunJobFlowInput {
5611
5618
  /**
5612
5619
  * <p>Applies to Amazon EMR releases 4.0 and later. A case-insensitive list of applications
5613
5620
  * for Amazon EMR to install and configure when launching the cluster. For a list of
5614
- * applications available for each Amazon EMR release version, see the <a href="https://docs.aws.amazon.com/emr/latest/ReleaseGuide/">Amazon EMR Release
5621
+ * applications available for each Amazon EMR release version, see the <a href="https://docs.aws.amazon.com/emr/latest/ReleaseGuide/">Amazon EMRRelease
5615
5622
  * Guide</a>.</p>
5616
5623
  */
5617
5624
  Applications?: Application[];
@@ -5621,7 +5628,10 @@ export interface RunJobFlowInput {
5621
5628
  */
5622
5629
  Configurations?: Configuration[];
5623
5630
  /**
5624
- * <p>Set this value to <code>true</code> so that IAM principals in the Amazon Web Services account associated with the cluster can perform EMR actions on the cluster that their IAM policies allow. This value defaults to <code>true</code> for clusters created using the EMR API or the CLI <a href="https://docs.aws.amazon.com/cli/latest/reference/emr/create-cluster.html">create-cluster</a> command.</p>
5631
+ * <important>
5632
+ * <p>The VisibleToAllUsers parameter is no longer supported. By default, the value is set to <code>true</code>. Setting it to <code>false</code> now has no effect.</p>
5633
+ * </important>
5634
+ * <p>Set this value to <code>true</code> so that IAM principals in the Amazon Web Services account associated with the cluster can perform EMR actions on the cluster that their IAM policies allow. This value defaults to <code>true</code> for clusters created using the EMR API or the CLI <a href="https://docs.aws.amazon.com/cli/latest/reference/emr/create-cluster.html">create-cluster</a> command.</p>
5625
5635
  * <p>When set to <code>false</code>, only the IAM principal that created the cluster and the Amazon Web Services account root user can perform EMR actions for the cluster, regardless of the IAM permissions policies attached to other IAM principals. For more information, see <a href="https://docs.aws.amazon.com/emr/latest/ManagementGuide/security_iam_emr-with-iam.html#security_set_visible_to_all_users">Understanding the EMR Cluster VisibleToAllUsers Setting</a> in the <i>Amazon EMRManagement Guide</i>.</p>
5626
5636
  */
5627
5637
  VisibleToAllUsers?: boolean;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-emr",
3
3
  "description": "AWS SDK for JavaScript Emr Client for Node.js, Browser and React Native",
4
- "version": "3.47.2",
4
+ "version": "3.51.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -18,42 +18,48 @@
18
18
  "dependencies": {
19
19
  "@aws-crypto/sha256-browser": "2.0.0",
20
20
  "@aws-crypto/sha256-js": "2.0.0",
21
- "@aws-sdk/client-sts": "3.47.2",
22
- "@aws-sdk/config-resolver": "3.47.2",
23
- "@aws-sdk/credential-provider-node": "3.47.2",
24
- "@aws-sdk/fetch-http-handler": "3.47.2",
25
- "@aws-sdk/hash-node": "3.47.2",
26
- "@aws-sdk/invalid-dependency": "3.47.2",
27
- "@aws-sdk/middleware-content-length": "3.47.2",
28
- "@aws-sdk/middleware-host-header": "3.47.2",
29
- "@aws-sdk/middleware-logger": "3.47.2",
30
- "@aws-sdk/middleware-retry": "3.47.2",
31
- "@aws-sdk/middleware-serde": "3.47.2",
32
- "@aws-sdk/middleware-signing": "3.47.2",
33
- "@aws-sdk/middleware-stack": "3.47.2",
34
- "@aws-sdk/middleware-user-agent": "3.47.2",
35
- "@aws-sdk/node-config-provider": "3.47.2",
36
- "@aws-sdk/node-http-handler": "3.47.2",
37
- "@aws-sdk/protocol-http": "3.47.2",
38
- "@aws-sdk/smithy-client": "3.47.2",
39
- "@aws-sdk/types": "3.47.1",
40
- "@aws-sdk/url-parser": "3.47.2",
41
- "@aws-sdk/util-base64-browser": "3.47.1",
42
- "@aws-sdk/util-base64-node": "3.47.2",
43
- "@aws-sdk/util-body-length-browser": "3.47.1",
44
- "@aws-sdk/util-body-length-node": "3.47.1",
45
- "@aws-sdk/util-defaults-mode-browser": "3.47.2",
46
- "@aws-sdk/util-defaults-mode-node": "3.47.2",
47
- "@aws-sdk/util-user-agent-browser": "3.47.2",
48
- "@aws-sdk/util-user-agent-node": "3.47.2",
49
- "@aws-sdk/util-utf8-browser": "3.47.1",
50
- "@aws-sdk/util-utf8-node": "3.47.2",
51
- "@aws-sdk/util-waiter": "3.47.2",
21
+ "@aws-sdk/client-sts": "3.51.0",
22
+ "@aws-sdk/config-resolver": "3.51.0",
23
+ "@aws-sdk/credential-provider-node": "3.51.0",
24
+ "@aws-sdk/fetch-http-handler": "3.50.0",
25
+ "@aws-sdk/hash-node": "3.50.0",
26
+ "@aws-sdk/invalid-dependency": "3.50.0",
27
+ "@aws-sdk/middleware-content-length": "3.50.0",
28
+ "@aws-sdk/middleware-host-header": "3.50.0",
29
+ "@aws-sdk/middleware-logger": "3.50.0",
30
+ "@aws-sdk/middleware-retry": "3.51.0",
31
+ "@aws-sdk/middleware-serde": "3.50.0",
32
+ "@aws-sdk/middleware-signing": "3.50.0",
33
+ "@aws-sdk/middleware-stack": "3.50.0",
34
+ "@aws-sdk/middleware-user-agent": "3.50.0",
35
+ "@aws-sdk/node-config-provider": "3.51.0",
36
+ "@aws-sdk/node-http-handler": "3.50.0",
37
+ "@aws-sdk/protocol-http": "3.50.0",
38
+ "@aws-sdk/smithy-client": "3.50.0",
39
+ "@aws-sdk/types": "3.50.0",
40
+ "@aws-sdk/url-parser": "3.50.0",
41
+ "@aws-sdk/util-base64-browser": "3.49.0",
42
+ "@aws-sdk/util-base64-node": "3.49.0",
43
+ "@aws-sdk/util-body-length-browser": "3.49.0",
44
+ "@aws-sdk/util-body-length-node": "3.49.0",
45
+ "@aws-sdk/util-defaults-mode-browser": "3.50.0",
46
+ "@aws-sdk/util-defaults-mode-node": "3.51.0",
47
+ "@aws-sdk/util-user-agent-browser": "3.50.0",
48
+ "@aws-sdk/util-user-agent-node": "3.51.0",
49
+ "@aws-sdk/util-utf8-browser": "3.49.0",
50
+ "@aws-sdk/util-utf8-node": "3.49.0",
51
+ "@aws-sdk/util-waiter": "3.50.0",
52
52
  "tslib": "^2.3.0"
53
53
  },
54
54
  "devDependencies": {
55
- "@aws-sdk/service-client-documentation-generator": "3.47.1",
56
- "@types/node": "^12.7.5"
55
+ "@aws-sdk/service-client-documentation-generator": "3.49.0",
56
+ "@tsconfig/recommended": "1.0.1",
57
+ "@types/node": "^12.7.5",
58
+ "concurrently": "7.0.0",
59
+ "downlevel-dts": "0.7.0",
60
+ "rimraf": "3.0.2",
61
+ "typedoc": "0.19.2",
62
+ "typescript": "~4.3.5"
57
63
  },
58
64
  "engines": {
59
65
  "node": ">=12.0.0"