amazonka-ec2-2.0: Amazon Elastic Compute Cloud SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.EC2.DescribePlacementGroups

Description

Describes the specified placement groups or all of your placement groups. For more information, see Placement groups in the Amazon EC2 User Guide.

Synopsis

Creating a Request

data DescribePlacementGroups Source #

See: newDescribePlacementGroups smart constructor.

Constructors

DescribePlacementGroups' 

Fields

  • dryRun :: Maybe Bool

    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.

  • filters :: Maybe [Filter]

    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 key Owner and the value TeamA, specify tag:Owner for the filter name and TeamA 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.
  • groupIds :: Maybe [Text]

    The IDs of the placement groups.

  • groupNames :: Maybe [Text]

    The names of the placement groups.

    Default: Describes all your placement groups, or only those otherwise specified.

Instances

Instances details
ToHeaders DescribePlacementGroups Source # 
Instance details

Defined in Amazonka.EC2.DescribePlacementGroups

ToPath DescribePlacementGroups Source # 
Instance details

Defined in Amazonka.EC2.DescribePlacementGroups

ToQuery DescribePlacementGroups Source # 
Instance details

Defined in Amazonka.EC2.DescribePlacementGroups

AWSRequest DescribePlacementGroups Source # 
Instance details

Defined in Amazonka.EC2.DescribePlacementGroups

Generic DescribePlacementGroups Source # 
Instance details

Defined in Amazonka.EC2.DescribePlacementGroups

Associated Types

type Rep DescribePlacementGroups :: Type -> Type #

Read DescribePlacementGroups Source # 
Instance details

Defined in Amazonka.EC2.DescribePlacementGroups

Show DescribePlacementGroups Source # 
Instance details

Defined in Amazonka.EC2.DescribePlacementGroups

NFData DescribePlacementGroups Source # 
Instance details

Defined in Amazonka.EC2.DescribePlacementGroups

Methods

rnf :: DescribePlacementGroups -> () #

Eq DescribePlacementGroups Source # 
Instance details

Defined in Amazonka.EC2.DescribePlacementGroups

Hashable DescribePlacementGroups Source # 
Instance details

Defined in Amazonka.EC2.DescribePlacementGroups

type AWSResponse DescribePlacementGroups Source # 
Instance details

Defined in Amazonka.EC2.DescribePlacementGroups

type Rep DescribePlacementGroups Source # 
Instance details

Defined in Amazonka.EC2.DescribePlacementGroups

type Rep DescribePlacementGroups = D1 ('MetaData "DescribePlacementGroups" "Amazonka.EC2.DescribePlacementGroups" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "DescribePlacementGroups'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "dryRun") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "filters") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Filter]))) :*: (S1 ('MetaSel ('Just "groupIds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: S1 ('MetaSel ('Just "groupNames") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])))))

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 key Owner and the value TeamA, specify tag:Owner for the filter name and TeamA 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 key Owner and the value TeamA, specify tag:Owner for the filter name and TeamA 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_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.

Constructors

DescribePlacementGroupsResponse' 

Fields

Instances

Instances details
Generic DescribePlacementGroupsResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribePlacementGroups

Associated Types

type Rep DescribePlacementGroupsResponse :: Type -> Type #

Read DescribePlacementGroupsResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribePlacementGroups

Show DescribePlacementGroupsResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribePlacementGroups

NFData DescribePlacementGroupsResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribePlacementGroups

Eq DescribePlacementGroupsResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribePlacementGroups

type Rep DescribePlacementGroupsResponse Source # 
Instance details

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