CfnDestinationProps Struct
Properties for defining a CfnDestination.
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_logs as logs } from 'aws-cdk-lib';
const cfnDestinationProps: logs.CfnDestinationProps = {
destinationName: 'destinationName',
roleArn: 'roleArn',
targetArn: 'targetArn',
// the properties below are optional
destinationPolicy: 'destinationPolicy',
tags: [{
key: 'key',
value: 'value',
}],
};
Properties
destinationNamestringdestination_namestrdestinationNameStringDestinationNamestringDestinationName*stringrequired#The name of the destination.
destinationPolicystringdestination_policystrdestinationPolicyStringDestinationPolicystringDestinationPolicy*string#An IAM policy document that governs which AWS accounts can create subscription filters against this destination.
roleArnstring | IRoleRefrole_arntyping.Union[str, IRoleRef]roleArnStringRoleArnstringRoleArninterface{}required#The ARN of an IAM role that permits CloudWatch Logs to send data to the specified AWS resource.
The tags that have been assigned to this delivery destination.
targetArnstring | IStreamRef | IDeliveryStreamRef | IFunctionReftarget_arntyping.Union[str, IStreamRef, IDeliveryStreamRef, IFunctionRef]targetArnStringTargetArnstringTargetArninterface{}required#The Amazon Resource Name (ARN) of the physical target where the log events are delivered (for example, a Kinesis stream).