aws_sdk_ec2/client/
get_ebs_default_kms_key_id.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`GetEbsDefaultKmsKeyId`](crate::operation::get_ebs_default_kms_key_id::builders::GetEbsDefaultKmsKeyIdFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`dry_run(bool)`](crate::operation::get_ebs_default_kms_key_id::builders::GetEbsDefaultKmsKeyIdFluentBuilder::dry_run) / [`set_dry_run(Option<bool>)`](crate::operation::get_ebs_default_kms_key_id::builders::GetEbsDefaultKmsKeyIdFluentBuilder::set_dry_run):<br>required: **false**<br><p>Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is <code>DryRunOperation</code>. Otherwise, it is <code>UnauthorizedOperation</code>.</p><br>
7    /// - On success, responds with [`GetEbsDefaultKmsKeyIdOutput`](crate::operation::get_ebs_default_kms_key_id::GetEbsDefaultKmsKeyIdOutput) with field(s):
8    ///   - [`kms_key_id(Option<String>)`](crate::operation::get_ebs_default_kms_key_id::GetEbsDefaultKmsKeyIdOutput::kms_key_id): <p>The Amazon Resource Name (ARN) of the default KMS key for encryption by default.</p>
9    /// - On failure, responds with [`SdkError<GetEbsDefaultKmsKeyIdError>`](crate::operation::get_ebs_default_kms_key_id::GetEbsDefaultKmsKeyIdError)
10    pub fn get_ebs_default_kms_key_id(&self) -> crate::operation::get_ebs_default_kms_key_id::builders::GetEbsDefaultKmsKeyIdFluentBuilder {
11        crate::operation::get_ebs_default_kms_key_id::builders::GetEbsDefaultKmsKeyIdFluentBuilder::new(self.handle.clone())
12    }
13}