# DestinationProperty

Contains information about the destination receiving events.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 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 destinationProperty: cloudtrail.CfnChannel.DestinationProperty = {
  location: 'location',
  type: 'type',
};
```

Python:

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

destination_property = cloudtrail.CfnChannel.DestinationProperty(
    location="location",
    type="type"
)
```

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.*;

DestinationProperty destinationProperty = DestinationProperty.builder()
        .location("location")
        .type("type")
        .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 destinationProperty = new DestinationProperty {
    Location = "location",
    Type = "type"
};
```

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"

destinationProperty := &DestinationProperty{
	Location: jsii.String("location"),
	Type: jsii.String("type"),
}
```

## Properties

- `location`: string (required) — For channels used for a CloudTrail Lake integration, the location is the ARN of an event data store that receives events from a channel.

  For service-linked channels, the location is the name of the AWS service.

- `type`: string (required) — The type of destination for events arriving from a channel.

  For channels used for a CloudTrail Lake integration, the value is `EVENT_DATA_STORE` . For service-linked channels, the value is `AWS_SERVICE` .
