libZSservicesZSamazonka-memorydbZSamazonka-memorydb
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.MemoryDb.DescribeEvents

Description

Returns events related to clusters, security groups, and parameter groups. You can obtain events specific to a particular cluster, security group, or 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.

Synopsis

Creating a Request

data DescribeEvents Source #

See: newDescribeEvents smart constructor.

Constructors

DescribeEvents' 

Fields

  • sourceName :: Maybe Text

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

  • startTime :: Maybe POSIX

    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.

  • nextToken :: Maybe Text

    An optional argument to pass in case the total number of records exceeds the value of MaxResults. If nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged.

  • endTime :: Maybe POSIX

    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.

  • maxResults :: Maybe Int

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

Instances

Instances details
Eq DescribeEvents Source # 
Instance details

Defined in Amazonka.MemoryDb.DescribeEvents

Read DescribeEvents Source # 
Instance details

Defined in Amazonka.MemoryDb.DescribeEvents

Show DescribeEvents Source # 
Instance details

Defined in Amazonka.MemoryDb.DescribeEvents

Generic DescribeEvents Source # 
Instance details

Defined in Amazonka.MemoryDb.DescribeEvents

Associated Types

type Rep DescribeEvents :: Type -> Type #

NFData DescribeEvents Source # 
Instance details

Defined in Amazonka.MemoryDb.DescribeEvents

Methods

rnf :: DescribeEvents -> () #

Hashable DescribeEvents Source # 
Instance details

Defined in Amazonka.MemoryDb.DescribeEvents

ToJSON DescribeEvents Source # 
Instance details

Defined in Amazonka.MemoryDb.DescribeEvents

AWSRequest DescribeEvents Source # 
Instance details

Defined in Amazonka.MemoryDb.DescribeEvents

Associated Types

type AWSResponse DescribeEvents #

ToHeaders DescribeEvents Source # 
Instance details

Defined in Amazonka.MemoryDb.DescribeEvents

ToPath DescribeEvents Source # 
Instance details

Defined in Amazonka.MemoryDb.DescribeEvents

ToQuery DescribeEvents Source # 
Instance details

Defined in Amazonka.MemoryDb.DescribeEvents

type Rep DescribeEvents Source # 
Instance details

Defined in Amazonka.MemoryDb.DescribeEvents

type AWSResponse DescribeEvents Source # 
Instance details

Defined in Amazonka.MemoryDb.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:sourceName:DescribeEvents', describeEvents_sourceName - The identifier of the event source for which events are returned. If not specified, all sources are included in the response.

$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:nextToken:DescribeEvents', describeEvents_nextToken - An optional argument to pass in case the total number of records exceeds the value of MaxResults. If nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged.

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

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

Request Lenses

describeEvents_sourceName :: 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_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_nextToken :: Lens' DescribeEvents (Maybe Text) Source #

An optional argument to pass in case the total number of records exceeds the value of MaxResults. If nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged.

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.

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

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

Destructuring the Response

data DescribeEventsResponse Source #

See: newDescribeEventsResponse smart constructor.

Constructors

DescribeEventsResponse' 

Fields

  • nextToken :: Maybe Text

    An optional argument to pass in case the total number of records exceeds the value of MaxResults. If nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged.

  • events :: Maybe [Event]

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

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq DescribeEventsResponse Source # 
Instance details

Defined in Amazonka.MemoryDb.DescribeEvents

Read DescribeEventsResponse Source # 
Instance details

Defined in Amazonka.MemoryDb.DescribeEvents

Show DescribeEventsResponse Source # 
Instance details

Defined in Amazonka.MemoryDb.DescribeEvents

Generic DescribeEventsResponse Source # 
Instance details

Defined in Amazonka.MemoryDb.DescribeEvents

Associated Types

type Rep DescribeEventsResponse :: Type -> Type #

NFData DescribeEventsResponse Source # 
Instance details

Defined in Amazonka.MemoryDb.DescribeEvents

Methods

rnf :: DescribeEventsResponse -> () #

type Rep DescribeEventsResponse Source # 
Instance details

Defined in Amazonka.MemoryDb.DescribeEvents

type Rep DescribeEventsResponse = D1 ('MetaData "DescribeEventsResponse" "Amazonka.MemoryDb.DescribeEvents" "libZSservicesZSamazonka-memorydbZSamazonka-memorydb" 'False) (C1 ('MetaCons "DescribeEventsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "events") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Event])) :*: 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:nextToken:DescribeEvents', describeEventsResponse_nextToken - An optional argument to pass in case the total number of records exceeds the value of MaxResults. If nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged.

$sel:events:DescribeEventsResponse', describeEventsResponse_events - A list of events. Each element in the list contains detailed information about one event.

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

Response Lenses

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

An optional argument to pass in case the total number of records exceeds the value of MaxResults. If nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged.

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

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