Resource: awsStoragegatewayCache
Manages an AWS Storage Gateway cache.
\~> NOTE: The Storage Gateway API provides no method to remove a cache disk. Destroying this Terraform resource does not perform any Storage Gateway actions.
Example Usage
/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as aws from "./.gen/providers/aws";
new aws.storagegatewayCache.StoragegatewayCache(this, "example", {
diskId: "${data.aws_storagegateway_local_disk.example.id}",
gatewayArn: "${aws_storagegateway_gateway.example.arn}",
});
Argument Reference
The following arguments are supported:
diskId
- (Required) Local disk identifier. For example,pci0000:03:000Scsi0:0:0:0
.gatewayArn
- (Required) The Amazon Resource Name (ARN) of the gateway.
Attributes Reference
In addition to all arguments above, the following attributes are exported:
id
- Combined gateway Amazon Resource Name (ARN) and local disk identifier.
Import
awsStoragegatewayCache
can be imported by using the gateway Amazon Resource Name (ARN) and local disk identifier separated with a colon (:
), e.g.,