
com.pulumi.okta.AdminRoleCustomAssignments Maven / Gradle / Ivy
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.okta;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Export;
import com.pulumi.core.annotations.ResourceType;
import com.pulumi.core.internal.Codegen;
import com.pulumi.okta.AdminRoleCustomAssignmentsArgs;
import com.pulumi.okta.Utilities;
import com.pulumi.okta.inputs.AdminRoleCustomAssignmentsState;
import java.lang.String;
import java.util.List;
import java.util.Optional;
import javax.annotation.Nullable;
/**
* Resource to manage the assignment and unassignment of Custom Roles
* These operations allow the creation and manipulation of custom roles as custom collections of permissions.
*
* > **NOTE:** This an Early Access feature.
*
* ## Import
*
* ```sh
* $ pulumi import okta:index/adminRoleCustomAssignments:AdminRoleCustomAssignments example <resource_set_id>/<custom_role_id>
* ```
*
*/
@ResourceType(type="okta:index/adminRoleCustomAssignments:AdminRoleCustomAssignments")
public class AdminRoleCustomAssignments extends com.pulumi.resources.CustomResource {
/**
* ID of the Custom Role
*
*/
@Export(name="customRoleId", refs={String.class}, tree="[0]")
private Output customRoleId;
/**
* @return ID of the Custom Role
*
*/
public Output customRoleId() {
return this.customRoleId;
}
/**
* The hrefs that point to User(s) and/or Group(s) that receive the Role
*
*/
@Export(name="members", refs={List.class,String.class}, tree="[0,1]")
private Output* @Nullable */ List> members;
/**
* @return The hrefs that point to User(s) and/or Group(s) that receive the Role
*
*/
public Output>> members() {
return Codegen.optional(this.members);
}
/**
* ID of the target Resource Set
*
*/
@Export(name="resourceSetId", refs={String.class}, tree="[0]")
private Output resourceSetId;
/**
* @return ID of the target Resource Set
*
*/
public Output resourceSetId() {
return this.resourceSetId;
}
/**
*
* @param name The _unique_ name of the resulting resource.
*/
public AdminRoleCustomAssignments(java.lang.String name) {
this(name, AdminRoleCustomAssignmentsArgs.Empty);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
*/
public AdminRoleCustomAssignments(java.lang.String name, AdminRoleCustomAssignmentsArgs args) {
this(name, args, null);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
* @param options A bag of options that control this resource's behavior.
*/
public AdminRoleCustomAssignments(java.lang.String name, AdminRoleCustomAssignmentsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("okta:index/adminRoleCustomAssignments:AdminRoleCustomAssignments", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false);
}
private AdminRoleCustomAssignments(java.lang.String name, Output id, @Nullable AdminRoleCustomAssignmentsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("okta:index/adminRoleCustomAssignments:AdminRoleCustomAssignments", name, state, makeResourceOptions(options, id), false);
}
private static AdminRoleCustomAssignmentsArgs makeArgs(AdminRoleCustomAssignmentsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
if (options != null && options.getUrn().isPresent()) {
return null;
}
return args == null ? AdminRoleCustomAssignmentsArgs.Empty : args;
}
private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) {
var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder()
.version(Utilities.getVersion())
.build();
return com.pulumi.resources.CustomResourceOptions.merge(defaultOptions, options, id);
}
/**
* Get an existing Host 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 state
* @param options Optional settings to control the behavior of the CustomResource.
*/
public static AdminRoleCustomAssignments get(java.lang.String name, Output id, @Nullable AdminRoleCustomAssignmentsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
return new AdminRoleCustomAssignments(name, id, state, options);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy