Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Usage

import * as mod from "https://aws-api.deno.dev/v0.4/services/ecs.ts?docs=full";

§Classes

ECS

§Interfaces

Attachment

An object representing a container instance or task attachment.

AttachmentStateChange

An object representing a change in state for a task attachment.

Attribute

An attribute is a name-value pair that's associated with an Amazon ECS object. Use attributes to extend the Amazon ECS data model by adding custom metadata to your resources. For more information, see Attributes in the Amazon Elastic Container Service Developer Guide.

AutoScalingGroupProvider

The details of the Auto Scaling group for the capacity provider.

AutoScalingGroupProviderUpdate

The details of the Auto Scaling group capacity provider to update.

AwsVpcConfiguration

An object representing the networking details for a task or service.

CapacityProvider

The details for a capacity provider.

CapacityProviderStrategyItem

The details of a capacity provider strategy. A capacity provider strategy can be set when using the "RunTask" or "CreateCluster" APIs or as the default capacity provider strategy for a cluster with the "CreateCluster" API.

Cluster

A regional grouping of one or more container instances where you can run task requests. Each account receives a default cluster the first time you use the Amazon ECS service, but you may also create other clusters. Clusters may contain more than one instance type simultaneously.

ClusterConfiguration

The execute command configuration for the cluster.

ClusterServiceConnectDefaults

Use this parameter to set a default Service Connect namespace. After you set a default Service Connect namespace, any new services with Service Connect turned on that are created in the cluster are added as client services in the namespace. This setting only applies to new services that set the enabled parameter to true in the ServiceConnectConfiguration. You can set the namespace of each service individually in the ServiceConnectConfiguration to override this default parameter.

ClusterServiceConnectDefaultsRequest

Use this parameter to set a default Service Connect namespace. After you set a default Service Connect namespace, any new services with Service Connect turned on that are created in the cluster are added as client services in the namespace. This setting only applies to new services that set the enabled parameter to true in the ServiceConnectConfiguration. You can set the namespace of each service individually in the ServiceConnectConfiguration to override this default parameter.

ClusterSetting

The settings to use when creating a cluster. This parameter is used to turn on CloudWatch Container Insights for a cluster.

Container

A Docker container that's part of a task.

ContainerDefinition

Container definitions are used in task definitions to describe the different containers that are launched as part of a task.

ContainerDependency

The dependencies defined for container startup and shutdown. A container can contain multiple dependencies. When a dependency is defined for container startup, for container shutdown it is reversed.

ContainerInstance

An Amazon EC2 or External instance that's running the Amazon ECS agent and has been registered with a cluster.

ContainerInstanceHealthStatus

An object representing the health status of the container instance.

ContainerOverride

The overrides that are sent to a container. An empty container override can be passed in. An example of an empty container override is {"containerOverrides": [ ] }. If a non-empty container override is specified, the name parameter must be included.

ContainerStateChange

An object that represents a change in state for a container.

CreateCapacityProviderRequest
CreateCapacityProviderResponse
CreateClusterRequest
CreateClusterResponse
CreateServiceRequest
CreateServiceResponse
CreateTaskSetRequest
CreateTaskSetResponse
DeleteAccountSettingRequest
DeleteAccountSettingResponse
DeleteAttributesRequest
DeleteAttributesResponse
DeleteCapacityProviderRequest
DeleteCapacityProviderResponse
DeleteClusterRequest
DeleteClusterResponse
DeleteServiceRequest
DeleteServiceResponse
DeleteTaskDefinitionsRequest
DeleteTaskDefinitionsResponse
DeleteTaskSetRequest
DeleteTaskSetResponse
Deployment

The details of an Amazon ECS service deployment. This is used only when a service uses the ECS deployment controller type.

DeploymentAlarms

One of the methods which provide a way for you to quickly identify when a deployment has failed, and then to optionally roll back the failure to the last working deployment.

DeploymentCircuitBreaker

Note: The deployment circuit breaker can only be used for services using the rolling update (ECS) deployment type.

DeploymentConfiguration

Optional deployment parameters that control how many tasks run during a deployment and the ordering of stopping and starting tasks.

DeploymentController

