Class CfnThreatEntitySetProps.Builder
java.lang.Object
software.amazon.awscdk.services.guardduty.CfnThreatEntitySetProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnThreatEntitySetProps>
- Enclosing interface:
CfnThreatEntitySetProps
@Stability(Stable)
public static final class CfnThreatEntitySetProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnThreatEntitySetProps>
A builder for
CfnThreatEntitySetProps
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnThreatEntitySetProps.getActivate()
activate
(IResolvable activate) Sets the value ofCfnThreatEntitySetProps.getActivate()
build()
Builds the configured instance.detectorId
(String detectorId) Sets the value ofCfnThreatEntitySetProps.getDetectorId()
expectedBucketOwner
(String expectedBucketOwner) Sets the value ofCfnThreatEntitySetProps.getExpectedBucketOwner()
Sets the value ofCfnThreatEntitySetProps.getFormat()
Sets the value ofCfnThreatEntitySetProps.getLocation()
Sets the value ofCfnThreatEntitySetProps.getName()
tags
(List<? extends CfnThreatEntitySet.TagItemProperty> tags) Sets the value ofCfnThreatEntitySetProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
format
Sets the value ofCfnThreatEntitySetProps.getFormat()
- Parameters:
format
- The format of the file that contains the threat entity set. This parameter is required. For information about supported formats, see List formats in the Amazon GuardDuty User Guide .- Returns:
this
-
location
Sets the value ofCfnThreatEntitySetProps.getLocation()
- Parameters:
location
- The URI of the file that contains the threat entity set. This parameter is required.- Returns:
this
-
activate
Sets the value ofCfnThreatEntitySetProps.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 ofCfnThreatEntitySetProps.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 ofCfnThreatEntitySetProps.getDetectorId()
- Parameters:
detectorId
- The unique regional detector ID of the GuardDuty account for which you want to create a threat entity set. To find thedetectorId
in the current Region, see the Settings page in the GuardDuty console, or run the ListDetectors API.- Returns:
this
-
expectedBucketOwner
@Stability(Stable) public CfnThreatEntitySetProps.Builder expectedBucketOwner(String expectedBucketOwner) Sets the value ofCfnThreatEntitySetProps.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 theDetectorId
owns the S3 bucket in theLocation
field. 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
-
name
Sets the value ofCfnThreatEntitySetProps.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 CfnThreatEntitySetProps.Builder tags(List<? extends CfnThreatEntitySet.TagItemProperty> tags) Sets the value ofCfnThreatEntitySetProps.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:
build
in interfacesoftware.amazon.jsii.Builder<CfnThreatEntitySetProps>
- Returns:
- a new instance of
CfnThreatEntitySetProps
- Throws:
NullPointerException
- if any required attribute was not provided
-