com.pulumi.azurenative.insights.ExportConfiguration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
// *** 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.insights;
import com.pulumi.azurenative.Utilities;
import com.pulumi.azurenative.insights.ExportConfigurationArgs;
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.Optional;
import javax.annotation.Nullable;
/**
* Properties that define a Continuous Export configuration.
* Azure REST API version: 2015-05-01. Prior API version in Azure Native 1.x: 2015-05-01.
*
* ## Example Usage
* ### ExportConfigurationUpdate
*
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azurenative.insights.ExportConfiguration;
* import com.pulumi.azurenative.insights.ExportConfigurationArgs;
* 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 exportConfiguration = new ExportConfiguration("exportConfiguration", ExportConfigurationArgs.builder()
* .destinationAccountId("/subscriptions/subid/resourceGroups/my-resource-group/providers/Microsoft.ClassicStorage/storageAccounts/mystorageblob")
* .destinationAddress("https://mystorageblob.blob.core.windows.net/fchentest?sv=2015-04-05&sr=c&sig=token")
* .destinationStorageLocationId("eastus")
* .destinationStorageSubscriptionId("subid")
* .destinationType("Blob")
* .exportId("uGOoki0jQsyEs3IdQ83Q4QsNr4=")
* .isEnabled("true")
* .notificationQueueEnabled("false")
* .notificationQueueUri("")
* .recordTypes("Requests, Event, Exceptions, Metrics, PageViews, PageViewPerformance, Rdd, PerformanceCounters, Availability")
* .resourceGroupName("my-resource-group")
* .resourceName("my-component")
* .build());
*
* }
* }
*
* }
*
*
* ## Import
*
* An existing resource can be imported using its type token, name, and identifier, e.g.
*
* ```sh
* $ pulumi import azure-native:insights:ExportConfiguration myresource1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/exportconfiguration/{exportId}
* ```
*
*/
@ResourceType(type="azure-native:insights:ExportConfiguration")
public class ExportConfiguration extends com.pulumi.resources.CustomResource {
/**
* The name of the Application Insights component.
*
*/
@Export(name="applicationName", refs={String.class}, tree="[0]")
private Output applicationName;
/**
* @return The name of the Application Insights component.
*
*/
public Output applicationName() {
return this.applicationName;
}
/**
* The name of the destination storage container.
*
*/
@Export(name="containerName", refs={String.class}, tree="[0]")
private Output containerName;
/**
* @return The name of the destination storage container.
*
*/
public Output containerName() {
return this.containerName;
}
/**
* The name of destination account.
*
*/
@Export(name="destinationAccountId", refs={String.class}, tree="[0]")
private Output destinationAccountId;
/**
* @return The name of destination account.
*
*/
public Output destinationAccountId() {
return this.destinationAccountId;
}
/**
* The destination account location ID.
*
*/
@Export(name="destinationStorageLocationId", refs={String.class}, tree="[0]")
private Output destinationStorageLocationId;
/**
* @return The destination account location ID.
*
*/
public Output destinationStorageLocationId() {
return this.destinationStorageLocationId;
}
/**
* The destination storage account subscription ID.
*
*/
@Export(name="destinationStorageSubscriptionId", refs={String.class}, tree="[0]")
private Output destinationStorageSubscriptionId;
/**
* @return The destination storage account subscription ID.
*
*/
public Output destinationStorageSubscriptionId() {
return this.destinationStorageSubscriptionId;
}
/**
* The destination type.
*
*/
@Export(name="destinationType", refs={String.class}, tree="[0]")
private Output destinationType;
/**
* @return The destination type.
*
*/
public Output destinationType() {
return this.destinationType;
}
/**
* The unique ID of the export configuration inside an Application Insights component. It is auto generated when the Continuous Export configuration is created.
*
*/
@Export(name="exportId", refs={String.class}, tree="[0]")
private Output exportId;
/**
* @return The unique ID of the export configuration inside an Application Insights component. It is auto generated when the Continuous Export configuration is created.
*
*/
public Output exportId() {
return this.exportId;
}
/**
* This indicates current Continuous Export configuration status. The possible values are 'Preparing', 'Success', 'Failure'.
*
*/
@Export(name="exportStatus", refs={String.class}, tree="[0]")
private Output exportStatus;
/**
* @return This indicates current Continuous Export configuration status. The possible values are 'Preparing', 'Success', 'Failure'.
*
*/
public Output exportStatus() {
return this.exportStatus;
}
/**
* The instrumentation key of the Application Insights component.
*
*/
@Export(name="instrumentationKey", refs={String.class}, tree="[0]")
private Output instrumentationKey;
/**
* @return The instrumentation key of the Application Insights component.
*
*/
public Output instrumentationKey() {
return this.instrumentationKey;
}
/**
* This will be 'true' if the Continuous Export configuration is enabled, otherwise it will be 'false'.
*
*/
@Export(name="isUserEnabled", refs={String.class}, tree="[0]")
private Output isUserEnabled;
/**
* @return This will be 'true' if the Continuous Export configuration is enabled, otherwise it will be 'false'.
*
*/
public Output isUserEnabled() {
return this.isUserEnabled;
}
/**
* The last time the Continuous Export configuration started failing.
*
*/
@Export(name="lastGapTime", refs={String.class}, tree="[0]")
private Output lastGapTime;
/**
* @return The last time the Continuous Export configuration started failing.
*
*/
public Output lastGapTime() {
return this.lastGapTime;
}
/**
* The last time data was successfully delivered to the destination storage container for this Continuous Export configuration.
*
*/
@Export(name="lastSuccessTime", refs={String.class}, tree="[0]")
private Output lastSuccessTime;
/**
* @return The last time data was successfully delivered to the destination storage container for this Continuous Export configuration.
*
*/
public Output lastSuccessTime() {
return this.lastSuccessTime;
}
/**
* Last time the Continuous Export configuration was updated.
*
*/
@Export(name="lastUserUpdate", refs={String.class}, tree="[0]")
private Output lastUserUpdate;
/**
* @return Last time the Continuous Export configuration was updated.
*
*/
public Output lastUserUpdate() {
return this.lastUserUpdate;
}
/**
* Deprecated
*
*/
@Export(name="notificationQueueEnabled", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> notificationQueueEnabled;
/**
* @return Deprecated
*
*/
public Output> notificationQueueEnabled() {
return Codegen.optional(this.notificationQueueEnabled);
}
/**
* This is the reason the Continuous Export configuration started failing. It can be 'AzureStorageNotFound' or 'AzureStorageAccessDenied'.
*
*/
@Export(name="permanentErrorReason", refs={String.class}, tree="[0]")
private Output permanentErrorReason;
/**
* @return This is the reason the Continuous Export configuration started failing. It can be 'AzureStorageNotFound' or 'AzureStorageAccessDenied'.
*
*/
public Output permanentErrorReason() {
return this.permanentErrorReason;
}
/**
* This comma separated list of document types that will be exported. The possible values include 'Requests', 'Event', 'Exceptions', 'Metrics', 'PageViews', 'PageViewPerformance', 'Rdd', 'PerformanceCounters', 'Availability', 'Messages'.
*
*/
@Export(name="recordTypes", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> recordTypes;
/**
* @return This comma separated list of document types that will be exported. The possible values include 'Requests', 'Event', 'Exceptions', 'Metrics', 'PageViews', 'PageViewPerformance', 'Rdd', 'PerformanceCounters', 'Availability', 'Messages'.
*
*/
public Output> recordTypes() {
return Codegen.optional(this.recordTypes);
}
/**
* The resource group of the Application Insights component.
*
*/
@Export(name="resourceGroup", refs={String.class}, tree="[0]")
private Output resourceGroup;
/**
* @return The resource group of the Application Insights component.
*
*/
public Output resourceGroup() {
return this.resourceGroup;
}
/**
* The name of the destination storage account.
*
*/
@Export(name="storageName", refs={String.class}, tree="[0]")
private Output storageName;
/**
* @return The name of the destination storage account.
*
*/
public Output storageName() {
return this.storageName;
}
/**
* The subscription of the Application Insights component.
*
*/
@Export(name="subscriptionId", refs={String.class}, tree="[0]")
private Output subscriptionId;
/**
* @return The subscription of the Application Insights component.
*
*/
public Output subscriptionId() {
return this.subscriptionId;
}
/**
*
* @param name The _unique_ name of the resulting resource.
*/
public ExportConfiguration(java.lang.String name) {
this(name, ExportConfigurationArgs.Empty);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
*/
public ExportConfiguration(java.lang.String name, ExportConfigurationArgs 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 ExportConfiguration(java.lang.String name, ExportConfigurationArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure-native:insights:ExportConfiguration", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false);
}
private ExportConfiguration(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure-native:insights:ExportConfiguration", name, null, makeResourceOptions(options, id), false);
}
private static ExportConfigurationArgs makeArgs(ExportConfigurationArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
if (options != null && options.getUrn().isPresent()) {
return null;
}
return args == null ? ExportConfigurationArgs.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:insights/v20150501:ExportConfiguration").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 ExportConfiguration get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) {
return new ExportConfiguration(name, id, options);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy