|
1
|
|
|
package s3 |
|
2
|
|
|
|
|
3
|
|
|
import ( |
|
4
|
|
|
SDK "github.com/aws/aws-sdk-go-v2/service/s3" |
|
5
|
|
|
) |
|
6
|
|
|
|
|
7
|
|
|
type BucketCannedACL string |
|
|
|
|
|
|
8
|
|
|
|
|
9
|
|
|
const ( |
|
10
|
|
|
BucketCannedACLPrivate BucketCannedACL = BucketCannedACL(SDK.BucketCannedACLPrivate) |
|
|
|
|
|
|
11
|
|
|
BucketCannedACLPublicRead BucketCannedACL = BucketCannedACL(SDK.BucketCannedACLPublicRead) |
|
12
|
|
|
BucketCannedACLPublicReadWrite BucketCannedACL = BucketCannedACL(SDK.BucketCannedACLPublicReadWrite) |
|
13
|
|
|
BucketCannedACLAuthenticatedRead BucketCannedACL = BucketCannedACL(SDK.BucketCannedACLAuthenticatedRead) |
|
14
|
|
|
) |
|
15
|
|
|
|
|
16
|
|
|
func (v BucketCannedACL) IsPrivate() bool { |
|
|
|
|
|
|
17
|
|
|
return v == BucketCannedACLPrivate |
|
18
|
|
|
} |
|
19
|
|
|
func (v BucketCannedACL) IsPublicRead() bool { |
|
|
|
|
|
|
20
|
|
|
return v == BucketCannedACLPublicRead |
|
21
|
|
|
} |
|
22
|
|
|
func (v BucketCannedACL) IsPublicReadWrite() bool { |
|
|
|
|
|
|
23
|
|
|
return v == BucketCannedACLPublicReadWrite |
|
24
|
|
|
} |
|
25
|
|
|
func (v BucketCannedACL) IsAuthenticatedRead() bool { |
|
|
|
|
|
|
26
|
|
|
return v == BucketCannedACLAuthenticatedRead |
|
27
|
|
|
} |
|
28
|
|
|
|
|
29
|
|
|
type BucketLocationConstraint string |
|
|
|
|
|
|
30
|
|
|
|
|
31
|
|
|
const ( |
|
32
|
|
|
BucketLocationConstraintEu BucketLocationConstraint = BucketLocationConstraint(SDK.BucketLocationConstraintEu) |
|
|
|
|
|
|
33
|
|
|
BucketLocationConstraintEuWest1 BucketLocationConstraint = BucketLocationConstraint(SDK.BucketLocationConstraintEuWest1) |
|
34
|
|
|
BucketLocationConstraintUsWest1 BucketLocationConstraint = BucketLocationConstraint(SDK.BucketLocationConstraintUsWest1) |
|
35
|
|
|
BucketLocationConstraintUsWest2 BucketLocationConstraint = BucketLocationConstraint(SDK.BucketLocationConstraintUsWest2) |
|
36
|
|
|
BucketLocationConstraintApSouth1 BucketLocationConstraint = BucketLocationConstraint(SDK.BucketLocationConstraintApSouth1) |
|
37
|
|
|
BucketLocationConstraintApSoutheast1 BucketLocationConstraint = BucketLocationConstraint(SDK.BucketLocationConstraintApSoutheast1) |
|
38
|
|
|
BucketLocationConstraintApSoutheast2 BucketLocationConstraint = BucketLocationConstraint(SDK.BucketLocationConstraintApSoutheast2) |
|
39
|
|
|
BucketLocationConstraintApNortheast1 BucketLocationConstraint = BucketLocationConstraint(SDK.BucketLocationConstraintApNortheast1) |
|
40
|
|
|
BucketLocationConstraintSaEast1 BucketLocationConstraint = BucketLocationConstraint(SDK.BucketLocationConstraintSaEast1) |
|
41
|
|
|
BucketLocationConstraintCnNorth1 BucketLocationConstraint = BucketLocationConstraint(SDK.BucketLocationConstraintCnNorth1) |
|
42
|
|
|
BucketLocationConstraintEuCentral1 BucketLocationConstraint = BucketLocationConstraint(SDK.BucketLocationConstraintEuCentral1) |
|
43
|
|
|
) |
|
44
|
|
|
|
|
45
|
|
|
func (v BucketLocationConstraint) IsEu() bool { |
|
|
|
|
|
|
46
|
|
|
return v == BucketLocationConstraintEu |
|
47
|
|
|
} |
|
48
|
|
|
func (v BucketLocationConstraint) IsEuWest1() bool { |
|
|
|
|
|
|
49
|
|
|
return v == BucketLocationConstraintEuWest1 |
|
50
|
|
|
} |
|
51
|
|
|
func (v BucketLocationConstraint) IsUsWest1() bool { |
|
|
|
|
|
|
52
|
|
|
return v == BucketLocationConstraintUsWest1 |
|
53
|
|
|
} |
|
54
|
|
|
func (v BucketLocationConstraint) IsUsWest2() bool { |
|
|
|
|
|
|
55
|
|
|
return v == BucketLocationConstraintUsWest2 |
|
56
|
|
|
} |
|
57
|
|
|
func (v BucketLocationConstraint) IsApSouth1() bool { |
|
|
|
|
|
|
58
|
|
|
return v == BucketLocationConstraintApSouth1 |
|
59
|
|
|
} |
|
60
|
|
|
func (v BucketLocationConstraint) IsApSoutheast1() bool { |
|
|
|
|
|
|
61
|
|
|
return v == BucketLocationConstraintApSoutheast1 |
|
62
|
|
|
} |
|
63
|
|
|
func (v BucketLocationConstraint) IsApSoutheast2() bool { |
|
|
|
|
|
|
64
|
|
|
return v == BucketLocationConstraintApSoutheast2 |
|
65
|
|
|
} |
|
66
|
|
|
func (v BucketLocationConstraint) IsApNortheast1() bool { |
|
|
|
|
|
|
67
|
|
|
return v == BucketLocationConstraintApNortheast1 |
|
68
|
|
|
} |
|
69
|
|
|
func (v BucketLocationConstraint) IsSaEast1() bool { |
|
|
|
|
|
|
70
|
|
|
return v == BucketLocationConstraintSaEast1 |
|
71
|
|
|
} |
|
72
|
|
|
func (v BucketLocationConstraint) IsCnNorth1() bool { |
|
|
|
|
|
|
73
|
|
|
return v == BucketLocationConstraintCnNorth1 |
|
74
|
|
|
} |
|
75
|
|
|
func (v BucketLocationConstraint) IsEuCentral1() bool { |
|
|
|
|
|
|
76
|
|
|
return v == BucketLocationConstraintEuCentral1 |
|
77
|
|
|
} |
|
78
|
|
|
|
|
79
|
|
|
type EncodingType string |
|
|
|
|
|
|
80
|
|
|
|
|
81
|
|
|
const ( |
|
82
|
|
|
EncodingTypeURL EncodingType = EncodingType(SDK.EncodingTypeUrl) |
|
|
|
|
|
|
83
|
|
|
) |
|
84
|
|
|
|
|
85
|
|
|
func (v EncodingType) IsURL() bool { |
|
|
|
|
|
|
86
|
|
|
return v == EncodingTypeURL |
|
87
|
|
|
} |
|
88
|
|
|
|
|
89
|
|
|
type ExpirationStatus string |
|
|
|
|
|
|
90
|
|
|
|
|
91
|
|
|
const ( |
|
92
|
|
|
ExpirationStatusEnabled ExpirationStatus = ExpirationStatus(SDK.ExpirationStatusEnabled) |
|
|
|
|
|
|
93
|
|
|
ExpirationStatusDisabled ExpirationStatus = ExpirationStatus(SDK.ExpirationStatusDisabled) |
|
94
|
|
|
) |
|
95
|
|
|
|
|
96
|
|
|
func (v ExpirationStatus) IsEnabled() bool { |
|
|
|
|
|
|
97
|
|
|
return v == ExpirationStatusEnabled |
|
98
|
|
|
} |
|
99
|
|
|
func (v ExpirationStatus) IsDisabled() bool { |
|
|
|
|
|
|
100
|
|
|
return v == ExpirationStatusDisabled |
|
101
|
|
|
} |
|
102
|
|
|
|
|
103
|
|
|
type MetadataDirective string |
|
|
|
|
|
|
104
|
|
|
|
|
105
|
|
|
const ( |
|
106
|
|
|
MetadataDirectiveCopy MetadataDirective = MetadataDirective(SDK.MetadataDirectiveCopy) |
|
|
|
|
|
|
107
|
|
|
MetadataDirectiveReplace MetadataDirective = MetadataDirective(SDK.MetadataDirectiveReplace) |
|
108
|
|
|
) |
|
109
|
|
|
|
|
110
|
|
|
func (v MetadataDirective) IsCopy() bool { |
|
|
|
|
|
|
111
|
|
|
return v == MetadataDirectiveCopy |
|
112
|
|
|
} |
|
113
|
|
|
func (v MetadataDirective) IsReplace() bool { |
|
|
|
|
|
|
114
|
|
|
return v == MetadataDirectiveReplace |
|
115
|
|
|
} |
|
116
|
|
|
|
|
117
|
|
|
type ObjectCannedACL string |
|
|
|
|
|
|
118
|
|
|
|
|
119
|
|
|
const ( |
|
120
|
|
|
ObjectCannedACLPrivate ObjectCannedACL = ObjectCannedACL(SDK.ObjectCannedACLPrivate) |
|
|
|
|
|
|
121
|
|
|
ObjectCannedACLPublicRead ObjectCannedACL = ObjectCannedACL(SDK.ObjectCannedACLPublicRead) |
|
122
|
|
|
ObjectCannedACLPublicReadWrite ObjectCannedACL = ObjectCannedACL(SDK.ObjectCannedACLPublicReadWrite) |
|
123
|
|
|
ObjectCannedACLAuthenticatedRead ObjectCannedACL = ObjectCannedACL(SDK.ObjectCannedACLAuthenticatedRead) |
|
124
|
|
|
ObjectCannedACLAwsExecRead ObjectCannedACL = ObjectCannedACL(SDK.ObjectCannedACLAwsExecRead) |
|
125
|
|
|
ObjectCannedACLBucketOwnerRead ObjectCannedACL = ObjectCannedACL(SDK.ObjectCannedACLBucketOwnerRead) |
|
126
|
|
|
ObjectCannedACLBucketOwnerFullControl ObjectCannedACL = ObjectCannedACL(SDK.ObjectCannedACLBucketOwnerFullControl) |
|
127
|
|
|
) |
|
128
|
|
|
|
|
129
|
|
|
func (v ObjectCannedACL) IsPrivate() bool { |
|
|
|
|
|
|
130
|
|
|
return v == ObjectCannedACLPrivate |
|
131
|
|
|
} |
|
132
|
|
|
func (v ObjectCannedACL) IsPublicRead() bool { |
|
|
|
|
|
|
133
|
|
|
return v == ObjectCannedACLPublicRead |
|
134
|
|
|
} |
|
135
|
|
|
func (v ObjectCannedACL) IsPublicReadWrite() bool { |
|
|
|
|
|
|
136
|
|
|
return v == ObjectCannedACLPublicReadWrite |
|
137
|
|
|
} |
|
138
|
|
|
func (v ObjectCannedACL) IsAuthenticatedRead() bool { |
|
|
|
|
|
|
139
|
|
|
return v == ObjectCannedACLAuthenticatedRead |
|
140
|
|
|
} |
|
141
|
|
|
func (v ObjectCannedACL) IsAwsExecRead() bool { |
|
|
|
|
|
|
142
|
|
|
return v == ObjectCannedACLAwsExecRead |
|
143
|
|
|
} |
|
144
|
|
|
func (v ObjectCannedACL) IsBucketOwnerRead() bool { |
|
|
|
|
|
|
145
|
|
|
return v == ObjectCannedACLBucketOwnerRead |
|
146
|
|
|
} |
|
147
|
|
|
func (v ObjectCannedACL) IsBucketOwnerFullControl() bool { |
|
|
|
|
|
|
148
|
|
|
return v == ObjectCannedACLBucketOwnerFullControl |
|
149
|
|
|
} |
|
150
|
|
|
|
|
151
|
|
|
type ObjectLockLegalHoldStatus string |
|
|
|
|
|
|
152
|
|
|
|
|
153
|
|
|
const ( |
|
154
|
|
|
ObjectLockLegalHoldStatusOn ObjectLockLegalHoldStatus = ObjectLockLegalHoldStatus(SDK.ObjectLockLegalHoldStatusOn) |
|
|
|
|
|
|
155
|
|
|
ObjectLockLegalHoldStatusOff ObjectLockLegalHoldStatus = ObjectLockLegalHoldStatus(SDK.ObjectLockLegalHoldStatusOff) |
|
156
|
|
|
) |
|
157
|
|
|
|
|
158
|
|
|
func (v ObjectLockLegalHoldStatus) IsOn() bool { |
|
|
|
|
|
|
159
|
|
|
return v == ObjectLockLegalHoldStatusOn |
|
160
|
|
|
} |
|
161
|
|
|
func (v ObjectLockLegalHoldStatus) IsOff() bool { |
|
|
|
|
|
|
162
|
|
|
return v == ObjectLockLegalHoldStatusOff |
|
163
|
|
|
} |
|
164
|
|
|
|
|
165
|
|
|
type ObjectLockMode string |
|
|
|
|
|
|
166
|
|
|
|
|
167
|
|
|
const ( |
|
168
|
|
|
ObjectLockModeGovernance ObjectLockMode = ObjectLockMode(SDK.ObjectLockModeGovernance) |
|
|
|
|
|
|
169
|
|
|
ObjectLockModeCompliance ObjectLockMode = ObjectLockMode(SDK.ObjectLockModeCompliance) |
|
170
|
|
|
) |
|
171
|
|
|
|
|
172
|
|
|
func (v ObjectLockMode) IsGovernance() bool { |
|
|
|
|
|
|
173
|
|
|
return v == ObjectLockModeGovernance |
|
174
|
|
|
} |
|
175
|
|
|
func (v ObjectLockMode) IsCompliance() bool { |
|
|
|
|
|
|
176
|
|
|
return v == ObjectLockModeCompliance |
|
177
|
|
|
} |
|
178
|
|
|
|
|
179
|
|
|
type ObjectLockRetentionMode string |
|
|
|
|
|
|
180
|
|
|
|
|
181
|
|
|
const ( |
|
182
|
|
|
ObjectLockRetentionModeGovernance ObjectLockRetentionMode = ObjectLockRetentionMode(SDK.ObjectLockRetentionModeGovernance) |
|
|
|
|
|
|
183
|
|
|
ObjectLockRetentionModeCompliance ObjectLockRetentionMode = ObjectLockRetentionMode(SDK.ObjectLockRetentionModeCompliance) |
|
184
|
|
|
) |
|
185
|
|
|
|
|
186
|
|
|
func (v ObjectLockRetentionMode) IsGovernance() bool { |
|
|
|
|
|
|
187
|
|
|
return v == ObjectLockRetentionModeGovernance |
|
188
|
|
|
} |
|
189
|
|
|
func (v ObjectLockRetentionMode) IsCompliance() bool { |
|
|
|
|
|
|
190
|
|
|
return v == ObjectLockRetentionModeCompliance |
|
191
|
|
|
} |
|
192
|
|
|
|
|
193
|
|
|
type ObjectStorageClass string |
|
|
|
|
|
|
194
|
|
|
|
|
195
|
|
|
const ( |
|
196
|
|
|
ObjectStorageClassStandard ObjectStorageClass = ObjectStorageClass(SDK.ObjectStorageClassStandard) |
|
|
|
|
|
|
197
|
|
|
ObjectStorageClassReducedRedundancy ObjectStorageClass = ObjectStorageClass(SDK.ObjectStorageClassReducedRedundancy) |
|
198
|
|
|
ObjectStorageClassGlacier ObjectStorageClass = ObjectStorageClass(SDK.ObjectStorageClassGlacier) |
|
199
|
|
|
ObjectStorageClassStandardIa ObjectStorageClass = ObjectStorageClass(SDK.ObjectStorageClassStandardIa) |
|
200
|
|
|
ObjectStorageClassOnezoneIa ObjectStorageClass = ObjectStorageClass(SDK.ObjectStorageClassOnezoneIa) |
|
201
|
|
|
ObjectStorageClassIntelligentTiering ObjectStorageClass = ObjectStorageClass(SDK.ObjectStorageClassIntelligentTiering) |
|
202
|
|
|
ObjectStorageClassDeepArchive ObjectStorageClass = ObjectStorageClass(SDK.ObjectStorageClassDeepArchive) |
|
203
|
|
|
) |
|
204
|
|
|
|
|
205
|
|
|
func (v ObjectStorageClass) IsStandard() bool { |
|
|
|
|
|
|
206
|
|
|
return v == ObjectStorageClassStandard |
|
207
|
|
|
} |
|
208
|
|
|
func (v ObjectStorageClass) IsReducedRedundancy() bool { |
|
|
|
|
|
|
209
|
|
|
return v == ObjectStorageClassReducedRedundancy |
|
210
|
|
|
} |
|
211
|
|
|
func (v ObjectStorageClass) IsGlacier() bool { |
|
|
|
|
|
|
212
|
|
|
return v == ObjectStorageClassGlacier |
|
213
|
|
|
} |
|
214
|
|
|
func (v ObjectStorageClass) IsStandardIa() bool { |
|
|
|
|
|
|
215
|
|
|
return v == ObjectStorageClassStandardIa |
|
216
|
|
|
} |
|
217
|
|
|
func (v ObjectStorageClass) IsOnezoneIa() bool { |
|
|
|
|
|
|
218
|
|
|
return v == ObjectStorageClassOnezoneIa |
|
219
|
|
|
} |
|
220
|
|
|
func (v ObjectStorageClass) IsIntelligentTiering() bool { |
|
|
|
|
|
|
221
|
|
|
return v == ObjectStorageClassIntelligentTiering |
|
222
|
|
|
} |
|
223
|
|
|
func (v ObjectStorageClass) IsDeepArchive() bool { |
|
|
|
|
|
|
224
|
|
|
return v == ObjectStorageClassDeepArchive |
|
225
|
|
|
} |
|
226
|
|
|
|
|
227
|
|
|
type ObjectVersionStorageClass string |
|
|
|
|
|
|
228
|
|
|
|
|
229
|
|
|
const ( |
|
230
|
|
|
ObjectVersionStorageClassStandard ObjectVersionStorageClass = ObjectVersionStorageClass(SDK.ObjectVersionStorageClassStandard) |
|
|
|
|
|
|
231
|
|
|
) |
|
232
|
|
|
|
|
233
|
|
|
func (v ObjectVersionStorageClass) IsStandard() bool { |
|
|
|
|
|
|
234
|
|
|
return v == ObjectVersionStorageClassStandard |
|
235
|
|
|
} |
|
236
|
|
|
|
|
237
|
|
|
type Permission string |
|
|
|
|
|
|
238
|
|
|
|
|
239
|
|
|
const ( |
|
240
|
|
|
PermissionFullControl Permission = Permission(SDK.PermissionFullControl) |
|
|
|
|
|
|
241
|
|
|
PermissionWrite Permission = Permission(SDK.PermissionWrite) |
|
242
|
|
|
PermissionWriteAcp Permission = Permission(SDK.PermissionWriteAcp) |
|
243
|
|
|
PermissionRead Permission = Permission(SDK.PermissionRead) |
|
244
|
|
|
PermissionReadAcp Permission = Permission(SDK.PermissionReadAcp) |
|
245
|
|
|
) |
|
246
|
|
|
|
|
247
|
|
|
type ReplicationStatus string |
|
|
|
|
|
|
248
|
|
|
|
|
249
|
|
|
const ( |
|
250
|
|
|
ReplicationStatusComplete ReplicationStatus = ReplicationStatus(SDK.ReplicationStatusComplete) |
|
|
|
|
|
|
251
|
|
|
ReplicationStatusPending ReplicationStatus = ReplicationStatus(SDK.ReplicationStatusPending) |
|
252
|
|
|
ReplicationStatusFailed ReplicationStatus = ReplicationStatus(SDK.ReplicationStatusFailed) |
|
253
|
|
|
ReplicationStatusReplica ReplicationStatus = ReplicationStatus(SDK.ReplicationStatusReplica) |
|
254
|
|
|
) |
|
255
|
|
|
|
|
256
|
|
|
func (v ReplicationStatus) IsComplete() bool { |
|
|
|
|
|
|
257
|
|
|
return v == ReplicationStatusComplete |
|
258
|
|
|
} |
|
259
|
|
|
func (v ReplicationStatus) IsPending() bool { |
|
|
|
|
|
|
260
|
|
|
return v == ReplicationStatusPending |
|
261
|
|
|
} |
|
262
|
|
|
func (v ReplicationStatus) IsFailed() bool { |
|
|
|
|
|
|
263
|
|
|
return v == ReplicationStatusFailed |
|
264
|
|
|
} |
|
265
|
|
|
func (v ReplicationStatus) IsReplica() bool { |
|
|
|
|
|
|
266
|
|
|
return v == ReplicationStatusReplica |
|
267
|
|
|
} |
|
268
|
|
|
|
|
269
|
|
|
type RequestCharged string |
|
|
|
|
|
|
270
|
|
|
|
|
271
|
|
|
const ( |
|
272
|
|
|
RequestChargedRequester RequestCharged = RequestCharged(SDK.RequestChargedRequester) |
|
|
|
|
|
|
273
|
|
|
) |
|
274
|
|
|
|
|
275
|
|
|
func (v RequestCharged) IsRequester() bool { |
|
|
|
|
|
|
276
|
|
|
return v == RequestChargedRequester |
|
277
|
|
|
} |
|
278
|
|
|
|
|
279
|
|
|
type RequestPayer string |
|
|
|
|
|
|
280
|
|
|
|
|
281
|
|
|
const ( |
|
282
|
|
|
RequestPayerRequester RequestPayer = "requester" |
|
|
|
|
|
|
283
|
|
|
) |
|
284
|
|
|
|
|
285
|
|
|
func (v RequestPayer) IsRequester() bool { |
|
|
|
|
|
|
286
|
|
|
return v == RequestPayerRequester |
|
287
|
|
|
} |
|
288
|
|
|
|
|
289
|
|
|
type ServerSideEncryption string |
|
|
|
|
|
|
290
|
|
|
|
|
291
|
|
|
const ( |
|
292
|
|
|
ServerSideEncryptionAes256 ServerSideEncryption = "AES256" |
|
|
|
|
|
|
293
|
|
|
ServerSideEncryptionAwsKms ServerSideEncryption = "aws:kms" |
|
294
|
|
|
) |
|
295
|
|
|
|
|
296
|
|
|
func (v ServerSideEncryption) IsAes256() bool { |
|
|
|
|
|
|
297
|
|
|
return v == ServerSideEncryptionAes256 |
|
298
|
|
|
} |
|
299
|
|
|
func (v ServerSideEncryption) IsAwsKms() bool { |
|
|
|
|
|
|
300
|
|
|
return v == ServerSideEncryptionAwsKms |
|
301
|
|
|
} |
|
302
|
|
|
|
|
303
|
|
|
type StorageClass string |
|
|
|
|
|
|
304
|
|
|
|
|
305
|
|
|
const ( |
|
306
|
|
|
StorageClassStandard StorageClass = StorageClass(SDK.StorageClassStandard) |
|
|
|
|
|
|
307
|
|
|
StorageClassReducedRedundancy StorageClass = StorageClass(SDK.StorageClassReducedRedundancy) |
|
308
|
|
|
StorageClassStandardIa StorageClass = StorageClass(SDK.StorageClassStandardIa) |
|
309
|
|
|
StorageClassOnezoneIa StorageClass = StorageClass(SDK.StorageClassOnezoneIa) |
|
310
|
|
|
StorageClassIntelligentTiering StorageClass = StorageClass(SDK.StorageClassIntelligentTiering) |
|
311
|
|
|
StorageClassGlacier StorageClass = StorageClass(SDK.StorageClassGlacier) |
|
312
|
|
|
StorageClassDeepArchive StorageClass = StorageClass(SDK.StorageClassDeepArchive) |
|
313
|
|
|
) |
|
314
|
|
|
|
|
315
|
|
|
func (v StorageClass) IsStandard() bool { |
|
|
|
|
|
|
316
|
|
|
return v == StorageClassStandard |
|
317
|
|
|
} |
|
318
|
|
|
func (v StorageClass) IsReducedRedundancy() bool { |
|
|
|
|
|
|
319
|
|
|
return v == StorageClassReducedRedundancy |
|
320
|
|
|
} |
|
321
|
|
|
func (v StorageClass) IsStandardIa() bool { |
|
|
|
|
|
|
322
|
|
|
return v == StorageClassStandardIa |
|
323
|
|
|
} |
|
324
|
|
|
func (v StorageClass) IsOnezoneIa() bool { |
|
|
|
|
|
|
325
|
|
|
return v == StorageClassOnezoneIa |
|
326
|
|
|
} |
|
327
|
|
|
func (v StorageClass) IsIntelligentTiering() bool { |
|
|
|
|
|
|
328
|
|
|
return v == StorageClassIntelligentTiering |
|
329
|
|
|
} |
|
330
|
|
|
func (v StorageClass) IsGlacier() bool { |
|
|
|
|
|
|
331
|
|
|
return v == StorageClassGlacier |
|
332
|
|
|
} |
|
333
|
|
|
func (v StorageClass) IsDeepArchive() bool { |
|
|
|
|
|
|
334
|
|
|
return v == StorageClassDeepArchive |
|
335
|
|
|
} |
|
336
|
|
|
|
|
337
|
|
|
type TaggingDirective string |
|
|
|
|
|
|
338
|
|
|
|
|
339
|
|
|
const ( |
|
340
|
|
|
TaggingDirectiveCopy TaggingDirective = TaggingDirective(SDK.TaggingDirectiveCopy) |
|
|
|
|
|
|
341
|
|
|
TaggingDirectiveReplace TaggingDirective = TaggingDirective(SDK.TaggingDirectiveReplace) |
|
342
|
|
|
) |
|
343
|
|
|
|
|
344
|
|
|
func (v TaggingDirective) IsCopy() bool { |
|
|
|
|
|
|
345
|
|
|
return v == TaggingDirectiveCopy |
|
346
|
|
|
} |
|
347
|
|
|
func (v TaggingDirective) IsReplace() bool { |
|
|
|
|
|
|
348
|
|
|
return v == TaggingDirectiveReplace |
|
349
|
|
|
} |
|
350
|
|
|
|
|
351
|
|
|
type TransitionStorageClass string |
|
|
|
|
|
|
352
|
|
|
|
|
353
|
|
|
const ( |
|
354
|
|
|
TransitionStorageClassGlacier TransitionStorageClass = TransitionStorageClass(SDK.TransitionStorageClassGlacier) |
|
|
|
|
|
|
355
|
|
|
TransitionStorageClassStandardIa TransitionStorageClass = TransitionStorageClass(SDK.TransitionStorageClassStandardIa) |
|
356
|
|
|
TransitionStorageClassOnezoneIa TransitionStorageClass = TransitionStorageClass(SDK.TransitionStorageClassOnezoneIa) |
|
357
|
|
|
TransitionStorageClassIntelligentTiering TransitionStorageClass = TransitionStorageClass(SDK.TransitionStorageClassIntelligentTiering) |
|
358
|
|
|
TransitionStorageClassDeepArchive TransitionStorageClass = TransitionStorageClass(SDK.TransitionStorageClassDeepArchive) |
|
359
|
|
|
) |
|
360
|
|
|
|
|
361
|
|
|
func (v TransitionStorageClass) IsGlacier() bool { |
|
|
|
|
|
|
362
|
|
|
return v == TransitionStorageClassGlacier |
|
363
|
|
|
} |
|
364
|
|
|
func (v TransitionStorageClass) IsStandardIa() bool { |
|
|
|
|
|
|
365
|
|
|
return v == TransitionStorageClassStandardIa |
|
366
|
|
|
} |
|
367
|
|
|
func (v TransitionStorageClass) IsOnezoneIa() bool { |
|
|
|
|
|
|
368
|
|
|
return v == TransitionStorageClassOnezoneIa |
|
369
|
|
|
} |
|
370
|
|
|
func (v TransitionStorageClass) IsIntelligentTiering() bool { |
|
|
|
|
|
|
371
|
|
|
return v == TransitionStorageClassIntelligentTiering |
|
372
|
|
|
} |
|
373
|
|
|
func (v TransitionStorageClass) IsDeepArchive() bool { |
|
|
|
|
|
|
374
|
|
|
return v == TransitionStorageClassDeepArchive |
|
375
|
|
|
} |
|
376
|
|
|
|
|
377
|
|
|
type Type string |
|
|
|
|
|
|
378
|
|
|
|
|
379
|
|
|
const ( |
|
380
|
|
|
TypeCanonicalUser Type = Type(SDK.TypeCanonicalUser) |
|
|
|
|
|
|
381
|
|
|
TypeAmazonCustomerByEmail Type = Type(SDK.TypeAmazonCustomerByEmail) |
|
382
|
|
|
TypeGroup Type = Type(SDK.TypeGroup) |
|
383
|
|
|
) |
|
384
|
|
|
|
|
385
|
|
|
func (v Type) IsCanonicalUser() bool { |
|
|
|
|
|
|
386
|
|
|
return v == TypeCanonicalUser |
|
387
|
|
|
} |
|
388
|
|
|
func (v Type) IsAmazonCustomerByEmail() bool { |
|
|
|
|
|
|
389
|
|
|
return v == TypeAmazonCustomerByEmail |
|
390
|
|
|
} |
|
391
|
|
|
func (v Type) IsGroup() bool { |
|
|
|
|
|
|
392
|
|
|
return v == TypeGroup |
|
393
|
|
|
} |
|
394
|
|
|
|