create_api_key_credential_provider
async
¶
create_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,
tags: Optional[TagsMap] = None,
) -> CreateApiKeyCredentialProviderResponse
Creates a new API key credential provider.
Parameters:
-
name(CredentialProviderName) –The name of the API key credential provider. The name must be unique within your account.
-
api_key(Optional[DefaultApiKeyType], default:None) –The API key to use for authentication. This value 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. -
tags(Optional[TagsMap], default:None) –A map of tag keys and values to assign to the API key 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
2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 | |