@rio-cloud/cdk-v2-constructs 6.12.2 → 6.12.4
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/.jsii +23 -22
- package/docs/changelog.md +9 -0
- package/lib/datadogv2/datadog-shared-secrets.js +2 -1
- package/lib/datadogv2/secret-locator-custom-resource/on-create.cjs +121 -110
- package/lib/datadogv2/secret-locator-custom-resource/on-create.js +9 -3
- package/lib/fargate/codedeploy-custom-resources/create-deployment-is-complete.cjs +79 -75
- package/lib/fargate/codedeploy-custom-resources/create-deployment-on-create.cjs +79 -75
- package/lib/fargate/codedeploy-custom-resources/run-monitoring-test-suite-runner.cjs +309 -83
- package/node_modules/@aws-sdk/client-cloudformation/package.json +14 -14
- package/node_modules/@aws-sdk/client-codedeploy/package.json +14 -14
- package/node_modules/@aws-sdk/client-ecs/README.md +25 -1
- package/node_modules/@aws-sdk/client-ecs/dist-cjs/index.js +255 -11
- package/node_modules/@aws-sdk/client-ecs/dist-es/ECS.js +6 -0
- package/node_modules/@aws-sdk/client-ecs/dist-es/commands/DescribeServiceDeploymentsCommand.js +22 -0
- package/node_modules/@aws-sdk/client-ecs/dist-es/commands/DescribeServiceRevisionsCommand.js +22 -0
- package/node_modules/@aws-sdk/client-ecs/dist-es/commands/ListServiceDeploymentsCommand.js +22 -0
- package/node_modules/@aws-sdk/client-ecs/dist-es/commands/index.js +3 -0
- package/node_modules/@aws-sdk/client-ecs/dist-es/models/models_0.js +17 -24
- package/node_modules/@aws-sdk/client-ecs/dist-es/models/models_1.js +25 -1
- package/node_modules/@aws-sdk/client-ecs/dist-es/protocols/Aws_json1_1.js +178 -1
- package/node_modules/@aws-sdk/client-ecs/dist-types/ECS.d.ts +21 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/ECSClient.d.ts +5 -2
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/CreateCapacityProviderCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/CreateClusterCommand.d.ts +2 -2
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/CreateServiceCommand.d.ts +6 -6
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/CreateTaskSetCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/DeleteAccountSettingCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/DeleteCapacityProviderCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/DeleteClusterCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/DeleteServiceCommand.d.ts +3 -3
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/DeleteTaskDefinitionsCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/DeleteTaskSetCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/DeregisterContainerInstanceCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/DeregisterTaskDefinitionCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/DescribeCapacityProvidersCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/DescribeClustersCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/DescribeContainerInstancesCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/DescribeServiceDeploymentsCommand.d.ts +177 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/DescribeServiceRevisionsCommand.d.ts +243 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/DescribeServicesCommand.d.ts +3 -3
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/DescribeTaskDefinitionCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/DescribeTaskSetsCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/DescribeTasksCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/DiscoverPollEndpointCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/ExecuteCommandCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/GetTaskProtectionCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/ListAccountSettingsCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/ListClustersCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/ListContainerInstancesCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/ListServiceDeploymentsCommand.d.ts +130 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/ListServicesByNamespaceCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/ListServicesCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/ListTaskDefinitionFamiliesCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/ListTaskDefinitionsCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/ListTasksCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/PutAccountSettingCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/PutAccountSettingDefaultCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/PutClusterCapacityProvidersCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/RegisterContainerInstanceCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/RegisterTaskDefinitionCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/RunTaskCommand.d.ts +2 -2
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/StartTaskCommand.d.ts +2 -2
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/StopTaskCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/SubmitAttachmentStateChangesCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/SubmitContainerStateChangeCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/SubmitTaskStateChangeCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/TagResourceCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/UntagResourceCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/UpdateCapacityProviderCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/UpdateClusterCommand.d.ts +2 -2
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/UpdateClusterSettingsCommand.d.ts +2 -2
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/UpdateContainerAgentCommand.d.ts +2 -2
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/UpdateContainerInstancesStateCommand.d.ts +2 -2
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/UpdateServiceCommand.d.ts +6 -6
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/UpdateServicePrimaryTaskSetCommand.d.ts +2 -2
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/UpdateTaskProtectionCommand.d.ts +2 -2
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/UpdateTaskSetCommand.d.ts +2 -3
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/index.d.ts +3 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/models/models_0.d.ts +3026 -2918
- package/node_modules/@aws-sdk/client-ecs/dist-types/models/models_1.d.ts +517 -1
- package/node_modules/@aws-sdk/client-ecs/dist-types/protocols/Aws_json1_1.d.ts +27 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/ECS.d.ts +51 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/ECSClient.d.ts +18 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/commands/DescribeServiceDeploymentsCommand.d.ts +51 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/commands/DescribeServiceRevisionsCommand.d.ts +51 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/commands/ListServiceDeploymentsCommand.d.ts +51 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/commands/UpdateClusterCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/commands/UpdateClusterSettingsCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/commands/UpdateContainerAgentCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/commands/UpdateContainerInstancesStateCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/commands/UpdateServiceCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/commands/UpdateServicePrimaryTaskSetCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/commands/UpdateTaskProtectionCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/commands/UpdateTaskSetCommand.d.ts +4 -2
- package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/commands/index.d.ts +3 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/models/models_0.d.ts +126 -95
- package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/models/models_1.d.ts +119 -1
- package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +36 -0
- package/node_modules/@aws-sdk/client-ecs/package.json +14 -14
- package/node_modules/@aws-sdk/client-organizations/package.json +14 -14
- package/node_modules/@aws-sdk/client-secrets-manager/package.json +14 -14
- package/node_modules/@aws-sdk/client-ssm/package.json +14 -14
- package/node_modules/@aws-sdk/client-sso/package.json +11 -11
- package/node_modules/@aws-sdk/client-sso-oidc/package.json +13 -13
- package/node_modules/@aws-sdk/client-sts/package.json +15 -15
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.js +9 -5
- package/node_modules/@aws-sdk/core/dist-es/submodules/client/emitWarningIfUnsupportedVersion.js +5 -3
- package/node_modules/@aws-sdk/core/dist-types/submodules/client/emitWarningIfUnsupportedVersion.d.ts +3 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/client/emitWarningIfUnsupportedVersion.d.ts +3 -0
- package/node_modules/@aws-sdk/core/package.json +6 -4
- package/node_modules/@aws-sdk/credential-provider-env/package.json +5 -4
- package/node_modules/@aws-sdk/credential-provider-http/package.json +5 -4
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +11 -10
- package/node_modules/@aws-sdk/credential-provider-node/package.json +11 -10
- package/node_modules/@aws-sdk/credential-provider-process/package.json +5 -4
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +7 -6
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +6 -5
- package/node_modules/@aws-sdk/middleware-host-header/package.json +6 -4
- package/node_modules/@aws-sdk/middleware-logger/package.json +6 -4
- package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +6 -4
- package/node_modules/@aws-sdk/middleware-user-agent/package.json +9 -7
- package/node_modules/@aws-sdk/region-config-resolver/package.json +4 -3
- package/node_modules/@aws-sdk/token-providers/package.json +5 -4
- package/node_modules/@aws-sdk/types/package.json +1 -1
- package/node_modules/@aws-sdk/util-endpoints/package.json +6 -4
- package/node_modules/@aws-sdk/util-user-agent-browser/package.json +4 -3
- package/node_modules/@aws-sdk/util-user-agent-node/package.json +5 -4
- package/node_modules/@smithy/protocol-http/package.json +2 -2
- package/node_modules/@smithy/service-error-classification/package.json +2 -2
- package/node_modules/@smithy/signature-v4/package.json +4 -4
- package/node_modules/@smithy/types/dist-cjs/feature-ids.js +1 -0
- package/node_modules/@smithy/types/dist-es/feature-ids.js +1 -0
- package/node_modules/@smithy/types/dist-es/index.js +1 -0
- package/node_modules/@smithy/types/dist-types/feature-ids.d.ts +16 -0
- package/node_modules/@smithy/types/dist-types/index.d.ts +1 -0
- package/node_modules/@smithy/types/dist-types/middleware.d.ts +30 -6
- package/node_modules/@smithy/types/dist-types/ts3.4/feature-ids.d.ts +16 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/index.d.ts +1 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/middleware.d.ts +26 -2
- package/node_modules/@smithy/types/package.json +1 -1
- package/node_modules/@smithy/util-middleware/package.json +2 -2
- package/node_modules/@smithy/util-retry/package.json +3 -3
- package/package.json +11 -9
- package/version.json +1 -1
|
@@ -2246,7 +2246,7 @@ var require_dist_cjs15 = __commonJS({
|
|
|
2246
2246
|
var src_exports = {};
|
|
2247
2247
|
__export2(src_exports, {
|
|
2248
2248
|
AdaptiveRetryStrategy: () => AdaptiveRetryStrategy,
|
|
2249
|
-
ConfiguredRetryStrategy: () =>
|
|
2249
|
+
ConfiguredRetryStrategy: () => ConfiguredRetryStrategy2,
|
|
2250
2250
|
DEFAULT_MAX_ATTEMPTS: () => DEFAULT_MAX_ATTEMPTS,
|
|
2251
2251
|
DEFAULT_RETRY_DELAY_BASE: () => DEFAULT_RETRY_DELAY_BASE,
|
|
2252
2252
|
DEFAULT_RETRY_MODE: () => DEFAULT_RETRY_MODE,
|
|
@@ -2532,7 +2532,7 @@ var require_dist_cjs15 = __commonJS({
|
|
|
2532
2532
|
}
|
|
2533
2533
|
};
|
|
2534
2534
|
__name(_ConfiguredRetryStrategy, "ConfiguredRetryStrategy");
|
|
2535
|
-
var
|
|
2535
|
+
var ConfiguredRetryStrategy2 = _ConfiguredRetryStrategy;
|
|
2536
2536
|
}
|
|
2537
2537
|
});
|
|
2538
2538
|
|
|
@@ -5464,10 +5464,10 @@ var require_dist_cjs27 = __commonJS({
|
|
|
5464
5464
|
return {};
|
|
5465
5465
|
}
|
|
5466
5466
|
}, "loadConfigsForDefaultMode");
|
|
5467
|
-
var
|
|
5467
|
+
var warningEmitted = false;
|
|
5468
5468
|
var emitWarningIfUnsupportedVersion2 = /* @__PURE__ */ __name((version3) => {
|
|
5469
|
-
if (version3 && !
|
|
5470
|
-
|
|
5469
|
+
if (version3 && !warningEmitted && parseInt(version3.substring(1, version3.indexOf("."))) < 16) {
|
|
5470
|
+
warningEmitted = true;
|
|
5471
5471
|
}
|
|
5472
5472
|
}, "emitWarningIfUnsupportedVersion");
|
|
5473
5473
|
function extendedEncodeURIComponent(str) {
|
|
@@ -5870,12 +5870,12 @@ var require_dist_cjs28 = __commonJS({
|
|
|
5870
5870
|
module2.exports = __toCommonJS2(src_exports);
|
|
5871
5871
|
var import_protocol_http8 = require_dist_cjs2();
|
|
5872
5872
|
var import_uuid = (init_esm_node(), __toCommonJS(esm_node_exports));
|
|
5873
|
-
var
|
|
5873
|
+
var import_util_retry2 = require_dist_cjs15();
|
|
5874
5874
|
var getDefaultRetryQuota = /* @__PURE__ */ __name((initialRetryTokens, options) => {
|
|
5875
5875
|
const MAX_CAPACITY = initialRetryTokens;
|
|
5876
|
-
const noRetryIncrement = (options == null ? void 0 : options.noRetryIncrement) ??
|
|
5877
|
-
const retryCost = (options == null ? void 0 : options.retryCost) ??
|
|
5878
|
-
const timeoutRetryCost = (options == null ? void 0 : options.timeoutRetryCost) ??
|
|
5876
|
+
const noRetryIncrement = (options == null ? void 0 : options.noRetryIncrement) ?? import_util_retry2.NO_RETRY_INCREMENT;
|
|
5877
|
+
const retryCost = (options == null ? void 0 : options.retryCost) ?? import_util_retry2.RETRY_COST;
|
|
5878
|
+
const timeoutRetryCost = (options == null ? void 0 : options.timeoutRetryCost) ?? import_util_retry2.TIMEOUT_RETRY_COST;
|
|
5879
5879
|
let availableCapacity = initialRetryTokens;
|
|
5880
5880
|
const getCapacityAmount = /* @__PURE__ */ __name((error) => error.name === "TimeoutError" ? timeoutRetryCost : retryCost, "getCapacityAmount");
|
|
5881
5881
|
const hasRetryTokens = /* @__PURE__ */ __name((error) => getCapacityAmount(error) <= availableCapacity, "hasRetryTokens");
|
|
@@ -5897,7 +5897,7 @@ var require_dist_cjs28 = __commonJS({
|
|
|
5897
5897
|
releaseRetryTokens
|
|
5898
5898
|
});
|
|
5899
5899
|
}, "getDefaultRetryQuota");
|
|
5900
|
-
var defaultDelayDecider = /* @__PURE__ */ __name((delayBase, attempts) => Math.floor(Math.min(
|
|
5900
|
+
var defaultDelayDecider = /* @__PURE__ */ __name((delayBase, attempts) => Math.floor(Math.min(import_util_retry2.MAXIMUM_RETRY_DELAY, Math.random() * 2 ** attempts * delayBase)), "defaultDelayDecider");
|
|
5901
5901
|
var import_service_error_classification = require_dist_cjs14();
|
|
5902
5902
|
var defaultRetryDecider = /* @__PURE__ */ __name((error) => {
|
|
5903
5903
|
if (!error) {
|
|
@@ -5917,10 +5917,10 @@ var require_dist_cjs28 = __commonJS({
|
|
|
5917
5917
|
var _StandardRetryStrategy = class _StandardRetryStrategy {
|
|
5918
5918
|
constructor(maxAttemptsProvider, options) {
|
|
5919
5919
|
this.maxAttemptsProvider = maxAttemptsProvider;
|
|
5920
|
-
this.mode =
|
|
5920
|
+
this.mode = import_util_retry2.RETRY_MODES.STANDARD;
|
|
5921
5921
|
this.retryDecider = (options == null ? void 0 : options.retryDecider) ?? defaultRetryDecider;
|
|
5922
5922
|
this.delayDecider = (options == null ? void 0 : options.delayDecider) ?? defaultDelayDecider;
|
|
5923
|
-
this.retryQuota = (options == null ? void 0 : options.retryQuota) ?? getDefaultRetryQuota(
|
|
5923
|
+
this.retryQuota = (options == null ? void 0 : options.retryQuota) ?? getDefaultRetryQuota(import_util_retry2.INITIAL_RETRY_TOKENS);
|
|
5924
5924
|
}
|
|
5925
5925
|
shouldRetry(error, attempts, maxAttempts) {
|
|
5926
5926
|
return attempts < maxAttempts && this.retryDecider(error) && this.retryQuota.hasRetryTokens(error);
|
|
@@ -5930,7 +5930,7 @@ var require_dist_cjs28 = __commonJS({
|
|
|
5930
5930
|
try {
|
|
5931
5931
|
maxAttempts = await this.maxAttemptsProvider();
|
|
5932
5932
|
} catch (error) {
|
|
5933
|
-
maxAttempts =
|
|
5933
|
+
maxAttempts = import_util_retry2.DEFAULT_MAX_ATTEMPTS;
|
|
5934
5934
|
}
|
|
5935
5935
|
return maxAttempts;
|
|
5936
5936
|
}
|
|
@@ -5941,12 +5941,12 @@ var require_dist_cjs28 = __commonJS({
|
|
|
5941
5941
|
const maxAttempts = await this.getMaxAttempts();
|
|
5942
5942
|
const { request } = args;
|
|
5943
5943
|
if (import_protocol_http8.HttpRequest.isInstance(request)) {
|
|
5944
|
-
request.headers[
|
|
5944
|
+
request.headers[import_util_retry2.INVOCATION_ID_HEADER] = (0, import_uuid.v4)();
|
|
5945
5945
|
}
|
|
5946
5946
|
while (true) {
|
|
5947
5947
|
try {
|
|
5948
5948
|
if (import_protocol_http8.HttpRequest.isInstance(request)) {
|
|
5949
|
-
request.headers[
|
|
5949
|
+
request.headers[import_util_retry2.REQUEST_HEADER] = `attempt=${attempts + 1}; max=${maxAttempts}`;
|
|
5950
5950
|
}
|
|
5951
5951
|
if (options == null ? void 0 : options.beforeRequest) {
|
|
5952
5952
|
await options.beforeRequest();
|
|
@@ -5965,7 +5965,7 @@ var require_dist_cjs28 = __commonJS({
|
|
|
5965
5965
|
if (this.shouldRetry(err, attempts, maxAttempts)) {
|
|
5966
5966
|
retryTokenAmount = this.retryQuota.retrieveRetryTokens(err);
|
|
5967
5967
|
const delayFromDecider = this.delayDecider(
|
|
5968
|
-
(0, import_service_error_classification.isThrottlingError)(err) ?
|
|
5968
|
+
(0, import_service_error_classification.isThrottlingError)(err) ? import_util_retry2.THROTTLING_RETRY_DELAY_BASE : import_util_retry2.DEFAULT_RETRY_DELAY_BASE,
|
|
5969
5969
|
attempts
|
|
5970
5970
|
);
|
|
5971
5971
|
const delayFromResponse = getDelayFromRetryAfterHeader(err.$response);
|
|
@@ -6003,8 +6003,8 @@ var require_dist_cjs28 = __commonJS({
|
|
|
6003
6003
|
constructor(maxAttemptsProvider, options) {
|
|
6004
6004
|
const { rateLimiter, ...superOptions } = options ?? {};
|
|
6005
6005
|
super(maxAttemptsProvider, superOptions);
|
|
6006
|
-
this.rateLimiter = rateLimiter ?? new
|
|
6007
|
-
this.mode =
|
|
6006
|
+
this.rateLimiter = rateLimiter ?? new import_util_retry2.DefaultRateLimiter();
|
|
6007
|
+
this.mode = import_util_retry2.RETRY_MODES.ADAPTIVE;
|
|
6008
6008
|
}
|
|
6009
6009
|
async retry(next, args) {
|
|
6010
6010
|
return super.retry(next, args, {
|
|
@@ -6043,11 +6043,11 @@ var require_dist_cjs28 = __commonJS({
|
|
|
6043
6043
|
}
|
|
6044
6044
|
return maxAttempt;
|
|
6045
6045
|
},
|
|
6046
|
-
default:
|
|
6046
|
+
default: import_util_retry2.DEFAULT_MAX_ATTEMPTS
|
|
6047
6047
|
};
|
|
6048
6048
|
var resolveRetryConfig = /* @__PURE__ */ __name((input) => {
|
|
6049
6049
|
const { retryStrategy } = input;
|
|
6050
|
-
const maxAttempts = (0, import_util_middleware3.normalizeProvider)(input.maxAttempts ??
|
|
6050
|
+
const maxAttempts = (0, import_util_middleware3.normalizeProvider)(input.maxAttempts ?? import_util_retry2.DEFAULT_MAX_ATTEMPTS);
|
|
6051
6051
|
return {
|
|
6052
6052
|
...input,
|
|
6053
6053
|
maxAttempts,
|
|
@@ -6056,10 +6056,10 @@ var require_dist_cjs28 = __commonJS({
|
|
|
6056
6056
|
return retryStrategy;
|
|
6057
6057
|
}
|
|
6058
6058
|
const retryMode = await (0, import_util_middleware3.normalizeProvider)(input.retryMode)();
|
|
6059
|
-
if (retryMode ===
|
|
6060
|
-
return new
|
|
6059
|
+
if (retryMode === import_util_retry2.RETRY_MODES.ADAPTIVE) {
|
|
6060
|
+
return new import_util_retry2.AdaptiveRetryStrategy(maxAttempts);
|
|
6061
6061
|
}
|
|
6062
|
-
return new
|
|
6062
|
+
return new import_util_retry2.StandardRetryStrategy(maxAttempts);
|
|
6063
6063
|
}
|
|
6064
6064
|
};
|
|
6065
6065
|
}, "resolveRetryConfig");
|
|
@@ -6068,13 +6068,13 @@ var require_dist_cjs28 = __commonJS({
|
|
|
6068
6068
|
var NODE_RETRY_MODE_CONFIG_OPTIONS = {
|
|
6069
6069
|
environmentVariableSelector: (env) => env[ENV_RETRY_MODE],
|
|
6070
6070
|
configFileSelector: (profile) => profile[CONFIG_RETRY_MODE],
|
|
6071
|
-
default:
|
|
6071
|
+
default: import_util_retry2.DEFAULT_RETRY_MODE
|
|
6072
6072
|
};
|
|
6073
6073
|
var omitRetryHeadersMiddleware = /* @__PURE__ */ __name(() => (next) => async (args) => {
|
|
6074
6074
|
const { request } = args;
|
|
6075
6075
|
if (import_protocol_http8.HttpRequest.isInstance(request)) {
|
|
6076
|
-
delete request.headers[
|
|
6077
|
-
delete request.headers[
|
|
6076
|
+
delete request.headers[import_util_retry2.INVOCATION_ID_HEADER];
|
|
6077
|
+
delete request.headers[import_util_retry2.REQUEST_HEADER];
|
|
6078
6078
|
}
|
|
6079
6079
|
return next(args);
|
|
6080
6080
|
}, "omitRetryHeadersMiddleware");
|
|
@@ -6105,12 +6105,12 @@ var require_dist_cjs28 = __commonJS({
|
|
|
6105
6105
|
const { request } = args;
|
|
6106
6106
|
const isRequest = import_protocol_http8.HttpRequest.isInstance(request);
|
|
6107
6107
|
if (isRequest) {
|
|
6108
|
-
request.headers[
|
|
6108
|
+
request.headers[import_util_retry2.INVOCATION_ID_HEADER] = (0, import_uuid.v4)();
|
|
6109
6109
|
}
|
|
6110
6110
|
while (true) {
|
|
6111
6111
|
try {
|
|
6112
6112
|
if (isRequest) {
|
|
6113
|
-
request.headers[
|
|
6113
|
+
request.headers[import_util_retry2.REQUEST_HEADER] = `attempt=${attempts + 1}; max=${maxAttempts}`;
|
|
6114
6114
|
}
|
|
6115
6115
|
const { response, output } = await next(args);
|
|
6116
6116
|
retryStrategy.recordSuccess(retryToken);
|
|
@@ -7428,14 +7428,16 @@ var require_dist_cjs30 = __commonJS({
|
|
|
7428
7428
|
});
|
|
7429
7429
|
|
|
7430
7430
|
// node_modules/@aws-sdk/core/dist-es/submodules/client/emitWarningIfUnsupportedVersion.js
|
|
7431
|
-
var
|
|
7431
|
+
var state, emitWarningIfUnsupportedVersion;
|
|
7432
7432
|
var init_emitWarningIfUnsupportedVersion = __esm({
|
|
7433
7433
|
"node_modules/@aws-sdk/core/dist-es/submodules/client/emitWarningIfUnsupportedVersion.js"() {
|
|
7434
7434
|
"use strict";
|
|
7435
|
-
|
|
7435
|
+
state = {
|
|
7436
|
+
warningEmitted: false
|
|
7437
|
+
};
|
|
7436
7438
|
emitWarningIfUnsupportedVersion = (version3) => {
|
|
7437
|
-
if (version3 && !warningEmitted && parseInt(version3.substring(1, version3.indexOf("."))) < 18) {
|
|
7438
|
-
warningEmitted = true;
|
|
7439
|
+
if (version3 && !state.warningEmitted && parseInt(version3.substring(1, version3.indexOf("."))) < 18) {
|
|
7440
|
+
state.warningEmitted = true;
|
|
7439
7441
|
process.emitWarning(`NodeDeprecationWarning: The AWS SDK for JavaScript (v3) will
|
|
7440
7442
|
no longer support Node.js 16.x on January 6, 2025.
|
|
7441
7443
|
|
|
@@ -7484,7 +7486,8 @@ var client_exports = {};
|
|
|
7484
7486
|
__export(client_exports, {
|
|
7485
7487
|
emitWarningIfUnsupportedVersion: () => emitWarningIfUnsupportedVersion,
|
|
7486
7488
|
setCredentialFeature: () => setCredentialFeature,
|
|
7487
|
-
setFeature: () => setFeature
|
|
7489
|
+
setFeature: () => setFeature,
|
|
7490
|
+
state: () => state
|
|
7488
7491
|
});
|
|
7489
7492
|
var init_client = __esm({
|
|
7490
7493
|
"node_modules/@aws-sdk/core/dist-es/submodules/client/index.js"() {
|
|
@@ -10248,6 +10251,7 @@ __export(dist_es_exports2, {
|
|
|
10248
10251
|
resolveAwsSdkSigV4Config: () => resolveAwsSdkSigV4Config,
|
|
10249
10252
|
setCredentialFeature: () => setCredentialFeature,
|
|
10250
10253
|
setFeature: () => setFeature,
|
|
10254
|
+
state: () => state,
|
|
10251
10255
|
validateSigningProperties: () => validateSigningProperties
|
|
10252
10256
|
});
|
|
10253
10257
|
var init_dist_es2 = __esm({
|
|
@@ -11186,20 +11190,20 @@ function __importStar(mod) {
|
|
|
11186
11190
|
function __importDefault(mod) {
|
|
11187
11191
|
return mod && mod.__esModule ? mod : { default: mod };
|
|
11188
11192
|
}
|
|
11189
|
-
function __classPrivateFieldGet(receiver,
|
|
11193
|
+
function __classPrivateFieldGet(receiver, state2, kind, f) {
|
|
11190
11194
|
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
11191
|
-
if (typeof
|
|
11192
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value :
|
|
11195
|
+
if (typeof state2 === "function" ? receiver !== state2 || !f : !state2.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
11196
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state2.get(receiver);
|
|
11193
11197
|
}
|
|
11194
|
-
function __classPrivateFieldSet(receiver,
|
|
11198
|
+
function __classPrivateFieldSet(receiver, state2, value, kind, f) {
|
|
11195
11199
|
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
11196
11200
|
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
11197
|
-
if (typeof
|
|
11198
|
-
return kind === "a" ? f.call(receiver, value) : f ? f.value = value :
|
|
11201
|
+
if (typeof state2 === "function" ? receiver !== state2 || !f : !state2.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
11202
|
+
return kind === "a" ? f.call(receiver, value) : f ? f.value = value : state2.set(receiver, value), value;
|
|
11199
11203
|
}
|
|
11200
|
-
function __classPrivateFieldIn(
|
|
11204
|
+
function __classPrivateFieldIn(state2, receiver) {
|
|
11201
11205
|
if (receiver === null || typeof receiver !== "object" && typeof receiver !== "function") throw new TypeError("Cannot use 'in' operator on non-object");
|
|
11202
|
-
return typeof
|
|
11206
|
+
return typeof state2 === "function" ? receiver === state2 : state2.has(receiver);
|
|
11203
11207
|
}
|
|
11204
11208
|
function __addDisposableResource(env, value, async) {
|
|
11205
11209
|
if (value !== null && value !== void 0) {
|
|
@@ -11324,7 +11328,7 @@ var require_package = __commonJS({
|
|
|
11324
11328
|
module2.exports = {
|
|
11325
11329
|
name: "@aws-sdk/client-organizations",
|
|
11326
11330
|
description: "AWS SDK for JavaScript Organizations Client for Node.js, Browser and React Native",
|
|
11327
|
-
version: "3.
|
|
11331
|
+
version: "3.682.0",
|
|
11328
11332
|
scripts: {
|
|
11329
11333
|
build: "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
11330
11334
|
"build:cjs": "node ../../scripts/compilation/inline client-organizations",
|
|
@@ -11343,19 +11347,19 @@ var require_package = __commonJS({
|
|
|
11343
11347
|
dependencies: {
|
|
11344
11348
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
11345
11349
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
11346
|
-
"@aws-sdk/client-sso-oidc": "3.
|
|
11347
|
-
"@aws-sdk/client-sts": "3.
|
|
11348
|
-
"@aws-sdk/core": "3.
|
|
11349
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
11350
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
11351
|
-
"@aws-sdk/middleware-logger": "3.
|
|
11352
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
11353
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
11354
|
-
"@aws-sdk/region-config-resolver": "3.
|
|
11355
|
-
"@aws-sdk/types": "3.
|
|
11356
|
-
"@aws-sdk/util-endpoints": "3.
|
|
11357
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
11358
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
11350
|
+
"@aws-sdk/client-sso-oidc": "3.682.0",
|
|
11351
|
+
"@aws-sdk/client-sts": "3.682.0",
|
|
11352
|
+
"@aws-sdk/core": "3.679.0",
|
|
11353
|
+
"@aws-sdk/credential-provider-node": "3.682.0",
|
|
11354
|
+
"@aws-sdk/middleware-host-header": "3.679.0",
|
|
11355
|
+
"@aws-sdk/middleware-logger": "3.679.0",
|
|
11356
|
+
"@aws-sdk/middleware-recursion-detection": "3.679.0",
|
|
11357
|
+
"@aws-sdk/middleware-user-agent": "3.682.0",
|
|
11358
|
+
"@aws-sdk/region-config-resolver": "3.679.0",
|
|
11359
|
+
"@aws-sdk/types": "3.679.0",
|
|
11360
|
+
"@aws-sdk/util-endpoints": "3.679.0",
|
|
11361
|
+
"@aws-sdk/util-user-agent-browser": "3.679.0",
|
|
11362
|
+
"@aws-sdk/util-user-agent-node": "3.682.0",
|
|
11359
11363
|
"@smithy/config-resolver": "^3.0.9",
|
|
11360
11364
|
"@smithy/core": "^2.4.8",
|
|
11361
11365
|
"@smithy/fetch-http-handler": "^3.2.9",
|
|
@@ -12171,7 +12175,7 @@ var require_package2 = __commonJS({
|
|
|
12171
12175
|
module2.exports = {
|
|
12172
12176
|
name: "@aws-sdk/client-sso",
|
|
12173
12177
|
description: "AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native",
|
|
12174
|
-
version: "3.
|
|
12178
|
+
version: "3.682.0",
|
|
12175
12179
|
scripts: {
|
|
12176
12180
|
build: "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
12177
12181
|
"build:cjs": "node ../../scripts/compilation/inline client-sso",
|
|
@@ -12190,16 +12194,16 @@ var require_package2 = __commonJS({
|
|
|
12190
12194
|
dependencies: {
|
|
12191
12195
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
12192
12196
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
12193
|
-
"@aws-sdk/core": "3.
|
|
12194
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
12195
|
-
"@aws-sdk/middleware-logger": "3.
|
|
12196
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
12197
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
12198
|
-
"@aws-sdk/region-config-resolver": "3.
|
|
12199
|
-
"@aws-sdk/types": "3.
|
|
12200
|
-
"@aws-sdk/util-endpoints": "3.
|
|
12201
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
12202
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
12197
|
+
"@aws-sdk/core": "3.679.0",
|
|
12198
|
+
"@aws-sdk/middleware-host-header": "3.679.0",
|
|
12199
|
+
"@aws-sdk/middleware-logger": "3.679.0",
|
|
12200
|
+
"@aws-sdk/middleware-recursion-detection": "3.679.0",
|
|
12201
|
+
"@aws-sdk/middleware-user-agent": "3.682.0",
|
|
12202
|
+
"@aws-sdk/region-config-resolver": "3.679.0",
|
|
12203
|
+
"@aws-sdk/types": "3.679.0",
|
|
12204
|
+
"@aws-sdk/util-endpoints": "3.679.0",
|
|
12205
|
+
"@aws-sdk/util-user-agent-browser": "3.679.0",
|
|
12206
|
+
"@aws-sdk/util-user-agent-node": "3.682.0",
|
|
12203
12207
|
"@smithy/config-resolver": "^3.0.9",
|
|
12204
12208
|
"@smithy/core": "^2.4.8",
|
|
12205
12209
|
"@smithy/fetch-http-handler": "^3.2.9",
|
|
@@ -13439,7 +13443,7 @@ var require_package3 = __commonJS({
|
|
|
13439
13443
|
module2.exports = {
|
|
13440
13444
|
name: "@aws-sdk/client-sso-oidc",
|
|
13441
13445
|
description: "AWS SDK for JavaScript Sso Oidc Client for Node.js, Browser and React Native",
|
|
13442
|
-
version: "3.
|
|
13446
|
+
version: "3.682.0",
|
|
13443
13447
|
scripts: {
|
|
13444
13448
|
build: "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
13445
13449
|
"build:cjs": "node ../../scripts/compilation/inline client-sso-oidc",
|
|
@@ -13458,17 +13462,17 @@ var require_package3 = __commonJS({
|
|
|
13458
13462
|
dependencies: {
|
|
13459
13463
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
13460
13464
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
13461
|
-
"@aws-sdk/core": "3.
|
|
13462
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
13463
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
13464
|
-
"@aws-sdk/middleware-logger": "3.
|
|
13465
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
13466
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
13467
|
-
"@aws-sdk/region-config-resolver": "3.
|
|
13468
|
-
"@aws-sdk/types": "3.
|
|
13469
|
-
"@aws-sdk/util-endpoints": "3.
|
|
13470
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
13471
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
13465
|
+
"@aws-sdk/core": "3.679.0",
|
|
13466
|
+
"@aws-sdk/credential-provider-node": "3.682.0",
|
|
13467
|
+
"@aws-sdk/middleware-host-header": "3.679.0",
|
|
13468
|
+
"@aws-sdk/middleware-logger": "3.679.0",
|
|
13469
|
+
"@aws-sdk/middleware-recursion-detection": "3.679.0",
|
|
13470
|
+
"@aws-sdk/middleware-user-agent": "3.682.0",
|
|
13471
|
+
"@aws-sdk/region-config-resolver": "3.679.0",
|
|
13472
|
+
"@aws-sdk/types": "3.679.0",
|
|
13473
|
+
"@aws-sdk/util-endpoints": "3.679.0",
|
|
13474
|
+
"@aws-sdk/util-user-agent-browser": "3.679.0",
|
|
13475
|
+
"@aws-sdk/util-user-agent-node": "3.682.0",
|
|
13472
13476
|
"@smithy/config-resolver": "^3.0.9",
|
|
13473
13477
|
"@smithy/core": "^2.4.8",
|
|
13474
13478
|
"@smithy/fetch-http-handler": "^3.2.9",
|
|
@@ -13523,7 +13527,7 @@ var require_package3 = __commonJS({
|
|
|
13523
13527
|
},
|
|
13524
13528
|
license: "Apache-2.0",
|
|
13525
13529
|
peerDependencies: {
|
|
13526
|
-
"@aws-sdk/client-sts": "^3.
|
|
13530
|
+
"@aws-sdk/client-sts": "^3.682.0"
|
|
13527
13531
|
},
|
|
13528
13532
|
browser: {
|
|
13529
13533
|
"./dist-es/runtimeConfig": "./dist-es/runtimeConfig.browser"
|
|
@@ -15175,7 +15179,7 @@ var require_package4 = __commonJS({
|
|
|
15175
15179
|
module2.exports = {
|
|
15176
15180
|
name: "@aws-sdk/client-sts",
|
|
15177
15181
|
description: "AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native",
|
|
15178
|
-
version: "3.
|
|
15182
|
+
version: "3.682.0",
|
|
15179
15183
|
scripts: {
|
|
15180
15184
|
build: "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
15181
15185
|
"build:cjs": "node ../../scripts/compilation/inline client-sts",
|
|
@@ -15186,8 +15190,8 @@ var require_package4 = __commonJS({
|
|
|
15186
15190
|
clean: "rimraf ./dist-* && rimraf *.tsbuildinfo",
|
|
15187
15191
|
"extract:docs": "api-extractor run --local",
|
|
15188
15192
|
"generate:client": "node ../../scripts/generate-clients/single-service --solo sts",
|
|
15189
|
-
test: "
|
|
15190
|
-
"test:
|
|
15193
|
+
test: "vitest run",
|
|
15194
|
+
"test:watch": "vitest watch"
|
|
15191
15195
|
},
|
|
15192
15196
|
main: "./dist-cjs/index.js",
|
|
15193
15197
|
types: "./dist-types/index.d.ts",
|
|
@@ -15196,18 +15200,18 @@ var require_package4 = __commonJS({
|
|
|
15196
15200
|
dependencies: {
|
|
15197
15201
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
15198
15202
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
15199
|
-
"@aws-sdk/client-sso-oidc": "3.
|
|
15200
|
-
"@aws-sdk/core": "3.
|
|
15201
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
15202
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
15203
|
-
"@aws-sdk/middleware-logger": "3.
|
|
15204
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
15205
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
15206
|
-
"@aws-sdk/region-config-resolver": "3.
|
|
15207
|
-
"@aws-sdk/types": "3.
|
|
15208
|
-
"@aws-sdk/util-endpoints": "3.
|
|
15209
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
15210
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
15203
|
+
"@aws-sdk/client-sso-oidc": "3.682.0",
|
|
15204
|
+
"@aws-sdk/core": "3.679.0",
|
|
15205
|
+
"@aws-sdk/credential-provider-node": "3.682.0",
|
|
15206
|
+
"@aws-sdk/middleware-host-header": "3.679.0",
|
|
15207
|
+
"@aws-sdk/middleware-logger": "3.679.0",
|
|
15208
|
+
"@aws-sdk/middleware-recursion-detection": "3.679.0",
|
|
15209
|
+
"@aws-sdk/middleware-user-agent": "3.682.0",
|
|
15210
|
+
"@aws-sdk/region-config-resolver": "3.679.0",
|
|
15211
|
+
"@aws-sdk/types": "3.679.0",
|
|
15212
|
+
"@aws-sdk/util-endpoints": "3.679.0",
|
|
15213
|
+
"@aws-sdk/util-user-agent-browser": "3.679.0",
|
|
15214
|
+
"@aws-sdk/util-user-agent-node": "3.682.0",
|
|
15211
15215
|
"@smithy/config-resolver": "^3.0.9",
|
|
15212
15216
|
"@smithy/core": "^2.4.8",
|
|
15213
15217
|
"@smithy/fetch-http-handler": "^3.2.9",
|
|
@@ -21667,7 +21671,7 @@ var require_package5 = __commonJS({
|
|
|
21667
21671
|
module2.exports = {
|
|
21668
21672
|
name: "@aws-sdk/client-secrets-manager",
|
|
21669
21673
|
description: "AWS SDK for JavaScript Secrets Manager Client for Node.js, Browser and React Native",
|
|
21670
|
-
version: "3.
|
|
21674
|
+
version: "3.682.0",
|
|
21671
21675
|
scripts: {
|
|
21672
21676
|
build: "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
21673
21677
|
"build:cjs": "node ../../scripts/compilation/inline client-secrets-manager",
|
|
@@ -21686,19 +21690,19 @@ var require_package5 = __commonJS({
|
|
|
21686
21690
|
dependencies: {
|
|
21687
21691
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
21688
21692
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
21689
|
-
"@aws-sdk/client-sso-oidc": "3.
|
|
21690
|
-
"@aws-sdk/client-sts": "3.
|
|
21691
|
-
"@aws-sdk/core": "3.
|
|
21692
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
21693
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
21694
|
-
"@aws-sdk/middleware-logger": "3.
|
|
21695
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
21696
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
21697
|
-
"@aws-sdk/region-config-resolver": "3.
|
|
21698
|
-
"@aws-sdk/types": "3.
|
|
21699
|
-
"@aws-sdk/util-endpoints": "3.
|
|
21700
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
21701
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
21693
|
+
"@aws-sdk/client-sso-oidc": "3.682.0",
|
|
21694
|
+
"@aws-sdk/client-sts": "3.682.0",
|
|
21695
|
+
"@aws-sdk/core": "3.679.0",
|
|
21696
|
+
"@aws-sdk/credential-provider-node": "3.682.0",
|
|
21697
|
+
"@aws-sdk/middleware-host-header": "3.679.0",
|
|
21698
|
+
"@aws-sdk/middleware-logger": "3.679.0",
|
|
21699
|
+
"@aws-sdk/middleware-recursion-detection": "3.679.0",
|
|
21700
|
+
"@aws-sdk/middleware-user-agent": "3.682.0",
|
|
21701
|
+
"@aws-sdk/region-config-resolver": "3.679.0",
|
|
21702
|
+
"@aws-sdk/types": "3.679.0",
|
|
21703
|
+
"@aws-sdk/util-endpoints": "3.679.0",
|
|
21704
|
+
"@aws-sdk/util-user-agent-browser": "3.679.0",
|
|
21705
|
+
"@aws-sdk/util-user-agent-node": "3.682.0",
|
|
21702
21706
|
"@smithy/config-resolver": "^3.0.9",
|
|
21703
21707
|
"@smithy/core": "^2.4.8",
|
|
21704
21708
|
"@smithy/fetch-http-handler": "^3.2.9",
|
|
@@ -23851,8 +23855,15 @@ __export(on_create_exports, {
|
|
|
23851
23855
|
module.exports = __toCommonJS(on_create_exports);
|
|
23852
23856
|
var org = __toESM(require_dist_cjs53());
|
|
23853
23857
|
var sec = __toESM(require_dist_cjs54());
|
|
23854
|
-
var
|
|
23855
|
-
var
|
|
23858
|
+
var import_util_retry = __toESM(require_dist_cjs15());
|
|
23859
|
+
var organizations = new org.Organizations({
|
|
23860
|
+
// Organizations allows at max 5 requests in parellel. So we allow 5 retries with a maximum delay of 2 minutes.
|
|
23861
|
+
retryStrategy: new import_util_retry.ConfiguredRetryStrategy(5, (attempt) => attempt * 24 * 1e3)
|
|
23862
|
+
});
|
|
23863
|
+
var secretsManager = new sec.SecretsManager({
|
|
23864
|
+
region: "eu-west-1"
|
|
23865
|
+
// all secrets are stored in eu-west-1
|
|
23866
|
+
});
|
|
23856
23867
|
var handler = async (event) => {
|
|
23857
23868
|
const sharedLatamSecretArnPrefix = requireProperty(process.env, "SHARED_LATAM_SECRET_ARN_PREFIX");
|
|
23858
23869
|
const sharedEuSecretArnPrefix = requireProperty(process.env, "SHARED_EU_SECRET_ARN_PREFIX");
|
|
@@ -3,8 +3,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.requireProperty = exports.handler = void 0;
|
|
4
4
|
const org = require("@aws-sdk/client-organizations");
|
|
5
5
|
const sec = require("@aws-sdk/client-secrets-manager");
|
|
6
|
-
const
|
|
7
|
-
const
|
|
6
|
+
const util_retry_1 = require("@smithy/util-retry");
|
|
7
|
+
const organizations = new org.Organizations({
|
|
8
|
+
// Organizations allows at max 5 requests in parellel. So we allow 5 retries with a maximum delay of 2 minutes.
|
|
9
|
+
retryStrategy: new util_retry_1.ConfiguredRetryStrategy(5, (attempt) => attempt * 24 * 1000),
|
|
10
|
+
});
|
|
11
|
+
const secretsManager = new sec.SecretsManager({
|
|
12
|
+
region: 'eu-west-1', // all secrets are stored in eu-west-1
|
|
13
|
+
});
|
|
8
14
|
const handler = async (event) => {
|
|
9
15
|
const sharedLatamSecretArnPrefix = (0, exports.requireProperty)(process.env, 'SHARED_LATAM_SECRET_ARN_PREFIX');
|
|
10
16
|
const sharedEuSecretArnPrefix = (0, exports.requireProperty)(process.env, 'SHARED_EU_SECRET_ARN_PREFIX');
|
|
@@ -39,4 +45,4 @@ const requireProperty = (resourceProperties, propertyName) => {
|
|
|
39
45
|
return value;
|
|
40
46
|
};
|
|
41
47
|
exports.requireProperty = requireProperty;
|
|
42
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
48
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib24tY3JlYXRlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2RhdGFkb2d2Mi9zZWNyZXQtbG9jYXRvci1jdXN0b20tcmVzb3VyY2Uvb24tY3JlYXRlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBLHFEQUFxRDtBQUNyRCx1REFBdUQ7QUFDdkQsbURBQTZEO0FBRzdELE1BQU0sYUFBYSxHQUFHLElBQUksR0FBRyxDQUFDLGFBQWEsQ0FBQztJQUMxQywrR0FBK0c7SUFDL0csYUFBYSxFQUFFLElBQUksb0NBQXVCLENBQUMsQ0FBQyxFQUFFLENBQUMsT0FBTyxFQUFFLEVBQUUsQ0FBQyxPQUFPLEdBQUcsRUFBRSxHQUFHLElBQUksQ0FBQztDQUNoRixDQUFDLENBQUM7QUFDSCxNQUFNLGNBQWMsR0FBRyxJQUFJLEdBQUcsQ0FBQyxjQUFjLENBQUM7SUFDNUMsTUFBTSxFQUFFLFdBQVcsRUFBRSxzQ0FBc0M7Q0FDNUQsQ0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