Class CfnThreatEntitySetMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.guardduty.CfnThreatEntitySetMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnThreatEntitySetMixinProps>
- Enclosing interface:
CfnThreatEntitySetMixinProps
@Stability(Stable)
public static final class CfnThreatEntitySetMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnThreatEntitySetMixinProps>
A builder for
CfnThreatEntitySetMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnThreatEntitySetMixinProps.getActivate()activate(IResolvable activate) Sets the value ofCfnThreatEntitySetMixinProps.getActivate()build()Builds the configured instance.detectorId(String detectorId) Sets the value ofCfnThreatEntitySetMixinProps.getDetectorId()expectedBucketOwner(String expectedBucketOwner) Sets the value ofCfnThreatEntitySetMixinProps.getExpectedBucketOwner()Sets the value ofCfnThreatEntitySetMixinProps.getFormat()Sets the value ofCfnThreatEntitySetMixinProps.getLocation()Sets the value ofCfnThreatEntitySetMixinProps.getName()tags(List<? extends CfnThreatEntitySetPropsMixin.TagItemProperty> tags) Sets the value ofCfnThreatEntitySetMixinProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
activate
Sets the value ofCfnThreatEntitySetMixinProps.getActivate()- Parameters:
activate- A boolean value that determines if GuardDuty can start using this list for custom threat detection. For GuardDuty to consider the entries in this list and generate findings based on associated activity, this list must be active.- Returns:
this
-
activate
Sets the value ofCfnThreatEntitySetMixinProps.getActivate()- Parameters:
activate- A boolean value that determines if GuardDuty can start using this list for custom threat detection. For GuardDuty to consider the entries in this list and generate findings based on associated activity, this list must be active.- Returns:
this
-
detectorId
Sets the value ofCfnThreatEntitySetMixinProps.getDetectorId()- Parameters:
detectorId- The unique regional detector ID of the GuardDuty account for which you want to create a threat entity set. To find thedetectorIdin the current Region, see the Settings page in the GuardDuty console, or run the ListDetectors API.- Returns:
this
-
expectedBucketOwner
@Stability(Stable) public CfnThreatEntitySetMixinProps.Builder expectedBucketOwner(String expectedBucketOwner) Sets the value ofCfnThreatEntitySetMixinProps.getExpectedBucketOwner()- Parameters:
expectedBucketOwner- The AWS account ID that owns the Amazon S3 bucket specified in the Location field. Whether or not you provide the account ID for this optional field, GuardDuty validates that the account ID associated with theDetectorIdowns the S3 bucket in theLocationfield. If GuardDuty finds that this S3 bucket doesn't belong to the specified account ID, you will get an error at the time of activating this list.- Returns:
this
-
format
Sets the value ofCfnThreatEntitySetMixinProps.getFormat()- Parameters:
format- The format of the file that contains the threat entity set. For information about supported formats, see List formats in the Amazon GuardDuty User Guide .- Returns:
this
-
location
Sets the value ofCfnThreatEntitySetMixinProps.getLocation()- Parameters:
location- The URI of the file that contains the threat entity set.- Returns:
this
-
name
Sets the value ofCfnThreatEntitySetMixinProps.getName()- Parameters:
name- The user-friendly name to identify the threat entity set. Valid characters are alphanumeric, whitespace, dash (-), and underscores (_).- Returns:
this
-
tags
@Stability(Stable) public CfnThreatEntitySetMixinProps.Builder tags(List<? extends CfnThreatEntitySetPropsMixin.TagItemProperty> tags) Sets the value ofCfnThreatEntitySetMixinProps.getTags()- Parameters:
tags- The tags to be added to a new threat entity set resource. Each tag consists of a key and an optional value, both of which you define.For more information, see Tag .
- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnThreatEntitySetMixinProps>- Returns:
- a new instance of
CfnThreatEntitySetMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-