@pulumi/azure-native
Version:
[](https://slack.pulumi.com) [](https://npmjs.com/package/@pulumi/azure-native) [ • 4.91 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as inputs from "../types/input";
import * as outputs from "../types/output";
/**
* Resource information.
*
* Uses Azure REST API version 2024-03-01. In version 2.x of the Azure Native provider, it used API version 2022-09-01.
*
* Other available API versions: 2020-10-01, 2021-01-01, 2021-04-01, 2022-09-01, 2023-07-01, 2024-07-01, 2024-11-01, 2025-03-01, 2025-04-01. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native resources [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details.
*/
export declare class Resource extends pulumi.CustomResource {
/**
* Get an existing Resource 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): Resource;
/**
* Returns true if the given object is an instance of Resource. 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 Resource;
/**
* The Azure API version of the resource.
*/
readonly azureApiVersion: pulumi.Output<string>;
/**
* Resource extended location.
*/
readonly extendedLocation: pulumi.Output<outputs.resources.ExtendedLocationResponse | undefined>;
/**
* The identity of the resource.
*/
readonly identity: pulumi.Output<outputs.resources.IdentityResponse | undefined>;
/**
* The kind of the resource.
*/
readonly kind: pulumi.Output<string | undefined>;
/**
* Resource location
*/
readonly location: pulumi.Output<string | undefined>;
/**
* ID of the resource that manages this resource.
*/
readonly managedBy: pulumi.Output<string | undefined>;
/**
* Resource name
*/
readonly name: pulumi.Output<string>;
/**
* The plan of the resource.
*/
readonly plan: pulumi.Output<outputs.resources.PlanResponse | undefined>;
/**
* The resource properties.
*/
readonly properties: pulumi.Output<any>;
/**
* The SKU of the resource.
*/
readonly sku: pulumi.Output<outputs.resources.SkuResponse | undefined>;
/**
* Resource tags
*/
readonly tags: pulumi.Output<{
[key: string]: string;
} | undefined>;
/**
* Resource type
*/
readonly type: pulumi.Output<string>;
/**
* Create a Resource 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: ResourceArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* The set of arguments for constructing a Resource resource.
*/
export interface ResourceArgs {
/**
* The API version to use for the operation.
*/
apiVersion: pulumi.Input<string>;
/**
* Resource extended location.
*/
extendedLocation?: pulumi.Input<inputs.resources.ExtendedLocationArgs>;
/**
* The identity of the resource.
*/
identity?: pulumi.Input<inputs.resources.IdentityArgs>;
/**
* The kind of the resource.
*/
kind?: pulumi.Input<string>;
/**
* Resource location
*/
location?: pulumi.Input<string>;
/**
* ID of the resource that manages this resource.
*/
managedBy?: pulumi.Input<string>;
/**
* The parent resource identity.
*/
parentResourcePath: pulumi.Input<string>;
/**
* The plan of the resource.
*/
plan?: pulumi.Input<inputs.resources.PlanArgs>;
/**
* The resource properties.
*/
properties?: any;
/**
* The name of the resource group for the resource. The name is case insensitive.
*/
resourceGroupName: pulumi.Input<string>;
/**
* The name of the resource to create.
*/
resourceName?: pulumi.Input<string>;
/**
* The namespace of the resource provider.
*/
resourceProviderNamespace: pulumi.Input<string>;
/**
* The resource type of the resource to create.
*/
resourceType: pulumi.Input<string>;
/**
* The SKU of the resource.
*/
sku?: pulumi.Input<inputs.resources.SkuArgs>;
/**
* Resource tags
*/
tags?: pulumi.Input<{
[key: string]: pulumi.Input<string>;
}>;
}