Skip to content

Commit

Permalink
enhancement(aws_s3 sink): add glacier instant retrieval storage class (
Browse files Browse the repository at this point in the history
…#22123)

enhancement(s3 sink): add glacier instant retrieval storage class
  • Loading branch information
MikeHsu0618 authored Jan 6, 2025
1 parent f59fd9c commit 343ab7c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
A new `GLACIER_IR` option was added to `storage_class` for `aws_s3` sink.

authors: MikeHsu0618
5 changes: 5 additions & 0 deletions src/sinks/s3_common/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,9 @@ pub enum S3StorageClass {
/// Glacier Flexible Retrieval.
Glacier,

/// Glacier Instant Retrieval.
GlacierIr,

/// Glacier Deep Archive.
DeepArchive,
}
Expand All @@ -181,6 +184,7 @@ impl From<S3StorageClass> for StorageClass {
S3StorageClass::ExpressOnezone => Self::ExpressOnezone,
S3StorageClass::OnezoneIa => Self::OnezoneIa,
S3StorageClass::Glacier => Self::Glacier,
S3StorageClass::GlacierIr => Self::GlacierIr,
S3StorageClass::DeepArchive => Self::DeepArchive,
}
}
Expand Down Expand Up @@ -393,6 +397,7 @@ mod tests {
for &(name, storage_class) in &[
("DEEP_ARCHIVE", S3StorageClass::DeepArchive),
("GLACIER", S3StorageClass::Glacier),
("GLACIER_IR", S3StorageClass::GlacierIr),
("INTELLIGENT_TIERING", S3StorageClass::IntelligentTiering),
("EXPRESS_ONEZONE", S3StorageClass::ExpressOnezone),
("ONEZONE_IA", S3StorageClass::OnezoneIa),
Expand Down
1 change: 1 addition & 0 deletions website/cue/reference/components/sinks/base/aws_s3.cue
Original file line number Diff line number Diff line change
Expand Up @@ -1074,6 +1074,7 @@ base: components: sinks: aws_s3: configuration: {
DEEP_ARCHIVE: "Glacier Deep Archive."
EXPRESS_ONEZONE: "High Performance (single Availability zone)."
GLACIER: "Glacier Flexible Retrieval."
GLACIER_IR: "Glacier Instant Retrieval."
INTELLIGENT_TIERING: "Intelligent Tiering."
ONEZONE_IA: "Infrequently Accessed (single Availability zone)."
REDUCED_REDUNDANCY: "Reduced Redundancy."
Expand Down

0 comments on commit 343ab7c

Please sign in to comment.