@aws-sdk/client-ecs 3.845.0 → 3.846.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist-cjs/index.js CHANGED
@@ -1258,7 +1258,7 @@ var se_CreateClusterCommand = /* @__PURE__ */ __name(async (input, context) => {
1258
1258
  var se_CreateServiceCommand = /* @__PURE__ */ __name(async (input, context) => {
1259
1259
  const headers = sharedHeaders("CreateService");
1260
1260
  let body;
1261
- body = JSON.stringify(se_CreateServiceRequest(input, context));
1261
+ body = JSON.stringify((0, import_smithy_client._json)(input));
1262
1262
  return buildHttpRpcRequest(context, headers, "/", void 0, body);
1263
1263
  }, "se_CreateServiceCommand");
1264
1264
  var se_CreateTaskSetCommand = /* @__PURE__ */ __name(async (input, context) => {
@@ -1582,7 +1582,7 @@ var se_UpdateContainerInstancesStateCommand = /* @__PURE__ */ __name(async (inpu
1582
1582
  var se_UpdateServiceCommand = /* @__PURE__ */ __name(async (input, context) => {
1583
1583
  const headers = sharedHeaders("UpdateService");
1584
1584
  let body;
1585
- body = JSON.stringify(se_UpdateServiceRequest(input, context));
1585
+ body = JSON.stringify((0, import_smithy_client._json)(input));
1586
1586
  return buildHttpRpcRequest(context, headers, "/", void 0, body);
1587
1587
  }, "se_UpdateServiceCommand");
1588
1588
  var se_UpdateServicePrimaryTaskSetCommand = /* @__PURE__ */ __name(async (input, context) => {
@@ -2729,36 +2729,6 @@ var se_CreatedAt = /* @__PURE__ */ __name((input, context) => {
2729
2729
  before: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "before")
2730
2730
  });
2731
2731
  }, "se_CreatedAt");
2732
- var se_CreateServiceRequest = /* @__PURE__ */ __name((input, context) => {
2733
- return (0, import_smithy_client.take)(input, {
2734
- availabilityZoneRebalancing: [],
2735
- capacityProviderStrategy: import_smithy_client._json,
2736
- clientToken: [],
2737
- cluster: [],
2738
- deploymentConfiguration: /* @__PURE__ */ __name((_) => se_DeploymentConfiguration(_, context), "deploymentConfiguration"),
2739
- deploymentController: import_smithy_client._json,
2740
- desiredCount: [],
2741
- enableECSManagedTags: [],
2742
- enableExecuteCommand: [],
2743
- healthCheckGracePeriodSeconds: [],
2744
- launchType: [],
2745
- loadBalancers: import_smithy_client._json,
2746
- networkConfiguration: import_smithy_client._json,
2747
- placementConstraints: import_smithy_client._json,
2748
- placementStrategy: import_smithy_client._json,
2749
- platformVersion: [],
2750
- propagateTags: [],
2751
- role: [],
2752
- schedulingStrategy: [],
2753
- serviceConnectConfiguration: import_smithy_client._json,
2754
- serviceName: [],
2755
- serviceRegistries: import_smithy_client._json,
2756
- tags: import_smithy_client._json,
2757
- taskDefinition: [],
2758
- volumeConfigurations: import_smithy_client._json,
2759
- vpcLatticeConfigurations: import_smithy_client._json
2760
- });
2761
- }, "se_CreateServiceRequest");
2762
2732
  var se_CreateTaskSetRequest = /* @__PURE__ */ __name((input, context) => {
2763
2733
  return (0, import_smithy_client.take)(input, {
2764
2734
  capacityProviderStrategy: import_smithy_client._json,
@@ -2776,33 +2746,6 @@ var se_CreateTaskSetRequest = /* @__PURE__ */ __name((input, context) => {
2776
2746
  taskDefinition: []
2777
2747
  });
2778
2748
  }, "se_CreateTaskSetRequest");
2779
- var se_DeploymentConfiguration = /* @__PURE__ */ __name((input, context) => {
2780
- return (0, import_smithy_client.take)(input, {
2781
- alarms: import_smithy_client._json,
2782
- bakeTimeInMinutes: [],
2783
- deploymentCircuitBreaker: import_smithy_client._json,
2784
- lifecycleHooks: /* @__PURE__ */ __name((_) => se_DeploymentLifecycleHookList(_, context), "lifecycleHooks"),
2785
- maximumPercent: [],
2786
- minimumHealthyPercent: [],
2787
- strategy: []
2788
- });
2789
- }, "se_DeploymentConfiguration");
2790
- var se_DeploymentLifecycleHook = /* @__PURE__ */ __name((input, context) => {
2791
- return (0, import_smithy_client.take)(input, {
2792
- hookDetails: /* @__PURE__ */ __name((_) => se_HookDetails(_, context), "hookDetails"),
2793
- hookTargetArn: [],
2794
- lifecycleStages: import_smithy_client._json,
2795
- roleArn: []
2796
- });
2797
- }, "se_DeploymentLifecycleHook");
2798
- var se_DeploymentLifecycleHookList = /* @__PURE__ */ __name((input, context) => {
2799
- return input.filter((e) => e != null).map((entry) => {
2800
- return se_DeploymentLifecycleHook(entry, context);
2801
- });
2802
- }, "se_DeploymentLifecycleHookList");
2803
- var se_HookDetails = /* @__PURE__ */ __name((input, context) => {
2804
- return input;
2805
- }, "se_HookDetails");
2806
2749
  var se_ListServiceDeploymentsRequest = /* @__PURE__ */ __name((input, context) => {
2807
2750
  return (0, import_smithy_client.take)(input, {
2808
2751
  cluster: [],
@@ -2884,32 +2827,6 @@ var se_SubmitTaskStateChangeRequest = /* @__PURE__ */ __name((input, context) =>
2884
2827
  task: []
2885
2828
  });
2886
2829
  }, "se_SubmitTaskStateChangeRequest");
2887
- var se_UpdateServiceRequest = /* @__PURE__ */ __name((input, context) => {
2888
- return (0, import_smithy_client.take)(input, {
2889
- availabilityZoneRebalancing: [],
2890
- capacityProviderStrategy: import_smithy_client._json,
2891
- cluster: [],
2892
- deploymentConfiguration: /* @__PURE__ */ __name((_) => se_DeploymentConfiguration(_, context), "deploymentConfiguration"),
2893
- deploymentController: import_smithy_client._json,
2894
- desiredCount: [],
2895
- enableECSManagedTags: [],
2896
- enableExecuteCommand: [],
2897
- forceNewDeployment: [],
2898
- healthCheckGracePeriodSeconds: [],
2899
- loadBalancers: import_smithy_client._json,
2900
- networkConfiguration: import_smithy_client._json,
2901
- placementConstraints: import_smithy_client._json,
2902
- placementStrategy: import_smithy_client._json,
2903
- platformVersion: [],
2904
- propagateTags: [],
2905
- service: [],
2906
- serviceConnectConfiguration: import_smithy_client._json,
2907
- serviceRegistries: import_smithy_client._json,
2908
- taskDefinition: [],
2909
- volumeConfigurations: import_smithy_client._json,
2910
- vpcLatticeConfigurations: import_smithy_client._json
2911
- });
2912
- }, "se_UpdateServiceRequest");
2913
2830
  var se_UpdateTaskSetRequest = /* @__PURE__ */ __name((input, context) => {
2914
2831
  return (0, import_smithy_client.take)(input, {
2915
2832
  cluster: [],
@@ -3030,31 +2947,6 @@ var de_Deployment = /* @__PURE__ */ __name((output, context) => {
3030
2947
  vpcLatticeConfigurations: import_smithy_client._json
3031
2948
  });
3032
2949
  }, "de_Deployment");
3033
- var de_DeploymentConfiguration = /* @__PURE__ */ __name((output, context) => {
3034
- return (0, import_smithy_client.take)(output, {
3035
- alarms: import_smithy_client._json,
3036
- bakeTimeInMinutes: import_smithy_client.expectInt32,
3037
- deploymentCircuitBreaker: import_smithy_client._json,
3038
- lifecycleHooks: /* @__PURE__ */ __name((_) => de_DeploymentLifecycleHookList(_, context), "lifecycleHooks"),
3039
- maximumPercent: import_smithy_client.expectInt32,
3040
- minimumHealthyPercent: import_smithy_client.expectInt32,
3041
- strategy: import_smithy_client.expectString
3042
- });
3043
- }, "de_DeploymentConfiguration");
3044
- var de_DeploymentLifecycleHook = /* @__PURE__ */ __name((output, context) => {
3045
- return (0, import_smithy_client.take)(output, {
3046
- hookDetails: /* @__PURE__ */ __name((_) => de_HookDetails(_, context), "hookDetails"),
3047
- hookTargetArn: import_smithy_client.expectString,
3048
- lifecycleStages: import_smithy_client._json,
3049
- roleArn: import_smithy_client.expectString
3050
- });
3051
- }, "de_DeploymentLifecycleHook");
3052
- var de_DeploymentLifecycleHookList = /* @__PURE__ */ __name((output, context) => {
3053
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
3054
- return de_DeploymentLifecycleHook(entry, context);
3055
- });
3056
- return retVal;
3057
- }, "de_DeploymentLifecycleHookList");
3058
2950
  var de_Deployments = /* @__PURE__ */ __name((output, context) => {
3059
2951
  const retVal = (output || []).filter((e) => e != null).map((entry) => {
3060
2952
  return de_Deployment(entry, context);
@@ -3119,9 +3011,6 @@ var de_GetTaskProtectionResponse = /* @__PURE__ */ __name((output, context) => {
3119
3011
  protectedTasks: /* @__PURE__ */ __name((_) => de_ProtectedTasks(_, context), "protectedTasks")
3120
3012
  });
3121
3013
  }, "de_GetTaskProtectionResponse");
3122
- var de_HookDetails = /* @__PURE__ */ __name((output, context) => {
3123
- return output;
3124
- }, "de_HookDetails");
3125
3014
  var de_InstanceHealthCheckResult = /* @__PURE__ */ __name((output, context) => {
3126
3015
  return (0, import_smithy_client.take)(output, {
3127
3016
  lastStatusChange: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "lastStatusChange"),
@@ -3222,7 +3111,7 @@ var de_Service = /* @__PURE__ */ __name((output, context) => {
3222
3111
  clusterArn: import_smithy_client.expectString,
3223
3112
  createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "createdAt"),
3224
3113
  createdBy: import_smithy_client.expectString,
3225
- deploymentConfiguration: /* @__PURE__ */ __name((_) => de_DeploymentConfiguration(_, context), "deploymentConfiguration"),
3114
+ deploymentConfiguration: import_smithy_client._json,
3226
3115
  deploymentController: import_smithy_client._json,
3227
3116
  deployments: /* @__PURE__ */ __name((_) => de_Deployments(_, context), "deployments"),
3228
3117
  desiredCount: import_smithy_client.expectInt32,
@@ -3257,7 +3146,7 @@ var de_ServiceDeployment = /* @__PURE__ */ __name((output, context) => {
3257
3146
  clusterArn: import_smithy_client.expectString,
3258
3147
  createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "createdAt"),
3259
3148
  deploymentCircuitBreaker: import_smithy_client._json,
3260
- deploymentConfiguration: /* @__PURE__ */ __name((_) => de_DeploymentConfiguration(_, context), "deploymentConfiguration"),
3149
+ deploymentConfiguration: import_smithy_client._json,
3261
3150
  finishedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "finishedAt"),
3262
3151
  lifecycleStage: import_smithy_client.expectString,
3263
3152
  rollback: /* @__PURE__ */ __name((_) => de_Rollback(_, context), "rollback"),
@@ -20,7 +20,7 @@ export const se_CreateClusterCommand = async (input, context) => {
20
20
  export const se_CreateServiceCommand = async (input, context) => {
21
21
  const headers = sharedHeaders("CreateService");
22
22
  let body;
23
- body = JSON.stringify(se_CreateServiceRequest(input, context));
23
+ body = JSON.stringify(_json(input));
24
24
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
25
25
  };
26
26
  export const se_CreateTaskSetCommand = async (input, context) => {
@@ -344,7 +344,7 @@ export const se_UpdateContainerInstancesStateCommand = async (input, context) =>
344
344
  export const se_UpdateServiceCommand = async (input, context) => {
345
345
  const headers = sharedHeaders("UpdateService");
346
346
  let body;
347
- body = JSON.stringify(se_UpdateServiceRequest(input, context));
347
+ body = JSON.stringify(_json(input));
348
348
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
349
349
  };
350
350
  export const se_UpdateServicePrimaryTaskSetCommand = async (input, context) => {
@@ -1491,36 +1491,6 @@ const se_CreatedAt = (input, context) => {
1491
1491
  before: (_) => _.getTime() / 1_000,
1492
1492
  });
1493
1493
  };
1494
- const se_CreateServiceRequest = (input, context) => {
1495
- return take(input, {
1496
- availabilityZoneRebalancing: [],
1497
- capacityProviderStrategy: _json,
1498
- clientToken: [],
1499
- cluster: [],
1500
- deploymentConfiguration: (_) => se_DeploymentConfiguration(_, context),
1501
- deploymentController: _json,
1502
- desiredCount: [],
1503
- enableECSManagedTags: [],
1504
- enableExecuteCommand: [],
1505
- healthCheckGracePeriodSeconds: [],
1506
- launchType: [],
1507
- loadBalancers: _json,
1508
- networkConfiguration: _json,
1509
- placementConstraints: _json,
1510
- placementStrategy: _json,
1511
- platformVersion: [],
1512
- propagateTags: [],
1513
- role: [],
1514
- schedulingStrategy: [],
1515
- serviceConnectConfiguration: _json,
1516
- serviceName: [],
1517
- serviceRegistries: _json,
1518
- tags: _json,
1519
- taskDefinition: [],
1520
- volumeConfigurations: _json,
1521
- vpcLatticeConfigurations: _json,
1522
- });
1523
- };
1524
1494
  const se_CreateTaskSetRequest = (input, context) => {
1525
1495
  return take(input, {
1526
1496
  capacityProviderStrategy: _json,
@@ -1538,35 +1508,6 @@ const se_CreateTaskSetRequest = (input, context) => {
1538
1508
  taskDefinition: [],
1539
1509
  });
1540
1510
  };
1541
- const se_DeploymentConfiguration = (input, context) => {
1542
- return take(input, {
1543
- alarms: _json,
1544
- bakeTimeInMinutes: [],
1545
- deploymentCircuitBreaker: _json,
1546
- lifecycleHooks: (_) => se_DeploymentLifecycleHookList(_, context),
1547
- maximumPercent: [],
1548
- minimumHealthyPercent: [],
1549
- strategy: [],
1550
- });
1551
- };
1552
- const se_DeploymentLifecycleHook = (input, context) => {
1553
- return take(input, {
1554
- hookDetails: (_) => se_HookDetails(_, context),
1555
- hookTargetArn: [],
1556
- lifecycleStages: _json,
1557
- roleArn: [],
1558
- });
1559
- };
1560
- const se_DeploymentLifecycleHookList = (input, context) => {
1561
- return input
1562
- .filter((e) => e != null)
1563
- .map((entry) => {
1564
- return se_DeploymentLifecycleHook(entry, context);
1565
- });
1566
- };
1567
- const se_HookDetails = (input, context) => {
1568
- return input;
1569
- };
1570
1511
  const se_ListServiceDeploymentsRequest = (input, context) => {
1571
1512
  return take(input, {
1572
1513
  cluster: [],
@@ -1650,32 +1591,6 @@ const se_SubmitTaskStateChangeRequest = (input, context) => {
1650
1591
  task: [],
1651
1592
  });
1652
1593
  };
1653
- const se_UpdateServiceRequest = (input, context) => {
1654
- return take(input, {
1655
- availabilityZoneRebalancing: [],
1656
- capacityProviderStrategy: _json,
1657
- cluster: [],
1658
- deploymentConfiguration: (_) => se_DeploymentConfiguration(_, context),
1659
- deploymentController: _json,
1660
- desiredCount: [],
1661
- enableECSManagedTags: [],
1662
- enableExecuteCommand: [],
1663
- forceNewDeployment: [],
1664
- healthCheckGracePeriodSeconds: [],
1665
- loadBalancers: _json,
1666
- networkConfiguration: _json,
1667
- placementConstraints: _json,
1668
- placementStrategy: _json,
1669
- platformVersion: [],
1670
- propagateTags: [],
1671
- service: [],
1672
- serviceConnectConfiguration: _json,
1673
- serviceRegistries: _json,
1674
- taskDefinition: [],
1675
- volumeConfigurations: _json,
1676
- vpcLatticeConfigurations: _json,
1677
- });
1678
- };
1679
1594
  const se_UpdateTaskSetRequest = (input, context) => {
1680
1595
  return take(input, {
1681
1596
  cluster: [],
@@ -1800,33 +1715,6 @@ const de_Deployment = (output, context) => {
1800
1715
  vpcLatticeConfigurations: _json,
1801
1716
  });
1802
1717
  };
1803
- const de_DeploymentConfiguration = (output, context) => {
1804
- return take(output, {
1805
- alarms: _json,
1806
- bakeTimeInMinutes: __expectInt32,
1807
- deploymentCircuitBreaker: _json,
1808
- lifecycleHooks: (_) => de_DeploymentLifecycleHookList(_, context),
1809
- maximumPercent: __expectInt32,
1810
- minimumHealthyPercent: __expectInt32,
1811
- strategy: __expectString,
1812
- });
1813
- };
1814
- const de_DeploymentLifecycleHook = (output, context) => {
1815
- return take(output, {
1816
- hookDetails: (_) => de_HookDetails(_, context),
1817
- hookTargetArn: __expectString,
1818
- lifecycleStages: _json,
1819
- roleArn: __expectString,
1820
- });
1821
- };
1822
- const de_DeploymentLifecycleHookList = (output, context) => {
1823
- const retVal = (output || [])
1824
- .filter((e) => e != null)
1825
- .map((entry) => {
1826
- return de_DeploymentLifecycleHook(entry, context);
1827
- });
1828
- return retVal;
1829
- };
1830
1718
  const de_Deployments = (output, context) => {
1831
1719
  const retVal = (output || [])
1832
1720
  .filter((e) => e != null)
@@ -1893,9 +1781,6 @@ const de_GetTaskProtectionResponse = (output, context) => {
1893
1781
  protectedTasks: (_) => de_ProtectedTasks(_, context),
1894
1782
  });
1895
1783
  };
1896
- const de_HookDetails = (output, context) => {
1897
- return output;
1898
- };
1899
1784
  const de_InstanceHealthCheckResult = (output, context) => {
1900
1785
  return take(output, {
1901
1786
  lastStatusChange: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
@@ -2004,7 +1889,7 @@ const de_Service = (output, context) => {
2004
1889
  clusterArn: __expectString,
2005
1890
  createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2006
1891
  createdBy: __expectString,
2007
- deploymentConfiguration: (_) => de_DeploymentConfiguration(_, context),
1892
+ deploymentConfiguration: _json,
2008
1893
  deploymentController: _json,
2009
1894
  deployments: (_) => de_Deployments(_, context),
2010
1895
  desiredCount: __expectInt32,
@@ -2039,7 +1924,7 @@ const de_ServiceDeployment = (output, context) => {
2039
1924
  clusterArn: __expectString,
2040
1925
  createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2041
1926
  deploymentCircuitBreaker: _json,
2042
- deploymentConfiguration: (_) => de_DeploymentConfiguration(_, context),
1927
+ deploymentConfiguration: _json,
2043
1928
  finishedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2044
1929
  lifecycleStage: __expectString,
2045
1930
  rollback: (_) => de_Rollback(_, context),
@@ -74,7 +74,10 @@ declare const CreateServiceCommand_base: {
74
74
  * <ul>
75
75
  * <li>
76
76
  * <p>ECS</p>
77
- * <p>When you create a service which uses the <code>ECS</code> deployment controller, you can choose between the following deployment strategies:</p>
77
+ * <p> When you create a service which uses the <code>ECS</code> deployment controller, you can
78
+ * choose between the following deployment strategies (which you can set in the
79
+ * “<code>strategy</code>” field in “<code>deploymentConfiguration</code>”):
80
+ * :</p>
78
81
  * <ul>
79
82
  * <li>
80
83
  * <p>
@@ -249,7 +252,6 @@ declare const CreateServiceCommand_base: {
249
252
  * lifecycleStages: [ // DeploymentLifecycleHookStageList
250
253
  * "RECONCILE_SERVICE" || "PRE_SCALE_UP" || "POST_SCALE_UP" || "TEST_TRAFFIC_SHIFT" || "POST_TEST_TRAFFIC_SHIFT" || "PRODUCTION_TRAFFIC_SHIFT" || "POST_PRODUCTION_TRAFFIC_SHIFT",
251
254
  * ],
252
- * hookDetails: "DOCUMENT_VALUE",
253
255
  * },
254
256
  * ],
255
257
  * },
@@ -442,7 +444,6 @@ declare const CreateServiceCommand_base: {
442
444
  * // lifecycleStages: [ // DeploymentLifecycleHookStageList
443
445
  * // "RECONCILE_SERVICE" || "PRE_SCALE_UP" || "POST_SCALE_UP" || "TEST_TRAFFIC_SHIFT" || "POST_TEST_TRAFFIC_SHIFT" || "PRODUCTION_TRAFFIC_SHIFT" || "POST_PRODUCTION_TRAFFIC_SHIFT",
444
446
  * // ],
445
- * // hookDetails: "DOCUMENT_VALUE",
446
447
  * // },
447
448
  * // ],
448
449
  * // },
@@ -126,7 +126,6 @@ declare const DeleteServiceCommand_base: {
126
126
  * // lifecycleStages: [ // DeploymentLifecycleHookStageList
127
127
  * // "RECONCILE_SERVICE" || "PRE_SCALE_UP" || "POST_SCALE_UP" || "TEST_TRAFFIC_SHIFT" || "POST_TEST_TRAFFIC_SHIFT" || "PRODUCTION_TRAFFIC_SHIFT" || "POST_PRODUCTION_TRAFFIC_SHIFT",
128
128
  * // ],
129
- * // hookDetails: "DOCUMENT_VALUE",
130
129
  * // },
131
130
  * // ],
132
131
  * // },
@@ -94,7 +94,6 @@ declare const DescribeServiceDeploymentsCommand_base: {
94
94
  * // lifecycleStages: [ // DeploymentLifecycleHookStageList
95
95
  * // "RECONCILE_SERVICE" || "PRE_SCALE_UP" || "POST_SCALE_UP" || "TEST_TRAFFIC_SHIFT" || "POST_TEST_TRAFFIC_SHIFT" || "PRODUCTION_TRAFFIC_SHIFT" || "POST_PRODUCTION_TRAFFIC_SHIFT",
96
96
  * // ],
97
- * // hookDetails: "DOCUMENT_VALUE",
98
97
  * // },
99
98
  * // ],
100
99
  * // },
@@ -111,7 +111,6 @@ declare const DescribeServicesCommand_base: {
111
111
  * // lifecycleStages: [ // DeploymentLifecycleHookStageList
112
112
  * // "RECONCILE_SERVICE" || "PRE_SCALE_UP" || "POST_SCALE_UP" || "TEST_TRAFFIC_SHIFT" || "POST_TEST_TRAFFIC_SHIFT" || "PRODUCTION_TRAFFIC_SHIFT" || "POST_PRODUCTION_TRAFFIC_SHIFT",
113
113
  * // ],
114
- * // hookDetails: "DOCUMENT_VALUE",
115
114
  * // },
116
115
  * // ],
117
116
  * // },
@@ -185,7 +185,6 @@ declare const UpdateServiceCommand_base: {
185
185
  * lifecycleStages: [ // DeploymentLifecycleHookStageList
186
186
  * "RECONCILE_SERVICE" || "PRE_SCALE_UP" || "POST_SCALE_UP" || "TEST_TRAFFIC_SHIFT" || "POST_TEST_TRAFFIC_SHIFT" || "PRODUCTION_TRAFFIC_SHIFT" || "POST_PRODUCTION_TRAFFIC_SHIFT",
187
187
  * ],
188
- * hookDetails: "DOCUMENT_VALUE",
189
188
  * },
190
189
  * ],
191
190
  * },
@@ -396,7 +395,6 @@ declare const UpdateServiceCommand_base: {
396
395
  * // lifecycleStages: [ // DeploymentLifecycleHookStageList
397
396
  * // "RECONCILE_SERVICE" || "PRE_SCALE_UP" || "POST_SCALE_UP" || "TEST_TRAFFIC_SHIFT" || "POST_TEST_TRAFFIC_SHIFT" || "PRODUCTION_TRAFFIC_SHIFT" || "POST_PRODUCTION_TRAFFIC_SHIFT",
398
397
  * // ],
399
- * // hookDetails: "DOCUMENT_VALUE",
400
398
  * // },
401
399
  * // ],
402
400
  * // },
@@ -1,5 +1,4 @@
1
1
  import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
- import { DocumentType as __DocumentType } from "@smithy/types";
3
2
  import { ECSServiceException as __BaseException } from "./ECSServiceException";
4
3
  /**
5
4
  * <p>You don't have authorization to perform the requested action.</p>
@@ -22,17 +21,19 @@ export declare class AccessDeniedException extends __BaseException {
22
21
  */
23
22
  export interface AdvancedConfiguration {
24
23
  /**
25
- * <p>The Amazon Resource Name (ARN) of the alternate target group for Amazon ECS blue/green deployments. </p>
24
+ * <p>The Amazon Resource Name (ARN) of the alternate target group for Amazon ECS blue/green deployments.</p>
26
25
  * @public
27
26
  */
28
27
  alternateTargetGroupArn?: string | undefined;
29
28
  /**
30
- * <p>The Amazon Resource Name (ARN) that identifies the production listener rule for routing production traffic.</p>
29
+ * <p>The Amazon Resource Name (ARN) that that identifies the production listener rule (in the case of an Application Load Balancer) or
30
+ * listener (in the case for an Network Load Balancer) for routing production traffic.</p>
31
31
  * @public
32
32
  */
33
33
  productionListenerRule?: string | undefined;
34
34
  /**
35
- * <p>The Amazon Resource Name (ARN) that identifies the test listener rule or listener for routing test traffic.</p>
35
+ * <p>The Amazon Resource Name (ARN) that identifies ) that identifies the test listener rule (in the case of an Application Load Balancer) or
36
+ * listener (in the case for an Network Load Balancer) for routing test traffic.</p>
36
37
  * @public
37
38
  */
38
39
  testListenerRule?: string | undefined;
@@ -1229,8 +1230,7 @@ export type AvailabilityZoneRebalancing = (typeof AvailabilityZoneRebalancing)[k
1229
1230
  * rollback parameter to have Amazon ECS to roll back your service to the last completed
1230
1231
  * deployment after a failure.</p>
1231
1232
  * <p>You can only use the <code>DeploymentAlarms</code> method to detect failures when the
1232
- * <code>DeploymentController</code> is set to <code>ECS</code> (rolling
1233
- * update).</p>
1233
+ * <code>DeploymentController</code> is set to <code>ECS</code>.</p>
1234
1234
  * <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/deployment-type-ecs.html">Rolling
1235
1235
  * update</a> in the <i>
1236
1236
  * <i>Amazon Elastic Container Service Developer Guide</i>
@@ -1305,6 +1305,8 @@ export declare const DeploymentLifecycleHookStage: {
1305
1305
  export type DeploymentLifecycleHookStage = (typeof DeploymentLifecycleHookStage)[keyof typeof DeploymentLifecycleHookStage];
1306
1306
  /**
1307
1307
  * <p>A deployment lifecycle hook runs custom logic at specific stages of the deployment process. Currently, you can use Lambda functions as hook targets.</p>
1308
+ * <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/deployment-lifecycle-hooks.html">Lifecycle hooks for Amazon ECS service deployments</a> in the <i>
1309
+ * Amazon Elastic Container Service Developer Guide</i>.</p>
1308
1310
  * @public
1309
1311
  */
1310
1312
  export interface DeploymentLifecycleHook {
@@ -1317,7 +1319,7 @@ export interface DeploymentLifecycleHook {
1317
1319
  /**
1318
1320
  * <p>The Amazon Resource Name (ARN) of the IAM role that grants Amazon ECS permission to call Lambda functions on your behalf.</p>
1319
1321
  * <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/blue-green-permissions.html">Permissions required
1320
- * for Lambda functions in Amazon ECS blue/green deployments</a> in the<i>
1322
+ * for Lambda functions in Amazon ECS blue/green deployments</a> in the <i>
1321
1323
  * Amazon Elastic Container Service Developer Guide</i>.</p>
1322
1324
  * @public
1323
1325
  */
@@ -1327,7 +1329,7 @@ export interface DeploymentLifecycleHook {
1327
1329
  * <ul>
1328
1330
  * <li>
1329
1331
  * <p>RECONCILE_SERVICE</p>
1330
- * <p>This stage only happens when you start a new service deployment with more than 1 service revision in an ACTIVE state.</p>
1332
+ * <p>The reconciliation stage that only happens when you start a new service deployment with more than 1 service revision in an ACTIVE state.</p>
1331
1333
  * <p>You can use a lifecycle hook for this stage.</p>
1332
1334
  * </li>
1333
1335
  * <li>
@@ -1336,11 +1338,6 @@ export interface DeploymentLifecycleHook {
1336
1338
  * <p>You can use a lifecycle hook for this stage.</p>
1337
1339
  * </li>
1338
1340
  * <li>
1339
- * <p>SCALE_UP</p>
1340
- * <p>The time when the green service revision scales up to 100% and launches new tasks. The green service revision is not serving any traffic at this point.</p>
1341
- * <p>You can't use a lifecycle hook for this stage.</p>
1342
- * </li>
1343
- * <li>
1344
1341
  * <p>POST_SCALE_UP</p>
1345
1342
  * <p>The green service revision has started. The blue service revision is handling 100% of the production traffic. There is no test traffic.</p>
1346
1343
  * <p>You can use a lifecycle hook for this stage.</p>
@@ -1363,28 +1360,13 @@ export interface DeploymentLifecycleHook {
1363
1360
  * <li>
1364
1361
  * <p>POST_PRODUCTION_TRAFFIC_SHIFT</p>
1365
1362
  * <p>The production traffic shift is complete.</p>
1366
- * <p>Yes</p>
1367
- * </li>
1368
- * <li>
1369
- * <p>BAKE_TIME</p>
1370
- * <p>The duration when both blue and green service revisions are running simultaneously.</p>
1371
- * <p>You can't use a lifecycle hook for this stage.</p>
1372
- * </li>
1373
- * <li>
1374
- * <p>CLEAN_UP</p>
1375
- * <p>The blue service revision has completely scaled down to 0 running tasks. The green service revision is now the production service revision after this stage.</p>
1376
- * <p>You can't use a lifecycle hook for this stage.</p>
1363
+ * <p>You can use a lifecycle hook for this stage.</p>
1377
1364
  * </li>
1378
1365
  * </ul>
1379
1366
  * <p>You must provide this parameter when configuring a deployment lifecycle hook.</p>
1380
1367
  * @public
1381
1368
  */
1382
1369
  lifecycleStages?: DeploymentLifecycleHookStage[] | undefined;
1383
- /**
1384
- * <p>Optionally provide details about the hook. Use this field to pass custom parameters to your hook target (such as a Lambda function).</p>
1385
- * @public
1386
- */
1387
- hookDetails?: __DocumentType | undefined;
1388
1370
  }
1389
1371
  /**
1390
1372
  * @public
@@ -1564,14 +1546,14 @@ export interface DeploymentConfiguration {
1564
1546
  */
1565
1547
  strategy?: DeploymentStrategy | undefined;
1566
1548
  /**
1567
- * <p>The duration when both blue and green service revisions are running simultaneously after the production traffic has shifted.</p>
1549
+ * <p>The time period when both blue and green service revisions are running simultaneously after the production traffic has shifted.</p>
1568
1550
  * <p>You must provide this parameter when you use the <code>BLUE_GREEN</code> deployment
1569
1551
  * strategy.</p>
1570
1552
  * @public
1571
1553
  */
1572
1554
  bakeTimeInMinutes?: number | undefined;
1573
1555
  /**
1574
- * <p>An array of deployment lifecycle hook objects to run custom logic at specific stages of the deployment lifecycle. These hooks allow you to run custom logic at key points during the deployment process.</p>
1556
+ * <p>An array of deployment lifecycle hook objects to run custom logic at specific stages of the deployment lifecycle.</p>
1575
1557
  * @public
1576
1558
  */
1577
1559
  lifecycleHooks?: DeploymentLifecycleHook[] | undefined;
@@ -2275,6 +2257,8 @@ export interface ServiceConnectTestTrafficHeaderMatchRules {
2275
2257
  * <p>The HTTP header rules used to identify and route test traffic during Amazon ECS blue/green
2276
2258
  * deployments. These rules specify which HTTP headers to examine and what values to match for
2277
2259
  * routing decisions.</p>
2260
+ * <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-connect-blue-green.html">Service Connect for Amazon ECS blue/green deployments</a> in the <i>
2261
+ * Amazon Elastic Container Service Developer Guide</i>.</p>
2278
2262
  * @public
2279
2263
  */
2280
2264
  export interface ServiceConnectTestTrafficHeaderRules {
@@ -2294,6 +2278,8 @@ export interface ServiceConnectTestTrafficHeaderRules {
2294
2278
  * configuration allows you to define rules for routing specific traffic to the new service
2295
2279
  * revision during the deployment process, allowing for safe testing before full production
2296
2280
  * traffic shift.</p>
2281
+ * <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-connect-blue-green.html">Service Connect for Amazon ECS blue/green deployments</a> in the <i>
2282
+ * Amazon Elastic Container Service Developer Guide</i>.</p>
2297
2283
  * @public
2298
2284
  */
2299
2285
  export interface ServiceConnectTestTrafficRules {
@@ -8212,24 +8198,44 @@ export interface ServiceDeployment {
8212
8198
  * <p>The current lifecycle stage of the deployment. Possible values include:</p>
8213
8199
  * <ul>
8214
8200
  * <li>
8215
- * <p>
8216
- * <code>SCALE_UP_IN_PROGRESS</code> - Creating the new (green) tasks</p>
8201
+ * <p>RECONCILE_SERVICE</p>
8202
+ * <p>The reconciliation stage that only happens when you start a new service deployment with more than 1 service revision in an ACTIVE state.</p>
8217
8203
  * </li>
8218
8204
  * <li>
8219
- * <p>
8220
- * <code>TEST_TRAFFIC_SHIFT_IN_PROGRESS</code> - Shifting test traffic to the new (green) tasks</p>
8205
+ * <p>PRE_SCALE_UP</p>
8206
+ * <p>The green service revision has not started. The blue service revision is handling 100% of the production traffic. There is no test traffic.</p>
8221
8207
  * </li>
8222
8208
  * <li>
8223
- * <p>
8224
- * <code>PRODUCTION_TRAFFIC_SHIFT_IN_PROGRESS</code> - Shifting production traffic to the new (green) tasks</p>
8209
+ * <p>SCALE_UP</p>
8210
+ * <p>The stage when the green service revision scales up to 100% and launches new tasks. The green service revision is not serving any traffic at this point.</p>
8225
8211
  * </li>
8226
8212
  * <li>
8227
- * <p>
8228
- * <code>BAKE_TIME_IN_PROGRESS</code> - The duration when both blue and green service revisions are running simultaneously after the production traffic has shifted</p>
8213
+ * <p>POST_SCALE_UP</p>
8214
+ * <p>The green service revision has started. The blue service revision is handling 100% of the production traffic. There is no test traffic.</p>
8229
8215
  * </li>
8230
8216
  * <li>
8231
- * <p>
8232
- * <code>CLEAN_UP_IN_PROGRESS</code> - Stopping the old (blue) tasks</p>
8217
+ * <p>TEST_TRAFFIC_SHIFT</p>
8218
+ * <p>The blue and green service revisions are running. The blue service revision handles 100% of the production traffic. The green service revision is migrating from 0% to 100% of test traffic.</p>
8219
+ * </li>
8220
+ * <li>
8221
+ * <p>POST_TEST_TRAFFIC_SHIFT</p>
8222
+ * <p>The test traffic shift is complete. The green service revision handles 100% of the test traffic.</p>
8223
+ * </li>
8224
+ * <li>
8225
+ * <p>PRODUCTION_TRAFFIC_SHIFT</p>
8226
+ * <p>Production traffic is shifting to the green service revision. The green service revision is migrating from 0% to 100% of production traffic.</p>
8227
+ * </li>
8228
+ * <li>
8229
+ * <p>POST_PRODUCTION_TRAFFIC_SHIFT</p>
8230
+ * <p>The production traffic shift is complete.</p>
8231
+ * </li>
8232
+ * <li>
8233
+ * <p>BAKE_TIME</p>
8234
+ * <p>The stage when both blue and green service revisions are running simultaneously after the production traffic has shifted.</p>
8235
+ * </li>
8236
+ * <li>
8237
+ * <p>CLEAN_UP</p>
8238
+ * <p>The stage when the blue service revision has completely scaled down to 0 running tasks. The green service revision is now the production service revision after this stage.</p>
8233
8239
  * </li>
8234
8240
  * </ul>
8235
8241
  * @public
@@ -1,5 +1,4 @@
1
1
  import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
- import { DocumentType as __DocumentType } from "@smithy/types";
3
2
  import { ECSServiceException as __BaseException } from "./ECSServiceException";
4
3
  export declare class AccessDeniedException extends __BaseException {
5
4
  readonly name: "AccessDeniedException";
@@ -254,7 +253,6 @@ export interface DeploymentLifecycleHook {
254
253
  hookTargetArn?: string | undefined;
255
254
  roleArn?: string | undefined;
256
255
  lifecycleStages?: DeploymentLifecycleHookStage[] | undefined;
257
- hookDetails?: __DocumentType | undefined;
258
256
  }
259
257
  export declare const DeploymentStrategy: {
260
258
  readonly BLUE_GREEN: "BLUE_GREEN";
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.845.0",
4
+ "version": "3.846.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-ecs",
@@ -20,17 +20,17 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/core": "3.845.0",
24
- "@aws-sdk/credential-provider-node": "3.845.0",
23
+ "@aws-sdk/core": "3.846.0",
24
+ "@aws-sdk/credential-provider-node": "3.846.0",
25
25
  "@aws-sdk/middleware-host-header": "3.840.0",
26
26
  "@aws-sdk/middleware-logger": "3.840.0",
27
27
  "@aws-sdk/middleware-recursion-detection": "3.840.0",
28
- "@aws-sdk/middleware-user-agent": "3.845.0",
28
+ "@aws-sdk/middleware-user-agent": "3.846.0",
29
29
  "@aws-sdk/region-config-resolver": "3.840.0",
30
30
  "@aws-sdk/types": "3.840.0",
31
31
  "@aws-sdk/util-endpoints": "3.845.0",
32
32
  "@aws-sdk/util-user-agent-browser": "3.840.0",
33
- "@aws-sdk/util-user-agent-node": "3.845.0",
33
+ "@aws-sdk/util-user-agent-node": "3.846.0",
34
34
  "@smithy/config-resolver": "^4.1.4",
35
35
  "@smithy/core": "^3.7.0",
36
36
  "@smithy/fetch-http-handler": "^5.1.0",