Skip to main content

template_group_access_control_entries

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

Overview

Nametemplate_group_access_control_entries
TypeResource
Idaws.pca_connector_ad.template_group_access_control_entries

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
access_rightsobjectAllow or deny permissions for an Active Directory group to enroll or autoenroll certificates for a template.
created_atstring (date-time)The date and time that the Access Control Entry was created.
group_display_namestringName of the Active Directory group. This name does not need to match the group name in Active Directory. (pattern: <code>^[\x20-\x7E]+$</code>)
group_security_identifierstringSecurity identifier (SID) of the group object from Active Directory. The SID starts with "S-". (pattern: <code>^S-[0-9]-([0-9]+-){1,14}[0-9]+$</code>)
template_arnstringThe Amazon Resource Name (ARN) that was returned when you called CreateTemplate. (pattern: <code>^arn:[\w-]+:pca-connector-ad:[\w-]+:[0-9]+:connector/[0-9a-f]{8}(-[0-9a-f]{4}){3}-[0-9a-f]{12}/template/[0-9a-f]{8}(-[0-9a-f]{4}){3}-[0-9a-f]{12}$</code>)
updated_atstring (date-time)The date and time that the Access Control Entry was updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_template_group_access_control_entryselectgroup_security_identifier, template_arn, regionRetrieves the group access control entries for a template.
list_template_group_access_control_entriesselecttemplate_arn, regionMaxResults, NextTokenLists group access control entries you created.
create_template_group_access_control_entryinserttemplate_arn, region, AccessRights, GroupDisplayName, GroupSecurityIdentifierCreate a group access control entry. Allow or deny Active Directory groups from enrolling and/or autoenrolling with the template based on the group security identifiers (SIDs).
update_template_group_access_control_entryupdategroup_security_identifier, template_arn, regionUpdate a group access control entry you created using CreateTemplateGroupAccessControlEntry.
delete_template_group_access_control_entrydeletegroup_security_identifier, template_arn, regionDeletes a group access control entry.

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
group_security_identifierstringSecurity identifier (SID) of the group object from Active Directory. The SID starts with "S-".
regionstringAWS region (default: us-east-1)
template_arnstringThe Amazon Resource Name (ARN) that was returned when you called CreateTemplate.
MaxResultsintegerUse this parameter when paginating results to specify the maximum number of items to return in the response on each page. If additional items exist beyond the number you specify, the NextToken element is sent in the response. Use this NextToken value in a subsequent request to retrieve additional items.
NextTokenstringUse this parameter when paginating results in a subsequent request after you receive a response with truncated results. Set it to the value of the NextToken parameter from the response you just received.

SELECT examples

Retrieves the group access control entries for a template.

SELECT
access_rights,
created_at,
group_display_name,
group_security_identifier,
template_arn,
updated_at
FROM aws.pca_connector_ad.template_group_access_control_entries
WHERE group_security_identifier = '{{ group_security_identifier }}' -- required
AND template_arn = '{{ template_arn }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Create a group access control entry. Allow or deny Active Directory groups from enrolling and/or autoenrolling with the template based on the group security identifiers (SIDs).

INSERT INTO aws.pca_connector_ad.template_group_access_control_entries (
AccessRights,
ClientToken,
GroupDisplayName,
GroupSecurityIdentifier,
template_arn,
region
)
SELECT
'{{ AccessRights }}' /* required */,
'{{ ClientToken }}',
'{{ GroupDisplayName }}' /* required */,
'{{ GroupSecurityIdentifier }}' /* required */,
'{{ template_arn }}',
'{{ region }}'
;

UPDATE examples

Update a group access control entry you created using CreateTemplateGroupAccessControlEntry.

UPDATE aws.pca_connector_ad.template_group_access_control_entries
SET
AccessRights = '{{ AccessRights }}',
GroupDisplayName = '{{ GroupDisplayName }}'
WHERE
group_security_identifier = '{{ group_security_identifier }}' --required
AND template_arn = '{{ template_arn }}' --required
AND region = '{{ region }}' --required;

DELETE examples

Deletes a group access control entry.

DELETE FROM aws.pca_connector_ad.template_group_access_control_entries
WHERE group_security_identifier = '{{ group_security_identifier }}' --required
AND template_arn = '{{ template_arn }}' --required
AND region = '{{ region }}' --required
;