MtlsCertificate

class MtlsCertificate : KotlinCustomResource

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>

Properties

Link copied to clipboard
val accountId: Output<String>

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>

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>

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

Link copied to clipboard
val expiresOn: Output<String>

Modifying this attribute will force creation of a new resource.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val issuer: Output<String>

Modifying this attribute will force creation of a new resource.

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

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

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

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

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val serialNumber: Output<String>

Modifying this attribute will force creation of a new resource.

Link copied to clipboard
val signature: Output<String>

Modifying this attribute will force creation of a new resource.

Link copied to clipboard
val uploadedOn: Output<String>

Modifying this attribute will force creation of a new resource.

Link copied to clipboard
val urn: Output<String>