aws-cdk-lib.aws_logs.DataProtectionPolicy
class DataProtectionPolicy
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Logs.DataProtectionPolicy |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awslogs#DataProtectionPolicy |
![]() | software.amazon.awscdk.services.logs.DataProtectionPolicy |
![]() | aws_cdk.aws_logs.DataProtectionPolicy |
![]() | aws-cdk-lib » aws_logs » DataProtectionPolicy |
Creates a data protection policy for CloudWatch Logs log groups.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_logs as logs } from 'aws-cdk-lib';
import { aws_s3 as s3 } from 'aws-cdk-lib';
declare const bucket: s3.Bucket;
declare const dataIdentifier: logs.DataIdentifier;
declare const logGroup: logs.LogGroup;
const dataProtectionPolicy = new logs.DataProtectionPolicy({
identifiers: [dataIdentifier],
// the properties below are optional
deliveryStreamNameAuditDestination: 'deliveryStreamNameAuditDestination',
description: 'description',
logGroupAuditDestination: logGroup,
name: 'name',
s3BucketAuditDestination: bucket,
});
Initializer
new DataProtectionPolicy(props: DataProtectionPolicyProps)
Parameters