The deployment controller to use for the service. For more information, see Amazon ECS deployment types in the Amazon Elastic Container Service Developer Guide.

DeregisterContainerInstanceRequest
DeregisterContainerInstanceResponse
DeregisterTaskDefinitionRequest
DeregisterTaskDefinitionResponse
DescribeCapacityProvidersRequest
DescribeCapacityProvidersResponse
DescribeClustersRequest
DescribeClustersResponse
DescribeContainerInstancesRequest
DescribeContainerInstancesResponse
DescribeServicesRequest
DescribeServicesResponse
DescribeTaskDefinitionRequest
DescribeTaskDefinitionResponse
DescribeTaskSetsRequest
DescribeTaskSetsResponse
DescribeTasksRequest
DescribeTasksResponse
Device

An object representing a container instance host device.

DiscoverPollEndpointRequest
DiscoverPollEndpointResponse
DockerVolumeConfiguration

This parameter is specified when you're using Docker volumes. Docker volumes are only supported when you're using the EC2 launch type. Windows containers only support the use of the local driver. To use bind mounts, specify a host instead.

EFSAuthorizationConfig

The authorization configuration details for the Amazon EFS file system.

EFSVolumeConfiguration

This parameter is specified when you're using an Amazon Elastic File System file system for task storage. For more information, see Amazon EFS volumes in the Amazon Elastic Container Service Developer Guide.

EnvironmentFile

A list of files containing the environment variables to pass to a container. You can specify up to ten environment files. The file must have a .env file extension. Each line in an environment file should contain an environment variable in VARIABLE=VALUE format. Lines beginning with # are treated as comments and are ignored. For more information about the environment variable file syntax, see Declare default environment variables in file.

EphemeralStorage

The amount of ephemeral storage to allocate for the task. This parameter is used to expand the total amount of ephemeral storage available, beyond the default amount, for tasks hosted on Fargate. For more information, see Fargate task storage in the Amazon ECS User Guide for Fargate.

ExecuteCommandConfiguration

The details of the execute command configuration.

ExecuteCommandLogConfiguration

The log configuration for the results of the execute command actions. The logs can be sent to CloudWatch Logs or an Amazon S3 bucket.

ExecuteCommandRequest
ExecuteCommandResponse
Failure

A failed resource. For a list of common causes, see API failure reasons in the Amazon Elastic Container Service Developer Guide.

FirelensConfiguration

The FireLens configuration for the container. This is used to specify and configure a log router for container logs. For more information, see Custom log routing in the Amazon Elastic Container Service Developer Guide.

FSxWindowsFileServerAuthorizationConfig

The authorization configuration details for Amazon FSx for Windows File Server file system. See FSxWindowsFileServerVolumeConfiguration in the Amazon ECS API Reference.

FSxWindowsFileServerVolumeConfiguration

This parameter is specified when you're using Amazon FSx for Windows File Server file system for task storage.

GetTaskProtectionRequest
GetTaskProtectionResponse
HealthCheck

