Package com.pulumi.aws.storagegateway
Class TapePool
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.aws.storagegateway.TapePool
-
public class TapePool extends com.pulumi.resources.CustomResourceManages an AWS Storage Gateway Tape Pool. ## Example Usage
## Import Using `pulumi import`, import `aws.storagegateway.TapePool` using the volume ARN. For example: ```sh $ pulumi import aws:storagegateway/tapePool:TapePool example arn:aws:storagegateway:us-east-1:123456789012:tapepool/pool-12345678 ```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.ArrayList; import java.util.Arrays; 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()); } }
-
-
Constructor Summary
Constructors Constructor Description TapePool(java.lang.String name)TapePool(java.lang.String name, TapePoolArgs args)TapePool(java.lang.String name, TapePoolArgs args, com.pulumi.resources.CustomResourceOptions options)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.pulumi.core.Output<java.lang.String>arn()static TapePoolget(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, TapePoolState state, com.pulumi.resources.CustomResourceOptions options)Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.com.pulumi.core.Output<java.lang.String>poolName()com.pulumi.core.Output<java.lang.String>region()com.pulumi.core.Output<java.util.Optional<java.lang.Integer>>retentionLockTimeInDays()com.pulumi.core.Output<java.util.Optional<java.lang.String>>retentionLockType()com.pulumi.core.Output<java.lang.String>storageClass()com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,java.lang.String>>>tags()com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>>tagsAll()
-
-
-
Constructor Detail
-
TapePool
public TapePool(java.lang.String name)
- Parameters:
name- The _unique_ name of the resulting resource.
-
TapePool
public TapePool(java.lang.String name, TapePoolArgs args)- Parameters:
name- The _unique_ name of the resulting resource.args- The arguments to use to populate this resource's properties.
-
TapePool
public TapePool(java.lang.String name, TapePoolArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options)- Parameters:
name- The _unique_ name of the resulting resource.args- The arguments to use to populate this resource's properties.options- A bag of options that control this resource's behavior.
-
-
Method Detail
-
arn
public com.pulumi.core.Output<java.lang.String> arn()
- Returns:
- Volume ARN, e.g., `aws_storagegateway_tape_pool.example arn:aws:storagegateway:us-east-1:123456789012:tapepool/pool-12345678`.
-
poolName
public com.pulumi.core.Output<java.lang.String> poolName()
- Returns:
- The name of the new custom tape pool.
-
region
public com.pulumi.core.Output<java.lang.String> region()
- Returns:
- Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
-
retentionLockTimeInDays
public com.pulumi.core.Output<java.util.Optional<java.lang.Integer>> retentionLockTimeInDays()
- Returns:
- 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.
-
retentionLockType
public com.pulumi.core.Output<java.util.Optional<java.lang.String>> retentionLockType()
- Returns:
- 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`.
-
storageClass
public com.pulumi.core.Output<java.lang.String> storageClass()
- Returns:
- 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` or `GLACIER`.
-
tags
public com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,java.lang.String>>> tags()
- Returns:
- Key-value map of resource tags. .If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
-
tagsAll
public com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>> tagsAll()
- Returns:
- A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
-
get
public static TapePool get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, @Nullable TapePoolState state, @Nullable com.pulumi.resources.CustomResourceOptions options)
Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.- Parameters:
name- The _unique_ name of the resulting resource.id- The _unique_ provider ID of the resource to lookup.state-options- Optional settings to control the behavior of the CustomResource.
-
-