Class CfnAnalyzer.Builder

java.lang.Object
software.amazon.awscdk.services.accessanalyzer.CfnAnalyzer.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAnalyzer>
Enclosing class:
CfnAnalyzer

@Stability(Stable) public static final class CfnAnalyzer.Builder extends Object implements software.amazon.jsii.Builder<CfnAnalyzer>
A fluent builder for CfnAnalyzer.
  • Method Details

    • create

      @Stability(Stable) public static CfnAnalyzer.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnAnalyzer.Builder.
    • type

      @Stability(Stable) public CfnAnalyzer.Builder type(String type)
      The type represents the zone of trust for the analyzer.

      Allowed Values : ACCOUNT | ORGANIZATION

      Parameters:
      type - The type represents the zone of trust for the analyzer. This parameter is required.
      Returns:
      this
    • analyzerName

      @Stability(Stable) public CfnAnalyzer.Builder analyzerName(String analyzerName)
      The name of the analyzer.

      Parameters:
      analyzerName - The name of the analyzer. This parameter is required.
      Returns:
      this
    • archiveRules

      @Stability(Stable) public CfnAnalyzer.Builder archiveRules(IResolvable archiveRules)
      Specifies the archive rules to add for the analyzer.

      Parameters:
      archiveRules - Specifies the archive rules to add for the analyzer. This parameter is required.
      Returns:
      this
    • archiveRules

      @Stability(Stable) public CfnAnalyzer.Builder archiveRules(List<? extends Object> archiveRules)
      Specifies the archive rules to add for the analyzer.

      Parameters:
      archiveRules - Specifies the archive rules to add for the analyzer. This parameter is required.
      Returns:
      this
    • tags

      @Stability(Stable) public CfnAnalyzer.Builder tags(List<? extends CfnTag> tags)
      The tags to apply to the analyzer.

      Parameters:
      tags - The tags to apply to the analyzer. This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public CfnAnalyzer build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnAnalyzer>
      Returns:
      a newly built instance of CfnAnalyzer.