Skip to main content

subjects

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

Overview

Namesubjects
TypeResource
Idaws.rolesanywhere.subjects

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
created_atstring (date-time)The ISO-8601 timestamp when the subject was created.
credentialsarrayThe temporary session credentials vended at the last authenticating call with this subject.
enabledbooleanThe enabled status of the subject.
instance_propertiesarrayThe specified instance properties associated with the request.
last_seen_atstring (date-time)The ISO-8601 timestamp of the last time this subject requested temporary session credentials.
subject_arnstringThe ARN of the resource.
subject_idstringThe id of the resource (pattern: <code>.[a-f0-9]{8}-([a-z0-9]{4}-){3}[a-z0-9]{12}.</code>)
updated_atstring (date-time)The ISO-8601 timestamp when the subject was last updated.
x_509_subjectstringThe x509 principal identifier of the authenticating certificate.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_subjectselectsubject_id, regionGets a subject, which associates a certificate identity with authentication attempts. The subject stores auditing information such as the status of the last authentication attempt, the certificate data used in the attempt, and the last time the associated identity attempted authentication. Required permissions: rolesanywhere:GetSubject.
list_subjectsselectregionnextToken, pageSizeLists the subjects in the authenticated account and Amazon Web Services Region. Required permissions: rolesanywhere:ListSubjects.

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
regionstringAWS region (default: us-east-1)
subject_idstringThe unique identifier of the subject.
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 subject, which associates a certificate identity with authentication attempts. The subject stores auditing information such as the status of the last authentication attempt, the certificate data used in the attempt, and the last time the associated identity attempted authentication. Required permissions: rolesanywhere:GetSubject.

SELECT
created_at,
credentials,
enabled,
instance_properties,
last_seen_at,
subject_arn,
subject_id,
updated_at,
x_509_subject
FROM aws.rolesanywhere.subjects
WHERE subject_id = '{{ subject_id }}' -- required
AND region = '{{ region }}' -- required
;