Class CfnEnclaveCertificateIamRoleAssociation
Associates an AWS Identity and Access Management (IAM) role with an AWS Certificate Manager (ACM) certificate.
Inheritance
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnEnclaveCertificateIamRoleAssociation : CfnResource, IInspectable
Syntax (vb)
Public Class CfnEnclaveCertificateIamRoleAssociation
Inherits CfnResource
Implements IInspectable
Remarks
This enables the certificate to be used by the ACM for Nitro Enclaves application inside an enclave. For more information, see AWS Certificate Manager for Nitro Enclaves in the AWS Nitro Enclaves User Guide .
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 AWS managed key that has an attached attestation-based key policy.
To enable the IAM role to access the Amazon S3 object, you must grant it permission to call s3:GetObject
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 kms:Decrypt
on the KMS key returned by the command. For more information, see Grant the role permission to access the certificate and encryption key in the AWS Nitro Enclaves User Guide .
CloudformationResource: AWS::EC2::EnclaveCertificateIamRoleAssociation
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.EC2;
var cfnEnclaveCertificateIamRoleAssociation = new CfnEnclaveCertificateIamRoleAssociation(this, "MyCfnEnclaveCertificateIamRoleAssociation", new CfnEnclaveCertificateIamRoleAssociationProps {
CertificateArn = "certificateArn",
RoleArn = "roleArn"
});
Synopsis
Constructors
CfnEnclaveCertificateIamRoleAssociation(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CfnEnclaveCertificateIamRoleAssociation(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
CfnEnclaveCertificateIamRoleAssociation(Construct, String, ICfnEnclaveCertificateIamRoleAssociationProps) |
Properties
AttrCertificateS3BucketName | The name of the Amazon S3 bucket to which the certificate was uploaded. |
AttrCertificateS3ObjectKey | The Amazon S3 object key where the certificate, certificate chain, and encrypted private key bundle are stored. |
AttrEncryptionKmsKeyId | The ID of the AWS KMS key used to encrypt the private key of the certificate. |
CertificateArn | The ARN of the ACM certificate with which to associate the IAM role. |
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
CfnProperties | |
RoleArn | The ARN of the IAM role to associate with the ACM certificate. |
Methods
Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
CfnEnclaveCertificateIamRoleAssociation(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CfnEnclaveCertificateIamRoleAssociation(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
CfnEnclaveCertificateIamRoleAssociation(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CfnEnclaveCertificateIamRoleAssociation(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
CfnEnclaveCertificateIamRoleAssociation(Construct, String, ICfnEnclaveCertificateIamRoleAssociationProps)
public CfnEnclaveCertificateIamRoleAssociation(Construct scope, string id, ICfnEnclaveCertificateIamRoleAssociationProps props)
Parameters
- scope Constructs.Construct
Scope in which this resource is defined.
- id System.String
Construct identifier for this resource (unique in its scope).
- props ICfnEnclaveCertificateIamRoleAssociationProps
Resource properties.
Properties
AttrCertificateS3BucketName
The name of the Amazon S3 bucket to which the certificate was uploaded.
public virtual string AttrCertificateS3BucketName { get; }
Property Value
System.String
Remarks
CloudformationAttribute: CertificateS3BucketName
AttrCertificateS3ObjectKey
The Amazon S3 object key where the certificate, certificate chain, and encrypted private key bundle are stored.
public virtual string AttrCertificateS3ObjectKey { get; }
Property Value
System.String
Remarks
The object key is formatted as follows: role_arn
/ certificate_arn
.
CloudformationAttribute: CertificateS3ObjectKey
AttrEncryptionKmsKeyId
The ID of the AWS KMS key used to encrypt the private key of the certificate.
public virtual string AttrEncryptionKmsKeyId { get; }
Property Value
System.String
Remarks
CloudformationAttribute: EncryptionKmsKeyId
CertificateArn
The ARN of the ACM certificate with which to associate the IAM role.
public virtual string CertificateArn { get; set; }
Property Value
System.String
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value
System.String
CfnProperties
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
System.Collections.Generic.IDictionary<System.String, System.Object>
Overrides
RoleArn
The ARN of the IAM role to associate with the ACM certificate.
public virtual string RoleArn { get; set; }
Property Value
System.String
Methods
Inspect(TreeInspector)
Examines the CloudFormation resource and discloses attributes.
public virtual void Inspect(TreeInspector inspector)
Parameters
- inspector TreeInspector
tree inspector to collect and process attributes.
RenderProperties(IDictionary<String, Object>)
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props System.Collections.Generic.IDictionary<System.String, System.Object>
Returns
System.Collections.Generic.IDictionary<System.String, System.Object>