update_api_key_credential_provider
async
¶
update_api_key_credential_provider(
name: CredentialProviderName,
*,
config_overrides: Optional[AsyncBedrockAgentCoreControlClientConfig] = None,
api_key: Optional[DefaultApiKeyType] = None,
api_key_secret_config: Optional[SecretReference] = None,
api_key_secret_source: Optional[SecretSourceType] = None,
) -> UpdateApiKeyCredentialProviderResponse
Updates an existing API key credential provider.
Parameters:
-
name(CredentialProviderName) –The name of the API key credential provider to update.
-
api_key(Optional[DefaultApiKeyType], default:None) –The new API key to use for authentication. This value replaces the existing API key and is encrypted and stored securely.
-
api_key_secret_config(Optional[SecretReference], default:None) –A reference to the Amazon Web Services Secrets Manager secret that stores the API key. This includes the secret ID and the JSON key used to extract the API key value from the secret. Required when
apiKeySecretSourceis set toEXTERNAL. -
api_key_secret_source(Optional[SecretSourceType], default:None) –The source type of the API key secret. Use
MANAGEDif the secret is managed by the service, orEXTERNALif you manage the secret yourself in Amazon Web Services Secrets Manager.
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
-
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
2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 | |