

# Setting

Defines a configurable setting that an extension exposes. Settings are part of the configuration schema that an extension declares.

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

 ** definition **   <a name="systemsmanagercloudextensions-Type-Setting-definition"></a>
The type and constraints for the value of this setting.  
Type: [SettingDefinition](API_SettingDefinition.md) object  
 **Note: **This object is a Union. Only one member of this object can be specified or returned.  
Required: Yes

 ** description **   <a name="systemsmanagercloudextensions-Type-Setting-description"></a>
A description of what this setting controls and how it affects the behavior of the extension.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 256.  
Pattern: `[^ \p{Cc}][^\p{Cc}]*`   
Required: Yes

 ** displayName **   <a name="systemsmanagercloudextensions-Type-Setting-displayName"></a>
A short label for this setting, suitable for display in a user interface.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 64.  
Pattern: `[^\s\p{Cc}]([^\p{Cc}]*[^\s\p{Cc}])?`   
Required: Yes

 ** id **   <a name="systemsmanagercloudextensions-Type-Setting-id"></a>
A unique identifier for this setting within the configuration of the extension.  
Type: String  
Pattern: `[a-z]([a-zA-Z0-9]{2,31})`   
Required: Yes

 ** activeWhen **   <a name="systemsmanagercloudextensions-Type-Setting-activeWhen"></a>
A conditional expression that references the ID of another setting. When this value is set, this setting is active (visible and applicable) only when the referenced condition is met.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 256.  
Required: No

 ** required **   <a name="systemsmanagercloudextensions-Type-Setting-required"></a>
Indicates whether you must provide a value for this setting. The default is `false`.  
Type: Boolean  
Required: No

## See Also
<a name="API_Setting_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/cloudextensions-2026-11-29/Setting) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/cloudextensions-2026-11-29/Setting) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/cloudextensions-2026-11-29/Setting) 