create_oauth2_credential_provider
¶
create_oauth2_credential_provider(
name: CredentialProviderName,
credential_provider_vendor: CredentialProviderVendorType,
oauth2_provider_config_input: Oauth2ProviderConfigInput,
*,
config_overrides: Optional[BedrockAgentCoreControlClientConfig] = 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/bedrock_agent_core_control.py
9315 9316 9317 9318 9319 9320 9321 9322 9323 9324 9325 9326 9327 9328 9329 9330 9331 9332 9333 9334 9335 9336 9337 9338 9339 9340 9341 9342 9343 9344 9345 9346 9347 9348 9349 9350 9351 9352 9353 9354 9355 9356 9357 9358 9359 9360 9361 9362 9363 9364 9365 9366 9367 9368 9369 9370 9371 9372 9373 9374 9375 9376 9377 9378 9379 9380 9381 9382 9383 9384 9385 9386 9387 9388 9389 9390 9391 9392 9393 9394 9395 9396 9397 9398 9399 9400 9401 | |