@aws-sdk/client-ecs 3.37.0 → 3.41.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 +45 -0
- package/README.md +7 -7
- package/dist-cjs/commands/index.js +55 -0
- package/dist-cjs/endpoints.js +145 -23
- package/dist-cjs/index.js +5 -66
- package/dist-cjs/models/models_0.js +51 -5
- package/dist-cjs/pagination/index.js +12 -0
- package/dist-cjs/protocols/Aws_json1_1.js +58 -0
- package/dist-cjs/runtimeConfig.browser.js +6 -3
- package/dist-cjs/runtimeConfig.js +5 -3
- package/dist-cjs/waiters/index.js +6 -0
- package/dist-es/commands/index.js +52 -0
- package/dist-es/endpoints.js +145 -23
- package/dist-es/index.js +5 -66
- package/dist-es/models/models_0.js +40 -0
- package/dist-es/pagination/index.js +9 -0
- package/dist-es/protocols/Aws_json1_1.js +55 -1
- package/dist-es/runtimeConfig.browser.js +3 -2
- package/dist-es/runtimeConfig.js +3 -3
- package/dist-es/waiters/index.js +3 -0
- package/dist-types/ECS.d.ts +147 -152
- package/dist-types/ECSClient.d.ts +15 -7
- package/dist-types/commands/CreateCapacityProviderCommand.d.ts +5 -5
- package/dist-types/commands/CreateClusterCommand.d.ts +5 -5
- package/dist-types/commands/CreateServiceCommand.d.ts +52 -51
- package/dist-types/commands/CreateTaskSetCommand.d.ts +1 -1
- package/dist-types/commands/DeleteAccountSettingCommand.d.ts +1 -1
- package/dist-types/commands/DeleteAttributesCommand.d.ts +1 -1
- package/dist-types/commands/DeleteCapacityProviderCommand.d.ts +4 -4
- package/dist-types/commands/DeleteClusterCommand.d.ts +5 -6
- package/dist-types/commands/DeleteServiceCommand.d.ts +2 -2
- package/dist-types/commands/DeleteTaskSetCommand.d.ts +1 -1
- package/dist-types/commands/DeregisterContainerInstanceCommand.d.ts +8 -7
- package/dist-types/commands/DeregisterTaskDefinitionCommand.d.ts +8 -9
- package/dist-types/commands/DescribeCapacityProvidersCommand.d.ts +1 -1
- package/dist-types/commands/DescribeClustersCommand.d.ts +1 -1
- package/dist-types/commands/DescribeContainerInstancesCommand.d.ts +1 -1
- package/dist-types/commands/DescribeServicesCommand.d.ts +1 -1
- package/dist-types/commands/DescribeTaskDefinitionCommand.d.ts +1 -1
- package/dist-types/commands/DescribeTaskSetsCommand.d.ts +1 -1
- package/dist-types/commands/DescribeTasksCommand.d.ts +1 -1
- package/dist-types/commands/DiscoverPollEndpointCommand.d.ts +2 -3
- package/dist-types/commands/ExecuteCommandCommand.d.ts +1 -1
- package/dist-types/commands/ListAccountSettingsCommand.d.ts +1 -1
- package/dist-types/commands/ListAttributesCommand.d.ts +4 -4
- package/dist-types/commands/ListClustersCommand.d.ts +1 -1
- package/dist-types/commands/ListContainerInstancesCommand.d.ts +1 -1
- package/dist-types/commands/ListServicesCommand.d.ts +1 -1
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
- package/dist-types/commands/ListTaskDefinitionFamiliesCommand.d.ts +7 -7
- package/dist-types/commands/ListTaskDefinitionsCommand.d.ts +1 -1
- package/dist-types/commands/ListTasksCommand.d.ts +1 -1
- package/dist-types/commands/PutAccountSettingCommand.d.ts +6 -6
- package/dist-types/commands/PutAccountSettingDefaultCommand.d.ts +1 -1
- package/dist-types/commands/PutAttributesCommand.d.ts +3 -3
- package/dist-types/commands/PutClusterCapacityProvidersCommand.d.ts +7 -7
- package/dist-types/commands/RegisterContainerInstanceCommand.d.ts +3 -4
- package/dist-types/commands/RegisterTaskDefinitionCommand.d.ts +2 -2
- package/dist-types/commands/RunTaskCommand.d.ts +6 -6
- package/dist-types/commands/StartTaskCommand.d.ts +1 -1
- package/dist-types/commands/StopTaskCommand.d.ts +1 -1
- package/dist-types/commands/SubmitAttachmentStateChangesCommand.d.ts +2 -3
- package/dist-types/commands/SubmitContainerStateChangeCommand.d.ts +2 -3
- package/dist-types/commands/SubmitTaskStateChangeCommand.d.ts +2 -3
- package/dist-types/commands/TagResourceCommand.d.ts +3 -3
- package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UpdateCapacityProviderCommand.d.ts +1 -1
- package/dist-types/commands/UpdateClusterCommand.d.ts +1 -1
- package/dist-types/commands/UpdateClusterSettingsCommand.d.ts +1 -1
- package/dist-types/commands/UpdateContainerAgentCommand.d.ts +4 -4
- package/dist-types/commands/UpdateContainerInstancesStateCommand.d.ts +6 -6
- package/dist-types/commands/UpdateServiceCommand.d.ts +16 -16
- package/dist-types/commands/UpdateServicePrimaryTaskSetCommand.d.ts +1 -1
- package/dist-types/commands/UpdateTaskSetCommand.d.ts +1 -1
- package/dist-types/commands/index.d.ts +52 -0
- package/dist-types/index.d.ts +5 -66
- package/dist-types/models/models_0.d.ts +1132 -910
- package/dist-types/pagination/index.d.ts +9 -0
- package/dist-types/runtimeConfig.browser.d.ts +2 -0
- package/dist-types/runtimeConfig.d.ts +2 -0
- package/dist-types/runtimeConfig.native.d.ts +2 -0
- package/dist-types/ts3.4/ECSClient.d.ts +4 -0
- package/dist-types/ts3.4/commands/index.d.ts +52 -0
- package/dist-types/ts3.4/index.d.ts +5 -66
- package/dist-types/ts3.4/models/models_0.d.ts +75 -0
- package/dist-types/ts3.4/pagination/index.d.ts +9 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
- package/dist-types/ts3.4/waiters/index.d.ts +3 -0
- package/dist-types/waiters/index.d.ts +3 -0
- package/package.json +27 -27
|
@@ -6014,7 +6014,7 @@ var serializeAws_json1_1RegisterContainerInstanceRequest = function (input, cont
|
|
|
6014
6014
|
input.versionInfo !== null && { versionInfo: serializeAws_json1_1VersionInfo(input.versionInfo, context) }));
|
|
6015
6015
|
};
|
|
6016
6016
|
var serializeAws_json1_1RegisterTaskDefinitionRequest = function (input, context) {
|
|
6017
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.containerDefinitions !== undefined &&
|
|
6017
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.containerDefinitions !== undefined &&
|
|
6018
6018
|
input.containerDefinitions !== null && {
|
|
6019
6019
|
containerDefinitions: serializeAws_json1_1ContainerDefinitions(input.containerDefinitions, context),
|
|
6020
6020
|
})), (input.cpu !== undefined && input.cpu !== null && { cpu: input.cpu })), (input.ephemeralStorage !== undefined &&
|
|
@@ -6033,6 +6033,9 @@ var serializeAws_json1_1RegisterTaskDefinitionRequest = function (input, context
|
|
|
6033
6033
|
})), (input.requiresCompatibilities !== undefined &&
|
|
6034
6034
|
input.requiresCompatibilities !== null && {
|
|
6035
6035
|
requiresCompatibilities: serializeAws_json1_1CompatibilityList(input.requiresCompatibilities, context),
|
|
6036
|
+
})), (input.runtimePlatform !== undefined &&
|
|
6037
|
+
input.runtimePlatform !== null && {
|
|
6038
|
+
runtimePlatform: serializeAws_json1_1RuntimePlatform(input.runtimePlatform, context),
|
|
6036
6039
|
})), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1Tags(input.tags, context) })), (input.taskRoleArn !== undefined && input.taskRoleArn !== null && { taskRoleArn: input.taskRoleArn })), (input.volumes !== undefined &&
|
|
6037
6040
|
input.volumes !== null && { volumes: serializeAws_json1_1VolumeList(input.volumes, context) }));
|
|
6038
6041
|
};
|
|
@@ -6090,6 +6093,11 @@ var serializeAws_json1_1RunTaskRequest = function (input, context) {
|
|
|
6090
6093
|
input.platformVersion !== null && { platformVersion: input.platformVersion })), (input.propagateTags !== undefined && input.propagateTags !== null && { propagateTags: input.propagateTags })), (input.referenceId !== undefined && input.referenceId !== null && { referenceId: input.referenceId })), (input.startedBy !== undefined && input.startedBy !== null && { startedBy: input.startedBy })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1Tags(input.tags, context) })), (input.taskDefinition !== undefined &&
|
|
6091
6094
|
input.taskDefinition !== null && { taskDefinition: input.taskDefinition }));
|
|
6092
6095
|
};
|
|
6096
|
+
var serializeAws_json1_1RuntimePlatform = function (input, context) {
|
|
6097
|
+
return __assign(__assign({}, (input.cpuArchitecture !== undefined &&
|
|
6098
|
+
input.cpuArchitecture !== null && { cpuArchitecture: input.cpuArchitecture })), (input.operatingSystemFamily !== undefined &&
|
|
6099
|
+
input.operatingSystemFamily !== null && { operatingSystemFamily: input.operatingSystemFamily }));
|
|
6100
|
+
};
|
|
6093
6101
|
var serializeAws_json1_1Scale = function (input, context) {
|
|
6094
6102
|
return __assign(__assign({}, (input.unit !== undefined && input.unit !== null && { unit: input.unit })), (input.value !== undefined && input.value !== null && { value: __serializeFloat(input.value) }));
|
|
6095
6103
|
};
|
|
@@ -6799,6 +6807,9 @@ var deserializeAws_json1_1ContainerInstance = function (output, context) {
|
|
|
6799
6807
|
capacityProviderName: __expectString(output.capacityProviderName),
|
|
6800
6808
|
containerInstanceArn: __expectString(output.containerInstanceArn),
|
|
6801
6809
|
ec2InstanceId: __expectString(output.ec2InstanceId),
|
|
6810
|
+
healthStatus: output.healthStatus !== undefined && output.healthStatus !== null
|
|
6811
|
+
? deserializeAws_json1_1ContainerInstanceHealthStatus(output.healthStatus, context)
|
|
6812
|
+
: undefined,
|
|
6802
6813
|
pendingTasksCount: __expectInt32(output.pendingTasksCount),
|
|
6803
6814
|
registeredAt: output.registeredAt !== undefined && output.registeredAt !== null
|
|
6804
6815
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.registeredAt)))
|
|
@@ -6819,6 +6830,14 @@ var deserializeAws_json1_1ContainerInstance = function (output, context) {
|
|
|
6819
6830
|
: undefined,
|
|
6820
6831
|
};
|
|
6821
6832
|
};
|
|
6833
|
+
var deserializeAws_json1_1ContainerInstanceHealthStatus = function (output, context) {
|
|
6834
|
+
return {
|
|
6835
|
+
details: output.details !== undefined && output.details !== null
|
|
6836
|
+
? deserializeAws_json1_1InstanceHealthCheckResultList(output.details, context)
|
|
6837
|
+
: undefined,
|
|
6838
|
+
overallStatus: __expectString(output.overallStatus),
|
|
6839
|
+
};
|
|
6840
|
+
};
|
|
6822
6841
|
var deserializeAws_json1_1ContainerInstances = function (output, context) {
|
|
6823
6842
|
return (output || [])
|
|
6824
6843
|
.filter(function (e) { return e != null; })
|
|
@@ -6955,6 +6974,7 @@ var deserializeAws_json1_1Deployment = function (output, context) {
|
|
|
6955
6974
|
? deserializeAws_json1_1NetworkConfiguration(output.networkConfiguration, context)
|
|
6956
6975
|
: undefined,
|
|
6957
6976
|
pendingCount: __expectInt32(output.pendingCount),
|
|
6977
|
+
platformFamily: __expectString(output.platformFamily),
|
|
6958
6978
|
platformVersion: __expectString(output.platformVersion),
|
|
6959
6979
|
rolloutState: __expectString(output.rolloutState),
|
|
6960
6980
|
rolloutStateReason: __expectString(output.rolloutStateReason),
|
|
@@ -7339,6 +7359,28 @@ var deserializeAws_json1_1InferenceAccelerators = function (output, context) {
|
|
|
7339
7359
|
return deserializeAws_json1_1InferenceAccelerator(entry, context);
|
|
7340
7360
|
});
|
|
7341
7361
|
};
|
|
7362
|
+
var deserializeAws_json1_1InstanceHealthCheckResult = function (output, context) {
|
|
7363
|
+
return {
|
|
7364
|
+
lastStatusChange: output.lastStatusChange !== undefined && output.lastStatusChange !== null
|
|
7365
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastStatusChange)))
|
|
7366
|
+
: undefined,
|
|
7367
|
+
lastUpdated: output.lastUpdated !== undefined && output.lastUpdated !== null
|
|
7368
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdated)))
|
|
7369
|
+
: undefined,
|
|
7370
|
+
status: __expectString(output.status),
|
|
7371
|
+
type: __expectString(output.type),
|
|
7372
|
+
};
|
|
7373
|
+
};
|
|
7374
|
+
var deserializeAws_json1_1InstanceHealthCheckResultList = function (output, context) {
|
|
7375
|
+
return (output || [])
|
|
7376
|
+
.filter(function (e) { return e != null; })
|
|
7377
|
+
.map(function (entry) {
|
|
7378
|
+
if (entry === null) {
|
|
7379
|
+
return null;
|
|
7380
|
+
}
|
|
7381
|
+
return deserializeAws_json1_1InstanceHealthCheckResult(entry, context);
|
|
7382
|
+
});
|
|
7383
|
+
};
|
|
7342
7384
|
var deserializeAws_json1_1InvalidParameterException = function (output, context) {
|
|
7343
7385
|
return {
|
|
7344
7386
|
message: __expectString(output.message),
|
|
@@ -7782,6 +7824,12 @@ var deserializeAws_json1_1RunTaskResponse = function (output, context) {
|
|
|
7782
7824
|
: undefined,
|
|
7783
7825
|
};
|
|
7784
7826
|
};
|
|
7827
|
+
var deserializeAws_json1_1RuntimePlatform = function (output, context) {
|
|
7828
|
+
return {
|
|
7829
|
+
cpuArchitecture: __expectString(output.cpuArchitecture),
|
|
7830
|
+
operatingSystemFamily: __expectString(output.operatingSystemFamily),
|
|
7831
|
+
};
|
|
7832
|
+
};
|
|
7785
7833
|
var deserializeAws_json1_1Scale = function (output, context) {
|
|
7786
7834
|
return {
|
|
7787
7835
|
unit: __expectString(output.unit),
|
|
@@ -7849,6 +7897,7 @@ var deserializeAws_json1_1Service = function (output, context) {
|
|
|
7849
7897
|
placementStrategy: output.placementStrategy !== undefined && output.placementStrategy !== null
|
|
7850
7898
|
? deserializeAws_json1_1PlacementStrategies(output.placementStrategy, context)
|
|
7851
7899
|
: undefined,
|
|
7900
|
+
platformFamily: __expectString(output.platformFamily),
|
|
7852
7901
|
platformVersion: __expectString(output.platformVersion),
|
|
7853
7902
|
propagateTags: __expectString(output.propagateTags),
|
|
7854
7903
|
roleArn: __expectString(output.roleArn),
|
|
@@ -8095,6 +8144,7 @@ var deserializeAws_json1_1Task = function (output, context) {
|
|
|
8095
8144
|
overrides: output.overrides !== undefined && output.overrides !== null
|
|
8096
8145
|
? deserializeAws_json1_1TaskOverride(output.overrides, context)
|
|
8097
8146
|
: undefined,
|
|
8147
|
+
platformFamily: __expectString(output.platformFamily),
|
|
8098
8148
|
platformVersion: __expectString(output.platformVersion),
|
|
8099
8149
|
pullStartedAt: output.pullStartedAt !== undefined && output.pullStartedAt !== null
|
|
8100
8150
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.pullStartedAt)))
|
|
@@ -8161,6 +8211,9 @@ var deserializeAws_json1_1TaskDefinition = function (output, context) {
|
|
|
8161
8211
|
? deserializeAws_json1_1CompatibilityList(output.requiresCompatibilities, context)
|
|
8162
8212
|
: undefined,
|
|
8163
8213
|
revision: __expectInt32(output.revision),
|
|
8214
|
+
runtimePlatform: output.runtimePlatform !== undefined && output.runtimePlatform !== null
|
|
8215
|
+
? deserializeAws_json1_1RuntimePlatform(output.runtimePlatform, context)
|
|
8216
|
+
: undefined,
|
|
8164
8217
|
status: __expectString(output.status),
|
|
8165
8218
|
taskDefinitionArn: __expectString(output.taskDefinitionArn),
|
|
8166
8219
|
taskRoleArn: __expectString(output.taskRoleArn),
|
|
@@ -8232,6 +8285,7 @@ var deserializeAws_json1_1TaskSet = function (output, context) {
|
|
|
8232
8285
|
? deserializeAws_json1_1NetworkConfiguration(output.networkConfiguration, context)
|
|
8233
8286
|
: undefined,
|
|
8234
8287
|
pendingCount: __expectInt32(output.pendingCount),
|
|
8288
|
+
platformFamily: __expectString(output.platformFamily),
|
|
8235
8289
|
platformVersion: __expectString(output.platformVersion),
|
|
8236
8290
|
runningCount: __expectInt32(output.runningCount),
|
|
8237
8291
|
scale: output.scale !== undefined && output.scale !== null
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { __assign } from "tslib";
|
|
2
2
|
import packageInfo from "../package.json";
|
|
3
3
|
import { Sha256 } from "@aws-crypto/sha256-browser";
|
|
4
|
+
import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws-sdk/config-resolver";
|
|
4
5
|
import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
|
|
5
6
|
import { invalidProvider } from "@aws-sdk/invalid-dependency";
|
|
6
7
|
import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry";
|
|
@@ -10,7 +11,7 @@ import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
|
|
|
10
11
|
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
|
|
11
12
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
12
13
|
export var getRuntimeConfig = function (config) {
|
|
13
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
14
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
14
15
|
var clientSharedValues = getSharedRuntimeConfig(config);
|
|
15
|
-
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new FetchHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return Promise.resolve(DEFAULT_RETRY_MODE); }), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Sha256, streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector,
|
|
16
|
+
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new FetchHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return Promise.resolve(DEFAULT_RETRY_MODE); }), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Sha256, streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (function () { return Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT); }), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (function () { return Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT); }), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
|
|
16
17
|
};
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __assign } from "tslib";
|
|
2
2
|
import packageInfo from "../package.json";
|
|
3
3
|
import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
|
|
4
|
-
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS } from "@aws-sdk/config-resolver";
|
|
4
|
+
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@aws-sdk/config-resolver";
|
|
5
5
|
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
|
|
6
6
|
import { Hash } from "@aws-sdk/hash-node";
|
|
7
7
|
import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@aws-sdk/middleware-retry";
|
|
@@ -14,8 +14,8 @@ import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
|
|
|
14
14
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
15
15
|
import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
|
|
16
16
|
export var getRuntimeConfig = function (config) {
|
|
17
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
17
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
18
18
|
emitWarningIfUnsupportedVersion(process.version);
|
|
19
19
|
var clientSharedValues = getSharedRuntimeConfig(config);
|
|
20
|
-
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new NodeHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector,
|
|
20
|
+
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new NodeHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
|
|
21
21
|
};
|