CertificateProfileArgs

data class CertificateProfileArgs(val accountName: Output<String>? = null, val identityValidationId: Output<String>? = null, val includeCity: Output<Boolean>? = null, val includeCountry: Output<Boolean>? = null, val includePostalCode: Output<Boolean>? = null, val includeState: Output<Boolean>? = null, val includeStreetAddress: Output<Boolean>? = null, val profileName: Output<String>? = null, val profileType: Output<Either<String, ProfileType>>? = null, val resourceGroupName: Output<String>? = null) : ConvertibleToJava<CertificateProfileArgs>

Certificate profile resource. Uses Azure REST API version 2024-09-30-preview. In version 2.x of the Azure Native provider, it used API version 2024-02-05-preview. Other available API versions: 2024-02-05-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native codesigning [ApiVersion]. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.

Example Usage

Create a certificate profile.

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var certificateProfile = new AzureNative.CodeSigning.CertificateProfile("certificateProfile", new()
{
AccountName = "MyAccount",
IdentityValidationId = "00000000-1234-5678-3333-444444444444",
IncludePostalCode = true,
IncludeStreetAddress = false,
ProfileName = "profileA",
ProfileType = AzureNative.CodeSigning.ProfileType.PublicTrust,
ResourceGroupName = "MyResourceGroup",
});
});
package main
import (
codesigning "github.com/pulumi/pulumi-azure-native-sdk/codesigning/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := codesigning.NewCertificateProfile(ctx, "certificateProfile", &codesigning.CertificateProfileArgs{
AccountName: pulumi.String("MyAccount"),
IdentityValidationId: pulumi.String("00000000-1234-5678-3333-444444444444"),
IncludePostalCode: pulumi.Bool(true),
IncludeStreetAddress: pulumi.Bool(false),
ProfileName: pulumi.String("profileA"),
ProfileType: pulumi.String(codesigning.ProfileTypePublicTrust),
ResourceGroupName: pulumi.String("MyResourceGroup"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.codesigning.CertificateProfile;
import com.pulumi.azurenative.codesigning.CertificateProfileArgs;
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 certificateProfile = new CertificateProfile("certificateProfile", CertificateProfileArgs.builder()
.accountName("MyAccount")
.identityValidationId("00000000-1234-5678-3333-444444444444")
.includePostalCode(true)
.includeStreetAddress(false)
.profileName("profileA")
.profileType("PublicTrust")
.resourceGroupName("MyResourceGroup")
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:codesigning:CertificateProfile profileA /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CodeSigning/codeSigningAccounts/{accountName}/certificateProfiles/{profileName}

Constructors

Link copied to clipboard
constructor(accountName: Output<String>? = null, identityValidationId: Output<String>? = null, includeCity: Output<Boolean>? = null, includeCountry: Output<Boolean>? = null, includePostalCode: Output<Boolean>? = null, includeState: Output<Boolean>? = null, includeStreetAddress: Output<Boolean>? = null, profileName: Output<String>? = null, profileType: Output<Either<String, ProfileType>>? = null, resourceGroupName: Output<String>? = null)

Properties

Link copied to clipboard
val accountName: Output<String>? = null

Trusted Signing account name.

Link copied to clipboard
val identityValidationId: Output<String>? = null

Identity validation id used for the certificate subject name.

Link copied to clipboard
val includeCity: Output<Boolean>? = null

Whether to include L in the certificate subject name. Applicable only for private trust, private trust ci profile types

Link copied to clipboard
val includeCountry: Output<Boolean>? = null

Whether to include C in the certificate subject name. Applicable only for private trust, private trust ci profile types

Link copied to clipboard
val includePostalCode: Output<Boolean>? = null

Whether to include PC in the certificate subject name.

Link copied to clipboard
val includeState: Output<Boolean>? = null

Whether to include S in the certificate subject name. Applicable only for private trust, private trust ci profile types

Link copied to clipboard
val includeStreetAddress: Output<Boolean>? = null

Whether to include STREET in the certificate subject name.

Link copied to clipboard
val profileName: Output<String>? = null

Certificate profile name.

Link copied to clipboard
val profileType: Output<Either<String, ProfileType>>? = null

Profile type of the certificate.

Link copied to clipboard
val resourceGroupName: Output<String>? = null

The name of the resource group. The name is case insensitive.

Functions

Link copied to clipboard
open override fun toJava(): CertificateProfileArgs