- Navigation GuideYou are on a Command (operation) page with structural examples. Use the navigation breadcrumb if you would like to return to the Client landing page.
DeleteApplicationCloudWatchLoggingOptionCommand
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 .
Deletes a CloudWatch log stream from an application. For more information about using CloudWatch log streams with Amazon Kinesis Analytics applications, see Working with Amazon CloudWatch Logs .
Example Syntax
Use a bare-bones client and the command you need to make an API call.
import { KinesisAnalyticsClient, DeleteApplicationCloudWatchLoggingOptionCommand } from "@aws-sdk/client-kinesis-analytics"; // ES Modules import
// const { KinesisAnalyticsClient, DeleteApplicationCloudWatchLoggingOptionCommand } = require("@aws-sdk/client-kinesis-analytics"); // CommonJS import
const client = new KinesisAnalyticsClient(config);
const input = { // DeleteApplicationCloudWatchLoggingOptionRequest
ApplicationName: "STRING_VALUE", // required
CurrentApplicationVersionId: Number("long"), // required
CloudWatchLoggingOptionId: "STRING_VALUE", // required
};
const command = new DeleteApplicationCloudWatchLoggingOptionCommand(input);
const response = await client.send(command);
// {};
DeleteApplicationCloudWatchLoggingOptionCommand Input
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
ApplicationName Required | string | undefined | The Kinesis Analytics application name. |
CloudWatchLoggingOptionId Required | string | undefined | The |
CurrentApplicationVersionId Required | number | undefined | The version ID of the Kinesis Analytics application. |
DeleteApplicationCloudWatchLoggingOptionCommand Output
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
$metadata Required | ResponseMetadata | Metadata pertaining to this request. |
Throws
Name | Fault | Details |
---|
Name | Fault | Details |
---|---|---|
ConcurrentModificationException | client | Exception thrown as a result of concurrent modification to an application. For example, two individuals attempting to edit the same application at the same time. |
InvalidArgumentException | client | Specified input parameter value is invalid. |
ResourceInUseException | client | Application is not available for this operation. |
ResourceNotFoundException | client | Specified application can't be found. |
UnsupportedOperationException | client | The request was rejected because a specified parameter is not supported or a specified resource is not valid for this operation. |
KinesisAnalyticsServiceException | Base exception class for all service exceptions from KinesisAnalytics service. |