![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.m365securityandcompliance.kotlin.PrivateEndpointConnectionsAdtAPIArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-native-kotlin Show documentation
Show all versions of pulumi-azure-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.m365securityandcompliance.kotlin
import com.pulumi.azurenative.m365securityandcompliance.PrivateEndpointConnectionsAdtAPIArgs.builder
import com.pulumi.azurenative.m365securityandcompliance.kotlin.inputs.PrivateLinkServiceConnectionStateArgs
import com.pulumi.azurenative.m365securityandcompliance.kotlin.inputs.PrivateLinkServiceConnectionStateArgsBuilder
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
/**
* The Private Endpoint Connection resource.
* Azure REST API version: 2021-03-25-preview. Prior API version in Azure Native 1.x: 2021-03-25-preview.
* ## Example Usage
* ### PrivateEndpointConnection_CreateOrUpdate
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AzureNative = Pulumi.AzureNative;
* return await Deployment.RunAsync(() =>
* {
* var privateEndpointConnectionsAdtAPI = new AzureNative.M365SecurityAndCompliance.PrivateEndpointConnectionsAdtAPI("privateEndpointConnectionsAdtAPI", new()
* {
* PrivateEndpointConnectionName = "myConnection",
* PrivateLinkServiceConnectionState = new AzureNative.M365SecurityAndCompliance.Inputs.PrivateLinkServiceConnectionStateArgs
* {
* Description = "Auto-Approved",
* Status = AzureNative.M365SecurityAndCompliance.PrivateEndpointServiceConnectionStatus.Approved,
* },
* ResourceGroupName = "rgname",
* ResourceName = "service1",
* });
* });
* ```
* ```go
* package main
* import (
* m365securityandcompliance "github.com/pulumi/pulumi-azure-native-sdk/m365securityandcompliance/v2"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := m365securityandcompliance.NewPrivateEndpointConnectionsAdtAPI(ctx, "privateEndpointConnectionsAdtAPI", &m365securityandcompliance.PrivateEndpointConnectionsAdtAPIArgs{
* PrivateEndpointConnectionName: pulumi.String("myConnection"),
* PrivateLinkServiceConnectionState: &m365securityandcompliance.PrivateLinkServiceConnectionStateArgs{
* Description: pulumi.String("Auto-Approved"),
* Status: pulumi.String(m365securityandcompliance.PrivateEndpointServiceConnectionStatusApproved),
* },
* ResourceGroupName: pulumi.String("rgname"),
* ResourceName: pulumi.String("service1"),
* })
* 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.m365securityandcompliance.PrivateEndpointConnectionsAdtAPI;
* import com.pulumi.azurenative.m365securityandcompliance.PrivateEndpointConnectionsAdtAPIArgs;
* import com.pulumi.azurenative.m365securityandcompliance.inputs.PrivateLinkServiceConnectionStateArgs;
* 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 privateEndpointConnectionsAdtAPI = new PrivateEndpointConnectionsAdtAPI("privateEndpointConnectionsAdtAPI", PrivateEndpointConnectionsAdtAPIArgs.builder()
* .privateEndpointConnectionName("myConnection")
* .privateLinkServiceConnectionState(PrivateLinkServiceConnectionStateArgs.builder()
* .description("Auto-Approved")
* .status("Approved")
* .build())
* .resourceGroupName("rgname")
* .resourceName("service1")
* .build());
* }
* }
* ```
* ## Import
* An existing resource can be imported using its type token, name, and identifier, e.g.
* ```sh
* $ pulumi import azure-native:m365securityandcompliance:PrivateEndpointConnectionsAdtAPI myConnection /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.M365SecurityAndCompliance/privateLinkServicesForO365ManagementActivityAPI/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}
* ```
* @property privateEndpointConnectionName The name of the private endpoint connection associated with the Azure resource
* @property privateLinkServiceConnectionState A collection of information about the state of the connection between service consumer and provider.
* @property resourceGroupName The name of the resource group that contains the service instance.
* @property resourceName The name of the service instance.
*/
public data class PrivateEndpointConnectionsAdtAPIArgs(
public val privateEndpointConnectionName: Output? = null,
public val privateLinkServiceConnectionState: Output? =
null,
public val resourceGroupName: Output? = null,
public val resourceName: Output? = null,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.m365securityandcompliance.PrivateEndpointConnectionsAdtAPIArgs =
com.pulumi.azurenative.m365securityandcompliance.PrivateEndpointConnectionsAdtAPIArgs.builder()
.privateEndpointConnectionName(privateEndpointConnectionName?.applyValue({ args0 -> args0 }))
.privateLinkServiceConnectionState(
privateLinkServiceConnectionState?.applyValue({ args0 ->
args0.let({ args0 -> args0.toJava() })
}),
)
.resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
.resourceName(resourceName?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [PrivateEndpointConnectionsAdtAPIArgs].
*/
@PulumiTagMarker
public class PrivateEndpointConnectionsAdtAPIArgsBuilder internal constructor() {
private var privateEndpointConnectionName: Output? = null
private var privateLinkServiceConnectionState: Output? =
null
private var resourceGroupName: Output? = null
private var resourceName: Output? = null
/**
* @param value The name of the private endpoint connection associated with the Azure resource
*/
@JvmName("xikvcfsvegandfoa")
public suspend fun privateEndpointConnectionName(`value`: Output) {
this.privateEndpointConnectionName = value
}
/**
* @param value A collection of information about the state of the connection between service consumer and provider.
*/
@JvmName("ojbqxaydyrwqaang")
public suspend fun privateLinkServiceConnectionState(`value`: Output) {
this.privateLinkServiceConnectionState = value
}
/**
* @param value The name of the resource group that contains the service instance.
*/
@JvmName("tvodjrjgurkvcxdt")
public suspend fun resourceGroupName(`value`: Output) {
this.resourceGroupName = value
}
/**
* @param value The name of the service instance.
*/
@JvmName("wvugdofdkyhmpuqv")
public suspend fun resourceName(`value`: Output) {
this.resourceName = value
}
/**
* @param value The name of the private endpoint connection associated with the Azure resource
*/
@JvmName("bpfdnoqsjdcsrqfi")
public suspend fun privateEndpointConnectionName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.privateEndpointConnectionName = mapped
}
/**
* @param value A collection of information about the state of the connection between service consumer and provider.
*/
@JvmName("mofdieujgppvwgty")
public suspend fun privateLinkServiceConnectionState(`value`: PrivateLinkServiceConnectionStateArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.privateLinkServiceConnectionState = mapped
}
/**
* @param argument A collection of information about the state of the connection between service consumer and provider.
*/
@JvmName("adpudkvupchcqkcu")
public suspend fun privateLinkServiceConnectionState(argument: suspend PrivateLinkServiceConnectionStateArgsBuilder.() -> Unit) {
val toBeMapped = PrivateLinkServiceConnectionStateArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.privateLinkServiceConnectionState = mapped
}
/**
* @param value The name of the resource group that contains the service instance.
*/
@JvmName("uefollutllunaidn")
public suspend fun resourceGroupName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.resourceGroupName = mapped
}
/**
* @param value The name of the service instance.
*/
@JvmName("yvlokdfwgmjioyqk")
public suspend fun resourceName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.resourceName = mapped
}
internal fun build(): PrivateEndpointConnectionsAdtAPIArgs = PrivateEndpointConnectionsAdtAPIArgs(
privateEndpointConnectionName = privateEndpointConnectionName,
privateLinkServiceConnectionState = privateLinkServiceConnectionState,
resourceGroupName = resourceGroupName,
resourceName = resourceName,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy