Cache Args
data class CacheArgs(val diskId: Output<String>? = null, val gatewayArn: Output<String>? = null) : ConvertibleToJava<CacheArgs>
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
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.storagegateway.Cache;
import com.pulumi.aws.storagegateway.CacheArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new Cache("example", CacheArgs.builder()
.diskId(data.aws_storagegateway_local_disk().example().id())
.gatewayArn(aws_storagegateway_gateway.example().arn())
.build());
}
}
Content copied to clipboard
Import
aws_storagegateway_cache
can be imported by using the gateway Amazon Resource Name (ARN) and local disk identifier separated with a colon (:
), e.g.,
$ pulumi import aws:storagegateway/cache:Cache example arn:aws:storagegateway:us-east-1:123456789012:gateway/sgw-12345678:pci-0000:03:00.0-scsi-0:0:0:0
Content copied to clipboard