CfnEnclaveCertificateIamRoleAssociationPropsMixin
- class aws_cdk.mixins_preview.aws_ec2.mixins.CfnEnclaveCertificateIamRoleAssociationPropsMixin(props, *, strategy=None)
Bases:
MixinAssociates an AWS Identity and Access Management (IAM) role with an 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 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:GetObjecton the Amazon S3 bucket returned by the command. To enable the IAM role to access the KMS key, you must grant it permission to callkms:Decrypton 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 .- See:
- CloudformationResource:
AWS::EC2::EnclaveCertificateIamRoleAssociation
- Mixin:
true
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview import mixins from aws_cdk.mixins_preview.aws_ec2 import mixins as ec2_mixins cfn_enclave_certificate_iam_role_association_props_mixin = ec2_mixins.CfnEnclaveCertificateIamRoleAssociationPropsMixin(ec2_mixins.CfnEnclaveCertificateIamRoleAssociationMixinProps( certificate_arn="certificateArn", role_arn="roleArn" ), strategy=mixins.PropertyMergeStrategy.OVERRIDE )
Create a mixin to apply properties to
AWS::EC2::EnclaveCertificateIamRoleAssociation.- Parameters:
props (
Union[CfnEnclaveCertificateIamRoleAssociationMixinProps,Dict[str,Any]]) – L1 properties to apply.strategy (
Optional[PropertyMergeStrategy]) – (experimental) Strategy for merging nested properties. Default: - PropertyMergeStrategy.MERGE
Methods
- apply_to(construct)
Apply the mixin properties to the construct.
- Parameters:
construct (
IConstruct)- Return type:
- supports(construct)
Check if this mixin supports the given construct.
- Parameters:
construct (
IConstruct)- Return type:
bool
Attributes
- CFN_PROPERTY_KEYS = ['certificateArn', 'roleArn']
Static Methods
- classmethod is_mixin(x)
(experimental) Checks if
xis a Mixin.- Parameters:
x (
Any) – Any object.- Return type:
bool- Returns:
true if
xis an object created from a class which extendsMixin.- Stability:
experimental