/
FileDestination.go
39 lines (36 loc) · 1.38 KB
/
FileDestination.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
37
38
package cloudassemblyschema
// Where in S3 a file asset needs to be published.
//
// 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"
//
// fileDestination := &FileDestination{
// BucketName: jsii.String("bucketName"),
// ObjectKey: jsii.String("objectKey"),
//
// // the properties below are optional
// AssumeRoleArn: jsii.String("assumeRoleArn"),
// AssumeRoleExternalId: jsii.String("assumeRoleExternalId"),
// Region: jsii.String("region"),
// }
//
// Experimental.
type FileDestination struct {
// The role that needs to be assumed while publishing this asset.
// Experimental.
AssumeRoleArn *string `field:"optional" json:"assumeRoleArn" yaml:"assumeRoleArn"`
// The ExternalId that needs to be supplied while assuming this role.
// Experimental.
AssumeRoleExternalId *string `field:"optional" json:"assumeRoleExternalId" yaml:"assumeRoleExternalId"`
// The region where this asset will need to be published.
// Experimental.
Region *string `field:"optional" json:"region" yaml:"region"`
// The name of the bucket.
// Experimental.
BucketName *string `field:"required" json:"bucketName" yaml:"bucketName"`
// The destination object key.
// Experimental.
ObjectKey *string `field:"required" json:"objectKey" yaml:"objectKey"`
}