Skip to main content

trust_anchors

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

Overview

Nametrust_anchors
TypeResource
Idaws.rolesanywhere.trust_anchors

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringThe name of the trust anchor. (pattern: <code>[ a-zA-Z0-9-_]*</code>)
created_atstring (date-time)The ISO-8601 timestamp when the trust anchor was created.
enabledbooleanIndicates whether the trust anchor is enabled.
notification_settingsarrayA list of notification settings to be associated to the trust anchor.
sourceobjectThe trust anchor type and its related certificate data.
trust_anchor_arnstringThe ARN of the trust anchor.
trust_anchor_idstringThe unique identifier of the trust anchor. (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 trust anchor was last updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_trust_anchorselecttrust_anchor_id, regionGets a trust anchor. Required permissions: rolesanywhere:GetTrustAnchor.
list_trust_anchorsselectregionnextToken, pageSizeLists the trust anchors in the authenticated account and Amazon Web Services Region. Required permissions: rolesanywhere:ListTrustAnchors.
create_trust_anchorinsertregion, name, sourceCreates a trust anchor to establish trust between IAM Roles Anywhere and your certificate authority (CA). You can define a trust anchor as a reference to an Private Certificate Authority (Private CA) or by uploading a CA certificate. Your Amazon Web Services workloads can authenticate with the trust anchor using certificates issued by the CA in exchange for temporary Amazon Web Services credentials. Required permissions: rolesanywhere:CreateTrustAnchor.
update_trust_anchorupdatetrust_anchor_id, regionUpdates a trust anchor. You establish trust between IAM Roles Anywhere and your certificate authority (CA) by configuring a trust anchor. You can define a trust anchor as a reference to an Private Certificate Authority (Private CA) or by uploading a CA certificate. Your Amazon Web Services workloads can authenticate with the trust anchor using certificates issued by the CA in exchange for temporary Amazon Web Services credentials. Required permissions: rolesanywhere:UpdateTrustAnchor.
put_notification_settingsreplaceregion, trustAnchorId, notificationSettingsAttaches a list of notification settings to a trust anchor. A notification setting includes information such as event name, threshold, status of the notification setting, and the channel to notify. Required permissions: rolesanywhere:PutNotificationSettings.
delete_trust_anchordeletetrust_anchor_id, regionDeletes a trust anchor. Required permissions: rolesanywhere:DeleteTrustAnchor.
disable_trust_anchorexectrust_anchor_id, regionDisables a trust anchor. When disabled, temporary credential requests specifying this trust anchor are unauthorized. Required permissions: rolesanywhere:DisableTrustAnchor.
enable_trust_anchorexectrust_anchor_id, regionEnables a trust anchor. When enabled, certificates in the trust anchor chain are authorized for trust validation. Required permissions: rolesanywhere:EnableTrustAnchor.
reset_notification_settingsexecregion, trustAnchorId, notificationSettingKeysResets the custom notification setting to IAM Roles Anywhere default setting. Required permissions: rolesanywhere:ResetNotificationSettings.

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)
trust_anchor_idstringThe unique identifier of the trust anchor.
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 trust anchor. Required permissions: rolesanywhere:GetTrustAnchor.

SELECT
name,
created_at,
enabled,
notification_settings,
source,
trust_anchor_arn,
trust_anchor_id,
updated_at
FROM aws.rolesanywhere.trust_anchors
WHERE trust_anchor_id = '{{ trust_anchor_id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates a trust anchor to establish trust between IAM Roles Anywhere and your certificate authority (CA). You can define a trust anchor as a reference to an Private Certificate Authority (Private CA) or by uploading a CA certificate. Your Amazon Web Services workloads can authenticate with the trust anchor using certificates issued by the CA in exchange for temporary Amazon Web Services credentials. Required permissions: rolesanywhere:CreateTrustAnchor.

INSERT INTO aws.rolesanywhere.trust_anchors (
name,
source,
enabled,
tags,
notificationSettings,
region
)
SELECT
'{{ name }}' /* required */,
'{{ source }}' /* required */,
{{ enabled }},
'{{ tags }}',
'{{ notificationSettings }}',
'{{ region }}'
RETURNING
trust_anchor
;

UPDATE examples

Updates a trust anchor. You establish trust between IAM Roles Anywhere and your certificate authority (CA) by configuring a trust anchor. You can define a trust anchor as a reference to an Private Certificate Authority (Private CA) or by uploading a CA certificate. Your Amazon Web Services workloads can authenticate with the trust anchor using certificates issued by the CA in exchange for temporary Amazon Web Services credentials. Required permissions: rolesanywhere:UpdateTrustAnchor.

UPDATE aws.rolesanywhere.trust_anchors
SET
name = '{{ name }}',
source = '{{ source }}'
WHERE
trust_anchor_id = '{{ trust_anchor_id }}' --required
AND region = '{{ region }}' --required
RETURNING
trust_anchor;

REPLACE examples

Attaches a list of notification settings to a trust anchor. A notification setting includes information such as event name, threshold, status of the notification setting, and the channel to notify. Required permissions: rolesanywhere:PutNotificationSettings.

REPLACE aws.rolesanywhere.trust_anchors
SET
trustAnchorId = '{{ trustAnchorId }}',
notificationSettings = '{{ notificationSettings }}'
WHERE
region = '{{ region }}' --required
AND trustAnchorId = '{{ trustAnchorId }}' --required
AND notificationSettings = '{{ notificationSettings }}' --required
RETURNING
trust_anchor;

DELETE examples

Deletes a trust anchor. Required permissions: rolesanywhere:DeleteTrustAnchor.

DELETE FROM aws.rolesanywhere.trust_anchors
WHERE trust_anchor_id = '{{ trust_anchor_id }}' --required
AND region = '{{ region }}' --required
;

Lifecycle Methods

Disables a trust anchor. When disabled, temporary credential requests specifying this trust anchor are unauthorized. Required permissions: rolesanywhere:DisableTrustAnchor.

EXEC aws.rolesanywhere.trust_anchors.disable_trust_anchor
@trust_anchor_id='{{ trust_anchor_id }}' --required,
@region='{{ region }}' --required
;