

This is the new *Amazon CloudFormation Template Reference Guide*. Please update your bookmarks and links. For help getting started with CloudFormation, see the [Amazon CloudFormation User Guide](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/Welcome.html).

# AWS::CredentialBroker::CredentialProvider ApiKeySecretOutput

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

## Syntax
<a name="aws-properties-credentialbroker-credentialprovider-apikeysecretoutput-syntax"></a>

To declare this entity in your Amazon CloudFormation template, use the following syntax:

### JSON
<a name="aws-properties-credentialbroker-credentialprovider-apikeysecretoutput-syntax.json"></a>

```json
{
  "[ApiKeySecretArn](#cfn-credentialbroker-credentialprovider-apikeysecretoutput-apikeysecretarn)" : {{String}},
  "[ApiKeySecretJsonKey](#cfn-credentialbroker-credentialprovider-apikeysecretoutput-apikeysecretjsonkey)" : {{String}},
  "[ApiKeySecretSource](#cfn-credentialbroker-credentialprovider-apikeysecretoutput-apikeysecretsource)" : {{String}}
}
```

### YAML
<a name="aws-properties-credentialbroker-credentialprovider-apikeysecretoutput-syntax.yaml"></a>

```yaml
  [ApiKeySecretArn](#cfn-credentialbroker-credentialprovider-apikeysecretoutput-apikeysecretarn): {{String}}
  [ApiKeySecretJsonKey](#cfn-credentialbroker-credentialprovider-apikeysecretoutput-apikeysecretjsonkey): {{String}}
  [ApiKeySecretSource](#cfn-credentialbroker-credentialprovider-apikeysecretoutput-apikeysecretsource): {{String}}
```

## Properties
<a name="aws-properties-credentialbroker-credentialprovider-apikeysecretoutput-properties"></a>

`ApiKeySecretArn`  <a name="cfn-credentialbroker-credentialprovider-apikeysecretoutput-apikeysecretarn"></a>
The Amazon Resource Name (ARN) of the Amazon Secrets Manager secret holding the API key. Returned instead of the key itself, so reads never expose the value.  
*Required*: Yes  
*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-_/+=.@!]+$`  
*Update requires*: [No interruption](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`ApiKeySecretJsonKey`  <a name="cfn-credentialbroker-credentialprovider-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.  
*Required*: No  
*Type*: String  
*Minimum*: `1`  
*Maximum*: `128`  
*Update requires*: [No interruption](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`ApiKeySecretSource`  <a name="cfn-credentialbroker-credentialprovider-apikeysecretoutput-apikeysecretsource"></a>
Whether the secret holding the API key is one the service created and owns (MANAGED), or one you own in Amazon Secrets Manager that the service reads (EXTERNAL).  
*Required*: Yes  
*Type*: String  
*Allowed values*: `MANAGED | EXTERNAL`  
*Update requires*: [No interruption](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)