Tape Pool
Manages an AWS Storage Gateway Tape Pool.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.storagegateway.TapePool("example", {
poolName: "example",
storageClass: "GLACIER",
});Content copied to clipboard
import pulumi
import pulumi_aws as aws
example = aws.storagegateway.TapePool("example",
pool_name="example",
storage_class="GLACIER")Content copied to clipboard
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.StorageGateway.TapePool("example", new()
{
PoolName = "example",
StorageClass = "GLACIER",
});
});Content copied to clipboard
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/storagegateway"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := storagegateway.NewTapePool(ctx, "example", &storagegateway.TapePoolArgs{
PoolName: pulumi.String("example"),
StorageClass: pulumi.String("GLACIER"),
})
if err != nil {
return err
}
return nil
})
}Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.storagegateway.TapePool;
import com.pulumi.aws.storagegateway.TapePoolArgs;
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 TapePool("example", TapePoolArgs.builder()
.poolName("example")
.storageClass("GLACIER")
.build());
}
}Content copied to clipboard
resources:
example:
type: aws:storagegateway:TapePool
properties:
poolName: example
storageClass: GLACIERContent copied to clipboard
Import
Using pulumi import, import aws_storagegateway_tape_pool using the volume Amazon Resource Name (ARN). For example:
$ pulumi import aws:storagegateway/tapePool:TapePool example arn:aws:storagegateway:us-east-1:123456789012:tapepool/pool-12345678Content copied to clipboard
Properties
Link copied to clipboard
Tape retention lock can be configured in two modes. When configured in governance mode, AWS accounts with specific IAM permissions are authorized to remove the tape retention lock from archived virtual tapes. When configured in compliance mode, the tape retention lock cannot be removed by any user, including the root AWS account. Possible values are COMPLIANCE, GOVERNANCE, and NONE. Default value is NONE.