Client library for Amazon EC2 Container Service
npm install --save @datafire/amazonaws_ecs
let amazonaws_ecs = require('@datafire/amazonaws_ecs').create({
accessKeyId: "",
secretAccessKey: "",
region: ""
});
.then(data => {
console.log(data);
});
Amazon Elastic Container Service
Amazon Elastic Container Service (Amazon ECS) is a highly scalable, fast, container management service that makes it easy to run, stop, and manage Docker containers on a cluster. You can host your cluster on a serverless infrastructure that is managed by Amazon ECS by launching your services or tasks using the Fargate launch type. For more control, you can host your tasks on a cluster of Amazon Elastic Compute Cloud (Amazon EC2) instances that you manage by using the EC2 launch type. For more information about launch types, see Amazon ECS Launch Types.
Amazon ECS lets you launch and stop container-based applications with simple API calls, allows you to get the state of your cluster from a centralized service, and gives you access to many familiar Amazon EC2 features.
You can use Amazon ECS to schedule the placement of containers across your cluster based on your resource needs, isolation policies, and availability requirements. Amazon ECS eliminates the need for you to operate your own cluster management and configuration management systems or worry about scaling your management infrastructure.
amazonaws_ecs.CreateCapacityProvider({
"name": null,
"autoScalingGroupProvider": null
}, context)
- input
object
- tags
- items Tag
- autoScalingGroupProvider required
- autoScalingGroupArn required
- managedScaling
- instanceWarmupPeriod
- maximumScalingStepSize
- minimumScalingStepSize
- status
- targetCapacity
- managedTerminationProtection
- name required
- tags
amazonaws_ecs.CreateCluster({}, context)
- input
object
- tags
- items Tag
- capacityProviders
- items String
- clusterName
- defaultCapacityProviderStrategy
- settings
- items ClusterSetting
- tags
- output CreateClusterResponse
amazonaws_ecs.CreateService({
"serviceName": null
}, context)
- input
object
- tags
- items Tag
- capacityProviderStrategy
- clientToken
- cluster
- deploymentConfiguration
- deploymentCircuitBreaker
- enable required
- rollback required
- maximumPercent
- minimumHealthyPercent
- deploymentCircuitBreaker
- deploymentController
- type required
- desiredCount
- enableECSManagedTags
- healthCheckGracePeriodSeconds
- launchType
- loadBalancers
- items LoadBalancer
- networkConfiguration
- placementConstraints
- items PlacementConstraint
- placementStrategy
- items PlacementStrategy
- platformVersion
- propagateTags
- role
- schedulingStrategy
- serviceName required
- serviceRegistries
- items ServiceRegistry
- taskDefinition
- tags
- output CreateServiceResponse
amazonaws_ecs.CreateTaskSet({
"service": null,
"cluster": null,
"taskDefinition": null
}, context)
- input
object
- tags
- items Tag
- capacityProviderStrategy
- clientToken
- cluster required
- externalId
- launchType
- loadBalancers
- items LoadBalancer
- networkConfiguration NetworkConfiguration
- platformVersion
- scale Scale
- service required
- serviceRegistries
- items ServiceRegistry
- taskDefinition required
- tags
- output CreateTaskSetResponse
amazonaws_ecs.DeleteAccountSetting({
"name": null
}, context)
- input
object
- name required
- principalArn
- output DeleteAccountSettingResponse
amazonaws_ecs.DeleteAttributes({
"attributes": null
}, context)
- input
object
- attributes required
- items Attribute
- cluster
- attributes required
- output DeleteAttributesResponse
amazonaws_ecs.DeleteCapacityProvider({
"capacityProvider": null
}, context)
- input
object
- capacityProvider required
amazonaws_ecs.DeleteCluster({
"cluster": null
}, context)
- input
object
- cluster required
- output DeleteClusterResponse
amazonaws_ecs.DeleteService({
"service": null
}, context)
- input
object
- cluster
- force
- service required
- output DeleteServiceResponse
amazonaws_ecs.DeleteTaskSet({
"cluster": null,
"service": null,
"taskSet": null
}, context)
- input
object
- cluster required
- force
- service required
- taskSet required
- output DeleteTaskSetResponse
amazonaws_ecs.DeregisterContainerInstance({
"containerInstance": null
}, context)
- input
object
- cluster
- containerInstance required
- force
amazonaws_ecs.DeregisterTaskDefinition({
"taskDefinition": null
}, context)
- input
object
- taskDefinition required
amazonaws_ecs.DescribeCapacityProviders({}, context)
- input
object
- capacityProviders
- items String
- include
- items CapacityProviderField
- maxResults
- nextToken
- capacityProviders
amazonaws_ecs.DescribeClusters({}, context)
- input
object
- clusters
- items String
- include
- items ClusterField
- clusters
- output DescribeClustersResponse
amazonaws_ecs.DescribeContainerInstances({
"containerInstances": null
}, context)
- input
object
- cluster
- containerInstances required
- items String
- include
- items ContainerInstanceField
amazonaws_ecs.DescribeServices({
"services": null
}, context)
- input
object
- cluster
- include
- items ServiceField
- services required
- items String
- output DescribeServicesResponse
amazonaws_ecs.DescribeTaskDefinition({
"taskDefinition": null
}, context)
- input
object
- include
- items TaskDefinitionField
- taskDefinition required
- include
amazonaws_ecs.DescribeTaskSets({
"cluster": null,
"service": null
}, context)
- input
object
- cluster required
- include
- items TaskSetField
- service required
- taskSets
- items String
- output DescribeTaskSetsResponse
amazonaws_ecs.DescribeTasks({
"tasks": null
}, context)
- output DescribeTasksResponse
amazonaws_ecs.DiscoverPollEndpoint({}, context)
- input
object
- cluster
- containerInstance
- output DiscoverPollEndpointResponse
amazonaws_ecs.ListAccountSettings({}, context)
- input
object
- maxResults
string
- nextToken
string
- effectiveSettings
- maxResults
- name
- nextToken
- principalArn
- value
- maxResults
- output ListAccountSettingsResponse
amazonaws_ecs.ListAttributes({
"targetType": null
}, context)
- input
object
- maxResults
string
- nextToken
string
- attributeName
- attributeValue
- cluster
- maxResults
- nextToken
- targetType required
- maxResults
- output ListAttributesResponse
amazonaws_ecs.ListClusters({}, context)
- input
object
- maxResults
string
- nextToken
string
- maxResults
- nextToken
- maxResults
- output ListClustersResponse
amazonaws_ecs.ListContainerInstances({}, context)
- input
object
- maxResults
string
- nextToken
string
- cluster
- filter
- maxResults
- nextToken
- status
- maxResults
amazonaws_ecs.ListServices({}, context)
- input
object
- maxResults
string
- nextToken
string
- cluster
- launchType
- maxResults
- nextToken
- schedulingStrategy
- maxResults
- output ListServicesResponse
amazonaws_ecs.ListTagsForResource({
"resourceArn": null
}, context)
- input
object
- resourceArn required
- output ListTagsForResourceResponse
amazonaws_ecs.ListTaskDefinitionFamilies({}, context)
- input
object
- maxResults
string
- nextToken
string
- familyPrefix
- maxResults
- nextToken
- status
- maxResults
amazonaws_ecs.ListTaskDefinitions({}, context)
- input
object
- maxResults
string
- nextToken
string
- familyPrefix
- maxResults
- nextToken
- sort
- status
- maxResults
- output ListTaskDefinitionsResponse
amazonaws_ecs.ListTasks({}, context)
- input
object
- maxResults
string
- nextToken
string
- cluster
- containerInstance
- desiredStatus
- family
- launchType
- maxResults
- nextToken
- serviceName
- startedBy
- maxResults
- output ListTasksResponse
amazonaws_ecs.PutAccountSetting({
"name": null,
"value": null
}, context)
- input
object
- name required
- principalArn
- value required
- output PutAccountSettingResponse
amazonaws_ecs.PutAccountSettingDefault({
"name": null,
"value": null
}, context)
- input
object
- name required
- value required
amazonaws_ecs.PutAttributes({
"attributes": null
}, context)
- input
object
- attributes required
- items Attribute
- cluster
- attributes required
- output PutAttributesResponse
amazonaws_ecs.PutClusterCapacityProviders({
"cluster": null,
"capacityProviders": null,
"defaultCapacityProviderStrategy": null
}, context)
- input
object
- capacityProviders required
- items String
- cluster required
- defaultCapacityProviderStrategy required
- capacityProviders required
amazonaws_ecs.RegisterContainerInstance({}, context)
- input
object
- tags
- items Tag
- attributes
- items Attribute
- cluster
- containerInstanceArn
- instanceIdentityDocument
- instanceIdentityDocumentSignature
- platformDevices
- items PlatformDevice
- totalResources
- items Resource
- versionInfo
- agentHash
- agentVersion
- dockerVersion
- tags
amazonaws_ecs.RegisterTaskDefinition({
"family": null,
"containerDefinitions": null
}, context)
- input
object
- tags
- items Tag
- containerDefinitions required
- items ContainerDefinition
- cpu
- executionRoleArn
- family required
- inferenceAccelerators
- items InferenceAccelerator
- ipcMode
- memory
- networkMode
- pidMode
- placementConstraints
- proxyConfiguration ProxyConfiguration
- requiresCompatibilities
- items Compatibility
- taskRoleArn
- volumes
- items Volume
- tags
amazonaws_ecs.RunTask({
"taskDefinition": null
}, context)
- input
object
- tags
- items Tag
- capacityProviderStrategy
- cluster
- count
- enableECSManagedTags
- group
- launchType
- networkConfiguration
- overrides
- containerOverrides
- items ContainerOverride
- cpu
- executionRoleArn
- inferenceAcceleratorOverrides
- memory
- taskRoleArn
- containerOverrides
- placementConstraints
- items PlacementConstraint
- placementStrategy
- items PlacementStrategy
- platformVersion
- propagateTags
- referenceId
- startedBy
- taskDefinition required
- tags
- output RunTaskResponse
amazonaws_ecs.StartTask({
"containerInstances": null,
"taskDefinition": null
}, context)
- input
object
- tags
- items Tag
- cluster
- containerInstances required
- items String
- enableECSManagedTags
- group
- networkConfiguration
- overrides
- containerOverrides
- items ContainerOverride
- cpu
- executionRoleArn
- inferenceAcceleratorOverrides
- memory
- taskRoleArn
- containerOverrides
- propagateTags
- referenceId
- startedBy
- taskDefinition required
- tags
- output StartTaskResponse
amazonaws_ecs.StopTask({
"task": null
}, context)
- input
object
- cluster
- reason
- task required
- output StopTaskResponse
amazonaws_ecs.SubmitAttachmentStateChanges({
"attachments": null
}, context)
- input
object
- attachments required
- items AttachmentStateChange
- cluster
- attachments required
amazonaws_ecs.SubmitContainerStateChange({}, context)
- input
object
- cluster
- containerName
- exitCode
- networkBindings
- items NetworkBinding
- reason
- runtimeId
- status
- task
amazonaws_ecs.SubmitTaskStateChange({}, context)
- input
object
- attachments
- items AttachmentStateChange
- cluster
- containers
- items ContainerStateChange
- executionStoppedAt
- pullStartedAt
- pullStoppedAt
- reason
- status
- task
- attachments
amazonaws_ecs.TagResource({
"resourceArn": null,
"tags": null
}, context)
- input
object
- tags required
- items Tag
- resourceArn required
- tags required
- output TagResourceResponse
amazonaws_ecs.UntagResource({
"resourceArn": null,
"tagKeys": null
}, context)
- input
object
- resourceArn required
- tagKeys required
- items TagKey
- output UntagResourceResponse
amazonaws_ecs.UpdateCapacityProvider({
"name": null,
"autoScalingGroupProvider": null
}, context)
- input
object
- autoScalingGroupProvider required
- managedScaling ManagedScaling
- managedTerminationProtection
- name required
- autoScalingGroupProvider required
amazonaws_ecs.UpdateClusterSettings({
"cluster": null,
"settings": null
}, context)
- input
object
- cluster required
- settings required
- items ClusterSetting
amazonaws_ecs.UpdateContainerAgent({
"containerInstance": null
}, context)
- input
object
- cluster
- containerInstance required
- output UpdateContainerAgentResponse
amazonaws_ecs.UpdateContainerInstancesState({
"containerInstances": null,
"status": null
}, context)
- input
object
- cluster
- containerInstances required
- items String
- status required
amazonaws_ecs.UpdateService({
"service": null
}, context)
- input
object
- capacityProviderStrategy
- cluster
- deploymentConfiguration
- deploymentCircuitBreaker
- enable required
- rollback required
- maximumPercent
- minimumHealthyPercent
- deploymentCircuitBreaker
- desiredCount
- forceNewDeployment
- healthCheckGracePeriodSeconds
- networkConfiguration NetworkConfiguration
- placementConstraints
- items PlacementConstraint
- placementStrategy
- items PlacementStrategy
- platformVersion
- service required
- taskDefinition
- output UpdateServiceResponse
amazonaws_ecs.UpdateServicePrimaryTaskSet({
"cluster": null,
"service": null,
"primaryTaskSet": null
}, context)
- input
object
- cluster required
- primaryTaskSet required
- service required
amazonaws_ecs.UpdateTaskSet({
"cluster": null,
"service": null,
"taskSet": null,
"scale": {}
}, context)
- input
object
- cluster required
- scale required Scale
- service required
- taskSet required
- output UpdateTaskSetResponse
- AgentUpdateStatus
string
(values: PENDING, STAGING, STAGED, UPDATING, UPDATED, FAILED)
- AssignPublicIp
string
(values: ENABLED, DISABLED)
- Attachment
object
: An object representing a container instance or task attachment.- details
- items KeyValuePair
- id
- status
- type
- details
- AttachmentDetails
array
- items KeyValuePair
- AttachmentStateChange
object
: An object representing a change in state for a task attachment.- attachmentArn required
- status required
- AttachmentStateChanges
array
- items AttachmentStateChange
- Attachments
array
- items Attachment
- Attribute
object
: An attribute is a name-value pair associated with an Amazon ECS object. Attributes enable you 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.- name required
- targetId
- targetType
- value
- Attributes
array
- items Attribute
- AutoScalingGroupProvider
object
: The details of the Auto Scaling group for the capacity provider.- autoScalingGroupArn required
- managedScaling
- instanceWarmupPeriod
- maximumScalingStepSize
- minimumScalingStepSize
- status
- targetCapacity
- managedTerminationProtection
- AutoScalingGroupProviderUpdate
object
: The details of the Auto Scaling group capacity provider to update.- managedScaling ManagedScaling
- managedTerminationProtection
- AwsVpcConfiguration
object
: An object representing the networking details for a task or service.
- Boolean
boolean
- BoxedBoolean
boolean
- BoxedInteger
integer
- CapacityProvider
object
: The details of a capacity provider.- tags
- items Tag
- autoScalingGroupProvider
- autoScalingGroupArn required
- managedScaling
- instanceWarmupPeriod
- maximumScalingStepSize
- minimumScalingStepSize
- status
- targetCapacity
- managedTerminationProtection
- capacityProviderArn
- name
- status
- updateStatus
- updateStatusReason
- tags
- CapacityProviderField
string
(values: TAGS)
- CapacityProviderFieldList
array
- items CapacityProviderField
- CapacityProviderStatus
string
(values: ACTIVE, INACTIVE)
- CapacityProviderStrategy
array
- CapacityProviderStrategyItem
object
: The details of a capacity provider strategy.- base
- capacityProvider required
- weight
- CapacityProviderStrategyItemBase
integer
- CapacityProviderStrategyItemWeight
integer
- CapacityProviderUpdateStatus
string
(values: DELETE_IN_PROGRESS, DELETE_COMPLETE, DELETE_FAILED, UPDATE_IN_PROGRESS, UPDATE_COMPLETE, UPDATE_FAILED)
- CapacityProviders
array
- items CapacityProvider
- Cluster
object
: A regional grouping of one or more container instances on which 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.- tags
- items Tag
- activeServicesCount
- attachments
- items Attachment
- attachmentsStatus
- capacityProviders
- items String
- clusterArn
- clusterName
- defaultCapacityProviderStrategy
- pendingTasksCount
- registeredContainerInstancesCount
- runningTasksCount
- settings
- items ClusterSetting
- statistics
- items KeyValuePair
- status
- tags
- ClusterField
string
(values: ATTACHMENTS, SETTINGS, STATISTICS, TAGS)
- ClusterFieldList
array
- items ClusterField
- ClusterSetting
object
: The settings to use when creating a cluster. This parameter is used to enable CloudWatch Container Insights for a cluster.- name
- value
- ClusterSettingName
string
(values: containerInsights)
- ClusterSettings
array
- items ClusterSetting
- Clusters
array
- items Cluster
- Compatibility
string
(values: EC2, FARGATE)
- CompatibilityList
array
- items Compatibility
- Connectivity
string
(values: CONNECTED, DISCONNECTED)
- Container
object
: A Docker container that is part of a task.- containerArn
- cpu
- exitCode
- gpuIds
- items String
- healthStatus
- image
- imageDigest
- lastStatus
- memory
- memoryReservation
- name
- networkBindings
- items NetworkBinding
- networkInterfaces
- items NetworkInterface
- reason
- runtimeId
- taskArn
- ContainerCondition
string
(values: START, COMPLETE, SUCCESS, HEALTHY)
- ContainerDefinition
object
: Container definitions are used in task definitions to describe the different containers that are launched as part of a task.- command
- items String
- cpu
- dependsOn
- items ContainerDependency
- disableNetworking
- dnsSearchDomains
- items String
- dnsServers
- items String
- dockerLabels
- dockerSecurityOptions
- items String
- entryPoint
- items String
- environment
- items KeyValuePair
- environmentFiles
- items EnvironmentFile
- essential
- extraHosts
- items HostEntry
- firelensConfiguration
- options
- type required
- healthCheck
- command required
- items String
- interval
- retries
- startPeriod
- timeout
- command required
- hostname
- image
- interactive
- links
- items String
- linuxParameters
- logConfiguration
- logDriver required
- options
- secretOptions
- items Secret
- memory
- memoryReservation
- mountPoints
- items MountPoint
- name
- portMappings
- items PortMapping
- privileged
- pseudoTerminal
- readonlyRootFilesystem
- repositoryCredentials
- credentialsParameter required
- resourceRequirements
- items ResourceRequirement
- secrets
- items Secret
- startTimeout
- stopTimeout
- systemControls
- items SystemControl
- ulimits
- items Ulimit
- user
- volumesFrom
- items VolumeFrom
- workingDirectory
- command
- ContainerDefinitions
array
- items ContainerDefinition
- ContainerDependencies
array
- items ContainerDependency
- ContainerDependency
object
: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.
Your Amazon ECS container instances require at least version 1.26.0 of the container agent to enable container dependencies. However, we recommend using the latest container agent version. For information about checking your agent version and updating to the latest version, see Updating the Amazon ECS Container Agent in the Amazon Elastic Container Service Developer Guide. If you are using an Amazon ECS-optimized Linux AMI, your instance needs at least version 1.26.0-1 of the
ecs-init
package. If your container instances are launched from version20190301
or later, then they contain the required versions of the container agent andecs-init
. For more information, see Amazon ECS-optimized Linux AMI in the Amazon Elastic Container Service Developer Guide.For tasks using the Fargate launch type, this parameter requires that the task or service uses platform version 1.3.0 or later.
- condition required
- containerName required
- ContainerInstance
object
: An EC2 instance that is running the Amazon ECS agent and has been registered with a cluster.- tags
- items Tag
- agentConnected
- agentUpdateStatus
- attachments
- items Attachment
- attributes
- items Attribute
- capacityProviderName
- containerInstanceArn
- ec2InstanceId
- pendingTasksCount
- registeredAt
- registeredResources
- items Resource
- remainingResources
- items Resource
- runningTasksCount
- status
- statusReason
- version
- versionInfo
- agentHash
- agentVersion
- dockerVersion
- tags
- ContainerInstanceField
string
(values: TAGS)
- ContainerInstanceFieldList
array
- items ContainerInstanceField
- ContainerInstanceStatus
string
(values: ACTIVE, DRAINING, REGISTERING, DEREGISTERING, REGISTRATION_FAILED)
- ContainerInstances
array
- items ContainerInstance
- ContainerOverride
object
: The overrides that should be sent to a container. An empty container override can be passed in. An example of an empty container override would be{"containerOverrides": [ ] }
. If a non-empty container override is specified, thename
parameter must be included.- command
- items String
- cpu
- environment
- items KeyValuePair
- environmentFiles
- items EnvironmentFile
- memory
- memoryReservation
- name
- resourceRequirements
- items ResourceRequirement
- command
- ContainerOverrides
array
- items ContainerOverride
- ContainerStateChange
object
: An object representing a change in state for a container.- containerName
- exitCode
- imageDigest
- networkBindings
- items NetworkBinding
- reason
- runtimeId
- status
- ContainerStateChanges
array
- items ContainerStateChange
- Containers
array
- items Container
- CreateCapacityProviderRequest
object
- tags
- items Tag
- autoScalingGroupProvider required
- autoScalingGroupArn required
- managedScaling
- instanceWarmupPeriod
- maximumScalingStepSize
- minimumScalingStepSize
- status
- targetCapacity
- managedTerminationProtection
- name required
- tags
- CreateCapacityProviderResponse
object
- capacityProvider
- tags
- items Tag
- autoScalingGroupProvider
- autoScalingGroupArn required
- managedScaling
- instanceWarmupPeriod
- maximumScalingStepSize
- minimumScalingStepSize
- status
- targetCapacity
- managedTerminationProtection
- capacityProviderArn
- name
- status
- updateStatus
- updateStatusReason
- tags
- capacityProvider
- CreateClusterRequest
object
- tags
- items Tag
- capacityProviders
- items String
- clusterName
- defaultCapacityProviderStrategy
- settings
- items ClusterSetting
- tags
- CreateClusterResponse
object
- cluster
- tags
- items Tag
- activeServicesCount
- attachments
- items Attachment
- attachmentsStatus
- capacityProviders
- items String
- clusterArn
- clusterName
- defaultCapacityProviderStrategy
- pendingTasksCount
- registeredContainerInstancesCount
- runningTasksCount
- settings
- items ClusterSetting
- statistics
- items KeyValuePair
- status
- tags
- cluster
- CreateServiceRequest
object
- tags
- items Tag
- capacityProviderStrategy
- clientToken
- cluster
- deploymentConfiguration
- deploymentCircuitBreaker
- enable required
- rollback required
- maximumPercent
- minimumHealthyPercent
- deploymentCircuitBreaker
- deploymentController
- type required
- desiredCount
- enableECSManagedTags
- healthCheckGracePeriodSeconds
- launchType
- loadBalancers
- items LoadBalancer
- networkConfiguration
- placementConstraints
- items PlacementConstraint
- placementStrategy
- items PlacementStrategy
- platformVersion
- propagateTags
- role
- schedulingStrategy
- serviceName required
- serviceRegistries
- items ServiceRegistry
- taskDefinition
- tags
- CreateServiceResponse
object
- service
- tags
- items Tag
- capacityProviderStrategy
- clusterArn
- createdAt
- createdBy
- deploymentConfiguration
- deploymentCircuitBreaker
- enable required
- rollback required
- maximumPercent
- minimumHealthyPercent
- deploymentCircuitBreaker
- deploymentController
- type required
- deployments
- items Deployment
- desiredCount
- enableECSManagedTags
- events
- items ServiceEvent
- healthCheckGracePeriodSeconds
- launchType
- loadBalancers
- items LoadBalancer
- networkConfiguration
- pendingCount
- placementConstraints
- items PlacementConstraint
- placementStrategy
- items PlacementStrategy
- platformVersion
- propagateTags
- roleArn
- runningCount
- schedulingStrategy
- serviceArn
- serviceName
- serviceRegistries
- items ServiceRegistry
- status
- taskDefinition
- taskSets
- items TaskSet
- tags
- service
- CreateTaskSetRequest
object
- tags
- items Tag
- capacityProviderStrategy
- clientToken
- cluster required
- externalId
- launchType
- loadBalancers
- items LoadBalancer
- networkConfiguration NetworkConfiguration
- platformVersion
- scale Scale
- service required
- serviceRegistries
- items ServiceRegistry
- taskDefinition required
- tags
- CreateTaskSetResponse
object
- taskSet TaskSet
- DeleteAccountSettingRequest
object
- name required
- principalArn
- DeleteAccountSettingResponse
object
- setting
- name
- principalArn
- value
- setting
- DeleteAttributesRequest
object
- attributes required
- items Attribute
- cluster
- attributes required
- DeleteAttributesResponse
object
- attributes
- items Attribute
- attributes
- DeleteCapacityProviderRequest
object
- capacityProvider required
- DeleteCapacityProviderResponse
object
- capacityProvider CapacityProvider
- DeleteClusterRequest
object
- cluster required
- DeleteClusterResponse
object
- cluster
- tags
- items Tag
- activeServicesCount
- attachments
- items Attachment
- attachmentsStatus
- capacityProviders
- items String
- clusterArn
- clusterName
- defaultCapacityProviderStrategy
- pendingTasksCount
- registeredContainerInstancesCount
- runningTasksCount
- settings
- items ClusterSetting
- statistics
- items KeyValuePair
- status
- tags
- cluster
- DeleteServiceRequest
object
- cluster
- force
- service required
- DeleteServiceResponse
object
- service
- tags
- items Tag
- capacityProviderStrategy
- clusterArn
- createdAt
- createdBy
- deploymentConfiguration
- deploymentCircuitBreaker
- enable required
- rollback required
- maximumPercent
- minimumHealthyPercent
- deploymentCircuitBreaker
- deploymentController
- type required
- deployments
- items Deployment
- desiredCount
- enableECSManagedTags
- events
- items ServiceEvent
- healthCheckGracePeriodSeconds
- launchType
- loadBalancers
- items LoadBalancer
- networkConfiguration
- pendingCount
- placementConstraints
- items PlacementConstraint
- placementStrategy
- items PlacementStrategy
- platformVersion
- propagateTags
- roleArn
- runningCount
- schedulingStrategy
- serviceArn
- serviceName
- serviceRegistries
- items ServiceRegistry
- status
- taskDefinition
- taskSets
- items TaskSet
- tags
- service
- DeleteTaskSetRequest
object
- cluster required
- force
- service required
- taskSet required
- DeleteTaskSetResponse
object
- taskSet TaskSet
- Deployment
object
: The details of an Amazon ECS service deployment. This is used only when a service uses theECS
deployment controller type.- capacityProviderStrategy
- createdAt
- desiredCount
- failedTasks
- id
- launchType
- networkConfiguration
- pendingCount
- platformVersion
- rolloutState
- rolloutStateReason
- runningCount
- status
- taskDefinition
- updatedAt
- DeploymentCircuitBreaker
object
:The deployment circuit breaker can only be used for services using the rolling update (
ECS
) deployment type that are not behind a Classic Load Balancer.The deployment circuit breaker determines whether a service deployment will fail if the service can't reach a steady state. If enabled, a service deployment will transition to a failed state and stop launching new tasks. You can also enable Amazon ECS to roll back your service to the last completed deployment after a failure. For more information, see Rolling update in the Amazon Elastic Container Service Developer Guide.
- enable required
- rollback required
- DeploymentConfiguration
object
: Optional deployment parameters that control how many tasks run during a deployment and the ordering of stopping and starting tasks.- deploymentCircuitBreaker
- enable required
- rollback required
- maximumPercent
- minimumHealthyPercent
- deploymentCircuitBreaker
- DeploymentController
object
: The deployment controller to use for the service. For more information, see Amazon ECS Deployment Types in the Amazon Elastic Container Service Developer Guide.- type required
- DeploymentControllerType
string
(values: ECS, CODE_DEPLOY, EXTERNAL)
- DeploymentRolloutState
string
(values: COMPLETED, FAILED, IN_PROGRESS)
- Deployments
array
- items Deployment
- DeregisterContainerInstanceRequest
object
- cluster
- containerInstance required
- force
- DeregisterContainerInstanceResponse
object
- containerInstance
- tags
- items Tag
- agentConnected
- agentUpdateStatus
- attachments
- items Attachment
- attributes
- items Attribute
- capacityProviderName
- containerInstanceArn
- ec2InstanceId
- pendingTasksCount
- registeredAt
- registeredResources
- items Resource
- remainingResources
- items Resource
- runningTasksCount
- status
- statusReason
- version
- versionInfo
- agentHash
- agentVersion
- dockerVersion
- tags
- containerInstance
- DeregisterTaskDefinitionRequest
object
- taskDefinition required
- DeregisterTaskDefinitionResponse
object
- taskDefinition
- compatibilities
- items Compatibility
- containerDefinitions
- items ContainerDefinition
- cpu
- executionRoleArn
- family
- inferenceAccelerators
- items InferenceAccelerator
- ipcMode
- memory
- networkMode
- pidMode
- placementConstraints
- proxyConfiguration
- containerName required
- properties
- items KeyValuePair
- type
- requiresAttributes
- items Attribute
- requiresCompatibilities
- items Compatibility
- revision
- status
- taskDefinitionArn
- taskRoleArn
- volumes
- items Volume
- compatibilities
- taskDefinition
- DescribeCapacityProvidersRequest
object
- capacityProviders
- items String
- include
- items CapacityProviderField
- maxResults
- nextToken
- capacityProviders
- DescribeCapacityProvidersResponse
object
- capacityProviders
- items CapacityProvider
- failures
- items Failure
- nextToken
- capacityProviders
- DescribeClustersRequest
object
- clusters
- items String
- include
- items ClusterField
- clusters
- DescribeContainerInstancesRequest
object
- cluster
- containerInstances required
- items String
- include
- items ContainerInstanceField
- DescribeContainerInstancesResponse
object
- containerInstances
- items ContainerInstance
- failures
- items Failure
- containerInstances
- DescribeServicesRequest
object
- cluster
- include
- items ServiceField
- services required
- items String
- DescribeTaskDefinitionRequest
object
- include
- items TaskDefinitionField
- taskDefinition required
- include
- DescribeTaskDefinitionResponse
object
- tags
- items Tag
- taskDefinition
- compatibilities
- items Compatibility
- containerDefinitions
- items ContainerDefinition
- cpu
- executionRoleArn
- family
- inferenceAccelerators
- items InferenceAccelerator
- ipcMode
- memory
- networkMode
- pidMode
- placementConstraints
- proxyConfiguration
- containerName required
- properties
- items KeyValuePair
- type
- requiresAttributes
- items Attribute
- requiresCompatibilities
- items Compatibility
- revision
- status
- taskDefinitionArn
- taskRoleArn
- volumes
- items Volume
- compatibilities
- tags
- DescribeTaskSetsRequest
object
- cluster required
- include
- items TaskSetField
- service required
- taskSets
- items String
- DesiredStatus
string
(values: RUNNING, PENDING, STOPPED)
- Device
object
: An object representing a container instance host device.- containerPath
- hostPath required
- permissions
- items DeviceCgroupPermission
- DeviceCgroupPermission
string
(values: read, write, mknod)
- DeviceCgroupPermissions
array
- items DeviceCgroupPermission
- DevicesList
array
- items Device
- DiscoverPollEndpointRequest
object
- cluster
- containerInstance
- DiscoverPollEndpointResponse
object
- endpoint
- telemetryEndpoint
- DockerLabelsMap
object
- DockerVolumeConfiguration
object
: This parameter is specified when you are using Docker volumes. Docker volumes are only supported when you are using the EC2 launch type. Windows containers only support the use of thelocal
driver. To use bind mounts, specify ahost
instead.- autoprovision
- driver
- driverOpts
- labels
- scope
- Double
number
- EFSAuthorizationConfig
object
: The authorization configuration details for the Amazon EFS file system.- accessPointId
- iam
- EFSAuthorizationConfigIAM
string
(values: ENABLED, DISABLED)
- EFSTransitEncryption
string
(values: ENABLED, DISABLED)
- EFSVolumeConfiguration
object
: This parameter is specified when you are 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.- authorizationConfig
- accessPointId
- iam
- fileSystemId required
- rootDirectory
- transitEncryption
- transitEncryptionPort
- authorizationConfig
- EnvironmentFile
object
: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 inVARIABLE=VALUE
format. Lines beginning with#
are treated as comments and are ignored. For more information on the environment variable file syntax, see Declare default environment variables in file.If there are environment variables specified using the
environment
parameter in a container definition, they take precedence over the variables contained within an environment file. If multiple environment files are specified that contain the same variable, they are processed from the top down. It is recommended to use unique variable names. For more information, see Specifying Environment Variables in the Amazon Elastic Container Service Developer Guide.This field is not valid for containers in tasks using the Fargate launch type.
- type required
- value required
- EnvironmentFileType
string
(values: s3)
- EnvironmentFiles
array
- items EnvironmentFile
- EnvironmentVariables
array
- items KeyValuePair
- FSxWindowsFileServerAuthorizationConfig
object
:The authorization configuration details for Amazon FSx for Windows File Server file system. See FSxWindowsFileServerVolumeConfiguration in the Amazon Elastic Container Service API Reference.
For more information and the input format, see Amazon FSx for Windows File Server Volumes in the Amazon Elastic Container Service Developer Guide.
- credentialsParameter required
- domain required
- FSxWindowsFileServerVolumeConfiguration
object
:This parameter is specified when you are using Amazon FSx for Windows File Server file system for task storage.
For more information and the input format, see Amazon FSx for Windows File Server Volumes in the Amazon Elastic Container Service Developer Guide.
- authorizationConfig required
- credentialsParameter required
- domain required
- fileSystemId required
- rootDirectory required
- authorizationConfig required
- Failure
object
: A failed resource. For a list of common causes, see API failure reasons in the Amazon Elastic Container Service Developer Guide.- arn
- detail
- reason
- Failures
array
- items Failure
- FirelensConfiguration
object
: 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.- options
- type required
- FirelensConfigurationOptionsMap
object
- FirelensConfigurationType
string
(values: fluentd, fluentbit)
- GpuIds
array
- items String
- HealthCheck
object
: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).
You can view the health status of both individual containers and a task with the DescribeTasks API operation or when viewing the task details in the console.
The following describes the possible
healthStatus
values for a container:-
HEALTHY
-The container health check has passed successfully. -
UNHEALTHY
-The container health check has failed. -
UNKNOWN
-The container health check is being evaluated or there is no container health check defined.
The following describes the possible
healthStatus
values for a task. The container health check status of nonessential containers do not have an effect on the health status of a task.-
HEALTHY
-All essential containers within the task have passed their health checks. -
UNHEALTHY
-One or more essential containers have failed their health check. -
UNKNOWN
-The essential containers within the task are still having their health checks evaluated or there are no container health checks defined.
If a task is run manually, and not as part of a service, the task will continue its lifecycle regardless of its health status. For tasks that are part of a service, if the task reports as unhealthy then the task will be stopped and the service scheduler will replace it.
The following are notes about container health check support:
-
Container health checks require version 1.17.0 or greater of the Amazon ECS container agent. For more information, see Updating the Amazon ECS Container Agent.
-
Container health checks are supported for Fargate tasks if you are using platform version 1.1.0 or greater. For more information, see AWS Fargate Platform Versions.
-
Container health checks are not supported for tasks that are part of a service that is configured to use a Classic Load Balancer.
- command required
- items String
- interval
- retries
- startPeriod
- timeout
-
- HealthStatus
string
(values: HEALTHY, UNHEALTHY, UNKNOWN)
- HostEntry
object
: Hostnames and IP address entries that are added to the/etc/hosts
file of a container via theextraHosts
parameter of its ContainerDefinition.- hostname required
- ipAddress required
- HostEntryList
array
- items HostEntry
- HostVolumeProperties
object
: Details on a container instance bind mount host volume.- sourcePath
- InferenceAccelerator
object
: Details on a Elastic Inference accelerator. For more information, see Working with Amazon Elastic Inference on Amazon ECS in the Amazon Elastic Container Service Developer Guide.- deviceName required
- deviceType required
- InferenceAcceleratorOverride
object
: 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.- deviceName
- deviceType
- InferenceAcceleratorOverrides
array
- InferenceAccelerators
array
- items InferenceAccelerator
- Integer
integer
- IpcMode
string
(values: host, task, none)
- KernelCapabilities
object
: The Linux capabilities for the container that are added to or dropped from the default configuration provided by Docker. For more information on the default capabilities and the non-default available capabilities, see Runtime privilege and Linux capabilities in the Docker run reference. For more detailed information on these Linux capabilities, see the capabilities(7) Linux manual page.
- KeyValuePair
object
: A key-value pair object.- name
- value
- LaunchType
string
(values: EC2, FARGATE)
- LinuxParameters
object
: Linux-specific options that are applied to the container, such as Linux KernelCapabilities.
- ListAccountSettingsRequest
object
- effectiveSettings
- maxResults
- name
- nextToken
- principalArn
- value
- ListAccountSettingsResponse
object
- nextToken
- settings
- items Setting
- ListAttributesRequest
object
- attributeName
- attributeValue
- cluster
- maxResults
- nextToken
- targetType required
- ListAttributesResponse
object
- attributes
- items Attribute
- nextToken
- attributes
- ListClustersRequest
object
- maxResults
- nextToken
- ListClustersResponse
object
- clusterArns
- items String
- nextToken
- clusterArns
- ListContainerInstancesRequest
object
- cluster
- filter
- maxResults
- nextToken
- status
- ListContainerInstancesResponse
object
- containerInstanceArns
- items String
- nextToken
- containerInstanceArns
- ListServicesRequest
object
- cluster
- launchType
- maxResults
- nextToken
- schedulingStrategy
- ListServicesResponse
object
- nextToken
- serviceArns
- items String
- ListTagsForResourceRequest
object
- resourceArn required
- ListTagsForResourceResponse
object
- tags
- items Tag
- tags
- ListTaskDefinitionFamiliesRequest
object
- familyPrefix
- maxResults
- nextToken
- status
- ListTaskDefinitionFamiliesResponse
object
- families
- items String
- nextToken
- families
- ListTaskDefinitionsRequest
object
- familyPrefix
- maxResults
- nextToken
- sort
- status
- ListTaskDefinitionsResponse
object
- nextToken
- taskDefinitionArns
- items String
- ListTasksRequest
object
- cluster
- containerInstance
- desiredStatus
- family
- launchType
- maxResults
- nextToken
- serviceName
- startedBy
- ListTasksResponse
object
- nextToken
- taskArns
- items String
- LoadBalancer
object
:The load balancer configuration to use with a service or task set.
For specific notes and restrictions regarding the use of load balancers with services and task sets, see the CreateService and CreateTaskSet actions.
- containerName
- containerPort
- loadBalancerName
- targetGroupArn
- LoadBalancers
array
- items LoadBalancer
- LogConfiguration
object
: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 todocker run
.By default, containers use the same logging driver that the Docker daemon uses; however the container may use a different logging driver than the Docker daemon by specifying a log driver configuration in the container definition. For more information on the options for different supported log drivers, see Configure logging drivers in the Docker documentation.
The following should be noted when specifying a log configuration for your containers:
-
Amazon ECS currently supports a subset of the logging drivers available to the Docker daemon (shown in the valid values below). Additional log drivers may be available in future releases of the Amazon ECS container agent.
-
This parameter requires version 1.18 of the Docker Remote API or greater on your container instance.
-
For tasks hosted on Amazon EC2 instances, the Amazon ECS container agent must register the available logging drivers with the
ECS_AVAILABLE_LOGGING_DRIVERS
environment variable before containers placed on that instance can use these log configuration options. For more information, see Amazon ECS container agent configuration in the Amazon Elastic Container Service Developer Guide. -
For tasks on AWS Fargate, because you do not have access to the underlying infrastructure your tasks are hosted on, any additional software needed will have to be installed outside of the task. For example, the Fluentd output aggregators or a remote host running Logstash to send Gelf logs to.
- logDriver required
- options
- secretOptions
- items Secret
-
- LogConfigurationOptionsMap
object
- LogDriver
string
(values: json-file, syslog, journald, gelf, fluentd, awslogs, splunk, awsfirelens)
- Long
integer
- ManagedScaling
object
:The managed scaling settings for the Auto Scaling group capacity provider.
When managed scaling is enabled, Amazon ECS manages the scale-in and scale-out actions of the Auto Scaling group. Amazon ECS manages a target tracking scaling policy using an Amazon ECS-managed CloudWatch metric with the specified
targetCapacity
value as the target value for the metric. For more information, see Using Managed Scaling in the Amazon Elastic Container Service Developer Guide.If managed scaling is disabled, the user must manage the scaling of the Auto Scaling group.
- instanceWarmupPeriod
- maximumScalingStepSize
- minimumScalingStepSize
- status
- targetCapacity
- ManagedScalingInstanceWarmupPeriod
integer
- ManagedScalingStatus
string
(values: ENABLED, DISABLED)
- ManagedScalingStepSize
integer
- ManagedScalingTargetCapacity
integer
- ManagedTerminationProtection
string
(values: ENABLED, DISABLED)
- MountPoint
object
: Details on a volume mount point that is used in a container definition.- containerPath
- readOnly
- sourceVolume
- MountPointList
array
- items MountPoint
- NetworkBinding
object
: Details on the network bindings between a container and its host container instance. After a task reaches theRUNNING
status, manual and automatic host and container port assignments are visible in thenetworkBindings
section of DescribeTasks API responses.- bindIP
- containerPort
- hostPort
- protocol
- NetworkBindings
array
- items NetworkBinding
- NetworkConfiguration
object
: An object representing the network configuration for a task or service.
- NetworkInterface
object
: An object representing the elastic network interface for tasks that use theawsvpc
network mode.- attachmentId
- ipv6Address
- privateIpv4Address
- NetworkInterfaces
array
- items NetworkInterface
- NetworkMode
string
(values: bridge, host, awsvpc, none)
- PidMode
string
(values: host, task)
- PlacementConstraint
object
:An object representing a constraint on task placement. For more information, see Task Placement Constraints in the Amazon Elastic Container Service Developer Guide.
If you are using the Fargate launch type, task placement constraints are not supported.
- expression
- type
- PlacementConstraintType
string
(values: distinctInstance, memberOf)
- PlacementConstraints
array
- items PlacementConstraint
- PlacementStrategies
array
- items PlacementStrategy
- PlacementStrategy
object
: The task placement strategy for a task or service. For more information, see Task Placement Strategies in the Amazon Elastic Container Service Developer Guide.- field
- type
- PlacementStrategyType
string
(values: random, spread, binpack)
- PlatformDevice
object
: The devices that are available on the container instance. The only supported device type is a GPU.- id required
- type required
- PlatformDeviceType
string
(values: GPU)
- PlatformDevices
array
- items PlatformDevice
- PortMapping
object
: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.
If you are using containers in a task with the
awsvpc
orhost
network mode, exposed ports should be specified usingcontainerPort
. ThehostPort
can be left blank or it must be the same value as thecontainerPort
.After a task reaches the
RUNNING
status, manual and automatic host and container port assignments are visible in thenetworkBindings
section of DescribeTasks API responses.- containerPort
- hostPort
- protocol
- PortMappingList
array
- items PortMapping
- PropagateTags
string
(values: TASK_DEFINITION, SERVICE)
- ProxyConfiguration
object
:The configuration details for the App Mesh proxy.
For tasks using the EC2 launch type, the container instances require at least version 1.26.0 of the container agent and at least version 1.26.0-1 of the
ecs-init
package to enable a proxy configuration. If your container instances are launched from the Amazon ECS-optimized AMI version20190301
or later, then they contain the required versions of the container agent andecs-init
. For more information, see Amazon ECS-optimized Linux AMI- containerName required
- properties
- items KeyValuePair
- type
- ProxyConfigurationProperties
array
- items KeyValuePair
- ProxyConfigurationType
string
(values: APPMESH)
- PutAccountSettingDefaultRequest
object
- name required
- value required
- PutAccountSettingDefaultResponse
object
- setting Setting
- PutAccountSettingRequest
object
- name required
- principalArn
- value required
- PutAccountSettingResponse
object
- setting
- name
- principalArn
- value
- setting
- PutAttributesRequest
object
- attributes required
- items Attribute
- cluster
- attributes required
- PutAttributesResponse
object
- attributes
- items Attribute
- attributes
- PutClusterCapacityProvidersRequest
object
- capacityProviders required
- items String
- cluster required
- defaultCapacityProviderStrategy required
- capacityProviders required
- PutClusterCapacityProvidersResponse
object
- cluster Cluster
- RegisterContainerInstanceRequest
object
- tags
- items Tag
- attributes
- items Attribute
- cluster
- containerInstanceArn
- instanceIdentityDocument
- instanceIdentityDocumentSignature
- platformDevices
- items PlatformDevice
- totalResources
- items Resource
- versionInfo
- agentHash
- agentVersion
- dockerVersion
- tags
- RegisterContainerInstanceResponse
object
- containerInstance
- tags
- items Tag
- agentConnected
- agentUpdateStatus
- attachments
- items Attachment
- attributes
- items Attribute
- capacityProviderName
- containerInstanceArn
- ec2InstanceId
- pendingTasksCount
- registeredAt
- registeredResources
- items Resource
- remainingResources
- items Resource
- runningTasksCount
- status
- statusReason
- version
- versionInfo
- agentHash
- agentVersion
- dockerVersion
- tags
- containerInstance
- RegisterTaskDefinitionRequest
object
- tags
- items Tag
- containerDefinitions required
- items ContainerDefinition
- cpu
- executionRoleArn
- family required
- inferenceAccelerators
- items InferenceAccelerator
- ipcMode
- memory
- networkMode
- pidMode
- placementConstraints
- proxyConfiguration ProxyConfiguration
- requiresCompatibilities
- items Compatibility
- taskRoleArn
- volumes
- items Volume
- tags
- RegisterTaskDefinitionResponse
object
- tags
- items Tag
- taskDefinition
- compatibilities
- items Compatibility
- containerDefinitions
- items ContainerDefinition
- cpu
- executionRoleArn
- family
- inferenceAccelerators
- items InferenceAccelerator
- ipcMode
- memory
- networkMode
- pidMode
- placementConstraints
- proxyConfiguration
- containerName required
- properties
- items KeyValuePair
- type
- requiresAttributes
- items Attribute
- requiresCompatibilities
- items Compatibility
- revision
- status
- taskDefinitionArn
- taskRoleArn
- volumes
- items Volume
- compatibilities
- tags
- RepositoryCredentials
object
: The repository credentials for private registry authentication.- credentialsParameter required
- RequiresAttributes
array
- items Attribute
- Resource
object
: Describes the resources available for a container instance.- doubleValue
- integerValue
- longValue
- name
- stringSetValue
- items String
- type
- ResourceRequirement
object
: 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- type required
- value required
- ResourceRequirements
array
- items ResourceRequirement
- ResourceType
string
(values: GPU, InferenceAccelerator)
- Resources
array
- items Resource
- RunTaskRequest
object
- tags
- items Tag
- capacityProviderStrategy
- cluster
- count
- enableECSManagedTags
- group
- launchType
- networkConfiguration
- overrides
- containerOverrides
- items ContainerOverride
- cpu
- executionRoleArn
- inferenceAcceleratorOverrides
- memory
- taskRoleArn
- containerOverrides
- placementConstraints
- items PlacementConstraint
- placementStrategy
- items PlacementStrategy
- platformVersion
- propagateTags
- referenceId
- startedBy
- taskDefinition required
- tags
- Scale
object
: A floating-point percentage of the desired number of tasks to place and keep running in the task set.- unit
- value
- ScaleUnit
string
(values: PERCENT)
- SchedulingStrategy
string
(values: REPLICA, DAEMON)
- Scope
string
(values: task, shared)
- Secret
object
:An object representing the secret to expose to your container. Secrets can be exposed to a container in the following ways:
-
To inject sensitive data into your containers as environment variables, use the
secrets
container definition parameter. -
To reference sensitive information in the log configuration of a container, use the
secretOptions
container definition parameter.
For more information, see Specifying Sensitive Data in the Amazon Elastic Container Service Developer Guide.
- name required
- valueFrom required
-
- SecretList
array
- items Secret
- Service
object
: Details on a service within a cluster- tags
- items Tag
- capacityProviderStrategy
- clusterArn
- createdAt
- createdBy
- deploymentConfiguration
- deploymentCircuitBreaker
- enable required
- rollback required
- maximumPercent
- minimumHealthyPercent
- deploymentCircuitBreaker
- deploymentController
- type required
- deployments
- items Deployment
- desiredCount
- enableECSManagedTags
- events
- items ServiceEvent
- healthCheckGracePeriodSeconds
- launchType
- loadBalancers
- items LoadBalancer
- networkConfiguration
- pendingCount
- placementConstraints
- items PlacementConstraint
- placementStrategy
- items PlacementStrategy
- platformVersion
- propagateTags
- roleArn
- runningCount
- schedulingStrategy
- serviceArn
- serviceName
- serviceRegistries
- items ServiceRegistry
- status
- taskDefinition
- taskSets
- items TaskSet
- tags
- ServiceEvent
object
: Details on an event associated with a service.- createdAt
- id
- message
- ServiceEvents
array
- items ServiceEvent
- ServiceField
string
(values: TAGS)
- ServiceFieldList
array
- items ServiceField
- ServiceRegistries
array
- items ServiceRegistry
- ServiceRegistry
object
: Details of the service registry.- containerName
- containerPort
- port
- registryArn
- Services
array
- items Service
- Setting
object
: The current account setting for a resource.- name
- principalArn
- value
- SettingName
string
(values: serviceLongArnFormat, taskLongArnFormat, containerInstanceLongArnFormat, awsvpcTrunking, containerInsights)
- Settings
array
- items Setting
- SortOrder
string
(values: ASC, DESC)
- StabilityStatus
string
(values: STEADY_STATE, STABILIZING)
- StartTaskRequest
object
- tags
- items Tag
- cluster
- containerInstances required
- items String
- enableECSManagedTags
- group
- networkConfiguration
- overrides
- containerOverrides
- items ContainerOverride
- cpu
- executionRoleArn
- inferenceAcceleratorOverrides
- memory
- taskRoleArn
- containerOverrides
- propagateTags
- referenceId
- startedBy
- taskDefinition required
- tags
- Statistics
array
- items KeyValuePair
- StopTaskRequest
object
- cluster
- reason
- task required
- StopTaskResponse
object
- task
- tags
- items Tag
- attachments
- items Attachment
- attributes
- items Attribute
- availabilityZone
- capacityProviderName
- clusterArn
- connectivity
- connectivityAt
- containerInstanceArn
- containers
- items Container
- cpu
- createdAt
- desiredStatus
- executionStoppedAt
- group
- healthStatus
- inferenceAccelerators
- items InferenceAccelerator
- lastStatus
- launchType
- memory
- overrides
- containerOverrides
- items ContainerOverride
- cpu
- executionRoleArn
- inferenceAcceleratorOverrides
- memory
- taskRoleArn
- containerOverrides
- platformVersion
- pullStartedAt
- pullStoppedAt
- startedAt
- startedBy
- stopCode
- stoppedAt
- stoppedReason
- stoppingAt
- taskArn
- taskDefinitionArn
- version
- tags
- task
- String
string
- StringList
array
- items String
- StringMap
object
- SubmitAttachmentStateChangesRequest
object
- attachments required
- items AttachmentStateChange
- cluster
- attachments required
- SubmitAttachmentStateChangesResponse
object
- acknowledgment
- SubmitContainerStateChangeRequest
object
- cluster
- containerName
- exitCode
- networkBindings
- items NetworkBinding
- reason
- runtimeId
- status
- task
- SubmitContainerStateChangeResponse
object
- acknowledgment
- SubmitTaskStateChangeRequest
object
- attachments
- items AttachmentStateChange
- cluster
- containers
- items ContainerStateChange
- executionStoppedAt
- pullStartedAt
- pullStoppedAt
- reason
- status
- task
- attachments
- SubmitTaskStateChangeResponse
object
- acknowledgment
- SystemControl
object
: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.It is not recommended that you specify network-related
systemControls
parameters for multiple containers in a single task that also uses either theawsvpc
orhost
network mode for the following reasons:-
For tasks that use the
awsvpc
network mode, if you setsystemControls
for any container, it applies to all containers in the task. If you set differentsystemControls
for multiple containers in a single task, the container that is started last determines whichsystemControls
take effect. -
For tasks that use the
host
network mode, thesystemControls
parameter applies to the container instance's kernel parameter as well as that of all containers of any tasks running on that container instance.
- namespace
- value
-
- SystemControls
array
- items SystemControl
- Tag
object
: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, both of which you define.
The following basic restrictions apply to tags:
-
Maximum number of tags per resource - 50
-
For each resource, each tag key must be unique, and each tag key can have only one value.
-
Maximum key length - 128 Unicode characters in UTF-8
-
Maximum value length - 256 Unicode characters in UTF-8
-
If your tagging schema is used across multiple services and resources, remember that other services may have restrictions on allowed characters. Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following characters: + - = . _ : / @.
-
Tag keys and values are case-sensitive.
-
Do not use
aws:
,AWS:
, or any upper or lowercase combination of such as a prefix for either keys or values as it is reserved for AWS use. You cannot edit or delete tag keys or values with this prefix. Tags with this prefix do not count against your tags per resource limit.
- key
- value
-
- TagKey
string
- TagKeys
array
- items TagKey
- TagResourceRequest
object
- tags required
- items Tag
- resourceArn required
- tags required
- TagResourceResponse
object
- TagValue
string
- Tags
array
- items Tag
- TargetType
string
(values: container-instance)
- Task
object
: Details on a task in a cluster.- tags
- items Tag
- attachments
- items Attachment
- attributes
- items Attribute
- availabilityZone
- capacityProviderName
- clusterArn
- connectivity
- connectivityAt
- containerInstanceArn
- containers
- items Container
- cpu
- createdAt
- desiredStatus
- executionStoppedAt
- group
- healthStatus
- inferenceAccelerators
- items InferenceAccelerator
- lastStatus
- launchType
- memory
- overrides
- containerOverrides
- items ContainerOverride
- cpu
- executionRoleArn
- inferenceAcceleratorOverrides
- memory
- taskRoleArn
- containerOverrides
- platformVersion
- pullStartedAt
- pullStoppedAt
- startedAt
- startedBy
- stopCode
- stoppedAt
- stoppedReason
- stoppingAt
- taskArn
- taskDefinitionArn
- version
- tags
- TaskDefinition
object
: 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.- compatibilities
- items Compatibility
- containerDefinitions
- items ContainerDefinition
- cpu
- executionRoleArn
- family
- inferenceAccelerators
- items InferenceAccelerator
- ipcMode
- memory
- networkMode
- pidMode
- placementConstraints
- proxyConfiguration
- containerName required
- properties
- items KeyValuePair
- type
- requiresAttributes
- items Attribute
- requiresCompatibilities
- items Compatibility
- revision
- status
- taskDefinitionArn
- taskRoleArn
- volumes
- items Volume
- compatibilities
- TaskDefinitionFamilyStatus
string
(values: ACTIVE, INACTIVE, ALL)
- TaskDefinitionField
string
(values: TAGS)
- TaskDefinitionFieldList
array
- items TaskDefinitionField
- TaskDefinitionPlacementConstraint
object
: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.
If you are using the Fargate launch type, task placement constraints are not supported.
- expression
- type
- TaskDefinitionPlacementConstraintType
string
(values: memberOf)
- TaskDefinitionPlacementConstraints
array
- TaskDefinitionStatus
string
(values: ACTIVE, INACTIVE)
- TaskField
string
(values: TAGS)
- TaskFieldList
array
- items TaskField
- TaskOverride
object
: The overrides associated with a task.- containerOverrides
- items ContainerOverride
- cpu
- executionRoleArn
- inferenceAcceleratorOverrides
- memory
- taskRoleArn
- containerOverrides
- TaskSet
object
: Information about a set of Amazon ECS tasks in either an AWS CodeDeploy or anEXTERNAL
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.- tags
- items Tag
- capacityProviderStrategy
- clusterArn
- computedDesiredCount
- createdAt
- externalId
- id
- launchType
- loadBalancers
- items LoadBalancer
- networkConfiguration
- pendingCount
- platformVersion
- runningCount
- scale
- unit
- value
- serviceArn
- serviceRegistries
- items ServiceRegistry
- stabilityStatus
- stabilityStatusAt
- startedBy
- status
- taskDefinition
- taskSetArn
- updatedAt
- tags
- TaskSetField
string
(values: TAGS)
- TaskSetFieldList
array
- items TaskSetField
- TaskSets
array
- items TaskSet
- TaskStopCode
string
(values: TaskFailedToStart, EssentialContainerExited, UserInitiated)
- Tasks
array
- items Task
- Timestamp
string
- Tmpfs
object
: The container path, mount options, and size of the tmpfs mount.- containerPath required
- mountOptions
- items String
- size required
- TmpfsList
array
- items Tmpfs
- TransportProtocol
string
(values: tcp, udp)
- Ulimit
object
: Theulimit
settings to pass to the container.- hardLimit required
- name required
- softLimit required
- UlimitList
array
- items Ulimit
- UlimitName
string
(values: core, cpu, data, fsize, locks, memlock, msgqueue, nice, nofile, nproc, rss, rtprio, rttime, sigpending, stack)
- UntagResourceRequest
object
- resourceArn required
- tagKeys required
- items TagKey
- UntagResourceResponse
object
- UpdateCapacityProviderRequest
object
- autoScalingGroupProvider required
- managedScaling ManagedScaling
- managedTerminationProtection
- name required
- autoScalingGroupProvider required
- UpdateCapacityProviderResponse
object
- capacityProvider CapacityProvider
- UpdateClusterSettingsRequest
object
- cluster required
- settings required
- items ClusterSetting
- UpdateClusterSettingsResponse
object
- cluster Cluster
- UpdateContainerAgentRequest
object
- cluster
- containerInstance required
- UpdateContainerAgentResponse
object
- containerInstance
- tags
- items Tag
- agentConnected
- agentUpdateStatus
- attachments
- items Attachment
- attributes
- items Attribute
- capacityProviderName
- containerInstanceArn
- ec2InstanceId
- pendingTasksCount
- registeredAt
- registeredResources
- items Resource
- remainingResources
- items Resource
- runningTasksCount
- status
- statusReason
- version
- versionInfo
- agentHash
- agentVersion
- dockerVersion
- tags
- containerInstance
- UpdateContainerInstancesStateRequest
object
- cluster
- containerInstances required
- items String
- status required
- UpdateContainerInstancesStateResponse
object
- containerInstances
- items ContainerInstance
- failures
- items Failure
- containerInstances
- UpdateServicePrimaryTaskSetRequest
object
- cluster required
- primaryTaskSet required
- service required
- UpdateServicePrimaryTaskSetResponse
object
- taskSet TaskSet
- UpdateServiceRequest
object
- capacityProviderStrategy
- cluster
- deploymentConfiguration
- deploymentCircuitBreaker
- enable required
- rollback required
- maximumPercent
- minimumHealthyPercent
- deploymentCircuitBreaker
- desiredCount
- forceNewDeployment
- healthCheckGracePeriodSeconds
- networkConfiguration NetworkConfiguration
- placementConstraints
- items PlacementConstraint
- placementStrategy
- items PlacementStrategy
- platformVersion
- service required
- taskDefinition
- UpdateServiceResponse
object
- service
- tags
- items Tag
- capacityProviderStrategy
- clusterArn
- createdAt
- createdBy
- deploymentConfiguration
- deploymentCircuitBreaker
- enable required
- rollback required
- maximumPercent
- minimumHealthyPercent
- deploymentCircuitBreaker
- deploymentController
- type required
- deployments
- items Deployment
- desiredCount
- enableECSManagedTags
- events
- items ServiceEvent
- healthCheckGracePeriodSeconds
- launchType
- loadBalancers
- items LoadBalancer
- networkConfiguration
- pendingCount
- placementConstraints
- items PlacementConstraint
- placementStrategy
- items PlacementStrategy
- platformVersion
- propagateTags
- roleArn
- runningCount
- schedulingStrategy
- serviceArn
- serviceName
- serviceRegistries
- items ServiceRegistry
- status
- taskDefinition
- taskSets
- items TaskSet
- tags
- service
- UpdateTaskSetRequest
object
- cluster required
- scale required Scale
- service required
- taskSet required
- UpdateTaskSetResponse
object
- taskSet TaskSet
- VersionInfo
object
: The Docker and Amazon ECS container agent version information about a container instance.- agentHash
- agentVersion
- dockerVersion
- Volume
object
: A data volume used in a task definition. For tasks that use the Amazon Elastic File System (Amazon EFS), specify anefsVolumeConfiguration
. For Windows tasks that use Amazon FSx for Windows File Server file system, specify afsxWindowsFileServerVolumeConfiguration
. For tasks that use a Docker volume, specify aDockerVolumeConfiguration
. For tasks that use a bind mount host volume, specify ahost
and optionalsourcePath
. For more information, see Using Data Volumes in Tasks.- host
- sourcePath
- dockerVolumeConfiguration
- autoprovision
- driver
- driverOpts
- labels
- scope
- efsVolumeConfiguration
- authorizationConfig
- accessPointId
- iam
- fileSystemId required
- rootDirectory
- transitEncryption
- transitEncryptionPort
- authorizationConfig
- fsxWindowsFileServerVolumeConfiguration
- authorizationConfig required
- credentialsParameter required
- domain required
- fileSystemId required
- rootDirectory required
- authorizationConfig required
- name
- host
- VolumeFrom
object
: Details on a data volume from another container in the same task definition.- readOnly
- sourceContainer
- VolumeFromList
array
- items VolumeFrom
- VolumeList
array
- items Volume