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',
}],
};
python
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_logs as logs
cfn_destination_props = logs.CfnDestinationProps(
destination_name="destinationName",
role_arn="roleArn",
target_arn="targetArn",
# the properties below are optional
destination_policy="destinationPolicy",
tags=[CfnTag(
key="key",
value="value"
)]
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.logs.*;
CfnDestinationProps cfnDestinationProps = CfnDestinationProps.builder()
.destinationName("destinationName")
.roleArn("roleArn")
.targetArn("targetArn")
// the properties below are optional
.destinationPolicy("destinationPolicy")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Logs;
var cfnDestinationProps = new CfnDestinationProps {
DestinationName = "destinationName",
RoleArn = "roleArn",
TargetArn = "targetArn",
// the properties below are optional
DestinationPolicy = "destinationPolicy",
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
cfnDestinationProps := &CfnDestinationProps{
DestinationName: jsii.String("destinationName"),
RoleArn: jsii.String("roleArn"),
TargetArn: jsii.String("targetArn"),
// the properties below are optional
DestinationPolicy: jsii.String("destinationPolicy"),
Tags: []CfnTag{
&CfnTag{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
}
Properties
destinationNamestringdestination_namestrdestinationNameStringDestinationNamestringDestinationName*stringrequired#The name of the destination.
destinationPolicyoptionalstringdestination_policyoptionalstrdestinationPolicyoptionalStringDestinationPolicyoptionalstringDestinationPolicyoptional*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.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag#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).