update_api_key_credential_provider
¶
update_api_key_credential_provider(
name: CredentialProviderName,
*,
config_overrides: Optional[BedrockAgentCoreControlClientConfig] = 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/bedrock_agent_core_control.py
2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 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 | |