Package com.pulumi.cloudflare
Class ZoneCacheVariants
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.cloudflare.ZoneCacheVariants
-
public class ZoneCacheVariants extends com.pulumi.resources.CustomResource
Provides a resource which customizes Cloudflare zone cache variants. ## Example Usage <!--Start PulumiCodeChooser -->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()); } }
-
-
Constructor Summary
Constructors Constructor Description ZoneCacheVariants(java.lang.String name)
ZoneCacheVariants(java.lang.String name, ZoneCacheVariantsArgs args)
ZoneCacheVariants(java.lang.String name, ZoneCacheVariantsArgs args, com.pulumi.resources.CustomResourceOptions options)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.pulumi.core.Output<java.util.Optional<java.util.List<java.lang.String>>>
avifs()
com.pulumi.core.Output<java.util.Optional<java.util.List<java.lang.String>>>
bmps()
static ZoneCacheVariants
get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, ZoneCacheVariantsState state, com.pulumi.resources.CustomResourceOptions options)
Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.com.pulumi.core.Output<java.util.Optional<java.util.List<java.lang.String>>>
gifs()
com.pulumi.core.Output<java.util.Optional<java.util.List<java.lang.String>>>
jp2s()
com.pulumi.core.Output<java.util.Optional<java.util.List<java.lang.String>>>
jpegs()
com.pulumi.core.Output<java.util.Optional<java.util.List<java.lang.String>>>
jpg2s()
com.pulumi.core.Output<java.util.Optional<java.util.List<java.lang.String>>>
jpgs()
com.pulumi.core.Output<java.util.Optional<java.util.List<java.lang.String>>>
pngs()
com.pulumi.core.Output<java.util.Optional<java.util.List<java.lang.String>>>
tiffs()
com.pulumi.core.Output<java.util.Optional<java.util.List<java.lang.String>>>
tifs()
com.pulumi.core.Output<java.util.Optional<java.util.List<java.lang.String>>>
webps()
com.pulumi.core.Output<java.lang.String>
zoneId()
-
-
-
Constructor Detail
-
ZoneCacheVariants
public ZoneCacheVariants(java.lang.String name)
- Parameters:
name
- The _unique_ name of the resulting resource.
-
ZoneCacheVariants
public ZoneCacheVariants(java.lang.String name, ZoneCacheVariantsArgs args)
- Parameters:
name
- The _unique_ name of the resulting resource.args
- The arguments to use to populate this resource's properties.
-
ZoneCacheVariants
public ZoneCacheVariants(java.lang.String name, ZoneCacheVariantsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options)
- Parameters:
name
- The _unique_ name of the resulting resource.args
- The arguments to use to populate this resource's properties.options
- A bag of options that control this resource's behavior.
-
-
Method Detail
-
avifs
public com.pulumi.core.Output<java.util.Optional<java.util.List<java.lang.String>>> avifs()
- Returns:
- List of strings with the MIME types of all the variants that should be served for avif.
-
bmps
public com.pulumi.core.Output<java.util.Optional<java.util.List<java.lang.String>>> bmps()
- Returns:
- List of strings with the MIME types of all the variants that should be served for bmp.
-
gifs
public com.pulumi.core.Output<java.util.Optional<java.util.List<java.lang.String>>> gifs()
- Returns:
- List of strings with the MIME types of all the variants that should be served for gif.
-
jp2s
public com.pulumi.core.Output<java.util.Optional<java.util.List<java.lang.String>>> jp2s()
- Returns:
- List of strings with the MIME types of all the variants that should be served for jp2.
-
jpegs
public com.pulumi.core.Output<java.util.Optional<java.util.List<java.lang.String>>> jpegs()
- Returns:
- List of strings with the MIME types of all the variants that should be served for jpeg.
-
jpg2s
public com.pulumi.core.Output<java.util.Optional<java.util.List<java.lang.String>>> jpg2s()
- Returns:
- List of strings with the MIME types of all the variants that should be served for jpg2.
-
jpgs
public com.pulumi.core.Output<java.util.Optional<java.util.List<java.lang.String>>> jpgs()
- Returns:
- List of strings with the MIME types of all the variants that should be served for jpg.
-
pngs
public com.pulumi.core.Output<java.util.Optional<java.util.List<java.lang.String>>> pngs()
- Returns:
- List of strings with the MIME types of all the variants that should be served for png.
-
tiffs
public com.pulumi.core.Output<java.util.Optional<java.util.List<java.lang.String>>> tiffs()
- Returns:
- List of strings with the MIME types of all the variants that should be served for tiff.
-
tifs
public com.pulumi.core.Output<java.util.Optional<java.util.List<java.lang.String>>> tifs()
- Returns:
- List of strings with the MIME types of all the variants that should be served for tif.
-
webps
public com.pulumi.core.Output<java.util.Optional<java.util.List<java.lang.String>>> webps()
- Returns:
- List of strings with the MIME types of all the variants that should be served for webp.
-
zoneId
public com.pulumi.core.Output<java.lang.String> zoneId()
- Returns:
- The zone identifier to target for the resource. **Modifying this attribute will force creation of a new resource.**
-
get
public static ZoneCacheVariants get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, @Nullable ZoneCacheVariantsState state, @Nullable com.pulumi.resources.CustomResourceOptions options)
Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.- Parameters:
name
- The _unique_ name of the resulting resource.id
- The _unique_ provider ID of the resource to lookup.state
-options
- Optional settings to control the behavior of the CustomResource.
-
-