Class CfnTrustedEntitySetMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.guardduty.CfnTrustedEntitySetMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTrustedEntitySetMixinProps>
- Enclosing interface:
CfnTrustedEntitySetMixinProps
@Stability(Stable)
public static final class CfnTrustedEntitySetMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTrustedEntitySetMixinProps>
A builder for
CfnTrustedEntitySetMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnTrustedEntitySetMixinProps.getActivate()activate(IResolvable activate) Sets the value ofCfnTrustedEntitySetMixinProps.getActivate()build()Builds the configured instance.detectorId(String detectorId) Sets the value ofCfnTrustedEntitySetMixinProps.getDetectorId()expectedBucketOwner(String expectedBucketOwner) Sets the value ofCfnTrustedEntitySetMixinProps.getExpectedBucketOwner()Sets the value ofCfnTrustedEntitySetMixinProps.getFormat()Sets the value ofCfnTrustedEntitySetMixinProps.getLocation()Sets the value ofCfnTrustedEntitySetMixinProps.getName()tags(List<? extends CfnTrustedEntitySetPropsMixin.TagItemProperty> tags) Sets the value ofCfnTrustedEntitySetMixinProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
activate
Sets the value ofCfnTrustedEntitySetMixinProps.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 ofCfnTrustedEntitySetMixinProps.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 ofCfnTrustedEntitySetMixinProps.getDetectorId()- Parameters:
detectorId- The unique regional detector ID of the GuardDuty account for which you want to create a trusted 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 CfnTrustedEntitySetMixinProps.Builder expectedBucketOwner(String expectedBucketOwner) Sets the value ofCfnTrustedEntitySetMixinProps.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 theDetectorIdvalue owns 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 ofCfnTrustedEntitySetMixinProps.getFormat()- Parameters:
format- The format of the file that contains the trusted entity set. For information about supported formats, see List formats in the Amazon GuardDuty User Guide .- Returns:
this
-
location
Sets the value ofCfnTrustedEntitySetMixinProps.getLocation()- Parameters:
location- The URI of the file that contains the trusted entity set.- Returns:
this
-
name
Sets the value ofCfnTrustedEntitySetMixinProps.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 CfnTrustedEntitySetMixinProps.Builder tags(List<? extends CfnTrustedEntitySetPropsMixin.TagItemProperty> tags) Sets the value ofCfnTrustedEntitySetMixinProps.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:
buildin interfacesoftware.amazon.jsii.Builder<CfnTrustedEntitySetMixinProps>- Returns:
- a new instance of
CfnTrustedEntitySetMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-