All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.okta.AdminRoleTargets Maven / Gradle / Ivy

There is a newer version: 4.13.0-alpha.1732774005
Show newest version
// *** 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.AdminRoleTargetsArgs;
import com.pulumi.okta.Utilities;
import com.pulumi.okta.inputs.AdminRoleTargetsState;
import java.lang.String;
import java.util.List;
import java.util.Optional;
import javax.annotation.Nullable;

/**
 * Manages targets for administrator roles.
 * 
 * This resource allows you to define permissions for admin roles into a smaller subset of Groups or Apps within your org.
 * You can define admin roles to target Groups, Applications, and Application Instances.
 * 
 * ## Example Usage
 * 
 * <!--Start PulumiCodeChooser -->
 * 
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.okta.AdminRoleTargets;
 * import com.pulumi.okta.AdminRoleTargetsArgs;
 * 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 example = new AdminRoleTargets("example", AdminRoleTargetsArgs.builder()
 *             .userId("")
 *             .roleType("APP_ADMIN")
 *             .apps(            
 *                 "oidc_client.",
 *                 "facebook")
 *             .build());
 * 
 *     }
 * }
 * }
 * 
* <!--End PulumiCodeChooser --> * * ## Import * * ```sh * $ pulumi import okta:index/adminRoleTargets:AdminRoleTargets example <user_id>/<role_type> * ``` * */ @ResourceType(type="okta:index/adminRoleTargets:AdminRoleTargets") public class AdminRoleTargets extends com.pulumi.resources.CustomResource { /** * List of app names (name represents set of app instances) or a combination of app name and app instance ID (like 'salesforce' or 'facebook.0oapsqQ6dv19pqyEo0g3') * */ @Export(name="apps", refs={List.class,String.class}, tree="[0,1]") private Output> apps; /** * @return List of app names (name represents set of app instances) or a combination of app name and app instance ID (like 'salesforce' or 'facebook.0oapsqQ6dv19pqyEo0g3') * */ public Output>> apps() { return Codegen.optional(this.apps); } /** * List of group IDs. Conflicts with apps * */ @Export(name="groups", refs={List.class,String.class}, tree="[0,1]") private Output> groups; /** * @return List of group IDs. Conflicts with apps * */ public Output>> groups() { return Codegen.optional(this.groups); } /** * ID of a role * */ @Export(name="roleId", refs={String.class}, tree="[0]") private Output roleId; /** * @return ID of a role * */ public Output roleId() { return this.roleId; } /** * Type of the role that is assigned to the user and supports optional targets. See [API Docs](https://developer.okta.com/docs/reference/api/roles/#role-types) * */ @Export(name="roleType", refs={String.class}, tree="[0]") private Output roleType; /** * @return Type of the role that is assigned to the user and supports optional targets. See [API Docs](https://developer.okta.com/docs/reference/api/roles/#role-types) * */ public Output roleType() { return this.roleType; } /** * User associated with the role * */ @Export(name="userId", refs={String.class}, tree="[0]") private Output userId; /** * @return User associated with the role * */ public Output userId() { return this.userId; } /** * * @param name The _unique_ name of the resulting resource. */ public AdminRoleTargets(java.lang.String name) { this(name, AdminRoleTargetsArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public AdminRoleTargets(java.lang.String name, AdminRoleTargetsArgs 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 AdminRoleTargets(java.lang.String name, AdminRoleTargetsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("okta:index/adminRoleTargets:AdminRoleTargets", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private AdminRoleTargets(java.lang.String name, Output id, @Nullable AdminRoleTargetsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("okta:index/adminRoleTargets:AdminRoleTargets", name, state, makeResourceOptions(options, id), false); } private static AdminRoleTargetsArgs makeArgs(AdminRoleTargetsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? AdminRoleTargetsArgs.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 AdminRoleTargets get(java.lang.String name, Output id, @Nullable AdminRoleTargetsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new AdminRoleTargets(name, id, state, options); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy