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>
A builder for
CfnGuardHook.S3LocationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnGuardHook.S3LocationProperty.getUri()
Sets the value ofCfnGuardHook.S3LocationProperty.getVersionId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
uri
Sets the value ofCfnGuardHook.S3LocationProperty.getUri()
- Parameters:
uri
- Specifies the S3 path to the file containing your Guard rules or input parameters (in the forms3://<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
Sets the value ofCfnGuardHook.S3LocationProperty.getVersionId()
- 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
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnGuardHook.S3LocationProperty>
- Returns:
- a new instance of
CfnGuardHook.S3LocationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-