@aws-sdk/client-ecs 3.1075.0 → 3.1076.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 +4635 -15
- package/dist-es/models/enums.js +5 -0
- package/dist-es/schemas/schemas_0.js +14 -6
- package/dist-types/commands/CreateServiceCommand.d.ts +10 -0
- package/dist-types/commands/DeleteServiceCommand.d.ts +5 -0
- package/dist-types/commands/DescribeServiceDeploymentsCommand.d.ts +19 -4
- package/dist-types/commands/DescribeServicesCommand.d.ts +5 -0
- package/dist-types/commands/UpdateServiceCommand.d.ts +10 -0
- package/dist-types/models/enums.d.ts +22 -0
- package/dist-types/models/models_0.d.ts +28 -18
- package/dist-types/models/models_1.d.ts +17 -1
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/schemas/schemas_0.d.ts +1 -0
- package/dist-types/ts3.4/models/enums.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +7 -4
- package/dist-types/ts3.4/models/models_1.d.ts +4 -1
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +7 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +7 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +7 -1
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +1 -0
- package/package.json +8 -8
- package/dist-cjs/auth/httpAuthSchemeProvider.js +0 -40
- package/dist-cjs/endpoint/bdd.js +0 -46
- package/dist-cjs/endpoint/endpointResolver.js +0 -14
- package/dist-cjs/models/ECSServiceException.js +0 -8
- package/dist-cjs/models/errors.js +0 -363
- package/dist-cjs/runtimeConfig.browser.js +0 -32
- package/dist-cjs/runtimeConfig.js +0 -45
- package/dist-cjs/runtimeConfig.native.js +0 -12
- package/dist-cjs/runtimeConfig.shared.js +0 -39
- package/dist-cjs/schemas/schemas_0.js +0 -3987
package/dist-es/models/enums.js
CHANGED
|
@@ -389,6 +389,11 @@ export const ServiceDeploymentRollbackMonitorsStatus = {
|
|
|
389
389
|
MONITORING_COMPLETE: "MONITORING_COMPLETE",
|
|
390
390
|
TRIGGERED: "TRIGGERED",
|
|
391
391
|
};
|
|
392
|
+
export const ThresholdType = {
|
|
393
|
+
BOUNDED_PERCENT: "BOUNDED_PERCENT",
|
|
394
|
+
COUNT: "COUNT",
|
|
395
|
+
UNBOUNDED_PERCENT: "UNBOUNDED_PERCENT",
|
|
396
|
+
};
|
|
392
397
|
export const DeploymentLifecycleHookStage = {
|
|
393
398
|
POST_PRODUCTION_TRAFFIC_SHIFT: "POST_PRODUCTION_TRAFFIC_SHIFT",
|
|
394
399
|
POST_SCALE_UP: "POST_SCALE_UP",
|
|
@@ -483,7 +483,8 @@ const _Set = "Setting";
|
|
|
483
483
|
const _Sett = "Settings";
|
|
484
484
|
const _St = "Statistics";
|
|
485
485
|
const _T = "Tag";
|
|
486
|
-
const _TC = "
|
|
486
|
+
const _TC = "ThresholdConfiguration";
|
|
487
|
+
const _TCi = "TimeoutConfiguration";
|
|
487
488
|
const _TD = "TaskDefinition";
|
|
488
489
|
const _TDL = "TaskDefinitionList";
|
|
489
490
|
const _TDPC = "TaskDefinitionPlacementConstraint";
|
|
@@ -954,6 +955,7 @@ const _rIe = "referenceId";
|
|
|
954
955
|
const _rIu = "runtimeId";
|
|
955
956
|
const _rMT = "resourceManagementType";
|
|
956
957
|
const _rO = "readOnly";
|
|
958
|
+
const _rOHT = "resetOnHealthyTask";
|
|
957
959
|
const _rP = "reservationPreference";
|
|
958
960
|
const _rPTW = "requestedProductionTrafficWeight";
|
|
959
961
|
const _rPe = "restartPolicy";
|
|
@@ -1059,9 +1061,10 @@ const _tAN = "triggeredAlarmNames";
|
|
|
1059
1061
|
const _tAa = "targetArn";
|
|
1060
1062
|
const _tAas = "taskArns";
|
|
1061
1063
|
const _tAi = "timeoutAction";
|
|
1062
|
-
const _tC = "
|
|
1064
|
+
const _tC = "thresholdConfiguration";
|
|
1063
1065
|
const _tCa = "targetCapacity";
|
|
1064
1066
|
const _tCar = "targetConfiguration";
|
|
1067
|
+
const _tCi = "timeoutConfiguration";
|
|
1065
1068
|
const _tD = "taskDefinition";
|
|
1066
1069
|
const _tDA = "taskDefinitionArn";
|
|
1067
1070
|
const _tDAa = "taskDefinitionArns";
|
|
@@ -1754,8 +1757,8 @@ export var DeploymentAlarms$ = [3, n0, _DA,
|
|
|
1754
1757
|
];
|
|
1755
1758
|
export var DeploymentCircuitBreaker$ = [3, n0, _DCBe,
|
|
1756
1759
|
0,
|
|
1757
|
-
[_enab, _rol],
|
|
1758
|
-
[2, 2], 2
|
|
1760
|
+
[_enab, _rol, _rOHT, _tC],
|
|
1761
|
+
[2, 2, 2, () => ThresholdConfiguration$], 2
|
|
1759
1762
|
];
|
|
1760
1763
|
export var DeploymentConfiguration$ = [3, n0, _DC,
|
|
1761
1764
|
0,
|
|
@@ -1774,7 +1777,7 @@ export var DeploymentEphemeralStorage$ = [3, n0, _DES,
|
|
|
1774
1777
|
];
|
|
1775
1778
|
export var DeploymentLifecycleHook$ = [3, n0, _DLH,
|
|
1776
1779
|
0,
|
|
1777
|
-
[_tT, _hTA, _rA, _lSi, _hD,
|
|
1780
|
+
[_tT, _hTA, _rA, _lSi, _hD, _tCi],
|
|
1778
1781
|
[0, 0, 0, 64 | 0, 15, () => DeploymentLifecycleHookTimeoutConfiguration$]
|
|
1779
1782
|
];
|
|
1780
1783
|
export var DeploymentLifecycleHookDetail$ = [3, n0, _DLHD,
|
|
@@ -2867,7 +2870,12 @@ export var TaskVolumeConfiguration$ = [3, n0, _TVC,
|
|
|
2867
2870
|
[_n, _mEBSV],
|
|
2868
2871
|
[0, () => TaskManagedEBSVolumeConfiguration$], 1
|
|
2869
2872
|
];
|
|
2870
|
-
export var
|
|
2873
|
+
export var ThresholdConfiguration$ = [3, n0, _TC,
|
|
2874
|
+
0,
|
|
2875
|
+
[_t, _v],
|
|
2876
|
+
[0, 1], 2
|
|
2877
|
+
];
|
|
2878
|
+
export var TimeoutConfiguration$ = [3, n0, _TCi,
|
|
2871
2879
|
0,
|
|
2872
2880
|
[_iTS, _pRTS],
|
|
2873
2881
|
[1, 1]
|
|
@@ -81,6 +81,11 @@ declare const CreateServiceCommand_base: {
|
|
|
81
81
|
* deploymentCircuitBreaker: { // DeploymentCircuitBreaker
|
|
82
82
|
* enable: true || false, // required
|
|
83
83
|
* rollback: true || false, // required
|
|
84
|
+
* resetOnHealthyTask: true || false,
|
|
85
|
+
* thresholdConfiguration: { // ThresholdConfiguration
|
|
86
|
+
* type: "COUNT" || "BOUNDED_PERCENT" || "UNBOUNDED_PERCENT", // required
|
|
87
|
+
* value: Number("int"), // required
|
|
88
|
+
* },
|
|
84
89
|
* },
|
|
85
90
|
* maximumPercent: Number("int"),
|
|
86
91
|
* minimumHealthyPercent: Number("int"),
|
|
@@ -301,6 +306,11 @@ declare const CreateServiceCommand_base: {
|
|
|
301
306
|
* // deploymentCircuitBreaker: { // DeploymentCircuitBreaker
|
|
302
307
|
* // enable: true || false, // required
|
|
303
308
|
* // rollback: true || false, // required
|
|
309
|
+
* // resetOnHealthyTask: true || false,
|
|
310
|
+
* // thresholdConfiguration: { // ThresholdConfiguration
|
|
311
|
+
* // type: "COUNT" || "BOUNDED_PERCENT" || "UNBOUNDED_PERCENT", // required
|
|
312
|
+
* // value: Number("int"), // required
|
|
313
|
+
* // },
|
|
304
314
|
* // },
|
|
305
315
|
* // maximumPercent: Number("int"),
|
|
306
316
|
* // minimumHealthyPercent: Number("int"),
|
|
@@ -91,6 +91,11 @@ declare const DeleteServiceCommand_base: {
|
|
|
91
91
|
* // deploymentCircuitBreaker: { // DeploymentCircuitBreaker
|
|
92
92
|
* // enable: true || false, // required
|
|
93
93
|
* // rollback: true || false, // required
|
|
94
|
+
* // resetOnHealthyTask: true || false,
|
|
95
|
+
* // thresholdConfiguration: { // ThresholdConfiguration
|
|
96
|
+
* // type: "COUNT" || "BOUNDED_PERCENT" || "UNBOUNDED_PERCENT", // required
|
|
97
|
+
* // value: Number("int"), // required
|
|
98
|
+
* // },
|
|
94
99
|
* // },
|
|
95
100
|
* // maximumPercent: Number("int"),
|
|
96
101
|
* // minimumHealthyPercent: Number("int"),
|
|
@@ -91,6 +91,11 @@ declare const DescribeServiceDeploymentsCommand_base: {
|
|
|
91
91
|
* // deploymentCircuitBreaker: { // DeploymentCircuitBreaker
|
|
92
92
|
* // enable: true || false, // required
|
|
93
93
|
* // rollback: true || false, // required
|
|
94
|
+
* // resetOnHealthyTask: true || false,
|
|
95
|
+
* // thresholdConfiguration: { // ThresholdConfiguration
|
|
96
|
+
* // type: "COUNT" || "BOUNDED_PERCENT" || "UNBOUNDED_PERCENT", // required
|
|
97
|
+
* // value: Number("int"), // required
|
|
98
|
+
* // },
|
|
94
99
|
* // },
|
|
95
100
|
* // maximumPercent: Number("int"),
|
|
96
101
|
* // minimumHealthyPercent: Number("int"),
|
|
@@ -208,8 +213,13 @@ declare const DescribeServiceDeploymentsCommand_base: {
|
|
|
208
213
|
* clusterArn: "arn:aws:ecs:us-west-2:123456789012:cluster/example",
|
|
209
214
|
* deploymentConfiguration: {
|
|
210
215
|
* deploymentCircuitBreaker: {
|
|
211
|
-
* enable:
|
|
212
|
-
*
|
|
216
|
+
* enable: true,
|
|
217
|
+
* resetOnHealthyTask: true,
|
|
218
|
+
* rollback: true,
|
|
219
|
+
* thresholdConfiguration: {
|
|
220
|
+
* type: "BOUNDED_PERCENT",
|
|
221
|
+
* value: 50
|
|
222
|
+
* }
|
|
213
223
|
* },
|
|
214
224
|
* maximumPercent: 200,
|
|
215
225
|
* minimumHealthyPercent: 100
|
|
@@ -248,8 +258,13 @@ declare const DescribeServiceDeploymentsCommand_base: {
|
|
|
248
258
|
* clusterArn: "arn:aws:ecs:us-east-1:123456789012:cluster/MyCluster",
|
|
249
259
|
* deploymentConfiguration: {
|
|
250
260
|
* deploymentCircuitBreaker: {
|
|
251
|
-
* enable:
|
|
252
|
-
*
|
|
261
|
+
* enable: true,
|
|
262
|
+
* resetOnHealthyTask: true,
|
|
263
|
+
* rollback: true,
|
|
264
|
+
* thresholdConfiguration: {
|
|
265
|
+
* type: "BOUNDED_PERCENT",
|
|
266
|
+
* value: 50
|
|
267
|
+
* }
|
|
253
268
|
* },
|
|
254
269
|
* lifecycleHooks: [
|
|
255
270
|
* {
|
|
@@ -96,6 +96,11 @@ declare const DescribeServicesCommand_base: {
|
|
|
96
96
|
* // deploymentCircuitBreaker: { // DeploymentCircuitBreaker
|
|
97
97
|
* // enable: true || false, // required
|
|
98
98
|
* // rollback: true || false, // required
|
|
99
|
+
* // resetOnHealthyTask: true || false,
|
|
100
|
+
* // thresholdConfiguration: { // ThresholdConfiguration
|
|
101
|
+
* // type: "COUNT" || "BOUNDED_PERCENT" || "UNBOUNDED_PERCENT", // required
|
|
102
|
+
* // value: Number("int"), // required
|
|
103
|
+
* // },
|
|
99
104
|
* // },
|
|
100
105
|
* // maximumPercent: Number("int"),
|
|
101
106
|
* // minimumHealthyPercent: Number("int"),
|
|
@@ -54,6 +54,11 @@ declare const UpdateServiceCommand_base: {
|
|
|
54
54
|
* deploymentCircuitBreaker: { // DeploymentCircuitBreaker
|
|
55
55
|
* enable: true || false, // required
|
|
56
56
|
* rollback: true || false, // required
|
|
57
|
+
* resetOnHealthyTask: true || false,
|
|
58
|
+
* thresholdConfiguration: { // ThresholdConfiguration
|
|
59
|
+
* type: "COUNT" || "BOUNDED_PERCENT" || "UNBOUNDED_PERCENT", // required
|
|
60
|
+
* value: Number("int"), // required
|
|
61
|
+
* },
|
|
57
62
|
* },
|
|
58
63
|
* maximumPercent: Number("int"),
|
|
59
64
|
* minimumHealthyPercent: Number("int"),
|
|
@@ -292,6 +297,11 @@ declare const UpdateServiceCommand_base: {
|
|
|
292
297
|
* // deploymentCircuitBreaker: { // DeploymentCircuitBreaker
|
|
293
298
|
* // enable: true || false, // required
|
|
294
299
|
* // rollback: true || false, // required
|
|
300
|
+
* // resetOnHealthyTask: true || false,
|
|
301
|
+
* // thresholdConfiguration: { // ThresholdConfiguration
|
|
302
|
+
* // type: "COUNT" || "BOUNDED_PERCENT" || "UNBOUNDED_PERCENT", // required
|
|
303
|
+
* // value: Number("int"), // required
|
|
304
|
+
* // },
|
|
295
305
|
* // },
|
|
296
306
|
* // maximumPercent: Number("int"),
|
|
297
307
|
* // minimumHealthyPercent: Number("int"),
|
|
@@ -985,6 +985,28 @@ export declare const ServiceDeploymentRollbackMonitorsStatus: {
|
|
|
985
985
|
* @public
|
|
986
986
|
*/
|
|
987
987
|
export type ServiceDeploymentRollbackMonitorsStatus = (typeof ServiceDeploymentRollbackMonitorsStatus)[keyof typeof ServiceDeploymentRollbackMonitorsStatus];
|
|
988
|
+
/**
|
|
989
|
+
* @public
|
|
990
|
+
* @enum
|
|
991
|
+
*/
|
|
992
|
+
export declare const ThresholdType: {
|
|
993
|
+
/**
|
|
994
|
+
* <p>Amazon ECS calculates the failure threshold by multiplying <code>value</code> by the latest service desired count, then clamps the result to a minimum of <code>3</code> and a maximum of <code>200</code>. This is the default threshold type.</p>
|
|
995
|
+
*/
|
|
996
|
+
readonly BOUNDED_PERCENT: "BOUNDED_PERCENT";
|
|
997
|
+
/**
|
|
998
|
+
* <p>Amazon ECS uses the integer provided in <code>value</code> directly as the failure threshold.</p>
|
|
999
|
+
*/
|
|
1000
|
+
readonly COUNT: "COUNT";
|
|
1001
|
+
/**
|
|
1002
|
+
* <p>Amazon ECS calculates the failure threshold by multiplying <code>value</code> by the latest service desired count, without applying the <code>3</code>-to-<code>200</code> bounds. Use this when the desired count is large enough that the calculated threshold should be allowed to exceed <code>200</code>.</p>
|
|
1003
|
+
*/
|
|
1004
|
+
readonly UNBOUNDED_PERCENT: "UNBOUNDED_PERCENT";
|
|
1005
|
+
};
|
|
1006
|
+
/**
|
|
1007
|
+
* @public
|
|
1008
|
+
*/
|
|
1009
|
+
export type ThresholdType = (typeof ThresholdType)[keyof typeof ThresholdType];
|
|
988
1010
|
/**
|
|
989
1011
|
* @public
|
|
990
1012
|
* @enum
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { DocumentType as __DocumentType } from "@smithy/types";
|
|
2
|
-
import type { AcceleratorManufacturer, AcceleratorName, AcceleratorType, AccessType, AgentUpdateStatus, ApplicationProtocol, AssignPublicIp, AutoRepairActionsStatus, AvailabilityZoneRebalancing, BareMetal, BurstablePerformance, CapacityOptionType, CapacityProviderField, CapacityProviderStatus, CapacityProviderType, CapacityProviderUpdateStatus, CapacityReservationPreference, ClusterField, ClusterSettingName, Compatibility, ContainerCondition, ContainerInstanceField, ContainerInstanceStatus, CPUArchitecture, CpuManufacturer, DaemonDeploymentRollbackMonitorsStatus, DaemonDeploymentStatus, DaemonIpcMode, DaemonPidMode, DaemonPropagateTags, DaemonStatus, DaemonTaskDefinitionRevisionFilter, DaemonTaskDefinitionStatus, DaemonTaskDefinitionStatusFilter, DeploymentControllerType, DeploymentLifecycleHookAction, DeploymentLifecycleHookStage, DeploymentLifecycleHookStatus, DeploymentLifecycleHookTargetType, DeploymentRolloutState, DeploymentStrategy, DesiredStatus, DeviceCgroupPermission, EBSResourceType, EFSAuthorizationConfigIAM, EFSTransitEncryption, EnvironmentFileType, ExecuteCommandLogging, ExpressGatewayServiceInclude, ExpressGatewayServiceScalingMetric, ExpressGatewayServiceStatusCode, FirelensConfigurationType, InstanceGeneration, InstanceHealthCheckState, InstanceHealthCheckType, IpcMode, LaunchType, LocalStorage, LocalStorageType, LogDriver, ManagedAgentName, ManagedDraining, ManagedInstancesMonitoringOptions, ManagedResourceStatus, ManagedScalingStatus, ManagedTerminationProtection, NetworkMode, OSFamily, PidMode, PlacementConstraintType, PlacementStrategyType, PlatformDeviceType, PropagateMITags, PropagateTags, ProxyConfigurationType, ResourceManagementType, ResourceType, ScaleUnit, SchedulingStrategy, Scope, ServiceConnectAccessLoggingFormat, ServiceConnectIncludeQueryParameters, ServiceDeploymentLifecycleStage, ServiceDeploymentRollbackMonitorsStatus, ServiceDeploymentStatus, ServiceField, SettingName, SettingType, SortOrder, StabilityStatus, StopServiceDeploymentStopType, TargetType, TaskDefinitionFamilyStatus, TaskDefinitionField, TaskDefinitionPlacementConstraintType, TaskDefinitionStatus, TaskFilesystemType, TransportProtocol, UlimitName, VersionConsistency } from "./enums";
|
|
2
|
+
import type { AcceleratorManufacturer, AcceleratorName, AcceleratorType, AccessType, AgentUpdateStatus, ApplicationProtocol, AssignPublicIp, AutoRepairActionsStatus, AvailabilityZoneRebalancing, BareMetal, BurstablePerformance, CapacityOptionType, CapacityProviderField, CapacityProviderStatus, CapacityProviderType, CapacityProviderUpdateStatus, CapacityReservationPreference, ClusterField, ClusterSettingName, Compatibility, ContainerCondition, ContainerInstanceField, ContainerInstanceStatus, CPUArchitecture, CpuManufacturer, DaemonDeploymentRollbackMonitorsStatus, DaemonDeploymentStatus, DaemonIpcMode, DaemonPidMode, DaemonPropagateTags, DaemonStatus, DaemonTaskDefinitionRevisionFilter, DaemonTaskDefinitionStatus, DaemonTaskDefinitionStatusFilter, DeploymentControllerType, DeploymentLifecycleHookAction, DeploymentLifecycleHookStage, DeploymentLifecycleHookStatus, DeploymentLifecycleHookTargetType, DeploymentRolloutState, DeploymentStrategy, DesiredStatus, DeviceCgroupPermission, EBSResourceType, EFSAuthorizationConfigIAM, EFSTransitEncryption, EnvironmentFileType, ExecuteCommandLogging, ExpressGatewayServiceInclude, ExpressGatewayServiceScalingMetric, ExpressGatewayServiceStatusCode, FirelensConfigurationType, InstanceGeneration, InstanceHealthCheckState, InstanceHealthCheckType, IpcMode, LaunchType, LocalStorage, LocalStorageType, LogDriver, ManagedAgentName, ManagedDraining, ManagedInstancesMonitoringOptions, ManagedResourceStatus, ManagedScalingStatus, ManagedTerminationProtection, NetworkMode, OSFamily, PidMode, PlacementConstraintType, PlacementStrategyType, PlatformDeviceType, PropagateMITags, PropagateTags, ProxyConfigurationType, ResourceManagementType, ResourceType, ScaleUnit, SchedulingStrategy, Scope, ServiceConnectAccessLoggingFormat, ServiceConnectIncludeQueryParameters, ServiceDeploymentLifecycleStage, ServiceDeploymentRollbackMonitorsStatus, ServiceDeploymentStatus, ServiceField, SettingName, SettingType, SortOrder, StabilityStatus, StopServiceDeploymentStopType, TargetType, TaskDefinitionFamilyStatus, TaskDefinitionField, TaskDefinitionPlacementConstraintType, TaskDefinitionStatus, TaskFilesystemType, ThresholdType, TransportProtocol, UlimitName, VersionConsistency } from "./enums";
|
|
3
3
|
/**
|
|
4
4
|
* <p>The minimum and maximum number of accelerators (such as GPUs) for instance type selection. This is used for workloads that require specific numbers of accelerators.</p>
|
|
5
5
|
* @public
|
|
@@ -5169,6 +5169,22 @@ export interface CanaryConfiguration {
|
|
|
5169
5169
|
*/
|
|
5170
5170
|
canaryBakeTimeInMinutes?: number | undefined;
|
|
5171
5171
|
}
|
|
5172
|
+
/**
|
|
5173
|
+
* <p>Defines the failure threshold that the deployment circuit breaker uses to monitor a deployment. The <code>type</code> and <code>value</code> together determine the number of task failures that are tolerated before the circuit breaker triggers.</p> <p>By default, the threshold configuration uses a <code>type</code> of <code>BOUNDED_PERCENT</code> with a <code>value</code> of <code>50</code>.</p>
|
|
5174
|
+
* @public
|
|
5175
|
+
*/
|
|
5176
|
+
export interface ThresholdConfiguration {
|
|
5177
|
+
/**
|
|
5178
|
+
* <p>Determines how <code>value</code> is used to calculate the failure threshold. For the percentage types (<code>BOUNDED_PERCENT</code> and <code>UNBOUNDED_PERCENT</code>), <code>value</code> is multiplied by the latest service desired count; for <code>COUNT</code>, <code>value</code> is used directly. The default is <code>BOUNDED_PERCENT</code>.</p>
|
|
5179
|
+
* @public
|
|
5180
|
+
*/
|
|
5181
|
+
type: ThresholdType | undefined;
|
|
5182
|
+
/**
|
|
5183
|
+
* <p>The integer used to calculate the failure threshold. When <code>type</code> is <code>COUNT</code>, this is the failure threshold itself. When <code>type</code> is a percentage type, this is the percentage that Amazon ECS multiplies by the latest service desired count to calculate the failure threshold.</p>
|
|
5184
|
+
* @public
|
|
5185
|
+
*/
|
|
5186
|
+
value: number | undefined;
|
|
5187
|
+
}
|
|
5172
5188
|
/**
|
|
5173
5189
|
* <note> <p>The deployment circuit breaker can only be used for services using the rolling update (<code>ECS</code>) deployment type.</p> </note> <p>The <b>deployment circuit breaker</b> determines whether a service deployment will fail if the service can't reach a steady state. If it is turned on, a service deployment will transition to a failed state and stop launching new tasks. You can also configure Amazon ECS to roll back your service to the last completed deployment after a failure. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/deployment-type-ecs.html">Rolling update</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p> <p>For more information about API failure reasons, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/api_failures_messages.html">API failure reasons</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p>
|
|
5174
5190
|
* @public
|
|
@@ -5184,6 +5200,16 @@ export interface DeploymentCircuitBreaker {
|
|
|
5184
5200
|
* @public
|
|
5185
5201
|
*/
|
|
5186
5202
|
rollback: boolean | undefined;
|
|
5203
|
+
/**
|
|
5204
|
+
* <p>Determines whether the deployment circuit breaker resets its failure count when a task reaches a healthy state. When set to <code>true</code>, a healthy task resets the failure count to <code>0</code>; when <code>false</code>, it doesn't.</p>
|
|
5205
|
+
* @public
|
|
5206
|
+
*/
|
|
5207
|
+
resetOnHealthyTask?: boolean | undefined;
|
|
5208
|
+
/**
|
|
5209
|
+
* <p>The threshold configuration that controls when the deployment circuit breaker triggers. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_ThresholdConfiguration.html">ThresholdConfiguration</a>.</p>
|
|
5210
|
+
* @public
|
|
5211
|
+
*/
|
|
5212
|
+
thresholdConfiguration?: ThresholdConfiguration | undefined;
|
|
5187
5213
|
}
|
|
5188
5214
|
/**
|
|
5189
5215
|
* <p>The timeout configuration for a deployment lifecycle hook. This determines how long Amazon ECS waits for the hook to complete before taking the specified timeout action.</p>
|
|
@@ -7327,7 +7353,7 @@ export interface UpdateExpressGatewayServiceRequest {
|
|
|
7327
7353
|
*/
|
|
7328
7354
|
scalingTarget?: ExpressGatewayScalingTarget | undefined;
|
|
7329
7355
|
/**
|
|
7330
|
-
* <p>The Amazon Resource Name (ARN) of a task definition to use to update the Express Gateway service. This allows you to manage your own task definition, giving you more control over the service configuration such as adding sidecar containers.</p> <p>The task definition must have a container named <code>Main</code> with a single TCP port mapping that includes a container port and port name. The task definition must also have <code>FARGATE</code> compatibility.</p> <p>If you provide a task definition ARN, you cannot also specify <code>primaryContainer</code>, <code>taskRoleArn</code>, <code>cpu</code>, or <code>memory</code>.</p>
|
|
7356
|
+
* <p>The Amazon Resource Name (ARN) of a task definition to use to update the Express Gateway service. This allows you to manage your own task definition, giving you more control over the service configuration such as adding sidecar containers.</p> <p>The task definition must have a container named <code>Main</code> with a single TCP port mapping that includes a container port and port name. The task definition must also have <code>FARGATE</code> compatibility.</p> <p>If you provide a task definition ARN, you cannot also specify <code>primaryContainer</code>, <code>executionRoleArn</code>, <code>taskRoleArn</code>, <code>cpu</code>, or <code>memory</code>.</p>
|
|
7331
7357
|
* @public
|
|
7332
7358
|
*/
|
|
7333
7359
|
taskDefinitionArn?: string | undefined;
|
|
@@ -7994,19 +8020,3 @@ export interface ECSManagedResources {
|
|
|
7994
8020
|
*/
|
|
7995
8021
|
logGroups?: ManagedLogGroup[] | undefined;
|
|
7996
8022
|
}
|
|
7997
|
-
/**
|
|
7998
|
-
* <p>The resolved load balancer configuration for a service revision. This includes information about which target groups serve traffic and which listener rules direct traffic to them.</p>
|
|
7999
|
-
* @public
|
|
8000
|
-
*/
|
|
8001
|
-
export interface ServiceRevisionLoadBalancer {
|
|
8002
|
-
/**
|
|
8003
|
-
* <p>The Amazon Resource Name (ARN) of the target group associated with the service revision.</p>
|
|
8004
|
-
* @public
|
|
8005
|
-
*/
|
|
8006
|
-
targetGroupArn?: string | undefined;
|
|
8007
|
-
/**
|
|
8008
|
-
* <p>The Amazon Resource Name (ARN) of the production listener rule or listener that directs traffic to the target group associated with the service revision.</p>
|
|
8009
|
-
* @public
|
|
8010
|
-
*/
|
|
8011
|
-
productionListenerRule?: string | undefined;
|
|
8012
|
-
}
|
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
import type { Compatibility, Connectivity, HealthStatus, IpcMode, LaunchType, ManagedAgentName, NetworkMode, PidMode, PropagateTags, SortOrder, TaskDefinitionStatus, TaskField, TaskFilesystemType, TaskSetField, TaskStopCode } from "./enums";
|
|
2
|
-
import type { Attachment, Attribute, CapacityProviderStrategyItem, ContainerDefinition, ContainerImage, DeploymentEphemeralStorage, EBSTagSpecification, ECSManagedResources, EnvironmentFile, EphemeralStorage, Failure, InferenceAccelerator, KeyValuePair, LoadBalancer, MonitoringConfiguration, NetworkBinding, NetworkConfiguration, PlacementConstraint, PlacementStrategy, ProxyConfiguration, ResourceRequirement, RuntimePlatform, Scale, ServiceConnectConfiguration, ServiceRegistry,
|
|
2
|
+
import type { Attachment, Attribute, CapacityProviderStrategyItem, ContainerDefinition, ContainerImage, DeploymentEphemeralStorage, EBSTagSpecification, ECSManagedResources, EnvironmentFile, EphemeralStorage, Failure, InferenceAccelerator, KeyValuePair, LoadBalancer, MonitoringConfiguration, NetworkBinding, NetworkConfiguration, PlacementConstraint, PlacementStrategy, ProxyConfiguration, ResourceRequirement, RuntimePlatform, Scale, ServiceConnectConfiguration, ServiceRegistry, ServiceVolumeConfiguration, Tag, TaskDefinition, TaskDefinitionPlacementConstraint, TaskSet, Volume, VpcLatticeConfiguration } from "./models_0";
|
|
3
|
+
/**
|
|
4
|
+
* <p>The resolved load balancer configuration for a service revision. This includes information about which target groups serve traffic and which listener rules direct traffic to them.</p>
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
export interface ServiceRevisionLoadBalancer {
|
|
8
|
+
/**
|
|
9
|
+
* <p>The Amazon Resource Name (ARN) of the target group associated with the service revision.</p>
|
|
10
|
+
* @public
|
|
11
|
+
*/
|
|
12
|
+
targetGroupArn?: string | undefined;
|
|
13
|
+
/**
|
|
14
|
+
* <p>The Amazon Resource Name (ARN) of the production listener rule or listener that directs traffic to the target group associated with the service revision.</p>
|
|
15
|
+
* @public
|
|
16
|
+
*/
|
|
17
|
+
productionListenerRule?: string | undefined;
|
|
18
|
+
}
|
|
3
19
|
/**
|
|
4
20
|
* <p>The resolved configuration for a service revision, which contains the actual resources your service revision uses, such as which target groups serve traffic.</p>
|
|
5
21
|
* @public
|
|
@@ -14,7 +14,7 @@ export declare const getRuntimeConfig: (config: ECSClientConfig) => {
|
|
|
14
14
|
requestHandler: import("@smithy/core/protocols").HttpHandler<any> | RequestHandler;
|
|
15
15
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
16
16
|
sha256: import("@smithy/types").HashConstructor;
|
|
17
|
-
streamCollector: import("
|
|
17
|
+
streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
|
|
18
18
|
useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
|
|
19
19
|
useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
|
|
20
20
|
cacheMiddleware?: boolean | undefined;
|
|
@@ -15,7 +15,7 @@ export declare const getRuntimeConfig: (config: ECSClientConfig) => {
|
|
|
15
15
|
requestHandler: RequestHandler | import("@smithy/core/protocols").HttpHandler<any>;
|
|
16
16
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
17
17
|
sha256: import("@smithy/types").HashConstructor;
|
|
18
|
-
streamCollector: import("
|
|
18
|
+
streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
|
|
19
19
|
useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
20
20
|
useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
21
21
|
userAgentAppId: string | import("@smithy/types").Provider<string | undefined>;
|
|
@@ -15,7 +15,7 @@ export declare const getRuntimeConfig: (config: ECSClientConfig) => {
|
|
|
15
15
|
apiVersion: string;
|
|
16
16
|
urlParser: import("@smithy/types").UrlParser;
|
|
17
17
|
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
18
|
-
streamCollector: import("
|
|
18
|
+
streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
|
|
19
19
|
base64Decoder: import("@smithy/types").Decoder;
|
|
20
20
|
base64Encoder: (_input: Uint8Array | string) => string;
|
|
21
21
|
utf8Decoder: import("@smithy/types").Decoder;
|
|
@@ -347,6 +347,7 @@ export declare var TaskManagedEBSVolumeTerminationPolicy$: StaticStructureSchema
|
|
|
347
347
|
export declare var TaskOverride$: StaticStructureSchema;
|
|
348
348
|
export declare var TaskSet$: StaticStructureSchema;
|
|
349
349
|
export declare var TaskVolumeConfiguration$: StaticStructureSchema;
|
|
350
|
+
export declare var ThresholdConfiguration$: StaticStructureSchema;
|
|
350
351
|
export declare var TimeoutConfiguration$: StaticStructureSchema;
|
|
351
352
|
export declare var Tmpfs$: StaticStructureSchema;
|
|
352
353
|
export declare var TotalLocalStorageGBRequest$: StaticStructureSchema;
|
|
@@ -513,6 +513,12 @@ export declare const ServiceDeploymentRollbackMonitorsStatus: {
|
|
|
513
513
|
};
|
|
514
514
|
export type ServiceDeploymentRollbackMonitorsStatus =
|
|
515
515
|
(typeof ServiceDeploymentRollbackMonitorsStatus)[keyof typeof ServiceDeploymentRollbackMonitorsStatus];
|
|
516
|
+
export declare const ThresholdType: {
|
|
517
|
+
readonly BOUNDED_PERCENT: "BOUNDED_PERCENT";
|
|
518
|
+
readonly COUNT: "COUNT";
|
|
519
|
+
readonly UNBOUNDED_PERCENT: "UNBOUNDED_PERCENT";
|
|
520
|
+
};
|
|
521
|
+
export type ThresholdType = (typeof ThresholdType)[keyof typeof ThresholdType];
|
|
516
522
|
export declare const DeploymentLifecycleHookStage: {
|
|
517
523
|
readonly POST_PRODUCTION_TRAFFIC_SHIFT: "POST_PRODUCTION_TRAFFIC_SHIFT";
|
|
518
524
|
readonly POST_SCALE_UP: "POST_SCALE_UP";
|
|
@@ -97,6 +97,7 @@ import {
|
|
|
97
97
|
TaskDefinitionPlacementConstraintType,
|
|
98
98
|
TaskDefinitionStatus,
|
|
99
99
|
TaskFilesystemType,
|
|
100
|
+
ThresholdType,
|
|
100
101
|
TransportProtocol,
|
|
101
102
|
UlimitName,
|
|
102
103
|
VersionConsistency,
|
|
@@ -1322,9 +1323,15 @@ export interface CanaryConfiguration {
|
|
|
1322
1323
|
canaryPercent?: number | undefined;
|
|
1323
1324
|
canaryBakeTimeInMinutes?: number | undefined;
|
|
1324
1325
|
}
|
|
1326
|
+
export interface ThresholdConfiguration {
|
|
1327
|
+
type: ThresholdType | undefined;
|
|
1328
|
+
value: number | undefined;
|
|
1329
|
+
}
|
|
1325
1330
|
export interface DeploymentCircuitBreaker {
|
|
1326
1331
|
enable: boolean | undefined;
|
|
1327
1332
|
rollback: boolean | undefined;
|
|
1333
|
+
resetOnHealthyTask?: boolean | undefined;
|
|
1334
|
+
thresholdConfiguration?: ThresholdConfiguration | undefined;
|
|
1328
1335
|
}
|
|
1329
1336
|
export interface DeploymentLifecycleHookTimeoutConfiguration {
|
|
1330
1337
|
timeoutInMinutes?: number | undefined;
|
|
@@ -1967,7 +1974,3 @@ export interface ECSManagedResources {
|
|
|
1967
1974
|
serviceSecurityGroups?: ManagedSecurityGroup[] | undefined;
|
|
1968
1975
|
logGroups?: ManagedLogGroup[] | undefined;
|
|
1969
1976
|
}
|
|
1970
|
-
export interface ServiceRevisionLoadBalancer {
|
|
1971
|
-
targetGroupArn?: string | undefined;
|
|
1972
|
-
productionListenerRule?: string | undefined;
|
|
1973
|
-
}
|
|
@@ -41,7 +41,6 @@ import {
|
|
|
41
41
|
Scale,
|
|
42
42
|
ServiceConnectConfiguration,
|
|
43
43
|
ServiceRegistry,
|
|
44
|
-
ServiceRevisionLoadBalancer,
|
|
45
44
|
ServiceVolumeConfiguration,
|
|
46
45
|
Tag,
|
|
47
46
|
TaskDefinition,
|
|
@@ -50,6 +49,10 @@ import {
|
|
|
50
49
|
Volume,
|
|
51
50
|
VpcLatticeConfiguration,
|
|
52
51
|
} from "./models_0";
|
|
52
|
+
export interface ServiceRevisionLoadBalancer {
|
|
53
|
+
targetGroupArn?: string | undefined;
|
|
54
|
+
productionListenerRule?: string | undefined;
|
|
55
|
+
}
|
|
53
56
|
export interface ResolvedConfiguration {
|
|
54
57
|
loadBalancers?: ServiceRevisionLoadBalancer[] | undefined;
|
|
55
58
|
}
|
|
@@ -21,7 +21,13 @@ export declare const getRuntimeConfig: (config: ECSClientConfig) => {
|
|
|
21
21
|
| RequestHandler;
|
|
22
22
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
23
23
|
sha256: import("@smithy/types").HashConstructor;
|
|
24
|
-
streamCollector:
|
|
24
|
+
streamCollector: (
|
|
25
|
+
stream:
|
|
26
|
+
| import("stream").Readable
|
|
27
|
+
| import("stream/web").ReadableStream
|
|
28
|
+
| ReadableStream
|
|
29
|
+
| Blob
|
|
30
|
+
) => Promise<Uint8Array>;
|
|
25
31
|
useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) &
|
|
26
32
|
(boolean | import("@smithy/types").Provider<boolean | undefined>);
|
|
27
33
|
useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) &
|
|
@@ -22,7 +22,13 @@ export declare const getRuntimeConfig: (config: ECSClientConfig) => {
|
|
|
22
22
|
| import("@smithy/core/protocols").HttpHandler<any>;
|
|
23
23
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
24
24
|
sha256: import("@smithy/types").HashConstructor;
|
|
25
|
-
streamCollector:
|
|
25
|
+
streamCollector: (
|
|
26
|
+
stream:
|
|
27
|
+
| import("stream").Readable
|
|
28
|
+
| import("stream/web").ReadableStream
|
|
29
|
+
| ReadableStream
|
|
30
|
+
| Blob
|
|
31
|
+
) => Promise<Uint8Array>;
|
|
26
32
|
useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
27
33
|
useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
28
34
|
userAgentAppId: string | import("@smithy/types").Provider<string | undefined>;
|
|
@@ -20,7 +20,13 @@ export declare const getRuntimeConfig: (config: ECSClientConfig) => {
|
|
|
20
20
|
apiVersion: string;
|
|
21
21
|
urlParser: import("@smithy/types").UrlParser;
|
|
22
22
|
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
23
|
-
streamCollector:
|
|
23
|
+
streamCollector: (
|
|
24
|
+
stream:
|
|
25
|
+
| import("stream").Readable
|
|
26
|
+
| import("stream/web").ReadableStream
|
|
27
|
+
| ReadableStream
|
|
28
|
+
| Blob
|
|
29
|
+
) => Promise<Uint8Array>;
|
|
24
30
|
base64Decoder: import("@smithy/types").Decoder;
|
|
25
31
|
base64Encoder: (_input: Uint8Array | string) => string;
|
|
26
32
|
utf8Decoder: import("@smithy/types").Decoder;
|
|
@@ -346,6 +346,7 @@ export declare var TaskManagedEBSVolumeTerminationPolicy$: StaticStructureSchema
|
|
|
346
346
|
export declare var TaskOverride$: StaticStructureSchema;
|
|
347
347
|
export declare var TaskSet$: StaticStructureSchema;
|
|
348
348
|
export declare var TaskVolumeConfiguration$: StaticStructureSchema;
|
|
349
|
+
export declare var ThresholdConfiguration$: StaticStructureSchema;
|
|
349
350
|
export declare var TimeoutConfiguration$: StaticStructureSchema;
|
|
350
351
|
export declare var Tmpfs$: StaticStructureSchema;
|
|
351
352
|
export declare var TotalLocalStorageGBRequest$: StaticStructureSchema;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-ecs",
|
|
3
3
|
"description": "AWS SDK for JavaScript Ecs Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.1076.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",
|
|
@@ -23,13 +23,13 @@
|
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
25
25
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
26
|
-
"@aws-sdk/core": "^3.974.
|
|
27
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
28
|
-
"@aws-sdk/types": "^3.973.
|
|
29
|
-
"@smithy/core": "^3.
|
|
30
|
-
"@smithy/fetch-http-handler": "^5.
|
|
31
|
-
"@smithy/node-http-handler": "^4.
|
|
32
|
-
"@smithy/types": "^4.
|
|
26
|
+
"@aws-sdk/core": "^3.974.24",
|
|
27
|
+
"@aws-sdk/credential-provider-node": "^3.972.59",
|
|
28
|
+
"@aws-sdk/types": "^3.973.14",
|
|
29
|
+
"@smithy/core": "^3.27.0",
|
|
30
|
+
"@smithy/fetch-http-handler": "^5.6.0",
|
|
31
|
+
"@smithy/node-http-handler": "^4.9.0",
|
|
32
|
+
"@smithy/types": "^4.15.0",
|
|
33
33
|
"tslib": "^2.6.2"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
const { resolveAwsSdkSigV4Config } = require("@aws-sdk/core/httpAuthSchemes");
|
|
2
|
-
const { getSmithyContext, normalizeProvider } = require("@smithy/core/client");
|
|
3
|
-
exports.defaultECSHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
4
|
-
return {
|
|
5
|
-
operation: getSmithyContext(context).operation,
|
|
6
|
-
region: await normalizeProvider(config.region)() || (() => {
|
|
7
|
-
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
8
|
-
})(),
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
|
12
|
-
return {
|
|
13
|
-
schemeId: "aws.auth#sigv4",
|
|
14
|
-
signingProperties: {
|
|
15
|
-
name: "ecs",
|
|
16
|
-
region: authParameters.region,
|
|
17
|
-
},
|
|
18
|
-
propertiesExtractor: (config, context) => ({
|
|
19
|
-
signingProperties: {
|
|
20
|
-
config,
|
|
21
|
-
context,
|
|
22
|
-
},
|
|
23
|
-
}),
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
exports.defaultECSHttpAuthSchemeProvider = (authParameters) => {
|
|
27
|
-
const options = [];
|
|
28
|
-
switch (authParameters.operation) {
|
|
29
|
-
default: {
|
|
30
|
-
options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
return options;
|
|
34
|
-
};
|
|
35
|
-
exports.resolveHttpAuthSchemeConfig = (config) => {
|
|
36
|
-
const config_0 = resolveAwsSdkSigV4Config(config);
|
|
37
|
-
return Object.assign(config_0, {
|
|
38
|
-
authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
|
|
39
|
-
});
|
|
40
|
-
};
|
package/dist-cjs/endpoint/bdd.js
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
const { BinaryDecisionDiagram } = require("@smithy/core/endpoints");
|
|
2
|
-
const k = "ref";
|
|
3
|
-
const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = { [k]: "Endpoint" }, h = { [k]: d }, i = {}, j = [{ [k]: "Region" }];
|
|
4
|
-
const _data = {
|
|
5
|
-
conditions: [
|
|
6
|
-
[c, [g]],
|
|
7
|
-
[c, j],
|
|
8
|
-
["aws.partition", j, d],
|
|
9
|
-
[e, [{ [k]: "UseFIPS" }, b]],
|
|
10
|
-
[e, [{ [k]: "UseDualStack" }, b]],
|
|
11
|
-
[e, [{ fn: f, argv: [h, "supportsDualStack"] }, b]],
|
|
12
|
-
[e, [{ fn: f, argv: [h, "supportsFIPS"] }, b]]
|
|
13
|
-
],
|
|
14
|
-
results: [
|
|
15
|
-
[a],
|
|
16
|
-
[a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
|
|
17
|
-
[a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
|
|
18
|
-
[g, i],
|
|
19
|
-
["https://ecs-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
|
|
20
|
-
[a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
|
|
21
|
-
["https://ecs-fips.{Region}.{PartitionResult#dnsSuffix}", i],
|
|
22
|
-
[a, "FIPS is enabled but this partition does not support FIPS"],
|
|
23
|
-
["https://ecs.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
|
|
24
|
-
[a, "DualStack is enabled but this partition does not support DualStack"],
|
|
25
|
-
["https://ecs.{Region}.{PartitionResult#dnsSuffix}", i],
|
|
26
|
-
[a, "Invalid Configuration: Missing Region"]
|
|
27
|
-
]
|
|
28
|
-
};
|
|
29
|
-
const root = 2;
|
|
30
|
-
const r = 100_000_000;
|
|
31
|
-
const nodes = new Int32Array([
|
|
32
|
-
-1, 1, -1,
|
|
33
|
-
0, 12, 3,
|
|
34
|
-
1, 4, r + 11,
|
|
35
|
-
2, 5, r + 11,
|
|
36
|
-
3, 8, 6,
|
|
37
|
-
4, 7, r + 10,
|
|
38
|
-
5, r + 8, r + 9,
|
|
39
|
-
4, 10, 9,
|
|
40
|
-
6, r + 6, r + 7,
|
|
41
|
-
5, 11, r + 5,
|
|
42
|
-
6, r + 4, r + 5,
|
|
43
|
-
3, r + 1, 13,
|
|
44
|
-
4, r + 2, r + 3,
|
|
45
|
-
]);
|
|
46
|
-
exports.bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
const { awsEndpointFunctions } = require("@aws-sdk/core/client");
|
|
2
|
-
const { customEndpointFunctions, decideEndpoint, EndpointCache } = require("@smithy/core/endpoints");
|
|
3
|
-
const { bdd } = require("./bdd");
|
|
4
|
-
const cache = new EndpointCache({
|
|
5
|
-
size: 50,
|
|
6
|
-
params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
|
|
7
|
-
});
|
|
8
|
-
exports.defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
9
|
-
return cache.get(endpointParams, () => decideEndpoint(bdd, {
|
|
10
|
-
endpointParams: endpointParams,
|
|
11
|
-
logger: context.logger,
|
|
12
|
-
}));
|
|
13
|
-
};
|
|
14
|
-
customEndpointFunctions.aws = awsEndpointFunctions;
|