crls
Creates, updates, deletes or gets a crl
resource or lists crls
in a region
Overview
Name | crls |
Type | Resource |
Description | Definition of AWS::RolesAnywhere::CRL Resource Type |
Id | aws.rolesanywhere.crls |
Fields
Name | Datatype | Description |
---|---|---|
crl_data | string | |
crl_id | string | |
enabled | boolean | |
name | string | |
trust_anchor_arn | string | |
tags | array | |
region | string | AWS region. |
Methods
Name | Accessible by | Required Params |
---|---|---|
create_resource | INSERT | Name, CrlData, region |
delete_resource | DELETE | data__Identifier, region |
update_resource | UPDATE | data__Identifier, data__PatchDocument, region |
list_resources | SELECT | region |
get_resource | SELECT | data__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
.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO aws.rolesanywhere.crls (
CrlData,
Name,
region
)
SELECT
'{{ CrlData }}',
'{{ Name }}',
'{{ region }}';
/*+ create */
INSERT INTO aws.rolesanywhere.crls (
CrlData,
Enabled,
Name,
TrustAnchorArn,
Tags,
region
)
SELECT
'{{ CrlData }}',
'{{ Enabled }}',
'{{ Name }}',
'{{ TrustAnchorArn }}',
'{{ Tags }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: crl
props:
- name: CrlData
value: '{{ CrlData }}'
- name: Enabled
value: '{{ Enabled }}'
- name: Name
value: '{{ Name }}'
- name: TrustAnchorArn
value: '{{ TrustAnchorArn }}'
- name: Tags
value:
- Key: '{{ Key }}'
Value: '{{ Value }}'
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