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

com.pulumi.azurenative.insights.DataCollectionEndpoint Maven / Gradle / Ivy

There is a newer version: 2.78.0
Show 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.azurenative.insights;

import com.pulumi.azurenative.Utilities;
import com.pulumi.azurenative.insights.DataCollectionEndpointArgs;
import com.pulumi.azurenative.insights.outputs.DataCollectionEndpointResourceResponseIdentity;
import com.pulumi.azurenative.insights.outputs.DataCollectionEndpointResourceResponseSystemData;
import com.pulumi.azurenative.insights.outputs.DataCollectionEndpointResponseConfigurationAccess;
import com.pulumi.azurenative.insights.outputs.DataCollectionEndpointResponseFailoverConfiguration;
import com.pulumi.azurenative.insights.outputs.DataCollectionEndpointResponseLogsIngestion;
import com.pulumi.azurenative.insights.outputs.DataCollectionEndpointResponseMetadata;
import com.pulumi.azurenative.insights.outputs.DataCollectionEndpointResponseMetricsIngestion;
import com.pulumi.azurenative.insights.outputs.DataCollectionEndpointResponseNetworkAcls;
import com.pulumi.azurenative.insights.outputs.PrivateLinkScopedResourceResponse;
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;

/**
 * Definition of ARM tracked top level resource.
 * Azure REST API version: 2022-06-01. Prior API version in Azure Native 1.x: 2021-09-01-preview.
 * 
 * Other available API versions: 2023-03-11.
 * 
 * ## Example Usage
 * ### Create or update data collection endpoint
 * 
 * 
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.insights.DataCollectionEndpoint;
 * import com.pulumi.azurenative.insights.DataCollectionEndpointArgs;
 * import com.pulumi.azurenative.insights.inputs.DataCollectionEndpointNetworkAclsArgs;
 * 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 dataCollectionEndpoint = new DataCollectionEndpoint("dataCollectionEndpoint", DataCollectionEndpointArgs.builder()
 *             .dataCollectionEndpointName("myCollectionEndpoint")
 *             .location("eastus")
 *             .networkAcls(DataCollectionEndpointNetworkAclsArgs.builder()
 *                 .publicNetworkAccess("Enabled")
 *                 .build())
 *             .resourceGroupName("myResourceGroup")
 *             .build());
 * 
 *     }
 * }
 * 
 * }
 * 
* * ## Import * * An existing resource can be imported using its type token, name, and identifier, e.g. * * ```sh * $ pulumi import azure-native:insights:DataCollectionEndpoint myCollectionEndpoint /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionEndpoints/{dataCollectionEndpointName} * ``` * */ @ResourceType(type="azure-native:insights:DataCollectionEndpoint") public class DataCollectionEndpoint extends com.pulumi.resources.CustomResource { /** * The endpoint used by clients to access their configuration. * */ @Export(name="configurationAccess", refs={DataCollectionEndpointResponseConfigurationAccess.class}, tree="[0]") private Output configurationAccess; /** * @return The endpoint used by clients to access their configuration. * */ public Output> configurationAccess() { return Codegen.optional(this.configurationAccess); } /** * Description of the data collection endpoint. * */ @Export(name="description", refs={String.class}, tree="[0]") private Output description; /** * @return Description of the data collection endpoint. * */ public Output> description() { return Codegen.optional(this.description); } /** * Resource entity tag (ETag). * */ @Export(name="etag", refs={String.class}, tree="[0]") private Output etag; /** * @return Resource entity tag (ETag). * */ public Output etag() { return this.etag; } /** * Failover configuration on this endpoint. This property is READ-ONLY. * */ @Export(name="failoverConfiguration", refs={DataCollectionEndpointResponseFailoverConfiguration.class}, tree="[0]") private Output failoverConfiguration; /** * @return Failover configuration on this endpoint. This property is READ-ONLY. * */ public Output failoverConfiguration() { return this.failoverConfiguration; } /** * Managed service identity of the resource. * */ @Export(name="identity", refs={DataCollectionEndpointResourceResponseIdentity.class}, tree="[0]") private Output identity; /** * @return Managed service identity of the resource. * */ public Output> identity() { return Codegen.optional(this.identity); } /** * The immutable ID of this data collection endpoint resource. This property is READ-ONLY. * */ @Export(name="immutableId", refs={String.class}, tree="[0]") private Output immutableId; /** * @return The immutable ID of this data collection endpoint resource. This property is READ-ONLY. * */ public Output> immutableId() { return Codegen.optional(this.immutableId); } /** * The kind of the resource. * */ @Export(name="kind", refs={String.class}, tree="[0]") private Output kind; /** * @return The kind of the resource. * */ public Output> kind() { return Codegen.optional(this.kind); } /** * The geo-location where the resource lives. * */ @Export(name="location", refs={String.class}, tree="[0]") private Output location; /** * @return The geo-location where the resource lives. * */ public Output location() { return this.location; } /** * The endpoint used by clients to ingest logs. * */ @Export(name="logsIngestion", refs={DataCollectionEndpointResponseLogsIngestion.class}, tree="[0]") private Output logsIngestion; /** * @return The endpoint used by clients to ingest logs. * */ public Output> logsIngestion() { return Codegen.optional(this.logsIngestion); } /** * Metadata for the resource. This property is READ-ONLY. * */ @Export(name="metadata", refs={DataCollectionEndpointResponseMetadata.class}, tree="[0]") private Output metadata; /** * @return Metadata for the resource. This property is READ-ONLY. * */ public Output metadata() { return this.metadata; } /** * The endpoint used by clients to ingest metrics. * */ @Export(name="metricsIngestion", refs={DataCollectionEndpointResponseMetricsIngestion.class}, tree="[0]") private Output metricsIngestion; /** * @return The endpoint used by clients to ingest metrics. * */ public Output> metricsIngestion() { return Codegen.optional(this.metricsIngestion); } /** * The name of the resource. * */ @Export(name="name", refs={String.class}, tree="[0]") private Output name; /** * @return The name of the resource. * */ public Output name() { return this.name; } /** * Network access control rules for the endpoints. * */ @Export(name="networkAcls", refs={DataCollectionEndpointResponseNetworkAcls.class}, tree="[0]") private Output networkAcls; /** * @return Network access control rules for the endpoints. * */ public Output> networkAcls() { return Codegen.optional(this.networkAcls); } /** * List of Azure Monitor Private Link Scope Resources to which this data collection endpoint resource is associated. This property is READ-ONLY. * */ @Export(name="privateLinkScopedResources", refs={List.class,PrivateLinkScopedResourceResponse.class}, tree="[0,1]") private Output> privateLinkScopedResources; /** * @return List of Azure Monitor Private Link Scope Resources to which this data collection endpoint resource is associated. This property is READ-ONLY. * */ public Output> privateLinkScopedResources() { return this.privateLinkScopedResources; } /** * The resource provisioning state. This property is READ-ONLY. * */ @Export(name="provisioningState", refs={String.class}, tree="[0]") private Output provisioningState; /** * @return The resource provisioning state. This property is READ-ONLY. * */ public Output provisioningState() { return this.provisioningState; } /** * Metadata pertaining to creation and last modification of the resource. * */ @Export(name="systemData", refs={DataCollectionEndpointResourceResponseSystemData.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> tags; /** * @return Resource tags. * */ public Output>> tags() { return Codegen.optional(this.tags); } /** * The type of the resource. * */ @Export(name="type", refs={String.class}, tree="[0]") private Output type; /** * @return The type of the resource. * */ public Output type() { return this.type; } /** * * @param name The _unique_ name of the resulting resource. */ public DataCollectionEndpoint(java.lang.String name) { this(name, DataCollectionEndpointArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public DataCollectionEndpoint(java.lang.String name, DataCollectionEndpointArgs 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 DataCollectionEndpoint(java.lang.String name, DataCollectionEndpointArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:insights:DataCollectionEndpoint", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private DataCollectionEndpoint(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:insights:DataCollectionEndpoint", name, null, makeResourceOptions(options, id), false); } private static DataCollectionEndpointArgs makeArgs(DataCollectionEndpointArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? DataCollectionEndpointArgs.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/v20210401:DataCollectionEndpoint").build()), Output.of(Alias.builder().type("azure-native:insights/v20210901preview:DataCollectionEndpoint").build()), Output.of(Alias.builder().type("azure-native:insights/v20220601:DataCollectionEndpoint").build()), Output.of(Alias.builder().type("azure-native:insights/v20230311:DataCollectionEndpoint").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 DataCollectionEndpoint get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new DataCollectionEndpoint(name, id, options); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy