class StreamEncryption
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.KinesisFirehose.StreamEncryption |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awskinesisfirehose#StreamEncryption |
Java | software.amazon.awscdk.services.kinesisfirehose.StreamEncryption |
Python | aws_cdk.aws_kinesisfirehose.StreamEncryption |
TypeScript (source) | aws-cdk-lib » aws_kinesisfirehose » StreamEncryption |
Represents server-side encryption for an Amazon Firehose Delivery Stream.
Example
declare const destination: firehose.IDestination;
// SSE with an AWS-owned key
new firehose.DeliveryStream(this, 'Delivery Stream with AWS Owned Key', {
encryption: firehose.StreamEncryption.awsOwnedKey(),
destination: destination,
});
// SSE with an customer-managed key that is created automatically by the CDK
new firehose.DeliveryStream(this, 'Delivery Stream with Customer Managed Key', {
encryption: firehose.StreamEncryption.customerManagedKey(),
destination: destination,
});
// SSE with an customer-managed key that is explicitly specified
declare const key: kms.Key;
new firehose.DeliveryStream(this, 'Delivery Stream with Customer Managed and Provided Key', {
encryption: firehose.StreamEncryption.customerManagedKey(key),
destination: destination,
});
Properties
| Name | Type | Description |
|---|---|---|
| type | Stream | The type of server-side encryption for the Amazon Firehose delivery stream. |
| encryption | IKey | Optional KMS key used for customer managed encryption. |
type
Type:
Stream
The type of server-side encryption for the Amazon Firehose delivery stream.
encryptionKey?
Type:
IKey
(optional)
Optional KMS key used for customer managed encryption.
Methods
| Name | Description |
|---|---|
| static aws | Configure server-side encryption using an AWS owned key. |
| static customer | Configure server-side encryption using customer managed keys. |
| static unencrypted() | No server-side encryption is configured. |
static awsOwnedKey()
public static awsOwnedKey(): StreamEncryption
Returns
Configure server-side encryption using an AWS owned key.
static customerManagedKey(encryptionKey?)
public static customerManagedKey(encryptionKey?: IKey): StreamEncryption
Parameters
- encryptionKey
IKey— the KMS key for the delivery stream.
Returns
Configure server-side encryption using customer managed keys.
static unencrypted()
public static unencrypted(): StreamEncryption
Returns
No server-side encryption is configured.

.NET
Go
Java
Python
TypeScript (