interface CfnDestinationProps
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Logs.CfnDestinationProps |
![]() | software.amazon.awscdk.services.logs.CfnDestinationProps |
![]() | aws_cdk.aws_logs.CfnDestinationProps |
![]() | @aws-cdk/aws-logs » CfnDestinationProps |
Properties for defining a CfnDestination
.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as logs from '@aws-cdk/aws-logs';
const cfnDestinationProps: logs.CfnDestinationProps = {
destinationName: 'destinationName',
roleArn: 'roleArn',
targetArn: 'targetArn',
// the properties below are optional
destinationPolicy: 'destinationPolicy',
};
Properties
Name | Type | Description |
---|---|---|
destination | string | The name of the destination. |
role | string | The ARN of an IAM role that permits CloudWatch Logs to send data to the specified AWS resource. |
target | string | The Amazon Resource Name (ARN) of the physical target where the log events are delivered (for example, a Kinesis stream). |
destination | string | An IAM policy document that governs which AWS accounts can create subscription filters against this destination. |
destinationName
Type:
string
The name of the destination.
roleArn
Type:
string
The ARN of an IAM role that permits CloudWatch Logs to send data to the specified AWS resource.
targetArn
Type:
string
The Amazon Resource Name (ARN) of the physical target where the log events are delivered (for example, a Kinesis stream).
destinationPolicy?
Type:
string
(optional)
An IAM policy document that governs which AWS accounts can create subscription filters against this destination.