AccessMutualTlsCertificateArgs

data class AccessMutualTlsCertificateArgs(val accountId: Output<String>? = null, val associatedHostnames: Output<List<String>>? = null, val certificate: Output<String>? = null, val name: Output<String>? = null, val zoneId: Output<String>? = null) : ConvertibleToJava<AccessMutualTlsCertificateArgs>

Provides a Cloudflare Access Mutual TLS Certificate resource. Mutual TLS authentication ensures that the traffic is secure and trusted in both directions between a client and server and can be used with Access to only allows requests from devices with a corresponding client certificate.

It's required that an account_id or zone_id is provided and in most cases using either is fine. However, if you're using a scoped access token, you must provide the argument that matches the token's scope. For example, an access token that is scoped to the "example.com" zone needs to use the zone_id argument.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudflare.AccessMutualTlsCertificate;
import com.pulumi.cloudflare.AccessMutualTlsCertificateArgs;
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 myCert = new AccessMutualTlsCertificate("myCert", AccessMutualTlsCertificateArgs.builder()
.zoneId("0da42c8d2132a9ddaf714f9e7c920711")
.name("My Root Cert")
.certificate(var_.ca_pem())
.associatedHostnames("staging.example.com")
.build());
}
}

Import

Account level import.

$ pulumi import cloudflare:index/accessMutualTlsCertificate:AccessMutualTlsCertificate example account/<account_id>/<mutual_tls_certificate_id>

Zone level import.

$ pulumi import cloudflare:index/accessMutualTlsCertificate:AccessMutualTlsCertificate example zone/<zone_id>/<mutual_tls_certificate_id>

Constructors

Link copied to clipboard
constructor(accountId: Output<String>? = null, associatedHostnames: Output<List<String>>? = null, certificate: Output<String>? = null, name: Output<String>? = null, zoneId: Output<String>? = null)

Properties

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

The account identifier to target for the resource. Conflicts with zone_id.

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

The hostnames that will be prompted for this certificate.

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

The Root CA for your certificates.

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

The name of the certificate.

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

The zone identifier to target for the resource. Conflicts with account_id.

Functions

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