certificate_authority_activations
Creates, updates, deletes or gets a certificate_authority_activation resource or lists certificate_authority_activations in a region
Overview
| Name | certificate_authority_activations |
| Type | Resource |
| Description | Used to install the certificate authority certificate and update the certificate authority status. |
| Id | aws.acmpca.certificate_authority_activations |
Fields
| Name | Datatype | Description |
|---|---|---|
certificate_authority_arn | string | Arn of the Certificate Authority. |
certificate | string | Certificate Authority certificate that will be installed in the Certificate Authority. |
certificate_chain | string | Certificate chain for the Certificate Authority certificate. |
status | string | The status of the Certificate Authority. |
complete_certificate_chain | string | The complete certificate chain, including the Certificate Authority certificate. |
region | string | AWS region. |
For more information, see AWS::ACMPCA::CertificateAuthorityActivation.
Methods
| Name | Accessible by | Required Params |
|---|---|---|
create_resource | INSERT | CertificateAuthorityArn, Certificate, region |
delete_resource | DELETE | data__Identifier, region |
update_resource | UPDATE | data__Identifier, data__PatchDocument, region |
get_resource | SELECT | data__Identifier, 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 aws.acmpca.certificate_authority_activations
WHERE region = 'us-east-1' AND data__Identifier = '<CertificateAuthorityArn>';
INSERT example
Use the following StackQL query and manifest file to create a new certificate_authority_activation resource, using stack-deploy.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO aws.acmpca.certificate_authority_activations (
CertificateAuthorityArn,
Certificate,
region
)
SELECT
'{{ CertificateAuthorityArn }}',
'{{ Certificate }}',
'{{ region }}';
/*+ create */
INSERT INTO aws.acmpca.certificate_authority_activations (
CertificateAuthorityArn,
Certificate,
CertificateChain,
Status,
region
)
SELECT
'{{ CertificateAuthorityArn }}',
'{{ Certificate }}',
'{{ CertificateChain }}',
'{{ Status }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: certificate_authority_activation
props:
- name: CertificateAuthorityArn
value: '{{ CertificateAuthorityArn }}'
- name: Certificate
value: '{{ Certificate }}'
- name: CertificateChain
value: '{{ CertificateChain }}'
- name: Status
value: '{{ Status }}'
DELETE example
/*+ delete */
DELETE FROM aws.acmpca.certificate_authority_activations
WHERE data__Identifier = '<CertificateAuthorityArn>'
AND region = 'us-east-1';
Permissions
To operate on the certificate_authority_activations resource, the following permissions are required:
Create
acm-pca:ImportCertificateAuthorityCertificate,
acm-pca:UpdateCertificateAuthority
Read
acm-pca:GetCertificateAuthorityCertificate,
acm-pca:DescribeCertificateAuthority
Delete
acm-pca:UpdateCertificateAuthority
Update
acm-pca:ImportCertificateAuthorityCertificate,
acm-pca:UpdateCertificateAuthority