Package-level declarations

Types

Link copied to clipboard
interface EcsClient : SdkClient

Amazon Elastic Container Service (Amazon ECS) is a highly scalable, fast, container management service. It makes it easy to run, stop, and manage Docker containers. You can host your cluster on a serverless infrastructure that's managed by Amazon ECS by launching your services or tasks on Fargate. For more control, you can host your tasks on a cluster of Amazon Elastic Compute Cloud (Amazon EC2) or External (on-premises) instances that you manage.

Properties

Link copied to clipboard
const val SdkVersion: String
Link copied to clipboard
Link copied to clipboard
const val ServiceId: String

Functions

Link copied to clipboard

Creates a new capacity provider. Capacity providers are associated with an Amazon ECS cluster and are used in capacity provider strategies to facilitate cluster auto scaling.

Link copied to clipboard
inline suspend fun EcsClient.createCluster(crossinline block: CreateClusterRequest.Builder.() -> Unit): CreateClusterResponse

Creates a new Amazon ECS cluster. By default, your account receives a default cluster when you launch your first container instance. However, you can create your own cluster with a unique name.

Link copied to clipboard
inline suspend fun EcsClient.createService(crossinline block: CreateServiceRequest.Builder.() -> Unit): CreateServiceResponse

Runs and maintains your desired number of tasks from a specified task definition. If the number of tasks running in a service drops below the desiredCount, Amazon ECS runs another copy of the task in the specified cluster. To update an existing service, use UpdateService.

Link copied to clipboard
inline suspend fun EcsClient.createTaskSet(crossinline block: CreateTaskSetRequest.Builder.() -> Unit): CreateTaskSetResponse

Create a task set in the specified cluster and service. This is used when a service uses the EXTERNAL deployment controller type. For more information, see Amazon ECS deployment types in the Amazon Elastic Container Service Developer Guide.

Link copied to clipboard

Disables an account setting for a specified user, role, or the root user for an account.

Link copied to clipboard

Deletes one or more custom attributes from an Amazon ECS resource.

Link copied to clipboard

Deletes the specified capacity provider.

Link copied to clipboard
inline suspend fun EcsClient.deleteCluster(crossinline block: DeleteClusterRequest.Builder.() -> Unit): DeleteClusterResponse

Deletes the specified cluster. The cluster transitions to the INACTIVE state. Clusters with an INACTIVE status might remain discoverable in your account for a period of time. However, this behavior is subject to change in the future. We don't recommend that you rely on INACTIVE clusters persisting.

Link copied to clipboard
inline suspend fun EcsClient.deleteService(crossinline block: DeleteServiceRequest.Builder.() -> Unit): DeleteServiceResponse

Deletes a specified service within a cluster. You can delete a service if you have no running tasks in it and the desired task count is zero. If the service is actively maintaining tasks, you can't delete it, and you must update the service to a desired task count of zero. For more information, see UpdateService.

Link copied to clipboard

Deletes one or more task definitions.

Link copied to clipboard
inline suspend fun EcsClient.deleteTaskSet(crossinline block: DeleteTaskSetRequest.Builder.() -> Unit): DeleteTaskSetResponse

Deletes a specified task set within a service. This is used when a service uses the EXTERNAL deployment controller type. For more information, see Amazon ECS deployment types in the Amazon Elastic Container Service Developer Guide.

Link copied to clipboard

Deregisters an Amazon ECS container instance from the specified cluster. This instance is no longer available to run tasks.

Link copied to clipboard

Deregisters the specified task definition by family and revision. Upon deregistration, the task definition is marked as INACTIVE. Existing tasks and services that reference an INACTIVE task definition continue to run without disruption. Existing services that reference an INACTIVE task definition can still scale up or down by modifying the service's desired count. If you want to delete a task definition revision, you must first deregister the task definition revision.

Link copied to clipboard

Describes one or more of your capacity providers.

Link copied to clipboard

Describes one or more of your clusters.

