Skip to content

Bedrock Agentcore Control  >  Operations  >  get_workload_identity

get_workload_identity

Operation

get_workload_identity async

get_workload_identity(input: GetWorkloadIdentityInput, plugins: list[Plugin] | None = None) -> GetWorkloadIdentityOutput

Retrieves information about a workload identity.

Parameters:

Name Type Description Default
input GetWorkloadIdentityInput

An instance of GetWorkloadIdentityInput.

required
plugins list[Plugin] | None

A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations.

None

Returns:

Type Description
GetWorkloadIdentityOutput

An instance of GetWorkloadIdentityOutput.

Input

GetWorkloadIdentityInput dataclass

Dataclass for GetWorkloadIdentityInput structure.

Attributes

name class-attribute instance-attribute
name: str | None = None

The name of the workload identity to retrieve.

Output

GetWorkloadIdentityOutput dataclass

Dataclass for GetWorkloadIdentityOutput structure.

Attributes

allowed_resource_oauth2_return_urls class-attribute instance-attribute
allowed_resource_oauth2_return_urls: list[str] | None = None

The list of allowed OAuth2 return URLs for resources associated with this workload identity.

created_time instance-attribute
created_time: datetime

The timestamp when the workload identity was created.

last_updated_time instance-attribute
last_updated_time: datetime

The timestamp when the workload identity was last updated.

name instance-attribute
name: str

The name of the workload identity.

workload_identity_arn instance-attribute
workload_identity_arn: str

The Amazon Resource Name (ARN) of the workload identity.