AuthenticatedOriginPulls

class AuthenticatedOriginPulls : KotlinCustomResource

Provides a Cloudflare Authenticated Origin Pulls resource. A cloudflare.AuthenticatedOriginPulls resource 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.AuthenticatedOriginPulls;
import com.pulumi.cloudflare.AuthenticatedOriginPullsArgs;
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 myAop = new AuthenticatedOriginPulls("myAop", AuthenticatedOriginPullsArgs.builder()
.zoneId("0da42c8d2132a9ddaf714f9e7c920711")
.enabled(true)
.build());
var myPerZoneAopCert = new AuthenticatedOriginPullsCertificate("myPerZoneAopCert", AuthenticatedOriginPullsCertificateArgs.builder()
.zoneId("0da42c8d2132a9ddaf714f9e7c920711")
.certificate("-----INSERT CERTIFICATE-----")
.privateKey("-----INSERT PRIVATE KEY-----")
.type("per-zone")
.build());
var myPerZoneAop = new AuthenticatedOriginPulls("myPerZoneAop", AuthenticatedOriginPullsArgs.builder()
.zoneId("0da42c8d2132a9ddaf714f9e7c920711")
.authenticatedOriginPullsCertificate(myPerZoneAopCert.id())
.enabled(true)
.build());
var myPerHostnameAopCert = new AuthenticatedOriginPullsCertificate("myPerHostnameAopCert", AuthenticatedOriginPullsCertificateArgs.builder()
.zoneId("0da42c8d2132a9ddaf714f9e7c920711")
.certificate("-----INSERT CERTIFICATE-----")
.privateKey("-----INSERT PRIVATE KEY-----")
.type("per-hostname")
.build());
var myPerHostnameAop = new AuthenticatedOriginPulls("myPerHostnameAop", AuthenticatedOriginPullsArgs.builder()
.zoneId("0da42c8d2132a9ddaf714f9e7c920711")
.authenticatedOriginPullsCertificate(myPerHostnameAopCert.id())
.hostname("aop.example.com")
.enabled(true)
.build());
}
}

Import

Authenticated Origin Pull configuration

$ pulumi import cloudflare:index/authenticatedOriginPulls:AuthenticatedOriginPulls my_aop <zone_id>//

Per-Zone Authenticated Origin Pull configuration

$ pulumi import cloudflare:index/authenticatedOriginPulls:AuthenticatedOriginPulls my_per_zone_aop <zone_id>/<certificate_id>/

Per-Hostname Authenticated Origin Pull configuration

$ pulumi import cloudflare:index/authenticatedOriginPulls:AuthenticatedOriginPulls my_per_hostname_aop <zone_id>/<certificate_id>/<hostname>

Properties

Link copied to clipboard

The ID of an uploaded Authenticated Origin Pulls certificate. If no hostname is provided, this certificate will be used zone wide as Per-Zone Authenticated Origin Pulls.

Link copied to clipboard
val enabled: Output<Boolean>

Whether to enable Authenticated Origin Pulls on the given zone or hostname.

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

Specify a hostname to enable Per-Hostname Authenticated Origin Pulls on, using the provided certificate.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val urn: Output<String>
Link copied to clipboard
val zoneId: Output<String>

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