MtlsCertificateArgs

data class MtlsCertificateArgs(val accountId: Output<String>? = null, val ca: Output<Boolean>? = null, val certificates: Output<String>? = null, val name: Output<String>? = null, val privateKey: Output<String>? = null) : ConvertibleToJava<MtlsCertificateArgs>

Provides a Cloudflare mTLS certificate resource. These certificates may be used with mTLS enabled Cloudflare services.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudflare.MtlsCertificate;
import com.pulumi.cloudflare.MtlsCertificateArgs;
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 example = new MtlsCertificate("example", MtlsCertificateArgs.builder()
.accountId("f037e56e89293a057740de681ac9abbe")
.ca(true)
.certificates("""
-----BEGIN CERTIFICATE-----
MIIDmDCCAoCgAwIBAgIUKTOAZNj...i4JhqeoTewsxndhDDE
-----END CERTIFICATE-----
""")
.name("example")
.privateKey("""
-----BEGIN PRIVATE KEY-----
MIIEvQIBADANBgkqhkiG9w0BAQE...1IS3EnQRrz6WMYA=
-----END PRIVATE KEY-----
""")
.build());
}
}

Import

$ pulumi import cloudflare:index/mtlsCertificate:MtlsCertificate example <account_id>/<mtls_certificate_id>

Constructors

Link copied to clipboard
constructor(accountId: Output<String>? = null, ca: Output<Boolean>? = null, certificates: Output<String>? = null, name: Output<String>? = null, privateKey: Output<String>? = null)

Properties

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

The account identifier to target for the resource. Modifying this attribute will force creation of a new resource.

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

Whether this is a CA or leaf certificate. Modifying this attribute will force creation of a new resource.

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

Certificate you intend to use with mTLS-enabled services. Modifying this attribute will force creation of a new resource.

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

Optional unique name for the certificate. Modifying this attribute will force creation of a new resource.

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

The certificate's private key. Modifying this attribute will force creation of a new resource.

Functions

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