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

com.pulumi.splunk.GenericAcl Maven / Gradle / Ivy

The 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.splunk;

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.splunk.GenericAclArgs;
import com.pulumi.splunk.Utilities;
import com.pulumi.splunk.inputs.GenericAclState;
import com.pulumi.splunk.outputs.GenericAclAcl;
import java.lang.String;
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.splunk.GenericAcl;
 * import com.pulumi.splunk.GenericAclArgs;
 * import com.pulumi.splunk.inputs.GenericAclAclArgs;
 * 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 myApp = new GenericAcl("myApp", GenericAclArgs.builder()
 *             .path("apps/local/my_app")
 *             .acl(GenericAclAclArgs.builder()
 *                 .app("system")
 *                 .owner("nobody")
 *                 .reads("*")
 *                 .writes(                
 *                     "admin",
 *                     "power")
 *                 .build())
 *             .build());
 * 
 *         var myDashboard = new GenericAcl("myDashboard", GenericAclArgs.builder()
 *             .path("data/ui/views/my_dashboard")
 *             .acl(GenericAclAclArgs.builder()
 *                 .app("my_app")
 *                 .owner("joe_user")
 *                 .reads("team_joe")
 *                 .writes("team_joe")
 *                 .build())
 *             .build());
 * 
 *     }
 * }
 * }
 * 
* <!--End PulumiCodeChooser --> * * ## Import * * Generic ACL resources can be imported by specifying their owner, app, and path with a colon-delimited string as the ID: * * ```sh * $ pulumi import splunk:index/genericAcl:GenericAcl splunk_generic_acl <owner>:<app>:<path> * ``` * */ @ResourceType(type="splunk:index/genericAcl:GenericAcl") public class GenericAcl extends com.pulumi.resources.CustomResource { /** * The ACL to apply to the object, including app/owner to properly identify the object. * Though technically optional, it should be explicitly set for this resource to really be valid. Some objects, such as * apps, require specific values for app and owner. Consult the REST API documentation regarding which values to use for * app and owner for objects that don't fit in the normal namespace. * */ @Export(name="acl", refs={GenericAclAcl.class}, tree="[0]") private Output acl; /** * @return The ACL to apply to the object, including app/owner to properly identify the object. * Though technically optional, it should be explicitly set for this resource to really be valid. Some objects, such as * apps, require specific values for app and owner. Consult the REST API documentation regarding which values to use for * app and owner for objects that don't fit in the normal namespace. * */ public Output acl() { return this.acl; } /** * REST API Endpoint path to the object, relative to servicesNS/<owner>/<app> * */ @Export(name="path", refs={String.class}, tree="[0]") private Output path; /** * @return REST API Endpoint path to the object, relative to servicesNS/<owner>/<app> * */ public Output path() { return this.path; } /** * * @param name The _unique_ name of the resulting resource. */ public GenericAcl(java.lang.String name) { this(name, GenericAclArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public GenericAcl(java.lang.String name, GenericAclArgs 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 GenericAcl(java.lang.String name, GenericAclArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("splunk:index/genericAcl:GenericAcl", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private GenericAcl(java.lang.String name, Output id, @Nullable GenericAclState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("splunk:index/genericAcl:GenericAcl", name, state, makeResourceOptions(options, id), false); } private static GenericAclArgs makeArgs(GenericAclArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? GenericAclArgs.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 GenericAcl get(java.lang.String name, Output id, @Nullable GenericAclState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new GenericAcl(name, id, state, options); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy