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

import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
// Per-Zone Authenticated Origin Pulls certificate
const myPerZoneAopCert = new cloudflare.AuthenticatedOriginPullsCertificate("my_per_zone_aop_cert", {
zoneId: "0da42c8d2132a9ddaf714f9e7c920711",
certificate: "-----INSERT CERTIFICATE-----",
privateKey: "-----INSERT PRIVATE KEY-----",
type: "per-zone",
});
// Per-Hostname Authenticated Origin Pulls certificate
const myPerHostnameAopCert = new cloudflare.AuthenticatedOriginPullsCertificate("my_per_hostname_aop_cert", {
zoneId: "0da42c8d2132a9ddaf714f9e7c920711",
certificate: "-----INSERT CERTIFICATE-----",
privateKey: "-----INSERT PRIVATE KEY-----",
type: "per-hostname",
});
import pulumi
import pulumi_cloudflare as cloudflare
# Per-Zone Authenticated Origin Pulls certificate
my_per_zone_aop_cert = cloudflare.AuthenticatedOriginPullsCertificate("my_per_zone_aop_cert",
zone_id="0da42c8d2132a9ddaf714f9e7c920711",
certificate="-----INSERT CERTIFICATE-----",
private_key="-----INSERT PRIVATE KEY-----",
type="per-zone")
# Per-Hostname Authenticated Origin Pulls certificate
my_per_hostname_aop_cert = cloudflare.AuthenticatedOriginPullsCertificate("my_per_hostname_aop_cert",
zone_id="0da42c8d2132a9ddaf714f9e7c920711",
certificate="-----INSERT CERTIFICATE-----",
private_key="-----INSERT PRIVATE KEY-----",
type="per-hostname")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Cloudflare = Pulumi.Cloudflare;
return await Deployment.RunAsync(() =>
{
// Per-Zone Authenticated Origin Pulls certificate
var myPerZoneAopCert = new Cloudflare.AuthenticatedOriginPullsCertificate("my_per_zone_aop_cert", new()
{
ZoneId = "0da42c8d2132a9ddaf714f9e7c920711",
Certificate = "-----INSERT CERTIFICATE-----",
PrivateKey = "-----INSERT PRIVATE KEY-----",
Type = "per-zone",
});
// Per-Hostname Authenticated Origin Pulls certificate
var myPerHostnameAopCert = new Cloudflare.AuthenticatedOriginPullsCertificate("my_per_hostname_aop_cert", new()
{
ZoneId = "0da42c8d2132a9ddaf714f9e7c920711",
Certificate = "-----INSERT CERTIFICATE-----",
PrivateKey = "-----INSERT PRIVATE KEY-----",
Type = "per-hostname",
});
});
package main
import (
"github.com/pulumi/pulumi-cloudflare/sdk/v5/go/cloudflare"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// Per-Zone Authenticated Origin Pulls certificate
_, err := cloudflare.NewAuthenticatedOriginPullsCertificate(ctx, "my_per_zone_aop_cert", &cloudflare.AuthenticatedOriginPullsCertificateArgs{
ZoneId: pulumi.String("0da42c8d2132a9ddaf714f9e7c920711"),
Certificate: pulumi.String("-----INSERT CERTIFICATE-----"),
PrivateKey: pulumi.String("-----INSERT PRIVATE KEY-----"),
Type: pulumi.String("per-zone"),
})
if err != nil {
return err
}
// Per-Hostname Authenticated Origin Pulls certificate
_, err = cloudflare.NewAuthenticatedOriginPullsCertificate(ctx, "my_per_hostname_aop_cert", &cloudflare.AuthenticatedOriginPullsCertificateArgs{
ZoneId: pulumi.String("0da42c8d2132a9ddaf714f9e7c920711"),
Certificate: pulumi.String("-----INSERT CERTIFICATE-----"),
PrivateKey: pulumi.String("-----INSERT PRIVATE KEY-----"),
Type: pulumi.String("per-hostname"),
})
if err != nil {
return err
}
return nil
})
}
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) {
// Per-Zone Authenticated Origin Pulls certificate
var myPerZoneAopCert = new AuthenticatedOriginPullsCertificate("myPerZoneAopCert", AuthenticatedOriginPullsCertificateArgs.builder()
.zoneId("0da42c8d2132a9ddaf714f9e7c920711")
.certificate("-----INSERT CERTIFICATE-----")
.privateKey("-----INSERT PRIVATE KEY-----")
.type("per-zone")
.build());
// Per-Hostname Authenticated Origin Pulls certificate
var myPerHostnameAopCert = new AuthenticatedOriginPullsCertificate("myPerHostnameAopCert", AuthenticatedOriginPullsCertificateArgs.builder()
.zoneId("0da42c8d2132a9ddaf714f9e7c920711")
.certificate("-----INSERT CERTIFICATE-----")
.privateKey("-----INSERT PRIVATE KEY-----")
.type("per-hostname")
.build());
}
}
resources:
# Per-Zone Authenticated Origin Pulls certificate
myPerZoneAopCert:
type: cloudflare:AuthenticatedOriginPullsCertificate
name: my_per_zone_aop_cert
properties:
zoneId: 0da42c8d2132a9ddaf714f9e7c920711
certificate: '-----INSERT CERTIFICATE-----'
privateKey: '-----INSERT PRIVATE KEY-----'
type: per-zone
# Per-Hostname Authenticated Origin Pulls certificate
myPerHostnameAopCert:
type: cloudflare:AuthenticatedOriginPullsCertificate
name: my_per_hostname_aop_cert
properties:
zoneId: 0da42c8d2132a9ddaf714f9e7c920711
certificate: '-----INSERT CERTIFICATE-----'
privateKey: '-----INSERT PRIVATE KEY-----'
type: per-hostname

Import

$ pulumi import cloudflare:index/authenticatedOriginPullsCertificate:AuthenticatedOriginPullsCertificate example <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