aws_sdk_ec2/client/
associate_enclave_certificate_iam_role.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 [`AssociateEnclaveCertificateIamRole`](crate::operation::associate_enclave_certificate_iam_role::builders::AssociateEnclaveCertificateIamRoleFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`certificate_arn(impl Into<String>)`](crate::operation::associate_enclave_certificate_iam_role::builders::AssociateEnclaveCertificateIamRoleFluentBuilder::certificate_arn) / [`set_certificate_arn(Option<String>)`](crate::operation::associate_enclave_certificate_iam_role::builders::AssociateEnclaveCertificateIamRoleFluentBuilder::set_certificate_arn):<br>required: **true**<br><p>The ARN of the ACM certificate with which to associate the IAM role.</p><br>
7    ///   - [`role_arn(impl Into<String>)`](crate::operation::associate_enclave_certificate_iam_role::builders::AssociateEnclaveCertificateIamRoleFluentBuilder::role_arn) / [`set_role_arn(Option<String>)`](crate::operation::associate_enclave_certificate_iam_role::builders::AssociateEnclaveCertificateIamRoleFluentBuilder::set_role_arn):<br>required: **true**<br><p>The ARN of the IAM role to associate with the ACM certificate. You can associate up to 16 IAM roles with an ACM certificate.</p><br>
8    ///   - [`dry_run(bool)`](crate::operation::associate_enclave_certificate_iam_role::builders::AssociateEnclaveCertificateIamRoleFluentBuilder::dry_run) / [`set_dry_run(Option<bool>)`](crate::operation::associate_enclave_certificate_iam_role::builders::AssociateEnclaveCertificateIamRoleFluentBuilder::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>
9    /// - On success, responds with [`AssociateEnclaveCertificateIamRoleOutput`](crate::operation::associate_enclave_certificate_iam_role::AssociateEnclaveCertificateIamRoleOutput) with field(s):
10    ///   - [`certificate_s3_bucket_name(Option<String>)`](crate::operation::associate_enclave_certificate_iam_role::AssociateEnclaveCertificateIamRoleOutput::certificate_s3_bucket_name): <p>The name of the Amazon S3 bucket to which the certificate was uploaded.</p>
11    ///   - [`certificate_s3_object_key(Option<String>)`](crate::operation::associate_enclave_certificate_iam_role::AssociateEnclaveCertificateIamRoleOutput::certificate_s3_object_key): <p>The Amazon S3 object key where the certificate, certificate chain, and encrypted private key bundle are stored. The object key is formatted as follows: <code>role_arn</code>/<code>certificate_arn</code>.</p>
12    ///   - [`encryption_kms_key_id(Option<String>)`](crate::operation::associate_enclave_certificate_iam_role::AssociateEnclaveCertificateIamRoleOutput::encryption_kms_key_id): <p>The ID of the KMS key used to encrypt the private key of the certificate.</p>
13    /// - On failure, responds with [`SdkError<AssociateEnclaveCertificateIamRoleError>`](crate::operation::associate_enclave_certificate_iam_role::AssociateEnclaveCertificateIamRoleError)
14    pub fn associate_enclave_certificate_iam_role(
15        &self,
16    ) -> crate::operation::associate_enclave_certificate_iam_role::builders::AssociateEnclaveCertificateIamRoleFluentBuilder {
17        crate::operation::associate_enclave_certificate_iam_role::builders::AssociateEnclaveCertificateIamRoleFluentBuilder::new(self.handle.clone())
18    }
19}