OriginCaCertificateArgs

data class OriginCaCertificateArgs(val csr: Output<String>? = null, val hostnames: Output<List<String>>? = null, val minDaysForRenewal: Output<Int>? = null, val requestType: Output<String>? = null, val requestedValidity: Output<Int>? = null) : ConvertibleToJava<OriginCaCertificateArgs>

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tls.PrivateKey;
import com.pulumi.tls.PrivateKeyArgs;
import com.pulumi.tls.CertRequest;
import com.pulumi.tls.CertRequestArgs;
import com.pulumi.tls.inputs.CertRequestSubjectArgs;
import com.pulumi.cloudflare.OriginCaCertificate;
import com.pulumi.cloudflare.OriginCaCertificateArgs;
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 examplePrivateKey = new PrivateKey("examplePrivateKey", PrivateKeyArgs.builder()
.algorithm("RSA")
.build());
var exampleCertRequest = new CertRequest("exampleCertRequest", CertRequestArgs.builder()
.keyAlgorithm(examplePrivateKey.algorithm())
.privateKeyPem(examplePrivateKey.privateKeyPem())
.subjects(CertRequestSubjectArgs.builder()
.commonName("")
.organization("Terraform Test")
.build())
.build());
var exampleOriginCaCertificate = new OriginCaCertificate("exampleOriginCaCertificate", OriginCaCertificateArgs.builder()
.csr(exampleCertRequest.certRequestPem())
.hostnames("example.com")
.requestType("origin-rsa")
.requestedValidity(7)
.build());
}
}

Import

$ pulumi import cloudflare:index/originCaCertificate:OriginCaCertificate example <certificate_id>

Constructors

Link copied to clipboard
constructor(csr: Output<String>? = null, hostnames: Output<List<String>>? = null, minDaysForRenewal: Output<Int>? = null, requestType: Output<String>? = null, requestedValidity: Output<Int>? = null)

Properties

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

The Certificate Signing Request. Must be newline-encoded. Modifying this attribute will force creation of a new resource.

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

A list of hostnames or wildcard names bound to the certificate. Modifying this attribute will force creation of a new resource.

Link copied to clipboard
val minDaysForRenewal: Output<Int>? = null

Number of days prior to the expiry to trigger a renewal of the certificate if a Terraform operation is run.

Link copied to clipboard
val requestedValidity: Output<Int>? = null

The number of days for which the certificate should be valid. Available values: 7, 30, 90, 365, 730, 1095, 5475. Modifying this attribute will force creation of a new resource.

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

The signature type desired on the certificate. Available values: origin-rsa, origin-ecc, keyless-certificate. Modifying this attribute will force creation of a new resource.

Functions

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