Skip to main content

group_certificate_authorities

Creates, updates, deletes, gets or lists a group_certificate_authorities resource.

Overview

Namegroup_certificate_authorities
TypeResource
Idaws.greengrass.group_certificate_authorities

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
group_certificate_authority_arnstringThe ARN of the certificate authority for the group.
group_certificate_authority_idstringThe ID of the certificate authority for the group.
pem_encoded_certificatestringThe PEM encoded certificate for the group.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_group_certificate_authorityselectcertificate_authority_id, group_id, regionRetreives the CA associated with a group. Returns the public key of the CA.
list_group_certificate_authoritiesselectgroup_id, regionRetrieves the current CAs for a group.
create_group_certificate_authorityinsertgroup_id, regionX-Amzn-Client-TokenCreates a CA for the group. If a CA already exists, it will rotate the existing CA.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
certificate_authority_idstringThe ID of the certificate authority.
group_idstringThe ID of the Greengrass group.
regionstringAWS region (default: us-east-1)
X-Amzn-Client-TokenstringA client token used to correlate requests and responses.

SELECT examples

Retreives the CA associated with a group. Returns the public key of the CA.

SELECT
group_certificate_authority_arn,
group_certificate_authority_id,
pem_encoded_certificate
FROM aws.greengrass.group_certificate_authorities
WHERE certificate_authority_id = '{{ certificate_authority_id }}' -- required
AND group_id = '{{ group_id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates a CA for the group. If a CA already exists, it will rotate the existing CA.

INSERT INTO aws.greengrass.group_certificate_authorities (
group_id,
region,
`X-Amzn-Client-Token`
)
SELECT
'{{ group_id }}',
'{{ region }}',
'{{ X-Amzn-Client-Token }}'
RETURNING
group_certificate_authority_arn
;