Skip to main content

certificates

Creates, updates, deletes or gets a certificate resource or lists certificates in a region

Overview

Namecertificates
TypeResource
DescriptionThe AWS::ACMPCA::Certificate resource is used to issue a certificate using your private certificate authority. For more information, see the IssueCertificate action.
Idawscc.acmpca.certificates

Fields

NameDatatypeDescription
api_passthroughobjectSpecifies X.509 certificate information to be included in the issued certificate. An APIPassthrough or APICSRPassthrough template variant must be selected, or else this parameter is ignored.
certificate_authority_arnstringThe Amazon Resource Name (ARN) for the private CA issues the certificate.
certificate_signing_requeststringThe certificate signing request (CSR) for the certificate.
signing_algorithmstring
The name of the algorithm that will be used to sign the certificate to be issued.This parameter should not be confused with the SigningAlgorithm parameter used to sign a CSR in the CreateCertificateAuthority action.
The specified signing algorithm family (RSA or ECDSA) must match the algorithm family of the CA's secret key.
validityobjectThe period of time during which the certificate will be valid.
certificatestring
regionstringAWS region.

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

Methods

NameAccessible byRequired Params
create_resourceINSERTCertificateAuthorityArn, CertificateSigningRequest, SigningAlgorithm, Validity, region
delete_resourceDELETEIdentifier, region
get_resourceSELECTIdentifier, region

SELECT examples

Gets all properties from an individual certificate.

SELECT
region,
api_passthrough,
certificate_authority_arn,
certificate_signing_request,
signing_algorithm,
template_arn,
validity,
validity_not_before,
certificate,
arn
FROM awscc.acmpca.certificates
WHERE
region = '{{ region }}' AND
Identifier = '{{ arn }}|{{ certificate_authority_arn }}';

INSERT example

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

/*+ create */
INSERT INTO awscc.acmpca.certificates (
CertificateAuthorityArn,
CertificateSigningRequest,
SigningAlgorithm,
Validity,
region
)
SELECT
'{{ certificate_authority_arn }}',
'{{ certificate_signing_request }}',
'{{ signing_algorithm }}',
'{{ validity }}',
'{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.acmpca.certificates
WHERE
Identifier = '{{ arn }}|{{ certificate_authority_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 certificates resource, the following permissions are required:

acm-pca:IssueCertificate,
acm-pca:GetCertificate