@aws-sdk/client-ecs 3.1161.0 → 3.1162.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 +13 -4
- package/dist-es/runtimeConfig.js +2 -1
- package/dist-es/schemas/schemas_0.js +9 -2
- package/dist-types/commands/DescribeDaemonTaskDefinitionCommand.d.ts +3 -0
- package/dist-types/commands/RegisterDaemonTaskDefinitionCommand.d.ts +3 -0
- package/dist-types/models/models_0.d.ts +18 -23
- package/dist-types/models/models_1.d.ts +23 -2
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +4 -5
- package/dist-types/ts3.4/models/models_1.d.ts +6 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +1 -0
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
|
|
1
|
+
const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, getDefaultSocketTimeout, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
|
|
2
2
|
const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
|
|
3
3
|
const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, makeBuilder, createWaiter, checkExceptions, WaiterState, createAggregatedClient } = require("@smithy/core/client");
|
|
4
4
|
const { Command: $Command } = require("@smithy/core/client");
|
|
@@ -69,7 +69,7 @@ const commonParams = {
|
|
|
69
69
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
70
70
|
};
|
|
71
71
|
|
|
72
|
-
var version = "3.
|
|
72
|
+
var version = "3.1161.0";
|
|
73
73
|
var packageInfo = {
|
|
74
74
|
version: version};
|
|
75
75
|
|
|
@@ -907,6 +907,7 @@ const _LDRi = "ListDaemonsResponse";
|
|
|
907
907
|
const _LDTD = "ListDaemonTaskDefinitions";
|
|
908
908
|
const _LDTDR = "ListDaemonTaskDefinitionsRequest";
|
|
909
909
|
const _LDTDRi = "ListDaemonTaskDefinitionsResponse";
|
|
910
|
+
const _LDVC = "LogDriverVolumeConfiguration";
|
|
910
911
|
const _LEE = "LimitExceededException";
|
|
911
912
|
const _LG = "ListGateways";
|
|
912
913
|
const _LGCA = "ListGatewayClusterAssociations";
|
|
@@ -1512,6 +1513,7 @@ const _lBo = "loadBalancer";
|
|
|
1512
1513
|
const _lC = "logConfiguration";
|
|
1513
1514
|
const _lCi = "linearConfiguration";
|
|
1514
1515
|
const _lD = "logDriver";
|
|
1516
|
+
const _lDVC = "logDriverVolumeConfiguration";
|
|
1515
1517
|
const _lG = "logGroups";
|
|
1516
1518
|
const _lGN = "logGroupName";
|
|
1517
1519
|
const _lGo = "logGroup";
|
|
@@ -2374,8 +2376,8 @@ var DaemonTaskDefinitionSummary$ = [3, n0, _DTDS,
|
|
|
2374
2376
|
];
|
|
2375
2377
|
var DaemonVolume$ = [3, n0, _DV,
|
|
2376
2378
|
0,
|
|
2377
|
-
[_n, _ho],
|
|
2378
|
-
[0, () => HostVolumeProperties$]
|
|
2379
|
+
[_n, _ho, _lDVC],
|
|
2380
|
+
[0, () => HostVolumeProperties$, () => LogDriverVolumeConfiguration$]
|
|
2379
2381
|
];
|
|
2380
2382
|
var DeleteAccountSettingRequest$ = [3, n0, _DASR,
|
|
2381
2383
|
0,
|
|
@@ -3257,6 +3259,11 @@ var LogConfiguration$ = [3, n0, _LCo,
|
|
|
3257
3259
|
[_lD, _o, _sO],
|
|
3258
3260
|
[0, 128 | 0, () => SecretList], 1
|
|
3259
3261
|
];
|
|
3262
|
+
var LogDriverVolumeConfiguration$ = [3, n0, _LDVC,
|
|
3263
|
+
0,
|
|
3264
|
+
[_dr],
|
|
3265
|
+
[0], 1
|
|
3266
|
+
];
|
|
3260
3267
|
var ManagedAgent$ = [3, n0, _MA,
|
|
3261
3268
|
0,
|
|
3262
3269
|
[_lSA, _n, _r, _lS],
|
|
@@ -4752,6 +4759,7 @@ const getRuntimeConfig = (config) => {
|
|
|
4752
4759
|
authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
|
|
4753
4760
|
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
4754
4761
|
credentialDefaultProvider: config?.credentialDefaultProvider ?? defaultProvider,
|
|
4762
|
+
defaultSocketTimeout: getDefaultSocketTimeout(config?.requestHandler, 900_000),
|
|
4755
4763
|
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
4756
4764
|
maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
4757
4765
|
region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
@@ -6866,6 +6874,7 @@ exports.LocalStorage = LocalStorage;
|
|
|
6866
6874
|
exports.LocalStorageType = LocalStorageType;
|
|
6867
6875
|
exports.LogConfiguration$ = LogConfiguration$;
|
|
6868
6876
|
exports.LogDriver = LogDriver;
|
|
6877
|
+
exports.LogDriverVolumeConfiguration$ = LogDriverVolumeConfiguration$;
|
|
6869
6878
|
exports.ManagedAgent$ = ManagedAgent$;
|
|
6870
6879
|
exports.ManagedAgentName = ManagedAgentName;
|
|
6871
6880
|
exports.ManagedAgentStateChange$ = ManagedAgentStateChange$;
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import packageInfo from "../package.json";
|
|
2
|
-
import { createDefaultUserAgentProvider, emitWarningIfUnsupportedVersion as awsCheckVersion, NODE_APP_ID_CONFIG_OPTIONS, } from "@aws-sdk/core/client";
|
|
2
|
+
import { createDefaultUserAgentProvider, emitWarningIfUnsupportedVersion as awsCheckVersion, getDefaultSocketTimeout, NODE_APP_ID_CONFIG_OPTIONS, } from "@aws-sdk/core/client";
|
|
3
3
|
import { NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } from "@aws-sdk/core/httpAuthSchemes";
|
|
4
4
|
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
|
|
5
5
|
import { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } from "@smithy/core/client";
|
|
@@ -26,6 +26,7 @@ export const getRuntimeConfig = (config) => {
|
|
|
26
26
|
authSchemePreference: config?.authSchemePreference ?? loadNodeConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
|
|
27
27
|
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
28
28
|
credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider,
|
|
29
|
+
defaultSocketTimeout: getDefaultSocketTimeout(config?.requestHandler, 900_000),
|
|
29
30
|
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
30
31
|
maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
31
32
|
region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
@@ -360,6 +360,7 @@ const _LDRi = "ListDaemonsResponse";
|
|
|
360
360
|
const _LDTD = "ListDaemonTaskDefinitions";
|
|
361
361
|
const _LDTDR = "ListDaemonTaskDefinitionsRequest";
|
|
362
362
|
const _LDTDRi = "ListDaemonTaskDefinitionsResponse";
|
|
363
|
+
const _LDVC = "LogDriverVolumeConfiguration";
|
|
363
364
|
const _LEE = "LimitExceededException";
|
|
364
365
|
const _LG = "ListGateways";
|
|
365
366
|
const _LGCA = "ListGatewayClusterAssociations";
|
|
@@ -965,6 +966,7 @@ const _lBo = "loadBalancer";
|
|
|
965
966
|
const _lC = "logConfiguration";
|
|
966
967
|
const _lCi = "linearConfiguration";
|
|
967
968
|
const _lD = "logDriver";
|
|
969
|
+
const _lDVC = "logDriverVolumeConfiguration";
|
|
968
970
|
const _lG = "logGroups";
|
|
969
971
|
const _lGN = "logGroupName";
|
|
970
972
|
const _lGo = "logGroup";
|
|
@@ -1830,8 +1832,8 @@ export var DaemonTaskDefinitionSummary$ = [3, n0, _DTDS,
|
|
|
1830
1832
|
];
|
|
1831
1833
|
export var DaemonVolume$ = [3, n0, _DV,
|
|
1832
1834
|
0,
|
|
1833
|
-
[_n, _ho],
|
|
1834
|
-
[0, () => HostVolumeProperties$]
|
|
1835
|
+
[_n, _ho, _lDVC],
|
|
1836
|
+
[0, () => HostVolumeProperties$, () => LogDriverVolumeConfiguration$]
|
|
1835
1837
|
];
|
|
1836
1838
|
export var DeleteAccountSettingRequest$ = [3, n0, _DASR,
|
|
1837
1839
|
0,
|
|
@@ -2713,6 +2715,11 @@ export var LogConfiguration$ = [3, n0, _LCo,
|
|
|
2713
2715
|
[_lD, _o, _sO],
|
|
2714
2716
|
[0, 128 | 0, () => SecretList], 1
|
|
2715
2717
|
];
|
|
2718
|
+
export var LogDriverVolumeConfiguration$ = [3, n0, _LDVC,
|
|
2719
|
+
0,
|
|
2720
|
+
[_dr],
|
|
2721
|
+
[0], 1
|
|
2722
|
+
];
|
|
2716
2723
|
export var ManagedAgent$ = [3, n0, _MA,
|
|
2717
2724
|
0,
|
|
2718
2725
|
[_lSA, _n, _r, _lS],
|
|
@@ -179,6 +179,9 @@ declare const DescribeDaemonTaskDefinitionCommand_base: {
|
|
|
179
179
|
* // host: { // HostVolumeProperties
|
|
180
180
|
* // sourcePath: "STRING_VALUE",
|
|
181
181
|
* // },
|
|
182
|
+
* // logDriverVolumeConfiguration: { // LogDriverVolumeConfiguration
|
|
183
|
+
* // driver: "json-file" || "syslog" || "journald" || "gelf" || "fluentd" || "awslogs" || "splunk" || "awsfirelens", // required
|
|
184
|
+
* // },
|
|
182
185
|
* // },
|
|
183
186
|
* // ],
|
|
184
187
|
* // cpu: "STRING_VALUE",
|
|
@@ -173,6 +173,9 @@ declare const RegisterDaemonTaskDefinitionCommand_base: {
|
|
|
173
173
|
* host: { // HostVolumeProperties
|
|
174
174
|
* sourcePath: "STRING_VALUE",
|
|
175
175
|
* },
|
|
176
|
+
* logDriverVolumeConfiguration: { // LogDriverVolumeConfiguration
|
|
177
|
+
* driver: "json-file" || "syslog" || "journald" || "gelf" || "fluentd" || "awslogs" || "splunk" || "awsfirelens", // required
|
|
178
|
+
* },
|
|
176
179
|
* },
|
|
177
180
|
* ],
|
|
178
181
|
* tags: [ // Tags
|
|
@@ -3534,12 +3534,12 @@ export interface Secret {
|
|
|
3534
3534
|
valueFrom: string | undefined;
|
|
3535
3535
|
}
|
|
3536
3536
|
/**
|
|
3537
|
-
* <p>The log configuration for the container. This parameter maps to <code>LogConfig</code> in the docker container create command and the <code>--log-driver</code> option to docker run.</p> <p>By default, containers use the same logging driver that the Docker daemon uses. However, the container might use a different logging driver than the Docker daemon by specifying a log driver configuration in the container definition.</p> <p>Understand the following when specifying a log configuration for your containers.</p> <ul> <li> <p>Amazon ECS currently supports a subset of the logging drivers available to the Docker daemon. Additional log drivers may be available in future releases of the Amazon ECS container agent.</p> <p>For tasks on Fargate, the supported log drivers are <code>awslogs</code>, <code>splunk</code>, and <code>awsfirelens</code>.</p> <p>For tasks hosted on Amazon EC2 instances, the supported log drivers are <code>awslogs</code>, <code>fluentd</code>, <code>gelf</code>, <code>json-file</code>, <code>journald</code>,<code>syslog</code>, <code>splunk</code>, and <code>awsfirelens</code>.</p> </li> <li> <p>This parameter requires version 1.18 of the Docker Remote API or greater on your container instance.</p> </li> <li> <p>For tasks that are hosted on Amazon EC2 instances, the Amazon ECS container agent must register the available logging drivers with the <code>ECS_AVAILABLE_LOGGING_DRIVERS</code> environment variable before containers placed on that instance can use these log configuration options. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-agent-config.html">Amazon ECS container agent configuration</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p> </li> <li> <p>For tasks that are on Fargate, because you don't have access to the underlying infrastructure your tasks are hosted on, any additional software needed must be installed outside of the task. For example, the Fluentd output aggregators or a remote host running Logstash to send Gelf logs to.</p> </li> </ul>
|
|
3537
|
+
* <p>The log configuration for the container. This parameter maps to <code>LogConfig</code> in the docker container create command and the <code>--log-driver</code> option to docker run.</p> <p>By default, containers use the same logging driver that the Docker daemon uses. However, the container might use a different logging driver than the Docker daemon by specifying a log driver configuration in the container definition.</p> <p>Understand the following when specifying a log configuration for your containers.</p> <ul> <li> <p>Amazon ECS currently supports a subset of the logging drivers available to the Docker daemon. Additional log drivers may be available in future releases of the Amazon ECS container agent.</p> <p>For tasks on Fargate, the supported log drivers are <code>awslogs</code>, <code>splunk</code>, and <code>awsfirelens</code>.</p> <p>For tasks hosted on Amazon EC2 instances, the supported log drivers are <code>awslogs</code>, <code>fluentd</code>, <code>gelf</code>, <code>json-file</code>, <code>journald</code>,<code>syslog</code>, <code>splunk</code>, and <code>awsfirelens</code>.</p> <p>For tasks on Amazon ECS Managed Instances, the supported log drivers are <code>awslogs</code>, <code>splunk</code>, <code>awsfirelens</code>, and <code>json-file</code>.</p> </li> <li> <p>This parameter requires version 1.18 of the Docker Remote API or greater on your container instance.</p> </li> <li> <p>For tasks that are hosted on Amazon EC2 instances, the Amazon ECS container agent must register the available logging drivers with the <code>ECS_AVAILABLE_LOGGING_DRIVERS</code> environment variable before containers placed on that instance can use these log configuration options. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-agent-config.html">Amazon ECS container agent configuration</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p> </li> <li> <p>For tasks that are on Fargate, because you don't have access to the underlying infrastructure your tasks are hosted on, any additional software needed must be installed outside of the task. For example, the Fluentd output aggregators or a remote host running Logstash to send Gelf logs to.</p> </li> </ul>
|
|
3538
3538
|
* @public
|
|
3539
3539
|
*/
|
|
3540
3540
|
export interface LogConfiguration {
|
|
3541
3541
|
/**
|
|
3542
|
-
* <p>The log driver to use for the container.</p> <p>For tasks on Fargate, the supported log drivers are <code>awslogs</code>, <code>splunk</code>, and <code>awsfirelens</code>.</p> <p>For tasks hosted on Amazon EC2 instances, the supported log drivers are <code>awslogs</code>, <code>fluentd</code>, <code>gelf</code>, <code>json-file</code>, <code>journald</code>, <code>syslog</code>, <code>splunk</code>, and <code>awsfirelens</code>.</p> <p>For more information about using the <code>awslogs</code> log driver, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/using_awslogs.html">Send Amazon ECS logs to CloudWatch</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p> <p>For more information about using the <code>awsfirelens</code> log driver, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/using_firelens.html">Send Amazon ECS logs to an Amazon Web Services service or Amazon Web Services Partner</a>.</p> <note> <p>If you have a custom driver that isn't listed, you can fork the Amazon ECS container agent project that's <a href="https://github.com/aws/amazon-ecs-agent">available on GitHub</a> and customize it to work with that driver. We encourage you to submit pull requests for changes that you would like to have included. However, we don't currently provide support for running modified copies of this software.</p> </note>
|
|
3542
|
+
* <p>The log driver to use for the container.</p> <p>For tasks on Fargate, the supported log drivers are <code>awslogs</code>, <code>splunk</code>, and <code>awsfirelens</code>.</p> <p>For tasks hosted on Amazon EC2 instances, the supported log drivers are <code>awslogs</code>, <code>fluentd</code>, <code>gelf</code>, <code>json-file</code>, <code>journald</code>, <code>syslog</code>, <code>splunk</code>, and <code>awsfirelens</code>.</p> <p>For tasks on Amazon ECS Managed Instances, the supported log drivers are <code>awslogs</code>, <code>splunk</code>, <code>awsfirelens</code>, and <code>json-file</code>.</p> <p>For more information about using the <code>awslogs</code> log driver, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/using_awslogs.html">Send Amazon ECS logs to CloudWatch</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p> <p>For more information about using the <code>awsfirelens</code> log driver, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/using_firelens.html">Send Amazon ECS logs to an Amazon Web Services service or Amazon Web Services Partner</a>.</p> <note> <p>If you have a custom driver that isn't listed, you can fork the Amazon ECS container agent project that's <a href="https://github.com/aws/amazon-ecs-agent">available on GitHub</a> and customize it to work with that driver. We encourage you to submit pull requests for changes that you would like to have included. However, we don't currently provide support for running modified copies of this software.</p> </note>
|
|
3543
3543
|
* @public
|
|
3544
3544
|
*/
|
|
3545
3545
|
logDriver: LogDriver | undefined;
|
|
@@ -3806,6 +3806,17 @@ export interface HostVolumeProperties {
|
|
|
3806
3806
|
*/
|
|
3807
3807
|
sourcePath?: string | undefined;
|
|
3808
3808
|
}
|
|
3809
|
+
/**
|
|
3810
|
+
* <p>The configuration for a log driver volume in a daemon task definition. The volume contains the log files for each container on the container instance that uses the specified log driver in its <code>logConfiguration</code>. Containers that use a different log driver don't write log files to the volume.</p> <p>For the <code>json-file</code> log driver, the volume has one directory for each container, named with the container ID. Each directory contains the container's log file, <code><container-id>-json.log</code>, and any rotated log files. After a container stops and Amazon ECS removes it, Amazon ECS deletes the container's directory. Read the log files before the container is removed.</p>
|
|
3811
|
+
* @public
|
|
3812
|
+
*/
|
|
3813
|
+
export interface LogDriverVolumeConfiguration {
|
|
3814
|
+
/**
|
|
3815
|
+
* <p>The log driver whose log files the volume contains. The only supported value is <code>json-file</code>.</p>
|
|
3816
|
+
* @public
|
|
3817
|
+
*/
|
|
3818
|
+
driver: LogDriver | undefined;
|
|
3819
|
+
}
|
|
3809
3820
|
/**
|
|
3810
3821
|
* <p>A data volume definition for a daemon task.</p>
|
|
3811
3822
|
* @public
|
|
@@ -3821,6 +3832,11 @@ export interface DaemonVolume {
|
|
|
3821
3832
|
* @public
|
|
3822
3833
|
*/
|
|
3823
3834
|
host?: HostVolumeProperties | undefined;
|
|
3835
|
+
/**
|
|
3836
|
+
* <p>The log driver volume configuration. With a log driver volume, the containers in a daemon task can read the log files that a log driver writes for the other tasks on the container instance. To read the log files, mount the volume into a container in the daemon task with <code>mountPoints</code>.</p> <p>Use <code>host</code> to bind mount a path on the container instance. Use <code>logDriverVolumeConfiguration</code> to read the log output of other tasks. You can't specify both for the same volume.</p>
|
|
3837
|
+
* @public
|
|
3838
|
+
*/
|
|
3839
|
+
logDriverVolumeConfiguration?: LogDriverVolumeConfiguration | undefined;
|
|
3824
3840
|
}
|
|
3825
3841
|
/**
|
|
3826
3842
|
* <p>The details of a daemon task definition. A daemon task definition is a template that describes the containers that form a daemon. Daemons deploy cross-cutting software agents independently across your Amazon ECS infrastructure.</p>
|
|
@@ -7531,24 +7547,3 @@ export interface ServiceConnectTestTrafficRules {
|
|
|
7531
7547
|
*/
|
|
7532
7548
|
header: ServiceConnectTestTrafficHeaderRules | undefined;
|
|
7533
7549
|
}
|
|
7534
|
-
/**
|
|
7535
|
-
* <p>Each alias ("endpoint") is a fully-qualified name and port number that other tasks ("clients") can use to connect to this service.</p> <p>Each name and port mapping must be unique within the namespace.</p> <p>Tasks that run in a namespace can use short names to connect to services in the namespace. Tasks can connect to services across all of the clusters in the namespace. Tasks connect through a managed proxy container that collects logs and metrics for increased visibility. Only the tasks that Amazon ECS services create are supported with Service Connect. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-connect.html">Service Connect</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p>
|
|
7536
|
-
* @public
|
|
7537
|
-
*/
|
|
7538
|
-
export interface ServiceConnectClientAlias {
|
|
7539
|
-
/**
|
|
7540
|
-
* <p>The listening port number for the Service Connect proxy. This port is available inside of all of the tasks within the same namespace.</p> <p>To avoid changing your applications in client Amazon ECS services, set this to the same port that the client application uses by default. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-connect.html">Service Connect</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p>
|
|
7541
|
-
* @public
|
|
7542
|
-
*/
|
|
7543
|
-
port: number | undefined;
|
|
7544
|
-
/**
|
|
7545
|
-
* <p>The <code>dnsName</code> is the name that you use in the applications of client tasks to connect to this service. The name must be a valid DNS name but doesn't need to be fully-qualified. The name can include up to 127 characters. The name can include lowercase letters, numbers, underscores (_), hyphens (-), and periods (.). The name can't start with a hyphen.</p> <p>If this parameter isn't specified, the default value of <code>discoveryName.namespace</code> is used. If the <code>discoveryName</code> isn't specified, the port mapping name from the task definition is used in <code>portName.namespace</code>.</p> <p>To avoid changing your applications in client Amazon ECS services, set this to the same name that the client application uses by default. For example, a few common names are <code>database</code>, <code>db</code>, or the lowercase name of a database, such as <code>mysql</code> or <code>redis</code>. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-connect.html">Service Connect</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p>
|
|
7546
|
-
* @public
|
|
7547
|
-
*/
|
|
7548
|
-
dnsName?: string | undefined;
|
|
7549
|
-
/**
|
|
7550
|
-
* <p>The configuration for test traffic routing rules used during blue/green deployments with Amazon ECS Service Connect. This allows you to route a portion of traffic to the new service revision of your service for testing before shifting all production traffic.</p>
|
|
7551
|
-
* @public
|
|
7552
|
-
*/
|
|
7553
|
-
testTrafficRules?: ServiceConnectTestTrafficRules | undefined;
|
|
7554
|
-
}
|
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
import type { AccessType, AvailabilityZoneRebalancing, Compatibility, Connectivity, DeploymentRolloutState, EBSResourceType, ExpressCpuArchitecture, ExpressGatewayServiceInclude, GatewayRouteStatus, HealthStatus, IpcMode, LaunchType, ManagedAgentName, ManagedResourceStatus, NetworkMode, PidMode, PropagateTags, ResourceManagementType, ScaleUnit, SchedulingStrategy, ServiceDeploymentStatus, ServiceField, SortOrder, StabilityStatus, StopServiceDeploymentStopType, TaskDefinitionStatus, TaskField, TaskFilesystemType, TaskSetField, TaskStopCode } from "./enums";
|
|
2
|
-
import type { Attachment, Attribute, CapacityProviderStrategyItem, ContainerDefinition, CreatedAt, DeploymentConfiguration, DeploymentController, ECSExpressGatewayService, EnvironmentFile, EphemeralStorage, ExpressGatewayContainer, ExpressGatewayScalingTarget, ExpressGatewayServiceConfiguration, ExpressGatewayServiceNetworkConfiguration, ExpressGatewayServiceStatus, Failure, GatewayConnector, InferenceAccelerator, KeyValuePair, LoadBalancer, LogConfiguration, MonitoringConfiguration, NetworkBinding, NetworkConfiguration, PlacementConstraint, PlacementStrategy, ProxyConfiguration, ResourceRequirement, RuntimePlatform, ServiceConnectAccessLogConfiguration,
|
|
2
|
+
import type { Attachment, Attribute, CapacityProviderStrategyItem, ContainerDefinition, CreatedAt, DeploymentConfiguration, DeploymentController, ECSExpressGatewayService, EnvironmentFile, EphemeralStorage, ExpressGatewayContainer, ExpressGatewayScalingTarget, ExpressGatewayServiceConfiguration, ExpressGatewayServiceNetworkConfiguration, ExpressGatewayServiceStatus, Failure, GatewayConnector, InferenceAccelerator, KeyValuePair, LoadBalancer, LogConfiguration, MonitoringConfiguration, NetworkBinding, NetworkConfiguration, PlacementConstraint, PlacementStrategy, ProxyConfiguration, ResourceRequirement, RuntimePlatform, ServiceConnectAccessLogConfiguration, ServiceConnectContainerConfiguration, ServiceConnectTestTrafficRules, SharingStrategy, Tag, TaskDefinition, TaskDefinitionPlacementConstraint, Volume } from "./models_0";
|
|
3
|
+
/**
|
|
4
|
+
* <p>Each alias ("endpoint") is a fully-qualified name and port number that other tasks ("clients") can use to connect to this service.</p> <p>Each name and port mapping must be unique within the namespace.</p> <p>Tasks that run in a namespace can use short names to connect to services in the namespace. Tasks can connect to services across all of the clusters in the namespace. Tasks connect through a managed proxy container that collects logs and metrics for increased visibility. Only the tasks that Amazon ECS services create are supported with Service Connect. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-connect.html">Service Connect</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p>
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
export interface ServiceConnectClientAlias {
|
|
8
|
+
/**
|
|
9
|
+
* <p>The listening port number for the Service Connect proxy. This port is available inside of all of the tasks within the same namespace.</p> <p>To avoid changing your applications in client Amazon ECS services, set this to the same port that the client application uses by default. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-connect.html">Service Connect</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p>
|
|
10
|
+
* @public
|
|
11
|
+
*/
|
|
12
|
+
port: number | undefined;
|
|
13
|
+
/**
|
|
14
|
+
* <p>The <code>dnsName</code> is the name that you use in the applications of client tasks to connect to this service. The name must be a valid DNS name but doesn't need to be fully-qualified. The name can include up to 127 characters. The name can include lowercase letters, numbers, underscores (_), hyphens (-), and periods (.). The name can't start with a hyphen.</p> <p>If this parameter isn't specified, the default value of <code>discoveryName.namespace</code> is used. If the <code>discoveryName</code> isn't specified, the port mapping name from the task definition is used in <code>portName.namespace</code>.</p> <p>To avoid changing your applications in client Amazon ECS services, set this to the same name that the client application uses by default. For example, a few common names are <code>database</code>, <code>db</code>, or the lowercase name of a database, such as <code>mysql</code> or <code>redis</code>. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-connect.html">Service Connect</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p>
|
|
15
|
+
* @public
|
|
16
|
+
*/
|
|
17
|
+
dnsName?: string | undefined;
|
|
18
|
+
/**
|
|
19
|
+
* <p>The configuration for test traffic routing rules used during blue/green deployments with Amazon ECS Service Connect. This allows you to route a portion of traffic to the new service revision of your service for testing before shifting all production traffic.</p>
|
|
20
|
+
* @public
|
|
21
|
+
*/
|
|
22
|
+
testTrafficRules?: ServiceConnectTestTrafficRules | undefined;
|
|
23
|
+
}
|
|
3
24
|
/**
|
|
4
25
|
* <p>An object that represents the timeout configurations for Service Connect.</p> <note> <p>If <code>idleTimeout</code> is set to a time that is less than <code>perRequestTimeout</code>, the connection will close when the <code>idleTimeout</code> is reached and not the <code>perRequestTimeout</code>.</p> </note>
|
|
5
26
|
* @public
|
|
@@ -105,7 +126,7 @@ export interface ServiceConnectConfiguration {
|
|
|
105
126
|
*/
|
|
106
127
|
services?: ServiceConnectService[] | undefined;
|
|
107
128
|
/**
|
|
108
|
-
* <p>The log configuration for the container. This parameter maps to <code>LogConfig</code> in the docker container create command and the <code>--log-driver</code> option to docker run.</p> <p>By default, containers use the same logging driver that the Docker daemon uses. However, the container might use a different logging driver than the Docker daemon by specifying a log driver configuration in the container definition.</p> <p>Understand the following when specifying a log configuration for your containers.</p> <ul> <li> <p>Amazon ECS currently supports a subset of the logging drivers available to the Docker daemon. Additional log drivers may be available in future releases of the Amazon ECS container agent.</p> <p>For tasks on Fargate, the supported log drivers are <code>awslogs</code>, <code>splunk</code>, and <code>awsfirelens</code>.</p> <p>For tasks hosted on Amazon EC2 instances, the supported log drivers are <code>awslogs</code>, <code>fluentd</code>, <code>gelf</code>, <code>json-file</code>, <code>journald</code>,<code>syslog</code>, <code>splunk</code>, and <code>awsfirelens</code>.</p> </li> <li> <p>This parameter requires version 1.18 of the Docker Remote API or greater on your container instance.</p> </li> <li> <p>For tasks that are hosted on Amazon EC2 instances, the Amazon ECS container agent must register the available logging drivers with the <code>ECS_AVAILABLE_LOGGING_DRIVERS</code> environment variable before containers placed on that instance can use these log configuration options. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-agent-config.html">Amazon ECS container agent configuration</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p> </li> <li> <p>For tasks that are on Fargate, because you don't have access to the underlying infrastructure your tasks are hosted on, any additional software needed must be installed outside of the task. For example, the Fluentd output aggregators or a remote host running Logstash to send Gelf logs to.</p> </li> </ul>
|
|
129
|
+
* <p>The log configuration for the container. This parameter maps to <code>LogConfig</code> in the docker container create command and the <code>--log-driver</code> option to docker run.</p> <p>By default, containers use the same logging driver that the Docker daemon uses. However, the container might use a different logging driver than the Docker daemon by specifying a log driver configuration in the container definition.</p> <p>Understand the following when specifying a log configuration for your containers.</p> <ul> <li> <p>Amazon ECS currently supports a subset of the logging drivers available to the Docker daemon. Additional log drivers may be available in future releases of the Amazon ECS container agent.</p> <p>For tasks on Fargate, the supported log drivers are <code>awslogs</code>, <code>splunk</code>, and <code>awsfirelens</code>.</p> <p>For tasks hosted on Amazon EC2 instances, the supported log drivers are <code>awslogs</code>, <code>fluentd</code>, <code>gelf</code>, <code>json-file</code>, <code>journald</code>,<code>syslog</code>, <code>splunk</code>, and <code>awsfirelens</code>.</p> <p>For tasks on Amazon ECS Managed Instances, the supported log drivers are <code>awslogs</code>, <code>splunk</code>, <code>awsfirelens</code>, and <code>json-file</code>.</p> </li> <li> <p>This parameter requires version 1.18 of the Docker Remote API or greater on your container instance.</p> </li> <li> <p>For tasks that are hosted on Amazon EC2 instances, the Amazon ECS container agent must register the available logging drivers with the <code>ECS_AVAILABLE_LOGGING_DRIVERS</code> environment variable before containers placed on that instance can use these log configuration options. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-agent-config.html">Amazon ECS container agent configuration</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p> </li> <li> <p>For tasks that are on Fargate, because you don't have access to the underlying infrastructure your tasks are hosted on, any additional software needed must be installed outside of the task. For example, the Fluentd output aggregators or a remote host running Logstash to send Gelf logs to.</p> </li> </ul>
|
|
109
130
|
* @public
|
|
110
131
|
*/
|
|
111
132
|
logConfiguration?: LogConfiguration | undefined;
|
|
@@ -44,6 +44,7 @@ export declare const getRuntimeConfig: (config: ECSClientConfig) => {
|
|
|
44
44
|
authSchemePreference: string[] | import("@smithy/types").Provider<string[]>;
|
|
45
45
|
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
46
46
|
credentialDefaultProvider: ((init?: import("@aws-sdk/credential-provider-node").DefaultProviderInit) => import("@aws-sdk/credential-provider-node").MemoizedRuntimeConfigAwsCredentialIdentityProvider) | ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider);
|
|
47
|
+
defaultSocketTimeout: number | undefined;
|
|
47
48
|
defaultUserAgentProvider: (config?: import("@aws-sdk/core/client").PreviouslyResolved) => Promise<import("@smithy/types").UserAgent>;
|
|
48
49
|
maxAttempts: number | import("@smithy/types").Provider<number>;
|
|
49
50
|
region: string | import("@smithy/types").Provider<string>;
|
|
@@ -283,6 +283,7 @@ export declare var ListTasksRequest$: StaticStructureSchema;
|
|
|
283
283
|
export declare var ListTasksResponse$: StaticStructureSchema;
|
|
284
284
|
export declare var LoadBalancer$: StaticStructureSchema;
|
|
285
285
|
export declare var LogConfiguration$: StaticStructureSchema;
|
|
286
|
+
export declare var LogDriverVolumeConfiguration$: StaticStructureSchema;
|
|
286
287
|
export declare var ManagedAgent$: StaticStructureSchema;
|
|
287
288
|
export declare var ManagedAgentStateChange$: StaticStructureSchema;
|
|
288
289
|
export declare var ManagedApplicationAutoScalingPolicy$: StaticStructureSchema;
|
|
@@ -996,9 +996,13 @@ export interface DaemonContainerDefinition {
|
|
|
996
996
|
export interface HostVolumeProperties {
|
|
997
997
|
sourcePath?: string | undefined;
|
|
998
998
|
}
|
|
999
|
+
export interface LogDriverVolumeConfiguration {
|
|
1000
|
+
driver: LogDriver | undefined;
|
|
1001
|
+
}
|
|
999
1002
|
export interface DaemonVolume {
|
|
1000
1003
|
name?: string | undefined;
|
|
1001
1004
|
host?: HostVolumeProperties | undefined;
|
|
1005
|
+
logDriverVolumeConfiguration?: LogDriverVolumeConfiguration | undefined;
|
|
1002
1006
|
}
|
|
1003
1007
|
export interface DaemonTaskDefinition {
|
|
1004
1008
|
daemonTaskDefinitionArn?: string | undefined;
|
|
@@ -1938,8 +1942,3 @@ export interface ServiceConnectTestTrafficHeaderRules {
|
|
|
1938
1942
|
export interface ServiceConnectTestTrafficRules {
|
|
1939
1943
|
header: ServiceConnectTestTrafficHeaderRules | undefined;
|
|
1940
1944
|
}
|
|
1941
|
-
export interface ServiceConnectClientAlias {
|
|
1942
|
-
port: number | undefined;
|
|
1943
|
-
dnsName?: string | undefined;
|
|
1944
|
-
testTrafficRules?: ServiceConnectTestTrafficRules | undefined;
|
|
1945
|
-
}
|
|
@@ -61,14 +61,19 @@ import {
|
|
|
61
61
|
ResourceRequirement,
|
|
62
62
|
RuntimePlatform,
|
|
63
63
|
ServiceConnectAccessLogConfiguration,
|
|
64
|
-
ServiceConnectClientAlias,
|
|
65
64
|
ServiceConnectContainerConfiguration,
|
|
65
|
+
ServiceConnectTestTrafficRules,
|
|
66
66
|
SharingStrategy,
|
|
67
67
|
Tag,
|
|
68
68
|
TaskDefinition,
|
|
69
69
|
TaskDefinitionPlacementConstraint,
|
|
70
70
|
Volume,
|
|
71
71
|
} from "./models_0";
|
|
72
|
+
export interface ServiceConnectClientAlias {
|
|
73
|
+
port: number | undefined;
|
|
74
|
+
dnsName?: string | undefined;
|
|
75
|
+
testTrafficRules?: ServiceConnectTestTrafficRules | undefined;
|
|
76
|
+
}
|
|
72
77
|
export interface TimeoutConfiguration {
|
|
73
78
|
idleTimeoutSeconds?: number | undefined;
|
|
74
79
|
perRequestTimeoutSeconds?: number | undefined;
|
|
@@ -78,6 +78,7 @@ export declare const getRuntimeConfig: (config: ECSClientConfig) => {
|
|
|
78
78
|
init?: import("@aws-sdk/credential-provider-node").DefaultProviderInit,
|
|
79
79
|
) => import("@aws-sdk/credential-provider-node").MemoizedRuntimeConfigAwsCredentialIdentityProvider)
|
|
80
80
|
| ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider);
|
|
81
|
+
defaultSocketTimeout: number | undefined;
|
|
81
82
|
defaultUserAgentProvider: (
|
|
82
83
|
config?: import("@aws-sdk/core/client").PreviouslyResolved,
|
|
83
84
|
) => Promise<import("@smithy/types").UserAgent>;
|
|
@@ -283,6 +283,7 @@ export declare var ListTasksRequest$: StaticStructureSchema;
|
|
|
283
283
|
export declare var ListTasksResponse$: StaticStructureSchema;
|
|
284
284
|
export declare var LoadBalancer$: StaticStructureSchema;
|
|
285
285
|
export declare var LogConfiguration$: StaticStructureSchema;
|
|
286
|
+
export declare var LogDriverVolumeConfiguration$: StaticStructureSchema;
|
|
286
287
|
export declare var ManagedAgent$: StaticStructureSchema;
|
|
287
288
|
export declare var ManagedAgentStateChange$: StaticStructureSchema;
|
|
288
289
|
export declare var ManagedApplicationAutoScalingPolicy$: StaticStructureSchema;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-ecs",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1162.0",
|
|
4
4
|
"description": "AWS SDK for JavaScript Ecs Client for Node.js, Browser and React Native",
|
|
5
5
|
"homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-ecs",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
"test:index": "tsc -p tsconfig.test.json && node ./test/index-objects.spec.mjs"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@aws-sdk/core": "^3.
|
|
52
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
51
|
+
"@aws-sdk/core": "^3.980.0",
|
|
52
|
+
"@aws-sdk/credential-provider-node": "^3.972.93",
|
|
53
53
|
"@aws-sdk/types": "^3.975.0",
|
|
54
54
|
"@smithy/core": "^3.38.0",
|
|
55
55
|
"@smithy/fetch-http-handler": "^5.8.0",
|