ZoneCacheVariantsArgs

data class ZoneCacheVariantsArgs(val avifs: Output<List<String>>? = null, val bmps: Output<List<String>>? = null, val gifs: Output<List<String>>? = null, val jp2s: Output<List<String>>? = null, val jpegs: Output<List<String>>? = null, val jpg2s: Output<List<String>>? = null, val jpgs: Output<List<String>>? = null, val pngs: Output<List<String>>? = null, val tiffs: Output<List<String>>? = null, val tifs: Output<List<String>>? = null, val webps: Output<List<String>>? = null, val zoneId: Output<String>? = null) : ConvertibleToJava<ZoneCacheVariantsArgs>

Provides a resource which customizes Cloudflare zone cache variants.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const example = new cloudflare.ZoneCacheVariants("example", {
zoneId: "0da42c8d2132a9ddaf714f9e7c920711",
avifs: [
"image/avif",
"image/webp",
],
bmps: [
"image/bmp",
"image/webp",
],
gifs: [
"image/gif",
"image/webp",
],
jpegs: [
"image/jpeg",
"image/webp",
],
jpgs: [
"image/jpg",
"image/webp",
],
jpg2s: [
"image/jpg2",
"image/webp",
],
jp2s: [
"image/jp2",
"image/webp",
],
pngs: [
"image/png",
"image/webp",
],
tiffs: [
"image/tiff",
"image/webp",
],
tifs: [
"image/tif",
"image/webp",
],
webps: [
"image/jpeg",
"image/webp",
],
});
import pulumi
import pulumi_cloudflare as cloudflare
example = cloudflare.ZoneCacheVariants("example",
zone_id="0da42c8d2132a9ddaf714f9e7c920711",
avifs=[
"image/avif",
"image/webp",
],
bmps=[
"image/bmp",
"image/webp",
],
gifs=[
"image/gif",
"image/webp",
],
jpegs=[
"image/jpeg",
"image/webp",
],
jpgs=[
"image/jpg",
"image/webp",
],
jpg2s=[
"image/jpg2",
"image/webp",
],
jp2s=[
"image/jp2",
"image/webp",
],
pngs=[
"image/png",
"image/webp",
],
tiffs=[
"image/tiff",
"image/webp",
],
tifs=[
"image/tif",
"image/webp",
],
webps=[
"image/jpeg",
"image/webp",
])
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Cloudflare = Pulumi.Cloudflare;
return await Deployment.RunAsync(() =>
{
var example = new Cloudflare.ZoneCacheVariants("example", new()
{
ZoneId = "0da42c8d2132a9ddaf714f9e7c920711",
Avifs = new[]
{
"image/avif",
"image/webp",
},
Bmps = new[]
{
"image/bmp",
"image/webp",
},
Gifs = new[]
{
"image/gif",
"image/webp",
},
Jpegs = new[]
{
"image/jpeg",
"image/webp",
},
Jpgs = new[]
{
"image/jpg",
"image/webp",
},
Jpg2s = new[]
{
"image/jpg2",
"image/webp",
},
Jp2s = new[]
{
"image/jp2",
"image/webp",
},
Pngs = new[]
{
"image/png",
"image/webp",
},
Tiffs = new[]
{
"image/tiff",
"image/webp",
},
Tifs = new[]
{
"image/tif",
"image/webp",
},
Webps = new[]
{
"image/jpeg",
"image/webp",
},
});
});
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 {
_, err := cloudflare.NewZoneCacheVariants(ctx, "example", &cloudflare.ZoneCacheVariantsArgs{
ZoneId: pulumi.String("0da42c8d2132a9ddaf714f9e7c920711"),
Avifs: pulumi.StringArray{
pulumi.String("image/avif"),
pulumi.String("image/webp"),
},
Bmps: pulumi.StringArray{
pulumi.String("image/bmp"),
pulumi.String("image/webp"),
},
Gifs: pulumi.StringArray{
pulumi.String("image/gif"),
pulumi.String("image/webp"),
},
Jpegs: pulumi.StringArray{
pulumi.String("image/jpeg"),
pulumi.String("image/webp"),
},
Jpgs: pulumi.StringArray{
pulumi.String("image/jpg"),
pulumi.String("image/webp"),
},
Jpg2s: pulumi.StringArray{
pulumi.String("image/jpg2"),
pulumi.String("image/webp"),
},
Jp2s: pulumi.StringArray{
pulumi.String("image/jp2"),
pulumi.String("image/webp"),
},
Pngs: pulumi.StringArray{
pulumi.String("image/png"),
pulumi.String("image/webp"),
},
Tiffs: pulumi.StringArray{
pulumi.String("image/tiff"),
pulumi.String("image/webp"),
},
Tifs: pulumi.StringArray{
pulumi.String("image/tif"),
pulumi.String("image/webp"),
},
Webps: pulumi.StringArray{
pulumi.String("image/jpeg"),
pulumi.String("image/webp"),
},
})
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.ZoneCacheVariants;
import com.pulumi.cloudflare.ZoneCacheVariantsArgs;
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 ZoneCacheVariants("example", ZoneCacheVariantsArgs.builder()
.zoneId("0da42c8d2132a9ddaf714f9e7c920711")
.avifs(
"image/avif",
"image/webp")
.bmps(
"image/bmp",
"image/webp")
.gifs(
"image/gif",
"image/webp")
.jpegs(
"image/jpeg",
"image/webp")
.jpgs(
"image/jpg",
"image/webp")
.jpg2s(
"image/jpg2",
"image/webp")
.jp2s(
"image/jp2",
"image/webp")
.pngs(
"image/png",
"image/webp")
.tiffs(
"image/tiff",
"image/webp")
.tifs(
"image/tif",
"image/webp")
.webps(
"image/jpeg",
"image/webp")
.build());
}
}
resources:
example:
type: cloudflare:ZoneCacheVariants
properties:
zoneId: 0da42c8d2132a9ddaf714f9e7c920711
avifs:
- image/avif
- image/webp
bmps:
- image/bmp
- image/webp
gifs:
- image/gif
- image/webp
jpegs:
- image/jpeg
- image/webp
jpgs:
- image/jpg
- image/webp
jpg2s:
- image/jpg2
- image/webp
jp2s:
- image/jp2
- image/webp
pngs:
- image/png
- image/webp
tiffs:
- image/tiff
- image/webp
tifs:
- image/tif
- image/webp
webps:
- image/jpeg
- image/webp

