S3LocationProperty Struct
Specifies the S3 location where your Guard rules or input parameters are located.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as cdk from 'aws-cdk-lib';
const s3LocationProperty: cdk.CfnGuardHook.S3LocationProperty = {
uri: 'uri',
// the properties below are optional
versionId: 'versionId',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk as cdk
s3_location_property = cdk.CfnGuardHook.S3LocationProperty(
uri="uri",
# the properties below are optional
version_id="versionId"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.*;
S3LocationProperty s3LocationProperty = S3LocationProperty.builder()
.uri("uri")
// the properties below are optional
.versionId("versionId")
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK;
var s3LocationProperty = new S3LocationProperty {
Uri = "uri",
// the properties below are optional
VersionId = "versionId"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import cdk "github.com/aws/aws-cdk-go/awscdk"
s3LocationProperty := &S3LocationProperty{
Uri: jsii.String("uri"),
// the properties below are optional
VersionId: jsii.String("versionId"),
}
Properties
Specifies the S3 path to the file that contains your Guard rules or input parameters (in the form `s3://<bucket name>/<file name>` ).
notes
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 .
versionIdoptionalstringversion_idoptionalstrversionIdoptionalStringVersionIdoptionalstringVersionIdoptional*string #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.