1 1 | // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
|
2 - | pub use crate::operation::associate_enclave_certificate_iam_role::_associate_enclave_certificate_iam_role_output::AssociateEnclaveCertificateIamRoleOutputBuilder;
|
3 - |
|
4 2 | pub use crate::operation::associate_enclave_certificate_iam_role::_associate_enclave_certificate_iam_role_input::AssociateEnclaveCertificateIamRoleInputBuilder;
|
5 3 |
|
4 + | pub use crate::operation::associate_enclave_certificate_iam_role::_associate_enclave_certificate_iam_role_output::AssociateEnclaveCertificateIamRoleOutputBuilder;
|
5 + |
|
6 6 | impl crate::operation::associate_enclave_certificate_iam_role::builders::AssociateEnclaveCertificateIamRoleInputBuilder {
|
7 7 | /// Sends a request with this input using the given client.
|
8 8 | pub async fn send_with(
|
9 9 | self,
|
10 10 | client: &crate::Client,
|
11 11 | ) -> ::std::result::Result<
|
12 12 | crate::operation::associate_enclave_certificate_iam_role::AssociateEnclaveCertificateIamRoleOutput,
|
13 13 | ::aws_smithy_runtime_api::client::result::SdkError<
|
14 14 | crate::operation::associate_enclave_certificate_iam_role::AssociateEnclaveCertificateIamRoleError,
|
15 15 | ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
|
16 16 | >,
|
17 17 | > {
|
18 18 | let mut fluent_builder = client.associate_enclave_certificate_iam_role();
|
19 19 | fluent_builder.inner = self;
|
20 20 | fluent_builder.send().await
|
21 21 | }
|
22 22 | }
|
23 23 | /// Fluent builder constructing a request to `AssociateEnclaveCertificateIamRole`.
|
24 24 | ///
|
25 25 | /// <p>Associates an Identity and Access Management (IAM) role with an Certificate Manager (ACM) certificate. This enables the certificate to be used by the ACM for Nitro Enclaves application inside an enclave. For more information, see <a href="https://docs.aws.amazon.com/enclaves/latest/user/nitro-enclave-refapp.html">Certificate Manager for Nitro Enclaves</a> in the <i>Amazon Web Services Nitro Enclaves User Guide</i>.</p>
|
26 26 | /// <p>When the IAM role is associated with the ACM certificate, the certificate, certificate chain, and encrypted private key are placed in an Amazon S3 location that only the associated IAM role can access. The private key of the certificate is encrypted with an Amazon Web Services managed key that has an attached attestation-based key policy.</p>
|
27 27 | /// <p>To enable the IAM role to access the Amazon S3 object, you must grant it permission to call <code>s3:GetObject</code> on the Amazon S3 bucket returned by the command. To enable the IAM role to access the KMS key, you must grant it permission to call <code>kms:Decrypt</code> on the KMS key returned by the command. For more information, see <a href="https://docs.aws.amazon.com/enclaves/latest/user/nitro-enclave-refapp.html#add-policy"> Grant the role permission to access the certificate and encryption key</a> in the <i>Amazon Web Services Nitro Enclaves User Guide</i>.</p>
|
28 28 | #[derive(::std::clone::Clone, ::std::fmt::Debug)]
|
29 29 | pub struct AssociateEnclaveCertificateIamRoleFluentBuilder {
|
30 30 | handle: ::std::sync::Arc<crate::client::Handle>,
|
31 31 | inner: crate::operation::associate_enclave_certificate_iam_role::builders::AssociateEnclaveCertificateIamRoleInputBuilder,
|
32 32 | config_override: ::std::option::Option<crate::config::Builder>,
|
33 33 | }
|
34 34 | impl
|
35 35 | crate::client::customize::internal::CustomizableSend<
|