![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.cloudflare.kotlin.ZoneCacheVariantsArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-cloudflare-kotlin Show documentation
Show all versions of pulumi-cloudflare-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.cloudflare.kotlin
import com.pulumi.cloudflare.ZoneCacheVariantsArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* Provides a resource which customizes Cloudflare zone cache variants.
* ## Example Usage
*
* ```typescript
* 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",
* ],
* });
* ```
* ```python
* 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",
* ])
* ```
* ```csharp
* 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",
* },
* });
* });
* ```
* ```go
* 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
* })
* }
* ```
* ```java
* 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());
* }
* }
* ```
* ```yaml
* 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
* ```
*
* @property avifs List of strings with the MIME types of all the variants that should be served for avif.
* @property bmps List of strings with the MIME types of all the variants that should be served for bmp.
* @property gifs List of strings with the MIME types of all the variants that should be served for gif.
* @property jp2s List of strings with the MIME types of all the variants that should be served for jp2.
* @property jpegs List of strings with the MIME types of all the variants that should be served for jpeg.
* @property jpg2s List of strings with the MIME types of all the variants that should be served for jpg2.
* @property jpgs List of strings with the MIME types of all the variants that should be served for jpg.
* @property pngs List of strings with the MIME types of all the variants that should be served for png.
* @property tiffs List of strings with the MIME types of all the variants that should be served for tiff.
* @property tifs List of strings with the MIME types of all the variants that should be served for tif.
* @property webps List of strings with the MIME types of all the variants that should be served for webp.
* @property zoneId The zone identifier to target for the resource. **Modifying this attribute will force creation of a new resource.**
*/
public data class ZoneCacheVariantsArgs(
public val avifs: Output>? = null,
public val bmps: Output>? = null,
public val gifs: Output>? = null,
public val jp2s: Output>? = null,
public val jpegs: Output>? = null,
public val jpg2s: Output>? = null,
public val jpgs: Output>? = null,
public val pngs: Output>? = null,
public val tiffs: Output>? = null,
public val tifs: Output>? = null,
public val webps: Output>? = null,
public val zoneId: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.cloudflare.ZoneCacheVariantsArgs =
com.pulumi.cloudflare.ZoneCacheVariantsArgs.builder()
.avifs(avifs?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.bmps(bmps?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.gifs(gifs?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.jp2s(jp2s?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.jpegs(jpegs?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.jpg2s(jpg2s?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.jpgs(jpgs?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.pngs(pngs?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.tiffs(tiffs?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.tifs(tifs?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.webps(webps?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.zoneId(zoneId?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ZoneCacheVariantsArgs].
*/
@PulumiTagMarker
public class ZoneCacheVariantsArgsBuilder internal constructor() {
private var avifs: Output>? = null
private var bmps: Output>? = null
private var gifs: Output>? = null
private var jp2s: Output>? = null
private var jpegs: Output>? = null
private var jpg2s: Output>? = null
private var jpgs: Output>? = null
private var pngs: Output>? = null
private var tiffs: Output>? = null
private var tifs: Output>? = null
private var webps: Output>? = null
private var zoneId: Output? = null
/**
* @param value List of strings with the MIME types of all the variants that should be served for avif.
*/
@JvmName("rvuxqtbsuwvbeoht")
public suspend fun avifs(`value`: Output>) {
this.avifs = value
}
@JvmName("ijmkyklfaaoppajk")
public suspend fun avifs(vararg values: Output) {
this.avifs = Output.all(values.asList())
}
/**
* @param values List of strings with the MIME types of all the variants that should be served for avif.
*/
@JvmName("wqttntledadlyedx")
public suspend fun avifs(values: List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy