@Override
    public AssociateEnclaveCertificateIamRoleResult associateEnclaveCertificateIamRole(AssociateEnclaveCertificateIamRoleRequest request) {
        request = beforeClientExecution(request);
        return executeAssociateEnclaveCertificateIamRole(request);
    }
<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>
<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>
<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>

@param associateEnclaveCertificateIamRoleRequest
@return Result of the AssociateEnclaveCertificateIamRole operation returned by the service.
@sample AmazonEC2.AssociateEnclaveCertificateIamRole
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssociateEnclaveCertificateIamRole"
     target="_top">AWS API Documentation</a>
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/AmazonEC2Client.java