# DeliveryStreamEncryptionConfigurationInputProperty

Specifies the type and Amazon Resource Name (ARN) of the CMK to use for Server-Side Encryption (SSE).

- 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_kinesisfirehose as kinesisfirehose } from 'aws-cdk-lib';
const deliveryStreamEncryptionConfigurationInputProperty: kinesisfirehose.CfnDeliveryStream.DeliveryStreamEncryptionConfigurationInputProperty = {
  keyType: 'keyType',

  // the properties below are optional
  keyArn: 'keyArn',
};
```

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_kinesisfirehose as kinesisfirehose

delivery_stream_encryption_configuration_input_property = kinesisfirehose.CfnDeliveryStream.DeliveryStreamEncryptionConfigurationInputProperty(
    key_type="keyType",

    # the properties below are optional
    key_arn="keyArn"
)
```

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

DeliveryStreamEncryptionConfigurationInputProperty deliveryStreamEncryptionConfigurationInputProperty = DeliveryStreamEncryptionConfigurationInputProperty.builder()
        .keyType("keyType")

        // the properties below are optional
        .keyArn("keyArn")
        .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.KinesisFirehose;

var deliveryStreamEncryptionConfigurationInputProperty = new DeliveryStreamEncryptionConfigurationInputProperty {
    KeyType = "keyType",

    // the properties below are optional
    KeyArn = "keyArn"
};
```

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"

deliveryStreamEncryptionConfigurationInputProperty := &DeliveryStreamEncryptionConfigurationInputProperty{
	KeyType: jsii.String("keyType"),

	// the properties below are optional
	KeyArn: jsii.String("keyArn"),
}
```

## Properties

- `keyArn`: string — If you set `KeyType` to `CUSTOMER_MANAGED_CMK` , you must specify the Amazon Resource Name (ARN) of the CMK.

  If you set `KeyType` to `AWS _OWNED_CMK` , Firehose uses a service-account CMK.

- `keyType`: string (required) — Indicates the type of customer master key (CMK) to use for encryption.

  The default setting is `AWS_OWNED_CMK` . For more information about CMKs, see [Customer Master Keys (CMKs)](https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#master_keys) .

  You can use a CMK of type CUSTOMER_MANAGED_CMK to encrypt up to 500 delivery streams.

  > To encrypt your delivery stream, use symmetric CMKs. Kinesis Data Firehose doesn't support asymmetric CMKs. For information about symmetric and asymmetric CMKs, see [About Symmetric and Asymmetric CMKs](https://docs.aws.amazon.com/kms/latest/developerguide/symm-asymm-concepts.html) in the AWS Key Management Service developer guide.
