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 = '{{ region }}' 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 }}'
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_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 }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

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

acm-pca:ImportCertificateAuthorityCertificate,
acm-pca:UpdateCertificateAuthority