create_oauth2_credential_provider
async
¶
create_oauth2_credential_provider(
name: CredentialProviderName,
credential_provider_vendor: CredentialProviderVendorType,
oauth2_provider_config_input: Oauth2ProviderConfigInput,
*,
config_overrides: Optional[AsyncBedrockAgentCoreControlClientConfig] = None,
tags: Optional[TagsMap] = None,
) -> CreateOauth2CredentialProviderResponse
Creates a new OAuth2 credential provider.
Parameters:
-
name(CredentialProviderName) –The name of the OAuth2 credential provider. The name must be unique within your account.
-
credential_provider_vendor(CredentialProviderVendorType) –The vendor of the OAuth2 credential provider. This specifies which OAuth2 implementation to use.
-
oauth2_provider_config_input(Oauth2ProviderConfigInput) –The configuration settings for the OAuth2 provider, including client ID, client secret, and other vendor-specific settings.
-
tags(Optional[TagsMap], default:None) –A map of tag keys and values to assign to the OAuth2 credential provider. 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
-
ConflictException–This exception is thrown when there is a conflict performing an operation
-
DecryptionFailure–Exception thrown when decryption of a secret fails.
-
EncryptionFailure–Exception thrown when encryption of a secret fails.
-
InternalServerException–This exception is thrown if there was an unexpected error during processing of request
-
ResourceLimitExceededException–Exception thrown when a resource limit is exceeded.
-
ResourceNotFoundException–This exception is thrown when a resource referenced by the operation does not exist
-
ServiceQuotaExceededException–This exception is thrown when a request is made beyond the service quota
-
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
9419 9420 9421 9422 9423 9424 9425 9426 9427 9428 9429 9430 9431 9432 9433 9434 9435 9436 9437 9438 9439 9440 9441 9442 9443 9444 9445 9446 9447 9448 9449 9450 9451 9452 9453 9454 9455 9456 9457 9458 9459 9460 9461 9462 9463 9464 9465 9466 9467 9468 9469 9470 9471 9472 9473 9474 9475 9476 9477 9478 9479 9480 9481 9482 9483 9484 9485 9486 9487 9488 9489 9490 9491 9492 9493 9494 9495 9496 9497 9498 9499 9500 9501 9502 9503 9504 9505 9506 | |