Class CfnAccountPolicyProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAccountPolicyProps>
- Enclosing interface:
CfnAccountPolicyProps
CfnAccountPolicyProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.policyDocument(String policyDocument) Sets the value ofCfnAccountPolicyProps.getPolicyDocument()policyName(String policyName) Sets the value ofCfnAccountPolicyProps.getPolicyName()policyType(String policyType) Sets the value ofCfnAccountPolicyProps.getPolicyType()Sets the value ofCfnAccountPolicyProps.getScope()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
policyDocument
Sets the value ofCfnAccountPolicyProps.getPolicyDocument()- Parameters:
policyDocument- Specify the data protection policy, in JSON. This parameter is required. This policy must include two JSON blocks:- The first block must include both a
DataIdentiferarray and anOperationproperty with anAuditaction. TheDataIdentiferarray lists the types of sensitive data that you want to mask. For more information about the available options, see Types of data that you can mask .
The
Operationproperty with anAuditaction is required to find the sensitive data terms. ThisAuditaction must contain aFindingsDestinationobject. You can optionally use thatFindingsDestinationobject to list one or more destinations to send audit findings to. If you specify destinations such as log groups, Kinesis Data Firehose streams, and S3 buckets, they must already exist.- The second block must include both a
DataIdentiferarray and anOperationproperty with anDeidentifyaction. TheDataIdentiferarray must exactly match theDataIdentiferarray in the first block of the policy.
The
Operationproperty with theDeidentifyaction is what actually masks the data, and it must contain the"MaskConfig": {}object. The"MaskConfig": {}object must be empty.The contents of the two
DataIdentiferarrays must match exactly.- The first block must include both a
- Returns:
this
-
policyName
Sets the value ofCfnAccountPolicyProps.getPolicyName()- Parameters:
policyName- A name for the policy. This parameter is required. This must be unique within the account.- Returns:
this
-
policyType
Sets the value ofCfnAccountPolicyProps.getPolicyType()- Parameters:
policyType- Currently the only valid value for this parameter isDATA_PROTECTION_POLICY. This parameter is required.- Returns:
this
-
scope
Sets the value ofCfnAccountPolicyProps.getScope()- Parameters:
scope- Currently the only valid value for this parameter isALL, which specifies that the data protection policy applies to all log groups in the account. If you omit this parameter, the default ofALLis used.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnAccountPolicyProps>- Returns:
- a new instance of
CfnAccountPolicyProps - Throws:
NullPointerException- if any required attribute was not provided
-