Skip to content

Commit 343ab7c

Browse files
authored
enhancement(aws_s3 sink): add glacier instant retrieval storage class (#22123)
enhancement(s3 sink): add glacier instant retrieval storage class
1 parent f59fd9c commit 343ab7c

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
A new `GLACIER_IR` option was added to `storage_class` for `aws_s3` sink.
2+
3+
authors: MikeHsu0618

src/sinks/s3_common/config.rs

+5
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,9 @@ pub enum S3StorageClass {
167167
/// Glacier Flexible Retrieval.
168168
Glacier,
169169

170+
/// Glacier Instant Retrieval.
171+
GlacierIr,
172+
170173
/// Glacier Deep Archive.
171174
DeepArchive,
172175
}
@@ -181,6 +184,7 @@ impl From<S3StorageClass> for StorageClass {
181184
S3StorageClass::ExpressOnezone => Self::ExpressOnezone,
182185
S3StorageClass::OnezoneIa => Self::OnezoneIa,
183186
S3StorageClass::Glacier => Self::Glacier,
187+
S3StorageClass::GlacierIr => Self::GlacierIr,
184188
S3StorageClass::DeepArchive => Self::DeepArchive,
185189
}
186190
}
@@ -393,6 +397,7 @@ mod tests {
393397
for &(name, storage_class) in &[
394398
("DEEP_ARCHIVE", S3StorageClass::DeepArchive),
395399
("GLACIER", S3StorageClass::Glacier),
400+
("GLACIER_IR", S3StorageClass::GlacierIr),
396401
("INTELLIGENT_TIERING", S3StorageClass::IntelligentTiering),
397402
("EXPRESS_ONEZONE", S3StorageClass::ExpressOnezone),
398403
("ONEZONE_IA", S3StorageClass::OnezoneIa),

website/cue/reference/components/sinks/base/aws_s3.cue

+1
Original file line numberDiff line numberDiff line change
@@ -1074,6 +1074,7 @@ base: components: sinks: aws_s3: configuration: {
10741074
DEEP_ARCHIVE: "Glacier Deep Archive."
10751075
EXPRESS_ONEZONE: "High Performance (single Availability zone)."
10761076
GLACIER: "Glacier Flexible Retrieval."
1077+
GLACIER_IR: "Glacier Instant Retrieval."
10771078
INTELLIGENT_TIERING: "Intelligent Tiering."
10781079
ONEZONE_IA: "Infrequently Accessed (single Availability zone)."
10791080
REDUCED_REDUNDANCY: "Reduced Redundancy."

0 commit comments

Comments
 (0)