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

com.pulumi.okta.app.GroupAssignment 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.app;

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.Utilities;
import com.pulumi.okta.app.GroupAssignmentArgs;
import com.pulumi.okta.app.inputs.GroupAssignmentState;
import java.lang.Boolean;
import java.lang.Integer;
import java.lang.String;
import java.util.Optional;
import javax.annotation.Nullable;

/**
 * ## 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.app.GroupAssignment;
 * import com.pulumi.okta.app.GroupAssignmentArgs;
 * 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 GroupAssignment("example", GroupAssignmentArgs.builder()
 *             .appId("")
 *             .groupId("")
 *             .profile("""
 * {
 *   "": ""
 * }
 *             """)
 *             .build());
 * 
 *     }
 * }
 * }
 * 
* <!--End PulumiCodeChooser --> * * ## Import * * ```sh * $ pulumi import okta:app/groupAssignment:GroupAssignment example <app_id>/<group_id> * ``` * */ @ResourceType(type="okta:app/groupAssignment:GroupAssignment") public class GroupAssignment extends com.pulumi.resources.CustomResource { /** * App to associate group with * */ @Export(name="appId", refs={String.class}, tree="[0]") private Output appId; /** * @return App to associate group with * */ public Output appId() { return this.appId; } /** * Group associated with the application * */ @Export(name="groupId", refs={String.class}, tree="[0]") private Output groupId; /** * @return Group associated with the application * */ public Output groupId() { return this.groupId; } /** * Priority of group assignment. * */ @Export(name="priority", refs={Integer.class}, tree="[0]") private Output priority; /** * @return Priority of group assignment. * */ public Output> priority() { return Codegen.optional(this.priority); } /** * JSON document containing [application profile](https://developer.okta.com/docs/reference/api/apps/#profile-object) * */ @Export(name="profile", refs={String.class}, tree="[0]") private Output profile; /** * @return JSON document containing [application profile](https://developer.okta.com/docs/reference/api/apps/#profile-object) * */ public Output> profile() { return Codegen.optional(this.profile); } /** * Retain the group assignment on destroy. If set to true, the resource will be removed from state but not from the Okta app. * */ @Export(name="retainAssignment", refs={Boolean.class}, tree="[0]") private Output retainAssignment; /** * @return Retain the group assignment on destroy. If set to true, the resource will be removed from state but not from the Okta app. * */ public Output> retainAssignment() { return Codegen.optional(this.retainAssignment); } /** * * @param name The _unique_ name of the resulting resource. */ public GroupAssignment(java.lang.String name) { this(name, GroupAssignmentArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public GroupAssignment(java.lang.String name, GroupAssignmentArgs 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 GroupAssignment(java.lang.String name, GroupAssignmentArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("okta:app/groupAssignment:GroupAssignment", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private GroupAssignment(java.lang.String name, Output id, @Nullable GroupAssignmentState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("okta:app/groupAssignment:GroupAssignment", name, state, makeResourceOptions(options, id), false); } private static GroupAssignmentArgs makeArgs(GroupAssignmentArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? GroupAssignmentArgs.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 GroupAssignment get(java.lang.String name, Output id, @Nullable GroupAssignmentState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new GroupAssignment(name, id, state, options); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy