ScopeAccessReviewScheduleDefinitionById

class ScopeAccessReviewScheduleDefinitionById : KotlinCustomResource

Access Review Schedule Definition. Uses Azure REST API version 2021-12-01-preview. In version 1.x of the Azure Native provider, it used API version 2021-12-01-preview.

Example Usage

PutAccessReview

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var scopeAccessReviewScheduleDefinitionById = new AzureNative.Authorization.ScopeAccessReviewScheduleDefinitionById("scopeAccessReviewScheduleDefinitionById", new()
{
ScheduleDefinitionId = "fa73e90b-5bf1-45fd-a182-35ce5fc0674d",
Scope = "subscriptions/fa73e90b-5bf1-45fd-a182-35ce5fc0674d",
});
});
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.NewScopeAccessReviewScheduleDefinitionById(ctx, "scopeAccessReviewScheduleDefinitionById", &authorization.ScopeAccessReviewScheduleDefinitionByIdArgs{
ScheduleDefinitionId: pulumi.String("fa73e90b-5bf1-45fd-a182-35ce5fc0674d"),
Scope: pulumi.String("subscriptions/fa73e90b-5bf1-45fd-a182-35ce5fc0674d"),
})
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.ScopeAccessReviewScheduleDefinitionById;
import com.pulumi.azurenative.authorization.ScopeAccessReviewScheduleDefinitionByIdArgs;
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 scopeAccessReviewScheduleDefinitionById = new ScopeAccessReviewScheduleDefinitionById("scopeAccessReviewScheduleDefinitionById", ScopeAccessReviewScheduleDefinitionByIdArgs.builder()
.scheduleDefinitionId("fa73e90b-5bf1-45fd-a182-35ce5fc0674d")
.scope("subscriptions/fa73e90b-5bf1-45fd-a182-35ce5fc0674d")
.build());
}
}

Import

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

$ pulumi import azure-native:authorization:ScopeAccessReviewScheduleDefinitionById fa73e90b-5bf1-45fd-a182-35ce5fc0674d /{scope}/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/{scheduleDefinitionId}

Properties

Link copied to clipboard
val assignmentState: Output<String>

The role assignment state eligible/active to review

Link copied to clipboard

Flag to indicate whether auto-apply capability, to automatically change the target object access resource, is enabled. If not enabled, a user must, after the review completes, apply the access review.

Link copied to clipboard

This is the collection of backup reviewers.

Link copied to clipboard
val defaultDecision: Output<String>?

This specifies the behavior for the autoReview feature when an access review completes.

Link copied to clipboard

Flag to indicate whether reviewers are required to provide a justification when reviewing access.

Link copied to clipboard

The description provided by the access review creator and visible to admins.

Link copied to clipboard

The description provided by the access review creator to be shown to reviewers.

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

The display name for the schedule definition.

Link copied to clipboard
val endDate: Output<String>?

The DateTime when the review is scheduled to end. Required if type is endDate

Link copied to clipboard

This is used to indicate the resource id(s) to exclude

Link copied to clipboard

This is used to indicate the role definition id(s) to exclude

Link copied to clipboard

Flag to indicate whether to expand nested memberships or not.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val inactiveDuration: Output<String>?

Duration users are inactive for. The value should be in ISO 8601 format (http://en.wikipedia.org/wiki/ISO_8601#Durations).This code can be used to convert TimeSpan to a valid interval string: XmlConvert.ToString(new TimeSpan(hours, minutes, seconds))

Link copied to clipboard

Flag to indicate whether to expand nested memberships or not.

Link copied to clipboard

Flag to indicate whether to expand nested memberships or not.

Link copied to clipboard

The duration in days for an instance.

Link copied to clipboard

This is the collection of instances returned when one does an expand on it.

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

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

Link copied to clipboard

Flag to indicate whether the reviewer is required to pass justification when recording a decision.

Link copied to clipboard

Flag to indicate whether sending mails to reviewers and the review creator is enabled.

Link copied to clipboard
val name: Output<String>

The access review schedule definition unique id.

Link copied to clipboard
val numberOfOccurrences: Output<Int>?

The number of times to repeat the access review. Required and must be positive if type is numbered.

Link copied to clipboard
val principalId: Output<String>

The identity id

Link copied to clipboard
val principalName: Output<String>

The identity display name

Link copied to clipboard
val principalType: Output<String>

The identity type user/servicePrincipal to review

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Recommendations for access reviews are calculated by looking back at 30 days of data(w.r.t the start date of the review) by default. However, in some scenarios, customers want to change how far back to look at and want to configure 60 days, 90 days, etc. instead. This setting allows customers to configure this duration. The value should be in ISO 8601 format (http://en.wikipedia.org/wiki/ISO_8601#Durations).This code can be used to convert TimeSpan to a valid interval string: XmlConvert.ToString(new TimeSpan(hours, minutes, seconds))

Link copied to clipboard

Flag to indicate whether showing recommendations to reviewers is enabled.

Link copied to clipboard

Flag to indicate whether sending reminder emails to reviewers are enabled.

Link copied to clipboard
val resourceId: Output<String>

ResourceId in which this review is getting created

Link copied to clipboard

This is the collection of reviewers.

Link copied to clipboard
val reviewersType: Output<String>

This field specifies the type of reviewers for a review. Usually for a review, reviewers are explicitly assigned. However, in some cases, the reviewers may not be assigned and instead be chosen dynamically. For example managers review or self review.

Link copied to clipboard

This is used to indicate the role being reviewed

Link copied to clipboard
val startDate: Output<String>?

The DateTime when the review is scheduled to be start. This could be a date in the future. Required on create.

Link copied to clipboard
val status: Output<String>

This read-only field specifies the status of an accessReview.

Link copied to clipboard
val type: Output<String>

The resource type.

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard

The user principal name(if valid)