

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::BedrockAgentCore::ApiKeyCredentialProvider SecretReference
<a name="aws-properties-bedrockagentcore-apikeycredentialprovider-secretreference"></a>

Contains a reference to a secret stored in Amazon Secrets Manager.

## Syntax
<a name="aws-properties-bedrockagentcore-apikeycredentialprovider-secretreference-syntax"></a>

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

### JSON
<a name="aws-properties-bedrockagentcore-apikeycredentialprovider-secretreference-syntax.json"></a>

```
{
  "[JsonKey](#cfn-bedrockagentcore-apikeycredentialprovider-secretreference-jsonkey)" : {{String}},
  "[SecretId](#cfn-bedrockagentcore-apikeycredentialprovider-secretreference-secretid)" : {{String}}
}
```

### YAML
<a name="aws-properties-bedrockagentcore-apikeycredentialprovider-secretreference-syntax.yaml"></a>

```
  [JsonKey](#cfn-bedrockagentcore-apikeycredentialprovider-secretreference-jsonkey): {{String}}
  [SecretId](#cfn-bedrockagentcore-apikeycredentialprovider-secretreference-secretid): {{String}}
```

## Properties
<a name="aws-properties-bedrockagentcore-apikeycredentialprovider-secretreference-properties"></a>

`JsonKey`  <a name="cfn-bedrockagentcore-apikeycredentialprovider-secretreference-jsonkey"></a>
The JSON key used to extract the secret value from the Amazon Secrets Manager secret.  
*Required*: Yes  
*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)

`SecretId`  <a name="cfn-bedrockagentcore-apikeycredentialprovider-secretreference-secretid"></a>
The ID of the Amazon Secrets Manager secret that stores the secret value.  
*Required*: Yes  
*Type*: String  
*Minimum*: `1`  
*Maximum*: `2048`  
*Update requires*: [No interruption](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)