Link copied to clipboard

Describes one or more container instances. Returns metadata about each container instance requested.

Link copied to clipboard

Describes one or more of your service deployments.

Link copied to clipboard

Describes one or more service revisions.

Link copied to clipboard

Describes the specified services running in your cluster.

Link copied to clipboard

Describes a task definition. You can specify a family and revision to find information about a specific task definition, or you can simply specify the family to find the latest ACTIVE revision in that family.

Link copied to clipboard
inline suspend fun EcsClient.describeTasks(crossinline block: DescribeTasksRequest.Builder.() -> Unit): DescribeTasksResponse

Describes a specified task or tasks.

Link copied to clipboard

Describes the task sets in the specified cluster and service. This is used when a service uses the EXTERNAL deployment controller type. For more information, see Amazon ECS Deployment Types in the Amazon Elastic Container Service Developer Guide.

Link copied to clipboard

This action is only used by the Amazon ECS agent, and it is not intended for use outside of the agent.

Link copied to clipboard

Runs a command remotely on a container within a task.

Link copied to clipboard

Retrieves the protection status of tasks in an Amazon ECS service.

Link copied to clipboard

Lists the account settings for a specified principal.

Link copied to clipboard

Lists the attributes for Amazon ECS resources within a specified target type and cluster. When you specify a target type and cluster, ListAttributes returns a list of attribute objects, one for each attribute on each resource. You can filter the list of results to a single attribute name to only return results that have that name. You can also filter the results by attribute name and value. You can do this, for example, to see which container instances in a cluster are running a Linux AMI (ecs.os-type=linux).

Link copied to clipboard
inline suspend fun EcsClient.listClusters(crossinline block: ListClustersRequest.Builder.() -> Unit): ListClustersResponse

Returns a list of existing clusters.

Link copied to clipboard

Returns a list of container instances in a specified cluster. You can filter the results of a ListContainerInstances operation with cluster query language statements inside the filter parameter. For more information, see Cluster Query Language in the Amazon Elastic Container Service Developer Guide.

Link copied to clipboard

This operation lists all the service deployments that meet the specified filter criteria.

Link copied to clipboard
inline suspend fun EcsClient.listServices(crossinline block: ListServicesRequest.Builder.() -> Unit): ListServicesResponse

Returns a list of services. You can filter the results by cluster, launch type, and scheduling strategy.

Link copied to clipboard

This operation lists all of the services that are associated with a Cloud Map namespace. This list might include services in different clusters. In contrast, ListServices can only list services in one cluster at a time. If you need to filter the list of services in a single cluster by various parameters, use ListServices. For more information, see Service Connect in the Amazon Elastic Container Service Developer Guide.

Link copied to clipboard

List the tags for an Amazon ECS resource.

Link copied to clipboard

Returns a list of task definition families that are registered to your account. This list includes task definition families that no longer have any ACTIVE task definition revisions.

Link copied to clipboard

Returns a list of task definitions that are registered to your account. You can filter the results by family name with the familyPrefix parameter or by status with the status parameter.

Link copied to clipboard
inline suspend fun EcsClient.listTasks(crossinline block: ListTasksRequest.Builder.() -> Unit): ListTasksResponse

Returns a list of tasks. You can filter the results by cluster, task definition family, container instance, launch type, what IAM principal started the task, or by the desired status of the task.

Link copied to clipboard

Modifies an account setting. Account settings are set on a per-Region basis.

Link copied to clipboard

Modifies an account setting for all users on an account for whom no individual account setting has been specified. Account settings are set on a per-Region basis.

Link copied to clipboard
inline suspend fun EcsClient.putAttributes(crossinline block: PutAttributesRequest.Builder.() -> Unit): PutAttributesResponse

Create or update an attribute on an Amazon ECS resource. If the attribute doesn't exist, it's created. If the attribute exists, its value is replaced with the specified value. To delete an attribute, use DeleteAttributes. For more information, see Attributes in the Amazon Elastic Container Service Developer Guide.

