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

141 lines (140 loc) 6.32 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"; /** * Access Review History Definition. * * Uses Azure REST API version 2021-12-01-preview. In version 2.x of the Azure Native provider, it used API version 2021-12-01-preview. * * Other available API versions: 2021-11-16-preview. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native authorization [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details. */ export declare class AccessReviewHistoryDefinitionById extends pulumi.CustomResource { /** * Get an existing AccessReviewHistoryDefinitionById 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): AccessReviewHistoryDefinitionById; /** * Returns true if the given object is an instance of AccessReviewHistoryDefinitionById. 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 AccessReviewHistoryDefinitionById; /** * The Azure API version of the resource. */ readonly azureApiVersion: pulumi.Output<string>; /** * Date time when history definition was created */ readonly createdDateTime: pulumi.Output<string>; /** * Collection of review decisions which the history data should be filtered on. For example if Approve and Deny are supplied the data will only contain review results in which the decision maker approved or denied a review request. */ readonly decisions: pulumi.Output<string[] | undefined>; /** * The display name for the history definition. */ readonly displayName: pulumi.Output<string | undefined>; /** * Set of access review history instances for this history definition. */ readonly instances: pulumi.Output<outputs.authorization.AccessReviewHistoryInstanceResponse[] | undefined>; /** * The interval for recurrence. For a quarterly review, the interval is 3 for type : absoluteMonthly. */ readonly interval: pulumi.Output<number | undefined>; /** * The access review history definition unique id. */ readonly name: pulumi.Output<string>; /** * The identity id */ readonly principalId: pulumi.Output<string>; /** * The identity display name */ readonly principalName: pulumi.Output<string>; /** * The identity type : user/servicePrincipal */ readonly principalType: pulumi.Output<string>; /** * Access Review History Definition recurrence settings. */ readonly range: pulumi.Output<outputs.authorization.AccessReviewRecurrenceRangeResponse | undefined>; /** * Date time used when selecting review data, all reviews included in data end on or before this date. For use only with one-time/non-recurring reports. */ readonly reviewHistoryPeriodEndDateTime: pulumi.Output<string>; /** * Date time used when selecting review data, all reviews included in data start on or after this date. For use only with one-time/non-recurring reports. */ readonly reviewHistoryPeriodStartDateTime: pulumi.Output<string>; /** * A collection of scopes used when selecting review history data */ readonly scopes: pulumi.Output<outputs.authorization.AccessReviewScopeResponse[] | undefined>; /** * This read-only field specifies the of the requested review history data. This is either requested, in-progress, done or error. */ readonly status: pulumi.Output<string>; /** * The resource type. */ readonly type: pulumi.Output<string>; /** * The user principal name(if valid) */ readonly userPrincipalName: pulumi.Output<string>; /** * Create a AccessReviewHistoryDefinitionById 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?: AccessReviewHistoryDefinitionByIdArgs, opts?: pulumi.CustomResourceOptions); } /** * The set of arguments for constructing a AccessReviewHistoryDefinitionById resource. */ export interface AccessReviewHistoryDefinitionByIdArgs { /** * Collection of review decisions which the history data should be filtered on. For example if Approve and Deny are supplied the data will only contain review results in which the decision maker approved or denied a review request. */ decisions?: pulumi.Input<pulumi.Input<string | enums.authorization.AccessReviewResult>[]>; /** * The display name for the history definition. */ displayName?: pulumi.Input<string>; /** * The id of the access review history definition. */ historyDefinitionId?: pulumi.Input<string>; /** * Set of access review history instances for this history definition. */ instances?: pulumi.Input<pulumi.Input<inputs.authorization.AccessReviewHistoryInstanceArgs>[]>; /** * The interval for recurrence. For a quarterly review, the interval is 3 for type : absoluteMonthly. */ interval?: pulumi.Input<number>; /** * Access Review History Definition recurrence settings. */ range?: pulumi.Input<inputs.authorization.AccessReviewRecurrenceRangeArgs>; /** * A collection of scopes used when selecting review history data */ scopes?: pulumi.Input<pulumi.Input<inputs.authorization.AccessReviewScopeArgs>[]>; /** * The recurrence type : weekly, monthly, etc. */ type?: pulumi.Input<string | enums.authorization.AccessReviewRecurrencePatternType>; }