@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:38.168Z") @Stability(value=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 bucket 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();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnEnclaveCertificateIamRoleAssociation.Builder
A fluent builder for
CfnEnclaveCertificateIamRoleAssociation. |
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnEnclaveCertificateIamRoleAssociation(software.constructs.Construct scope,
String id,
CfnEnclaveCertificateIamRoleAssociationProps props)
Create a new `AWS::EC2::EnclaveCertificateIamRoleAssociation`.
|
protected |
CfnEnclaveCertificateIamRoleAssociation(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnEnclaveCertificateIamRoleAssociation(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAttrCertificateS3BucketName()
The name of the Amazon S3 bucket to which the certificate was uploaded.
|
String |
getAttrCertificateS3ObjectKey()
The Amazon S3 object key where the certificate, certificate chain, and encrypted private key bundle are stored.
|
String |
getAttrEncryptionKmsKeyId()
The ID of the AWS KMS key used to encrypt the private key of the certificate.
|
String |
getCertificateArn()
The ARN of the ACM certificate with which to associate the IAM role.
|
protected Map<String,Object> |
getCfnProperties() |
String |
getRoleArn()
The ARN of the IAM role to associate with the ACM certificate.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setCertificateArn(String value)
The ARN of the ACM certificate with which to associate the IAM role.
|
void |
setRoleArn(String value)
The ARN of the IAM role to associate with the ACM certificate.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnEnclaveCertificateIamRoleAssociation(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnEnclaveCertificateIamRoleAssociation(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnEnclaveCertificateIamRoleAssociation(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnEnclaveCertificateIamRoleAssociationProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull public String getAttrCertificateS3BucketName()
@Stability(value=Stable) @NotNull public String getAttrCertificateS3ObjectKey()
The object key is formatted as follows: role_arn / certificate_arn .
@Stability(value=Stable) @NotNull public String getAttrEncryptionKmsKeyId()
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public String getCertificateArn()
@Stability(value=Stable)
public void setCertificateArn(@NotNull
String value)
@Stability(value=Stable) @NotNull public String getRoleArn()
You can associate up to 16 IAM roles with an ACM certificate.
@Stability(value=Stable)
public void setRoleArn(@NotNull
String value)
You can associate up to 16 IAM roles with an ACM certificate.
Copyright © 2022. All rights reserved.