/
StorageClass.go
175 lines (154 loc) · 3.74 KB
/
StorageClass.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
package awss3
import (
_init_ "github.com/aws/aws-cdk-go/awscdk/v2/jsii"
_jsii_ "github.com/aws/jsii-runtime-go/runtime"
)
// Storage class to move an object to.
//
// Example:
// bucket := s3.NewBucket(this, jsii.String("MyBucket"), &BucketProps{
// LifecycleRules: []lifecycleRule{
// &lifecycleRule{
// AbortIncompleteMultipartUploadAfter: awscdk.Duration_Minutes(jsii.Number(30)),
// Enabled: jsii.Boolean(false),
// Expiration: awscdk.Duration_Days(jsii.Number(30)),
// ExpirationDate: NewDate(),
// ExpiredObjectDeleteMarker: jsii.Boolean(false),
// Id: jsii.String("id"),
// NoncurrentVersionExpiration: awscdk.Duration_*Days(jsii.Number(30)),
//
// // the properties below are optional
// NoncurrentVersionsToRetain: jsii.Number(123),
// NoncurrentVersionTransitions: []noncurrentVersionTransition{
// &noncurrentVersionTransition{
// StorageClass: s3.StorageClass_GLACIER(),
// TransitionAfter: awscdk.Duration_*Days(jsii.Number(30)),
//
// // the properties below are optional
// NoncurrentVersionsToRetain: jsii.Number(123),
// },
// },
// ObjectSizeGreaterThan: jsii.Number(500),
// Prefix: jsii.String("prefix"),
// ObjectSizeLessThan: jsii.Number(10000),
// Transitions: []transition{
// &transition{
// StorageClass: s3.StorageClass_GLACIER(),
//
// // the properties below are optional
// TransitionAfter: awscdk.Duration_*Days(jsii.Number(30)),
// TransitionDate: NewDate(),
// },
// },
// },
// },
// })
//
type StorageClass interface {
Value() *string
ToString() *string
}
// The jsii proxy struct for StorageClass
type jsiiProxy_StorageClass struct {
_ byte // padding
}
func (j *jsiiProxy_StorageClass) Value() *string {
var returns *string
_jsii_.Get(
j,
"value",
&returns,
)
return returns
}
func NewStorageClass(value *string) StorageClass {
_init_.Initialize()
if err := validateNewStorageClassParameters(value); err != nil {
panic(err)
}
j := jsiiProxy_StorageClass{}
_jsii_.Create(
"aws-cdk-lib.aws_s3.StorageClass",
[]interface{}{value},
&j,
)
return &j
}
func NewStorageClass_Override(s StorageClass, value *string) {
_init_.Initialize()
_jsii_.Create(
"aws-cdk-lib.aws_s3.StorageClass",
[]interface{}{value},
s,
)
}
func StorageClass_DEEP_ARCHIVE() StorageClass {
_init_.Initialize()
var returns StorageClass
_jsii_.StaticGet(
"aws-cdk-lib.aws_s3.StorageClass",
"DEEP_ARCHIVE",
&returns,
)
return returns
}
func StorageClass_GLACIER() StorageClass {
_init_.Initialize()
var returns StorageClass
_jsii_.StaticGet(
"aws-cdk-lib.aws_s3.StorageClass",
"GLACIER",
&returns,
)
return returns
}
func StorageClass_GLACIER_INSTANT_RETRIEVAL() StorageClass {
_init_.Initialize()
var returns StorageClass
_jsii_.StaticGet(
"aws-cdk-lib.aws_s3.StorageClass",
"GLACIER_INSTANT_RETRIEVAL",
&returns,
)
return returns
}
func StorageClass_INFREQUENT_ACCESS() StorageClass {
_init_.Initialize()
var returns StorageClass
_jsii_.StaticGet(
"aws-cdk-lib.aws_s3.StorageClass",
"INFREQUENT_ACCESS",
&returns,
)
return returns
}
func StorageClass_INTELLIGENT_TIERING() StorageClass {
_init_.Initialize()
var returns StorageClass
_jsii_.StaticGet(
"aws-cdk-lib.aws_s3.StorageClass",
"INTELLIGENT_TIERING",
&returns,
)
return returns
}
func StorageClass_ONE_ZONE_INFREQUENT_ACCESS() StorageClass {
_init_.Initialize()
var returns StorageClass
_jsii_.StaticGet(
"aws-cdk-lib.aws_s3.StorageClass",
"ONE_ZONE_INFREQUENT_ACCESS",
&returns,
)
return returns
}
func (s *jsiiProxy_StorageClass) ToString() *string {
var returns *string
_jsii_.Invoke(
s,
"toString",
nil, // no parameters
&returns,
)
return returns
}