BedrockAgentCoreControl / Client / update_api_key_credential_provider
update_api_key_credential_provider¶
- BedrockAgentCoreControl.Client.update_api_key_credential_provider(**kwargs)¶
Updates an existing API key credential provider.
See also: AWS API Documentation
Request Syntax
response = client.update_api_key_credential_provider( name='string', apiKey='string', apiKeySecretConfig={ 'secretId': 'string', 'jsonKey': 'string' }, apiKeySecretSource='MANAGED'|'EXTERNAL' )
- Parameters:
name (string) –
[REQUIRED]
The name of the API key credential provider to update.
apiKey (string) – The new API key to use for authentication. This value replaces the existing API key and is encrypted and stored securely.
apiKeySecretConfig (dict) –
A reference to the AWS 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.secretId (string) – [REQUIRED]
The ID of the AWS Secrets Manager secret that stores the secret value.
jsonKey (string) – [REQUIRED]
The JSON key used to extract the secret value from the AWS Secrets Manager secret.
apiKeySecretSource (string) – The source type of the API key secret. Use
MANAGEDif the secret is managed by the service, orEXTERNALif you manage the secret yourself in AWS Secrets Manager.
- Return type:
dict
- Returns:
Response Syntax
{ 'apiKeySecretArn': { 'secretArn': 'string' }, 'apiKeySecretJsonKey': 'string', 'apiKeySecretSource': 'MANAGED'|'EXTERNAL', 'name': 'string', 'credentialProviderArn': 'string', 'createdTime': datetime(2015, 1, 1), 'lastUpdatedTime': datetime(2015, 1, 1) }
Response Structure
(dict) –
apiKeySecretArn (dict) –
The Amazon Resource Name (ARN) of the API key secret in AWS Secrets Manager.
secretArn (string) –
The Amazon Resource Name (ARN) of the secret in AWS Secrets Manager.
apiKeySecretJsonKey (string) –
The JSON key used to extract the API key value from the AWS Secrets Manager secret.
apiKeySecretSource (string) –
The source type of the API key secret. Either
MANAGEDif the secret is managed by the service, orEXTERNALif managed by the user in AWS Secrets Manager.name (string) –
The name of the API key credential provider.
credentialProviderArn (string) –
The Amazon Resource Name (ARN) of the API key credential provider.
createdTime (datetime) –
The timestamp when the API key credential provider was created.
lastUpdatedTime (datetime) –
The timestamp when the API key credential provider was last updated.
Exceptions
BedrockAgentCoreControl.Client.exceptions.ServiceQuotaExceededExceptionBedrockAgentCoreControl.Client.exceptions.UnauthorizedExceptionBedrockAgentCoreControl.Client.exceptions.ValidationExceptionBedrockAgentCoreControl.Client.exceptions.AccessDeniedExceptionBedrockAgentCoreControl.Client.exceptions.ConflictExceptionBedrockAgentCoreControl.Client.exceptions.DecryptionFailureBedrockAgentCoreControl.Client.exceptions.ResourceNotFoundExceptionBedrockAgentCoreControl.Client.exceptions.ThrottlingExceptionBedrockAgentCoreControl.Client.exceptions.InternalServerExceptionBedrockAgentCoreControl.Client.exceptions.EncryptionFailure