@aws-sdk/client-auto-scaling 3.1076.0 → 3.1077.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/dist-cjs/index.js CHANGED
@@ -10,9 +10,10 @@ const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CON
10
10
  const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
11
11
  const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
12
12
  const { defaultProvider } = require("@aws-sdk/credential-provider-node");
13
- const { toUtf8, fromUtf8, toBase64, fromBase64, Hash, calculateBodyLength } = require("@smithy/core/serde");
13
+ const { toUtf8, fromUtf8, toBase64, fromBase64, calculateBodyLength } = require("@smithy/core/serde");
14
14
  const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");
15
15
  const { AwsQueryProtocol } = require("@aws-sdk/core/protocols");
16
+ const { Sha256 } = require("@smithy/core/checksum");
16
17
 
17
18
  const defaultAutoScalingHttpAuthSchemeParametersProvider = async (config, context, input) => {
18
19
  return {
@@ -67,7 +68,7 @@ const commonParams = {
67
68
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
68
69
  };
69
70
 
70
- var version = "3.1075.0";
71
+ var version = "3.1076.0";
71
72
  var packageInfo = {
72
73
  version: version};
73
74
 
@@ -2235,6 +2236,7 @@ const getRuntimeConfig$1 = (config) => {
2235
2236
  serviceTarget: "AutoScaling_2011_01_01",
2236
2237
  },
2237
2238
  serviceId: config?.serviceId ?? "Auto Scaling",
2239
+ sha256: config?.sha256 ?? Sha256,
2238
2240
  urlParser: config?.urlParser ?? parseUrl,
2239
2241
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,
2240
2242
  utf8Encoder: config?.utf8Encoder ?? toUtf8,
@@ -2268,7 +2270,6 @@ const getRuntimeConfig = (config) => {
2268
2270
  ...NODE_RETRY_MODE_CONFIG_OPTIONS,
2269
2271
  default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
2270
2272
  }, config),
2271
- sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
2272
2273
  streamCollector: config?.streamCollector ?? streamCollector,
2273
2274
  useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
2274
2275
  useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
@@ -3446,6 +3447,7 @@ const ScalingActivityStatusCode = {
3446
3447
  const CapacityDistributionStrategy = {
3447
3448
  BALANCED_BEST_EFFORT: "balanced-best-effort",
3448
3449
  BALANCED_ONLY: "balanced-only",
3450
+ RESERVATIONS_THEN_BALANCED: "reservations-then-balanced",
3449
3451
  };
3450
3452
  const ImpairedZoneHealthCheckBehavior = {
3451
3453
  IgnoreUnhealthy: "IgnoreUnhealthy",
@@ -39,6 +39,7 @@ export const ScalingActivityStatusCode = {
39
39
  export const CapacityDistributionStrategy = {
40
40
  BALANCED_BEST_EFFORT: "balanced-best-effort",
41
41
  BALANCED_ONLY: "balanced-only",
42
+ RESERVATIONS_THEN_BALANCED: "reservations-then-balanced",
42
43
  };
43
44
  export const ImpairedZoneHealthCheckBehavior = {
44
45
  IgnoreUnhealthy: "IgnoreUnhealthy",
@@ -1,5 +1,4 @@
1
1
  import packageInfo from "../package.json";
2
- import { Sha256 } from "@aws-crypto/sha256-browser";
3
2
  import { createDefaultUserAgentProvider } from "@aws-sdk/core/client";
4
3
  import { invalidProvider, loadConfigsForDefaultMode } from "@smithy/core/client";
5
4
  import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT, resolveDefaultsModeConfig, } from "@smithy/core/config";
@@ -23,7 +22,6 @@ export const getRuntimeConfig = (config) => {
23
22
  region: config?.region ?? invalidProvider("Region is missing"),
24
23
  requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
25
24
  retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
26
- sha256: config?.sha256 ?? Sha256,
27
25
  streamCollector: config?.streamCollector ?? streamCollector,
28
26
  useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
29
27
  useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
@@ -5,7 +5,7 @@ import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credentia
5
5
  import { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } from "@smithy/core/client";
6
6
  import { loadConfig as loadNodeConfig, NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, resolveDefaultsModeConfig, } from "@smithy/core/config";
7
7
  import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@smithy/core/retry";
8
- import { calculateBodyLength, Hash } from "@smithy/core/serde";
8
+ import { calculateBodyLength } from "@smithy/core/serde";
9
9
  import { NodeHttpHandler as RequestHandler, streamCollector } from "@smithy/node-http-handler";
10
10
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
11
11
  export const getRuntimeConfig = (config) => {
@@ -35,7 +35,6 @@ export const getRuntimeConfig = (config) => {
35
35
  ...NODE_RETRY_MODE_CONFIG_OPTIONS,
36
36
  default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
37
37
  }, config),
38
- sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
39
38
  streamCollector: config?.streamCollector ?? streamCollector,
40
39
  useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
41
40
  useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
@@ -1,4 +1,3 @@
1
- import { Sha256 } from "@aws-crypto/sha256-js";
2
1
  import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
3
2
  export const getRuntimeConfig = (config) => {
4
3
  const browserDefaults = getBrowserRuntimeConfig(config);
@@ -6,6 +5,5 @@ export const getRuntimeConfig = (config) => {
6
5
  ...browserDefaults,
7
6
  ...config,
8
7
  runtime: "react-native",
9
- sha256: config?.sha256 ?? Sha256,
10
8
  };
11
9
  };
@@ -1,5 +1,6 @@
1
1
  import { AwsSdkSigV4Signer } from "@aws-sdk/core/httpAuthSchemes";
2
2
  import { AwsQueryProtocol } from "@aws-sdk/core/protocols";
3
+ import { Sha256 } from "@smithy/core/checksum";
3
4
  import { NoOpLogger } from "@smithy/core/client";
4
5
  import { parseUrl } from "@smithy/core/protocols";
5
6
  import { fromBase64, fromUtf8, toBase64, toUtf8 } from "@smithy/core/serde";
@@ -32,6 +33,7 @@ export const getRuntimeConfig = (config) => {
32
33
  serviceTarget: "AutoScaling_2011_01_01",
33
34
  },
34
35
  serviceId: config?.serviceId ?? "Auto Scaling",
36
+ sha256: config?.sha256 ?? Sha256,
35
37
  urlParser: config?.urlParser ?? parseUrl,
36
38
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,
37
39
  utf8Encoder: config?.utf8Encoder ?? toUtf8,
@@ -226,7 +226,7 @@ declare const CreateAutoScalingGroupCommand_base: {
226
226
  * MaxHealthyPercentage: Number("int"),
227
227
  * },
228
228
  * AvailabilityZoneDistribution: { // AvailabilityZoneDistribution
229
- * CapacityDistributionStrategy: "balanced-only" || "balanced-best-effort",
229
+ * CapacityDistributionStrategy: "balanced-only" || "balanced-best-effort" || "reservations-then-balanced",
230
230
  * },
231
231
  * AvailabilityZoneImpairmentPolicy: { // AvailabilityZoneImpairmentPolicy
232
232
  * ZonalShiftEnabled: true || false,
@@ -268,7 +268,7 @@ declare const DescribeAutoScalingGroupsCommand_base: {
268
268
  * // },
269
269
  * // DeletionProtection: "none" || "prevent-force-deletion" || "prevent-all-deletion",
270
270
  * // AvailabilityZoneDistribution: { // AvailabilityZoneDistribution
271
- * // CapacityDistributionStrategy: "balanced-only" || "balanced-best-effort",
271
+ * // CapacityDistributionStrategy: "balanced-only" || "balanced-best-effort" || "reservations-then-balanced",
272
272
  * // },
273
273
  * // AvailabilityZoneImpairmentPolicy: { // AvailabilityZoneImpairmentPolicy
274
274
  * // ZonalShiftEnabled: true || false,
@@ -221,7 +221,7 @@ declare const UpdateAutoScalingGroupCommand_base: {
221
221
  * MaxHealthyPercentage: Number("int"),
222
222
  * },
223
223
  * AvailabilityZoneDistribution: { // AvailabilityZoneDistribution
224
- * CapacityDistributionStrategy: "balanced-only" || "balanced-best-effort",
224
+ * CapacityDistributionStrategy: "balanced-only" || "balanced-best-effort" || "reservations-then-balanced",
225
225
  * },
226
226
  * AvailabilityZoneImpairmentPolicy: { // AvailabilityZoneImpairmentPolicy
227
227
  * ZonalShiftEnabled: true || false,
@@ -75,6 +75,7 @@ export type ScalingActivityStatusCode = (typeof ScalingActivityStatusCode)[keyof
75
75
  export declare const CapacityDistributionStrategy: {
76
76
  readonly BALANCED_BEST_EFFORT: "balanced-best-effort";
77
77
  readonly BALANCED_ONLY: "balanced-only";
78
+ readonly RESERVATIONS_THEN_BALANCED: "reservations-then-balanced";
78
79
  };
79
80
  /**
80
81
  * @public
@@ -538,6 +538,10 @@ export interface AvailabilityZoneDistribution {
538
538
  * <p>
539
539
  * <code>balanced-best-effort</code> - If launches fail in an Availability Zone, Auto Scaling will attempt to launch in another healthy Availability Zone instead.</p>
540
540
  * </li>
541
+ * <li>
542
+ * <p>
543
+ * <code>reservations-then-balanced</code> - Auto Scaling will first attempt to launch into your Capacity Reservations, and then balance any remaining capacity across the healthy Availability Zones.</p>
544
+ * </li>
541
545
  * </ul>
542
546
  * @public
543
547
  */
@@ -13,7 +13,6 @@ export declare const getRuntimeConfig: (config: AutoScalingClientConfig) => {
13
13
  region: string | import("@smithy/types").Provider<any>;
14
14
  requestHandler: import("@smithy/core/protocols").HttpHandler<any> | RequestHandler;
15
15
  retryMode: string | import("@smithy/types").Provider<string>;
16
- sha256: import("@smithy/types").HashConstructor;
17
16
  streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
18
17
  useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
19
18
  useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
@@ -24,6 +23,7 @@ export declare const getRuntimeConfig: (config: AutoScalingClientConfig) => {
24
23
  [setting: string]: unknown;
25
24
  };
26
25
  apiVersion: string;
26
+ sha256: import("@smithy/types").HashConstructor;
27
27
  urlParser: import("@smithy/types").UrlParser;
28
28
  base64Decoder: import("@smithy/types").Decoder;
29
29
  base64Encoder: (_input: Uint8Array | string) => string;
@@ -14,7 +14,6 @@ export declare const getRuntimeConfig: (config: AutoScalingClientConfig) => {
14
14
  region: string | import("@smithy/types").Provider<string>;
15
15
  requestHandler: RequestHandler | import("@smithy/core/protocols").HttpHandler<any>;
16
16
  retryMode: string | import("@smithy/types").Provider<string>;
17
- sha256: import("@smithy/types").HashConstructor;
18
17
  streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
19
18
  useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
20
19
  useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
@@ -26,6 +25,7 @@ export declare const getRuntimeConfig: (config: AutoScalingClientConfig) => {
26
25
  [setting: string]: unknown;
27
26
  };
28
27
  apiVersion: string;
28
+ sha256: import("@smithy/types").HashConstructor;
29
29
  urlParser: import("@smithy/types").UrlParser;
30
30
  base64Decoder: import("@smithy/types").Decoder;
31
31
  base64Encoder: (_input: Uint8Array | string) => string;
@@ -4,7 +4,6 @@ import type { AutoScalingClientConfig } from "./AutoScalingClient";
4
4
  */
5
5
  export declare const getRuntimeConfig: (config: AutoScalingClientConfig) => {
6
6
  runtime: string;
7
- sha256: import("@smithy/types").HashConstructor;
8
7
  requestHandler: import("@smithy/types").NodeHttpHandlerOptions | import("@smithy/types").FetchHttpHandlerOptions | Record<string, unknown> | import("@smithy/core/protocols").HttpHandler<any> | import("@smithy/fetch-http-handler").FetchHttpHandler;
9
8
  cacheMiddleware?: boolean;
10
9
  protocol: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | typeof import("@aws-sdk/core/protocols").AwsQueryProtocol;
@@ -13,6 +12,7 @@ export declare const getRuntimeConfig: (config: AutoScalingClientConfig) => {
13
12
  [setting: string]: unknown;
14
13
  };
15
14
  apiVersion: string;
15
+ sha256: import("@smithy/types").HashConstructor;
16
16
  urlParser: import("@smithy/types").UrlParser;
17
17
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
18
18
  streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
@@ -21,6 +21,7 @@ export declare const getRuntimeConfig: (config: AutoScalingClientConfig) => {
21
21
  defaultNamespace?: string;
22
22
  };
23
23
  serviceId: string;
24
+ sha256: import("@smithy/types").HashConstructor;
24
25
  urlParser: import("@smithy/types").UrlParser;
25
26
  utf8Decoder: import("@smithy/types").Decoder;
26
27
  utf8Encoder: (input: Uint8Array | string) => string;
@@ -47,6 +47,7 @@ export type ScalingActivityStatusCode =
47
47
  export declare const CapacityDistributionStrategy: {
48
48
  readonly BALANCED_BEST_EFFORT: "balanced-best-effort";
49
49
  readonly BALANCED_ONLY: "balanced-only";
50
+ readonly RESERVATIONS_THEN_BALANCED: "reservations-then-balanced";
50
51
  };
51
52
  export type CapacityDistributionStrategy =
52
53
  (typeof CapacityDistributionStrategy)[keyof typeof CapacityDistributionStrategy];
@@ -20,7 +20,6 @@ export declare const getRuntimeConfig: (config: AutoScalingClientConfig) => {
20
20
  | import("@smithy/core/protocols").HttpHandler<any>
21
21
  | RequestHandler;
22
22
  retryMode: string | import("@smithy/types").Provider<string>;
23
- sha256: import("@smithy/types").HashConstructor;
24
23
  streamCollector: (
25
24
  stream:
26
25
  | import("stream").Readable
@@ -42,6 +41,7 @@ export declare const getRuntimeConfig: (config: AutoScalingClientConfig) => {
42
41
  [setting: string]: unknown;
43
42
  };
44
43
  apiVersion: string;
44
+ sha256: import("@smithy/types").HashConstructor;
45
45
  urlParser: import("@smithy/types").UrlParser;
46
46
  base64Decoder: import("@smithy/types").Decoder;
47
47
  base64Encoder: (_input: Uint8Array | string) => string;
@@ -21,7 +21,6 @@ export declare const getRuntimeConfig: (config: AutoScalingClientConfig) => {
21
21
  | RequestHandler
22
22
  | import("@smithy/core/protocols").HttpHandler<any>;
23
23
  retryMode: string | import("@smithy/types").Provider<string>;
24
- sha256: import("@smithy/types").HashConstructor;
25
24
  streamCollector: (
26
25
  stream:
27
26
  | import("stream").Readable
@@ -42,6 +41,7 @@ export declare const getRuntimeConfig: (config: AutoScalingClientConfig) => {
42
41
  [setting: string]: unknown;
43
42
  };
44
43
  apiVersion: string;
44
+ sha256: import("@smithy/types").HashConstructor;
45
45
  urlParser: import("@smithy/types").UrlParser;
46
46
  base64Decoder: import("@smithy/types").Decoder;
47
47
  base64Encoder: (_input: Uint8Array | string) => string;
@@ -1,7 +1,6 @@
1
1
  import { AutoScalingClientConfig } from "./AutoScalingClient";
2
2
  export declare const getRuntimeConfig: (config: AutoScalingClientConfig) => {
3
3
  runtime: string;
4
- sha256: import("@smithy/types").HashConstructor;
5
4
  requestHandler:
6
5
  | import("@smithy/types").NodeHttpHandlerOptions
7
6
  | import("@smithy/types").FetchHttpHandlerOptions
@@ -18,6 +17,7 @@ export declare const getRuntimeConfig: (config: AutoScalingClientConfig) => {
18
17
  [setting: string]: unknown;
19
18
  };
20
19
  apiVersion: string;
20
+ sha256: import("@smithy/types").HashConstructor;
21
21
  urlParser: import("@smithy/types").UrlParser;
22
22
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
23
23
  streamCollector: (
@@ -24,6 +24,7 @@ export declare const getRuntimeConfig: (config: AutoScalingClientConfig) => {
24
24
  defaultNamespace?: string;
25
25
  };
26
26
  serviceId: string;
27
+ sha256: import("@smithy/types").HashConstructor;
27
28
  urlParser: import("@smithy/types").UrlParser;
28
29
  utf8Decoder: import("@smithy/types").Decoder;
29
30
  utf8Encoder: (input: Uint8Array | string) => string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-auto-scaling",
3
3
  "description": "AWS SDK for JavaScript Auto Scaling Client for Node.js, Browser and React Native",
4
- "version": "3.1076.0",
4
+ "version": "3.1077.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
7
7
  "build:cjs": "node ../../scripts/compilation/inline",
@@ -19,14 +19,12 @@
19
19
  "module": "./dist-es/index.js",
20
20
  "sideEffects": false,
21
21
  "dependencies": {
22
- "@aws-crypto/sha256-browser": "5.2.0",
23
- "@aws-crypto/sha256-js": "5.2.0",
24
- "@aws-sdk/core": "^3.974.24",
25
- "@aws-sdk/credential-provider-node": "^3.972.59",
22
+ "@aws-sdk/core": "^3.974.25",
23
+ "@aws-sdk/credential-provider-node": "^3.972.60",
26
24
  "@aws-sdk/types": "^3.973.14",
27
- "@smithy/core": "^3.27.0",
28
- "@smithy/fetch-http-handler": "^5.6.0",
29
- "@smithy/node-http-handler": "^4.9.0",
25
+ "@smithy/core": "^3.28.0",
26
+ "@smithy/fetch-http-handler": "^5.6.1",
27
+ "@smithy/node-http-handler": "^4.9.1",
30
28
  "@smithy/types": "^4.15.0",
31
29
  "tslib": "^2.6.2"
32
30
  },