Try AWS Native preview for resources not in the classic version.
aws.storagegateway.TapePool
Explore with Pulumi AI
Try AWS Native preview for resources not in the classic version.
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",
});
import pulumi
import pulumi_aws as aws
example = aws.storagegateway.TapePool("example",
pool_name="example",
storage_class="GLACIER")
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
})
}
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",
});
});
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());
}
}
resources:
example:
type: aws:storagegateway:TapePool
properties:
poolName: example
storageClass: GLACIER
Create TapePool Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new TapePool(name: string, args: TapePoolArgs, opts?: CustomResourceOptions);
@overload
def TapePool(resource_name: str,
args: TapePoolArgs,
opts: Optional[ResourceOptions] = None)
@overload
def TapePool(resource_name: str,
opts: Optional[ResourceOptions] = None,
pool_name: Optional[str] = None,
storage_class: Optional[str] = None,
retention_lock_time_in_days: Optional[int] = None,
retention_lock_type: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None)
func NewTapePool(ctx *Context, name string, args TapePoolArgs, opts ...ResourceOption) (*TapePool, error)
public TapePool(string name, TapePoolArgs args, CustomResourceOptions? opts = null)
public TapePool(String name, TapePoolArgs args)
public TapePool(String name, TapePoolArgs args, CustomResourceOptions options)
type: aws:storagegateway:TapePool
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args TapePoolArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args TapePoolArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args TapePoolArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TapePoolArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TapePoolArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var tapePoolResource = new Aws.StorageGateway.TapePool("tapePoolResource", new()
{
PoolName = "string",
StorageClass = "string",
RetentionLockTimeInDays = 0,
RetentionLockType = "string",
Tags =
{
{ "string", "string" },
},
});
example, err := storagegateway.NewTapePool(ctx, "tapePoolResource", &storagegateway.TapePoolArgs{
PoolName: pulumi.String("string"),
StorageClass: pulumi.String("string"),
RetentionLockTimeInDays: pulumi.Int(0),
RetentionLockType: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var tapePoolResource = new TapePool("tapePoolResource", TapePoolArgs.builder()
.poolName("string")
.storageClass("string")
.retentionLockTimeInDays(0)
.retentionLockType("string")
.tags(Map.of("string", "string"))
.build());
tape_pool_resource = aws.storagegateway.TapePool("tapePoolResource",
pool_name="string",
storage_class="string",
retention_lock_time_in_days=0,
retention_lock_type="string",
tags={
"string": "string",
})
const tapePoolResource = new aws.storagegateway.TapePool("tapePoolResource", {
poolName: "string",
storageClass: "string",
retentionLockTimeInDays: 0,
retentionLockType: "string",
tags: {
string: "string",
},
});
type: aws:storagegateway:TapePool
properties:
poolName: string
retentionLockTimeInDays: 0
retentionLockType: string
storageClass: string
tags:
string: string
TapePool Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The TapePool resource accepts the following input properties:
- Pool
Name string - The name of the new custom tape pool.
- Storage
Class string - The storage class that is associated with the new custom pool. When you use your backup application to eject the tape, the tape is archived directly into the storage class that corresponds to the pool. Possible values are
DEEP_ARCHIVE
orGLACIER
. - Retention
Lock intTime In Days - Tape retention lock time is set in days. Tape retention lock can be enabled for up to 100 years (36,500 days). Default value is 0.
- Retention
Lock stringType - 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
, andNONE
. Default value isNONE
. - Dictionary<string, string>
- Key-value map of resource tags. .If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- Pool
Name string - The name of the new custom tape pool.
- Storage
Class string - The storage class that is associated with the new custom pool. When you use your backup application to eject the tape, the tape is archived directly into the storage class that corresponds to the pool. Possible values are
DEEP_ARCHIVE
orGLACIER
. - Retention
Lock intTime In Days - Tape retention lock time is set in days. Tape retention lock can be enabled for up to 100 years (36,500 days). Default value is 0.
- Retention
Lock stringType - 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
, andNONE
. Default value isNONE
. - map[string]string
- Key-value map of resource tags. .If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- pool
Name String - The name of the new custom tape pool.
- storage
Class String - The storage class that is associated with the new custom pool. When you use your backup application to eject the tape, the tape is archived directly into the storage class that corresponds to the pool. Possible values are
DEEP_ARCHIVE
orGLACIER
. - retention
Lock IntegerTime In Days - Tape retention lock time is set in days. Tape retention lock can be enabled for up to 100 years (36,500 days). Default value is 0.
- retention
Lock StringType - 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
, andNONE
. Default value isNONE
. - Map<String,String>
- Key-value map of resource tags. .If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- pool
Name string - The name of the new custom tape pool.
- storage
Class string - The storage class that is associated with the new custom pool. When you use your backup application to eject the tape, the tape is archived directly into the storage class that corresponds to the pool. Possible values are
DEEP_ARCHIVE
orGLACIER
. - retention
Lock numberTime In Days - Tape retention lock time is set in days. Tape retention lock can be enabled for up to 100 years (36,500 days). Default value is 0.
- retention
Lock stringType - 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
, andNONE
. Default value isNONE
. - {[key: string]: string}
- Key-value map of resource tags. .If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- pool_
name str - The name of the new custom tape pool.
- storage_
class str - The storage class that is associated with the new custom pool. When you use your backup application to eject the tape, the tape is archived directly into the storage class that corresponds to the pool. Possible values are
DEEP_ARCHIVE
orGLACIER
. - retention_
lock_ inttime_ in_ days - Tape retention lock time is set in days. Tape retention lock can be enabled for up to 100 years (36,500 days). Default value is 0.
- retention_
lock_ strtype - 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
, andNONE
. Default value isNONE
. - Mapping[str, str]
- Key-value map of resource tags. .If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
- pool
Name String - The name of the new custom tape pool.
- storage
Class String - The storage class that is associated with the new custom pool. When you use your backup application to eject the tape, the tape is archived directly into the storage class that corresponds to the pool. Possible values are
DEEP_ARCHIVE
orGLACIER
. - retention
Lock NumberTime In Days - Tape retention lock time is set in days. Tape retention lock can be enabled for up to 100 years (36,500 days). Default value is 0.
- retention
Lock StringType - 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
, andNONE
. Default value isNONE
. - Map<String>
- Key-value map of resource tags. .If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
Outputs
All input properties are implicitly available as output properties. Additionally, the TapePool resource produces the following output properties:
- Arn string
- Volume Amazon Resource Name (ARN), e.g.,
aws_storagegateway_tape_pool.example arn:aws:storagegateway:us-east-1:123456789012:tapepool/pool-12345678
. - Id string
- The provider-assigned unique ID for this managed resource.
- Dictionary<string, string>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- Arn string
- Volume Amazon Resource Name (ARN), e.g.,
aws_storagegateway_tape_pool.example arn:aws:storagegateway:us-east-1:123456789012:tapepool/pool-12345678
. - Id string
- The provider-assigned unique ID for this managed resource.
- map[string]string
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn String
- Volume Amazon Resource Name (ARN), e.g.,
aws_storagegateway_tape_pool.example arn:aws:storagegateway:us-east-1:123456789012:tapepool/pool-12345678
. - id String
- The provider-assigned unique ID for this managed resource.
- Map<String,String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn string
- Volume Amazon Resource Name (ARN), e.g.,
aws_storagegateway_tape_pool.example arn:aws:storagegateway:us-east-1:123456789012:tapepool/pool-12345678
. - id string
- The provider-assigned unique ID for this managed resource.
- {[key: string]: string}
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn str
- Volume Amazon Resource Name (ARN), e.g.,
aws_storagegateway_tape_pool.example arn:aws:storagegateway:us-east-1:123456789012:tapepool/pool-12345678
. - id str
- The provider-assigned unique ID for this managed resource.
- Mapping[str, str]
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn String
- Volume Amazon Resource Name (ARN), e.g.,
aws_storagegateway_tape_pool.example arn:aws:storagegateway:us-east-1:123456789012:tapepool/pool-12345678
. - id String
- The provider-assigned unique ID for this managed resource.
- Map<String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
Look up Existing TapePool Resource
Get an existing TapePool resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: TapePoolState, opts?: CustomResourceOptions): TapePool
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
arn: Optional[str] = None,
pool_name: Optional[str] = None,
retention_lock_time_in_days: Optional[int] = None,
retention_lock_type: Optional[str] = None,
storage_class: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
tags_all: Optional[Mapping[str, str]] = None) -> TapePool
func GetTapePool(ctx *Context, name string, id IDInput, state *TapePoolState, opts ...ResourceOption) (*TapePool, error)
public static TapePool Get(string name, Input<string> id, TapePoolState? state, CustomResourceOptions? opts = null)
public static TapePool get(String name, Output<String> id, TapePoolState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Arn string
- Volume Amazon Resource Name (ARN), e.g.,
aws_storagegateway_tape_pool.example arn:aws:storagegateway:us-east-1:123456789012:tapepool/pool-12345678
. - Pool
Name string - The name of the new custom tape pool.
- Retention
Lock intTime In Days - Tape retention lock time is set in days. Tape retention lock can be enabled for up to 100 years (36,500 days). Default value is 0.
- Retention
Lock stringType - 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
, andNONE
. Default value isNONE
. - Storage
Class string - The storage class that is associated with the new custom pool. When you use your backup application to eject the tape, the tape is archived directly into the storage class that corresponds to the pool. Possible values are
DEEP_ARCHIVE
orGLACIER
. - Dictionary<string, string>
- Key-value map of resource tags. .If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Dictionary<string, string>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- Arn string
- Volume Amazon Resource Name (ARN), e.g.,
aws_storagegateway_tape_pool.example arn:aws:storagegateway:us-east-1:123456789012:tapepool/pool-12345678
. - Pool
Name string - The name of the new custom tape pool.
- Retention
Lock intTime In Days - Tape retention lock time is set in days. Tape retention lock can be enabled for up to 100 years (36,500 days). Default value is 0.
- Retention
Lock stringType - 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
, andNONE
. Default value isNONE
. - Storage
Class string - The storage class that is associated with the new custom pool. When you use your backup application to eject the tape, the tape is archived directly into the storage class that corresponds to the pool. Possible values are
DEEP_ARCHIVE
orGLACIER
. - map[string]string
- Key-value map of resource tags. .If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - map[string]string
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn String
- Volume Amazon Resource Name (ARN), e.g.,
aws_storagegateway_tape_pool.example arn:aws:storagegateway:us-east-1:123456789012:tapepool/pool-12345678
. - pool
Name String - The name of the new custom tape pool.
- retention
Lock IntegerTime In Days - Tape retention lock time is set in days. Tape retention lock can be enabled for up to 100 years (36,500 days). Default value is 0.
- retention
Lock StringType - 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
, andNONE
. Default value isNONE
. - storage
Class String - The storage class that is associated with the new custom pool. When you use your backup application to eject the tape, the tape is archived directly into the storage class that corresponds to the pool. Possible values are
DEEP_ARCHIVE
orGLACIER
. - Map<String,String>
- Key-value map of resource tags. .If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Map<String,String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn string
- Volume Amazon Resource Name (ARN), e.g.,
aws_storagegateway_tape_pool.example arn:aws:storagegateway:us-east-1:123456789012:tapepool/pool-12345678
. - pool
Name string - The name of the new custom tape pool.
- retention
Lock numberTime In Days - Tape retention lock time is set in days. Tape retention lock can be enabled for up to 100 years (36,500 days). Default value is 0.
- retention
Lock stringType - 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
, andNONE
. Default value isNONE
. - storage
Class string - The storage class that is associated with the new custom pool. When you use your backup application to eject the tape, the tape is archived directly into the storage class that corresponds to the pool. Possible values are
DEEP_ARCHIVE
orGLACIER
. - {[key: string]: string}
- Key-value map of resource tags. .If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - {[key: string]: string}
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn str
- Volume Amazon Resource Name (ARN), e.g.,
aws_storagegateway_tape_pool.example arn:aws:storagegateway:us-east-1:123456789012:tapepool/pool-12345678
. - pool_
name str - The name of the new custom tape pool.
- retention_
lock_ inttime_ in_ days - Tape retention lock time is set in days. Tape retention lock can be enabled for up to 100 years (36,500 days). Default value is 0.
- retention_
lock_ strtype - 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
, andNONE
. Default value isNONE
. - storage_
class str - The storage class that is associated with the new custom pool. When you use your backup application to eject the tape, the tape is archived directly into the storage class that corresponds to the pool. Possible values are
DEEP_ARCHIVE
orGLACIER
. - Mapping[str, str]
- Key-value map of resource tags. .If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Mapping[str, str]
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn String
- Volume Amazon Resource Name (ARN), e.g.,
aws_storagegateway_tape_pool.example arn:aws:storagegateway:us-east-1:123456789012:tapepool/pool-12345678
. - pool
Name String - The name of the new custom tape pool.
- retention
Lock NumberTime In Days - Tape retention lock time is set in days. Tape retention lock can be enabled for up to 100 years (36,500 days). Default value is 0.
- retention
Lock StringType - 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
, andNONE
. Default value isNONE
. - storage
Class String - The storage class that is associated with the new custom pool. When you use your backup application to eject the tape, the tape is archived directly into the storage class that corresponds to the pool. Possible values are
DEEP_ARCHIVE
orGLACIER
. - Map<String>
- Key-value map of resource tags. .If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Map<String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
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-12345678
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.
Try AWS Native preview for resources not in the classic version.