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

Description

Returns the event types that meet the specified filter criteria. You can use this API operation to find information about the AWS Health event, such as the category, AWS 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

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

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

Defined in Amazonka.AWSHealth.DescribeEventTypes

Read DescribeEventTypes Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeEventTypes

Show DescribeEventTypes Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeEventTypes

Generic DescribeEventTypes Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeEventTypes

Associated Types

type Rep DescribeEventTypes :: Type -> Type #

NFData DescribeEventTypes Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeEventTypes

Methods

rnf :: DescribeEventTypes -> () #

Hashable DescribeEventTypes Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeEventTypes

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

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

type Rep DescribeEventTypes Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeEventTypes

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

Defined in Amazonka.AWSHealth.DescribeEventTypes

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

$sel:filter':DescribeEventTypes', describeEventTypes_filter - Values to narrow the results returned.

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

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

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

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

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

Defined in Amazonka.AWSHealth.DescribeEventTypes

Read DescribeEventTypesResponse Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeEventTypes

Show DescribeEventTypesResponse Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeEventTypes

Generic DescribeEventTypesResponse Source # 
Instance details

Defined in Amazonka.AWSHealth.DescribeEventTypes

Associated Types

type Rep DescribeEventTypesResponse :: Type -> Type #

NFData 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" "libZSservicesZSamazonka-healthZSamazonka-health" '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).

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