1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`StartStreamEncryption`](crate::operation::start_stream_encryption::builders::StartStreamEncryptionFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`stream_name(impl Into<String>)`](crate::operation::start_stream_encryption::builders::StartStreamEncryptionFluentBuilder::stream_name) / [`set_stream_name(Option<String>)`](crate::operation::start_stream_encryption::builders::StartStreamEncryptionFluentBuilder::set_stream_name):<br>required: **false**<br><p>The name of the stream for which to start encrypting records.</p><br>
    ///   - [`encryption_type(EncryptionType)`](crate::operation::start_stream_encryption::builders::StartStreamEncryptionFluentBuilder::encryption_type) / [`set_encryption_type(Option<EncryptionType>)`](crate::operation::start_stream_encryption::builders::StartStreamEncryptionFluentBuilder::set_encryption_type):<br>required: **true**<br><p>The encryption type to use. The only valid value is <code>KMS</code>.</p><br>
    ///   - [`key_id(impl Into<String>)`](crate::operation::start_stream_encryption::builders::StartStreamEncryptionFluentBuilder::key_id) / [`set_key_id(Option<String>)`](crate::operation::start_stream_encryption::builders::StartStreamEncryptionFluentBuilder::set_key_id):<br>required: **true**<br><p>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 <code>aws/kinesis</code>.</p>  <ul>   <li> <p>Key ARN example: <code>arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012</code> </p> </li>   <li> <p>Alias ARN example: <code>arn:aws:kms:us-east-1:123456789012:alias/MyAliasName</code> </p> </li>   <li> <p>Globally unique key ID example: <code>12345678-1234-1234-1234-123456789012</code> </p> </li>   <li> <p>Alias name example: <code>alias/MyAliasName</code> </p> </li>   <li> <p>Master key owned by Kinesis Data Streams: <code>alias/aws/kinesis</code> </p> </li>  </ul><br>
    ///   - [`stream_arn(impl Into<String>)`](crate::operation::start_stream_encryption::builders::StartStreamEncryptionFluentBuilder::stream_arn) / [`set_stream_arn(Option<String>)`](crate::operation::start_stream_encryption::builders::StartStreamEncryptionFluentBuilder::set_stream_arn):<br>required: **false**<br><p>The ARN of the stream.</p><br>
    /// - On success, responds with [`StartStreamEncryptionOutput`](crate::operation::start_stream_encryption::StartStreamEncryptionOutput)
    /// - On failure, responds with [`SdkError<StartStreamEncryptionError>`](crate::operation::start_stream_encryption::StartStreamEncryptionError)
    pub fn start_stream_encryption(&self) -> crate::operation::start_stream_encryption::builders::StartStreamEncryptionFluentBuilder {
        crate::operation::start_stream_encryption::builders::StartStreamEncryptionFluentBuilder::new(self.handle.clone())
    }
}