An object representing a container health check. Health check parameters that are specified in a container definition override any Docker health checks that exist in the container image (such as those specified in a parent image or from the image's Dockerfile).

HostEntry

Hostnames and IP address entries that are added to the /etc/hosts file of a container via the extraHosts parameter of its "ContainerDefinition".

HostVolumeProperties

Details on a container instance bind mount host volume.

InferenceAccelerator

Details on an Elastic Inference accelerator. For more information, see Working with Amazon Elastic Inference on Amazon ECS in the Amazon Elastic Container Service Developer Guide.

InferenceAcceleratorOverride

Details on an Elastic Inference accelerator task override. This parameter is used to override the Elastic Inference accelerator specified in the task definition. For more information, see Working with Amazon Elastic Inference on Amazon ECS in the Amazon Elastic Container Service Developer Guide.

InstanceHealthCheckResult

An object representing the result of a container instance health status check.

KernelCapabilities

The Linux capabilities for the container that are added to or dropped from the default configuration provided by Docker. For more information about the default capabilities and the non-default available capabilities, see Runtime privilege and Linux capabilities in the Docker run reference. For more detailed information about these Linux capabilities, see the capabilities(7) Linux manual page.

KeyValuePair

A key-value pair object.

LinuxParameters

Linux-specific options that are applied to the container, such as Linux "KernelCapabilities".

ListAccountSettingsRequest
ListAccountSettingsResponse
ListAttributesRequest
ListAttributesResponse
ListClustersRequest
ListClustersResponse
ListContainerInstancesRequest
ListContainerInstancesResponse
ListServicesByNamespaceRequest
ListServicesByNamespaceResponse
ListServicesRequest
ListServicesResponse
ListTagsForResourceRequest
ListTagsForResourceResponse
ListTaskDefinitionFamiliesRequest
ListTaskDefinitionFamiliesResponse
ListTaskDefinitionsRequest
ListTaskDefinitionsResponse
ListTasksRequest
ListTasksResponse
LoadBalancer

The load balancer configuration to use with a service or task set.

LogConfiguration

The log configuration for the container. This parameter maps to LogConfig in the Create a container section of the Docker Remote API and the --log-driver option to docker run.

ManagedAgent

Details about the managed agent status for the container.

ManagedAgentStateChange

An object representing a change in state for a managed agent.

ManagedScaling

The managed scaling settings for the Auto Scaling group capacity provider.

MountPoint

Details for a volume mount point that's used in a container definition.

NetworkBinding

Details on the network bindings between a container and its host container instance. After a task reaches the RUNNING status, manual and automatic host and container port assignments are visible in the networkBindings section of "DescribeTasks" API responses.

NetworkConfiguration

The network configuration for a task or service.

NetworkInterface

An object representing the elastic network interface for tasks that use the awsvpc network mode.

PlacementConstraint

An object representing a constraint on task placement. For more information, see Task placement constraints in the Amazon Elastic Container Service Developer Guide.

PlacementStrategy

The task placement strategy for a task or service. For more information, see Task placement strategies in the Amazon Elastic Container Service Developer Guide.

PlatformDevice

The devices that are available on the container instance. The only supported device type is a GPU.

PortMapping

Port mappings allow containers to access ports on the host container instance to send or receive traffic. Port mappings are specified as part of the container definition.

ProtectedTask

An object representing the protection status details for a task. You can set the protection status with the "UpdateTaskProtection" API and get the status of tasks with the "GetTaskProtection" API.

ProxyConfiguration

The configuration details for the App Mesh proxy.

PutAccountSettingDefaultRequest
PutAccountSettingDefaultResponse
PutAccountSettingRequest
PutAccountSettingResponse
PutAttributesRequest
PutAttributesResponse
PutClusterCapacityProvidersRequest
PutClusterCapacityProvidersResponse
RegisterContainerInstanceRequest
RegisterContainerInstanceResponse
RegisterTaskDefinitionRequest
RegisterTaskDefinitionResponse
RepositoryCredentials

The repository credentials for private registry authentication.

Resource

Describes the resources available for a container instance.

ResourceRequirement

The type and amount of a resource to assign to a container. The supported resource types are GPUs and Elastic Inference accelerators. For more information, see Working with GPUs on Amazon ECS or Working with Amazon Elastic Inference on Amazon ECS in the Amazon Elastic Container Service Developer Guide

RunTaskRequest
RunTaskResponse
RuntimePlatform

Information about the platform for the Amazon ECS service or task.

Scale

A floating-point percentage of the desired number of tasks to place and keep running in the task set.

Secret

An object representing the secret to expose to your container. Secrets can be exposed to a container in the following ways:

Service

Details on a service within a cluster

ServiceConnectClientAlias

Each alias ("endpoint") is a fully-qualified name and port number that other tasks ("clients") can use to connect to this service.

ServiceConnectConfiguration

The Service Connect configuration of your Amazon ECS service. The configuration for this service to discover and connect to services, and be discovered by, and connected from, other services within a namespace.

ServiceConnectService

The Service Connect service object configuration. For more information, see Service Connect in the Amazon Elastic Container Service Developer Guide.

ServiceConnectServiceResource

The Service Connect resource. Each configuration maps a discovery name to a Cloud Map service name. The data is stored in Cloud Map as part of the Service Connect configuration for each discovery name of this Amazon ECS service.

ServiceEvent

The details for an event that's associated with a service.

ServiceRegistry

The details for the service registry.

Session

The details for the execute command session.

Setting

The current account setting for a resource.

StartTaskRequest
StartTaskResponse
StopTaskRequest
StopTaskResponse
SubmitAttachmentStateChangesRequest
SubmitAttachmentStateChangesResponse
SubmitContainerStateChangeRequest
SubmitContainerStateChangeResponse
SubmitTaskStateChangeRequest
SubmitTaskStateChangeResponse
SystemControl

A list of namespaced kernel parameters to set in the container. This parameter maps to Sysctls in the Create a container section of the Docker Remote API and the --sysctl option to docker run.

Tag

The metadata that you apply to a resource to help you categorize and organize them. Each tag consists of a key and an optional value. You define them.

TagResourceRequest
Task

Details on a task in a cluster.

TaskDefinition

The details of a task definition which describes the container and volume definitions of an Amazon Elastic Container Service task. You can specify which Docker images to use, the required resources, and other configurations related to launching the task definition through an Amazon ECS service or task.

TaskDefinitionPlacementConstraint

An object representing a constraint on task placement in the task definition. For more information, see Task placement constraints in the Amazon Elastic Container Service Developer Guide.

TaskOverride

The overrides that are associated with a task.

TaskSet

Information about a set of Amazon ECS tasks in either an CodeDeploy or an EXTERNAL deployment. An Amazon ECS task set includes details such as the desired number of tasks, how many tasks are running, and whether the task set serves production traffic.

Tmpfs

The container path, mount options, and size of the tmpfs mount.

Ulimit

The ulimit settings to pass to the container.

UntagResourceRequest
UpdateCapacityProviderRequest
UpdateCapacityProviderResponse
UpdateClusterRequest
UpdateClusterResponse
UpdateClusterSettingsRequest
UpdateClusterSettingsResponse
UpdateContainerAgentRequest
UpdateContainerAgentResponse
UpdateContainerInstancesStateRequest
UpdateContainerInstancesStateResponse
UpdateServicePrimaryTaskSetRequest
UpdateServicePrimaryTaskSetResponse
UpdateServiceRequest
UpdateServiceResponse
UpdateTaskProtectionRequest
UpdateTaskProtectionResponse
UpdateTaskSetRequest
UpdateTaskSetResponse
VersionInfo

The Docker and Amazon ECS container agent version information about a container instance.

Volume

A data volume that's used in a task definition. For tasks that use the Amazon Elastic File System (Amazon EFS), specify an efsVolumeConfiguration. For Windows tasks that use Amazon FSx for Windows File Server file system, specify a fsxWindowsFileServerVolumeConfiguration. For tasks that use a Docker volume, specify a DockerVolumeConfiguration. For tasks that use a bind mount host volume, specify a host and optional sourcePath. For more information, see Using Data Volumes in Tasks.

VolumeFrom

Details on a data volume from another container in the same task definition.

§Type Aliases

AgentUpdateStatus
ApplicationProtocol
AssignPublicIp
CapacityProviderField
CapacityProviderStatus
CapacityProviderUpdateStatus
ClusterField
ClusterSettingName
Compatibility
Connectivity
ContainerCondition
ContainerInstanceField
ContainerInstanceStatus
CPUArchitecture
DeploymentControllerType
DeploymentRolloutState
DesiredStatus
DeviceCgroupPermission
EFSAuthorizationConfigIAM
EFSTransitEncryption
EnvironmentFileType
ExecuteCommandLogging
FirelensConfigurationType
HealthStatus
InstanceHealthCheckState
InstanceHealthCheckType
IpcMode
LaunchType
LogDriver
ManagedAgentName
ManagedScalingStatus
ManagedTerminationProtection
NetworkMode
OSFamily
PidMode
PlacementConstraintType
PlacementStrategyType
PlatformDeviceType
PropagateTags
ProxyConfigurationType
ResourceType
ScaleUnit
SchedulingStrategy
Scope
ServiceField
SettingName
SortOrder
StabilityStatus
TargetType
TaskDefinitionFamilyStatus
TaskDefinitionField
TaskDefinitionPlacementConstraintType
TaskDefinitionStatus
TaskField
TaskSetField
TaskStopCode
TransportProtocol
UlimitName