Class CfnEnclaveCertificateIamRoleAssociation
- All Implemented Interfaces:
IInspectable,IEnclaveCertificateIamRoleAssociationRef,IEnvironmentAware,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
This enables the certificate to be used by the ACM for Nitro Enclaves application inside an enclave. For more information, see 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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnEnclaveCertificateIamRoleAssociation.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.ec2.IEnclaveCertificateIamRoleAssociationRef
IEnclaveCertificateIamRoleAssociationRef.Jsii$Default, IEnclaveCertificateIamRoleAssociationRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnEnclaveCertificateIamRoleAssociation(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnEnclaveCertificateIamRoleAssociation(software.amazon.jsii.JsiiObjectRef objRef) CfnEnclaveCertificateIamRoleAssociation(software.constructs.Construct scope, String id, CfnEnclaveCertificateIamRoleAssociationProps props) Create a newAWS::EC2::EnclaveCertificateIamRoleAssociation. -
Method Summary
Modifier and TypeMethodDescriptionThe name of the Amazon S3 bucket to which the certificate was uploaded.The Amazon S3 object key where the certificate, certificate chain, and encrypted private key bundle are stored.The ID of the AWS KMS key used to encrypt the private key of the certificate.The ARN of the ACM certificate with which to associate the IAM role.A reference to a EnclaveCertificateIamRoleAssociation resource.The ARN of the IAM role to associate with the ACM certificate.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnEnclaveCertificateIamRoleAssociation.renderProperties(Map<String, Object> props) voidsetCertificateArn(String value) The ARN of the ACM certificate with which to associate the IAM role.voidsetRoleArn(String value) The ARN of the IAM role to associate with the ACM certificate.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
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) Create a newAWS::EC2::EnclaveCertificateIamRoleAssociation.- 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
-
isCfnEnclaveCertificateIamRoleAssociation
@Stability(Stable) @NotNull public static Boolean isCfnEnclaveCertificateIamRoleAssociation(@NotNull Object x) Checks whether the given object is a CfnEnclaveCertificateIamRoleAssociation.- Parameters:
x- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- 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:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrCertificateS3BucketName
The name of the Amazon S3 bucket to which the certificate was uploaded. -
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
The ID of the AWS KMS key used to encrypt the private key of the certificate. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getEnclaveCertificateIamRoleAssociationRef
@Stability(Stable) @NotNull public EnclaveCertificateIamRoleAssociationReference getEnclaveCertificateIamRoleAssociationRef()A reference to a EnclaveCertificateIamRoleAssociation resource.- Specified by:
getEnclaveCertificateIamRoleAssociationRefin interfaceIEnclaveCertificateIamRoleAssociationRef
-
getCertificateArn
The ARN of the ACM certificate with which to associate the IAM role. -
setCertificateArn
The ARN of the ACM certificate with which to associate the IAM role. -
getRoleArn
The ARN of the IAM role to associate with the ACM certificate. -
setRoleArn
The ARN of the IAM role to associate with the ACM certificate.
-