libZSservicesZSamazonka-healthZSamazonka-health
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.AWSHealth.DescribeAffectedEntities

Description

Returns a list of entities that have been affected by the specified events, based on the specified filter criteria. Entities can refer to individual customer resources, groups of customer resources, or any other construct, depending on the AWS service. Events that have impact beyond that of the affected entities, or where the extent of impact is unknown, include at least one entity indicating this.

At least one event ARN is required. Results are sorted by the lastUpdatedTime of the entity, starting with the most recent.

  • This API operation uses pagination. Specify the nextToken parameter in the next request to return more results.
  • This operation supports resource-level permissions. You can use this operation to allow or deny access to specific AWS Health events. For more information, see Resource- and action-based conditions in the AWS Health User Guide.

This operation returns paginated results.

Synopsis

Creating a Request

data DescribeAffectedEntities Source #

See: newDescribeAffectedEntities smart constructor.

Constructors

DescribeAffectedEntities' 

Fields

  • locale :: Maybe Text

    The locale (language) to return information in. English (en) is the default and the only supported value at this time.

  • nextToken :: Maybe Text

    If the results of a search are large, only a portion of the results are returned, and a nextToken pagination token is returned in the response. To retrieve the next batch of results, reissue the search request and include the returned token. When all results have been returned, the response does not contain a pagination token value.

  • maxResults :: Maybe Natural

    The maximum number of items to return in one batch, between 10 and 100, inclusive.

  • filter' :: EntityFilter

    Values to narrow the results returned. At least one event ARN is required.

Instances

Instances details
Eq DescribeAffectedEntities Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeAffectedEntities

Read DescribeAffectedEntities Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeAffectedEntities

Show DescribeAffectedEntities Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeAffectedEntities

Generic DescribeAffectedEntities Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeAffectedEntities

Associated Types

type Rep DescribeAffectedEntities :: Type -> Type #

NFData DescribeAffectedEntities Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeAffectedEntities

Hashable DescribeAffectedEntities Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeAffectedEntities

ToJSON DescribeAffectedEntities Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeAffectedEntities

AWSPager DescribeAffectedEntities Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeAffectedEntities

AWSRequest DescribeAffectedEntities Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeAffectedEntities

ToHeaders DescribeAffectedEntities Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeAffectedEntities

ToPath DescribeAffectedEntities Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeAffectedEntities

ToQuery DescribeAffectedEntities Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeAffectedEntities

type Rep DescribeAffectedEntities Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeAffectedEntities

type Rep DescribeAffectedEntities = D1 ('MetaData "DescribeAffectedEntities" "Amazonka.AWSHealth.DescribeAffectedEntities" "libZSservicesZSamazonka-healthZSamazonka-health" 'False) (C1 ('MetaCons "DescribeAffectedEntities'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "locale") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "filter'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 EntityFilter))))
type AWSResponse DescribeAffectedEntities Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeAffectedEntities

newDescribeAffectedEntities Source #

Create a value of DescribeAffectedEntities 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:locale:DescribeAffectedEntities', describeAffectedEntities_locale - The locale (language) to return information in. English (en) is the default and the only supported value at this time.

$sel:nextToken:DescribeAffectedEntities', describeAffectedEntities_nextToken - If the results of a search are large, only a portion of the results are returned, and a nextToken pagination token is returned in the response. To retrieve the next batch of results, reissue the search request and include the returned token. When all results have been returned, the response does not contain a pagination token value.

$sel:maxResults:DescribeAffectedEntities', describeAffectedEntities_maxResults - The maximum number of items to return in one batch, between 10 and 100, inclusive.

$sel:filter':DescribeAffectedEntities', describeAffectedEntities_filter - Values to narrow the results returned. At least one event ARN is required.

Request Lenses

describeAffectedEntities_locale :: Lens' DescribeAffectedEntities (Maybe Text) Source #

The locale (language) to return information in. English (en) is the default and the only supported value at this time.

describeAffectedEntities_nextToken :: Lens' DescribeAffectedEntities (Maybe Text) Source #

If the results of a search are large, only a portion of the results are returned, and a nextToken pagination token is returned in the response. To retrieve the next batch of results, reissue the search request and include the returned token. When all results have been returned, the response does not contain a pagination token value.

describeAffectedEntities_maxResults :: Lens' DescribeAffectedEntities (Maybe Natural) Source #

The maximum number of items to return in one batch, between 10 and 100, inclusive.

describeAffectedEntities_filter :: Lens' DescribeAffectedEntities EntityFilter Source #

Values to narrow the results returned. At least one event ARN is required.

Destructuring the Response

data DescribeAffectedEntitiesResponse Source #

See: newDescribeAffectedEntitiesResponse smart constructor.

Constructors

DescribeAffectedEntitiesResponse' 

Fields

  • entities :: Maybe [AffectedEntity]

    The entities that match the filter criteria.

  • nextToken :: Maybe Text

    If the results of a search are large, only a portion of the results are returned, and a nextToken pagination token is returned in the response. To retrieve the next batch of results, reissue the search request and include the returned token. When all results have been returned, the response does not contain a pagination token value.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq DescribeAffectedEntitiesResponse Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeAffectedEntities

Read DescribeAffectedEntitiesResponse Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeAffectedEntities

Show DescribeAffectedEntitiesResponse Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeAffectedEntities

Generic DescribeAffectedEntitiesResponse Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeAffectedEntities

Associated Types

type Rep DescribeAffectedEntitiesResponse :: Type -> Type #

NFData DescribeAffectedEntitiesResponse Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeAffectedEntities

type Rep DescribeAffectedEntitiesResponse Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeAffectedEntities

type Rep DescribeAffectedEntitiesResponse = D1 ('MetaData "DescribeAffectedEntitiesResponse" "Amazonka.AWSHealth.DescribeAffectedEntities" "libZSservicesZSamazonka-healthZSamazonka-health" 'False) (C1 ('MetaCons "DescribeAffectedEntitiesResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "entities") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [AffectedEntity])) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newDescribeAffectedEntitiesResponse Source #

Create a value of DescribeAffectedEntitiesResponse 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:entities:DescribeAffectedEntitiesResponse', describeAffectedEntitiesResponse_entities - The entities that match the filter criteria.

$sel:nextToken:DescribeAffectedEntities', describeAffectedEntitiesResponse_nextToken - If the results of a search are large, only a portion of the results are returned, and a nextToken pagination token is returned in the response. To retrieve the next batch of results, reissue the search request and include the returned token. When all results have been returned, the response does not contain a pagination token value.

$sel:httpStatus:DescribeAffectedEntitiesResponse', describeAffectedEntitiesResponse_httpStatus - The response's http status code.

Response Lenses

describeAffectedEntitiesResponse_nextToken :: Lens' DescribeAffectedEntitiesResponse (Maybe Text) Source #

If the results of a search are large, only a portion of the results are returned, and a nextToken pagination token is returned in the response. To retrieve the next batch of results, reissue the search request and include the returned token. When all results have been returned, the response does not contain a pagination token value.