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 |
Describes the specified placement groups or all of your placement groups. For more information, see Placement groups in the Amazon EC2 User Guide.
Synopsis
- data DescribePlacementGroups = DescribePlacementGroups' {}
- newDescribePlacementGroups :: DescribePlacementGroups
- describePlacementGroups_dryRun :: Lens' DescribePlacementGroups (Maybe Bool)
- describePlacementGroups_filters :: Lens' DescribePlacementGroups (Maybe [Filter])
- describePlacementGroups_groupIds :: Lens' DescribePlacementGroups (Maybe [Text])
- describePlacementGroups_groupNames :: Lens' DescribePlacementGroups (Maybe [Text])
- data DescribePlacementGroupsResponse = DescribePlacementGroupsResponse' {}
- newDescribePlacementGroupsResponse :: Int -> DescribePlacementGroupsResponse
- describePlacementGroupsResponse_placementGroups :: Lens' DescribePlacementGroupsResponse (Maybe [PlacementGroup])
- describePlacementGroupsResponse_httpStatus :: Lens' DescribePlacementGroupsResponse Int
Creating a Request
data DescribePlacementGroups Source #
See: newDescribePlacementGroups
smart constructor.
DescribePlacementGroups' | |
|
Instances
newDescribePlacementGroups :: DescribePlacementGroups Source #
Create a value of DescribePlacementGroups
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:dryRun:DescribePlacementGroups'
, describePlacementGroups_dryRun
- Checks whether you have the required permissions for the action, without
actually making the request, and provides an error response. If you have
the required permissions, the error response is DryRunOperation
.
Otherwise, it is UnauthorizedOperation
.
$sel:filters:DescribePlacementGroups'
, describePlacementGroups_filters
- The filters.
group-name
- The name of the placement group.group-arn
- The Amazon Resource Name (ARN) of the placement group.spread-level
- The spread level for the placement group (host
|rack
).state
- The state of the placement group (pending
|available
|deleting
|deleted
).strategy
- The strategy of the placement group (cluster
|spread
|partition
).tag:<key>
- The key/value combination of a tag assigned to the resource. Use the tag key in the filter name and the tag value as the filter value. For example, to find all resources that have a tag with the keyOwner
and the valueTeamA
, specifytag:Owner
for the filter name andTeamA
for the filter value.tag-key
- The key of a tag assigned to the resource. Use this filter to find all resources that have a tag with a specific key, regardless of the tag value.
DescribePlacementGroups
, describePlacementGroups_groupIds
- The IDs of the placement groups.
DescribePlacementGroups
, describePlacementGroups_groupNames
- The names of the placement groups.
Default: Describes all your placement groups, or only those otherwise specified.
Request Lenses
describePlacementGroups_dryRun :: Lens' DescribePlacementGroups (Maybe Bool) Source #
Checks whether you have the required permissions for the action, without
actually making the request, and provides an error response. If you have
the required permissions, the error response is DryRunOperation
.
Otherwise, it is UnauthorizedOperation
.
describePlacementGroups_filters :: Lens' DescribePlacementGroups (Maybe [Filter]) Source #
The filters.
group-name
- The name of the placement group.group-arn
- The Amazon Resource Name (ARN) of the placement group.spread-level
- The spread level for the placement group (host
|rack
).state
- The state of the placement group (pending
|available
|deleting
|deleted
).strategy
- The strategy of the placement group (cluster
|spread
|partition
).tag:<key>
- The key/value combination of a tag assigned to the resource. Use the tag key in the filter name and the tag value as the filter value. For example, to find all resources that have a tag with the keyOwner
and the valueTeamA
, specifytag:Owner
for the filter name andTeamA
for the filter value.tag-key
- The key of a tag assigned to the resource. Use this filter to find all resources that have a tag with a specific key, regardless of the tag value.
describePlacementGroups_groupIds :: Lens' DescribePlacementGroups (Maybe [Text]) Source #
The IDs of the placement groups.
describePlacementGroups_groupNames :: Lens' DescribePlacementGroups (Maybe [Text]) Source #
The names of the placement groups.
Default: Describes all your placement groups, or only those otherwise specified.
Destructuring the Response
data DescribePlacementGroupsResponse Source #
See: newDescribePlacementGroupsResponse
smart constructor.
DescribePlacementGroupsResponse' | |
|
Instances
Generic DescribePlacementGroupsResponse Source # | |
Read DescribePlacementGroupsResponse Source # | |
Show DescribePlacementGroupsResponse Source # | |
Defined in Amazonka.EC2.DescribePlacementGroups | |
NFData DescribePlacementGroupsResponse Source # | |
Defined in Amazonka.EC2.DescribePlacementGroups rnf :: DescribePlacementGroupsResponse -> () # | |
Eq DescribePlacementGroupsResponse Source # | |
type Rep DescribePlacementGroupsResponse Source # | |
Defined in Amazonka.EC2.DescribePlacementGroups type Rep DescribePlacementGroupsResponse = D1 ('MetaData "DescribePlacementGroupsResponse" "Amazonka.EC2.DescribePlacementGroups" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "DescribePlacementGroupsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "placementGroups") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [PlacementGroup])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newDescribePlacementGroupsResponse Source #
Create a value of DescribePlacementGroupsResponse
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:placementGroups:DescribePlacementGroupsResponse'
, describePlacementGroupsResponse_placementGroups
- Information about the placement groups.
$sel:httpStatus:DescribePlacementGroupsResponse'
, describePlacementGroupsResponse_httpStatus
- The response's http status code.
Response Lenses
describePlacementGroupsResponse_placementGroups :: Lens' DescribePlacementGroupsResponse (Maybe [PlacementGroup]) Source #
Information about the placement groups.
describePlacementGroupsResponse_httpStatus :: Lens' DescribePlacementGroupsResponse Int Source #
The response's http status code.