describe_clusters
async
¶
describe_clusters(
*,
config_overrides: Optional[AsyncECSClientConfig] = None,
clusters: Optional[StringList] = None,
include: Optional[ClusterFieldList] = None,
) -> DescribeClustersResponse
Describes one or more of your clusters.
For CLI examples, see describe-clusters.rst on GitHub.
Parameters:
-
clusters(Optional[StringList], default:None) –A list of up to 100 cluster names or full cluster Amazon Resource Name (ARN) entries. If you do not specify a cluster, the default cluster is assumed.
-
include(Optional[ClusterFieldList], default:None) –Determines whether to include additional information about the clusters in the response. If this field is omitted, this information isn't included.
If
ATTACHMENTSis specified, the attachments for the container instances or tasks within the cluster are included, for example the capacity providers.If
SETTINGSis specified, the settings for the cluster are included.If
CONFIGURATIONSis specified, the configuration for the cluster is included.If
STATISTICSis specified, the task and service count is included, separated by launch type.If
TAGSis specified, the metadata tags associated with the cluster are included.
Raises:
-
AccessDeniedException–You don't have authorization to perform the requested action.
-
ClientException–These errors are usually caused by a client action. This client action might be using an action or resource on behalf of a user that doesn't have permissions to use the action or resource. Or, it might be specifying an identifier that isn't valid.
-
InvalidParameterException–The specified parameter isn't valid. Review the available parameters for the API request.
For more information about service event errors, see Amazon ECS service event messages.
-
ServerException–These errors are usually caused by a server issue.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To describe a cluster This example provides a description of the specified cluster in your default region.