# AWS::EC2::EnclaveCertificateIamRoleAssociation Associates an AWS Identity and Access Management (IAM) role with an AWS Certificate Manager (ACM) certificate. This association is based on Amazon Resource Names and it enables the certificate to be used by the ACM for Nitro Enclaves application inside an enclave. ## Syntax To declare this entity in your AWS CloudFormation template, use the following syntax: ### JSON
{ "Type" : "AWS::EC2::EnclaveCertificateIamRoleAssociation", "Properties" : { "CertificateArn" : String, "RoleArn" : String, } }### YAML
Type: AWS::EC2::EnclaveCertificateIamRoleAssociation Properties: CertificateArn: String RoleArn: String## Properties #### CertificateArn The Amazon Resource Name (ARN) of the ACM certificate with which to associate the IAM role. _Required_: Yes _Type_: String _Minimum_:
1
_Maximum_: 1283
_Pattern_: ^arn:aws[A-Za-z0-9-]{0,64}:acm:[A-Za-z0-9-]{1,64}:([0-9]{12})?:certificate/.+$
_Update requires_: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)
#### RoleArn
The Amazon Resource Name (ARN) of the IAM role to associate with the ACM certificate. You can associate up to 16 IAM roles with an ACM certificate.
_Required_: Yes
_Type_: String
_Minimum_: 1
_Maximum_: 1283
_Pattern_: ^arn:aws[A-Za-z0-9-]{0,64}:iam:.*:([0-9]{12})?:role/.+$
_Update requires_: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)
## Return Values
### Fn::GetAtt
The `Fn::GetAtt` intrinsic function returns a value for a specified attribute of this type. The following are the available attributes and sample return values.
For more information about using the `Fn::GetAtt` intrinsic function, see [Fn::GetAtt](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-getatt.html).
#### CertificateS3BucketName
The name of the Amazon S3 bucket to which the certificate was uploaded.
#### CertificateS3ObjectKey
The Amazon S3 object key where the certificate, certificate chain, and encrypted private key bundle are stored.
#### EncryptionKmsKeyId
The ID of the AWS KMS CMK used to encrypt the private key of the certificate.