Skip to main content

templates

Creates, updates, deletes or gets a template resource or lists templates in a region

Overview

Nametemplates
TypeResource
DescriptionRepresents a template that defines certificate configurations, both for issuance and client handling
Idaws.pcaconnectorad.templates

Fields

NameDatatypeDescription
connector_arnstring
definitionundefined
namestring
reenroll_all_certificate_holdersboolean
tagsobject
template_arnstring
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTConnectorArn, Definition, Name, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all templates in a region.

SELECT
region,
connector_arn,
definition,
name,
reenroll_all_certificate_holders,
tags,
template_arn
FROM aws.pcaconnectorad.templates
WHERE region = 'us-east-1';

Gets all properties from an individual template.

SELECT
region,
connector_arn,
definition,
name,
reenroll_all_certificate_holders,
tags,
template_arn
FROM aws.pcaconnectorad.templates
WHERE region = 'us-east-1' AND data__Identifier = '<TemplateArn>';

INSERT example

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

/*+ create */
INSERT INTO aws.pcaconnectorad.templates (
ConnectorArn,
Definition,
Name,
region
)
SELECT
'{{ ConnectorArn }}',
'{{ Definition }}',
'{{ Name }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.pcaconnectorad.templates
WHERE data__Identifier = '<TemplateArn>'
AND region = 'us-east-1';

Permissions

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

Create

pca-connector-ad:CreateTemplate

Read

pca-connector-ad:GetTemplate,
pca-connector-ad:ListTagsForResource

Update

pca-connector-ad:ListTagsForResource,
pca-connector-ad:TagResource,
pca-connector-ad:UntagResource,
pca-connector-ad:UpdateTemplate

Delete

pca-connector-ad:GetTemplate,
pca-connector-ad:DeleteTemplate

List

pca-connector-ad:ListTemplates