BedrockAgentCoreControlPlaneFrontingLayer / Client / create_workload_identity

create_workload_identity

BedrockAgentCoreControlPlaneFrontingLayer.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',
    ]
)
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) –

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

  • BedrockAgentCoreControlPlaneFrontingLayer.Client.exceptions.UnauthorizedException

  • BedrockAgentCoreControlPlaneFrontingLayer.Client.exceptions.ValidationException

  • BedrockAgentCoreControlPlaneFrontingLayer.Client.exceptions.AccessDeniedException

  • BedrockAgentCoreControlPlaneFrontingLayer.Client.exceptions.ResourceNotFoundException

  • BedrockAgentCoreControlPlaneFrontingLayer.Client.exceptions.ThrottlingException

  • BedrockAgentCoreControlPlaneFrontingLayer.Client.exceptions.InternalServerException