| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.ECS.DescribeContainerInstances
Description
Describes one or more container instances. Returns metadata about each container instance requested.
Synopsis
- data DescribeContainerInstances = DescribeContainerInstances' {
- cluster :: Maybe Text
- include :: Maybe [ContainerInstanceField]
- containerInstances :: [Text]
- newDescribeContainerInstances :: DescribeContainerInstances
- describeContainerInstances_cluster :: Lens' DescribeContainerInstances (Maybe Text)
- describeContainerInstances_include :: Lens' DescribeContainerInstances (Maybe [ContainerInstanceField])
- describeContainerInstances_containerInstances :: Lens' DescribeContainerInstances [Text]
- data DescribeContainerInstancesResponse = DescribeContainerInstancesResponse' {}
- newDescribeContainerInstancesResponse :: Int -> DescribeContainerInstancesResponse
- describeContainerInstancesResponse_containerInstances :: Lens' DescribeContainerInstancesResponse (Maybe [ContainerInstance])
- describeContainerInstancesResponse_failures :: Lens' DescribeContainerInstancesResponse (Maybe [Failure])
- describeContainerInstancesResponse_httpStatus :: Lens' DescribeContainerInstancesResponse Int
Creating a Request
data DescribeContainerInstances Source #
See: newDescribeContainerInstances smart constructor.
Constructors
| DescribeContainerInstances' | |
Fields
| |
Instances
newDescribeContainerInstances :: DescribeContainerInstances Source #
Create a value of DescribeContainerInstances with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:cluster:DescribeContainerInstances', describeContainerInstances_cluster - The short name or full Amazon Resource Name (ARN) of the cluster that
hosts the container instances to describe. If you do not specify a
cluster, the default cluster is assumed. This parameter is required if
the container instance or container instances you are describing were
launched in any cluster other than the default cluster.
$sel:include:DescribeContainerInstances', describeContainerInstances_include - Specifies whether you want to see the resource tags for the container
instance. If TAGS is specified, the tags are included in the response.
If CONTAINER_INSTANCE_HEALTH is specified, the container instance
health is included in the response. If this field is omitted, tags and
container instance health status aren't included in the response.
DescribeContainerInstances, describeContainerInstances_containerInstances - A list of up to 100 container instance IDs or full Amazon Resource Name
(ARN) entries.
Request Lenses
describeContainerInstances_cluster :: Lens' DescribeContainerInstances (Maybe Text) Source #
The short name or full Amazon Resource Name (ARN) of the cluster that hosts the container instances to describe. If you do not specify a cluster, the default cluster is assumed. This parameter is required if the container instance or container instances you are describing were launched in any cluster other than the default cluster.
describeContainerInstances_include :: Lens' DescribeContainerInstances (Maybe [ContainerInstanceField]) Source #
Specifies whether you want to see the resource tags for the container
instance. If TAGS is specified, the tags are included in the response.
If CONTAINER_INSTANCE_HEALTH is specified, the container instance
health is included in the response. If this field is omitted, tags and
container instance health status aren't included in the response.
describeContainerInstances_containerInstances :: Lens' DescribeContainerInstances [Text] Source #
A list of up to 100 container instance IDs or full Amazon Resource Name (ARN) entries.
Destructuring the Response
data DescribeContainerInstancesResponse Source #
See: newDescribeContainerInstancesResponse smart constructor.
Constructors
| DescribeContainerInstancesResponse' | |
Fields
| |
Instances
newDescribeContainerInstancesResponse Source #
Arguments
| :: Int | |
| -> DescribeContainerInstancesResponse |
Create a value of DescribeContainerInstancesResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
DescribeContainerInstances, describeContainerInstancesResponse_containerInstances - The list of container instances.
$sel:failures:DescribeContainerInstancesResponse', describeContainerInstancesResponse_failures - Any failures associated with the call.
$sel:httpStatus:DescribeContainerInstancesResponse', describeContainerInstancesResponse_httpStatus - The response's http status code.
Response Lenses
describeContainerInstancesResponse_containerInstances :: Lens' DescribeContainerInstancesResponse (Maybe [ContainerInstance]) Source #
The list of container instances.
describeContainerInstancesResponse_failures :: Lens' DescribeContainerInstancesResponse (Maybe [Failure]) Source #
Any failures associated with the call.
describeContainerInstancesResponse_httpStatus :: Lens' DescribeContainerInstancesResponse Int Source #
The response's http status code.