diff --git a/changelog.d/s3_sink_add_glacier_ir_storage_class.enhancement.md b/changelog.d/s3_sink_add_glacier_ir_storage_class.enhancement.md new file mode 100644 index 0000000000000..6c452a71a6652 --- /dev/null +++ b/changelog.d/s3_sink_add_glacier_ir_storage_class.enhancement.md @@ -0,0 +1,3 @@ +A new `GLACIER_IR` option was added to `storage_class` for `aws_s3` sink. + +authors: MikeHsu0618 diff --git a/src/sinks/s3_common/config.rs b/src/sinks/s3_common/config.rs index 503a8eb3e159b..9db7fc506191a 100644 --- a/src/sinks/s3_common/config.rs +++ b/src/sinks/s3_common/config.rs @@ -167,6 +167,9 @@ pub enum S3StorageClass { /// Glacier Flexible Retrieval. Glacier, + /// Glacier Instant Retrieval. + GlacierIr, + /// Glacier Deep Archive. DeepArchive, } @@ -181,6 +184,7 @@ impl From for StorageClass { S3StorageClass::ExpressOnezone => Self::ExpressOnezone, S3StorageClass::OnezoneIa => Self::OnezoneIa, S3StorageClass::Glacier => Self::Glacier, + S3StorageClass::GlacierIr => Self::GlacierIr, S3StorageClass::DeepArchive => Self::DeepArchive, } } @@ -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), diff --git a/website/cue/reference/components/sinks/base/aws_s3.cue b/website/cue/reference/components/sinks/base/aws_s3.cue index 7c20ac233286c..dad1875884fc6 100644 --- a/website/cue/reference/components/sinks/base/aws_s3.cue +++ b/website/cue/reference/components/sinks/base/aws_s3.cue @@ -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."