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

com.pulumi.splunk.DataUiViews 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.DataUiViewsArgs;
import com.pulumi.splunk.Utilities;
import com.pulumi.splunk.inputs.DataUiViewsState;
import com.pulumi.splunk.outputs.DataUiViewsAcl;
import java.lang.String;
import javax.annotation.Nullable;

/**
 * ## # Resource: splunk.DataUiViews
 * 
 * Create and manage splunk dashboards/views.
 * ## 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.DataUiViews;
 * import com.pulumi.splunk.DataUiViewsArgs;
 * import com.pulumi.splunk.inputs.DataUiViewsAclArgs;
 * 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 }{{@code
 *     public static void main(String[] args) }{{@code
 *         Pulumi.run(App::stack);
 *     }}{@code
 * 
 *     public static void stack(Context ctx) }{{@code
 *         var dashboard = new DataUiViews("dashboard", DataUiViewsArgs.builder()
 *             .name("Terraform_Sample_Dashboard")
 *             .eaiData("Terraform operationsindex=_internal sourcetype=splunkd_access useragent=\"splunk-simple-go-client\" | timechart fixedrange=f values(status) by uri_path-24h}{@literal @}{@code hnow1")
 *             .acl(DataUiViewsAclArgs.builder()
 *                 .owner("admin")
 *                 .app("search")
 *                 .build())
 *             .build());
 * 
 *     }}{@code
 * }}{@code
 * }
 * 
* <!--End PulumiCodeChooser --> * */ @ResourceType(type="splunk:index/dataUiViews:DataUiViews") public class DataUiViews extends com.pulumi.resources.CustomResource { @Export(name="acl", refs={DataUiViewsAcl.class}, tree="[0]") private Output acl; public Output acl() { return this.acl; } /** * Dashboard XML definition. * */ @Export(name="eaiData", refs={String.class}, tree="[0]") private Output eaiData; /** * @return Dashboard XML definition. * */ public Output eaiData() { return this.eaiData; } /** * Dashboard name. * * `eai:data` - (Required) Dashboard XML definition. * */ @Export(name="name", refs={String.class}, tree="[0]") private Output name; /** * @return Dashboard name. * * `eai:data` - (Required) Dashboard XML definition. * */ public Output name() { return this.name; } /** * * @param name The _unique_ name of the resulting resource. */ public DataUiViews(java.lang.String name) { this(name, DataUiViewsArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public DataUiViews(java.lang.String name, DataUiViewsArgs 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 DataUiViews(java.lang.String name, DataUiViewsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("splunk:index/dataUiViews:DataUiViews", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private DataUiViews(java.lang.String name, Output id, @Nullable DataUiViewsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("splunk:index/dataUiViews:DataUiViews", name, state, makeResourceOptions(options, id), false); } private static DataUiViewsArgs makeArgs(DataUiViewsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? DataUiViewsArgs.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 DataUiViews get(java.lang.String name, Output id, @Nullable DataUiViewsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new DataUiViews(name, id, state, options); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy