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

Description

Creates a subscription to forward real-time Directory Service domain controller security logs to the specified Amazon CloudWatch log group in your Amazon Web Services account.

Synopsis

Creating a Request

data CreateLogSubscription Source #

See: newCreateLogSubscription smart constructor.

Constructors

CreateLogSubscription' 

Fields

  • directoryId :: Text

    Identifier of the directory to which you want to subscribe and receive real-time logs to your specified CloudWatch log group.

  • logGroupName :: Text

    The name of the CloudWatch log group where the real-time domain controller logs are forwarded.

Instances

Instances details
ToJSON CreateLogSubscription Source # 
Instance details

Defined in Amazonka.DirectoryService.CreateLogSubscription

ToHeaders CreateLogSubscription Source # 
Instance details

Defined in Amazonka.DirectoryService.CreateLogSubscription

ToPath CreateLogSubscription Source # 
Instance details

Defined in Amazonka.DirectoryService.CreateLogSubscription

ToQuery CreateLogSubscription Source # 
Instance details

Defined in Amazonka.DirectoryService.CreateLogSubscription

AWSRequest CreateLogSubscription Source # 
Instance details

Defined in Amazonka.DirectoryService.CreateLogSubscription

Associated Types

type AWSResponse CreateLogSubscription #

Generic CreateLogSubscription Source # 
Instance details

Defined in Amazonka.DirectoryService.CreateLogSubscription

Associated Types

type Rep CreateLogSubscription :: Type -> Type #

Read CreateLogSubscription Source # 
Instance details

Defined in Amazonka.DirectoryService.CreateLogSubscription

Show CreateLogSubscription Source # 
Instance details

Defined in Amazonka.DirectoryService.CreateLogSubscription

NFData CreateLogSubscription Source # 
Instance details

Defined in Amazonka.DirectoryService.CreateLogSubscription

Methods

rnf :: CreateLogSubscription -> () #

Eq CreateLogSubscription Source # 
Instance details

Defined in Amazonka.DirectoryService.CreateLogSubscription

Hashable CreateLogSubscription Source # 
Instance details

Defined in Amazonka.DirectoryService.CreateLogSubscription

type AWSResponse CreateLogSubscription Source # 
Instance details

Defined in Amazonka.DirectoryService.CreateLogSubscription

type Rep CreateLogSubscription Source # 
Instance details

Defined in Amazonka.DirectoryService.CreateLogSubscription

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

newCreateLogSubscription Source #

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

CreateLogSubscription, createLogSubscription_directoryId - Identifier of the directory to which you want to subscribe and receive real-time logs to your specified CloudWatch log group.

CreateLogSubscription, createLogSubscription_logGroupName - The name of the CloudWatch log group where the real-time domain controller logs are forwarded.

Request Lenses

createLogSubscription_directoryId :: Lens' CreateLogSubscription Text Source #

Identifier of the directory to which you want to subscribe and receive real-time logs to your specified CloudWatch log group.

createLogSubscription_logGroupName :: Lens' CreateLogSubscription Text Source #

The name of the CloudWatch log group where the real-time domain controller logs are forwarded.

Destructuring the Response

data CreateLogSubscriptionResponse Source #

See: newCreateLogSubscriptionResponse smart constructor.

Constructors

CreateLogSubscriptionResponse' 

Fields

Instances

Instances details
Generic CreateLogSubscriptionResponse Source # 
Instance details

Defined in Amazonka.DirectoryService.CreateLogSubscription

Associated Types

type Rep CreateLogSubscriptionResponse :: Type -> Type #

Read CreateLogSubscriptionResponse Source # 
Instance details

Defined in Amazonka.DirectoryService.CreateLogSubscription

Show CreateLogSubscriptionResponse Source # 
Instance details

Defined in Amazonka.DirectoryService.CreateLogSubscription

NFData CreateLogSubscriptionResponse Source # 
Instance details

Defined in Amazonka.DirectoryService.CreateLogSubscription

Eq CreateLogSubscriptionResponse Source # 
Instance details

Defined in Amazonka.DirectoryService.CreateLogSubscription

type Rep CreateLogSubscriptionResponse Source # 
Instance details

Defined in Amazonka.DirectoryService.CreateLogSubscription

type Rep CreateLogSubscriptionResponse = D1 ('MetaData "CreateLogSubscriptionResponse" "Amazonka.DirectoryService.CreateLogSubscription" "amazonka-ds-2.0-AgXI5fcN8ZxCoi4kNvhD3" 'False) (C1 ('MetaCons "CreateLogSubscriptionResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newCreateLogSubscriptionResponse Source #

Create a value of CreateLogSubscriptionResponse 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:httpStatus:CreateLogSubscriptionResponse', createLogSubscriptionResponse_httpStatus - The response's http status code.

Response Lenses