This operation configures one or more gateway local disks as cache for a cached-volume gateway. This operation is supported only for the gateway-cached volume architecture (see Storage Gateway Concepts ).
In the request, you specify the gateway Amazon Resource Name (ARN) to which you want to add cache, and one or more disk IDs that you want to configure as cache.
 Declaration Syntax
 Declaration Syntax| C# | 
public AddCacheResponse AddCache( AddCacheRequest addCacheRequest )
 Parameters
 Parameters- addCacheRequest (AddCacheRequest)
- Container for the necessary parameters to execute the AddCache service method on AmazonStorageGateway.
 Return Value
 Return ValueThe response from the AddCache service method, as returned by AmazonStorageGateway.
 Exceptions
 Exceptions| Exception | Condition | 
|---|---|
| InternalServerErrorException | |
| InvalidGatewayRequestException |