Class CfnGuardHookPropsMixin.S3LocationProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.cloudformation.CfnGuardHookPropsMixin.S3LocationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnGuardHookPropsMixin.S3LocationProperty>
- Enclosing interface:
CfnGuardHookPropsMixin.S3LocationProperty
@Stability(Stable)
public static final class CfnGuardHookPropsMixin.S3LocationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnGuardHookPropsMixin.S3LocationProperty>
A builder for
CfnGuardHookPropsMixin.S3LocationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnGuardHookPropsMixin.S3LocationProperty.getUri()Sets the value ofCfnGuardHookPropsMixin.S3LocationProperty.getVersionId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
uri
Sets the value ofCfnGuardHookPropsMixin.S3LocationProperty.getUri()- Parameters:
uri- Specifies the S3 path to the file that contains your Guard rules or input parameters (in the forms3://<bucket name>/<file name>). 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 CfnGuardHookPropsMixin.S3LocationProperty.Builder versionId(String versionId) Sets the value ofCfnGuardHookPropsMixin.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:
buildin interfacesoftware.amazon.jsii.Builder<CfnGuardHookPropsMixin.S3LocationProperty>- Returns:
- a new instance of
CfnGuardHookPropsMixin.S3LocationProperty - Throws:
NullPointerException- if any required attribute was not provided
-