Skip to main content

crls

Creates, updates, deletes or gets a crl resource or lists crls in a region

Overview

Namecrls
TypeResource
DescriptionDefinition of AWS::RolesAnywhere::CRL Resource Type
Idaws.rolesanywhere.crls

Fields

NameDatatypeDescription
crl_datastring
crl_idstring
enabledboolean
namestring
trust_anchor_arnstring
tagsarray
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTName, CrlData, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all crls in a region.

SELECT
region,
crl_data,
crl_id,
enabled,
name,
trust_anchor_arn,
tags
FROM aws.rolesanywhere.crls
WHERE region = 'us-east-1';

Gets all properties from an individual crl.

SELECT
region,
crl_data,
crl_id,
enabled,
name,
trust_anchor_arn,
tags
FROM aws.rolesanywhere.crls
WHERE region = 'us-east-1' AND data__Identifier = '<CrlId>';

INSERT example

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

/*+ create */
INSERT INTO aws.rolesanywhere.crls (
CrlData,
Name,
region
)
SELECT
'{{ CrlData }}',
'{{ Name }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.rolesanywhere.crls
WHERE data__Identifier = '<CrlId>'
AND region = 'us-east-1';

Permissions

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

Create

rolesanywhere:ImportCrl,
rolesanywhere:TagResource,
rolesanywhere:ListTagsForResource

Read

rolesanywhere:GetCrl,
rolesanywhere:ListTagsForResource

Update

rolesanywhere:EnableCrl,
rolesanywhere:DisableCrl,
rolesanywhere:UpdateCrl,
rolesanywhere:TagResource,
rolesanywhere:UntagResource,
rolesanywhere:ListTagsForResource

Delete

rolesanywhere:DeleteCrl

List

rolesanywhere:ListCrls,
rolesanywhere:ListTagsForResource