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

com.pulumi.okta.AppGroupAssignments 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.AppGroupAssignmentsArgs;
import com.pulumi.okta.Utilities;
import com.pulumi.okta.inputs.AppGroupAssignmentsState;
import com.pulumi.okta.outputs.AppGroupAssignmentsGroup;
import java.lang.String;
import java.util.List;
import javax.annotation.Nullable;

/**
 * Assigns groups to an application. This resource allows you to create multiple App Group assignments.
 * 
 * **Important**: Do not use in conjunction with for_each
 * 
 * ## 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.AppGroupAssignments;
 * import com.pulumi.okta.AppGroupAssignmentsArgs;
 * import com.pulumi.okta.inputs.AppGroupAssignmentsGroupArgs;
 * import static com.pulumi.codegen.internal.Serialization.*;
 * 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 AppGroupAssignments("example", AppGroupAssignmentsArgs.builder()
 *             .appId("")
 *             .groups(            
 *                 AppGroupAssignmentsGroupArgs.builder()
 *                     .id("")
 *                     .priority(1)
 *                     .build(),
 *                 AppGroupAssignmentsGroupArgs.builder()
 *                     .id("")
 *                     .priority(2)
 *                     .profile(serializeJson(
 *                         jsonObject(
 *                             jsonProperty("application profile field", "application profile value")
 *                         )))
 *                     .build())
 *             .build());
 * 
 *     }
 * }
 * }
 * 
* <!--End PulumiCodeChooser --> * * ## Import * * ```sh * $ pulumi import okta:index/appGroupAssignments:AppGroupAssignments example <app_id> * ``` * */ @ResourceType(type="okta:index/appGroupAssignments:AppGroupAssignments") public class AppGroupAssignments extends com.pulumi.resources.CustomResource { /** * The ID of the application to assign a group to. * */ @Export(name="appId", refs={String.class}, tree="[0]") private Output appId; /** * @return The ID of the application to assign a group to. * */ public Output appId() { return this.appId; } /** * A group to assign to this application * */ @Export(name="groups", refs={List.class,AppGroupAssignmentsGroup.class}, tree="[0,1]") private Output> groups; /** * @return A group to assign to this application * */ public Output> groups() { return this.groups; } /** * * @param name The _unique_ name of the resulting resource. */ public AppGroupAssignments(java.lang.String name) { this(name, AppGroupAssignmentsArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public AppGroupAssignments(java.lang.String name, AppGroupAssignmentsArgs 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 AppGroupAssignments(java.lang.String name, AppGroupAssignmentsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("okta:index/appGroupAssignments:AppGroupAssignments", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private AppGroupAssignments(java.lang.String name, Output id, @Nullable AppGroupAssignmentsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("okta:index/appGroupAssignments:AppGroupAssignments", name, state, makeResourceOptions(options, id), false); } private static AppGroupAssignmentsArgs makeArgs(AppGroupAssignmentsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? AppGroupAssignmentsArgs.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 AppGroupAssignments get(java.lang.String name, Output id, @Nullable AppGroupAssignmentsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new AppGroupAssignments(name, id, state, options); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy