AuthenticatedOriginPullsCertificateArgs

data class AuthenticatedOriginPullsCertificateArgs(val certificate: Output<String>? = null, val privateKey: Output<String>? = null, val type: Output<String>? = null, val zoneId: Output<String>? = null) : ConvertibleToJava<AuthenticatedOriginPullsCertificateArgs>

Provides a Cloudflare Authenticated Origin Pulls certificate resource. An uploaded client certificate is required to use Per-Zone or Per-Hostname Authenticated Origin Pulls.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudflare.AuthenticatedOriginPullsCertificate;
import com.pulumi.cloudflare.AuthenticatedOriginPullsCertificateArgs;
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 myPerZoneAopCert = new AuthenticatedOriginPullsCertificate("myPerZoneAopCert", AuthenticatedOriginPullsCertificateArgs.builder()
.certificate("-----INSERT CERTIFICATE-----")
.privateKey("-----INSERT PRIVATE KEY-----")
.type("per-zone")
.zoneId("0da42c8d2132a9ddaf714f9e7c920711")
.build());
var myPerHostnameAopCert = new AuthenticatedOriginPullsCertificate("myPerHostnameAopCert", AuthenticatedOriginPullsCertificateArgs.builder()
.certificate("-----INSERT CERTIFICATE-----")
.privateKey("-----INSERT PRIVATE KEY-----")
.type("per-hostname")
.zoneId("0da42c8d2132a9ddaf714f9e7c920711")
.build());
}
}

Import

$ pulumi import cloudflare:index/authenticatedOriginPullsCertificate:AuthenticatedOriginPullsCertificate 2458ce5a-0c35-4c7f-82c7-8e9487d3ff60 <zone_id>/<certificate_type>/<certificate_id>

Constructors

Link copied to clipboard
constructor(certificate: Output<String>? = null, privateKey: Output<String>? = null, type: Output<String>? = null, zoneId: Output<String>? = null)

Properties

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

The public client certificate. Modifying this attribute will force creation of a new resource.

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

The private key of the client certificate. Modifying this attribute will force creation of a new resource.

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

The form of Authenticated Origin Pulls to upload the certificate to. Available values: per-zone, per-hostname. Modifying this attribute will force creation of a new resource.

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

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

Functions

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