Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
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 #
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.
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.