#[non_exhaustive]pub struct StartStreamEncryptionInput {
pub stream_name: Option<String>,
pub encryption_type: Option<EncryptionType>,
pub key_id: Option<String>,
pub stream_arn: Option<String>,
}
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.stream_name: Option<String>
The name of the stream for which to start encrypting records.
encryption_type: Option<EncryptionType>
The encryption type to use. The only valid value is KMS
.
key_id: Option<String>
The GUID for the customer-managed Amazon Web Services KMS key to use for encryption. This value can be a globally unique identifier, a fully specified Amazon Resource Name (ARN) to either an alias or a key, or an alias name prefixed by "alias/".You can also use a master key owned by Kinesis Data Streams by specifying the alias aws/kinesis
.
-
Key ARN example:
arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012
-
Alias ARN example:
arn:aws:kms:us-east-1:123456789012:alias/MyAliasName
-
Globally unique key ID example:
12345678-1234-1234-1234-123456789012
-
Alias name example:
alias/MyAliasName
-
Master key owned by Kinesis Data Streams:
alias/aws/kinesis
stream_arn: Option<String>
The ARN of the stream.
Implementations§
source§impl StartStreamEncryptionInput
impl StartStreamEncryptionInput
sourcepub fn stream_name(&self) -> Option<&str>
pub fn stream_name(&self) -> Option<&str>
The name of the stream for which to start encrypting records.
sourcepub fn encryption_type(&self) -> Option<&EncryptionType>
pub fn encryption_type(&self) -> Option<&EncryptionType>
The encryption type to use. The only valid value is KMS
.
sourcepub fn key_id(&self) -> Option<&str>
pub fn key_id(&self) -> Option<&str>
The GUID for the customer-managed Amazon Web Services KMS key to use for encryption. This value can be a globally unique identifier, a fully specified Amazon Resource Name (ARN) to either an alias or a key, or an alias name prefixed by "alias/".You can also use a master key owned by Kinesis Data Streams by specifying the alias aws/kinesis
.
-
Key ARN example:
arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012
-
Alias ARN example:
arn:aws:kms:us-east-1:123456789012:alias/MyAliasName
-
Globally unique key ID example:
12345678-1234-1234-1234-123456789012
-
Alias name example:
alias/MyAliasName
-
Master key owned by Kinesis Data Streams:
alias/aws/kinesis
sourcepub fn stream_arn(&self) -> Option<&str>
pub fn stream_arn(&self) -> Option<&str>
The ARN of the stream.
source§impl StartStreamEncryptionInput
impl StartStreamEncryptionInput
sourcepub fn builder() -> StartStreamEncryptionInputBuilder
pub fn builder() -> StartStreamEncryptionInputBuilder
Creates a new builder-style object to manufacture StartStreamEncryptionInput
.
Trait Implementations§
source§impl Clone for StartStreamEncryptionInput
impl Clone for StartStreamEncryptionInput
source§fn clone(&self) -> StartStreamEncryptionInput
fn clone(&self) -> StartStreamEncryptionInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for StartStreamEncryptionInput
impl Debug for StartStreamEncryptionInput
source§impl PartialEq for StartStreamEncryptionInput
impl PartialEq for StartStreamEncryptionInput
source§fn eq(&self, other: &StartStreamEncryptionInput) -> bool
fn eq(&self, other: &StartStreamEncryptionInput) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for StartStreamEncryptionInput
Auto Trait Implementations§
impl Freeze for StartStreamEncryptionInput
impl RefUnwindSafe for StartStreamEncryptionInput
impl Send for StartStreamEncryptionInput
impl Sync for StartStreamEncryptionInput
impl Unpin for StartStreamEncryptionInput
impl UnwindSafe for StartStreamEncryptionInput
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