@pulumi/azure-native
Version:
[](https://slack.pulumi.com) [](https://npmjs.com/package/@pulumi/azure-native) [ • 4.6 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as inputs from "../types/input";
import * as outputs from "../types/output";
/**
* Approval Model Resource
*
* Uses Azure REST API version 2025-05-01-preview.
*
* Other available API versions: 2024-06-01-preview, 2024-12-01-preview. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native mission [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details.
*/
export declare class Approval extends pulumi.CustomResource {
/**
* Get an existing Approval 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): Approval;
/**
* Returns true if the given object is an instance of Approval. 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 Approval;
/**
* List of approvers for the approval request
*/
readonly approvers: pulumi.Output<outputs.mission.ApproverResponse[] | undefined>;
/**
* The Azure API version of the resource.
*/
readonly azureApiVersion: pulumi.Output<string>;
/**
* Approval request creation time
*/
readonly createdAt: pulumi.Output<string | undefined>;
/**
* Parameter for optimizing query results
*/
readonly grandparentResourceId: pulumi.Output<string | undefined>;
/**
* The name of the resource
*/
readonly name: pulumi.Output<string>;
/**
* Parameter for optimizing query results
*/
readonly parentResourceId: pulumi.Output<string | undefined>;
/**
* Provisioning State.
*/
readonly provisioningState: pulumi.Output<string>;
/**
* Request metadata for the approval request.
*/
readonly requestMetadata: pulumi.Output<outputs.mission.RequestMetadataResponse>;
/**
* Approval request state change time, time at which approval request state changed from pending to approved or rejected.
*/
readonly stateChangedAt: pulumi.Output<string | undefined>;
/**
* Azure Resource Manager metadata containing createdBy and modifiedBy information.
*/
readonly systemData: pulumi.Output<outputs.mission.SystemDataResponse>;
/**
* Ticket ID for the approval request
*/
readonly ticketId: pulumi.Output<string | undefined>;
/**
* The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
*/
readonly type: pulumi.Output<string>;
/**
* Create a Approval 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: ApprovalArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* The set of arguments for constructing a Approval resource.
*/
export interface ApprovalArgs {
/**
* The name of the approvals resource.
*/
approvalName?: pulumi.Input<string>;
/**
* List of approvers for the approval request
*/
approvers?: pulumi.Input<pulumi.Input<inputs.mission.ApproverArgs>[]>;
/**
* Approval request creation time
*/
createdAt?: pulumi.Input<string>;
/**
* Parameter for optimizing query results
*/
grandparentResourceId?: pulumi.Input<string>;
/**
* Parameter for optimizing query results
*/
parentResourceId?: pulumi.Input<string>;
/**
* Request metadata for the approval request.
*/
requestMetadata: pulumi.Input<inputs.mission.RequestMetadataArgs>;
/**
* The fully qualified Azure Resource manager identifier of the resource.
*/
resourceUri: pulumi.Input<string>;
/**
* Approval request state change time, time at which approval request state changed from pending to approved or rejected.
*/
stateChangedAt?: pulumi.Input<string>;
/**
* Ticket ID for the approval request
*/
ticketId?: pulumi.Input<string>;
}