Struct aws_sdk_ec2::types::S3Storage
source · #[non_exhaustive]pub struct S3Storage {
pub aws_access_key_id: Option<String>,
pub bucket: Option<String>,
pub prefix: Option<String>,
pub upload_policy: Option<Blob>,
pub upload_policy_signature: Option<String>,
}
Expand description
Describes the storage parameters for Amazon S3 and Amazon S3 buckets for an instance store-backed AMI.
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.aws_access_key_id: Option<String>
The access key ID of the owner of the bucket. Before you specify a value for your access key ID, review and follow the guidance in Best Practices for Amazon Web Services accounts in the Account ManagementReference Guide.
bucket: Option<String>
The bucket in which to store the AMI. You can specify a bucket that you already own or a new bucket that Amazon EC2 creates on your behalf. If you specify a bucket that belongs to someone else, Amazon EC2 returns an error.
prefix: Option<String>
The beginning of the file name of the AMI.
upload_policy: Option<Blob>
An Amazon S3 upload policy that gives Amazon EC2 permission to upload items into Amazon S3 on your behalf.
upload_policy_signature: Option<String>
The signature of the JSON document.
Implementations§
source§impl S3Storage
impl S3Storage
sourcepub fn aws_access_key_id(&self) -> Option<&str>
pub fn aws_access_key_id(&self) -> Option<&str>
The access key ID of the owner of the bucket. Before you specify a value for your access key ID, review and follow the guidance in Best Practices for Amazon Web Services accounts in the Account ManagementReference Guide.
sourcepub fn bucket(&self) -> Option<&str>
pub fn bucket(&self) -> Option<&str>
The bucket in which to store the AMI. You can specify a bucket that you already own or a new bucket that Amazon EC2 creates on your behalf. If you specify a bucket that belongs to someone else, Amazon EC2 returns an error.
sourcepub fn upload_policy(&self) -> Option<&Blob>
pub fn upload_policy(&self) -> Option<&Blob>
An Amazon S3 upload policy that gives Amazon EC2 permission to upload items into Amazon S3 on your behalf.
sourcepub fn upload_policy_signature(&self) -> Option<&str>
pub fn upload_policy_signature(&self) -> Option<&str>
The signature of the JSON document.
Trait Implementations§
source§impl PartialEq for S3Storage
impl PartialEq for S3Storage
impl StructuralPartialEq for S3Storage
Auto Trait Implementations§
impl Freeze for S3Storage
impl RefUnwindSafe for S3Storage
impl Send for S3Storage
impl Sync for S3Storage
impl Unpin for S3Storage
impl UnwindSafe for S3Storage
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