# CfnChannelProps

Properties for defining a `CfnChannel`.

Used as props by: [CfnChannel](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_cloudtrail.CfnChannel.html)

- Source: Generated at build time
- Type last changed: v2.64.0 · 9 Feb 2023

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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"
    } }
};
```

Golang:

```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

- `destinations`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnChannel.DestinationProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_cloudtrail.CfnChannel.DestinationProperty.html)[] — One or more event data stores to which events arriving through a channel will be logged.

- `name`: string — The name of the channel.

- `source`: string — The name of the partner or external event source.

  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](https://docs.aws.amazon.com/awscloudtrail/latest/userguide/query-event-data-store-integration.html#cloudtrail-lake-partner-information) in the CloudTrail User Guide.

- `tags`: [CfnTag](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[] — A list of tags.
