BedrockAgentCoreControl / Client / create_workload_identity
create_workload_identity¶
- BedrockAgentCoreControl.Client.create_workload_identity(**kwargs)¶
Creates a new workload identity.
See also: AWS API Documentation
Request Syntax
response = client.create_workload_identity( name='string', allowedResourceOauth2ReturnUrls=[ 'string', ], tags={ 'string': 'string' } )
- Parameters:
name (string) –
[REQUIRED]
The name of the workload identity. The name must be unique within your account.
allowedResourceOauth2ReturnUrls (list) –
The list of allowed OAuth2 return URLs for resources associated with this workload identity.
(string) –
tags (dict) –
A map of tag keys and values to assign to the workload identity. Tags enable you to categorize your resources in different ways, for example, by purpose, owner, or environment.
(string) –
(string) –
- Return type:
dict
- Returns:
Response Syntax
{ 'name': 'string', 'workloadIdentityArn': 'string', 'allowedResourceOauth2ReturnUrls': [ 'string', ] }
Response Structure
(dict) –
name (string) –
The name of the workload identity.
workloadIdentityArn (string) –
The Amazon Resource Name (ARN) of the workload identity.
allowedResourceOauth2ReturnUrls (list) –
The list of allowed OAuth2 return URLs for resources associated with this workload identity.
(string) –
Exceptions
BedrockAgentCoreControl.Client.exceptions.UnauthorizedExceptionBedrockAgentCoreControl.Client.exceptions.ValidationExceptionBedrockAgentCoreControl.Client.exceptions.AccessDeniedExceptionBedrockAgentCoreControl.Client.exceptions.ResourceNotFoundExceptionBedrockAgentCoreControl.Client.exceptions.ThrottlingExceptionBedrockAgentCoreControl.Client.exceptions.InternalServerException