Package com.pulumi.aws.storagegateway
Class WorkingStorage
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.aws.storagegateway.WorkingStorage
-
public class WorkingStorage extends com.pulumi.resources.CustomResourceManages an AWS Storage Gateway working storage. > **NOTE:** The Storage Gateway API provides no method to remove a working storage disk. Destroying this resource does not perform any Storage Gateway actions. ## Example Usage
## Import Using `pulumi import`, import `aws.storagegateway.WorkingStorage` using the gateway ARN and local disk identifier separated with a colon (`:`). For example: ```sh $ pulumi import aws:storagegateway/workingStorage:WorkingStorage example arn:aws:storagegateway:us-east-1:123456789012:gateway/sgw-12345678:pci-0000:03:00.0-scsi-0:0:0:0 ```package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.aws.storagegateway.WorkingStorage; import com.pulumi.aws.storagegateway.WorkingStorageArgs; 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 WorkingStorage("example", WorkingStorageArgs.builder() .diskId(exampleAwsStoragegatewayLocalDisk.id()) .gatewayArn(exampleAwsStoragegatewayGateway.arn()) .build()); } }
-
-
Constructor Summary
Constructors Constructor Description WorkingStorage(java.lang.String name)WorkingStorage(java.lang.String name, WorkingStorageArgs args)WorkingStorage(java.lang.String name, WorkingStorageArgs 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>diskId()com.pulumi.core.Output<java.lang.String>gatewayArn()static WorkingStorageget(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, WorkingStorageState 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>region()
-
-
-
Constructor Detail
-
WorkingStorage
public WorkingStorage(java.lang.String name)
- Parameters:
name- The _unique_ name of the resulting resource.
-
WorkingStorage
public WorkingStorage(java.lang.String name, WorkingStorageArgs args)- Parameters:
name- The _unique_ name of the resulting resource.args- The arguments to use to populate this resource's properties.
-
WorkingStorage
public WorkingStorage(java.lang.String name, WorkingStorageArgs 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
-
diskId
public com.pulumi.core.Output<java.lang.String> diskId()
- Returns:
- Local disk identifier. For example, `pci-0000:03:00.0-scsi-0:0:0:0`.
-
gatewayArn
public com.pulumi.core.Output<java.lang.String> gatewayArn()
- Returns:
- ARN of the gateway.
-
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.
-
get
public static WorkingStorage get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, @Nullable WorkingStorageState 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.
-
-