Link copied to clipboard

Modifies the available capacity providers and the default capacity provider strategy for a cluster.

Link copied to clipboard

This action is only used by the Amazon ECS agent, and it is not intended for use outside of the agent.

Link copied to clipboard

Registers a new task definition from the supplied family and containerDefinitions. Optionally, you can add data volumes to your containers with the volumes parameter. For more information about task definition parameters and defaults, see Amazon ECS Task Definitions in the Amazon Elastic Container Service Developer Guide.

Link copied to clipboard
inline suspend fun EcsClient.runTask(crossinline block: RunTaskRequest.Builder.() -> Unit): RunTaskResponse

Starts a new task using the specified task definition.

Link copied to clipboard
inline suspend fun EcsClient.startTask(crossinline block: StartTaskRequest.Builder.() -> Unit): StartTaskResponse

Starts a new task from the specified task definition on the specified container instance or instances.

Link copied to clipboard

Stops an ongoing service deployment.

Link copied to clipboard
inline suspend fun EcsClient.stopTask(crossinline block: StopTaskRequest.Builder.() -> Unit): StopTaskResponse

Stops a running task. Any tags associated with the task will be deleted.

Link copied to clipboard

This action is only used by the Amazon ECS agent, and it is not intended for use outside of the agent.

Link copied to clipboard

This action is only used by the Amazon ECS agent, and it is not intended for use outside of the agent.

Link copied to clipboard

This action is only used by the Amazon ECS agent, and it is not intended for use outside of the agent.

Link copied to clipboard
inline suspend fun EcsClient.tagResource(crossinline block: TagResourceRequest.Builder.() -> Unit): TagResourceResponse

Associates the specified tags to a resource with the specified resourceArn. If existing tags on a resource aren't specified in the request parameters, they aren't changed. When a resource is deleted, the tags that are associated with that resource are deleted as well.

Link copied to clipboard
inline suspend fun EcsClient.untagResource(crossinline block: UntagResourceRequest.Builder.() -> Unit): UntagResourceResponse

Deletes specified tags from a resource.

Link copied to clipboard

Modifies the parameters for a capacity provider.

Link copied to clipboard
inline suspend fun EcsClient.updateCluster(crossinline block: UpdateClusterRequest.Builder.() -> Unit): UpdateClusterResponse

Updates the cluster.

Link copied to clipboard

Modifies the settings to use for a cluster.

Link copied to clipboard

Updates the Amazon ECS container agent on a specified container instance. Updating the Amazon ECS container agent doesn't interrupt running tasks or services on the container instance. The process for updating the agent differs depending on whether your container instance was launched with the Amazon ECS-optimized AMI or another operating system.

Link copied to clipboard

Modifies the status of an Amazon ECS container instance.

Link copied to clipboard
inline suspend fun EcsClient.updateService(crossinline block: UpdateServiceRequest.Builder.() -> Unit): UpdateServiceResponse

Modifies the parameters of a service.

Link copied to clipboard

Modifies which task set in a service is the primary task set. Any parameters that are updated on the primary task set in a service will transition to the service. This is used when a service uses the EXTERNAL deployment controller type. For more information, see Amazon ECS Deployment Types in the Amazon Elastic Container Service Developer Guide.

Link copied to clipboard

Updates the protection status of a task. You can set protectionEnabled to true to protect your task from termination during scale-in events from Service Autoscaling or deployments.

Link copied to clipboard
inline suspend fun EcsClient.updateTaskSet(crossinline block: UpdateTaskSetRequest.Builder.() -> Unit): UpdateTaskSetResponse

Modifies a task set. This is used when a service uses the EXTERNAL deployment controller type. For more information, see Amazon ECS Deployment Types in the Amazon Elastic Container Service Developer Guide.

Link copied to clipboard

Create a copy of the client with one or more configuration values overridden. This method allows the caller to perform scoped config overrides for one or more client operations.