Class Cache
Manages an AWS Storage Gateway cache.
NOTE: The Storage Gateway API provides no method to remove a cache disk. Destroying this resource does not perform any Storage Gateway actions.
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var example = new Aws.StorageGateway.Cache("example", new Aws.StorageGateway.CacheArgs
{
DiskId = data.Aws_storagegateway_local_disk.Example.Id,
GatewayArn = aws_storagegateway_gateway.Example.Arn,
});
}
}
Inherited Members
Namespace: Pulumi.Aws.StorageGateway
Assembly: Pulumi.Aws.dll
Syntax
public class Cache : CustomResource
Constructors
View SourceCache(String, CacheArgs, CustomResourceOptions)
Create a Cache resource with the given unique name, arguments, and options.
Declaration
public Cache(string name, CacheArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| CacheArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceDiskId
Local disk identifier. For example, pci-0000:03:00.0-scsi-0:0:0:0.
Declaration
public Output<string> DiskId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
GatewayArn
The Amazon Resource Name (ARN) of the gateway.
Declaration
public Output<string> GatewayArn { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, CacheState, CustomResourceOptions)
Get an existing Cache resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static Cache Get(string name, Input<string> id, CacheState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| CacheState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| Cache |