

# ContainerEnvironment
<a name="API_ContainerEnvironment"></a>

An environment variable to set inside a container, in the form of a key-value pair. 

 **Part of:** [GameServerContainerDefinition](https://docs.amazonaws.cn/gamelift/latest/apireference/API_GameServerContainerDefinition.html), [GameServerContainerDefinitionInput](https://docs.amazonaws.cn/gamelift/latest/apireference/API_GameServerContainerDefinitionInput.html), [SupportContainerDefinition](https://docs.amazonaws.cn/gamelift/latest/apireference/API_SupportContainerDefinition.html), [SupportContainerDefinitionInput](https://docs.amazonaws.cn/gamelift/latest/apireference/API_SupportContainerDefinitionInput.html) 

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

**Note**  
In the following list, the required parameters are described first.

 ** Name **   <a name="gameliftservers-Type-ContainerEnvironment-Name"></a>
The environment variable name.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 255.  
Required: Yes

 ** Value **   <a name="gameliftservers-Type-ContainerEnvironment-Value"></a>
The environment variable value.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 255.  
Required: Yes

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

For more information about using this API in one of the language-specific Amazon SDKs, see the following:
+  [Amazon SDK for C\+\+](https://docs.amazonaws.cn/goto/SdkForCpp/gamelift-2015-10-01/ContainerEnvironment) 
+  [Amazon SDK for Java V2](https://docs.amazonaws.cn/goto/SdkForJavaV2/gamelift-2015-10-01/ContainerEnvironment) 
+  [Amazon SDK for Ruby V3](https://docs.amazonaws.cn/goto/SdkForRubyV3/gamelift-2015-10-01/ContainerEnvironment) 