amazonka-health-2.0: Amazon Health APIs and Notifications 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.AWSHealth.DescribeAffectedEntitiesForOrganization

Description

Returns a list of entities that have been affected by one or more events for one or more accounts in your organization in Organizations, based on the filter criteria. Entities can refer to individual customer resources, groups of customer resources, or any other construct, depending on the Amazon Web Services service.

At least one event Amazon Resource Name (ARN) and account ID are required.

Before you can call this operation, you must first enable Health to work with Organizations. To do this, call the EnableHealthServiceAccessForOrganization operation from your organization's management account.

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

This operation returns paginated results.

Synopsis

Creating a Request

data DescribeAffectedEntitiesForOrganization Source #

Constructors

DescribeAffectedEntitiesForOrganization' 

Fields

  • locale :: Maybe Text

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

  • maxResults :: Maybe Natural

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

  • 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.

  • organizationEntityFilters :: NonEmpty EventAccountFilter

    A JSON set of elements including the awsAccountId and the eventArn.

Instances

Instances details
ToJSON DescribeAffectedEntitiesForOrganization Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeAffectedEntitiesForOrganization

ToHeaders DescribeAffectedEntitiesForOrganization Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeAffectedEntitiesForOrganization

ToPath DescribeAffectedEntitiesForOrganization Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeAffectedEntitiesForOrganization

ToQuery DescribeAffectedEntitiesForOrganization Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeAffectedEntitiesForOrganization

AWSPager DescribeAffectedEntitiesForOrganization Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeAffectedEntitiesForOrganization

AWSRequest DescribeAffectedEntitiesForOrganization Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeAffectedEntitiesForOrganization

Generic DescribeAffectedEntitiesForOrganization Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeAffectedEntitiesForOrganization

Read DescribeAffectedEntitiesForOrganization Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeAffectedEntitiesForOrganization

Show DescribeAffectedEntitiesForOrganization Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeAffectedEntitiesForOrganization

NFData DescribeAffectedEntitiesForOrganization Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeAffectedEntitiesForOrganization

Eq DescribeAffectedEntitiesForOrganization Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeAffectedEntitiesForOrganization

Hashable DescribeAffectedEntitiesForOrganization Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeAffectedEntitiesForOrganization

type AWSResponse DescribeAffectedEntitiesForOrganization Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeAffectedEntitiesForOrganization

type Rep DescribeAffectedEntitiesForOrganization Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeAffectedEntitiesForOrganization

type Rep DescribeAffectedEntitiesForOrganization = D1 ('MetaData "DescribeAffectedEntitiesForOrganization" "Amazonka.AWSHealth.DescribeAffectedEntitiesForOrganization" "amazonka-health-2.0-97kQZARXu4I8k4sVSmOp5K" 'False) (C1 ('MetaCons "DescribeAffectedEntitiesForOrganization'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "locale") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural))) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "organizationEntityFilters") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (NonEmpty EventAccountFilter)))))

newDescribeAffectedEntitiesForOrganization Source #

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

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

DescribeAffectedEntitiesForOrganization, describeAffectedEntitiesForOrganization_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:organizationEntityFilters:DescribeAffectedEntitiesForOrganization', describeAffectedEntitiesForOrganization_organizationEntityFilters - A JSON set of elements including the awsAccountId and the eventArn.

Request Lenses

describeAffectedEntitiesForOrganization_locale :: Lens' DescribeAffectedEntitiesForOrganization (Maybe Text) Source #

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

describeAffectedEntitiesForOrganization_maxResults :: Lens' DescribeAffectedEntitiesForOrganization (Maybe Natural) Source #

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

describeAffectedEntitiesForOrganization_nextToken :: Lens' DescribeAffectedEntitiesForOrganization (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.

Destructuring the Response

data DescribeAffectedEntitiesForOrganizationResponse Source #

Constructors

DescribeAffectedEntitiesForOrganizationResponse' 

Fields

  • entities :: Maybe [AffectedEntity]

    A JSON set of elements including the awsAccountId and its entityArn, entityValue and its entityArn, lastUpdatedTime, and statusCode.

  • failedSet :: Maybe [OrganizationAffectedEntitiesErrorItem]

    A JSON set of elements of the failed response, including the awsAccountId, errorMessage, errorName, and eventArn.

  • 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
Generic DescribeAffectedEntitiesForOrganizationResponse Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeAffectedEntitiesForOrganization

Read DescribeAffectedEntitiesForOrganizationResponse Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeAffectedEntitiesForOrganization

Show DescribeAffectedEntitiesForOrganizationResponse Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeAffectedEntitiesForOrganization

NFData DescribeAffectedEntitiesForOrganizationResponse Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeAffectedEntitiesForOrganization

Eq DescribeAffectedEntitiesForOrganizationResponse Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeAffectedEntitiesForOrganization

type Rep DescribeAffectedEntitiesForOrganizationResponse Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeAffectedEntitiesForOrganization

type Rep DescribeAffectedEntitiesForOrganizationResponse = D1 ('MetaData "DescribeAffectedEntitiesForOrganizationResponse" "Amazonka.AWSHealth.DescribeAffectedEntitiesForOrganization" "amazonka-health-2.0-97kQZARXu4I8k4sVSmOp5K" 'False) (C1 ('MetaCons "DescribeAffectedEntitiesForOrganizationResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "entities") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [AffectedEntity])) :*: S1 ('MetaSel ('Just "failedSet") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [OrganizationAffectedEntitiesErrorItem]))) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newDescribeAffectedEntitiesForOrganizationResponse Source #

Create a value of DescribeAffectedEntitiesForOrganizationResponse 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:DescribeAffectedEntitiesForOrganizationResponse', describeAffectedEntitiesForOrganizationResponse_entities - A JSON set of elements including the awsAccountId and its entityArn, entityValue and its entityArn, lastUpdatedTime, and statusCode.

$sel:failedSet:DescribeAffectedEntitiesForOrganizationResponse', describeAffectedEntitiesForOrganizationResponse_failedSet - A JSON set of elements of the failed response, including the awsAccountId, errorMessage, errorName, and eventArn.

DescribeAffectedEntitiesForOrganization, describeAffectedEntitiesForOrganizationResponse_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:DescribeAffectedEntitiesForOrganizationResponse', describeAffectedEntitiesForOrganizationResponse_httpStatus - The response's http status code.

Response Lenses

describeAffectedEntitiesForOrganizationResponse_entities :: Lens' DescribeAffectedEntitiesForOrganizationResponse (Maybe [AffectedEntity]) Source #

A JSON set of elements including the awsAccountId and its entityArn, entityValue and its entityArn, lastUpdatedTime, and statusCode.

describeAffectedEntitiesForOrganizationResponse_failedSet :: Lens' DescribeAffectedEntitiesForOrganizationResponse (Maybe [OrganizationAffectedEntitiesErrorItem]) Source #

A JSON set of elements of the failed response, including the awsAccountId, errorMessage, errorName, and eventArn.

describeAffectedEntitiesForOrganizationResponse_nextToken :: Lens' DescribeAffectedEntitiesForOrganizationResponse (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.