ECSClient#
Auto-generated documentation for ECS type annotations stubs module mypy-boto3-ecs.
ECSClient#
Type annotations and code completion for boto3.client("ecs").
boto3 documentation
# ECSClient usage example
from boto3.session import Session
from mypy_boto3_ecs.client import ECSClient
def get_ecs_client() -> ECSClient:
return Session().client("ecs")
Exceptions#
boto3 client exceptions are generated in runtime.
This class provides code completion for boto3.client("ecs").exceptions structure.
# Exceptions.exceptions usage example
client = boto3.client("ecs")
try:
do_something(client)
except (
client.exceptions.AccessDeniedException,
client.exceptions.AttributeLimitExceededException,
client.exceptions.BlockedException,
client.exceptions.ClientError,
client.exceptions.ClientException,
client.exceptions.ClusterContainsCapacityProviderException,
client.exceptions.ClusterContainsContainerInstancesException,
client.exceptions.ClusterContainsServicesException,
client.exceptions.ClusterContainsTasksException,
client.exceptions.ClusterNotFoundException,
client.exceptions.ConflictException,
client.exceptions.InvalidParameterException,
client.exceptions.LimitExceededException,
client.exceptions.MissingVersionException,
client.exceptions.NamespaceNotFoundException,
client.exceptions.NoUpdateAvailableException,
client.exceptions.PlatformTaskDefinitionIncompatibilityException,
client.exceptions.PlatformUnknownException,
client.exceptions.ResourceInUseException,
client.exceptions.ResourceNotFoundException,
client.exceptions.ServerException,
client.exceptions.ServiceDeploymentNotFoundException,
client.exceptions.ServiceNotActiveException,
client.exceptions.ServiceNotFoundException,
client.exceptions.TargetNotConnectedException,
client.exceptions.TargetNotFoundException,
client.exceptions.TaskSetNotFoundException,
client.exceptions.UnsupportedFeatureException,
client.exceptions.UpdateInProgressException,
) as e:
print(e)
# Exceptions.exceptions type checking example
from mypy_boto3_ecs.client import Exceptions
def handle_error(exc: Exceptions.AccessDeniedException) -> None:
...
Methods#
can_paginate#
Type annotations and code completion for boto3.client("ecs").can_paginate method.
boto3 documentation
# can_paginate method definition
def can_paginate(
self,
operation_name: str,
) -> bool:
...
generate_presigned_url#
Type annotations and code completion for boto3.client("ecs").generate_presigned_url method.
boto3 documentation
# generate_presigned_url method definition
def generate_presigned_url(
self,
ClientMethod: str,
Params: Mapping[str, Any] = ...,
ExpiresIn: int = 3600,
HttpMethod: str = ...,
) -> str:
...
create_capacity_provider#
Creates a capacity provider.
Type annotations and code completion for boto3.client("ecs").create_capacity_provider method.
boto3 documentation
# create_capacity_provider method definition
def create_capacity_provider(
self,
*,
name: str,
cluster: str = ...,
autoScalingGroupProvider: AutoScalingGroupProviderTypeDef = ..., # (1)
managedInstancesProvider: CreateManagedInstancesProviderConfigurationTypeDef = ..., # (2)
tags: Sequence[TagTypeDef] = ..., # (3)
) -> CreateCapacityProviderResponseTypeDef: # (4)
...
- See AutoScalingGroupProviderTypeDef
- See CreateManagedInstancesProviderConfigurationTypeDef
- See
Sequence[TagTypeDef] - See CreateCapacityProviderResponseTypeDef
# create_capacity_provider method usage example with argument unpacking
kwargs: CreateCapacityProviderRequestTypeDef = { # (1)
"name": ...,
}
parent.create_capacity_provider(**kwargs)
create_cluster#
Creates a new Amazon ECS cluster.
Type annotations and code completion for boto3.client("ecs").create_cluster method.
boto3 documentation
# create_cluster method definition
def create_cluster(
self,
*,
clusterName: str = ...,
tags: Sequence[TagTypeDef] = ..., # (1)
settings: Sequence[ClusterSettingTypeDef] = ..., # (2)
configuration: ClusterConfigurationTypeDef = ..., # (3)
capacityProviders: Sequence[str] = ...,
defaultCapacityProviderStrategy: Sequence[CapacityProviderStrategyItemTypeDef] = ..., # (4)
serviceConnectDefaults: ClusterServiceConnectDefaultsRequestTypeDef = ..., # (5)
) -> CreateClusterResponseTypeDef: # (6)
...
- See
Sequence[TagTypeDef] - See
Sequence[ClusterSettingTypeDef] - See ClusterConfigurationTypeDef
- See
Sequence[CapacityProviderStrategyItemTypeDef] - See ClusterServiceConnectDefaultsRequestTypeDef
- See CreateClusterResponseTypeDef
# create_cluster method usage example with argument unpacking
kwargs: CreateClusterRequestTypeDef = { # (1)
"clusterName": ...,
}
parent.create_cluster(**kwargs)
create_express_gateway_service#
Creates an Express service that simplifies deploying containerized web applications on Amazon ECS with managed Amazon Web Services infrastructure.
Type annotations and code completion for boto3.client("ecs").create_express_gateway_service method.
boto3 documentation
# create_express_gateway_service method definition
def create_express_gateway_service(
self,
*,
executionRoleArn: str,
infrastructureRoleArn: str,
primaryContainer: ExpressGatewayContainerUnionTypeDef, # (1)
serviceName: str = ...,
cluster: str = ...,
healthCheckPath: str = ...,
taskRoleArn: str = ...,
networkConfiguration: ExpressGatewayServiceNetworkConfigurationUnionTypeDef = ..., # (2)
cpu: str = ...,
memory: str = ...,
scalingTarget: ExpressGatewayScalingTargetTypeDef = ..., # (3)
tags: Sequence[TagTypeDef] = ..., # (4)
) -> CreateExpressGatewayServiceResponseTypeDef: # (5)
...
- See ExpressGatewayContainerUnionTypeDef
- See ExpressGatewayServiceNetworkConfigurationUnionTypeDef
- See ExpressGatewayScalingTargetTypeDef
- See
Sequence[TagTypeDef] - See CreateExpressGatewayServiceResponseTypeDef
# create_express_gateway_service method usage example with argument unpacking
kwargs: CreateExpressGatewayServiceRequestTypeDef = { # (1)
"executionRoleArn": ...,
"infrastructureRoleArn": ...,
"primaryContainer": ...,
}
parent.create_express_gateway_service(**kwargs)
create_service#
Runs and maintains your desired number of tasks from a specified task definition.
Type annotations and code completion for boto3.client("ecs").create_service method.
boto3 documentation
# create_service method definition
def create_service(
self,
*,
serviceName: str,
cluster: str = ...,
taskDefinition: str = ...,
availabilityZoneRebalancing: AvailabilityZoneRebalancingType = ..., # (1)
loadBalancers: Sequence[LoadBalancerTypeDef] = ..., # (2)
serviceRegistries: Sequence[ServiceRegistryTypeDef] = ..., # (3)
desiredCount: int = ...,
clientToken: str = ...,
launchType: LaunchTypeType = ..., # (4)
capacityProviderStrategy: Sequence[CapacityProviderStrategyItemTypeDef] = ..., # (5)
platformVersion: str = ...,
role: str = ...,
deploymentConfiguration: DeploymentConfigurationUnionTypeDef = ..., # (6)
placementConstraints: Sequence[PlacementConstraintTypeDef] = ..., # (7)
placementStrategy: Sequence[PlacementStrategyTypeDef] = ..., # (8)
networkConfiguration: NetworkConfigurationUnionTypeDef = ..., # (9)
healthCheckGracePeriodSeconds: int = ...,
schedulingStrategy: SchedulingStrategyType = ..., # (10)
deploymentController: DeploymentControllerTypeDef = ..., # (11)
tags: Sequence[TagTypeDef] = ..., # (12)
enableECSManagedTags: bool = ...,
propagateTags: PropagateTagsType = ..., # (13)
enableExecuteCommand: bool = ...,
serviceConnectConfiguration: ServiceConnectConfigurationUnionTypeDef = ..., # (14)
volumeConfigurations: Sequence[ServiceVolumeConfigurationUnionTypeDef] = ..., # (15)
vpcLatticeConfigurations: Sequence[VpcLatticeConfigurationTypeDef] = ..., # (16)
) -> CreateServiceResponseTypeDef: # (17)
...
- See AvailabilityZoneRebalancingType
- See
Sequence[LoadBalancerTypeDef] - See
Sequence[ServiceRegistryTypeDef] - See LaunchTypeType
- See
Sequence[CapacityProviderStrategyItemTypeDef] - See DeploymentConfigurationUnionTypeDef
- See
Sequence[PlacementConstraintTypeDef] - See
Sequence[PlacementStrategyTypeDef] - See NetworkConfigurationUnionTypeDef
- See SchedulingStrategyType
- See DeploymentControllerTypeDef
- See
Sequence[TagTypeDef] - See PropagateTagsType
- See ServiceConnectConfigurationUnionTypeDef
- See
Sequence[ServiceVolumeConfigurationUnionTypeDef] - See
Sequence[VpcLatticeConfigurationTypeDef] - See CreateServiceResponseTypeDef
# create_service method usage example with argument unpacking
kwargs: CreateServiceRequestTypeDef = { # (1)
"serviceName": ...,
}
parent.create_service(**kwargs)
create_task_set#
Create a task set in the specified cluster and service.
Type annotations and code completion for boto3.client("ecs").create_task_set method.
boto3 documentation
# create_task_set method definition
def create_task_set(
self,
*,
service: str,
cluster: str,
taskDefinition: str,
externalId: str = ...,
networkConfiguration: NetworkConfigurationUnionTypeDef = ..., # (1)
loadBalancers: Sequence[LoadBalancerTypeDef] = ..., # (2)
serviceRegistries: Sequence[ServiceRegistryTypeDef] = ..., # (3)
launchType: LaunchTypeType = ..., # (4)
capacityProviderStrategy: Sequence[CapacityProviderStrategyItemTypeDef] = ..., # (5)
platformVersion: str = ...,
scale: ScaleTypeDef = ..., # (6)
clientToken: str = ...,
tags: Sequence[TagTypeDef] = ..., # (7)
) -> CreateTaskSetResponseTypeDef: # (8)
...
- See NetworkConfigurationUnionTypeDef
- See
Sequence[LoadBalancerTypeDef] - See
Sequence[ServiceRegistryTypeDef] - See LaunchTypeType
- See
Sequence[CapacityProviderStrategyItemTypeDef] - See ScaleTypeDef
- See
Sequence[TagTypeDef] - See CreateTaskSetResponseTypeDef
# create_task_set method usage example with argument unpacking
kwargs: CreateTaskSetRequestTypeDef = { # (1)
"service": ...,
"cluster": ...,
"taskDefinition": ...,
}
parent.create_task_set(**kwargs)
delete_account_setting#
Disables an account setting for a specified user, role, or the root user for an account.
Type annotations and code completion for boto3.client("ecs").delete_account_setting method.
boto3 documentation
# delete_account_setting method definition
def delete_account_setting(
self,
*,
name: SettingNameType, # (1)
principalArn: str = ...,
) -> DeleteAccountSettingResponseTypeDef: # (2)
...
# delete_account_setting method usage example with argument unpacking
kwargs: DeleteAccountSettingRequestTypeDef = { # (1)
"name": ...,
}
parent.delete_account_setting(**kwargs)
delete_attributes#
Deletes one or more custom attributes from an Amazon ECS resource.
Type annotations and code completion for boto3.client("ecs").delete_attributes method.
boto3 documentation
# delete_attributes method definition
def delete_attributes(
self,
*,
attributes: Sequence[AttributeTypeDef], # (1)
cluster: str = ...,
) -> DeleteAttributesResponseTypeDef: # (2)
...
- See
Sequence[AttributeTypeDef] - See DeleteAttributesResponseTypeDef
# delete_attributes method usage example with argument unpacking
kwargs: DeleteAttributesRequestTypeDef = { # (1)
"attributes": ...,
}
parent.delete_attributes(**kwargs)
delete_capacity_provider#
Deletes the specified capacity provider.
Type annotations and code completion for boto3.client("ecs").delete_capacity_provider method.
boto3 documentation
# delete_capacity_provider method definition
def delete_capacity_provider(
self,
*,
capacityProvider: str,
cluster: str = ...,
) -> DeleteCapacityProviderResponseTypeDef: # (1)
...
# delete_capacity_provider method usage example with argument unpacking
kwargs: DeleteCapacityProviderRequestTypeDef = { # (1)
"capacityProvider": ...,
}
parent.delete_capacity_provider(**kwargs)
delete_cluster#
Deletes the specified cluster.
Type annotations and code completion for boto3.client("ecs").delete_cluster method.
boto3 documentation
# delete_cluster method definition
def delete_cluster(
self,
*,
cluster: str,
) -> DeleteClusterResponseTypeDef: # (1)
...
# delete_cluster method usage example with argument unpacking
kwargs: DeleteClusterRequestTypeDef = { # (1)
"cluster": ...,
}
parent.delete_cluster(**kwargs)
delete_express_gateway_service#
Deletes an Express service and removes all associated Amazon Web Services resources.
Type annotations and code completion for boto3.client("ecs").delete_express_gateway_service method.
boto3 documentation
# delete_express_gateway_service method definition
def delete_express_gateway_service(
self,
*,
serviceArn: str,
) -> DeleteExpressGatewayServiceResponseTypeDef: # (1)
...
# delete_express_gateway_service method usage example with argument unpacking
kwargs: DeleteExpressGatewayServiceRequestTypeDef = { # (1)
"serviceArn": ...,
}
parent.delete_express_gateway_service(**kwargs)
delete_service#
Deletes a specified service within a cluster.
Type annotations and code completion for boto3.client("ecs").delete_service method.
boto3 documentation
# delete_service method definition
def delete_service(
self,
*,
service: str,
cluster: str = ...,
force: bool = ...,
) -> DeleteServiceResponseTypeDef: # (1)
...
# delete_service method usage example with argument unpacking
kwargs: DeleteServiceRequestTypeDef = { # (1)
"service": ...,
}
parent.delete_service(**kwargs)
delete_task_definitions#
Deletes one or more task definitions.
Type annotations and code completion for boto3.client("ecs").delete_task_definitions method.
boto3 documentation
# delete_task_definitions method definition
def delete_task_definitions(
self,
*,
taskDefinitions: Sequence[str],
) -> DeleteTaskDefinitionsResponseTypeDef: # (1)
...
# delete_task_definitions method usage example with argument unpacking
kwargs: DeleteTaskDefinitionsRequestTypeDef = { # (1)
"taskDefinitions": ...,
}
parent.delete_task_definitions(**kwargs)
delete_task_set#
Deletes a specified task set within a service.
Type annotations and code completion for boto3.client("ecs").delete_task_set method.
boto3 documentation
# delete_task_set method definition
def delete_task_set(
self,
*,
cluster: str,
service: str,
taskSet: str,
force: bool = ...,
) -> DeleteTaskSetResponseTypeDef: # (1)
...
# delete_task_set method usage example with argument unpacking
kwargs: DeleteTaskSetRequestTypeDef = { # (1)
"cluster": ...,
"service": ...,
"taskSet": ...,
}
parent.delete_task_set(**kwargs)
deregister_container_instance#
Deregisters an Amazon ECS container instance from the specified cluster.
Type annotations and code completion for boto3.client("ecs").deregister_container_instance method.
boto3 documentation
# deregister_container_instance method definition
def deregister_container_instance(
self,
*,
containerInstance: str,
cluster: str = ...,
force: bool = ...,
) -> DeregisterContainerInstanceResponseTypeDef: # (1)
...
# deregister_container_instance method usage example with argument unpacking
kwargs: DeregisterContainerInstanceRequestTypeDef = { # (1)
"containerInstance": ...,
}
parent.deregister_container_instance(**kwargs)
deregister_task_definition#
Deregisters the specified task definition by family and revision.
Type annotations and code completion for boto3.client("ecs").deregister_task_definition method.
boto3 documentation
# deregister_task_definition method definition
def deregister_task_definition(
self,
*,
taskDefinition: str,
) -> DeregisterTaskDefinitionResponseTypeDef: # (1)
...
# deregister_task_definition method usage example with argument unpacking
kwargs: DeregisterTaskDefinitionRequestTypeDef = { # (1)
"taskDefinition": ...,
}
parent.deregister_task_definition(**kwargs)
describe_capacity_providers#
Describes one or more of your capacity providers.
Type annotations and code completion for boto3.client("ecs").describe_capacity_providers method.
boto3 documentation
# describe_capacity_providers method definition
def describe_capacity_providers(
self,
*,
capacityProviders: Sequence[str] = ...,
cluster: str = ...,
include: Sequence[CapacityProviderFieldType] = ..., # (1)
maxResults: int = ...,
nextToken: str = ...,
) -> DescribeCapacityProvidersResponseTypeDef: # (2)
...
- See
Sequence[Literal['TAGS']] - See DescribeCapacityProvidersResponseTypeDef
# describe_capacity_providers method usage example with argument unpacking
kwargs: DescribeCapacityProvidersRequestTypeDef = { # (1)
"capacityProviders": ...,
}
parent.describe_capacity_providers(**kwargs)
describe_clusters#
Describes one or more of your clusters.
Type annotations and code completion for boto3.client("ecs").describe_clusters method.
boto3 documentation
# describe_clusters method definition
def describe_clusters(
self,
*,
clusters: Sequence[str] = ...,
include: Sequence[ClusterFieldType] = ..., # (1)
) -> DescribeClustersResponseTypeDef: # (2)
...
- See
Sequence[ClusterFieldType] - See DescribeClustersResponseTypeDef
# describe_clusters method usage example with argument unpacking
kwargs: DescribeClustersRequestTypeDef = { # (1)
"clusters": ...,
}
parent.describe_clusters(**kwargs)
describe_container_instances#
Describes one or more container instances.
Type annotations and code completion for boto3.client("ecs").describe_container_instances method.
boto3 documentation
# describe_container_instances method definition
def describe_container_instances(
self,
*,
containerInstances: Sequence[str],
cluster: str = ...,
include: Sequence[ContainerInstanceFieldType] = ..., # (1)
) -> DescribeContainerInstancesResponseTypeDef: # (2)
...
- See
Sequence[ContainerInstanceFieldType] - See DescribeContainerInstancesResponseTypeDef
# describe_container_instances method usage example with argument unpacking
kwargs: DescribeContainerInstancesRequestTypeDef = { # (1)
"containerInstances": ...,
}
parent.describe_container_instances(**kwargs)
describe_express_gateway_service#
Retrieves detailed information about an Express service, including current status, configuration, managed infrastructure, and service revisions.
Type annotations and code completion for boto3.client("ecs").describe_express_gateway_service method.
boto3 documentation
# describe_express_gateway_service method definition
def describe_express_gateway_service(
self,
*,
serviceArn: str,
include: Sequence[ExpressGatewayServiceIncludeType] = ..., # (1)
) -> DescribeExpressGatewayServiceResponseTypeDef: # (2)
...
- See
Sequence[Literal['TAGS']] - See DescribeExpressGatewayServiceResponseTypeDef
# describe_express_gateway_service method usage example with argument unpacking
kwargs: DescribeExpressGatewayServiceRequestTypeDef = { # (1)
"serviceArn": ...,
}
parent.describe_express_gateway_service(**kwargs)
describe_service_deployments#
Describes one or more of your service deployments.
Type annotations and code completion for boto3.client("ecs").describe_service_deployments method.
boto3 documentation
# describe_service_deployments method definition
def describe_service_deployments(
self,
*,
serviceDeploymentArns: Sequence[str],
) -> DescribeServiceDeploymentsResponseTypeDef: # (1)
...
# describe_service_deployments method usage example with argument unpacking
kwargs: DescribeServiceDeploymentsRequestTypeDef = { # (1)
"serviceDeploymentArns": ...,
}
parent.describe_service_deployments(**kwargs)
describe_service_revisions#
Describes one or more service revisions.
Type annotations and code completion for boto3.client("ecs").describe_service_revisions method.
boto3 documentation
# describe_service_revisions method definition
def describe_service_revisions(
self,
*,
serviceRevisionArns: Sequence[str],
) -> DescribeServiceRevisionsResponseTypeDef: # (1)
...
# describe_service_revisions method usage example with argument unpacking
kwargs: DescribeServiceRevisionsRequestTypeDef = { # (1)
"serviceRevisionArns": ...,
}
parent.describe_service_revisions(**kwargs)
describe_services#
Describes the specified services running in your cluster.
Type annotations and code completion for boto3.client("ecs").describe_services method.
boto3 documentation
# describe_services method definition
def describe_services(
self,
*,
services: Sequence[str],
cluster: str = ...,
include: Sequence[ServiceFieldType] = ..., # (1)
) -> DescribeServicesResponseTypeDef: # (2)
...
- See
Sequence[Literal['TAGS']] - See DescribeServicesResponseTypeDef
# describe_services method usage example with argument unpacking
kwargs: DescribeServicesRequestTypeDef = { # (1)
"services": ...,
}
parent.describe_services(**kwargs)
describe_task_definition#
Describes a task definition.
Type annotations and code completion for boto3.client("ecs").describe_task_definition method.
boto3 documentation
# describe_task_definition method definition
def describe_task_definition(
self,
*,
taskDefinition: str,
include: Sequence[TaskDefinitionFieldType] = ..., # (1)
) -> DescribeTaskDefinitionResponseTypeDef: # (2)
...
- See
Sequence[Literal['TAGS']] - See DescribeTaskDefinitionResponseTypeDef
# describe_task_definition method usage example with argument unpacking
kwargs: DescribeTaskDefinitionRequestTypeDef = { # (1)
"taskDefinition": ...,
}
parent.describe_task_definition(**kwargs)
describe_task_sets#
Describes the task sets in the specified cluster and service.
Type annotations and code completion for boto3.client("ecs").describe_task_sets method.
boto3 documentation
# describe_task_sets method definition
def describe_task_sets(
self,
*,
cluster: str,
service: str,
taskSets: Sequence[str] = ...,
include: Sequence[TaskSetFieldType] = ..., # (1)
) -> DescribeTaskSetsResponseTypeDef: # (2)
...
- See
Sequence[Literal['TAGS']] - See DescribeTaskSetsResponseTypeDef
# describe_task_sets method usage example with argument unpacking
kwargs: DescribeTaskSetsRequestTypeDef = { # (1)
"cluster": ...,
"service": ...,
}
parent.describe_task_sets(**kwargs)
describe_tasks#
Describes a specified task or tasks.
Type annotations and code completion for boto3.client("ecs").describe_tasks method.
boto3 documentation
# describe_tasks method definition
def describe_tasks(
self,
*,
tasks: Sequence[str],
cluster: str = ...,
include: Sequence[TaskFieldType] = ..., # (1)
) -> DescribeTasksResponseTypeDef: # (2)
...
- See
Sequence[Literal['TAGS']] - See DescribeTasksResponseTypeDef
# describe_tasks method usage example with argument unpacking
kwargs: DescribeTasksRequestTypeDef = { # (1)
"tasks": ...,
}
parent.describe_tasks(**kwargs)
discover_poll_endpoint#
This action is only used by the Amazon ECS agent, and it is not
intended for use outside of the agent. Type annotations and code completion for Runs a command remotely on a container within a task. Type annotations and code completion for Retrieves the protection status of tasks in an Amazon ECS service. Type annotations and code completion for Lists the account settings for a specified principal. Type annotations and code completion for Lists the attributes for Amazon ECS resources within a specified target type
and cluster. Type annotations and code completion for Returns a list of existing clusters. Type annotations and code completion for Returns a list of container instances in a specified cluster. Type annotations and code completion for This operation lists all the service deployments that meet the specified filter
criteria. Type annotations and code completion for Returns a list of services. Type annotations and code completion for This operation lists all of the services that are associated with a Cloud Map
namespace. Type annotations and code completion for List the tags for an Amazon ECS resource. Type annotations and code completion for Returns a list of task definition families that are registered to your account. Type annotations and code completion for Returns a list of task definitions that are registered to your account. Type annotations and code completion for Returns a list of tasks. Type annotations and code completion for Modifies an account setting. Type annotations and code completion for Modifies an account setting for all users on an account for whom no individual
account setting has been specified. Type annotations and code completion for Create or update an attribute on an Amazon ECS resource. Type annotations and code completion for Modifies the available capacity providers and the default capacity provider
strategy for a cluster. Type annotations and code completion for This action is only used by the Amazon ECS agent, and it is not
intended for use outside of the agent. Type annotations and code completion for Registers a new task definition from the supplied Type annotations and code completion for Starts a new task using the specified task definition. Type annotations and code completion for Starts a new task from the specified task definition on the specified container
instance or instances. Type annotations and code completion for Stops an ongoing service deployment. Type annotations and code completion for Stops a running task. Type annotations and code completion for This action is only used by the Amazon ECS agent, and it is not
intended for use outside of the agent. Type annotations and code completion for This action is only used by the Amazon ECS agent, and it is not
intended for use outside of the agent. Type annotations and code completion for This action is only used by the Amazon ECS agent, and it is not
intended for use outside of the agent. Type annotations and code completion for Associates the specified tags to a resource with the specified
Type annotations and code completion for Deletes specified tags from a resource. Type annotations and code completion for Modifies the parameters for a capacity provider. Type annotations and code completion for Updates the cluster. Type annotations and code completion for Modifies the settings to use for a cluster. Type annotations and code completion for Updates the Amazon ECS container agent on a specified container instance. Type annotations and code completion for Modifies the status of an Amazon ECS container instance. Type annotations and code completion for Updates an existing Express service configuration. Type annotations and code completion for Modifies the parameters of a service. Type annotations and code completion for Modifies which task set in a service is the primary task set. Type annotations and code completion for Updates the protection status of a task. Type annotations and code completion for Modifies a task set. Type annotations and code completion for Type annotations and code completion for Type annotations and code completion for boto3.client("ecs").discover_poll_endpoint method.
boto3 documentation# discover_poll_endpoint method definition
def discover_poll_endpoint(
self,
*,
containerInstance: str = ...,
cluster: str = ...,
) -> DiscoverPollEndpointResponseTypeDef: # (1)
...# discover_poll_endpoint method usage example with argument unpacking
kwargs: DiscoverPollEndpointRequestTypeDef = { # (1)
"containerInstance": ...,
}
parent.discover_poll_endpoint(**kwargs)execute_command#
boto3.client("ecs").execute_command method.
boto3 documentation# execute_command method definition
def execute_command(
self,
*,
command: str,
interactive: bool,
task: str,
cluster: str = ...,
container: str = ...,
) -> ExecuteCommandResponseTypeDef: # (1)
...# execute_command method usage example with argument unpacking
kwargs: ExecuteCommandRequestTypeDef = { # (1)
"command": ...,
"interactive": ...,
"task": ...,
}
parent.execute_command(**kwargs)get_task_protection#
boto3.client("ecs").get_task_protection method.
boto3 documentation# get_task_protection method definition
def get_task_protection(
self,
*,
cluster: str,
tasks: Sequence[str] = ...,
) -> GetTaskProtectionResponseTypeDef: # (1)
...# get_task_protection method usage example with argument unpacking
kwargs: GetTaskProtectionRequestTypeDef = { # (1)
"cluster": ...,
}
parent.get_task_protection(**kwargs)list_account_settings#
boto3.client("ecs").list_account_settings method.
boto3 documentation# list_account_settings method definition
def list_account_settings(
self,
*,
name: SettingNameType = ..., # (1)
value: str = ...,
principalArn: str = ...,
effectiveSettings: bool = ...,
nextToken: str = ...,
maxResults: int = ...,
) -> ListAccountSettingsResponseTypeDef: # (2)
...# list_account_settings method usage example with argument unpacking
kwargs: ListAccountSettingsRequestTypeDef = { # (1)
"name": ...,
}
parent.list_account_settings(**kwargs)list_attributes#
boto3.client("ecs").list_attributes method.
boto3 documentation# list_attributes method definition
def list_attributes(
self,
*,
targetType: TargetTypeType, # (1)
cluster: str = ...,
attributeName: str = ...,
attributeValue: str = ...,
nextToken: str = ...,
maxResults: int = ...,
) -> ListAttributesResponseTypeDef: # (2)
...# list_attributes method usage example with argument unpacking
kwargs: ListAttributesRequestTypeDef = { # (1)
"targetType": ...,
}
parent.list_attributes(**kwargs)list_clusters#
boto3.client("ecs").list_clusters method.
boto3 documentation# list_clusters method definition
def list_clusters(
self,
*,
nextToken: str = ...,
maxResults: int = ...,
) -> ListClustersResponseTypeDef: # (1)
...# list_clusters method usage example with argument unpacking
kwargs: ListClustersRequestTypeDef = { # (1)
"nextToken": ...,
}
parent.list_clusters(**kwargs)list_container_instances#
boto3.client("ecs").list_container_instances method.
boto3 documentation# list_container_instances method definition
def list_container_instances(
self,
*,
cluster: str = ...,
filter: str = ...,
nextToken: str = ...,
maxResults: int = ...,
status: ContainerInstanceStatusType = ..., # (1)
) -> ListContainerInstancesResponseTypeDef: # (2)
...# list_container_instances method usage example with argument unpacking
kwargs: ListContainerInstancesRequestTypeDef = { # (1)
"cluster": ...,
}
parent.list_container_instances(**kwargs)list_service_deployments#
boto3.client("ecs").list_service_deployments method.
boto3 documentation# list_service_deployments method definition
def list_service_deployments(
self,
*,
service: str,
cluster: str = ...,
status: Sequence[ServiceDeploymentStatusType] = ..., # (1)
createdAt: CreatedAtTypeDef = ..., # (2)
nextToken: str = ...,
maxResults: int = ...,
) -> ListServiceDeploymentsResponseTypeDef: # (3)
...
Sequence[ServiceDeploymentStatusType]# list_service_deployments method usage example with argument unpacking
kwargs: ListServiceDeploymentsRequestTypeDef = { # (1)
"service": ...,
}
parent.list_service_deployments(**kwargs)list_services#
boto3.client("ecs").list_services method.
boto3 documentation# list_services method definition
def list_services(
self,
*,
cluster: str = ...,
nextToken: str = ...,
maxResults: int = ...,
launchType: LaunchTypeType = ..., # (1)
schedulingStrategy: SchedulingStrategyType = ..., # (2)
resourceManagementType: ResourceManagementTypeType = ..., # (3)
) -> ListServicesResponseTypeDef: # (4)
...
# list_services method usage example with argument unpacking
kwargs: ListServicesRequestTypeDef = { # (1)
"cluster": ...,
}
parent.list_services(**kwargs)list_services_by_namespace#
boto3.client("ecs").list_services_by_namespace method.
boto3 documentation# list_services_by_namespace method definition
def list_services_by_namespace(
self,
*,
namespace: str,
nextToken: str = ...,
maxResults: int = ...,
) -> ListServicesByNamespaceResponseTypeDef: # (1)
...# list_services_by_namespace method usage example with argument unpacking
kwargs: ListServicesByNamespaceRequestTypeDef = { # (1)
"namespace": ...,
}
parent.list_services_by_namespace(**kwargs)list_tags_for_resource#
boto3.client("ecs").list_tags_for_resource method.
boto3 documentation# list_tags_for_resource method definition
def list_tags_for_resource(
self,
*,
resourceArn: str,
) -> ListTagsForResourceResponseTypeDef: # (1)
...# list_tags_for_resource method usage example with argument unpacking
kwargs: ListTagsForResourceRequestTypeDef = { # (1)
"resourceArn": ...,
}
parent.list_tags_for_resource(**kwargs)list_task_definition_families#
boto3.client("ecs").list_task_definition_families method.
boto3 documentation# list_task_definition_families method definition
def list_task_definition_families(
self,
*,
familyPrefix: str = ...,
status: TaskDefinitionFamilyStatusType = ..., # (1)
nextToken: str = ...,
maxResults: int = ...,
) -> ListTaskDefinitionFamiliesResponseTypeDef: # (2)
...# list_task_definition_families method usage example with argument unpacking
kwargs: ListTaskDefinitionFamiliesRequestTypeDef = { # (1)
"familyPrefix": ...,
}
parent.list_task_definition_families(**kwargs)list_task_definitions#
boto3.client("ecs").list_task_definitions method.
boto3 documentation# list_task_definitions method definition
def list_task_definitions(
self,
*,
familyPrefix: str = ...,
status: TaskDefinitionStatusType = ..., # (1)
sort: SortOrderType = ..., # (2)
nextToken: str = ...,
maxResults: int = ...,
) -> ListTaskDefinitionsResponseTypeDef: # (3)
...# list_task_definitions method usage example with argument unpacking
kwargs: ListTaskDefinitionsRequestTypeDef = { # (1)
"familyPrefix": ...,
}
parent.list_task_definitions(**kwargs)list_tasks#
boto3.client("ecs").list_tasks method.
boto3 documentation# list_tasks method definition
def list_tasks(
self,
*,
cluster: str = ...,
containerInstance: str = ...,
family: str = ...,
nextToken: str = ...,
maxResults: int = ...,
startedBy: str = ...,
serviceName: str = ...,
desiredStatus: DesiredStatusType = ..., # (1)
launchType: LaunchTypeType = ..., # (2)
) -> ListTasksResponseTypeDef: # (3)
...
# list_tasks method usage example with argument unpacking
kwargs: ListTasksRequestTypeDef = { # (1)
"cluster": ...,
}
parent.list_tasks(**kwargs)put_account_setting#
boto3.client("ecs").put_account_setting method.
boto3 documentation# put_account_setting method definition
def put_account_setting(
self,
*,
name: SettingNameType, # (1)
value: str,
principalArn: str = ...,
) -> PutAccountSettingResponseTypeDef: # (2)
...# put_account_setting method usage example with argument unpacking
kwargs: PutAccountSettingRequestTypeDef = { # (1)
"name": ...,
"value": ...,
}
parent.put_account_setting(**kwargs)put_account_setting_default#
boto3.client("ecs").put_account_setting_default method.
boto3 documentation# put_account_setting_default method definition
def put_account_setting_default(
self,
*,
name: SettingNameType, # (1)
value: str,
) -> PutAccountSettingDefaultResponseTypeDef: # (2)
...# put_account_setting_default method usage example with argument unpacking
kwargs: PutAccountSettingDefaultRequestTypeDef = { # (1)
"name": ...,
"value": ...,
}
parent.put_account_setting_default(**kwargs)put_attributes#
boto3.client("ecs").put_attributes method.
boto3 documentation# put_attributes method definition
def put_attributes(
self,
*,
attributes: Sequence[AttributeTypeDef], # (1)
cluster: str = ...,
) -> PutAttributesResponseTypeDef: # (2)
...
Sequence[AttributeTypeDef]# put_attributes method usage example with argument unpacking
kwargs: PutAttributesRequestTypeDef = { # (1)
"attributes": ...,
}
parent.put_attributes(**kwargs)put_cluster_capacity_providers#
boto3.client("ecs").put_cluster_capacity_providers method.
boto3 documentation# put_cluster_capacity_providers method definition
def put_cluster_capacity_providers(
self,
*,
cluster: str,
capacityProviders: Sequence[str],
defaultCapacityProviderStrategy: Sequence[CapacityProviderStrategyItemTypeDef], # (1)
) -> PutClusterCapacityProvidersResponseTypeDef: # (2)
...
Sequence[CapacityProviderStrategyItemTypeDef]# put_cluster_capacity_providers method usage example with argument unpacking
kwargs: PutClusterCapacityProvidersRequestTypeDef = { # (1)
"cluster": ...,
"capacityProviders": ...,
"defaultCapacityProviderStrategy": ...,
}
parent.put_cluster_capacity_providers(**kwargs)register_container_instance#
boto3.client("ecs").register_container_instance method.
boto3 documentation# register_container_instance method definition
def register_container_instance(
self,
*,
cluster: str = ...,
instanceIdentityDocument: str = ...,
instanceIdentityDocumentSignature: str = ...,
totalResources: Sequence[ResourceUnionTypeDef] = ..., # (1)
versionInfo: VersionInfoTypeDef = ..., # (2)
containerInstanceArn: str = ...,
attributes: Sequence[AttributeTypeDef] = ..., # (3)
platformDevices: Sequence[PlatformDeviceTypeDef] = ..., # (4)
tags: Sequence[TagTypeDef] = ..., # (5)
) -> RegisterContainerInstanceResponseTypeDef: # (6)
...
Sequence[ResourceUnionTypeDef]Sequence[AttributeTypeDef]Sequence[PlatformDeviceTypeDef]Sequence[TagTypeDef]# register_container_instance method usage example with argument unpacking
kwargs: RegisterContainerInstanceRequestTypeDef = { # (1)
"cluster": ...,
}
parent.register_container_instance(**kwargs)register_task_definition#
family and
containerDefinitions.boto3.client("ecs").register_task_definition method.
boto3 documentation# register_task_definition method definition
def register_task_definition(
self,
*,
family: str,
containerDefinitions: Sequence[ContainerDefinitionUnionTypeDef], # (1)
taskRoleArn: str = ...,
executionRoleArn: str = ...,
networkMode: NetworkModeType = ..., # (2)
volumes: Sequence[VolumeUnionTypeDef] = ..., # (3)
placementConstraints: Sequence[TaskDefinitionPlacementConstraintTypeDef] = ..., # (4)
requiresCompatibilities: Sequence[CompatibilityType] = ..., # (5)
cpu: str = ...,
memory: str = ...,
tags: Sequence[TagTypeDef] = ..., # (6)
pidMode: PidModeType = ..., # (7)
ipcMode: IpcModeType = ..., # (8)
proxyConfiguration: ProxyConfigurationUnionTypeDef = ..., # (9)
inferenceAccelerators: Sequence[InferenceAcceleratorTypeDef] = ..., # (10)
ephemeralStorage: EphemeralStorageTypeDef = ..., # (11)
runtimePlatform: RuntimePlatformTypeDef = ..., # (12)
enableFaultInjection: bool = ...,
) -> RegisterTaskDefinitionResponseTypeDef: # (13)
...
Sequence[ContainerDefinitionUnionTypeDef]Sequence[VolumeUnionTypeDef]Sequence[TaskDefinitionPlacementConstraintTypeDef]Sequence[CompatibilityType]Sequence[TagTypeDef]Sequence[InferenceAcceleratorTypeDef]# register_task_definition method usage example with argument unpacking
kwargs: RegisterTaskDefinitionRequestTypeDef = { # (1)
"family": ...,
"containerDefinitions": ...,
}
parent.register_task_definition(**kwargs)run_task#
boto3.client("ecs").run_task method.
boto3 documentation# run_task method definition
def run_task(
self,
*,
taskDefinition: str,
capacityProviderStrategy: Sequence[CapacityProviderStrategyItemTypeDef] = ..., # (1)
cluster: str = ...,
count: int = ...,
enableECSManagedTags: bool = ...,
enableExecuteCommand: bool = ...,
group: str = ...,
launchType: LaunchTypeType = ..., # (2)
networkConfiguration: NetworkConfigurationUnionTypeDef = ..., # (3)
overrides: TaskOverrideUnionTypeDef = ..., # (4)
placementConstraints: Sequence[PlacementConstraintTypeDef] = ..., # (5)
placementStrategy: Sequence[PlacementStrategyTypeDef] = ..., # (6)
platformVersion: str = ...,
propagateTags: PropagateTagsType = ..., # (7)
referenceId: str = ...,
startedBy: str = ...,
tags: Sequence[TagTypeDef] = ..., # (8)
clientToken: str = ...,
volumeConfigurations: Sequence[TaskVolumeConfigurationTypeDef] = ..., # (9)
) -> RunTaskResponseTypeDef: # (10)
...
Sequence[CapacityProviderStrategyItemTypeDef]Sequence[PlacementConstraintTypeDef]Sequence[PlacementStrategyTypeDef]Sequence[TagTypeDef]Sequence[TaskVolumeConfigurationTypeDef]# run_task method usage example with argument unpacking
kwargs: RunTaskRequestTypeDef = { # (1)
"taskDefinition": ...,
}
parent.run_task(**kwargs)start_task#
boto3.client("ecs").start_task method.
boto3 documentation# start_task method definition
def start_task(
self,
*,
containerInstances: Sequence[str],
taskDefinition: str,
cluster: str = ...,
enableECSManagedTags: bool = ...,
enableExecuteCommand: bool = ...,
group: str = ...,
networkConfiguration: NetworkConfigurationUnionTypeDef = ..., # (1)
overrides: TaskOverrideUnionTypeDef = ..., # (2)
propagateTags: PropagateTagsType = ..., # (3)
referenceId: str = ...,
startedBy: str = ...,
tags: Sequence[TagTypeDef] = ..., # (4)
volumeConfigurations: Sequence[TaskVolumeConfigurationTypeDef] = ..., # (5)
) -> StartTaskResponseTypeDef: # (6)
...
Sequence[TagTypeDef]Sequence[TaskVolumeConfigurationTypeDef]# start_task method usage example with argument unpacking
kwargs: StartTaskRequestTypeDef = { # (1)
"containerInstances": ...,
"taskDefinition": ...,
}
parent.start_task(**kwargs)stop_service_deployment#
boto3.client("ecs").stop_service_deployment method.
boto3 documentation# stop_service_deployment method definition
def stop_service_deployment(
self,
*,
serviceDeploymentArn: str,
stopType: StopServiceDeploymentStopTypeType = ..., # (1)
) -> StopServiceDeploymentResponseTypeDef: # (2)
...# stop_service_deployment method usage example with argument unpacking
kwargs: StopServiceDeploymentRequestTypeDef = { # (1)
"serviceDeploymentArn": ...,
}
parent.stop_service_deployment(**kwargs)stop_task#
boto3.client("ecs").stop_task method.
boto3 documentation# stop_task method definition
def stop_task(
self,
*,
task: str,
cluster: str = ...,
reason: str = ...,
) -> StopTaskResponseTypeDef: # (1)
...# stop_task method usage example with argument unpacking
kwargs: StopTaskRequestTypeDef = { # (1)
"task": ...,
}
parent.stop_task(**kwargs)submit_attachment_state_changes#
boto3.client("ecs").submit_attachment_state_changes method.
boto3 documentation# submit_attachment_state_changes method definition
def submit_attachment_state_changes(
self,
*,
attachments: Sequence[AttachmentStateChangeTypeDef], # (1)
cluster: str = ...,
) -> SubmitAttachmentStateChangesResponseTypeDef: # (2)
...
Sequence[AttachmentStateChangeTypeDef]# submit_attachment_state_changes method usage example with argument unpacking
kwargs: SubmitAttachmentStateChangesRequestTypeDef = { # (1)
"attachments": ...,
}
parent.submit_attachment_state_changes(**kwargs)submit_container_state_change#
boto3.client("ecs").submit_container_state_change method.
boto3 documentation# submit_container_state_change method definition
def submit_container_state_change(
self,
*,
cluster: str = ...,
task: str = ...,
containerName: str = ...,
runtimeId: str = ...,
status: str = ...,
exitCode: int = ...,
reason: str = ...,
networkBindings: Sequence[NetworkBindingTypeDef] = ..., # (1)
) -> SubmitContainerStateChangeResponseTypeDef: # (2)
...
Sequence[NetworkBindingTypeDef]# submit_container_state_change method usage example with argument unpacking
kwargs: SubmitContainerStateChangeRequestTypeDef = { # (1)
"cluster": ...,
}
parent.submit_container_state_change(**kwargs)submit_task_state_change#
boto3.client("ecs").submit_task_state_change method.
boto3 documentation# submit_task_state_change method definition
def submit_task_state_change(
self,
*,
cluster: str = ...,
task: str = ...,
status: str = ...,
reason: str = ...,
containers: Sequence[ContainerStateChangeTypeDef] = ..., # (1)
attachments: Sequence[AttachmentStateChangeTypeDef] = ..., # (2)
managedAgents: Sequence[ManagedAgentStateChangeTypeDef] = ..., # (3)
pullStartedAt: TimestampTypeDef = ...,
pullStoppedAt: TimestampTypeDef = ...,
executionStoppedAt: TimestampTypeDef = ...,
) -> SubmitTaskStateChangeResponseTypeDef: # (4)
...
Sequence[ContainerStateChangeTypeDef]Sequence[AttachmentStateChangeTypeDef]Sequence[ManagedAgentStateChangeTypeDef]# submit_task_state_change method usage example with argument unpacking
kwargs: SubmitTaskStateChangeRequestTypeDef = { # (1)
"cluster": ...,
}
parent.submit_task_state_change(**kwargs)tag_resource#
resourceArn.boto3.client("ecs").tag_resource method.
boto3 documentation# tag_resource method definition
def tag_resource(
self,
*,
resourceArn: str,
tags: Sequence[TagTypeDef], # (1)
) -> dict[str, Any]:
...
Sequence[TagTypeDef]# tag_resource method usage example with argument unpacking
kwargs: TagResourceRequestTypeDef = { # (1)
"resourceArn": ...,
"tags": ...,
}
parent.tag_resource(**kwargs)untag_resource#
boto3.client("ecs").untag_resource method.
boto3 documentation# untag_resource method definition
def untag_resource(
self,
*,
resourceArn: str,
tagKeys: Sequence[str],
) -> dict[str, Any]:
...# untag_resource method usage example with argument unpacking
kwargs: UntagResourceRequestTypeDef = { # (1)
"resourceArn": ...,
"tagKeys": ...,
}
parent.untag_resource(**kwargs)update_capacity_provider#
boto3.client("ecs").update_capacity_provider method.
boto3 documentation# update_capacity_provider method definition
def update_capacity_provider(
self,
*,
name: str,
cluster: str = ...,
autoScalingGroupProvider: AutoScalingGroupProviderUpdateTypeDef = ..., # (1)
managedInstancesProvider: UpdateManagedInstancesProviderConfigurationTypeDef = ..., # (2)
) -> UpdateCapacityProviderResponseTypeDef: # (3)
...
# update_capacity_provider method usage example with argument unpacking
kwargs: UpdateCapacityProviderRequestTypeDef = { # (1)
"name": ...,
}
parent.update_capacity_provider(**kwargs)update_cluster#
boto3.client("ecs").update_cluster method.
boto3 documentation# update_cluster method definition
def update_cluster(
self,
*,
cluster: str,
settings: Sequence[ClusterSettingTypeDef] = ..., # (1)
configuration: ClusterConfigurationTypeDef = ..., # (2)
serviceConnectDefaults: ClusterServiceConnectDefaultsRequestTypeDef = ..., # (3)
) -> UpdateClusterResponseTypeDef: # (4)
...
Sequence[ClusterSettingTypeDef]# update_cluster method usage example with argument unpacking
kwargs: UpdateClusterRequestTypeDef = { # (1)
"cluster": ...,
}
parent.update_cluster(**kwargs)update_cluster_settings#
boto3.client("ecs").update_cluster_settings method.
boto3 documentation# update_cluster_settings method definition
def update_cluster_settings(
self,
*,
cluster: str,
settings: Sequence[ClusterSettingTypeDef], # (1)
) -> UpdateClusterSettingsResponseTypeDef: # (2)
...
Sequence[ClusterSettingTypeDef]# update_cluster_settings method usage example with argument unpacking
kwargs: UpdateClusterSettingsRequestTypeDef = { # (1)
"cluster": ...,
"settings": ...,
}
parent.update_cluster_settings(**kwargs)update_container_agent#
boto3.client("ecs").update_container_agent method.
boto3 documentation# update_container_agent method definition
def update_container_agent(
self,
*,
containerInstance: str,
cluster: str = ...,
) -> UpdateContainerAgentResponseTypeDef: # (1)
...# update_container_agent method usage example with argument unpacking
kwargs: UpdateContainerAgentRequestTypeDef = { # (1)
"containerInstance": ...,
}
parent.update_container_agent(**kwargs)update_container_instances_state#
boto3.client("ecs").update_container_instances_state method.
boto3 documentation# update_container_instances_state method definition
def update_container_instances_state(
self,
*,
containerInstances: Sequence[str],
status: ContainerInstanceStatusType, # (1)
cluster: str = ...,
) -> UpdateContainerInstancesStateResponseTypeDef: # (2)
...# update_container_instances_state method usage example with argument unpacking
kwargs: UpdateContainerInstancesStateRequestTypeDef = { # (1)
"containerInstances": ...,
"status": ...,
}
parent.update_container_instances_state(**kwargs)update_express_gateway_service#
boto3.client("ecs").update_express_gateway_service method.
boto3 documentation# update_express_gateway_service method definition
def update_express_gateway_service(
self,
*,
serviceArn: str,
executionRoleArn: str = ...,
healthCheckPath: str = ...,
primaryContainer: ExpressGatewayContainerUnionTypeDef = ..., # (1)
taskRoleArn: str = ...,
networkConfiguration: ExpressGatewayServiceNetworkConfigurationUnionTypeDef = ..., # (2)
cpu: str = ...,
memory: str = ...,
scalingTarget: ExpressGatewayScalingTargetTypeDef = ..., # (3)
) -> UpdateExpressGatewayServiceResponseTypeDef: # (4)
...
# update_express_gateway_service method usage example with argument unpacking
kwargs: UpdateExpressGatewayServiceRequestTypeDef = { # (1)
"serviceArn": ...,
}
parent.update_express_gateway_service(**kwargs)update_service#
boto3.client("ecs").update_service method.
boto3 documentation# update_service method definition
def update_service(
self,
*,
service: str,
cluster: str = ...,
desiredCount: int = ...,
taskDefinition: str = ...,
capacityProviderStrategy: Sequence[CapacityProviderStrategyItemTypeDef] = ..., # (1)
deploymentConfiguration: DeploymentConfigurationUnionTypeDef = ..., # (2)
availabilityZoneRebalancing: AvailabilityZoneRebalancingType = ..., # (3)
networkConfiguration: NetworkConfigurationUnionTypeDef = ..., # (4)
placementConstraints: Sequence[PlacementConstraintTypeDef] = ..., # (5)
placementStrategy: Sequence[PlacementStrategyTypeDef] = ..., # (6)
platformVersion: str = ...,
forceNewDeployment: bool = ...,
healthCheckGracePeriodSeconds: int = ...,
deploymentController: DeploymentControllerTypeDef = ..., # (7)
enableExecuteCommand: bool = ...,
enableECSManagedTags: bool = ...,
loadBalancers: Sequence[LoadBalancerTypeDef] = ..., # (8)
propagateTags: PropagateTagsType = ..., # (9)
serviceRegistries: Sequence[ServiceRegistryTypeDef] = ..., # (10)
serviceConnectConfiguration: ServiceConnectConfigurationUnionTypeDef = ..., # (11)
volumeConfigurations: Sequence[ServiceVolumeConfigurationUnionTypeDef] = ..., # (12)
vpcLatticeConfigurations: Sequence[VpcLatticeConfigurationTypeDef] = ..., # (13)
) -> UpdateServiceResponseTypeDef: # (14)
...
Sequence[CapacityProviderStrategyItemTypeDef]Sequence[PlacementConstraintTypeDef]Sequence[PlacementStrategyTypeDef]Sequence[LoadBalancerTypeDef]Sequence[ServiceRegistryTypeDef]Sequence[ServiceVolumeConfigurationUnionTypeDef]Sequence[VpcLatticeConfigurationTypeDef]# update_service method usage example with argument unpacking
kwargs: UpdateServiceRequestTypeDef = { # (1)
"service": ...,
}
parent.update_service(**kwargs)update_service_primary_task_set#
boto3.client("ecs").update_service_primary_task_set method.
boto3 documentation# update_service_primary_task_set method definition
def update_service_primary_task_set(
self,
*,
cluster: str,
service: str,
primaryTaskSet: str,
) -> UpdateServicePrimaryTaskSetResponseTypeDef: # (1)
...# update_service_primary_task_set method usage example with argument unpacking
kwargs: UpdateServicePrimaryTaskSetRequestTypeDef = { # (1)
"cluster": ...,
"service": ...,
"primaryTaskSet": ...,
}
parent.update_service_primary_task_set(**kwargs)update_task_protection#
boto3.client("ecs").update_task_protection method.
boto3 documentation# update_task_protection method definition
def update_task_protection(
self,
*,
cluster: str,
tasks: Sequence[str],
protectionEnabled: bool,
expiresInMinutes: int = ...,
) -> UpdateTaskProtectionResponseTypeDef: # (1)
...# update_task_protection method usage example with argument unpacking
kwargs: UpdateTaskProtectionRequestTypeDef = { # (1)
"cluster": ...,
"tasks": ...,
"protectionEnabled": ...,
}
parent.update_task_protection(**kwargs)update_task_set#
boto3.client("ecs").update_task_set method.
boto3 documentation# update_task_set method definition
def update_task_set(
self,
*,
cluster: str,
service: str,
taskSet: str,
scale: ScaleTypeDef, # (1)
) -> UpdateTaskSetResponseTypeDef: # (2)
...# update_task_set method usage example with argument unpacking
kwargs: UpdateTaskSetRequestTypeDef = { # (1)
"cluster": ...,
"service": ...,
"taskSet": ...,
"scale": ...,
}
parent.update_task_set(**kwargs)get_paginator#
boto3.client("ecs").get_paginator method with overloads.
client.get_paginator("list_account_settings") -> ListAccountSettingsPaginatorclient.get_paginator("list_attributes") -> ListAttributesPaginatorclient.get_paginator("list_clusters") -> ListClustersPaginatorclient.get_paginator("list_container_instances") -> ListContainerInstancesPaginatorclient.get_paginator("list_services_by_namespace") -> ListServicesByNamespacePaginatorclient.get_paginator("list_services") -> ListServicesPaginatorclient.get_paginator("list_task_definition_families") -> ListTaskDefinitionFamiliesPaginatorclient.get_paginator("list_task_definitions") -> ListTaskDefinitionsPaginatorclient.get_paginator("list_tasks") -> ListTasksPaginatorget_waiter#
boto3.client("ecs").get_waiter method with overloads.
client.get_waiter("services_inactive") -> ServicesInactiveWaiterclient.get_waiter("services_stable") -> ServicesStableWaiterclient.get_waiter("tasks_running") -> TasksRunningWaiterclient.get_waiter("tasks_stopped") -> TasksStoppedWaiter