Skip to main content

workload_identities

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

Overview

Nameworkload_identities
TypeResource
Idaws.bedrock_agentcore_control.workload_identities

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringThe name of the workload identity. (pattern: <code>[A-Za-z0-9_.-]+</code>)
allowed_resource_oauth_2_return_urlsarrayThe list of allowed OAuth2 return URLs for resources associated with this workload identity.
created_timestring (date-time)The timestamp when the workload identity was created.
last_updated_timestring (date-time)The timestamp when the workload identity was last updated.
workload_identity_arnstringThe Amazon Resource Name (ARN) of the workload identity.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_workload_identityselectregionRetrieves information about a workload identity.
list_workload_identitiesselectregionLists all workload identities in your account.
create_workload_identityinsertregion, nameCreates a new workload identity.
update_workload_identityupdateregion, nameUpdates an existing workload identity.
delete_workload_identitydeleteregionDeletes a workload identity.

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)

SELECT examples

Retrieves information about a workload identity.

SELECT
name,
allowed_resource_oauth_2_return_urls,
created_time,
last_updated_time,
workload_identity_arn
FROM aws.bedrock_agentcore_control.workload_identities
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates a new workload identity.

INSERT INTO aws.bedrock_agentcore_control.workload_identities (
name,
allowedResourceOauth2ReturnUrls,
tags,
region
)
SELECT
'{{ name }}' /* required */,
'{{ allowedResourceOauth2ReturnUrls }}',
'{{ tags }}',
'{{ region }}'
RETURNING
name,
allowed_resource_oauth_2_return_urls,
workload_identity_arn
;

UPDATE examples

Updates an existing workload identity.

UPDATE aws.bedrock_agentcore_control.workload_identities
SET
name = '{{ name }}',
allowedResourceOauth2ReturnUrls = '{{ allowedResourceOauth2ReturnUrls }}'
WHERE
region = '{{ region }}' --required
AND name = '{{ name }}' --required
RETURNING
name,
allowed_resource_oauth_2_return_urls,
created_time,
last_updated_time,
workload_identity_arn;

DELETE examples

Deletes a workload identity.

DELETE FROM aws.bedrock_agentcore_control.workload_identities
WHERE region = '{{ region }}' --required
;