CfnChannelProps Struct
Properties for defining a CfnChannel.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_cloudtrail as cloudtrail } from 'aws-cdk-lib';
const cfnChannelProps: cloudtrail.CfnChannelProps = {
destinations: [{
location: 'location',
type: 'type',
}],
name: 'name',
source: 'source',
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_cloudtrail as cloudtrail
cfn_channel_props = cloudtrail.CfnChannelProps(
destinations=[cloudtrail.CfnChannel.DestinationProperty(
location="location",
type="type"
)],
name="name",
source="source",
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.cloudtrail.*;
CfnChannelProps cfnChannelProps = CfnChannelProps.builder()
.destinations(List.of(DestinationProperty.builder()
.location("location")
.type("type")
.build()))
.name("name")
.source("source")
.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.CloudTrail;
var cfnChannelProps = new CfnChannelProps {
Destinations = new [] { new DestinationProperty {
Location = "location",
Type = "type"
} },
Name = "name",
Source = "source",
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"
cfnChannelProps := &CfnChannelProps{
Destinations: []interface{}{
&DestinationProperty{
Location: jsii.String("location"),
Type: jsii.String("type"),
},
},
Name: jsii.String("name"),
Source: jsii.String("source"),
Tags: []CfnTag{
&CfnTag{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
}
Properties
destinationsoptionalIResolvable | IResolvable | CfnChannel.DestinationProperty[]destinationsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, DestinationProperty]]]destinationsoptionalIResolvableDestinationsoptionalIResolvableDestinationsoptionalinterface{} #One or more event data stores to which events arriving through a channel will be logged.
The name of the channel.
sourceoptionalstringsourceoptionalstrsourceoptionalStringSourceoptionalstringSourceoptional*string #The name of the partner or external event source.
notes
You cannot change this name after you create the channel. A maximum of one channel is allowed per source.
A source can be either Custom for all valid non- AWS events, or the name of a partner event source. For information about the source names for available partners, see Additional information about integration partners in the CloudTrail User Guide.