Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.securityinsights.kotlin
import com.pulumi.azurenative.securityinsights.AATPDataConnectorArgs.builder
import com.pulumi.azurenative.securityinsights.kotlin.inputs.AlertsDataTypeOfDataConnectorArgs
import com.pulumi.azurenative.securityinsights.kotlin.inputs.AlertsDataTypeOfDataConnectorArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
* Represents AATP (Azure Advanced Threat Protection) data connector.
* Azure REST API version: 2023-02-01. Prior API version in Azure Native 1.x: 2020-01-01.
* ## Example Usage
* ### Creates or updates an Office365 data connector.
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AzureNative = Pulumi.AzureNative;
* return await Deployment.RunAsync(() =>
* {
* var aatpDataConnector = new AzureNative.SecurityInsights.AATPDataConnector("aatpDataConnector", new()
* {
* DataConnectorId = "73e01a99-5cd7-4139-a149-9f2736ff2ab5",
* ResourceGroupName = "myRg",
* WorkspaceName = "myWorkspace",
* });
* });
* ```
* ```go
* package main
* import (
* securityinsights "github.com/pulumi/pulumi-azure-native-sdk/securityinsights/v2"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := securityinsights.NewAATPDataConnector(ctx, "aatpDataConnector", &securityinsights.AATPDataConnectorArgs{
* DataConnectorId: pulumi.String("73e01a99-5cd7-4139-a149-9f2736ff2ab5"),
* ResourceGroupName: pulumi.String("myRg"),
* WorkspaceName: pulumi.String("myWorkspace"),
* })
* 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.azurenative.securityinsights.AATPDataConnector;
* import com.pulumi.azurenative.securityinsights.AATPDataConnectorArgs;
* 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 aatpDataConnector = new AATPDataConnector("aatpDataConnector", AATPDataConnectorArgs.builder()
* .dataConnectorId("73e01a99-5cd7-4139-a149-9f2736ff2ab5")
* .resourceGroupName("myRg")
* .workspaceName("myWorkspace")
* .build());
* }
* }
* ```
* ### Creates or updates an Threat Intelligence Platform data connector.
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AzureNative = Pulumi.AzureNative;
* return await Deployment.RunAsync(() =>
* {
* var aatpDataConnector = new AzureNative.SecurityInsights.AATPDataConnector("aatpDataConnector", new()
* {
* DataConnectorId = "73e01a99-5cd7-4139-a149-9f2736ff2ab5",
* ResourceGroupName = "myRg",
* WorkspaceName = "myWorkspace",
* });
* });
* ```
* ```go
* package main
* import (
* securityinsights "github.com/pulumi/pulumi-azure-native-sdk/securityinsights/v2"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := securityinsights.NewAATPDataConnector(ctx, "aatpDataConnector", &securityinsights.AATPDataConnectorArgs{
* DataConnectorId: pulumi.String("73e01a99-5cd7-4139-a149-9f2736ff2ab5"),
* ResourceGroupName: pulumi.String("myRg"),
* WorkspaceName: pulumi.String("myWorkspace"),
* })
* 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.azurenative.securityinsights.AATPDataConnector;
* import com.pulumi.azurenative.securityinsights.AATPDataConnectorArgs;
* 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 aatpDataConnector = new AATPDataConnector("aatpDataConnector", AATPDataConnectorArgs.builder()
* .dataConnectorId("73e01a99-5cd7-4139-a149-9f2736ff2ab5")
* .resourceGroupName("myRg")
* .workspaceName("myWorkspace")
* .build());
* }
* }
* ```
* ## Import
* An existing resource can be imported using its type token, name, and identifier, e.g.
* ```sh
* $ pulumi import azure-native:securityinsights:AATPDataConnector 73e01a99-5cd7-4139-a149-9f2736ff2ab5 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/dataConnectors/{dataConnectorId}
* ```
* @property dataConnectorId Connector ID
* @property dataTypes The available data types for the connector.
* @property kind The kind of the data connector
* Expected value is 'AzureAdvancedThreatProtection'.
* @property resourceGroupName The name of the resource group. The name is case insensitive.
* @property tenantId The tenant id to connect to, and get the data from.
* @property workspaceName The name of the workspace.
*/
public data class AATPDataConnectorArgs(
public val dataConnectorId: Output? = null,
public val dataTypes: Output? = null,
public val kind: Output? = null,
public val resourceGroupName: Output? = null,
public val tenantId: Output? = null,
public val workspaceName: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.securityinsights.AATPDataConnectorArgs =
com.pulumi.azurenative.securityinsights.AATPDataConnectorArgs.builder()
.dataConnectorId(dataConnectorId?.applyValue({ args0 -> args0 }))
.dataTypes(dataTypes?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.kind(kind?.applyValue({ args0 -> args0 }))
.resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
.tenantId(tenantId?.applyValue({ args0 -> args0 }))
.workspaceName(workspaceName?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [AATPDataConnectorArgs].
*/
@PulumiTagMarker
public class AATPDataConnectorArgsBuilder internal constructor() {
private var dataConnectorId: Output? = null
private var dataTypes: Output? = null
private var kind: Output? = null
private var resourceGroupName: Output? = null
private var tenantId: Output? = null
private var workspaceName: Output? = null
/**
* @param value Connector ID
*/
@JvmName("iinvbgxaemjtltir")
public suspend fun dataConnectorId(`value`: Output) {
this.dataConnectorId = value
}
/**
* @param value The available data types for the connector.
*/
@JvmName("rwbpndqfglgkpwmn")
public suspend fun dataTypes(`value`: Output) {
this.dataTypes = value
}
/**
* @param value The kind of the data connector
* Expected value is 'AzureAdvancedThreatProtection'.
*/
@JvmName("thbtknpciqppegvt")
public suspend fun kind(`value`: Output) {
this.kind = value
}
/**
* @param value The name of the resource group. The name is case insensitive.
*/
@JvmName("hpcigexvutdlngyx")
public suspend fun resourceGroupName(`value`: Output) {
this.resourceGroupName = value
}
/**
* @param value The tenant id to connect to, and get the data from.
*/
@JvmName("ckjjpcmswhhkdufk")
public suspend fun tenantId(`value`: Output) {
this.tenantId = value
}
/**
* @param value The name of the workspace.
*/
@JvmName("hdlcjlvstvmokdsv")
public suspend fun workspaceName(`value`: Output) {
this.workspaceName = value
}
/**
* @param value Connector ID
*/
@JvmName("jhporqrbpluitpvf")
public suspend fun dataConnectorId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.dataConnectorId = mapped
}
/**
* @param value The available data types for the connector.
*/
@JvmName("nqnftydexycoviwh")
public suspend fun dataTypes(`value`: AlertsDataTypeOfDataConnectorArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.dataTypes = mapped
}
/**
* @param argument The available data types for the connector.
*/
@JvmName("dgooapnnupwivncr")
public suspend fun dataTypes(argument: suspend AlertsDataTypeOfDataConnectorArgsBuilder.() -> Unit) {
val toBeMapped = AlertsDataTypeOfDataConnectorArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.dataTypes = mapped
}
/**
* @param value The kind of the data connector
* Expected value is 'AzureAdvancedThreatProtection'.
*/
@JvmName("urqaoedlbkwqbgty")
public suspend fun kind(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.kind = mapped
}
/**
* @param value The name of the resource group. The name is case insensitive.
*/
@JvmName("sogtsncjudnwkxoa")
public suspend fun resourceGroupName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.resourceGroupName = mapped
}
/**
* @param value The tenant id to connect to, and get the data from.
*/
@JvmName("ugtgxbofxtfbkynk")
public suspend fun tenantId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.tenantId = mapped
}
/**
* @param value The name of the workspace.
*/
@JvmName("erbtypnwgihcktbi")
public suspend fun workspaceName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.workspaceName = mapped
}
internal fun build(): AATPDataConnectorArgs = AATPDataConnectorArgs(
dataConnectorId = dataConnectorId,
dataTypes = dataTypes,
kind = kind,
resourceGroupName = resourceGroupName,
tenantId = tenantId,
workspaceName = workspaceName,
)
}