-
Notifications
You must be signed in to change notification settings - Fork 17
/
ArtifactsBucketLocation.go
37 lines (34 loc) · 1.03 KB
/
ArtifactsBucketLocation.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
package awssynthetics
import (
"github.com/aws/aws-cdk-go/awscdk/v2/awss3"
)
// Options for specifying the s3 location that stores the data of each canary run.
//
// The artifacts bucket location **cannot**
// be updated once the canary is created.
//
// Example:
// // The code below shows an example of how to instantiate this type.
// // The values are placeholders you should change.
// import "github.com/aws/aws-cdk-go/awscdk"
// import "github.com/aws/aws-cdk-go/awscdk"
//
// var bucket bucket
//
// artifactsBucketLocation := &ArtifactsBucketLocation{
// Bucket: bucket,
//
// // the properties below are optional
// Prefix: jsii.String("prefix"),
// }
//
type ArtifactsBucketLocation struct {
// The s3 location that stores the data of each run.
Bucket awss3.IBucket `field:"required" json:"bucket" yaml:"bucket"`
// The S3 bucket prefix.
//
// Specify this if you want a more specific path within the artifacts bucket.
// Default: - no prefix.
//
Prefix *string `field:"optional" json:"prefix" yaml:"prefix"`
}