@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-22T19:35:35.190Z") public class CfnPermission extends CfnResource implements IInspectable
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.
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();
Modifier and Type | Class and Description |
---|---|
static class |
CfnPermission.Builder
A fluent builder for
CfnPermission . |
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
IConstruct.Jsii$Default
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
Modifier | Constructor and Description |
---|---|
|
CfnPermission(Construct scope,
java.lang.String id,
CfnPermissionProps props)
Create a new `AWS::ACMPCA::Permission`.
|
protected |
CfnPermission(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnPermission(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
getActions()
The private CA actions that can be performed by the designated AWS service.
|
java.lang.String |
getCertificateAuthorityArn()
The Amazon Resource Number (ARN) of the private CA from which the permission was issued.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
getCfnProperties() |
java.lang.String |
getPrincipal()
The AWS service or entity that holds the permission.
|
java.lang.String |
getSourceAccount()
The ID of the account that assigned the permission.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
renderProperties(java.util.Map<java.lang.String,java.lang.Object> props) |
void |
setActions(java.util.List<java.lang.String> value)
The private CA actions that can be performed by the designated AWS service.
|
void |
setCertificateAuthorityArn(java.lang.String value)
The Amazon Resource Number (ARN) of the private CA from which the permission was issued.
|
void |
setPrincipal(java.lang.String value)
The AWS service or entity that holds the permission.
|
void |
setSourceAccount(java.lang.String value)
The ID of the account that assigned the permission.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
getRef
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
public static final java.lang.String CFN_RESOURCE_TYPE_NAME
protected CfnPermission(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnPermission(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public CfnPermission(Construct scope, java.lang.String id, CfnPermissionProps 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.public void inspect(TreeInspector inspector)
inspect
in interface IInspectable
inspector
- - tree inspector to collect and process attributes. This parameter is required.protected java.util.Map<java.lang.String,java.lang.Object> renderProperties(java.util.Map<java.lang.String,java.lang.Object> props)
renderProperties
in class CfnResource
props
- This parameter is required.protected java.util.Map<java.lang.String,java.lang.Object> getCfnProperties()
getCfnProperties
in class CfnResource
public java.util.List<java.lang.String> getActions()
Supported actions are IssueCertificate
, GetCertificate
, and ListPermissions
.
public void setActions(java.util.List<java.lang.String> value)
Supported actions are IssueCertificate
, GetCertificate
, and ListPermissions
.
public java.lang.String getCertificateAuthorityArn()
public void setCertificateAuthorityArn(java.lang.String value)
public java.lang.String getPrincipal()
At this time, the only valid principal is acm.amazonaws.com
.
public void setPrincipal(java.lang.String value)
At this time, the only valid principal is acm.amazonaws.com
.
public java.lang.String getSourceAccount()
public void setSourceAccount(java.lang.String value)