Class CfnAnalyzerProps.Builder
java.lang.Object
software.amazon.awscdk.services.accessanalyzer.CfnAnalyzerProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAnalyzerProps>
- Enclosing interface:
CfnAnalyzerProps
@Stability(Stable)
public static final class CfnAnalyzerProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAnalyzerProps>
A builder for
CfnAnalyzerProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionanalyzerConfiguration(IResolvable analyzerConfiguration) Sets the value ofCfnAnalyzerProps.getAnalyzerConfiguration()analyzerConfiguration(CfnAnalyzer.AnalyzerConfigurationProperty analyzerConfiguration) Sets the value ofCfnAnalyzerProps.getAnalyzerConfiguration()analyzerName(String analyzerName) Sets the value ofCfnAnalyzerProps.getAnalyzerName()archiveRules(List<? extends Object> archiveRules) Sets the value ofCfnAnalyzerProps.getArchiveRules()archiveRules(IResolvable archiveRules) Sets the value ofCfnAnalyzerProps.getArchiveRules()build()Builds the configured instance.Sets the value ofCfnAnalyzerProps.getTags()Sets the value ofCfnAnalyzerProps.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
type
Sets the value ofCfnAnalyzerProps.getType()- Parameters:
type- The type represents the zone of trust for the analyzer. This parameter is required. Allowed Values : ACCOUNT | ORGANIZATION | ACCOUNT_UNUSED_ACCESS | ACCOUNT_INTERNAL_ACCESS | ORGANIZATION_INTERNAL_ACCESS | ORGANIZATION_UNUSED_ACCESS- Returns:
this
-
analyzerConfiguration
@Stability(Stable) public CfnAnalyzerProps.Builder analyzerConfiguration(IResolvable analyzerConfiguration) Sets the value ofCfnAnalyzerProps.getAnalyzerConfiguration()- Parameters:
analyzerConfiguration- Contains information about the configuration of an analyzer for an AWS organization or account.- Returns:
this
-
analyzerConfiguration
@Stability(Stable) public CfnAnalyzerProps.Builder analyzerConfiguration(CfnAnalyzer.AnalyzerConfigurationProperty analyzerConfiguration) Sets the value ofCfnAnalyzerProps.getAnalyzerConfiguration()- Parameters:
analyzerConfiguration- Contains information about the configuration of an analyzer for an AWS organization or account.- Returns:
this
-
analyzerName
Sets the value ofCfnAnalyzerProps.getAnalyzerName()- Parameters:
analyzerName- The name of the analyzer.- Returns:
this
-
archiveRules
Sets the value ofCfnAnalyzerProps.getArchiveRules()- Parameters:
archiveRules- Specifies the archive rules to add for the analyzer. Archive rules automatically archive findings that meet the criteria you define for the rule.- Returns:
this
-
archiveRules
@Stability(Stable) public CfnAnalyzerProps.Builder archiveRules(List<? extends Object> archiveRules) Sets the value ofCfnAnalyzerProps.getArchiveRules()- Parameters:
archiveRules- Specifies the archive rules to add for the analyzer. Archive rules automatically archive findings that meet the criteria you define for the rule.- Returns:
this
-
tags
Sets the value ofCfnAnalyzerProps.getTags()- Parameters:
tags- An array of key-value pairs to apply to the analyzer. You can use the set of Unicode letters, digits, whitespace,_,.,/,=,+, and-.For the tag key, you can specify a value that is 1 to 128 characters in length and cannot be prefixed with
aws:.For the tag value, you can specify a value that is 0 to 256 characters in length.
- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnAnalyzerProps>- Returns:
- a new instance of
CfnAnalyzerProps - Throws:
NullPointerException- if any required attribute was not provided
-