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 |
This documentation is for version 1 of the Amazon Kinesis Data Analytics API, which only supports SQL applications. Version 2 of the API supports SQL and Java applications. For more information about version 2, see Amazon Kinesis Data Analytics API V2 Documentation.
Adds a CloudWatch log stream to monitor application configuration errors. For more information about using CloudWatch log streams with Amazon Kinesis Analytics applications, see Working with Amazon CloudWatch Logs.
Synopsis
- data AddApplicationCloudWatchLoggingOption = AddApplicationCloudWatchLoggingOption' {}
- newAddApplicationCloudWatchLoggingOption :: Text -> Natural -> CloudWatchLoggingOption -> AddApplicationCloudWatchLoggingOption
- addApplicationCloudWatchLoggingOption_applicationName :: Lens' AddApplicationCloudWatchLoggingOption Text
- addApplicationCloudWatchLoggingOption_currentApplicationVersionId :: Lens' AddApplicationCloudWatchLoggingOption Natural
- addApplicationCloudWatchLoggingOption_cloudWatchLoggingOption :: Lens' AddApplicationCloudWatchLoggingOption CloudWatchLoggingOption
- data AddApplicationCloudWatchLoggingOptionResponse = AddApplicationCloudWatchLoggingOptionResponse' {
- httpStatus :: Int
- newAddApplicationCloudWatchLoggingOptionResponse :: Int -> AddApplicationCloudWatchLoggingOptionResponse
- addApplicationCloudWatchLoggingOptionResponse_httpStatus :: Lens' AddApplicationCloudWatchLoggingOptionResponse Int
Creating a Request
data AddApplicationCloudWatchLoggingOption Source #
See: newAddApplicationCloudWatchLoggingOption
smart constructor.
AddApplicationCloudWatchLoggingOption' | |
|
Instances
newAddApplicationCloudWatchLoggingOption Source #
Create a value of AddApplicationCloudWatchLoggingOption
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:applicationName:AddApplicationCloudWatchLoggingOption'
, addApplicationCloudWatchLoggingOption_applicationName
- The Kinesis Analytics application name.
$sel:currentApplicationVersionId:AddApplicationCloudWatchLoggingOption'
, addApplicationCloudWatchLoggingOption_currentApplicationVersionId
- The version ID of the Kinesis Analytics application.
$sel:cloudWatchLoggingOption:AddApplicationCloudWatchLoggingOption'
, addApplicationCloudWatchLoggingOption_cloudWatchLoggingOption
- Provides the CloudWatch log stream Amazon Resource Name (ARN) and the
IAM role ARN. Note: To write application messages to CloudWatch, the IAM
role that is used must have the PutLogEvents
policy action enabled.
Request Lenses
addApplicationCloudWatchLoggingOption_applicationName :: Lens' AddApplicationCloudWatchLoggingOption Text Source #
The Kinesis Analytics application name.
addApplicationCloudWatchLoggingOption_currentApplicationVersionId :: Lens' AddApplicationCloudWatchLoggingOption Natural Source #
The version ID of the Kinesis Analytics application.
addApplicationCloudWatchLoggingOption_cloudWatchLoggingOption :: Lens' AddApplicationCloudWatchLoggingOption CloudWatchLoggingOption Source #
Provides the CloudWatch log stream Amazon Resource Name (ARN) and the
IAM role ARN. Note: To write application messages to CloudWatch, the IAM
role that is used must have the PutLogEvents
policy action enabled.
Destructuring the Response
data AddApplicationCloudWatchLoggingOptionResponse Source #
See: newAddApplicationCloudWatchLoggingOptionResponse
smart constructor.
AddApplicationCloudWatchLoggingOptionResponse' | |
|
Instances
Eq AddApplicationCloudWatchLoggingOptionResponse Source # | |
Read AddApplicationCloudWatchLoggingOptionResponse Source # | |
Show AddApplicationCloudWatchLoggingOptionResponse Source # | |
Generic AddApplicationCloudWatchLoggingOptionResponse Source # | |
NFData AddApplicationCloudWatchLoggingOptionResponse Source # | |
type Rep AddApplicationCloudWatchLoggingOptionResponse Source # | |
Defined in Amazonka.KinesisAnalytics.AddApplicationCloudWatchLoggingOption type Rep AddApplicationCloudWatchLoggingOptionResponse = D1 ('MetaData "AddApplicationCloudWatchLoggingOptionResponse" "Amazonka.KinesisAnalytics.AddApplicationCloudWatchLoggingOption" "libZSservicesZSamazonka-kinesis-analyticsZSamazonka-kinesis-analytics" 'False) (C1 ('MetaCons "AddApplicationCloudWatchLoggingOptionResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newAddApplicationCloudWatchLoggingOptionResponse Source #
:: Int |
|
-> AddApplicationCloudWatchLoggingOptionResponse |
Create a value of AddApplicationCloudWatchLoggingOptionResponse
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:AddApplicationCloudWatchLoggingOptionResponse'
, addApplicationCloudWatchLoggingOptionResponse_httpStatus
- The response's http status code.
Response Lenses
addApplicationCloudWatchLoggingOptionResponse_httpStatus :: Lens' AddApplicationCloudWatchLoggingOptionResponse Int Source #
The response's http status code.