Show / Hide Table of Contents

Class CfnEnclaveCertificateIamRoleAssociation

A CloudFormation AWS::EC2::EnclaveCertificateIamRoleAssociation.

Inheritance
System.Object
Construct
CfnElement
CfnRefElement
CfnResource
CfnEnclaveCertificateIamRoleAssociation
Implements
IConstruct
Constructs.IConstruct
IDependable
IInspectable
Inherited Members
CfnResource.IsCfnResource(IConstruct)
CfnResource.AddDeletionOverride(String)
CfnResource.AddDependsOn(CfnResource)
CfnResource.AddMetadata(String, Object)
CfnResource.AddOverride(String, Object)
CfnResource.AddPropertyDeletionOverride(String)
CfnResource.AddPropertyOverride(String, Object)
CfnResource.ApplyRemovalPolicy(Nullable<RemovalPolicy>, IRemovalPolicyOptions)
CfnResource.GetAtt(String)
CfnResource.GetMetadata(String)
CfnResource.ShouldSynthesize()
CfnResource.ToString()
CfnResource.ValidateProperties(Object)
CfnResource.CfnOptions
CfnResource.CfnResourceType
CfnResource.UpdatedProperites
CfnRefElement.Ref
CfnElement.IsCfnElement(Object)
CfnElement.OverrideLogicalId(String)
CfnElement.CreationStack
CfnElement.LogicalId
CfnElement.Stack
Construct.IsConstruct(Object)
Construct.OnPrepare()
Construct.OnSynthesize(ISynthesisSession)
Construct.OnValidate()
Construct.Prepare()
Construct.Synthesize(ISynthesisSession)
Construct.Validate()
Construct.Node
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.AWS.EC2.dll
Syntax (csharp)
public class CfnEnclaveCertificateIamRoleAssociation : CfnResource, IConstruct, IConstruct, IDependable, IInspectable
Syntax (vb)
Public Class CfnEnclaveCertificateIamRoleAssociation
    Inherits CfnResource
    Implements IConstruct, IConstruct, IDependable, IInspectable
Remarks

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 .

CloudformationResource: AWS::EC2::EnclaveCertificateIamRoleAssociation

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-enclavecertificateiamroleassociation.html

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;

CfnEnclaveCertificateIamRoleAssociation cfnEnclaveCertificateIamRoleAssociation = new CfnEnclaveCertificateIamRoleAssociation(this, "MyCfnEnclaveCertificateIamRoleAssociation", new CfnEnclaveCertificateIamRoleAssociationProps {
    CertificateArn = "certificateArn",
    RoleArn = "roleArn"
});

Synopsis

Constructors

CfnEnclaveCertificateIamRoleAssociation(Construct, String, ICfnEnclaveCertificateIamRoleAssociationProps)

Create a new AWS::EC2::EnclaveCertificateIamRoleAssociation.

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

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(Construct, String, ICfnEnclaveCertificateIamRoleAssociationProps)

Create a new AWS::EC2::EnclaveCertificateIamRoleAssociation.

public CfnEnclaveCertificateIamRoleAssociation(Construct scope, string id, ICfnEnclaveCertificateIamRoleAssociationProps props)
Parameters
scope Construct
  • scope in which this resource is defined.
id System.String
  • scoped id of the resource.
props ICfnEnclaveCertificateIamRoleAssociationProps
  • resource properties.

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

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

Remarks

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-enclavecertificateiamroleassociation.html#cfn-ec2-enclavecertificateiamroleassociation-certificatearn

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
CfnResource.CfnProperties

RoleArn

The ARN of the IAM role to associate with the ACM certificate.

public virtual string RoleArn { get; set; }
Property Value

System.String

Remarks

You can associate up to 16 IAM roles with an ACM certificate.

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-enclavecertificateiamroleassociation.html#cfn-ec2-enclavecertificateiamroleassociation-rolearn

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>

Overrides
CfnResource.RenderProperties(IDictionary<String, Object>)

Implements

IConstruct
Constructs.IConstruct
IDependable
IInspectable
Back to top Generated by DocFX