Struct aws_sdk_mailmanager::types::S3Action
source · #[non_exhaustive]pub struct S3Action {
pub action_failure_policy: Option<ActionFailurePolicy>,
pub role_arn: String,
pub s3_bucket: String,
pub s3_prefix: Option<String>,
pub s3_sse_kms_key_id: Option<String>,
}
Expand description
Writes the MIME content of the email to an S3 bucket.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.action_failure_policy: Option<ActionFailurePolicy>
A policy that states what to do in the case of failure. The action will fail if there are configuration errors. For example, the specified the bucket has been deleted.
role_arn: String
The Amazon Resource Name (ARN) of the IAM Role to use while writing to S3. This role must have access to the s3:PutObject, kms:Encrypt, and kms:GenerateDataKey APIs for the given bucket.
s3_bucket: String
The bucket name of the S3 bucket to write to.
s3_prefix: Option<String>
The S3 prefix to use for the write to the s3 bucket.
s3_sse_kms_key_id: Option<String>
The KMS Key ID to use to encrypt the message in S3.
Implementations§
source§impl S3Action
impl S3Action
sourcepub fn action_failure_policy(&self) -> Option<&ActionFailurePolicy>
pub fn action_failure_policy(&self) -> Option<&ActionFailurePolicy>
A policy that states what to do in the case of failure. The action will fail if there are configuration errors. For example, the specified the bucket has been deleted.
sourcepub fn role_arn(&self) -> &str
pub fn role_arn(&self) -> &str
The Amazon Resource Name (ARN) of the IAM Role to use while writing to S3. This role must have access to the s3:PutObject, kms:Encrypt, and kms:GenerateDataKey APIs for the given bucket.
sourcepub fn s3_sse_kms_key_id(&self) -> Option<&str>
pub fn s3_sse_kms_key_id(&self) -> Option<&str>
The KMS Key ID to use to encrypt the message in S3.
Trait Implementations§
source§impl PartialEq for S3Action
impl PartialEq for S3Action
impl StructuralPartialEq for S3Action
Auto Trait Implementations§
impl Freeze for S3Action
impl RefUnwindSafe for S3Action
impl Send for S3Action
impl Sync for S3Action
impl Unpin for S3Action
impl UnwindSafe for S3Action
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more