@aws-sdk/client-ecs 3.668.0 → 3.669.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.
@@ -34,6 +34,9 @@ declare const CreateServiceCommand_base: {
34
34
  * <note>
35
35
  * <p>On March 21, 2024, a change was made to resolve the task definition revision before authorization. When a task definition revision is not specified, authorization will occur using the latest revision of a task definition.</p>
36
36
  * </note>
37
+ * <note>
38
+ * <p>Amazon Elastic Inference (EI) is no longer available to customers.</p>
39
+ * </note>
37
40
  * <p>In addition to maintaining the desired count of tasks in your service, you can
38
41
  * optionally run your service behind one or more load balancers. The load balancers
39
42
  * distribute traffic across the tasks that are associated with the service. For more
@@ -111,7 +114,6 @@ declare const CreateServiceCommand_base: {
111
114
  * information about task placement and task placement strategies, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-placement.html">Amazon ECS
112
115
  * task placement</a> in the <i>Amazon Elastic Container Service Developer Guide</i>
113
116
  * </p>
114
- * <p>Starting April 15, 2023, Amazon Web Services will not onboard new customers to Amazon Elastic Inference (EI), and will help current customers migrate their workloads to options that offer better price and performance. After April 15, 2023, new customers will not be able to launch instances with Amazon EI accelerators in Amazon SageMaker, Amazon ECS, or Amazon EC2. However, customers who have used Amazon EI at least once during the past 30-day period are considered current customers and will be able to continue using the service. </p>
115
117
  * @example
116
118
  * Use a bare-bones client and the command you need to make an API call.
117
119
  * ```javascript
@@ -31,12 +31,14 @@ declare const RunTaskCommand_base: {
31
31
  * <note>
32
32
  * <p>On March 21, 2024, a change was made to resolve the task definition revision before authorization. When a task definition revision is not specified, authorization will occur using the latest revision of a task definition.</p>
33
33
  * </note>
34
+ * <note>
35
+ * <p>Amazon Elastic Inference (EI) is no longer available to customers.</p>
36
+ * </note>
34
37
  * <p>You can allow Amazon ECS to place tasks for you, or you can customize how Amazon ECS places
35
38
  * tasks using placement constraints and placement strategies. For more information, see
36
39
  * <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/scheduling_tasks.html">Scheduling Tasks</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p>
37
40
  * <p>Alternatively, you can use <code>StartTask</code> to use your own scheduler or
38
41
  * place tasks manually on specific container instances.</p>
39
- * <p>Starting April 15, 2023, Amazon Web Services will not onboard new customers to Amazon Elastic Inference (EI), and will help current customers migrate their workloads to options that offer better price and performance. After April 15, 2023, new customers will not be able to launch instances with Amazon EI accelerators in Amazon SageMaker, Amazon ECS, or Amazon EC2. However, customers who have used Amazon EI at least once during the past 30-day period are considered current customers and will be able to continue using the service. </p>
40
42
  * <p>You can attach Amazon EBS volumes to Amazon ECS tasks by configuring the volume when creating or
41
43
  * updating a service. For more infomation, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ebs-volumes.html#ebs-volume-types">Amazon EBS volumes</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p>
42
44
  * <p>The Amazon ECS API follows an eventual consistency model. This is because of the
@@ -32,7 +32,9 @@ declare const StartTaskCommand_base: {
32
32
  * <note>
33
33
  * <p>On March 21, 2024, a change was made to resolve the task definition revision before authorization. When a task definition revision is not specified, authorization will occur using the latest revision of a task definition.</p>
34
34
  * </note>
35
- * <p>Starting April 15, 2023, Amazon Web Services will not onboard new customers to Amazon Elastic Inference (EI), and will help current customers migrate their workloads to options that offer better price and performance. After April 15, 2023, new customers will not be able to launch instances with Amazon EI accelerators in Amazon SageMaker, Amazon ECS, or Amazon EC2. However, customers who have used Amazon EI at least once during the past 30-day period are considered current customers and will be able to continue using the service. </p>
35
+ * <note>
36
+ * <p>Amazon Elastic Inference (EI) is no longer available to customers.</p>
37
+ * </note>
36
38
  * <p>Alternatively, you can use<code>RunTask</code> to place tasks for you. For more
37
39
  * information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/scheduling_tasks.html">Scheduling Tasks</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p>
38
40
  * <p>You can attach Amazon EBS volumes to Amazon ECS tasks by configuring the volume when creating or
@@ -615,11 +615,13 @@ export interface ClusterConfiguration {
615
615
  * <code>FARGATE_SPOT</code> capacity providers. The Fargate capacity providers are
616
616
  * available to all accounts and only need to be associated with a cluster to be used in a
617
617
  * capacity provider strategy.</p>
618
- * <p>With <code>FARGATE_SPOT</code>, you can run interruption tolerant tasks at a rate
619
- * that's discounted compared to the <code>FARGATE</code> price. <code>FARGATE_SPOT</code>
620
- * runs tasks on spare compute capacity. When Amazon Web Services needs the capacity back, your tasks are
621
- * interrupted with a two-minute warning. <code>FARGATE_SPOT</code> only supports Linux
622
- * tasks with the X86_64 architecture on platform version 1.3.0 or later.</p>
618
+ * <p>With <code>FARGATE_SPOT</code>, you can run interruption tolerant tasks at a rate that's
619
+ * discounted compared to the <code>FARGATE</code> price. <code>FARGATE_SPOT</code> runs
620
+ * tasks on spare compute capacity. When Amazon Web Services needs the capacity back, your tasks are
621
+ * interrupted with a two-minute warning. <code>FARGATE_SPOT</code> supports Linux tasks
622
+ * with the X86_64 architecture on platform version 1.3.0 or later.
623
+ * <code>FARGATE_SPOT</code> supports Linux tasks with the ARM64 architecture on
624
+ * platform version 1.4.0 or later.</p>
623
625
  * <p>A capacity provider strategy may contain a maximum of 6 capacity providers.</p>
624
626
  * @public
625
627
  */
@@ -1767,7 +1769,203 @@ export interface LogConfiguration {
1767
1769
  */
1768
1770
  logDriver: LogDriver | undefined;
1769
1771
  /**
1770
- * <p>The configuration options to send to the log driver. This parameter requires version 1.19 of the Docker Remote API or greater on your container instance. To check the Docker Remote API version on your container instance, log in to your container instance and run the following command: <code>sudo docker version --format '\{\{.Server.APIVersion\}\}'</code>
1772
+ * <p>The configuration options to send to the log driver.</p>
1773
+ * <p>The options you can specify depend on the log driver. Some
1774
+ * of the options you can specify when you use the <code>awslogs</code> log driver to route logs to
1775
+ * Amazon CloudWatch include the following:</p>
1776
+ * <dl>
1777
+ * <dt>awslogs-create-group</dt>
1778
+ * <dd>
1779
+ * <p>Required: No</p>
1780
+ * <p>Specify whether you want the log group to be
1781
+ * created automatically. If this option isn't
1782
+ * specified, it defaults to
1783
+ * <code>false</code>.</p>
1784
+ * <note>
1785
+ * <p>Your IAM policy must include the
1786
+ * <code>logs:CreateLogGroup</code> permission before
1787
+ * you attempt to use
1788
+ * <code>awslogs-create-group</code>.</p>
1789
+ * </note>
1790
+ * </dd>
1791
+ * <dt>awslogs-region</dt>
1792
+ * <dd>
1793
+ * <p>Required: Yes</p>
1794
+ * <p>Specify the Amazon Web Services Region that the
1795
+ * <code>awslogs</code> log driver is to send your
1796
+ * Docker logs to. You can choose to send all of your
1797
+ * logs from clusters in different Regions to a
1798
+ * single region in CloudWatch Logs. This is so that they're
1799
+ * all visible in one location. Otherwise, you can
1800
+ * separate them by Region for more granularity. Make
1801
+ * sure that the specified log group exists in the
1802
+ * Region that you specify with this option.</p>
1803
+ * </dd>
1804
+ * <dt>awslogs-group</dt>
1805
+ * <dd>
1806
+ * <p>Required: Yes</p>
1807
+ * <p>Make sure to specify a log group that the
1808
+ * <code>awslogs</code> log driver sends its log
1809
+ * streams to.</p>
1810
+ * </dd>
1811
+ * <dt>awslogs-stream-prefix</dt>
1812
+ * <dd>
1813
+ * <p>Required: Yes, when
1814
+ * using the Fargate launch
1815
+ * type.Optional for
1816
+ * the EC2 launch type, required for
1817
+ * the Fargate launch
1818
+ * type.</p>
1819
+ * <p>Use the <code>awslogs-stream-prefix</code>
1820
+ * option to associate a log stream with the
1821
+ * specified prefix, the container name, and the ID
1822
+ * of the Amazon ECS task that the container belongs to.
1823
+ * If you specify a prefix with this option, then the
1824
+ * log stream takes the format <code>prefix-name/container-name/ecs-task-id</code>.</p>
1825
+ * <p>If you don't specify a prefix
1826
+ * with this option, then the log stream is named
1827
+ * after the container ID that's assigned by the
1828
+ * Docker daemon on the container instance. Because
1829
+ * it's difficult to trace logs back to the container
1830
+ * that sent them with just the Docker container ID
1831
+ * (which is only available on the container
1832
+ * instance), we recommend that you specify a prefix
1833
+ * with this option.</p>
1834
+ * <p>For Amazon ECS services, you can use the service
1835
+ * name as the prefix. Doing so, you can trace log
1836
+ * streams to the service that the container belongs
1837
+ * to, the name of the container that sent them, and
1838
+ * the ID of the task that the container belongs
1839
+ * to.</p>
1840
+ * <p>You must specify a
1841
+ * stream-prefix for your logs to have your logs
1842
+ * appear in the Log pane when using the Amazon ECS
1843
+ * console.</p>
1844
+ * </dd>
1845
+ * <dt>awslogs-datetime-format</dt>
1846
+ * <dd>
1847
+ * <p>Required: No</p>
1848
+ * <p>This option defines a multiline start pattern
1849
+ * in Python <code>strftime</code> format. A log
1850
+ * message consists of a line that matches the
1851
+ * pattern and any following lines that don’t match
1852
+ * the pattern. The matched line is the delimiter
1853
+ * between log messages.</p>
1854
+ * <p>One example of a use case for using this
1855
+ * format is for parsing output such as a stack dump,
1856
+ * which might otherwise be logged in multiple
1857
+ * entries. The correct pattern allows it to be
1858
+ * captured in a single entry.</p>
1859
+ * <p>For more information, see <a href="https://docs.docker.com/config/containers/logging/awslogs/#awslogs-datetime-format">awslogs-datetime-format</a>.</p>
1860
+ * <p>You cannot configure both the
1861
+ * <code>awslogs-datetime-format</code> and
1862
+ * <code>awslogs-multiline-pattern</code>
1863
+ * options.</p>
1864
+ * <note>
1865
+ * <p>Multiline logging performs regular
1866
+ * expression parsing and matching of all log
1867
+ * messages. This might have a negative impact on
1868
+ * logging performance.</p>
1869
+ * </note>
1870
+ * </dd>
1871
+ * <dt>awslogs-multiline-pattern</dt>
1872
+ * <dd>
1873
+ * <p>Required: No</p>
1874
+ * <p>This option defines a multiline start pattern
1875
+ * that uses a regular expression. A log message
1876
+ * consists of a line that matches the pattern and
1877
+ * any following lines that don’t match the pattern.
1878
+ * The matched line is the delimiter between log
1879
+ * messages.</p>
1880
+ * <p>For more information, see <a href="https://docs.docker.com/config/containers/logging/awslogs/#awslogs-multiline-pattern">awslogs-multiline-pattern</a>.</p>
1881
+ * <p>This option is ignored if
1882
+ * <code>awslogs-datetime-format</code> is also
1883
+ * configured.</p>
1884
+ * <p>You cannot configure both the
1885
+ * <code>awslogs-datetime-format</code> and
1886
+ * <code>awslogs-multiline-pattern</code>
1887
+ * options.</p>
1888
+ * <note>
1889
+ * <p>Multiline logging performs regular
1890
+ * expression parsing and matching of all log
1891
+ * messages. This might have a negative impact on
1892
+ * logging performance.</p>
1893
+ * </note>
1894
+ * </dd>
1895
+ * <dt>mode</dt>
1896
+ * <dd>
1897
+ * <p>Required: No</p>
1898
+ * <p>Valid values: <code>non-blocking</code> |
1899
+ * <code>blocking</code>
1900
+ * </p>
1901
+ * <p>This option defines the delivery mode of log
1902
+ * messages from the container to CloudWatch Logs. The delivery
1903
+ * mode you choose affects application availability
1904
+ * when the flow of logs from container to CloudWatch is
1905
+ * interrupted.</p>
1906
+ * <p>If you use the <code>blocking</code>
1907
+ * mode and the flow of logs to CloudWatch is interrupted,
1908
+ * calls from container code to write to the
1909
+ * <code>stdout</code> and <code>stderr</code>
1910
+ * streams will block. The logging thread of the
1911
+ * application will block as a result. This may cause
1912
+ * the application to become unresponsive and lead to
1913
+ * container healthcheck failure. </p>
1914
+ * <p>If you use the <code>non-blocking</code> mode,
1915
+ * the container's logs are instead stored in an
1916
+ * in-memory intermediate buffer configured with the
1917
+ * <code>max-buffer-size</code> option. This prevents
1918
+ * the application from becoming unresponsive when
1919
+ * logs cannot be sent to CloudWatch. We recommend using this mode if you want to
1920
+ * ensure service availability and are okay with some
1921
+ * log loss. For more information, see <a href="http://aws.amazon.com/blogs/containers/preventing-log-loss-with-non-blocking-mode-in-the-awslogs-container-log-driver/">Preventing log loss with non-blocking mode in the <code>awslogs</code> container log driver</a>.</p>
1922
+ * </dd>
1923
+ * <dt>max-buffer-size</dt>
1924
+ * <dd>
1925
+ * <p>Required: No</p>
1926
+ * <p>Default value: <code>1m</code>
1927
+ * </p>
1928
+ * <p>When <code>non-blocking</code> mode is used,
1929
+ * the <code>max-buffer-size</code> log option
1930
+ * controls the size of the buffer that's used for
1931
+ * intermediate message storage. Make sure to specify
1932
+ * an adequate buffer size based on your application.
1933
+ * When the buffer fills up, further logs cannot be
1934
+ * stored. Logs that cannot be stored are lost.
1935
+ * </p>
1936
+ * </dd>
1937
+ * </dl>
1938
+ * <p>To route logs using the <code>splunk</code> log router, you need to specify a
1939
+ * <code>splunk-token</code> and a
1940
+ * <code>splunk-url</code>.</p>
1941
+ * <p>When you use the <code>awsfirelens</code> log router to route logs to an Amazon Web Services Service or
1942
+ * Amazon Web Services Partner Network destination for log storage and analytics, you can
1943
+ * set the <code>log-driver-buffer-limit</code> option to limit
1944
+ * the number of events that are buffered in memory, before
1945
+ * being sent to the log router container. It can help to
1946
+ * resolve potential log loss issue because high throughput
1947
+ * might result in memory running out for the buffer inside of
1948
+ * Docker.</p>
1949
+ * <p>Other options you can specify when using <code>awsfirelens</code> to route
1950
+ * logs depend on the destination. When you export logs to
1951
+ * Amazon Data Firehose, you can specify the Amazon Web Services Region with
1952
+ * <code>region</code> and a name for the log stream with
1953
+ * <code>delivery_stream</code>.</p>
1954
+ * <p>When you export logs to
1955
+ * Amazon Kinesis Data Streams, you can specify an Amazon Web Services Region with
1956
+ * <code>region</code> and a data stream name with
1957
+ * <code>stream</code>.</p>
1958
+ * <p> When you export logs to Amazon OpenSearch Service,
1959
+ * you can specify options like <code>Name</code>,
1960
+ * <code>Host</code> (OpenSearch Service endpoint without protocol), <code>Port</code>,
1961
+ * <code>Index</code>, <code>Type</code>,
1962
+ * <code>Aws_auth</code>, <code>Aws_region</code>, <code>Suppress_Type_Name</code>, and
1963
+ * <code>tls</code>.</p>
1964
+ * <p>When you export logs to Amazon S3, you can
1965
+ * specify the bucket using the <code>bucket</code> option. You can also specify <code>region</code>,
1966
+ * <code>total_file_size</code>, <code>upload_timeout</code>,
1967
+ * and <code>use_put_object</code> as options.</p>
1968
+ * <p>This parameter requires version 1.19 of the Docker Remote API or greater on your container instance. To check the Docker Remote API version on your container instance, log in to your container instance and run the following command: <code>sudo docker version --format '\{\{.Server.APIVersion\}\}'</code>
1771
1969
  * </p>
1772
1970
  * @public
1773
1971
  */
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.668.0",
4
+ "version": "3.669.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,19 +20,19 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/client-sso-oidc": "3.668.0",
24
- "@aws-sdk/client-sts": "3.668.0",
23
+ "@aws-sdk/client-sso-oidc": "3.669.0",
24
+ "@aws-sdk/client-sts": "3.669.0",
25
25
  "@aws-sdk/core": "3.667.0",
26
- "@aws-sdk/credential-provider-node": "3.668.0",
26
+ "@aws-sdk/credential-provider-node": "3.669.0",
27
27
  "@aws-sdk/middleware-host-header": "3.667.0",
28
28
  "@aws-sdk/middleware-logger": "3.667.0",
29
29
  "@aws-sdk/middleware-recursion-detection": "3.667.0",
30
- "@aws-sdk/middleware-user-agent": "3.668.0",
30
+ "@aws-sdk/middleware-user-agent": "3.669.0",
31
31
  "@aws-sdk/region-config-resolver": "3.667.0",
32
32
  "@aws-sdk/types": "3.667.0",
33
33
  "@aws-sdk/util-endpoints": "3.667.0",
34
34
  "@aws-sdk/util-user-agent-browser": "3.667.0",
35
- "@aws-sdk/util-user-agent-node": "3.668.0",
35
+ "@aws-sdk/util-user-agent-node": "3.669.0",
36
36
  "@smithy/config-resolver": "^3.0.9",
37
37
  "@smithy/core": "^2.4.8",
38
38
  "@smithy/fetch-http-handler": "^3.2.9",