Skip to main content

crls

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

Overview

Namecrls
TypeResource
Idaws.rolesanywhere.crls

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringThe name of the certificate revocation list (CRL).
created_atstring (date-time)The ISO-8601 timestamp when the certificate revocation list (CRL) was created.
crl_arnstringThe ARN of the certificate revocation list (CRL).
crl_datastring (byte)The state of the certificate revocation list (CRL) after a read or write operation.
crl_idstringThe unique identifier of the certificate revocation list (CRL). (pattern: <code>.[a-f0-9]{8}-([a-z0-9]{4}-){3}[a-z0-9]{12}.</code>)
enabledbooleanIndicates whether the certificate revocation list (CRL) is enabled.
trust_anchor_arnstringThe ARN of the TrustAnchor the certificate revocation list (CRL) will provide revocation for.
updated_atstring (date-time)The ISO-8601 timestamp when the certificate revocation list (CRL) was last updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_crlselectcrl_id, regionGets a certificate revocation list (CRL). Required permissions: rolesanywhere:GetCrl.
list_crlsselectregionnextToken, pageSizeLists all certificate revocation lists (CRL) in the authenticated account and Amazon Web Services Region. Required permissions: rolesanywhere:ListCrls.
update_crlupdatecrl_id, regionUpdates the certificate revocation list (CRL). A CRL is a list of certificates that have been revoked by the issuing certificate authority (CA). IAM Roles Anywhere validates against the CRL before issuing credentials. Required permissions: rolesanywhere:UpdateCrl.
delete_crldeletecrl_id, regionDeletes a certificate revocation list (CRL). Required permissions: rolesanywhere:DeleteCrl.

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
crl_idstringThe unique identifier of the certificate revocation list (CRL).
regionstringAWS region (default: us-east-1)
nextTokenstringA token that indicates where the output should continue from, if a previous request did not show all results. To get the next results, make the request again with this value.
pageSizeintegerThe number of resources in the paginated list.

SELECT examples

Gets a certificate revocation list (CRL). Required permissions: rolesanywhere:GetCrl.

SELECT
name,
created_at,
crl_arn,
crl_data,
crl_id,
enabled,
trust_anchor_arn,
updated_at
FROM aws.rolesanywhere.crls
WHERE crl_id = '{{ crl_id }}' -- required
AND region = '{{ region }}' -- required
;

UPDATE examples

Updates the certificate revocation list (CRL). A CRL is a list of certificates that have been revoked by the issuing certificate authority (CA). IAM Roles Anywhere validates against the CRL before issuing credentials. Required permissions: rolesanywhere:UpdateCrl.

UPDATE aws.rolesanywhere.crls
SET
name = '{{ name }}',
crlData = '{{ crlData }}'
WHERE
crl_id = '{{ crl_id }}' --required
AND region = '{{ region }}' --required
RETURNING
crl;

DELETE examples

Deletes a certificate revocation list (CRL). Required permissions: rolesanywhere:DeleteCrl.

DELETE FROM aws.rolesanywhere.crls
WHERE crl_id = '{{ crl_id }}' --required
AND region = '{{ region }}' --required
;