Skip to main content

certificate_authority_activations

Creates, updates, deletes or gets a certificate_authority_activation resource or lists certificate_authority_activations in a region

Overview

Namecertificate_authority_activations
TypeResource
DescriptionUsed to install the certificate authority certificate and update the certificate authority status.
Idawscc.acmpca.certificate_authority_activations

Fields

NameDatatypeDescription
certificate_authority_arnstringArn of the Certificate Authority.
certificatestringCertificate Authority certificate that will be installed in the Certificate Authority.
certificate_chainstringCertificate chain for the Certificate Authority certificate.
statusstringThe status of the Certificate Authority.
complete_certificate_chainstringThe complete certificate chain, including the Certificate Authority certificate.
regionstringAWS region.

For more information, see AWS::ACMPCA::CertificateAuthorityActivation.

Methods

NameAccessible byRequired Params
create_resourceINSERTCertificateAuthorityArn, Certificate, region
delete_resourceDELETEIdentifier, region
update_resourceUPDATEIdentifier, PatchDocument, region
get_resourceSELECTIdentifier, region

SELECT examples

Gets all properties from an individual certificate_authority_activation.

SELECT
region,
certificate_authority_arn,
certificate,
certificate_chain,
status,
complete_certificate_chain
FROM awscc.acmpca.certificate_authority_activations
WHERE
region = 'us-east-1' AND
Identifier = '{{ certificate_authority_arn }}';

INSERT example

Use the following StackQL query and manifest file to create a new certificate_authority_activation resource, using stack-deploy.

/*+ create */
INSERT INTO awscc.acmpca.certificate_authority_activations (
CertificateAuthorityArn,
Certificate,
region
)
SELECT
'{{ certificate_authority_arn }}',
'{{ certificate }}',
'{{ region }}';

UPDATE example

Use the following StackQL query and manifest file to update a certificate_authority_activation resource, using stack-deploy.

/*+ update */
UPDATE awscc.acmpca.certificate_authority_activations
SET PatchDocument = string('{{ {
"Certificate": certificate,
"CertificateChain": certificate_chain,
"Status": status
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ certificate_authority_arn }}';

DELETE example

/*+ delete */
DELETE FROM awscc.acmpca.certificate_authority_activations
WHERE
Identifier = '{{ certificate_authority_arn }}' AND
region = 'us-east-1';

Permissions

To operate on the certificate_authority_activations resource, the following permissions are required:

acm-pca:ImportCertificateAuthorityCertificate,
acm-pca:UpdateCertificateAuthority