AWS::Logs::DestinationThe AWS::Logs::Destination resource specifies a CloudWatch Logs destination. A destination encapsulates a physical resource (such as an Amazon Kinesis data stream) and enables you to subscribe that resource to a stream of log events.
import { CfnDestination } from 'aws-cdk-lib/aws-logs';Or use the module namespace:
import * as logs from 'aws-cdk-lib/aws-logs';
// logs.CfnDestinationConfiguration passed to the constructor as CfnDestinationProps.
destinationNameRequiredstringThe name of the destination.
roleArnRequiredstring | IRoleRefThe ARN of an IAM role that permits CloudWatch Logs to send data to the specified AWS resource.
targetArnRequiredstring | IStreamRef | IDeliveryStreamRef | IFunctionRefThe Amazon Resource Name (ARN) of the physical target where the log events are delivered (for example, a Kinesis stream).
destinationPolicyOptionalstringAn IAM policy document that governs which AWS accounts can create subscription filters against this destination.
tagsOptionalCfnTag[]The tags that have been assigned to this delivery destination.
This L1 construct maps directly to the following CloudFormation resource type.
Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to Newsletteraws-logsAWS::Logs::Destination