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

com.pulumi.azurenative.solutions.JitRequest Maven / Gradle / Ivy

There is a newer version: 2.78.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.azurenative.solutions;

import com.pulumi.azurenative.Utilities;
import com.pulumi.azurenative.solutions.JitRequestArgs;
import com.pulumi.azurenative.solutions.outputs.ApplicationClientDetailsResponse;
import com.pulumi.azurenative.solutions.outputs.JitAuthorizationPoliciesResponse;
import com.pulumi.azurenative.solutions.outputs.JitSchedulingPolicyResponse;
import com.pulumi.azurenative.solutions.outputs.SystemDataResponse;
import com.pulumi.core.Alias;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Export;
import com.pulumi.core.annotations.ResourceType;
import com.pulumi.core.internal.Codegen;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import javax.annotation.Nullable;

/**
 * Information about JIT request definition.
 * Azure REST API version: 2021-07-01. Prior API version in Azure Native 1.x: 2019-07-01.
 * 
 * Other available API versions: 2023-12-01-preview.
 * 
 * ## Example Usage
 * ### Create or update jit request
 * 
 * 
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.solutions.JitRequest;
 * import com.pulumi.azurenative.solutions.JitRequestArgs;
 * import com.pulumi.azurenative.solutions.inputs.JitAuthorizationPoliciesArgs;
 * import com.pulumi.azurenative.solutions.inputs.JitSchedulingPolicyArgs;
 * 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 jitRequest = new JitRequest("jitRequest", JitRequestArgs.builder()
 *             .applicationResourceId("/subscriptions/00c76877-e316-48a7-af60-4a09fec9d43f/resourceGroups/52F30DB2/providers/Microsoft.Solutions/applications/7E193158")
 *             .jitAuthorizationPolicies(JitAuthorizationPoliciesArgs.builder()
 *                 .principalId("1db8e132e2934dbcb8e1178a61319491")
 *                 .roleDefinitionId("ecd05a23-931a-4c38-a52b-ac7c4c583334")
 *                 .build())
 *             .jitRequestName("myJitRequest")
 *             .jitSchedulingPolicy(JitSchedulingPolicyArgs.builder()
 *                 .duration("PT8H")
 *                 .startTime("2021-04-22T05:48:30.6661804Z")
 *                 .type("Once")
 *                 .build())
 *             .resourceGroupName("rg")
 *             .build());
 * 
 *     }
 * }
 * 
 * }
 * 
* * ## Import * * An existing resource can be imported using its type token, name, and identifier, e.g. * * ```sh * $ pulumi import azure-native:solutions:JitRequest myJitRequest /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/jitRequests/{jitRequestName} * ``` * */ @ResourceType(type="azure-native:solutions:JitRequest") public class JitRequest extends com.pulumi.resources.CustomResource { /** * The parent application id. * */ @Export(name="applicationResourceId", refs={String.class}, tree="[0]") private Output applicationResourceId; /** * @return The parent application id. * */ public Output applicationResourceId() { return this.applicationResourceId; } /** * The client entity that created the JIT request. * */ @Export(name="createdBy", refs={ApplicationClientDetailsResponse.class}, tree="[0]") private Output createdBy; /** * @return The client entity that created the JIT request. * */ public Output createdBy() { return this.createdBy; } /** * The JIT authorization policies. * */ @Export(name="jitAuthorizationPolicies", refs={List.class,JitAuthorizationPoliciesResponse.class}, tree="[0,1]") private Output> jitAuthorizationPolicies; /** * @return The JIT authorization policies. * */ public Output> jitAuthorizationPolicies() { return this.jitAuthorizationPolicies; } /** * The JIT request state. * */ @Export(name="jitRequestState", refs={String.class}, tree="[0]") private Output jitRequestState; /** * @return The JIT request state. * */ public Output jitRequestState() { return this.jitRequestState; } /** * The JIT request properties. * */ @Export(name="jitSchedulingPolicy", refs={JitSchedulingPolicyResponse.class}, tree="[0]") private Output jitSchedulingPolicy; /** * @return The JIT request properties. * */ public Output jitSchedulingPolicy() { return this.jitSchedulingPolicy; } /** * Resource location * */ @Export(name="location", refs={String.class}, tree="[0]") private Output location; /** * @return Resource location * */ public Output> location() { return Codegen.optional(this.location); } /** * Resource name * */ @Export(name="name", refs={String.class}, tree="[0]") private Output name; /** * @return Resource name * */ public Output name() { return this.name; } /** * The JIT request provisioning state. * */ @Export(name="provisioningState", refs={String.class}, tree="[0]") private Output provisioningState; /** * @return The JIT request provisioning state. * */ public Output provisioningState() { return this.provisioningState; } /** * The publisher tenant id. * */ @Export(name="publisherTenantId", refs={String.class}, tree="[0]") private Output publisherTenantId; /** * @return The publisher tenant id. * */ public Output publisherTenantId() { return this.publisherTenantId; } /** * Metadata pertaining to creation and last modification of the resource. * */ @Export(name="systemData", refs={SystemDataResponse.class}, tree="[0]") private Output systemData; /** * @return Metadata pertaining to creation and last modification of the resource. * */ public Output systemData() { return this.systemData; } /** * Resource tags * */ @Export(name="tags", refs={Map.class,String.class}, tree="[0,1,1]") private Output> tags; /** * @return Resource tags * */ public Output>> tags() { return Codegen.optional(this.tags); } /** * Resource type * */ @Export(name="type", refs={String.class}, tree="[0]") private Output type; /** * @return Resource type * */ public Output type() { return this.type; } /** * The client entity that last updated the JIT request. * */ @Export(name="updatedBy", refs={ApplicationClientDetailsResponse.class}, tree="[0]") private Output updatedBy; /** * @return The client entity that last updated the JIT request. * */ public Output updatedBy() { return this.updatedBy; } /** * * @param name The _unique_ name of the resulting resource. */ public JitRequest(java.lang.String name) { this(name, JitRequestArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public JitRequest(java.lang.String name, JitRequestArgs 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 JitRequest(java.lang.String name, JitRequestArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:solutions:JitRequest", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private JitRequest(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:solutions:JitRequest", name, null, makeResourceOptions(options, id), false); } private static JitRequestArgs makeArgs(JitRequestArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? JitRequestArgs.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()) .aliases(List.of( Output.of(Alias.builder().type("azure-native:solutions/v20180301:JitRequest").build()), Output.of(Alias.builder().type("azure-native:solutions/v20180601:JitRequest").build()), Output.of(Alias.builder().type("azure-native:solutions/v20180901preview:JitRequest").build()), Output.of(Alias.builder().type("azure-native:solutions/v20190701:JitRequest").build()), Output.of(Alias.builder().type("azure-native:solutions/v20200821preview:JitRequest").build()), Output.of(Alias.builder().type("azure-native:solutions/v20210201preview:JitRequest").build()), Output.of(Alias.builder().type("azure-native:solutions/v20210701:JitRequest").build()), Output.of(Alias.builder().type("azure-native:solutions/v20231201preview:JitRequest").build()) )) .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 options Optional settings to control the behavior of the CustomResource. */ public static JitRequest get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new JitRequest(name, id, options); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy