Class CfnPermission
- All Implemented Interfaces:
IConstruct
,IDependable
,IInspectable
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
AWS::ACMPCA::Permission
.
Grants permissions to the AWS Certificate Manager ( ACM ) service principal ( acm.amazonaws.com
) to perform IssueCertificate , GetCertificate , and ListPermissions actions on a CA. These actions are needed for the ACM principal to renew private PKI certificates requested through ACM and residing in the same AWS account as the CA.
About permissions - If the private CA and the certificates it issues reside in the same account, you can use AWS::ACMPCA::Permission
to grant permissions for ACM to carry out automatic certificate renewals.
- For automatic certificate renewal to succeed, the ACM service principal needs permissions to create, retrieve, and list permissions.
- If the private CA and the ACM certificates reside in different accounts, then permissions cannot be used to enable automatic renewals. Instead, the ACM certificate owner must set up a resource-based policy to enable cross-account issuance and renewals. For more information, see Using a Resource Based Policy with AWS Private CA .
To update an
AWS::ACMPCA::Permission
resource, you must first delete the existing permission resource from the CloudFormation stack and then create a new permission resource with updated properties.
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.acmpca.*; CfnPermission cfnPermission = CfnPermission.Builder.create(this, "MyCfnPermission") .actions(List.of("actions")) .certificateAuthorityArn("certificateAuthorityArn") .principal("principal") // the properties below are optional .sourceAccount("sourceAccount") .build();
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionCfnPermission
(Construct scope, String id, CfnPermissionProps props) Create a newAWS::ACMPCA::Permission
.protected
CfnPermission
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnPermission
(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionThe private CA actions that can be performed by the designated AWS service.The Amazon Resource Number (ARN) of the private CA from which the permission was issued.The AWS service or entity that holds the permission.The ID of the account that assigned the permission.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
setActions
(List<String> value) The private CA actions that can be performed by the designated AWS service.void
setCertificateAuthorityArn
(String value) The Amazon Resource Number (ARN) of the private CA from which the permission was issued.void
setPrincipal
(String value) The AWS service or entity that holds the permission.void
setSourceAccount
(String value) The ID of the account that assigned the permission.Methods inherited from class software.amazon.awscdk.core.CfnResource
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
Methods inherited from class software.amazon.awscdk.core.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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
-
CfnPermission
protected CfnPermission(software.amazon.jsii.JsiiObjectRef objRef) -
CfnPermission
protected CfnPermission(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnPermission
@Stability(Stable) public CfnPermission(@NotNull Construct scope, @NotNull String id, @NotNull CfnPermissionProps props) Create a newAWS::ACMPCA::Permission
.- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
props
-- resource properties.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspect
in interfaceIInspectable
- Parameters:
inspector
-- tree inspector to collect and process attributes.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderProperties
in classCfnResource
- Parameters:
props
- This parameter is required.
-
getCfnProperties
- Overrides:
getCfnProperties
in classCfnResource
-
getActions
The private CA actions that can be performed by the designated AWS service.Supported actions are
IssueCertificate
,GetCertificate
, andListPermissions
. -
setActions
The private CA actions that can be performed by the designated AWS service.Supported actions are
IssueCertificate
,GetCertificate
, andListPermissions
. -
getCertificateAuthorityArn
The Amazon Resource Number (ARN) of the private CA from which the permission was issued. -
setCertificateAuthorityArn
The Amazon Resource Number (ARN) of the private CA from which the permission was issued. -
getPrincipal
The AWS service or entity that holds the permission.At this time, the only valid principal is
acm.amazonaws.com
. -
setPrincipal
The AWS service or entity that holds the permission.At this time, the only valid principal is
acm.amazonaws.com
. -
getSourceAccount
The ID of the account that assigned the permission. -
setSourceAccount
The ID of the account that assigned the permission.
-