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

Description

Returns the event types that meet the specified filter criteria. You can use this API operation to find information about the Health event, such as the category, Amazon Web Services service, and event code. The metadata for each event appears in the EventType object.

If you don't specify a filter criteria, the API operation returns all event types, in no particular order.

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 DescribeEventTypes Source #

See: newDescribeEventTypes smart constructor.

Constructors

DescribeEventTypes' 

Fields

  • filter' :: Maybe EventTypeFilter

    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 DescribeEventTypes Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeEventTypes

ToHeaders DescribeEventTypes Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeEventTypes

ToPath DescribeEventTypes Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeEventTypes

ToQuery DescribeEventTypes Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeEventTypes

AWSPager DescribeEventTypes Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeEventTypes

AWSRequest DescribeEventTypes Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeEventTypes

Associated Types

type AWSResponse DescribeEventTypes #

Generic DescribeEventTypes Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeEventTypes

Associated Types

type Rep DescribeEventTypes :: Type -> Type #

Read DescribeEventTypes Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeEventTypes

Show DescribeEventTypes Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeEventTypes

NFData DescribeEventTypes Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeEventTypes

Methods

rnf :: DescribeEventTypes -> () #

Eq DescribeEventTypes Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeEventTypes

Hashable DescribeEventTypes Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeEventTypes

type AWSResponse DescribeEventTypes Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeEventTypes

type Rep DescribeEventTypes Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeEventTypes

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

newDescribeEventTypes :: DescribeEventTypes Source #

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

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

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

DescribeEventTypes, describeEventTypes_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

describeEventTypes_locale :: Lens' DescribeEventTypes (Maybe Text) Source #

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

describeEventTypes_maxResults :: Lens' DescribeEventTypes (Maybe Natural) Source #

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

describeEventTypes_nextToken :: Lens' DescribeEventTypes (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 DescribeEventTypesResponse Source #

See: newDescribeEventTypesResponse smart constructor.

Constructors

DescribeEventTypesResponse' 

Fields

  • eventTypes :: Maybe [EventType]

    A list of event types that match the filter criteria. Event types have a category (issue, accountNotification, or scheduledChange), a service (for example, EC2, RDS, DATAPIPELINE, BILLING), and a code (in the format AWS_SERVICE_DESCRIPTION ; for example, AWS_EC2_SYSTEM_MAINTENANCE_EVENT).

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

Defined in Amazonka.AWSHealth.DescribeEventTypes

Associated Types

type Rep DescribeEventTypesResponse :: Type -> Type #

Read DescribeEventTypesResponse Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeEventTypes

Show DescribeEventTypesResponse Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeEventTypes

NFData DescribeEventTypesResponse Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeEventTypes

Eq DescribeEventTypesResponse Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeEventTypes

type Rep DescribeEventTypesResponse Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeEventTypes

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

newDescribeEventTypesResponse Source #

Create a value of DescribeEventTypesResponse 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:eventTypes:DescribeEventTypesResponse', describeEventTypesResponse_eventTypes - A list of event types that match the filter criteria. Event types have a category (issue, accountNotification, or scheduledChange), a service (for example, EC2, RDS, DATAPIPELINE, BILLING), and a code (in the format AWS_SERVICE_DESCRIPTION ; for example, AWS_EC2_SYSTEM_MAINTENANCE_EVENT).

DescribeEventTypes, describeEventTypesResponse_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:DescribeEventTypesResponse', describeEventTypesResponse_httpStatus - The response's http status code.

Response Lenses

describeEventTypesResponse_eventTypes :: Lens' DescribeEventTypesResponse (Maybe [EventType]) Source #

A list of event types that match the filter criteria. Event types have a category (issue, accountNotification, or scheduledChange), a service (for example, EC2, RDS, DATAPIPELINE, BILLING), and a code (in the format AWS_SERVICE_DESCRIPTION ; for example, AWS_EC2_SYSTEM_MAINTENANCE_EVENT).

describeEventTypesResponse_nextToken :: Lens' DescribeEventTypesResponse (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.