

# Capability

Declares a host capability that an extension requires. You must explicitly approve a capability before the extension can use it. For example, an extension might require permission to write files to a directory on the local disk, to call an AWS service API, or to run a host command.

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

 ** definition **   <a name="systemsmanagercloudextensions-Type-Capability-definition"></a>
The type-specific details of the requested capability.  
Type: [CapabilityDefinition](API_CapabilityDefinition.md) object  
 **Note: **This object is a Union. Only one member of this object can be specified or returned.  
Required: Yes

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

 ** purpose **   <a name="systemsmanagercloudextensions-Type-Capability-purpose"></a>
A description of why the extension needs this capability and how the extension uses it.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 256.  
Pattern: `[^ \p{Cc}][^\p{Cc}]*`   
Required: Yes

 ** required **   <a name="systemsmanagercloudextensions-Type-Capability-required"></a>
Indicates whether the extension requires this capability to function. The default is `false`.  
Type: Boolean  
Required: No

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