Constructors

Link copied to clipboard
constructor(avifs: Output<List<String>>? = null, bmps: Output<List<String>>? = null, gifs: Output<List<String>>? = null, jp2s: Output<List<String>>? = null, jpegs: Output<List<String>>? = null, jpg2s: Output<List<String>>? = null, jpgs: Output<List<String>>? = null, pngs: Output<List<String>>? = null, tiffs: Output<List<String>>? = null, tifs: Output<List<String>>? = null, webps: Output<List<String>>? = null, zoneId: Output<String>? = null)

Properties

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

List of strings with the MIME types of all the variants that should be served for avif.

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

List of strings with the MIME types of all the variants that should be served for bmp.

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

List of strings with the MIME types of all the variants that should be served for gif.

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

List of strings with the MIME types of all the variants that should be served for jp2.

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

List of strings with the MIME types of all the variants that should be served for jpeg.

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

List of strings with the MIME types of all the variants that should be served for jpg2.

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

List of strings with the MIME types of all the variants that should be served for jpg.

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

List of strings with the MIME types of all the variants that should be served for png.

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

List of strings with the MIME types of all the variants that should be served for tiff.

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

List of strings with the MIME types of all the variants that should be served for tif.

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

List of strings with the MIME types of all the variants that should be served for webp.

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(): ZoneCacheVariantsArgs