Scope Access Review Schedule Definition By Id Args
data class ScopeAccessReviewScheduleDefinitionByIdArgs(val autoApplyDecisionsEnabled: Output<Boolean>? = null, val backupReviewers: Output<List<AccessReviewReviewerArgs>>? = null, val defaultDecision: Output<Either<String, DefaultDecisionType>>? = null, val defaultDecisionEnabled: Output<Boolean>? = null, val descriptionForAdmins: Output<String>? = null, val descriptionForReviewers: Output<String>? = null, val displayName: Output<String>? = null, val endDate: Output<String>? = null, val excludeResourceId: Output<String>? = null, val excludeRoleDefinitionId: Output<String>? = null, val expandNestedMemberships: Output<Boolean>? = null, val inactiveDuration: Output<String>? = null, val includeAccessBelowResource: Output<Boolean>? = null, val includeInheritedAccess: Output<Boolean>? = null, val instanceDurationInDays: Output<Int>? = null, val instances: Output<List<AccessReviewInstanceArgs>>? = null, val interval: Output<Int>? = null, val justificationRequiredOnApproval: Output<Boolean>? = null, val mailNotificationsEnabled: Output<Boolean>? = null, val numberOfOccurrences: Output<Int>? = null, val recommendationLookBackDuration: Output<String>? = null, val recommendationsEnabled: Output<Boolean>? = null, val reminderNotificationsEnabled: Output<Boolean>? = null, val reviewers: Output<List<AccessReviewReviewerArgs>>? = null, val scheduleDefinitionId: Output<String>? = null, val scope: Output<String>? = null, val startDate: Output<String>? = null, val type: Output<Either<String, AccessReviewRecurrenceRangeType>>? = null) : ConvertibleToJava<ScopeAccessReviewScheduleDefinitionByIdArgs>
Access Review Schedule Definition. 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",
});
});
Content copied to clipboard
package main
import (
authorization "github.com/pulumi/pulumi-azure-native-sdk/authorization"
"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
})
}
Content copied to clipboard
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());
}
}
Content copied to clipboard
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 /subscriptions/fa73e90b-5bf1-45fd-a182-35ce5fc0674d/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/fa73e90b-5bf1-45fd-a182-35ce5fc0674d
Content copied to clipboard
Constructors
Link copied to clipboard
fun ScopeAccessReviewScheduleDefinitionByIdArgs(autoApplyDecisionsEnabled: Output<Boolean>? = null, backupReviewers: Output<List<AccessReviewReviewerArgs>>? = null, defaultDecision: Output<Either<String, DefaultDecisionType>>? = null, defaultDecisionEnabled: Output<Boolean>? = null, descriptionForAdmins: Output<String>? = null, descriptionForReviewers: Output<String>? = null, displayName: Output<String>? = null, endDate: Output<String>? = null, excludeResourceId: Output<String>? = null, excludeRoleDefinitionId: Output<String>? = null, expandNestedMemberships: Output<Boolean>? = null, inactiveDuration: Output<String>? = null, includeAccessBelowResource: Output<Boolean>? = null, includeInheritedAccess: Output<Boolean>? = null, instanceDurationInDays: Output<Int>? = null, instances: Output<List<AccessReviewInstanceArgs>>? = null, interval: Output<Int>? = null, justificationRequiredOnApproval: Output<Boolean>? = null, mailNotificationsEnabled: Output<Boolean>? = null, numberOfOccurrences: Output<Int>? = null, recommendationLookBackDuration: Output<String>? = null, recommendationsEnabled: Output<Boolean>? = null, reminderNotificationsEnabled: Output<Boolean>? = null, reviewers: Output<List<AccessReviewReviewerArgs>>? = null, scheduleDefinitionId: Output<String>? = null, scope: Output<String>? = null, startDate: Output<String>? = null, type: Output<Either<String, AccessReviewRecurrenceRangeType>>? = null)
Functions
Properties
Link copied to clipboard
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
Link copied to clipboard