Skip to main content

certificate_authorities

Creates, updates, deletes or gets a certificate_authority resource or lists certificate_authorities in a region

Overview

Namecertificate_authorities
TypeResource
DescriptionPrivate certificate authority.
Idaws.acmpca.certificate_authorities

Fields

NameDatatypeDescription
arnstringThe Amazon Resource Name (ARN) of the certificate authority.
typestringThe type of the certificate authority.
key_algorithmstringPublic key algorithm and size, in bits, of the key pair that your CA creates when it issues a certificate.
signing_algorithmstringAlgorithm your CA uses to sign certificate requests.
subjectobjectStructure that contains X.500 distinguished name information for your CA.
revocation_configurationobjectCertificate revocation information used by the CreateCertificateAuthority and UpdateCertificateAuthority actions.
tagsarray
certificate_signing_requeststringThe base64 PEM-encoded certificate signing request (CSR) for your certificate authority certificate.
csr_extensionsobjectStructure that contains CSR pass through extension information used by the CreateCertificateAuthority action.
key_storage_security_standardstringKeyStorageSecurityStadard defines a cryptographic key management compliance standard used for handling CA keys.
usage_modestringUsage mode of the ceritificate authority.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTType, KeyAlgorithm, SigningAlgorithm, Subject, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all certificate_authorities in a region.

SELECT
region,
arn,
type,
key_algorithm,
signing_algorithm,
subject,
revocation_configuration,
tags,
certificate_signing_request,
csr_extensions,
key_storage_security_standard,
usage_mode
FROM aws.acmpca.certificate_authorities
WHERE region = 'us-east-1';

Gets all properties from an individual certificate_authority.

SELECT
region,
arn,
type,
key_algorithm,
signing_algorithm,
subject,
revocation_configuration,
tags,
certificate_signing_request,
csr_extensions,
key_storage_security_standard,
usage_mode
FROM aws.acmpca.certificate_authorities
WHERE region = 'us-east-1' AND data__Identifier = '<Arn>';

INSERT example

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

/*+ create */
INSERT INTO aws.acmpca.certificate_authorities (
Type,
KeyAlgorithm,
SigningAlgorithm,
Subject,
region
)
SELECT
'{{ Type }}',
'{{ KeyAlgorithm }}',
'{{ SigningAlgorithm }}',
'{{ Subject }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.acmpca.certificate_authorities
WHERE data__Identifier = '<Arn>'
AND region = 'us-east-1';

Permissions

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

Create

acm-pca:CreateCertificateAuthority,
acm-pca:DescribeCertificateAuthority,
acm-pca:GetCertificateAuthorityCsr

Read

acm-pca:DescribeCertificateAuthority,
acm-pca:GetCertificateAuthorityCsr,
acm-pca:ListTags

Update

acm-pca:ListTags,
acm-pca:TagCertificateAuthority,
acm-pca:UntagCertificateAuthority,
acm-pca:UpdateCertificateAuthority

Delete

acm-pca:DeleteCertificateAuthority,
acm-pca:DescribeCertificateAuthority

List

acm-pca:DescribeCertificateAuthority,
acm-pca:GetCertificateAuthorityCsr,
acm-pca:ListCertificateAuthorities,
acm-pca:ListTags