

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::AmplifyGen3::IntegrationConfiguration EnvironmentVariable

An environment variable that connected environments receive from the integration. For a custom integration, you define each variable with `Value` and `Type`. For other integration types, the integration type defines the variables, and you can only rename one of them with `KeyOverride`.

## Syntax
<a name="aws-properties-amplifygen3-integrationconfiguration-environmentvariable-syntax"></a>

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

### JSON
<a name="aws-properties-amplifygen3-integrationconfiguration-environmentvariable-syntax.json"></a>

```json
{
  "[Key](#cfn-amplifygen3-integrationconfiguration-environmentvariable-key)" : {{String}},
  "[KeyOverride](#cfn-amplifygen3-integrationconfiguration-environmentvariable-keyoverride)" : {{String}},
  "[Type](#cfn-amplifygen3-integrationconfiguration-environmentvariable-type)" : {{String}},
  "[Value](#cfn-amplifygen3-integrationconfiguration-environmentvariable-value)" : {{String}}
}
```

### YAML
<a name="aws-properties-amplifygen3-integrationconfiguration-environmentvariable-syntax.yaml"></a>

```yaml
  [Key](#cfn-amplifygen3-integrationconfiguration-environmentvariable-key): {{String}}
  [KeyOverride](#cfn-amplifygen3-integrationconfiguration-environmentvariable-keyoverride): {{String}}
  [Type](#cfn-amplifygen3-integrationconfiguration-environmentvariable-type): {{String}}
  [Value](#cfn-amplifygen3-integrationconfiguration-environmentvariable-value): {{String}}
```

## Properties
<a name="aws-properties-amplifygen3-integrationconfiguration-environmentvariable-properties"></a>

`Key`  <a name="cfn-amplifygen3-integrationconfiguration-environmentvariable-key"></a>
The name of the variable. For integration types other than custom, this is the name of a variable that the integration type provides.  
*Required*: Yes  
*Type*: String  
*Pattern*: `^[a-zA-Z]([a-zA-Z0-9_])*$`  
*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)

`KeyOverride`  <a name="cfn-amplifygen3-integrationconfiguration-environmentvariable-keyoverride"></a>
The name that connected environments see the variable as, in place of `Key`. It must differ from `Key`. Required for integration types other than custom.  
*Required*: No  
*Type*: String  
*Pattern*: `^[a-zA-Z]([a-zA-Z0-9_])*$`  
*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)

`Type`  <a name="cfn-amplifygen3-integrationconfiguration-environmentvariable-type"></a>
Specifies whether the value of a custom integration's variable is plaintext or sensitive. Required for a custom integration, and you can't change it for an existing `Key`. Not allowed for other integration types.  
*Required*: No  
*Type*: String  
*Allowed values*: `PLAINTEXT | SENSITIVE`  
*Update requires*: [No interruption](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`Value`  <a name="cfn-amplifygen3-integrationconfiguration-environmentvariable-value"></a>
The value of a custom integration's variable. This property is write-only, so CloudFormation can't detect drift on it. Not allowed for other integration types.  
*Required*: No  
*Type*: String  
*Minimum*: `1`  
*Maximum*: `4096`  
*Update requires*: [No interruption](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)