UNPKG

@pulumi/azure-native

Version:

[![Slack](http://www.pulumi.com/images/docs/badges/slack.svg)](https://slack.pulumi.com) [![NPM version](https://badge.fury.io/js/%40pulumi%2Fazure-native.svg)](https://npmjs.com/package/@pulumi/azure-native) [![Python version](https://badge.fury.io/py/pu

137 lines (136 loc) 5.3 kB
import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; import * as enums from "../types/enums"; /** * Type of the Storage Target. * * Uses Azure REST API version 2024-03-01. In version 2.x of the Azure Native provider, it used API version 2023-05-01. * * Other available API versions: 2023-05-01, 2023-11-01-preview, 2024-07-01. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native storagecache [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details. */ export declare class StorageTarget extends pulumi.CustomResource { /** * Get an existing StorageTarget resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): StorageTarget; /** * Returns true if the given object is an instance of StorageTarget. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is StorageTarget; /** * The percentage of cache space allocated for this storage target */ readonly allocationPercentage: pulumi.Output<number>; /** * The Azure API version of the resource. */ readonly azureApiVersion: pulumi.Output<string>; /** * Properties when targetType is blobNfs. */ readonly blobNfs: pulumi.Output<outputs.storagecache.BlobNfsTargetResponse | undefined>; /** * Properties when targetType is clfs. */ readonly clfs: pulumi.Output<outputs.storagecache.ClfsTargetResponse | undefined>; /** * List of cache namespace junctions to target for namespace associations. */ readonly junctions: pulumi.Output<outputs.storagecache.NamespaceJunctionResponse[] | undefined>; /** * Region name string. */ readonly location: pulumi.Output<string>; /** * Name of the Storage Target. */ readonly name: pulumi.Output<string>; /** * Properties when targetType is nfs3. */ readonly nfs3: pulumi.Output<outputs.storagecache.Nfs3TargetResponse | undefined>; /** * ARM provisioning state, see https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#provisioningstate-property */ readonly provisioningState: pulumi.Output<string>; /** * Storage target operational state. */ readonly state: pulumi.Output<string | undefined>; /** * The system meta data relating to this resource. */ readonly systemData: pulumi.Output<outputs.storagecache.SystemDataResponse>; /** * Type of the Storage Target. */ readonly targetType: pulumi.Output<string>; /** * Type of the Storage Target; Microsoft.StorageCache/Cache/StorageTarget */ readonly type: pulumi.Output<string>; /** * Properties when targetType is unknown. */ readonly unknown: pulumi.Output<outputs.storagecache.UnknownTargetResponse | undefined>; /** * Create a StorageTarget resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: StorageTargetArgs, opts?: pulumi.CustomResourceOptions); } /** * The set of arguments for constructing a StorageTarget resource. */ export interface StorageTargetArgs { /** * Properties when targetType is blobNfs. */ blobNfs?: pulumi.Input<inputs.storagecache.BlobNfsTargetArgs>; /** * Name of cache. Length of name must not be greater than 80 and chars must be from the [-0-9a-zA-Z_] char class. */ cacheName: pulumi.Input<string>; /** * Properties when targetType is clfs. */ clfs?: pulumi.Input<inputs.storagecache.ClfsTargetArgs>; /** * List of cache namespace junctions to target for namespace associations. */ junctions?: pulumi.Input<pulumi.Input<inputs.storagecache.NamespaceJunctionArgs>[]>; /** * Properties when targetType is nfs3. */ nfs3?: pulumi.Input<inputs.storagecache.Nfs3TargetArgs>; /** * The name of the resource group. The name is case insensitive. */ resourceGroupName: pulumi.Input<string>; /** * Storage target operational state. */ state?: pulumi.Input<string | enums.storagecache.OperationalStateType>; /** * Name of Storage Target. */ storageTargetName?: pulumi.Input<string>; /** * Type of the Storage Target. */ targetType: pulumi.Input<string | enums.storagecache.StorageTargetType>; /** * Properties when targetType is unknown. */ unknown?: pulumi.Input<inputs.storagecache.UnknownTargetArgs>; }