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

Description

Returns information about events across your organization in AWS 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 AWS Health events, see Event.

Before you can call this operation, you must first enable AWS Health to work with AWS 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

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

  • filter' :: Maybe OrganizationEventFilter

    Values to narrow the results returned.

  • maxResults :: Maybe Natural

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

Instances

Instances details
Eq DescribeEventsForOrganization Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeEventsForOrganization

Read DescribeEventsForOrganization Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeEventsForOrganization

Show 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 #

NFData DescribeEventsForOrganization Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeEventsForOrganization

Hashable DescribeEventsForOrganization Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeEventsForOrganization

ToJSON 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

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

type Rep DescribeEventsForOrganization Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeEventsForOrganization

type Rep DescribeEventsForOrganization = D1 ('MetaData "DescribeEventsForOrganization" "Amazonka.AWSHealth.DescribeEventsForOrganization" "libZSservicesZSamazonka-healthZSamazonka-health" 'False) (C1 ('MetaCons "DescribeEventsForOrganization'" '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 "filter'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe OrganizationEventFilter)) :*: S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)))))
type AWSResponse DescribeEventsForOrganization Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeEventsForOrganization

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: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:nextToken: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.

$sel:filter':DescribeEventsForOrganization', describeEventsForOrganization_filter - Values to narrow the results returned.

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

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

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

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

Destructuring the Response

data DescribeEventsForOrganizationResponse Source #

Constructors

DescribeEventsForOrganizationResponse' 

Fields

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

  • events :: Maybe [OrganizationEvent]

    The events that match the specified filter criteria.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq 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

Generic DescribeEventsForOrganizationResponse Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeEventsForOrganization

NFData 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" "libZSservicesZSamazonka-healthZSamazonka-health" 'False) (C1 ('MetaCons "DescribeEventsForOrganizationResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "events") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [OrganizationEvent])) :*: 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:nextToken: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:events:DescribeEventsForOrganizationResponse', describeEventsForOrganizationResponse_events - The events that match the specified filter criteria.

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