Class CfnTrustedEntitySetProps.Builder
java.lang.Object
software.amazon.awscdk.services.guardduty.CfnTrustedEntitySetProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTrustedEntitySetProps>
- Enclosing interface:
CfnTrustedEntitySetProps
@Stability(Stable)
public static final class CfnTrustedEntitySetProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTrustedEntitySetProps>
A builder for
CfnTrustedEntitySetProps
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnTrustedEntitySetProps.getActivate()
activate
(IResolvable activate) Sets the value ofCfnTrustedEntitySetProps.getActivate()
build()
Builds the configured instance.detectorId
(String detectorId) Sets the value ofCfnTrustedEntitySetProps.getDetectorId()
expectedBucketOwner
(String expectedBucketOwner) Sets the value ofCfnTrustedEntitySetProps.getExpectedBucketOwner()
Sets the value ofCfnTrustedEntitySetProps.getFormat()
Sets the value ofCfnTrustedEntitySetProps.getLocation()
Sets the value ofCfnTrustedEntitySetProps.getName()
tags
(List<? extends CfnTrustedEntitySet.TagItemProperty> tags) Sets the value ofCfnTrustedEntitySetProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
format
Sets the value ofCfnTrustedEntitySetProps.getFormat()
- Parameters:
format
- The format of the file that contains the trusted 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 ofCfnTrustedEntitySetProps.getLocation()
- Parameters:
location
- The URI of the file that contains the trusted entity set. This parameter is required.- Returns:
this
-
activate
Sets the value ofCfnTrustedEntitySetProps.getActivate()
- Parameters:
activate
- A boolean value that determines if GuardDuty can start using this list for custom threat detection. For GuardDuty to prevent generating findings based on an activity associated with these entries, this list must be active.- Returns:
this
-
activate
Sets the value ofCfnTrustedEntitySetProps.getActivate()
- Parameters:
activate
- A boolean value that determines if GuardDuty can start using this list for custom threat detection. For GuardDuty to prevent generating findings based on an activity associated with these entries, this list must be active.- Returns:
this
-
detectorId
Sets the value ofCfnTrustedEntitySetProps.getDetectorId()
- Parameters:
detectorId
- The unique regional detector ID of the GuardDuty account for which you want to create a trusted 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 CfnTrustedEntitySetProps.Builder expectedBucketOwner(String expectedBucketOwner) Sets the value ofCfnTrustedEntitySetProps.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
value 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 ofCfnTrustedEntitySetProps.getName()
- Parameters:
name
- A user-friendly name to identify the trusted entity set. Valid characters include lowercase letters, uppercase letters, numbers, dash(-), and underscore (_).- Returns:
this
-
tags
@Stability(Stable) public CfnTrustedEntitySetProps.Builder tags(List<? extends CfnTrustedEntitySet.TagItemProperty> tags) Sets the value ofCfnTrustedEntitySetProps.getTags()
- Parameters:
tags
- The tags to be added to a new trusted 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<CfnTrustedEntitySetProps>
- Returns:
- a new instance of
CfnTrustedEntitySetProps
- Throws:
NullPointerException
- if any required attribute was not provided
-