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.
Idawscc.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.

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

Methods

NameResourceAccessible byRequired Params
create_resourcecertificate_authoritiesINSERTType, KeyAlgorithm, SigningAlgorithm, Subject, region
delete_resourcecertificate_authoritiesDELETEIdentifier, region
update_resourcecertificate_authoritiesUPDATEIdentifier, PatchDocument, region
list_resourcescertificate_authorities_list_onlySELECTregion
get_resourcecertificate_authoritiesSELECTIdentifier, region

SELECT examples

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 awscc.acmpca.certificate_authorities
WHERE
region = '{{ region }}' AND
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 awscc.acmpca.certificate_authorities (
Type,
KeyAlgorithm,
SigningAlgorithm,
Subject,
region
)
SELECT
'{{ type }}',
'{{ key_algorithm }}',
'{{ signing_algorithm }}',
'{{ subject }}',
'{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

UPDATE example

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

/*+ update */
UPDATE awscc.acmpca.certificate_authorities
SET PatchDocument = string('{{ {
"RevocationConfiguration": revocation_configuration,
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ arn }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.acmpca.certificate_authorities
WHERE
Identifier = '{{ arn }}' AND
region = '{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

Additional Parameters

Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:

ParameterDescription
ClientToken
A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.
A client token is valid for 36 hours once used.
After that, a resource request with the same client token is treated as a new request.
If you do not specify a client token, one is generated for inclusion in the request.
RoleArn
The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.
If you do not specify a role, a temporary session is created using your AWS user credentials.
TypeVersionId
For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used.

Permissions

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

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