All Downloads are FREE. Search and download functionalities are using the official Maven repository.
Please wait. This can take some minutes ...
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.
com.pulumi.azurenative.apimanagement.kotlin.WorkspaceCertificateArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.apimanagement.kotlin
import com.pulumi.azurenative.apimanagement.WorkspaceCertificateArgs.builder
import com.pulumi.azurenative.apimanagement.kotlin.inputs.KeyVaultContractCreatePropertiesArgs
import com.pulumi.azurenative.apimanagement.kotlin.inputs.KeyVaultContractCreatePropertiesArgsBuilder
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
/**
* Certificate details.
* Azure REST API version: 2023-09-01-preview.
* Other available API versions: 2024-05-01.
* ## Example Usage
* ### ApiManagementCreateWorkspaceCertificate
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AzureNative = Pulumi.AzureNative;
* return await Deployment.RunAsync(() =>
* {
* var workspaceCertificate = new AzureNative.ApiManagement.WorkspaceCertificate("workspaceCertificate", new()
* {
* CertificateId = "tempcert",
* Data = "****************Base 64 Encoded Certificate *******************************",
* Password = "****Certificate Password******",
* ResourceGroupName = "rg1",
* ServiceName = "apimService1",
* WorkspaceId = "wks1",
* });
* });
* ```
* ```go
* package main
* import (
* apimanagement "github.com/pulumi/pulumi-azure-native-sdk/apimanagement/v2"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := apimanagement.NewWorkspaceCertificate(ctx, "workspaceCertificate", &apimanagement.WorkspaceCertificateArgs{
* CertificateId: pulumi.String("tempcert"),
* Data: pulumi.String("****************Base 64 Encoded Certificate *******************************"),
* Password: pulumi.String("****Certificate Password******"),
* ResourceGroupName: pulumi.String("rg1"),
* ServiceName: pulumi.String("apimService1"),
* WorkspaceId: pulumi.String("wks1"),
* })
* 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.apimanagement.WorkspaceCertificate;
* import com.pulumi.azurenative.apimanagement.WorkspaceCertificateArgs;
* 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 workspaceCertificate = new WorkspaceCertificate("workspaceCertificate", WorkspaceCertificateArgs.builder()
* .certificateId("tempcert")
* .data("****************Base 64 Encoded Certificate *******************************")
* .password("****Certificate Password******")
* .resourceGroupName("rg1")
* .serviceName("apimService1")
* .workspaceId("wks1")
* .build());
* }
* }
* ```
* ### ApiManagementCreateWorkspaceCertificateWithKeyVault
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AzureNative = Pulumi.AzureNative;
* return await Deployment.RunAsync(() =>
* {
* var workspaceCertificate = new AzureNative.ApiManagement.WorkspaceCertificate("workspaceCertificate", new()
* {
* CertificateId = "templateCertkv",
* KeyVault = new AzureNative.ApiManagement.Inputs.KeyVaultContractCreatePropertiesArgs
* {
* IdentityClientId = "ceaa6b06-c00f-43ef-99ac-f53d1fe876a0",
* SecretIdentifier = "https://rpbvtkeyvaultintegration.vault-int.azure-int.net/secrets/msitestingCert",
* },
* ResourceGroupName = "rg1",
* ServiceName = "apimService1",
* WorkspaceId = "wks1",
* });
* });
* ```
* ```go
* package main
* import (
* apimanagement "github.com/pulumi/pulumi-azure-native-sdk/apimanagement/v2"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := apimanagement.NewWorkspaceCertificate(ctx, "workspaceCertificate", &apimanagement.WorkspaceCertificateArgs{
* CertificateId: pulumi.String("templateCertkv"),
* KeyVault: &apimanagement.KeyVaultContractCreatePropertiesArgs{
* IdentityClientId: pulumi.String("ceaa6b06-c00f-43ef-99ac-f53d1fe876a0"),
* SecretIdentifier: pulumi.String("https://rpbvtkeyvaultintegration.vault-int.azure-int.net/secrets/msitestingCert"),
* },
* ResourceGroupName: pulumi.String("rg1"),
* ServiceName: pulumi.String("apimService1"),
* WorkspaceId: pulumi.String("wks1"),
* })
* 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.apimanagement.WorkspaceCertificate;
* import com.pulumi.azurenative.apimanagement.WorkspaceCertificateArgs;
* import com.pulumi.azurenative.apimanagement.inputs.KeyVaultContractCreatePropertiesArgs;
* 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 workspaceCertificate = new WorkspaceCertificate("workspaceCertificate", WorkspaceCertificateArgs.builder()
* .certificateId("templateCertkv")
* .keyVault(KeyVaultContractCreatePropertiesArgs.builder()
* .identityClientId("ceaa6b06-c00f-43ef-99ac-f53d1fe876a0")
* .secretIdentifier("https://rpbvtkeyvaultintegration.vault-int.azure-int.net/secrets/msitestingCert")
* .build())
* .resourceGroupName("rg1")
* .serviceName("apimService1")
* .workspaceId("wks1")
* .build());
* }
* }
* ```
* ## Import
* An existing resource can be imported using its type token, name, and identifier, e.g.
* ```sh
* $ pulumi import azure-native:apimanagement:WorkspaceCertificate templateCertkv /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/certificates/{certificateId}
* ```
* @property certificateId Identifier of the certificate entity. Must be unique in the current API Management service instance.
* @property data Base 64 encoded certificate using the application/x-pkcs12 representation.
* @property keyVault KeyVault location details of the certificate.
* @property password Password for the Certificate
* @property resourceGroupName The name of the resource group. The name is case insensitive.
* @property serviceName The name of the API Management service.
* @property workspaceId Workspace identifier. Must be unique in the current API Management service instance.
*/
public data class WorkspaceCertificateArgs(
public val certificateId: Output? = null,
public val `data`: Output? = null,
public val keyVault: Output? = null,
public val password: Output? = null,
public val resourceGroupName: Output? = null,
public val serviceName: Output? = null,
public val workspaceId: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.apimanagement.WorkspaceCertificateArgs =
com.pulumi.azurenative.apimanagement.WorkspaceCertificateArgs.builder()
.certificateId(certificateId?.applyValue({ args0 -> args0 }))
.`data`(`data`?.applyValue({ args0 -> args0 }))
.keyVault(keyVault?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.password(password?.applyValue({ args0 -> args0 }))
.resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
.serviceName(serviceName?.applyValue({ args0 -> args0 }))
.workspaceId(workspaceId?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [WorkspaceCertificateArgs].
*/
@PulumiTagMarker
public class WorkspaceCertificateArgsBuilder internal constructor() {
private var certificateId: Output? = null
private var `data`: Output? = null
private var keyVault: Output? = null
private var password: Output? = null
private var resourceGroupName: Output? = null
private var serviceName: Output? = null
private var workspaceId: Output? = null
/**
* @param value Identifier of the certificate entity. Must be unique in the current API Management service instance.
*/
@JvmName("vxopqlelifmovgky")
public suspend fun certificateId(`value`: Output) {
this.certificateId = value
}
/**
* @param value Base 64 encoded certificate using the application/x-pkcs12 representation.
*/
@JvmName("ctkggjfycdddxele")
public suspend fun `data`(`value`: Output) {
this.`data` = value
}
/**
* @param value KeyVault location details of the certificate.
*/
@JvmName("ciybqteqqnqegsgd")
public suspend fun keyVault(`value`: Output) {
this.keyVault = value
}
/**
* @param value Password for the Certificate
*/
@JvmName("eftmgxcjicdlohyv")
public suspend fun password(`value`: Output) {
this.password = value
}
/**
* @param value The name of the resource group. The name is case insensitive.
*/
@JvmName("mocfyafwojikfmcv")
public suspend fun resourceGroupName(`value`: Output) {
this.resourceGroupName = value
}
/**
* @param value The name of the API Management service.
*/
@JvmName("ocdoqobdhxrmwkbs")
public suspend fun serviceName(`value`: Output) {
this.serviceName = value
}
/**
* @param value Workspace identifier. Must be unique in the current API Management service instance.
*/
@JvmName("jbxthuopqltwnyis")
public suspend fun workspaceId(`value`: Output) {
this.workspaceId = value
}
/**
* @param value Identifier of the certificate entity. Must be unique in the current API Management service instance.
*/
@JvmName("oubajverdkhghdwb")
public suspend fun certificateId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.certificateId = mapped
}
/**
* @param value Base 64 encoded certificate using the application/x-pkcs12 representation.
*/
@JvmName("kepibhexduuwymoc")
public suspend fun `data`(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.`data` = mapped
}
/**
* @param value KeyVault location details of the certificate.
*/
@JvmName("cyaogmecbplcluap")
public suspend fun keyVault(`value`: KeyVaultContractCreatePropertiesArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.keyVault = mapped
}
/**
* @param argument KeyVault location details of the certificate.
*/
@JvmName("egprmtnncfakyexi")
public suspend fun keyVault(argument: suspend KeyVaultContractCreatePropertiesArgsBuilder.() -> Unit) {
val toBeMapped = KeyVaultContractCreatePropertiesArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.keyVault = mapped
}
/**
* @param value Password for the Certificate
*/
@JvmName("oquvkjxfvakgngjb")
public suspend fun password(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.password = mapped
}
/**
* @param value The name of the resource group. The name is case insensitive.
*/
@JvmName("xkwrqqavgolqowni")
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 API Management service.
*/
@JvmName("jkqyapeggcqthmca")
public suspend fun serviceName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.serviceName = mapped
}
/**
* @param value Workspace identifier. Must be unique in the current API Management service instance.
*/
@JvmName("gucoofkpqseuoeyl")
public suspend fun workspaceId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.workspaceId = mapped
}
internal fun build(): WorkspaceCertificateArgs = WorkspaceCertificateArgs(
certificateId = certificateId,
`data` = `data`,
keyVault = keyVault,
password = password,
resourceGroupName = resourceGroupName,
serviceName = serviceName,
workspaceId = workspaceId,
)
}