libZSservicesZSamazonka-elasticacheZSamazonka-elasticache
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.ElastiCache.DescribeEvents

Description

Returns events related to clusters, cache security groups, and cache parameter groups. You can obtain events specific to a particular cluster, cache security group, or cache parameter group by providing the name as a parameter.

By default, only the events occurring within the last hour are returned; however, you can retrieve up to 14 days' worth of events if necessary.

This operation returns paginated results.

Synopsis

Creating a Request

data DescribeEvents Source #

Represents the input of a DescribeEvents operation.

See: newDescribeEvents smart constructor.

Constructors

DescribeEvents' 

Fields

  • startTime :: Maybe ISO8601

    The beginning of the time interval to retrieve events for, specified in ISO 8601 format.

    Example: 2017-03-30T07:03:49.555Z

  • sourceType :: Maybe SourceType

    The event source to retrieve events for. If no value is specified, all events are returned.

  • sourceIdentifier :: Maybe Text

    The identifier of the event source for which events are returned. If not specified, all sources are included in the response.

  • marker :: Maybe Text

    An optional marker returned from a prior request. Use this marker for pagination of results from this operation. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

  • maxRecords :: Maybe Int

    The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a marker is included in the response so that the remaining results can be retrieved.

    Default: 100

    Constraints: minimum 20; maximum 100.

  • endTime :: Maybe ISO8601

    The end of the time interval for which to retrieve events, specified in ISO 8601 format.

    Example: 2017-03-30T07:03:49.555Z

  • duration :: Maybe Int

    The number of minutes worth of events to retrieve.

Instances

Instances details
Eq DescribeEvents Source # 
Instance details

Defined in Amazonka.ElastiCache.DescribeEvents

Read DescribeEvents Source # 
Instance details

Defined in Amazonka.ElastiCache.DescribeEvents

Show DescribeEvents Source # 
Instance details

Defined in Amazonka.ElastiCache.DescribeEvents

Generic DescribeEvents Source # 
Instance details

Defined in Amazonka.ElastiCache.DescribeEvents

Associated Types

type Rep DescribeEvents :: Type -> Type #

NFData DescribeEvents Source # 
Instance details

Defined in Amazonka.ElastiCache.DescribeEvents

Methods

rnf :: DescribeEvents -> () #

Hashable DescribeEvents Source # 
Instance details

Defined in Amazonka.ElastiCache.DescribeEvents

AWSPager DescribeEvents Source # 
Instance details

Defined in Amazonka.ElastiCache.DescribeEvents

AWSRequest DescribeEvents Source # 
Instance details

Defined in Amazonka.ElastiCache.DescribeEvents

Associated Types

type AWSResponse DescribeEvents #

ToHeaders DescribeEvents Source # 
Instance details

Defined in Amazonka.ElastiCache.DescribeEvents

ToPath DescribeEvents Source # 
Instance details

Defined in Amazonka.ElastiCache.DescribeEvents

ToQuery DescribeEvents Source # 
Instance details

Defined in Amazonka.ElastiCache.DescribeEvents

type Rep DescribeEvents Source # 
Instance details

Defined in Amazonka.ElastiCache.DescribeEvents

type Rep DescribeEvents = D1 ('MetaData "DescribeEvents" "Amazonka.ElastiCache.DescribeEvents" "libZSservicesZSamazonka-elasticacheZSamazonka-elasticache" 'False) (C1 ('MetaCons "DescribeEvents'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "startTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ISO8601)) :*: (S1 ('MetaSel ('Just "sourceType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe SourceType)) :*: S1 ('MetaSel ('Just "sourceIdentifier") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 ('MetaSel ('Just "marker") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "maxRecords") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int))) :*: (S1 ('MetaSel ('Just "endTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ISO8601)) :*: S1 ('MetaSel ('Just "duration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int))))))
type AWSResponse DescribeEvents Source # 
Instance details

Defined in Amazonka.ElastiCache.DescribeEvents

newDescribeEvents :: DescribeEvents Source #

Create a value of DescribeEvents 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:startTime:DescribeEvents', describeEvents_startTime - The beginning of the time interval to retrieve events for, specified in ISO 8601 format.

Example: 2017-03-30T07:03:49.555Z

$sel:sourceType:DescribeEvents', describeEvents_sourceType - The event source to retrieve events for. If no value is specified, all events are returned.

$sel:sourceIdentifier:DescribeEvents', describeEvents_sourceIdentifier - The identifier of the event source for which events are returned. If not specified, all sources are included in the response.

