ScopeAccessReviewHistoryDefinitionByIdArgs

data class ScopeAccessReviewHistoryDefinitionByIdArgs(val decisions: Output<List<Either<String, AccessReviewResult>>>? = null, val displayName: Output<String>? = null, val historyDefinitionId: Output<String>? = null, val instances: Output<List<AccessReviewHistoryInstanceArgs>>? = null, val interval: Output<Int>? = null, val range: Output<AccessReviewRecurrenceRangeArgs>? = null, val scope: Output<String>? = null, val scopes: Output<List<AccessReviewScopeArgs>>? = null, val type: Output<Either<String, AccessReviewRecurrencePatternType>>? = null) : ConvertibleToJava<ScopeAccessReviewHistoryDefinitionByIdArgs>

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.

Example Usage

PutAccessReviewHistoryDefinition

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var scopeAccessReviewHistoryDefinitionById = new AzureNative.Authorization.ScopeAccessReviewHistoryDefinitionById("scopeAccessReviewHistoryDefinitionById", new()
{
HistoryDefinitionId = "44724910-d7a5-4c29-b28f-db73e717165a",
Scope = "subscriptions/129a304b-4aea-4b86-a9f7-ba7e2b23737a",
});
});
package main
import (
authorization "github.com/pulumi/pulumi-azure-native-sdk/authorization/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := authorization.NewScopeAccessReviewHistoryDefinitionById(ctx, "scopeAccessReviewHistoryDefinitionById", &authorization.ScopeAccessReviewHistoryDefinitionByIdArgs{
HistoryDefinitionId: pulumi.String("44724910-d7a5-4c29-b28f-db73e717165a"),
Scope: pulumi.String("subscriptions/129a304b-4aea-4b86-a9f7-ba7e2b23737a"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.authorization.ScopeAccessReviewHistoryDefinitionById;
import com.pulumi.azurenative.authorization.ScopeAccessReviewHistoryDefinitionByIdArgs;
import java.util.List;
import java.util.ArrayList;
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 scopeAccessReviewHistoryDefinitionById = new ScopeAccessReviewHistoryDefinitionById("scopeAccessReviewHistoryDefinitionById", ScopeAccessReviewHistoryDefinitionByIdArgs.builder()
.historyDefinitionId("44724910-d7a5-4c29-b28f-db73e717165a")
.scope("subscriptions/129a304b-4aea-4b86-a9f7-ba7e2b23737a")
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:authorization:ScopeAccessReviewHistoryDefinitionById 44724910-d7a5-4c29-b28f-db73e717165a /{scope}/providers/Microsoft.Authorization/accessReviewHistoryDefinitions/{historyDefinitionId}

Constructors

constructor(decisions: Output<List<Either<String, AccessReviewResult>>>? = null, displayName: Output<String>? = null, historyDefinitionId: Output<String>? = null, instances: Output<List<AccessReviewHistoryInstanceArgs>>? = null, interval: Output<Int>? = null, range: Output<AccessReviewRecurrenceRangeArgs>? = null, scope: Output<String>? = null, scopes: Output<List<AccessReviewScopeArgs>>? = null, type: Output<Either<String, AccessReviewRecurrencePatternType>>? = null)

Properties

Link copied to clipboard
val decisions: Output<List<Either<String, AccessReviewResult>>>? = null

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.

Link copied to clipboard
val displayName: Output<String>? = null

The display name for the history definition.

Link copied to clipboard
val historyDefinitionId: Output<String>? = null

The id of the access review history definition.

Link copied to clipboard

Set of access review history instances for this history definition.

Link copied to clipboard
val interval: Output<Int>? = null

The interval for recurrence. For a quarterly review, the interval is 3 for type : absoluteMonthly.

Link copied to clipboard

Access Review History Definition recurrence settings.

Link copied to clipboard
val scope: Output<String>? = null

The scope of the resource.

Link copied to clipboard
val scopes: Output<List<AccessReviewScopeArgs>>? = null

A collection of scopes used when selecting review history data

Link copied to clipboard
val type: Output<Either<String, AccessReviewRecurrencePatternType>>? = null

The recurrence type : weekly, monthly, etc.

Functions

Link copied to clipboard
open override fun toJava(): ScopeAccessReviewHistoryDefinitionByIdArgs