Struct aws_sdk_s3::model::EncryptionConfiguration
source · #[non_exhaustive]pub struct EncryptionConfiguration { /* private fields */ }
Expand description
Specifies encryption-related information for an Amazon S3 bucket that is a destination for replicated objects.
Implementations§
source§impl EncryptionConfiguration
impl EncryptionConfiguration
sourcepub fn replica_kms_key_id(&self) -> Option<&str>
pub fn replica_kms_key_id(&self) -> Option<&str>
Specifies the ID (Key ARN or Alias ARN) of the customer managed Amazon Web Services KMS key stored in Amazon Web Services Key Management Service (KMS) for the destination bucket. Amazon S3 uses this key to encrypt replica objects. Amazon S3 only supports symmetric, customer managed KMS keys. For more information, see Using symmetric and asymmetric keys in the Amazon Web Services Key Management Service Developer Guide.
source§impl EncryptionConfiguration
impl EncryptionConfiguration
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture EncryptionConfiguration
.
Examples found in repository?
src/xml_deser.rs (line 7673)
7669 7670 7671 7672 7673 7674 7675 7676 7677 7678 7679 7680 7681 7682 7683 7684 7685 7686 7687 7688 7689 7690 7691 7692 7693
pub fn deser_structure_crate_model_encryption_configuration(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::EncryptionConfiguration, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::EncryptionConfiguration::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("ReplicaKmsKeyID") /* ReplicaKmsKeyID com.amazonaws.s3#EncryptionConfiguration$ReplicaKmsKeyID */ => {
let var_421 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_replica_kms_key_id(var_421);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for EncryptionConfiguration
impl Clone for EncryptionConfiguration
source§fn clone(&self) -> EncryptionConfiguration
fn clone(&self) -> EncryptionConfiguration
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more