

# ApiKeySecretOutput

Where the provider's API key is stored. Reports the ARN of the AWS Secrets Manager secret holding it and whether that secret is service-owned or yours, never the key itself.

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

 ** apiKeySecretArn **   <a name="credentialbrokercontrol-Type-ApiKeySecretOutput-apiKeySecretArn"></a>
The Amazon Resource Name (ARN) of the AWS Secrets Manager secret holding the API key. Returned instead of the key itself, so reads never expose the value.  
Type: String  
Pattern: `arn:(aws|aws-us-gov|aws-cn|aws-iso|aws-iso-b|aws-iso-e|aws-iso-f|aws-eusc):secretsmanager:[a-zA-Z0-9-]{1,64}:[0-9]{12}:secret:[a-zA-Z0-9-_/+=.@!]+`   
Required: Yes

 ** apiKeySecretSource **   <a name="credentialbrokercontrol-Type-ApiKeySecretOutput-apiKeySecretSource"></a>
Whether the secret holding the API key is one the service created and owns (MANAGED), or one you own in AWS Secrets Manager that the service reads (EXTERNAL).  
Type: String  
Valid Values: `MANAGED | EXTERNAL`   
Required: Yes

 ** apiKeySecretJsonKey **   <a name="credentialbrokercontrol-Type-ApiKeySecretOutput-apiKeySecretJsonKey"></a>
The key read from the secret's JSON payload to obtain the API key. Present only when the secret is one you own and holds a JSON object.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 128.  
Required: No

## See Also
<a name="API_ApiKeySecretOutput_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/ApiKeySecretOutput) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/credentialbroker-control-2026-09-30/ApiKeySecretOutput) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/credentialbroker-control-2026-09-30/ApiKeySecretOutput) 