$sel:marker:DescribeEvents', describeEvents_marker - An optional marker returned from a prior request. Use this marker for pagination of results from this operation. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

$sel:maxRecords:DescribeEvents', describeEvents_maxRecords - The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a marker is included in the response so that the remaining results can be retrieved.

Default: 100

Constraints: minimum 20; maximum 100.

$sel:endTime:DescribeEvents', describeEvents_endTime - The end of the time interval for which to retrieve events, specified in ISO 8601 format.

Example: 2017-03-30T07:03:49.555Z

$sel:duration:DescribeEvents', describeEvents_duration - The number of minutes worth of events to retrieve.

Request Lenses

describeEvents_startTime :: Lens' DescribeEvents (Maybe UTCTime) Source #

The beginning of the time interval to retrieve events for, specified in ISO 8601 format.

Example: 2017-03-30T07:03:49.555Z

describeEvents_sourceType :: Lens' DescribeEvents (Maybe SourceType) Source #

The event source to retrieve events for. If no value is specified, all events are returned.

describeEvents_sourceIdentifier :: Lens' DescribeEvents (Maybe Text) Source #

The identifier of the event source for which events are returned. If not specified, all sources are included in the response.

describeEvents_marker :: Lens' DescribeEvents (Maybe Text) Source #

An optional marker returned from a prior request. Use this marker for pagination of results from this operation. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

describeEvents_maxRecords :: Lens' DescribeEvents (Maybe Int) Source #

The maximum number of records to include in the response. If more records exist than the specified MaxRecords value, a marker is included in the response so that the remaining results can be retrieved.

Default: 100

Constraints: minimum 20; maximum 100.

describeEvents_endTime :: Lens' DescribeEvents (Maybe UTCTime) Source #

The end of the time interval for which to retrieve events, specified in ISO 8601 format.

Example: 2017-03-30T07:03:49.555Z

describeEvents_duration :: Lens' DescribeEvents (Maybe Int) Source #

The number of minutes worth of events to retrieve.

Destructuring the Response

data DescribeEventsResponse Source #

Represents the output of a DescribeEvents operation.

See: newDescribeEventsResponse smart constructor.

Constructors

DescribeEventsResponse' 

Fields

  • events :: Maybe [Event]

    A list of events. Each element in the list contains detailed information about one event.

  • marker :: Maybe Text

    Provides an identifier to allow retrieval of paginated results.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq DescribeEventsResponse Source # 
Instance details

Defined in Amazonka.ElastiCache.DescribeEvents

Read DescribeEventsResponse Source # 
Instance details

Defined in Amazonka.ElastiCache.DescribeEvents

Show DescribeEventsResponse Source # 
Instance details

Defined in Amazonka.ElastiCache.DescribeEvents

Generic DescribeEventsResponse Source # 
Instance details

Defined in Amazonka.ElastiCache.DescribeEvents

Associated Types

type Rep DescribeEventsResponse :: Type -> Type #

NFData DescribeEventsResponse Source # 
Instance details

Defined in Amazonka.ElastiCache.DescribeEvents

Methods

rnf :: DescribeEventsResponse -> () #

type Rep DescribeEventsResponse Source # 
Instance details

Defined in Amazonka.ElastiCache.DescribeEvents

type Rep DescribeEventsResponse = D1 ('MetaData "DescribeEventsResponse" "Amazonka.ElastiCache.DescribeEvents" "libZSservicesZSamazonka-elasticacheZSamazonka-elasticache" 'False) (C1 ('MetaCons "DescribeEventsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "events") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Event])) :*: (S1 ('MetaSel ('Just "marker") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newDescribeEventsResponse Source #

Create a value of DescribeEventsResponse 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:DescribeEventsResponse', describeEventsResponse_events - A list of events. Each element in the list contains detailed information about one event.

$sel:marker:DescribeEvents', describeEventsResponse_marker - Provides an identifier to allow retrieval of paginated results.

$sel:httpStatus:DescribeEventsResponse', describeEventsResponse_httpStatus - The response's http status code.

Response Lenses

describeEventsResponse_events :: Lens' DescribeEventsResponse (Maybe [Event]) Source #

A list of events. Each element in the list contains detailed information about one event.

describeEventsResponse_marker :: Lens' DescribeEventsResponse (Maybe Text) Source #

Provides an identifier to allow retrieval of paginated results.