Class CfnEnclaveCertificateIamRoleAssociation

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.ec2.CfnEnclaveCertificateIamRoleAssociation
All Implemented Interfaces:
IInspectable, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-11-06T23:25:07.613Z") @Stability(Stable) public class CfnEnclaveCertificateIamRoleAssociation extends CfnResource implements IInspectable
Associates an AWS Identity and Access Management (IAM) role with an AWS 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 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 .

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.ec2.*;
 CfnEnclaveCertificateIamRoleAssociation cfnEnclaveCertificateIamRoleAssociation = CfnEnclaveCertificateIamRoleAssociation.Builder.create(this, "MyCfnEnclaveCertificateIamRoleAssociation")
         .certificateArn("certificateArn")
         .roleArn("roleArn")
         .build();
 

See Also:
  • Field Details

    • CFN_RESOURCE_TYPE_NAME

      @Stability(Stable) public static final String CFN_RESOURCE_TYPE_NAME
      The CloudFormation resource type name for this resource class.
  • Constructor Details

    • CfnEnclaveCertificateIamRoleAssociation

      protected CfnEnclaveCertificateIamRoleAssociation(software.amazon.jsii.JsiiObjectRef objRef)
    • CfnEnclaveCertificateIamRoleAssociation

      protected CfnEnclaveCertificateIamRoleAssociation(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • CfnEnclaveCertificateIamRoleAssociation

      @Stability(Stable) public CfnEnclaveCertificateIamRoleAssociation(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnEnclaveCertificateIamRoleAssociationProps props)
      Parameters:
      scope - Scope in which this resource is defined. This parameter is required.
      id - Construct identifier for this resource (unique in its scope). This parameter is required.
      props - Resource properties. This parameter is required.
  • Method Details

    • inspect

      @Stability(Stable) public void inspect(@NotNull TreeInspector inspector)
      Examines the CloudFormation resource and discloses attributes.

      Specified by:
      inspect in interface IInspectable
      Parameters:
      inspector - tree inspector to collect and process attributes. This parameter is required.
    • renderProperties

      @Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
      Overrides:
      renderProperties in class CfnResource
      Parameters:
      props - This parameter is required.
    • getAttrCertificateS3BucketName

      @Stability(Stable) @NotNull public String getAttrCertificateS3BucketName()
      The name of the Amazon S3 bucket to which the certificate was uploaded.
    • getAttrCertificateS3ObjectKey

      @Stability(Stable) @NotNull public String getAttrCertificateS3ObjectKey()
      The Amazon S3 object key where the certificate, certificate chain, and encrypted private key bundle are stored.

      The object key is formatted as follows: role_arn / certificate_arn .

    • getAttrEncryptionKmsKeyId

      @Stability(Stable) @NotNull public String getAttrEncryptionKmsKeyId()
      The ID of the AWS KMS key used to encrypt the private key of the certificate.
    • getCfnProperties

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      Overrides:
      getCfnProperties in class CfnResource
    • getCertificateArn

      @Stability(Stable) @NotNull public String getCertificateArn()
      The ARN of the ACM certificate with which to associate the IAM role.
    • setCertificateArn

      @Stability(Stable) public void setCertificateArn(@NotNull String value)
      The ARN of the ACM certificate with which to associate the IAM role.
    • getRoleArn

      @Stability(Stable) @NotNull public String getRoleArn()
      The ARN of the IAM role to associate with the ACM certificate.
    • setRoleArn

      @Stability(Stable) public void setRoleArn(@NotNull String value)
      The ARN of the IAM role to associate with the ACM certificate.