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

com.pulumi.azure.monitoring.kotlin.DataCollectionEndpointArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 6.15.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.monitoring.kotlin

import com.pulumi.azure.monitoring.DataCollectionEndpointArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * Manages a Data Collection Endpoint.
 * ## Example Usage
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as azure from "@pulumi/azure";
 * const example = new azure.core.ResourceGroup("example", {
 *     name: "example-rg",
 *     location: "West Europe",
 * });
 * const exampleDataCollectionEndpoint = new azure.monitoring.DataCollectionEndpoint("example", {
 *     name: "example-mdce",
 *     resourceGroupName: example.name,
 *     location: example.location,
 *     kind: "Windows",
 *     publicNetworkAccessEnabled: true,
 *     description: "monitor_data_collection_endpoint example",
 *     tags: {
 *         foo: "bar",
 *     },
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_azure as azure
 * example = azure.core.ResourceGroup("example",
 *     name="example-rg",
 *     location="West Europe")
 * example_data_collection_endpoint = azure.monitoring.DataCollectionEndpoint("example",
 *     name="example-mdce",
 *     resource_group_name=example.name,
 *     location=example.location,
 *     kind="Windows",
 *     public_network_access_enabled=True,
 *     description="monitor_data_collection_endpoint example",
 *     tags={
 *         "foo": "bar",
 *     })
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Azure = Pulumi.Azure;
 * return await Deployment.RunAsync(() =>
 * {
 *     var example = new Azure.Core.ResourceGroup("example", new()
 *     {
 *         Name = "example-rg",
 *         Location = "West Europe",
 *     });
 *     var exampleDataCollectionEndpoint = new Azure.Monitoring.DataCollectionEndpoint("example", new()
 *     {
 *         Name = "example-mdce",
 *         ResourceGroupName = example.Name,
 *         Location = example.Location,
 *         Kind = "Windows",
 *         PublicNetworkAccessEnabled = true,
 *         Description = "monitor_data_collection_endpoint example",
 *         Tags =
 *         {
 *             { "foo", "bar" },
 *         },
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/monitoring"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
 * 			Name:     pulumi.String("example-rg"),
 * 			Location: pulumi.String("West Europe"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		_, err = monitoring.NewDataCollectionEndpoint(ctx, "example", &monitoring.DataCollectionEndpointArgs{
 * 			Name:                       pulumi.String("example-mdce"),
 * 			ResourceGroupName:          example.Name,
 * 			Location:                   example.Location,
 * 			Kind:                       pulumi.String("Windows"),
 * 			PublicNetworkAccessEnabled: pulumi.Bool(true),
 * 			Description:                pulumi.String("monitor_data_collection_endpoint example"),
 * 			Tags: pulumi.StringMap{
 * 				"foo": pulumi.String("bar"),
 * 			},
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		return nil
 * 	})
 * }
 * ```
 * ```java
 * package generated_program;
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azure.core.ResourceGroup;
 * import com.pulumi.azure.core.ResourceGroupArgs;
 * import com.pulumi.azure.monitoring.DataCollectionEndpoint;
 * import com.pulumi.azure.monitoring.DataCollectionEndpointArgs;
 * 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 example = new ResourceGroup("example", ResourceGroupArgs.builder()
 *             .name("example-rg")
 *             .location("West Europe")
 *             .build());
 *         var exampleDataCollectionEndpoint = new DataCollectionEndpoint("exampleDataCollectionEndpoint", DataCollectionEndpointArgs.builder()
 *             .name("example-mdce")
 *             .resourceGroupName(example.name())
 *             .location(example.location())
 *             .kind("Windows")
 *             .publicNetworkAccessEnabled(true)
 *             .description("monitor_data_collection_endpoint example")
 *             .tags(Map.of("foo", "bar"))
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   example:
 *     type: azure:core:ResourceGroup
 *     properties:
 *       name: example-rg
 *       location: West Europe
 *   exampleDataCollectionEndpoint:
 *     type: azure:monitoring:DataCollectionEndpoint
 *     name: example
 *     properties:
 *       name: example-mdce
 *       resourceGroupName: ${example.name}
 *       location: ${example.location}
 *       kind: Windows
 *       publicNetworkAccessEnabled: true
 *       description: monitor_data_collection_endpoint example
 *       tags:
 *         foo: bar
 * ```
 * 
 * ## Import
 * Data Collection Endpoints can be imported using the `resource id`, e.g.
 * ```sh
 * $ pulumi import azure:monitoring/dataCollectionEndpoint:DataCollectionEndpoint example /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/group1/providers/Microsoft.Insights/dataCollectionEndpoints/endpoint1
 * ```
 * @property description Specifies a description for the Data Collection Endpoint.
 * @property kind The kind of the Data Collection Endpoint. Possible values are `Linux` and `Windows`.
 * @property location The Azure Region where the Data Collection Endpoint should exist. Changing this forces a new Data Collection Endpoint to be created.
 * @property name The name which should be used for this Data Collection Endpoint. Changing this forces a new Data Collection Endpoint to be created.
 * @property publicNetworkAccessEnabled Whether network access from public internet to the Data Collection Endpoint are allowed. Possible values are `true` and `false`. Default to `true`.
 * @property resourceGroupName The name of the Resource Group where the Data Collection Endpoint should exist. Changing this forces a new Data Collection Endpoint to be created.
 * @property tags A mapping of tags which should be assigned to the Data Collection Endpoint.
 */
public data class DataCollectionEndpointArgs(
    public val description: Output? = null,
    public val kind: Output? = null,
    public val location: Output? = null,
    public val name: Output? = null,
    public val publicNetworkAccessEnabled: Output? = null,
    public val resourceGroupName: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.monitoring.DataCollectionEndpointArgs =
        com.pulumi.azure.monitoring.DataCollectionEndpointArgs.builder()
            .description(description?.applyValue({ args0 -> args0 }))
            .kind(kind?.applyValue({ args0 -> args0 }))
            .location(location?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .publicNetworkAccessEnabled(publicNetworkAccessEnabled?.applyValue({ args0 -> args0 }))
            .resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            ).build()
}

/**
 * Builder for [DataCollectionEndpointArgs].
 */
@PulumiTagMarker
public class DataCollectionEndpointArgsBuilder internal constructor() {
    private var description: Output? = null

    private var kind: Output? = null

    private var location: Output? = null

    private var name: Output? = null

    private var publicNetworkAccessEnabled: Output? = null

    private var resourceGroupName: Output? = null

    private var tags: Output>? = null

    /**
     * @param value Specifies a description for the Data Collection Endpoint.
     */
    @JvmName("wqoddpfybuvifnqj")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value The kind of the Data Collection Endpoint. Possible values are `Linux` and `Windows`.
     */
    @JvmName("tibtpvejyaasddyu")
    public suspend fun kind(`value`: Output) {
        this.kind = value
    }

    /**
     * @param value The Azure Region where the Data Collection Endpoint should exist. Changing this forces a new Data Collection Endpoint to be created.
     */
    @JvmName("onxnryrltveeqxid")
    public suspend fun location(`value`: Output) {
        this.location = value
    }

    /**
     * @param value The name which should be used for this Data Collection Endpoint. Changing this forces a new Data Collection Endpoint to be created.
     */
    @JvmName("frsxirtmjmotkcad")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value Whether network access from public internet to the Data Collection Endpoint are allowed. Possible values are `true` and `false`. Default to `true`.
     */
    @JvmName("aivghiqabswjnmhs")
    public suspend fun publicNetworkAccessEnabled(`value`: Output) {
        this.publicNetworkAccessEnabled = value
    }

    /**
     * @param value The name of the Resource Group where the Data Collection Endpoint should exist. Changing this forces a new Data Collection Endpoint to be created.
     */
    @JvmName("hwnwjqltbqttmpxx")
    public suspend fun resourceGroupName(`value`: Output) {
        this.resourceGroupName = value
    }

    /**
     * @param value A mapping of tags which should be assigned to the Data Collection Endpoint.
     */
    @JvmName("pmxycplmpcqvaftb")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    /**
     * @param value Specifies a description for the Data Collection Endpoint.
     */
    @JvmName("yqtwrhsjagutraei")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value The kind of the Data Collection Endpoint. Possible values are `Linux` and `Windows`.
     */
    @JvmName("hnqlslhspyscyled")
    public suspend fun kind(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.kind = mapped
    }

    /**
     * @param value The Azure Region where the Data Collection Endpoint should exist. Changing this forces a new Data Collection Endpoint to be created.
     */
    @JvmName("srcgkdxphbcotgcu")
    public suspend fun location(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.location = mapped
    }

    /**
     * @param value The name which should be used for this Data Collection Endpoint. Changing this forces a new Data Collection Endpoint to be created.
     */
    @JvmName("yuvdyyfpiwvvlgql")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value Whether network access from public internet to the Data Collection Endpoint are allowed. Possible values are `true` and `false`. Default to `true`.
     */
    @JvmName("dbvhwkroipujjwrv")
    public suspend fun publicNetworkAccessEnabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.publicNetworkAccessEnabled = mapped
    }

    /**
     * @param value The name of the Resource Group where the Data Collection Endpoint should exist. Changing this forces a new Data Collection Endpoint to be created.
     */
    @JvmName("wycgaocmeybxsenc")
    public suspend fun resourceGroupName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.resourceGroupName = mapped
    }

    /**
     * @param value A mapping of tags which should be assigned to the Data Collection Endpoint.
     */
    @JvmName("hmmwapgykmdmnnck")
    public suspend fun tags(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param values A mapping of tags which should be assigned to the Data Collection Endpoint.
     */
    @JvmName("hsliapmxldifilrh")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): DataCollectionEndpointArgs = DataCollectionEndpointArgs(
        description = description,
        kind = kind,
        location = location,
        name = name,
        publicNetworkAccessEnabled = publicNetworkAccessEnabled,
        resourceGroupName = resourceGroupName,
        tags = tags,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy