Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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
- data CreateLogSubscription = CreateLogSubscription' {
- directoryId :: Text
- logGroupName :: Text
- newCreateLogSubscription :: Text -> Text -> CreateLogSubscription
- createLogSubscription_directoryId :: Lens' CreateLogSubscription Text
- createLogSubscription_logGroupName :: Lens' CreateLogSubscription Text
- data CreateLogSubscriptionResponse = CreateLogSubscriptionResponse' {
- httpStatus :: Int
- newCreateLogSubscriptionResponse :: Int -> CreateLogSubscriptionResponse
- createLogSubscriptionResponse_httpStatus :: Lens' CreateLogSubscriptionResponse Int
Creating a Request
data CreateLogSubscription Source #
See: newCreateLogSubscription
smart constructor.
CreateLogSubscription' | |
|
Instances
newCreateLogSubscription Source #
:: Text | |
-> Text | |
-> CreateLogSubscription |
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:
$sel:directoryId:CreateLogSubscription'
, createLogSubscription_directoryId
- Identifier of the directory to which you want to subscribe and receive
real-time logs to your specified CloudWatch log group.
$sel:logGroupName: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.
CreateLogSubscriptionResponse' | |
|
Instances
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
createLogSubscriptionResponse_httpStatus :: Lens' CreateLogSubscriptionResponse Int Source #
The response's http status code.