Interface DataProtectionPolicyProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
DataProtectionPolicyProps.Jsii$Proxy
Example:
import software.amazon.awscdk.services.kinesisfirehose.*;
LogGroup logGroupDestination = LogGroup.Builder.create(this, "LogGroupLambdaAudit")
.logGroupName("auditDestinationForCDK")
.build();
Bucket bucket = new Bucket(this, "audit-bucket");
S3Bucket s3Destination = new S3Bucket(bucket);
DeliveryStream deliveryStream = DeliveryStream.Builder.create(this, "Delivery Stream")
.destination(s3Destination)
.build();
DataProtectionPolicy dataProtectionPolicy = DataProtectionPolicy.Builder.create()
.name("data protection policy")
.description("policy description")
.identifiers(List.of(DataIdentifier.DRIVERSLICENSE_US, // managed data identifier
new DataIdentifier("EmailAddress"), // forward compatibility for new managed data identifiers
new CustomDataIdentifier("EmployeeId", "EmployeeId-\\d{9}"))) // custom data identifier
.logGroupAuditDestination(logGroupDestination)
.s3BucketAuditDestination(bucket)
.deliveryStreamNameAuditDestination(deliveryStream.getDeliveryStreamName())
.build();
LogGroup.Builder.create(this, "LogGroupLambda")
.logGroupName("cdkIntegLogGroup")
.dataProtectionPolicy(dataProtectionPolicy)
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forDataProtectionPolicyPropsstatic final classAn implementation forDataProtectionPolicyProps -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default StringAmazon Data Firehose delivery stream to send audit findings to.default StringDescription of the data protection policy.List of data protection identifiers.default ILogGroupCloudWatch Logs log group to send audit findings to.default StringgetName()Name of the data protection policy.default IBucketRefS3 bucket to send audit findings to.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getIdentifiers
List of data protection identifiers.Managed data identifiers must be in the following list: https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CWL-managed-data-identifiers.html Custom data identifiers must have a valid regex defined: https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CWL-custom-data-identifiers.html#custom-data-identifiers-constraints
-
getDeliveryStreamNameAuditDestination
Amazon Data Firehose delivery stream to send audit findings to.The delivery stream must already exist.
Default: - no firehose delivery stream audit destination
-
getDescription
Description of the data protection policy.Default: - 'cdk generated data protection policy'
-
getLogGroupAuditDestination
CloudWatch Logs log group to send audit findings to.The log group must already exist prior to creating the data protection policy.
Default: - no CloudWatch Logs audit destination
-
getName
Name of the data protection policy.Default: - 'data-protection-policy-cdk'
-
getS3BucketAuditDestination
S3 bucket to send audit findings to.The bucket must already exist.
Default: - no S3 bucket audit destination
-
builder
- Returns:
- a
DataProtectionPolicyProps.BuilderofDataProtectionPolicyProps
-