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

com.pulumi.wavefront.CloudIntegrationNewRelic Maven / Gradle / Ivy

// *** 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.wavefront;

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.wavefront.CloudIntegrationNewRelicArgs;
import com.pulumi.wavefront.Utilities;
import com.pulumi.wavefront.inputs.CloudIntegrationNewRelicState;
import com.pulumi.wavefront.outputs.CloudIntegrationNewRelicMetricFilter;
import java.lang.Boolean;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import javax.annotation.Nullable;

/**
 * Provides a Wavefront Cloud Integration for New Relic. This allows New Relic cloud integrations to be created,
 * updated, and deleted.
 * 
 * ## Example Usage
 * 
 * <!--Start PulumiCodeChooser -->
 * 
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.wavefront.CloudIntegrationNewRelic;
 * import com.pulumi.wavefront.CloudIntegrationNewRelicArgs;
 * 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 newrelic = new CloudIntegrationNewRelic("newrelic", CloudIntegrationNewRelicArgs.builder()
 *             .name("Test Integration")
 *             .apiKey("example-api-key")
 *             .build());
 * 
 *     }
 * }
 * }
 * 
* <!--End PulumiCodeChooser --> * * ## Import * * NewRelic Integrations can be imported by using the `id`, e.g.: * * ```sh * $ pulumi import wavefront:index/cloudIntegrationNewRelic:CloudIntegrationNewRelic newrelic a411c16b-3cf7-4f03-bf11-8ca05aab898d * ``` * */ @ResourceType(type="wavefront:index/cloudIntegrationNewRelic:CloudIntegrationNewRelic") public class CloudIntegrationNewRelic extends com.pulumi.resources.CustomResource { /** * A list of point tag key-values to add to every point ingested using this integration. * */ @Export(name="additionalTags", refs={Map.class,String.class}, tree="[0,1,1]") private Output> additionalTags; /** * @return A list of point tag key-values to add to every point ingested using this integration. * */ public Output>> additionalTags() { return Codegen.optional(this.additionalTags); } /** * New Relic REST API key. * */ @Export(name="apiKey", refs={String.class}, tree="[0]") private Output apiKey; /** * @return New Relic REST API key. * */ public Output apiKey() { return this.apiKey; } /** * A regular expression that an application name must match (case-insensitively) in order to collect metrics. * */ @Export(name="appFilterRegex", refs={String.class}, tree="[0]") private Output appFilterRegex; /** * @return A regular expression that an application name must match (case-insensitively) in order to collect metrics. * */ public Output> appFilterRegex() { return Codegen.optional(this.appFilterRegex); } /** * Forces this resource to save, even if errors are present. * */ @Export(name="forceSave", refs={Boolean.class}, tree="[0]") private Output forceSave; /** * @return Forces this resource to save, even if errors are present. * */ public Output> forceSave() { return Codegen.optional(this.forceSave); } /** * A regular expression that a host name must match (case-insensitively) in order to collect metrics. * */ @Export(name="hostFilterRegex", refs={String.class}, tree="[0]") private Output hostFilterRegex; /** * @return A regular expression that a host name must match (case-insensitively) in order to collect metrics. * */ public Output> hostFilterRegex() { return Codegen.optional(this.hostFilterRegex); } /** * See Metric Filter. * */ @Export(name="metricFilters", refs={List.class,CloudIntegrationNewRelicMetricFilter.class}, tree="[0,1]") private Output> metricFilters; /** * @return See Metric Filter. * */ public Output>> metricFilters() { return Codegen.optional(this.metricFilters); } /** * The human-readable name of this integration. * */ @Export(name="name", refs={String.class}, tree="[0]") private Output name; /** * @return The human-readable name of this integration. * */ public Output name() { return this.name; } /** * A value denoting which cloud service this service integrates with. * */ @Export(name="service", refs={String.class}, tree="[0]") private Output service; /** * @return A value denoting which cloud service this service integrates with. * */ public Output service() { return this.service; } /** * How often, in minutes, to refresh the service. * */ @Export(name="serviceRefreshRateInMinutes", refs={Integer.class}, tree="[0]") private Output serviceRefreshRateInMinutes; /** * @return How often, in minutes, to refresh the service. * */ public Output> serviceRefreshRateInMinutes() { return Codegen.optional(this.serviceRefreshRateInMinutes); } /** * * @param name The _unique_ name of the resulting resource. */ public CloudIntegrationNewRelic(java.lang.String name) { this(name, CloudIntegrationNewRelicArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public CloudIntegrationNewRelic(java.lang.String name, CloudIntegrationNewRelicArgs 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 CloudIntegrationNewRelic(java.lang.String name, CloudIntegrationNewRelicArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("wavefront:index/cloudIntegrationNewRelic:CloudIntegrationNewRelic", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private CloudIntegrationNewRelic(java.lang.String name, Output id, @Nullable CloudIntegrationNewRelicState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("wavefront:index/cloudIntegrationNewRelic:CloudIntegrationNewRelic", name, state, makeResourceOptions(options, id), false); } private static CloudIntegrationNewRelicArgs makeArgs(CloudIntegrationNewRelicArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? CloudIntegrationNewRelicArgs.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()) .additionalSecretOutputs(List.of( "apiKey" )) .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 CloudIntegrationNewRelic get(java.lang.String name, Output id, @Nullable CloudIntegrationNewRelicState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new CloudIntegrationNewRelic(name, id, state, options); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy