create_workload_identity
¶
create_workload_identity(
name: WorkloadIdentityNameType,
*,
config_overrides: Optional[BedrockAgentCoreControlClientConfig] = 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/bedrock_agent_core_control.py
13745 13746 13747 13748 13749 13750 13751 13752 13753 13754 13755 13756 13757 13758 13759 13760 13761 13762 13763 13764 13765 13766 13767 13768 13769 13770 13771 13772 13773 13774 13775 13776 13777 13778 13779 13780 13781 13782 13783 13784 13785 13786 13787 13788 13789 13790 13791 13792 13793 13794 13795 13796 13797 13798 13799 13800 13801 13802 13803 13804 13805 | |