amazonka-ds-2.0: Amazon Directory Service 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.DirectoryService.ListLogSubscriptions

Description

Lists the active log subscriptions for the Amazon Web Services account.

This operation returns paginated results.

Synopsis

Creating a Request

data ListLogSubscriptions Source #

See: newListLogSubscriptions smart constructor.

Constructors

ListLogSubscriptions' 

Fields

  • directoryId :: Maybe Text

    If a DirectoryID is provided, lists only the log subscription associated with that directory. If no DirectoryId is provided, lists all log subscriptions associated with your Amazon Web Services account. If there are no log subscriptions for the Amazon Web Services account or the directory, an empty list will be returned.

  • limit :: Maybe Natural

    The maximum number of items returned.

  • nextToken :: Maybe Text

    The token for the next set of items to return.

Instances

Instances details
ToJSON ListLogSubscriptions Source # 
Instance details

Defined in Amazonka.DirectoryService.ListLogSubscriptions

ToHeaders ListLogSubscriptions Source # 
Instance details

Defined in Amazonka.DirectoryService.ListLogSubscriptions

ToPath ListLogSubscriptions Source # 
Instance details

Defined in Amazonka.DirectoryService.ListLogSubscriptions

ToQuery ListLogSubscriptions Source # 
Instance details

Defined in Amazonka.DirectoryService.ListLogSubscriptions

AWSPager ListLogSubscriptions Source # 
Instance details

Defined in Amazonka.DirectoryService.ListLogSubscriptions

AWSRequest ListLogSubscriptions Source # 
Instance details

Defined in Amazonka.DirectoryService.ListLogSubscriptions

Associated Types

type AWSResponse ListLogSubscriptions #

Generic ListLogSubscriptions Source # 
Instance details

Defined in Amazonka.DirectoryService.ListLogSubscriptions

Associated Types

type Rep ListLogSubscriptions :: Type -> Type #

Read ListLogSubscriptions Source # 
Instance details

Defined in Amazonka.DirectoryService.ListLogSubscriptions

Show ListLogSubscriptions Source # 
Instance details

Defined in Amazonka.DirectoryService.ListLogSubscriptions

NFData ListLogSubscriptions Source # 
Instance details

Defined in Amazonka.DirectoryService.ListLogSubscriptions

Methods

rnf :: ListLogSubscriptions -> () #

Eq ListLogSubscriptions Source # 
Instance details

Defined in Amazonka.DirectoryService.ListLogSubscriptions

Hashable ListLogSubscriptions Source # 
Instance details

Defined in Amazonka.DirectoryService.ListLogSubscriptions

type AWSResponse ListLogSubscriptions Source # 
Instance details

Defined in Amazonka.DirectoryService.ListLogSubscriptions

type Rep ListLogSubscriptions Source # 
Instance details

Defined in Amazonka.DirectoryService.ListLogSubscriptions

type Rep ListLogSubscriptions = D1 ('MetaData "ListLogSubscriptions" "Amazonka.DirectoryService.ListLogSubscriptions" "amazonka-ds-2.0-AgXI5fcN8ZxCoi4kNvhD3" 'False) (C1 ('MetaCons "ListLogSubscriptions'" 'PrefixI 'True) (S1 ('MetaSel ('Just "directoryId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "limit") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))))

newListLogSubscriptions :: ListLogSubscriptions Source #

Create a value of ListLogSubscriptions 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:

ListLogSubscriptions, listLogSubscriptions_directoryId - If a DirectoryID is provided, lists only the log subscription associated with that directory. If no DirectoryId is provided, lists all log subscriptions associated with your Amazon Web Services account. If there are no log subscriptions for the Amazon Web Services account or the directory, an empty list will be returned.

$sel:limit:ListLogSubscriptions', listLogSubscriptions_limit - The maximum number of items returned.

ListLogSubscriptions, listLogSubscriptions_nextToken - The token for the next set of items to return.

Request Lenses

listLogSubscriptions_directoryId :: Lens' ListLogSubscriptions (Maybe Text) Source #

If a DirectoryID is provided, lists only the log subscription associated with that directory. If no DirectoryId is provided, lists all log subscriptions associated with your Amazon Web Services account. If there are no log subscriptions for the Amazon Web Services account or the directory, an empty list will be returned.

listLogSubscriptions_limit :: Lens' ListLogSubscriptions (Maybe Natural) Source #

The maximum number of items returned.

listLogSubscriptions_nextToken :: Lens' ListLogSubscriptions (Maybe Text) Source #

The token for the next set of items to return.

Destructuring the Response

data ListLogSubscriptionsResponse Source #

See: newListLogSubscriptionsResponse smart constructor.

Constructors

ListLogSubscriptionsResponse' 

Fields

Instances

Instances details
Generic ListLogSubscriptionsResponse Source # 
Instance details

Defined in Amazonka.DirectoryService.ListLogSubscriptions

Associated Types

type Rep ListLogSubscriptionsResponse :: Type -> Type #

Read ListLogSubscriptionsResponse Source # 
Instance details

Defined in Amazonka.DirectoryService.ListLogSubscriptions

Show ListLogSubscriptionsResponse Source # 
Instance details

Defined in Amazonka.DirectoryService.ListLogSubscriptions

NFData ListLogSubscriptionsResponse Source # 
Instance details

Defined in Amazonka.DirectoryService.ListLogSubscriptions

Eq ListLogSubscriptionsResponse Source # 
Instance details

Defined in Amazonka.DirectoryService.ListLogSubscriptions

type Rep ListLogSubscriptionsResponse Source # 
Instance details

Defined in Amazonka.DirectoryService.ListLogSubscriptions

type Rep ListLogSubscriptionsResponse = D1 ('MetaData "ListLogSubscriptionsResponse" "Amazonka.DirectoryService.ListLogSubscriptions" "amazonka-ds-2.0-AgXI5fcN8ZxCoi4kNvhD3" 'False) (C1 ('MetaCons "ListLogSubscriptionsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "logSubscriptions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [LogSubscription])) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newListLogSubscriptionsResponse Source #

Create a value of ListLogSubscriptionsResponse 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:logSubscriptions:ListLogSubscriptionsResponse', listLogSubscriptionsResponse_logSubscriptions - A list of active LogSubscription objects for calling the Amazon Web Services account.

ListLogSubscriptions, listLogSubscriptionsResponse_nextToken - The token for the next set of items to return.

$sel:httpStatus:ListLogSubscriptionsResponse', listLogSubscriptionsResponse_httpStatus - The response's http status code.

Response Lenses

listLogSubscriptionsResponse_logSubscriptions :: Lens' ListLogSubscriptionsResponse (Maybe [LogSubscription]) Source #

A list of active LogSubscription objects for calling the Amazon Web Services account.