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

Description

Returns information about events across your organization in Organizations. You can use thefilters parameter to specify the events that you want to return. Events are returned in a summary form and don't include the affected accounts, detailed description, any additional metadata that depends on the event type, or any affected resources. To retrieve that information, use the following operations:

If you don't specify a filter, the DescribeEventsForOrganizations returns all events across your organization. Results are sorted by lastModifiedTime, starting with the most recent event.

For more information about the different types of Health events, see Event.

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 returns paginated results.

Synopsis

Creating a Request

data DescribeEventsForOrganization Source #

See: newDescribeEventsForOrganization smart constructor.

Constructors

DescribeEventsForOrganization' 

Fields

  • filter' :: Maybe OrganizationEventFilter

    Values to narrow the results returned.

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

Instances

Instances details
ToJSON DescribeEventsForOrganization Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeEventsForOrganization

ToHeaders DescribeEventsForOrganization Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeEventsForOrganization

ToPath DescribeEventsForOrganization Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeEventsForOrganization

ToQuery DescribeEventsForOrganization Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeEventsForOrganization

AWSPager DescribeEventsForOrganization Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeEventsForOrganization

AWSRequest DescribeEventsForOrganization Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeEventsForOrganization

Generic DescribeEventsForOrganization Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeEventsForOrganization

Associated Types

type Rep DescribeEventsForOrganization :: Type -> Type #

Read DescribeEventsForOrganization Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeEventsForOrganization

Show DescribeEventsForOrganization Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeEventsForOrganization

NFData DescribeEventsForOrganization Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeEventsForOrganization

Eq DescribeEventsForOrganization Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeEventsForOrganization

Hashable DescribeEventsForOrganization Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeEventsForOrganization

type AWSResponse DescribeEventsForOrganization Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeEventsForOrganization

type Rep DescribeEventsForOrganization Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeEventsForOrganization

type Rep DescribeEventsForOrganization = D1 ('MetaData "DescribeEventsForOrganization" "Amazonka.AWSHealth.DescribeEventsForOrganization" "amazonka-health-2.0-97kQZARXu4I8k4sVSmOp5K" 'False) (C1 ('MetaCons "DescribeEventsForOrganization'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "filter'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe OrganizationEventFilter)) :*: 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)))))

newDescribeEventsForOrganization :: DescribeEventsForOrganization Source #

Create a value of DescribeEventsForOrganization 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:filter':DescribeEventsForOrganization', describeEventsForOrganization_filter - Values to narrow the results returned.

$sel:locale:DescribeEventsForOrganization', describeEventsForOrganization_locale - The locale (language) to return information in. English (en) is the default and the only supported value at this time.

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

DescribeEventsForOrganization, describeEventsForOrganization_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.

Request Lenses

describeEventsForOrganization_locale :: Lens' DescribeEventsForOrganization (Maybe Text) Source #

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

describeEventsForOrganization_maxResults :: Lens' DescribeEventsForOrganization (Maybe Natural) Source #

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

describeEventsForOrganization_nextToken :: Lens' DescribeEventsForOrganization (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 DescribeEventsForOrganizationResponse Source #

Constructors

DescribeEventsForOrganizationResponse' 

Fields

  • events :: Maybe [OrganizationEvent]

    The events that match the specified 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
Generic DescribeEventsForOrganizationResponse Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeEventsForOrganization

Read DescribeEventsForOrganizationResponse Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeEventsForOrganization

Show DescribeEventsForOrganizationResponse Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeEventsForOrganization

NFData DescribeEventsForOrganizationResponse Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeEventsForOrganization

Eq DescribeEventsForOrganizationResponse Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeEventsForOrganization

type Rep DescribeEventsForOrganizationResponse Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeEventsForOrganization

type Rep DescribeEventsForOrganizationResponse = D1 ('MetaData "DescribeEventsForOrganizationResponse" "Amazonka.AWSHealth.DescribeEventsForOrganization" "amazonka-health-2.0-97kQZARXu4I8k4sVSmOp5K" 'False) (C1 ('MetaCons "DescribeEventsForOrganizationResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "events") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [OrganizationEvent])) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newDescribeEventsForOrganizationResponse Source #

Create a value of DescribeEventsForOrganizationResponse 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:events:DescribeEventsForOrganizationResponse', describeEventsForOrganizationResponse_events - The events that match the specified filter criteria.

DescribeEventsForOrganization, describeEventsForOrganizationResponse_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:DescribeEventsForOrganizationResponse', describeEventsForOrganizationResponse_httpStatus - The response's http status code.

Response Lenses

describeEventsForOrganizationResponse_nextToken :: Lens' DescribeEventsForOrganizationResponse (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.