com.pulumi.azurenative.insights.MyWorkbook 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.MyWorkbookArgs;
import com.pulumi.azurenative.insights.outputs.MyWorkbookManagedIdentityResponse;
import com.pulumi.azurenative.insights.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;
/**
* An Application Insights private workbook definition.
* Azure REST API version: 2021-03-08. Prior API version in Azure Native 1.x: 2020-10-20.
* ## Import
*
* An existing resource can be imported using its type token, name, and identifier, e.g.
*
* ```sh
* $ pulumi import azure-native:insights:MyWorkbook deadb33f-8bee-4d3b-a059-9be8dac93960 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/myWorkbooks/{resourceName}
* ```
*
*/
@ResourceType(type="azure-native:insights:MyWorkbook")
public class MyWorkbook extends com.pulumi.resources.CustomResource {
/**
* Workbook category, as defined by the user at creation time.
*
*/
@Export(name="category", refs={String.class}, tree="[0]")
private Output category;
/**
* @return Workbook category, as defined by the user at creation time.
*
*/
public Output category() {
return this.category;
}
/**
* The user-defined name of the private workbook.
*
*/
@Export(name="displayName", refs={String.class}, tree="[0]")
private Output displayName;
/**
* @return The user-defined name of the private workbook.
*
*/
public Output displayName() {
return this.displayName;
}
/**
* Resource etag
*
*/
@Export(name="etag", refs={Map.class,String.class}, tree="[0,1,1]")
private Output* @Nullable */ Map> etag;
/**
* @return Resource etag
*
*/
public Output>> etag() {
return Codegen.optional(this.etag);
}
/**
* Identity used for BYOS
*
*/
@Export(name="identity", refs={MyWorkbookManagedIdentityResponse.class}, tree="[0]")
private Output* @Nullable */ MyWorkbookManagedIdentityResponse> identity;
/**
* @return Identity used for BYOS
*
*/
public Output> identity() {
return Codegen.optional(this.identity);
}
/**
* The kind of workbook. Choices are user and shared.
*
*/
@Export(name="kind", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> kind;
/**
* @return The kind of workbook. Choices are user and shared.
*
*/
public Output> kind() {
return Codegen.optional(this.kind);
}
/**
* Resource location
*
*/
@Export(name="location", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> location;
/**
* @return Resource location
*
*/
public Output> location() {
return Codegen.optional(this.location);
}
/**
* Azure resource name
*
*/
@Export(name="name", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> name;
/**
* @return Azure resource name
*
*/
public Output> name() {
return Codegen.optional(this.name);
}
/**
* Configuration of this particular private workbook. Configuration data is a string containing valid JSON
*
*/
@Export(name="serializedData", refs={String.class}, tree="[0]")
private Output serializedData;
/**
* @return Configuration of this particular private workbook. Configuration data is a string containing valid JSON
*
*/
public Output serializedData() {
return this.serializedData;
}
/**
* Optional resourceId for a source resource.
*
*/
@Export(name="sourceId", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> sourceId;
/**
* @return Optional resourceId for a source resource.
*
*/
public Output> sourceId() {
return Codegen.optional(this.sourceId);
}
/**
* BYOS Storage Account URI
*
*/
@Export(name="storageUri", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> storageUri;
/**
* @return BYOS Storage Account URI
*
*/
public Output> storageUri() {
return Codegen.optional(this.storageUri);
}
/**
* 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* @Nullable */ Map> tags;
/**
* @return Resource tags
*
*/
public Output>> tags() {
return Codegen.optional(this.tags);
}
/**
* Date and time in UTC of the last modification that was made to this private workbook definition.
*
*/
@Export(name="timeModified", refs={String.class}, tree="[0]")
private Output timeModified;
/**
* @return Date and time in UTC of the last modification that was made to this private workbook definition.
*
*/
public Output timeModified() {
return this.timeModified;
}
/**
* Azure resource type
*
*/
@Export(name="type", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> type;
/**
* @return Azure resource type
*
*/
public Output> type() {
return Codegen.optional(this.type);
}
/**
* Unique user id of the specific user that owns this private workbook.
*
*/
@Export(name="userId", refs={String.class}, tree="[0]")
private Output userId;
/**
* @return Unique user id of the specific user that owns this private workbook.
*
*/
public Output userId() {
return this.userId;
}
/**
* This instance's version of the data model. This can change as new features are added that can be marked private workbook.
*
*/
@Export(name="version", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> version;
/**
* @return This instance's version of the data model. This can change as new features are added that can be marked private workbook.
*
*/
public Output> version() {
return Codegen.optional(this.version);
}
/**
*
* @param name The _unique_ name of the resulting resource.
*/
public MyWorkbook(java.lang.String name) {
this(name, MyWorkbookArgs.Empty);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
*/
public MyWorkbook(java.lang.String name, MyWorkbookArgs 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 MyWorkbook(java.lang.String name, MyWorkbookArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure-native:insights:MyWorkbook", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false);
}
private MyWorkbook(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure-native:insights:MyWorkbook", name, null, makeResourceOptions(options, id), false);
}
private static MyWorkbookArgs makeArgs(MyWorkbookArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
if (options != null && options.getUrn().isPresent()) {
return null;
}
return args == null ? MyWorkbookArgs.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:MyWorkbook").build()),
Output.of(Alias.builder().type("azure-native:insights/v20201020:MyWorkbook").build()),
Output.of(Alias.builder().type("azure-native:insights/v20210308:MyWorkbook").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 MyWorkbook get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) {
return new MyWorkbook(name, id, options);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy