ECS module#
Index > ECS
Auto-generated documentation for ECS type annotations stubs module mypy-boto3-ecs.
How to install#
VSCode extension#
Add AWS Boto3
extension to your VSCode and run AWS boto3: Quick Start
command.
Click Modify
and select boto3 common
and ECS
.
From PyPI with pip#
Install boto3-stubs
for ECS
service.
# install with boto3 type annotations
python -m pip install 'boto3-stubs[ecs]'
# Lite version does not provide session.client/resource overloads
# it is more RAM-friendly, but requires explicit type annotations
python -m pip install 'boto3-stubs-lite[ecs]'
# standalone installation
python -m pip install mypy-boto3-ecs
How to uninstall#
python -m pip uninstall -y mypy-boto3-ecs
Usage#
Code samples can be found in Examples.
ECSClient#
Type annotations and code completion for boto3.client("ecs")
as ECSClient
boto3 documentation
# ECSClient usage example
from boto3.session import Session
from mypy_boto3_ecs.client import ECSClient
def get_client() -> ECSClient:
return Session().client("ecs")
Paginators#
Type annotations and code completion for paginators
from boto3.client("ecs").get_paginator("...")
.
# ListAccountSettingsPaginator usage example
from boto3.session import Session
from mypy_boto3_ecs.paginator import ListAccountSettingsPaginator
def get_list_account_settings_paginator() -> ListAccountSettingsPaginator:
return Session().client("ecs").get_paginator("list_account_settings"))
- ListAccountSettingsPaginator
- ListAttributesPaginator
- ListClustersPaginator
- ListContainerInstancesPaginator
- ListServicesByNamespacePaginator
- ListServicesPaginator
- ListTaskDefinitionFamiliesPaginator
- ListTaskDefinitionsPaginator
- ListTasksPaginator
Waiters#
Type annotations and code completion for waiters
from boto3.client("ecs").get_waiter("...")
.
# ServicesInactiveWaiter usage example
from boto3.session import Session
from mypy_boto3_ecs.waiter import ServicesInactiveWaiter
def get_services_inactive_waiter() -> ServicesInactiveWaiter:
return Session().client("ecs").get_waiter("services_inactive")
Literals#
Type annotations for literals used in methods and schema.
# AgentUpdateStatusType usage example
from mypy_boto3_ecs.literals import AgentUpdateStatusType
def get_value() -> AgentUpdateStatusType:
return "FAILED"
- AgentUpdateStatusType
- ApplicationProtocolType
- AssignPublicIpType
- AvailabilityZoneRebalancingType
- CPUArchitectureType
- CapacityProviderFieldType
- CapacityProviderStatusType
- CapacityProviderUpdateStatusType
- ClusterFieldType
- ClusterSettingNameType
- CompatibilityType
- ConnectivityType
- ContainerConditionType
- ContainerInstanceFieldType
- ContainerInstanceStatusType
- DeploymentControllerTypeType
- DeploymentRolloutStateType
- DesiredStatusType
- DeviceCgroupPermissionType
- EBSResourceTypeType
- EFSAuthorizationConfigIAMType
- EFSTransitEncryptionType
- EnvironmentFileTypeType
- ExecuteCommandLoggingType
- FirelensConfigurationTypeType
- HealthStatusType
- InstanceHealthCheckStateType
- InstanceHealthCheckTypeType
- IpcModeType
- LaunchTypeType
- ListAccountSettingsPaginatorName
- ListAttributesPaginatorName
- ListClustersPaginatorName
- ListContainerInstancesPaginatorName
- ListServicesByNamespacePaginatorName
- ListServicesPaginatorName
- ListTaskDefinitionFamiliesPaginatorName
- ListTaskDefinitionsPaginatorName
- ListTasksPaginatorName
- LogDriverType
- ManagedAgentNameType
- ManagedDrainingType
- ManagedScalingStatusType
- ManagedTerminationProtectionType
- NetworkModeType
- OSFamilyType
- PidModeType
- PlacementConstraintTypeType
- PlacementStrategyTypeType
- PlatformDeviceTypeType
- PropagateTagsType
- ProxyConfigurationTypeType
- ResourceTypeType
- ScaleUnitType
- SchedulingStrategyType
- ScopeType
- ServiceDeploymentRollbackMonitorsStatusType
- ServiceDeploymentStatusType
- ServiceFieldType
- ServicesInactiveWaiterName
- ServicesStableWaiterName
- SettingNameType
- SettingTypeType
- SortOrderType
- StabilityStatusType
- TargetTypeType
- TaskDefinitionFamilyStatusType
- TaskDefinitionFieldType
- TaskDefinitionPlacementConstraintTypeType
- TaskDefinitionStatusType
- TaskFieldType
- TaskFilesystemTypeType
- TaskSetFieldType
- TaskStopCodeType
- TasksRunningWaiterName
- TasksStoppedWaiterName
- TransportProtocolType
- UlimitNameType
- VersionConsistencyType
- ECSServiceName
- ServiceName
- ResourceServiceName
- PaginatorName
- WaiterName
- RegionName
Type definitions#
Type annotations for type definitions used in methods and schema.
- AttachmentStateChangeTypeDef
- KeyValuePairTypeDef
- AttributeTypeDef
- ManagedScalingTypeDef
- AwsVpcConfigurationOutputTypeDef
- AwsVpcConfigurationTypeDef
- CapacityProviderStrategyItemTypeDef
- TagTypeDef
- ManagedStorageConfigurationTypeDef
- ClusterServiceConnectDefaultsRequestTypeDef
- ClusterServiceConnectDefaultsTypeDef
- ClusterSettingTypeDef
- ContainerDependencyTypeDef
- ContainerRestartPolicyOutputTypeDef
- EnvironmentFileTypeDef
- FirelensConfigurationOutputTypeDef
- HealthCheckOutputTypeDef
- HostEntryTypeDef
- MountPointTypeDef
- PortMappingTypeDef
- RepositoryCredentialsTypeDef
- ResourceRequirementTypeDef
- SecretTypeDef
- SystemControlTypeDef
- UlimitTypeDef
- VolumeFromTypeDef
- ContainerImageTypeDef
- InstanceHealthCheckResultTypeDef
- ResourceOutputTypeDef
- VersionInfoTypeDef
- ContainerRestartPolicyTypeDef
- NetworkBindingTypeDef
- ManagedAgentTypeDef
- NetworkInterfaceTypeDef
- ResponseMetadataTypeDef
- DeploymentControllerTypeDef
- LoadBalancerTypeDef
- PlacementConstraintTypeDef
- PlacementStrategyTypeDef
- ServiceRegistryTypeDef
- VpcLatticeConfigurationTypeDef
- ScaleTypeDef
- TimestampTypeDef
- DeleteAccountSettingRequestRequestTypeDef
- SettingTypeDef
- DeleteCapacityProviderRequestRequestTypeDef
- DeleteClusterRequestRequestTypeDef
- DeleteServiceRequestRequestTypeDef
- DeleteTaskDefinitionsRequestRequestTypeDef
- FailureTypeDef
- DeleteTaskSetRequestRequestTypeDef
- DeploymentAlarmsOutputTypeDef
- DeploymentAlarmsTypeDef
- DeploymentCircuitBreakerTypeDef
- DeploymentEphemeralStorageTypeDef
- ServiceConnectServiceResourceTypeDef
- DeregisterContainerInstanceRequestRequestTypeDef
- DeregisterTaskDefinitionRequestRequestTypeDef
- DescribeCapacityProvidersRequestRequestTypeDef
- DescribeClustersRequestRequestTypeDef
- DescribeContainerInstancesRequestRequestTypeDef
- DescribeServiceDeploymentsRequestRequestTypeDef
- DescribeServiceRevisionsRequestRequestTypeDef
- DescribeServicesRequestRequestTypeDef
- WaiterConfigTypeDef
- DescribeTaskDefinitionRequestRequestTypeDef
- DescribeTaskSetsRequestRequestTypeDef
- DescribeTasksRequestRequestTypeDef
- DeviceOutputTypeDef
- DeviceTypeDef
- DiscoverPollEndpointRequestRequestTypeDef
- DockerVolumeConfigurationOutputTypeDef
- DockerVolumeConfigurationTypeDef
- EFSAuthorizationConfigTypeDef
- EphemeralStorageTypeDef
- ExecuteCommandLogConfigurationTypeDef
- ExecuteCommandRequestRequestTypeDef
- SessionTypeDef
- FSxWindowsFileServerAuthorizationConfigTypeDef
- FirelensConfigurationTypeDef
- GetTaskProtectionRequestRequestTypeDef
- ProtectedTaskTypeDef
- HealthCheckTypeDef
- HostVolumePropertiesTypeDef
- InferenceAcceleratorOverrideTypeDef
- InferenceAcceleratorTypeDef
- KernelCapabilitiesOutputTypeDef
- KernelCapabilitiesTypeDef
- TmpfsOutputTypeDef
- PaginatorConfigTypeDef
- ListAccountSettingsRequestRequestTypeDef
- ListAttributesRequestRequestTypeDef
- ListClustersRequestRequestTypeDef
- ListContainerInstancesRequestRequestTypeDef
- ServiceDeploymentBriefTypeDef
- ListServicesByNamespaceRequestRequestTypeDef
- ListServicesRequestRequestTypeDef
- ListTagsForResourceRequestRequestTypeDef
- ListTaskDefinitionFamiliesRequestRequestTypeDef
- ListTaskDefinitionsRequestRequestTypeDef
- ListTasksRequestRequestTypeDef
- ManagedAgentStateChangeTypeDef
- PlatformDeviceTypeDef
- PutAccountSettingDefaultRequestRequestTypeDef
- PutAccountSettingRequestRequestTypeDef
- RuntimePlatformTypeDef
- TaskDefinitionPlacementConstraintTypeDef
- ResourceTypeDef
- RollbackTypeDef
- ServiceConnectClientAliasTypeDef
- TimeoutConfigurationTypeDef
- ServiceConnectTlsCertificateAuthorityTypeDef
- ServiceDeploymentAlarmsTypeDef
- ServiceDeploymentCircuitBreakerTypeDef
- ServiceRevisionSummaryTypeDef
- ServiceEventTypeDef
- StopTaskRequestRequestTypeDef
- TaskEphemeralStorageTypeDef
- TaskManagedEBSVolumeTerminationPolicyTypeDef
- TmpfsTypeDef
- UntagResourceRequestRequestTypeDef
- UpdateContainerAgentRequestRequestTypeDef
- UpdateContainerInstancesStateRequestRequestTypeDef
- UpdateServicePrimaryTaskSetRequestRequestTypeDef
- UpdateTaskProtectionRequestRequestTypeDef
- SubmitAttachmentStateChangesRequestRequestTypeDef
- AttachmentTypeDef
- ProxyConfigurationOutputTypeDef
- ProxyConfigurationTypeDef
- DeleteAttributesRequestRequestTypeDef
- PutAttributesRequestRequestTypeDef
- AutoScalingGroupProviderTypeDef
- AutoScalingGroupProviderUpdateTypeDef
- NetworkConfigurationOutputTypeDef
- AwsVpcConfigurationUnionTypeDef
- PutClusterCapacityProvidersRequestRequestTypeDef
- EBSTagSpecificationOutputTypeDef
- EBSTagSpecificationTypeDef
- TagResourceRequestRequestTypeDef
- UpdateClusterSettingsRequestRequestTypeDef
- ContainerOverrideOutputTypeDef
- ContainerOverrideTypeDef
- LogConfigurationOutputTypeDef
- LogConfigurationTypeDef
- ContainerInstanceHealthStatusTypeDef
- ContainerRestartPolicyUnionTypeDef
- ContainerStateChangeTypeDef
- SubmitContainerStateChangeRequestRequestTypeDef
- ContainerTypeDef
- DeleteAttributesResponseTypeDef
- DiscoverPollEndpointResponseTypeDef
- ListAttributesResponseTypeDef
- ListClustersResponseTypeDef
- ListContainerInstancesResponseTypeDef
- ListServicesByNamespaceResponseTypeDef
- ListServicesResponseTypeDef
- ListTagsForResourceResponseTypeDef
- ListTaskDefinitionFamiliesResponseTypeDef
- ListTaskDefinitionsResponseTypeDef
- ListTasksResponseTypeDef
- PutAttributesResponseTypeDef
- SubmitAttachmentStateChangesResponseTypeDef
- SubmitContainerStateChangeResponseTypeDef
- SubmitTaskStateChangeResponseTypeDef
- UpdateTaskSetRequestRequestTypeDef
- CreatedAtTypeDef
- DeleteAccountSettingResponseTypeDef
- ListAccountSettingsResponseTypeDef
- PutAccountSettingDefaultResponseTypeDef
- PutAccountSettingResponseTypeDef
- DeploymentAlarmsUnionTypeDef
- DeploymentConfigurationOutputTypeDef
- DescribeServicesRequestServicesInactiveWaitTypeDef
- DescribeServicesRequestServicesStableWaitTypeDef
- DescribeTasksRequestTasksRunningWaitTypeDef
- DescribeTasksRequestTasksStoppedWaitTypeDef
- DeviceUnionTypeDef
- DockerVolumeConfigurationUnionTypeDef
- EFSVolumeConfigurationTypeDef
- ExecuteCommandConfigurationTypeDef
- ExecuteCommandResponseTypeDef
- FSxWindowsFileServerVolumeConfigurationTypeDef
- FirelensConfigurationUnionTypeDef
- GetTaskProtectionResponseTypeDef
- UpdateTaskProtectionResponseTypeDef
- HealthCheckUnionTypeDef
- KernelCapabilitiesUnionTypeDef
- LinuxParametersOutputTypeDef
- ListAccountSettingsRequestListAccountSettingsPaginateTypeDef
- ListAttributesRequestListAttributesPaginateTypeDef
- ListClustersRequestListClustersPaginateTypeDef
- ListContainerInstancesRequestListContainerInstancesPaginateTypeDef
- ListServicesByNamespaceRequestListServicesByNamespacePaginateTypeDef
- ListServicesRequestListServicesPaginateTypeDef
- ListTaskDefinitionFamiliesRequestListTaskDefinitionFamiliesPaginateTypeDef
- ListTaskDefinitionsRequestListTaskDefinitionsPaginateTypeDef
- ListTasksRequestListTasksPaginateTypeDef
- ListServiceDeploymentsResponseTypeDef
- ResourceUnionTypeDef
- ServiceConnectTlsConfigurationTypeDef
- TmpfsUnionTypeDef
- CapacityProviderTypeDef
- CreateCapacityProviderRequestRequestTypeDef
- UpdateCapacityProviderRequestRequestTypeDef
- TaskSetTypeDef
- NetworkConfigurationTypeDef
- ServiceManagedEBSVolumeConfigurationOutputTypeDef
- EBSTagSpecificationUnionTypeDef
- TaskOverrideOutputTypeDef
- ContainerOverrideUnionTypeDef
- LogConfigurationUnionTypeDef
- ContainerInstanceTypeDef
- SubmitTaskStateChangeRequestRequestTypeDef
- ListServiceDeploymentsRequestRequestTypeDef
- DeploymentConfigurationTypeDef
- ServiceDeploymentTypeDef
- ClusterConfigurationTypeDef
- VolumeOutputTypeDef
- VolumeTypeDef
- ContainerDefinitionOutputTypeDef
- RegisterContainerInstanceRequestRequestTypeDef
- ServiceConnectServiceOutputTypeDef
- ServiceConnectServiceTypeDef
- LinuxParametersTypeDef
- CreateCapacityProviderResponseTypeDef
- DeleteCapacityProviderResponseTypeDef
- DescribeCapacityProvidersResponseTypeDef
- UpdateCapacityProviderResponseTypeDef
- CreateTaskSetResponseTypeDef
- DeleteTaskSetResponseTypeDef
- DescribeTaskSetsResponseTypeDef
- UpdateServicePrimaryTaskSetResponseTypeDef
- UpdateTaskSetResponseTypeDef
- CreateTaskSetRequestRequestTypeDef
- ServiceVolumeConfigurationOutputTypeDef
- ServiceManagedEBSVolumeConfigurationTypeDef
- TaskManagedEBSVolumeConfigurationTypeDef
- TaskTypeDef
- TaskOverrideTypeDef
- DeregisterContainerInstanceResponseTypeDef
- DescribeContainerInstancesResponseTypeDef
- RegisterContainerInstanceResponseTypeDef
- UpdateContainerAgentResponseTypeDef
- UpdateContainerInstancesStateResponseTypeDef
- DescribeServiceDeploymentsResponseTypeDef
- ClusterTypeDef
- CreateClusterRequestRequestTypeDef
- UpdateClusterRequestRequestTypeDef
- VolumeUnionTypeDef
- TaskDefinitionTypeDef
- ServiceConnectConfigurationOutputTypeDef
- ServiceConnectServiceUnionTypeDef
- LinuxParametersUnionTypeDef
- ServiceManagedEBSVolumeConfigurationUnionTypeDef
- TaskVolumeConfigurationTypeDef
- DescribeTasksResponseTypeDef
- RunTaskResponseTypeDef
- StartTaskResponseTypeDef
- StopTaskResponseTypeDef
- CreateClusterResponseTypeDef
- DeleteClusterResponseTypeDef
- DescribeClustersResponseTypeDef
- PutClusterCapacityProvidersResponseTypeDef
- UpdateClusterResponseTypeDef
- UpdateClusterSettingsResponseTypeDef
- DeleteTaskDefinitionsResponseTypeDef
- DeregisterTaskDefinitionResponseTypeDef
- DescribeTaskDefinitionResponseTypeDef
- RegisterTaskDefinitionResponseTypeDef
- DeploymentTypeDef
- ServiceRevisionTypeDef
- ServiceConnectConfigurationTypeDef
- ContainerDefinitionTypeDef
- ServiceVolumeConfigurationTypeDef
- RunTaskRequestRequestTypeDef
- StartTaskRequestRequestTypeDef
- ServiceTypeDef
- DescribeServiceRevisionsResponseTypeDef
- ContainerDefinitionUnionTypeDef
- ServiceVolumeConfigurationUnionTypeDef
- UpdateServiceRequestRequestTypeDef
- CreateServiceResponseTypeDef
- DeleteServiceResponseTypeDef
- DescribeServicesResponseTypeDef
- UpdateServiceResponseTypeDef
- RegisterTaskDefinitionRequestRequestTypeDef
- CreateServiceRequestRequestTypeDef