

# ApiKeySecretInput

How the provider's API key is supplied. Set exactly one member: give the key value and let the service store it in a secret it owns, or point at an AWS Secrets Manager secret you already own. Either way, reads return only the ARN of the secret, never the key.

## Contents
<a name="API_ApiKeySecretInput_Contents"></a>

**Important**  
This data type is a UNION, so only one of the following members can be specified when used or returned.

 ** apiKey **   <a name="credentialbrokercontrol-Type-ApiKeySecretInput-apiKey"></a>
The API key value. The service stores it in an AWS Secrets Manager secret that the service owns. Write-only: reads return only the ARN of the secret holding it.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 65536.  
Required: No

 ** apiKeySecretReference **   <a name="credentialbrokercontrol-Type-ApiKeySecretInput-apiKeySecretReference"></a>
An AWS Secrets Manager secret you own that holds the API key. The service reads the key from your secret rather than storing a copy of its own.  
Type: [SecretReference](API_SecretReference.md) object  
Required: No

## See Also
<a name="API_ApiKeySecretInput_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\+\+](https://docs.aws.amazon.com/goto/SdkForCpp/credentialbroker-control-2026-09-30/ApiKeySecretInput) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/credentialbroker-control-2026-09-30/ApiKeySecretInput) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/credentialbroker-control-2026-09-30/ApiKeySecretInput) 