
com.pulumi.azurenative.app.kotlin.ManagedCertificateArgs.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.app.kotlin
import com.pulumi.azurenative.app.ManagedCertificateArgs.builder
import com.pulumi.azurenative.app.kotlin.inputs.ManagedCertificatePropertiesArgs
import com.pulumi.azurenative.app.kotlin.inputs.ManagedCertificatePropertiesArgsBuilder
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.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.Map
import kotlin.jvm.JvmName
/**
* Managed certificates used for Custom Domain bindings of Container Apps in a Managed Environment
* Azure REST API version: 2023-04-01-preview.
* Other available API versions: 2023-05-01, 2023-05-02-preview, 2023-08-01-preview, 2023-11-02-preview, 2024-02-02-preview, 2024-03-01.
* ## Example Usage
* ### Create or Update Certificate
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AzureNative = Pulumi.AzureNative;
* return await Deployment.RunAsync(() =>
* {
* var managedCertificate = new AzureNative.App.ManagedCertificate("managedCertificate", new()
* {
* EnvironmentName = "testcontainerenv",
* Location = "East US",
* ManagedCertificateName = "certificate-firendly-name",
* Properties = new AzureNative.App.Inputs.ManagedCertificatePropertiesArgs
* {
* DomainControlValidation = AzureNative.App.ManagedCertificateDomainControlValidation.CNAME,
* SubjectName = "my-subject-name.company.country.net",
* },
* ResourceGroupName = "examplerg",
* });
* });
* ```
* ```go
* package main
* import (
* app "github.com/pulumi/pulumi-azure-native-sdk/app/v2"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := app.NewManagedCertificate(ctx, "managedCertificate", &app.ManagedCertificateArgs{
* EnvironmentName: pulumi.String("testcontainerenv"),
* Location: pulumi.String("East US"),
* ManagedCertificateName: pulumi.String("certificate-firendly-name"),
* Properties: &app.ManagedCertificatePropertiesArgs{
* DomainControlValidation: pulumi.String(app.ManagedCertificateDomainControlValidationCNAME),
* SubjectName: pulumi.String("my-subject-name.company.country.net"),
* },
* ResourceGroupName: pulumi.String("examplerg"),
* })
* 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.app.ManagedCertificate;
* import com.pulumi.azurenative.app.ManagedCertificateArgs;
* import com.pulumi.azurenative.app.inputs.ManagedCertificatePropertiesArgs;
* 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 managedCertificate = new ManagedCertificate("managedCertificate", ManagedCertificateArgs.builder()
* .environmentName("testcontainerenv")
* .location("East US")
* .managedCertificateName("certificate-firendly-name")
* .properties(ManagedCertificatePropertiesArgs.builder()
* .domainControlValidation("CNAME")
* .subjectName("my-subject-name.company.country.net")
* .build())
* .resourceGroupName("examplerg")
* .build());
* }
* }
* ```
* ## Import
* An existing resource can be imported using its type token, name, and identifier, e.g.
* ```sh
* $ pulumi import azure-native:app:ManagedCertificate myresource1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/managedCertificates/{managedCertificateName}
* ```
* @property environmentName Name of the Managed Environment.
* @property location The geo-location where the resource lives
* @property managedCertificateName Name of the Managed Certificate.
* @property properties Certificate resource specific properties
* @property resourceGroupName The name of the resource group. The name is case insensitive.
* @property tags Resource tags.
*/
public data class ManagedCertificateArgs(
public val environmentName: Output? = null,
public val location: Output? = null,
public val managedCertificateName: Output? = null,
public val properties: Output? = null,
public val resourceGroupName: Output? = null,
public val tags: Output
© 2015 - 2025 Weber Informatics LLC | Privacy Policy