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

com.pulumi.ise.deviceadmin.AuthorizationGlobalExceptionRuleUpdateRank Maven / Gradle / Ivy

Go to download

A Pulumi package for managing resources on a Cisco ISE (Identity Service Engine) instance.

There is a newer version: 0.2.0
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.ise.deviceadmin;

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.ise.Utilities;
import com.pulumi.ise.deviceadmin.AuthorizationGlobalExceptionRuleUpdateRankArgs;
import com.pulumi.ise.deviceadmin.inputs.AuthorizationGlobalExceptionRuleUpdateRankState;
import java.lang.Integer;
import java.lang.String;
import javax.annotation.Nullable;

/**
 * This resource is used to update rank field in device admin authorization global exception rule. It serves as a workaround for the ISE API/Backend limitation which restricts rank assignments to a strictly incremental sequence. By utilizing this resource and device_admin_authorization_global_exception_rule resource, you can bypass the APIs limitation. Creation of this resource is performing PUT operation (Update) and it only tracks rank field. When this resource is destroyed, no action is performed on ISE and resource is just removed from state.
 * 
 * ## Example Usage
 * 
 * <!--Start PulumiCodeChooser -->
 * 
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.ise.deviceadmin.AuthorizationGlobalExceptionRuleUpdateRank;
 * import com.pulumi.ise.deviceadmin.AuthorizationGlobalExceptionRuleUpdateRankArgs;
 * 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 AuthorizationGlobalExceptionRuleUpdateRank("example", AuthorizationGlobalExceptionRuleUpdateRankArgs.builder()
 *             .ruleId("d82952cb-b901-4b09-b363-5ebf39bdbaf9")
 *             .rank(0)
 *             .build());
 * 
 *     }
 * }
 * }
 * 
* <!--End PulumiCodeChooser --> * */ @ResourceType(type="ise:deviceadmin/authorizationGlobalExceptionRuleUpdateRank:AuthorizationGlobalExceptionRuleUpdateRank") public class AuthorizationGlobalExceptionRuleUpdateRank extends com.pulumi.resources.CustomResource { /** * The rank (priority) in relation to other rules. Lower rank is higher priority. * */ @Export(name="rank", refs={Integer.class}, tree="[0]") private Output rank; /** * @return The rank (priority) in relation to other rules. Lower rank is higher priority. * */ public Output rank() { return this.rank; } /** * Authorization global exception rule ID * */ @Export(name="ruleId", refs={String.class}, tree="[0]") private Output ruleId; /** * @return Authorization global exception rule ID * */ public Output ruleId() { return this.ruleId; } /** * * @param name The _unique_ name of the resulting resource. */ public AuthorizationGlobalExceptionRuleUpdateRank(java.lang.String name) { this(name, AuthorizationGlobalExceptionRuleUpdateRankArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public AuthorizationGlobalExceptionRuleUpdateRank(java.lang.String name, AuthorizationGlobalExceptionRuleUpdateRankArgs 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 AuthorizationGlobalExceptionRuleUpdateRank(java.lang.String name, AuthorizationGlobalExceptionRuleUpdateRankArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("ise:deviceadmin/authorizationGlobalExceptionRuleUpdateRank:AuthorizationGlobalExceptionRuleUpdateRank", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private AuthorizationGlobalExceptionRuleUpdateRank(java.lang.String name, Output id, @Nullable AuthorizationGlobalExceptionRuleUpdateRankState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("ise:deviceadmin/authorizationGlobalExceptionRuleUpdateRank:AuthorizationGlobalExceptionRuleUpdateRank", name, state, makeResourceOptions(options, id), false); } private static AuthorizationGlobalExceptionRuleUpdateRankArgs makeArgs(AuthorizationGlobalExceptionRuleUpdateRankArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? AuthorizationGlobalExceptionRuleUpdateRankArgs.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 AuthorizationGlobalExceptionRuleUpdateRank get(java.lang.String name, Output id, @Nullable AuthorizationGlobalExceptionRuleUpdateRankState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new AuthorizationGlobalExceptionRuleUpdateRank(name, id, state, options); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy