Package com.pulumi.aws.storagegateway
Class Cache
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.aws.storagegateway.Cache
-
public class Cache extends com.pulumi.resources.CustomResourceManages 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
## Import Using `pulumi import`, import `aws.storagegateway.Cache` using the gateway ARN and local disk identifier separated with a colon (`:`). For example: ```sh $ 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 ```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.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 Cache("example", CacheArgs.builder() .diskId(exampleAwsStoragegatewayLocalDisk.id()) .gatewayArn(exampleAwsStoragegatewayGateway.arn()) .build()); } }
-
-
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 Cacheget(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, CacheState 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
-
Cache
public Cache(java.lang.String name)
- Parameters:
name- The _unique_ name of the resulting resource.
-
Cache
public Cache(java.lang.String name, CacheArgs args)- Parameters:
name- The _unique_ name of the resulting resource.args- The arguments to use to populate this resource's properties.
-
Cache
public Cache(java.lang.String name, CacheArgs 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 Cache get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, @Nullable CacheState 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.
-
-