create_workload_identity
async
¶
create_workload_identity(
name: WorkloadIdentityNameType,
*,
config_overrides: Optional[AsyncBedrockAgentCoreControlClientConfig] = None,
allowed_resource_oauth2_return_urls: Optional[
ResourceOauth2ReturnUrlListType
] = None,
tags: Optional[TagsMap] = None,
) -> CreateWorkloadIdentityResponse
Creates a new workload identity.
Parameters:
-
name(WorkloadIdentityNameType) –The name of the workload identity. The name must be unique within your account.
-
allowed_resource_oauth2_return_urls(Optional[ResourceOauth2ReturnUrlListType], default:None) –The list of allowed OAuth2 return URLs for resources associated with this workload identity.
-
tags(Optional[TagsMap], default:None) –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.
Raises:
-
AccessDeniedException–This exception is thrown when a request is denied per access permissions
-
InternalServerException–This exception is thrown if there was an unexpected error during processing of request
-
ResourceNotFoundException–This exception is thrown when a resource referenced by the operation does not exist
-
ThrottlingException–This exception is thrown when the number of requests exceeds the limit
-
UnauthorizedException–This exception is thrown when the JWT bearer token is invalid or not found for OAuth bearer token based access
-
ValidationException–The input fails to satisfy the constraints specified by the service.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_bedrock_agentcore_control/_services/async_bedrock_agent_core_control.py
13909 13910 13911 13912 13913 13914 13915 13916 13917 13918 13919 13920 13921 13922 13923 13924 13925 13926 13927 13928 13929 13930 13931 13932 13933 13934 13935 13936 13937 13938 13939 13940 13941 13942 13943 13944 13945 13946 13947 13948 13949 13950 13951 13952 13953 13954 13955 13956 13957 13958 13959 13960 13961 13962 13963 13964 13965 13966 13967 13968 13969 13970 | |