Class CfnGuardHook.S3LocationProperty.Builder

java.lang.Object
software.amazon.awscdk.services.cloudformation.CfnGuardHook.S3LocationProperty.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnGuardHook.S3LocationProperty>
Enclosing interface:
CfnGuardHook.S3LocationProperty

@Stability(Stable) public static final class CfnGuardHook.S3LocationProperty.Builder extends Object implements software.amazon.jsii.Builder<CfnGuardHook.S3LocationProperty>
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • uri

      @Stability(Stable) public CfnGuardHook.S3LocationProperty.Builder uri(String uri)
      Parameters:
      uri - Specifies the S3 path to the file containing your Guard rules or input parameters (in the form s3://<bucket name>/<file name> ). This parameter is required. For Guard rules, the object stored in S3 must have one of the following file extensions: .guard , .zip , or .tar.gz .

      For input parameters, the object stored in S3 must have one of the following file extensions: .yaml , .json , .zip , or .tar.gz .

      Returns:
      this
    • versionId

      @Stability(Stable) public CfnGuardHook.S3LocationProperty.Builder versionId(String versionId)
      Parameters:
      versionId - For S3 buckets with versioning enabled, specifies the unique ID of the S3 object version to download your Guard rules or input parameters from. The Guard Hook downloads files from S3 every time the Hook is invoked. To prevent accidental changes or deletions, we recommend using a version when configuring your Guard Hook.
      Returns:
      this
    • build

      @Stability(Stable) public CfnGuardHook.S3LocationProperty build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnGuardHook.S3LocationProperty>
      Returns:
      a new instance of CfnGuardHook.S3LocationProperty
      Throws:
      NullPointerException - if any required attribute was not provided