published on Monday, Mar 9, 2026 by g-core
published on Monday, Mar 9, 2026 by g-core
Example Usage
Basic CDN resource
Create a CDN resource with an origin group and common caching and security options.
import * as pulumi from "@pulumi/pulumi";
import * as gcore from "@pulumi/gcore";
const example = new gcore.CdnOriginGroup("example", {
name: "origin_group_1",
useNext: true,
sources: [{
source: "example.com",
enabled: true,
}],
});
const exampleCdnResource = new gcore.CdnResource("example", {
cname: "cdn.example.com",
originGroup: example.cdnOriginGroupId,
originProtocol: "MATCH",
secondaryHostnames: ["cdn2.example.com"],
options: {
edgeCacheSettings: {
enabled: true,
"default": "8d",
},
browserCacheSettings: {
enabled: true,
value: "1d",
},
redirectHttpToHttps: {
enabled: true,
value: true,
},
gzipOn: {
enabled: true,
value: true,
},
cors: {
enabled: true,
values: ["*"],
},
rewrite: {
enabled: true,
body: "/(.*) /$1",
},
tlsVersions: {
enabled: true,
values: ["TLSv1.2"],
},
forceReturn: {
enabled: true,
code: 200,
body: "OK",
},
requestLimiter: {
enabled: true,
rateUnit: "r/s",
rate: 5,
},
},
});
import pulumi
import pulumi_gcore as gcore
example = gcore.CdnOriginGroup("example",
name="origin_group_1",
use_next=True,
sources=[{
"source": "example.com",
"enabled": True,
}])
example_cdn_resource = gcore.CdnResource("example",
cname="cdn.example.com",
origin_group=example.cdn_origin_group_id,
origin_protocol="MATCH",
secondary_hostnames=["cdn2.example.com"],
options={
"edge_cache_settings": {
"enabled": True,
"default": "8d",
},
"browser_cache_settings": {
"enabled": True,
"value": "1d",
},
"redirect_http_to_https": {
"enabled": True,
"value": True,
},
"gzip_on": {
"enabled": True,
"value": True,
},
"cors": {
"enabled": True,
"values": ["*"],
},
"rewrite": {
"enabled": True,
"body": "/(.*) /$1",
},
"tls_versions": {
"enabled": True,
"values": ["TLSv1.2"],
},
"force_return": {
"enabled": True,
"code": 200,
"body": "OK",
},
"request_limiter": {
"enabled": True,
"rate_unit": "r/s",
"rate": 5,
},
})
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/gcore/v2/gcore"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := gcore.NewCdnOriginGroup(ctx, "example", &gcore.CdnOriginGroupArgs{
Name: pulumi.String("origin_group_1"),
UseNext: pulumi.Bool(true),
Sources: gcore.CdnOriginGroupSourceArray{
&gcore.CdnOriginGroupSourceArgs{
Source: pulumi.String("example.com"),
Enabled: pulumi.Bool(true),
},
},
})
if err != nil {
return err
}
_, err = gcore.NewCdnResource(ctx, "example", &gcore.CdnResourceArgs{
Cname: pulumi.String("cdn.example.com"),
OriginGroup: example.CdnOriginGroupId,
OriginProtocol: pulumi.String("MATCH"),
SecondaryHostnames: pulumi.StringArray{
pulumi.String("cdn2.example.com"),
},
Options: &gcore.CdnResourceOptionsArgs{
EdgeCacheSettings: &gcore.CdnResourceOptionsEdgeCacheSettingsArgs{
Enabled: pulumi.Bool(true),
Default: pulumi.String("8d"),
},
BrowserCacheSettings: &gcore.CdnResourceOptionsBrowserCacheSettingsArgs{
Enabled: pulumi.Bool(true),
Value: pulumi.String("1d"),
},
RedirectHttpToHttps: &gcore.CdnResourceOptionsRedirectHttpToHttpsArgs{
Enabled: pulumi.Bool(true),
Value: pulumi.Bool(true),
},
GzipOn: &gcore.CdnResourceOptionsGzipOnArgs{
Enabled: pulumi.Bool(true),
Value: pulumi.Bool(true),
},
Cors: &gcore.CdnResourceOptionsCorsArgs{
Enabled: pulumi.Bool(true),
Values: pulumi.StringArray{
pulumi.String("*"),
},
},
Rewrite: &gcore.CdnResourceOptionsRewriteArgs{
Enabled: pulumi.Bool(true),
Body: pulumi.String("/(.*) /$1"),
},
TlsVersions: &gcore.CdnResourceOptionsTlsVersionsArgs{
Enabled: pulumi.Bool(true),
Values: pulumi.StringArray{
pulumi.String("TLSv1.2"),
},
},
ForceReturn: &gcore.CdnResourceOptionsForceReturnArgs{
Enabled: pulumi.Bool(true),
Code: pulumi.Float64(200),
Body: pulumi.String("OK"),
},
RequestLimiter: &gcore.CdnResourceOptionsRequestLimiterArgs{
Enabled: pulumi.Bool(true),
RateUnit: pulumi.String("r/s"),
Rate: pulumi.Float64(5),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcore = Pulumi.Gcore;
return await Deployment.RunAsync(() =>
{
var example = new Gcore.CdnOriginGroup("example", new()
{
Name = "origin_group_1",
UseNext = true,
Sources = new[]
{
new Gcore.Inputs.CdnOriginGroupSourceArgs
{
Source = "example.com",
Enabled = true,
},
},
});
var exampleCdnResource = new Gcore.CdnResource("example", new()
{
Cname = "cdn.example.com",
OriginGroup = example.CdnOriginGroupId,
OriginProtocol = "MATCH",
SecondaryHostnames = new[]
{
"cdn2.example.com",
},
Options = new Gcore.Inputs.CdnResourceOptionsArgs
{
EdgeCacheSettings = new Gcore.Inputs.CdnResourceOptionsEdgeCacheSettingsArgs
{
Enabled = true,
Default = "8d",
},
BrowserCacheSettings = new Gcore.Inputs.CdnResourceOptionsBrowserCacheSettingsArgs
{
Enabled = true,
Value = "1d",
},
RedirectHttpToHttps = new Gcore.Inputs.CdnResourceOptionsRedirectHttpToHttpsArgs
{
Enabled = true,
Value = true,
},
GzipOn = new Gcore.Inputs.CdnResourceOptionsGzipOnArgs
{
Enabled = true,
Value = true,
},
Cors = new Gcore.Inputs.CdnResourceOptionsCorsArgs
{
Enabled = true,
Values = new[]
{
"*",
},
},
Rewrite = new Gcore.Inputs.CdnResourceOptionsRewriteArgs
{
Enabled = true,
Body = "/(.*) /$1",
},
TlsVersions = new Gcore.Inputs.CdnResourceOptionsTlsVersionsArgs
{
Enabled = true,
Values = new[]
{
"TLSv1.2",
},
},
ForceReturn = new Gcore.Inputs.CdnResourceOptionsForceReturnArgs
{
Enabled = true,
Code = 200,
Body = "OK",
},
RequestLimiter = new Gcore.Inputs.CdnResourceOptionsRequestLimiterArgs
{
Enabled = true,
RateUnit = "r/s",
Rate = 5,
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcore.CdnOriginGroup;
import com.pulumi.gcore.CdnOriginGroupArgs;
import com.pulumi.gcore.inputs.CdnOriginGroupSourceArgs;
import com.pulumi.gcore.CdnResource;
import com.pulumi.gcore.CdnResourceArgs;
import com.pulumi.gcore.inputs.CdnResourceOptionsArgs;
import com.pulumi.gcore.inputs.CdnResourceOptionsEdgeCacheSettingsArgs;
import com.pulumi.gcore.inputs.CdnResourceOptionsBrowserCacheSettingsArgs;
import com.pulumi.gcore.inputs.CdnResourceOptionsRedirectHttpToHttpsArgs;
import com.pulumi.gcore.inputs.CdnResourceOptionsGzipOnArgs;
import com.pulumi.gcore.inputs.CdnResourceOptionsCorsArgs;
import com.pulumi.gcore.inputs.CdnResourceOptionsRewriteArgs;
import com.pulumi.gcore.inputs.CdnResourceOptionsTlsVersionsArgs;
import com.pulumi.gcore.inputs.CdnResourceOptionsForceReturnArgs;
import com.pulumi.gcore.inputs.CdnResourceOptionsRequestLimiterArgs;
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 CdnOriginGroup("example", CdnOriginGroupArgs.builder()
.name("origin_group_1")
.useNext(true)
.sources(CdnOriginGroupSourceArgs.builder()
.source("example.com")
.enabled(true)
.build())
.build());
var exampleCdnResource = new CdnResource("exampleCdnResource", CdnResourceArgs.builder()
.cname("cdn.example.com")
.originGroup(example.cdnOriginGroupId())
.originProtocol("MATCH")
.secondaryHostnames("cdn2.example.com")
.options(CdnResourceOptionsArgs.builder()
.edgeCacheSettings(CdnResourceOptionsEdgeCacheSettingsArgs.builder()
.enabled(true)
.default_("8d")
.build())
.browserCacheSettings(CdnResourceOptionsBrowserCacheSettingsArgs.builder()
.enabled(true)
.value("1d")
.build())
.redirectHttpToHttps(CdnResourceOptionsRedirectHttpToHttpsArgs.builder()
.enabled(true)
.value(true)
.build())
.gzipOn(CdnResourceOptionsGzipOnArgs.builder()
.enabled(true)
.value(true)
.build())
.cors(CdnResourceOptionsCorsArgs.builder()
.enabled(true)
.values("*")
.build())
.rewrite(CdnResourceOptionsRewriteArgs.builder()
.enabled(true)
.body("/(.*) /$1")
.build())
.tlsVersions(CdnResourceOptionsTlsVersionsArgs.builder()
.enabled(true)
.values("TLSv1.2")
.build())
.forceReturn(CdnResourceOptionsForceReturnArgs.builder()
.enabled(true)
.code(200.0)
.body("OK")
.build())
.requestLimiter(CdnResourceOptionsRequestLimiterArgs.builder()
.enabled(true)
.rateUnit("r/s")
.rate(5.0)
.build())
.build())
.build());
}
}
resources:
example:
type: gcore:CdnOriginGroup
properties:
name: origin_group_1
useNext: true
sources:
- source: example.com
enabled: true
exampleCdnResource:
type: gcore:CdnResource
name: example
properties:
cname: cdn.example.com
originGroup: ${example.cdnOriginGroupId}
originProtocol: MATCH
secondaryHostnames:
- cdn2.example.com
options:
edgeCacheSettings:
enabled: true
default: 8d
browserCacheSettings:
enabled: true
value: 1d
redirectHttpToHttps:
enabled: true
value: true
gzipOn:
enabled: true
value: true
cors:
enabled: true
values:
- '*'
rewrite:
enabled: true
body: /(.*) /$1
tlsVersions:
enabled: true
values:
- TLSv1.2
forceReturn:
enabled: true
code: 200
body: OK
requestLimiter:
enabled: true
rateUnit: r/s
rate: 5
Advanced CDN resource
Create a CDN resource with a comprehensive set of options including caching, security, access control, compression, request/response manipulation, rate limiting, and more.
import * as pulumi from "@pulumi/pulumi";
import * as gcore from "@pulumi/gcore";
const example = new gcore.CdnOriginGroup("example", {
name: "origin_group_1",
useNext: true,
sources: [{
source: "example.com",
enabled: true,
}],
});
const exampleCdnResource = new gcore.CdnResource("example", {
cname: "cdn.example.com",
originGroup: example.cdnOriginGroupId,
originProtocol: "HTTPS",
sslEnabled: true,
active: true,
description: "CDN resource with advanced options",
secondaryHostnames: [
"cdn2.example.com",
"cdn3.example.com",
],
options: {
edgeCacheSettings: {
enabled: true,
value: "43200s",
customValues: {
"100": "400s",
"101": "400s",
},
},
browserCacheSettings: {
enabled: true,
value: "3600s",
},
ignoreCookie: {
enabled: true,
value: true,
},
ignoreQueryString: {
enabled: true,
value: false,
},
slice: {
enabled: true,
value: true,
},
stale: {
enabled: true,
values: [
"http_404",
"http_500",
],
},
redirectHttpToHttps: {
enabled: true,
value: true,
},
tlsVersions: {
enabled: true,
values: ["TLSv1.2"],
},
secureKey: {
enabled: true,
key: "secret",
type: 2,
},
cors: {
enabled: true,
values: ["*"],
always: true,
},
countryAcl: {
enabled: true,
policyType: "allow",
exceptedValues: [
"GB",
"DE",
],
},
ipAddressAcl: {
enabled: true,
policyType: "deny",
exceptedValues: ["192.168.1.100/32"],
},
referrerAcl: {
enabled: true,
policyType: "deny",
exceptedValues: ["*.google.com"],
},
userAgentAcl: {
enabled: true,
policyType: "allow",
exceptedValues: ["UserAgent"],
},
gzipOn: {
enabled: true,
value: true,
},
brotliCompression: {
enabled: true,
values: [
"text/html",
"text/plain",
],
},
fetchCompressed: {
enabled: true,
value: false,
},
hostHeader: {
enabled: true,
value: "host.com",
},
forwardHostHeader: {
enabled: true,
value: false,
},
sni: {
enabled: true,
sniType: "custom",
customHostname: "custom.example.com",
},
rewrite: {
enabled: true,
body: "/(.*) /additional_path/$1",
flag: "break",
},
staticRequestHeaders: {
enabled: true,
value: {
"X-Custom": "X-Request",
},
},
staticResponseHeaders: {
enabled: true,
values: [
{
name: "X-Custom1",
values: [
"Value1",
"Value2",
],
always: false,
},
{
name: "X-Custom2",
values: ["CDN"],
always: true,
},
],
},
responseHeadersHidingPolicy: {
enabled: true,
mode: "hide",
excepteds: ["my-header"],
},
requestLimiter: {
enabled: true,
rate: 5,
rateUnit: "r/s",
},
limitBandwidth: {
enabled: true,
limitType: "static",
speed: 100,
buffer: 200,
},
proxyCacheMethodsSet: {
enabled: true,
value: false,
},
proxyConnectTimeout: {
enabled: true,
value: "4s",
},
proxyReadTimeout: {
enabled: true,
value: "10s",
},
allowedHttpMethods: {
enabled: true,
values: [
"GET",
"POST",
],
},
followOriginRedirect: {
enabled: true,
codes: [
301,
302,
],
},
websockets: {
enabled: true,
value: true,
},
http3Enabled: {
enabled: true,
value: true,
},
imageStack: {
enabled: true,
quality: 80,
avifEnabled: true,
webpEnabled: false,
pngLossless: true,
},
},
});
import pulumi
import pulumi_gcore as gcore
example = gcore.CdnOriginGroup("example",
name="origin_group_1",
use_next=True,
sources=[{
"source": "example.com",
"enabled": True,
}])
example_cdn_resource = gcore.CdnResource("example",
cname="cdn.example.com",
origin_group=example.cdn_origin_group_id,
origin_protocol="HTTPS",
ssl_enabled=True,
active=True,
description="CDN resource with advanced options",
secondary_hostnames=[
"cdn2.example.com",
"cdn3.example.com",
],
options={
"edge_cache_settings": {
"enabled": True,
"value": "43200s",
"custom_values": {
"100": "400s",
"101": "400s",
},
},
"browser_cache_settings": {
"enabled": True,
"value": "3600s",
},
"ignore_cookie": {
"enabled": True,
"value": True,
},
"ignore_query_string": {
"enabled": True,
"value": False,
},
"slice": {
"enabled": True,
"value": True,
},
"stale": {
"enabled": True,
"values": [
"http_404",
"http_500",
],
},
"redirect_http_to_https": {
"enabled": True,
"value": True,
},
"tls_versions": {
"enabled": True,
"values": ["TLSv1.2"],
},
"secure_key": {
"enabled": True,
"key": "secret",
"type": 2,
},
"cors": {
"enabled": True,
"values": ["*"],
"always": True,
},
"country_acl": {
"enabled": True,
"policy_type": "allow",
"excepted_values": [
"GB",
"DE",
],
},
"ip_address_acl": {
"enabled": True,
"policy_type": "deny",
"excepted_values": ["192.168.1.100/32"],
},
"referrer_acl": {
"enabled": True,
"policy_type": "deny",
"excepted_values": ["*.google.com"],
},
"user_agent_acl": {
"enabled": True,
"policy_type": "allow",
"excepted_values": ["UserAgent"],
},
"gzip_on": {
"enabled": True,
"value": True,
},
"brotli_compression": {
"enabled": True,
"values": [
"text/html",
"text/plain",
],
},
"fetch_compressed": {
"enabled": True,
"value": False,
},
"host_header": {
"enabled": True,
"value": "host.com",
},
"forward_host_header": {
"enabled": True,
"value": False,
},
"sni": {
"enabled": True,
"sni_type": "custom",
"custom_hostname": "custom.example.com",
},
"rewrite": {
"enabled": True,
"body": "/(.*) /additional_path/$1",
"flag": "break",
},
"static_request_headers": {
"enabled": True,
"value": {
"X-Custom": "X-Request",
},
},
"static_response_headers": {
"enabled": True,
"values": [
{
"name": "X-Custom1",
"values": [
"Value1",
"Value2",
],
"always": False,
},
{
"name": "X-Custom2",
"values": ["CDN"],
"always": True,
},
],
},
"response_headers_hiding_policy": {
"enabled": True,
"mode": "hide",
"excepteds": ["my-header"],
},
"request_limiter": {
"enabled": True,
"rate": 5,
"rate_unit": "r/s",
},
"limit_bandwidth": {
"enabled": True,
"limit_type": "static",
"speed": 100,
"buffer": 200,
},
"proxy_cache_methods_set": {
"enabled": True,
"value": False,
},
"proxy_connect_timeout": {
"enabled": True,
"value": "4s",
},
"proxy_read_timeout": {
"enabled": True,
"value": "10s",
},
"allowed_http_methods": {
"enabled": True,
"values": [
"GET",
"POST",
],
},
"follow_origin_redirect": {
"enabled": True,
"codes": [
301,
302,
],
},
"websockets": {
"enabled": True,
"value": True,
},
"http3_enabled": {
"enabled": True,
"value": True,
},
"image_stack": {
"enabled": True,
"quality": 80,
"avif_enabled": True,
"webp_enabled": False,
"png_lossless": True,
},
})
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/gcore/v2/gcore"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := gcore.NewCdnOriginGroup(ctx, "example", &gcore.CdnOriginGroupArgs{
Name: pulumi.String("origin_group_1"),
UseNext: pulumi.Bool(true),
Sources: gcore.CdnOriginGroupSourceArray{
&gcore.CdnOriginGroupSourceArgs{
Source: pulumi.String("example.com"),
Enabled: pulumi.Bool(true),
},
},
})
if err != nil {
return err
}
_, err = gcore.NewCdnResource(ctx, "example", &gcore.CdnResourceArgs{
Cname: pulumi.String("cdn.example.com"),
OriginGroup: example.CdnOriginGroupId,
OriginProtocol: pulumi.String("HTTPS"),
SslEnabled: pulumi.Bool(true),
Active: pulumi.Bool(true),
Description: pulumi.String("CDN resource with advanced options"),
SecondaryHostnames: pulumi.StringArray{
pulumi.String("cdn2.example.com"),
pulumi.String("cdn3.example.com"),
},
Options: &gcore.CdnResourceOptionsArgs{
EdgeCacheSettings: &gcore.CdnResourceOptionsEdgeCacheSettingsArgs{
Enabled: pulumi.Bool(true),
Value: pulumi.String("43200s"),
CustomValues: pulumi.StringMap{
"100": pulumi.String("400s"),
"101": pulumi.String("400s"),
},
},
BrowserCacheSettings: &gcore.CdnResourceOptionsBrowserCacheSettingsArgs{
Enabled: pulumi.Bool(true),
Value: pulumi.String("3600s"),
},
IgnoreCookie: &gcore.CdnResourceOptionsIgnoreCookieArgs{
Enabled: pulumi.Bool(true),
Value: pulumi.Bool(true),
},
IgnoreQueryString: &gcore.CdnResourceOptionsIgnoreQueryStringArgs{
Enabled: pulumi.Bool(true),
Value: pulumi.Bool(false),
},
Slice: &gcore.CdnResourceOptionsSliceArgs{
Enabled: pulumi.Bool(true),
Value: pulumi.Bool(true),
},
Stale: &gcore.CdnResourceOptionsStaleArgs{
Enabled: pulumi.Bool(true),
Values: pulumi.StringArray{
pulumi.String("http_404"),
pulumi.String("http_500"),
},
},
RedirectHttpToHttps: &gcore.CdnResourceOptionsRedirectHttpToHttpsArgs{
Enabled: pulumi.Bool(true),
Value: pulumi.Bool(true),
},
TlsVersions: &gcore.CdnResourceOptionsTlsVersionsArgs{
Enabled: pulumi.Bool(true),
Values: pulumi.StringArray{
pulumi.String("TLSv1.2"),
},
},
SecureKey: &gcore.CdnResourceOptionsSecureKeyArgs{
Enabled: pulumi.Bool(true),
Key: pulumi.String("secret"),
Type: pulumi.Float64(2),
},
Cors: &gcore.CdnResourceOptionsCorsArgs{
Enabled: pulumi.Bool(true),
Values: pulumi.StringArray{
pulumi.String("*"),
},
Always: pulumi.Bool(true),
},
CountryAcl: &gcore.CdnResourceOptionsCountryAclArgs{
Enabled: pulumi.Bool(true),
PolicyType: pulumi.String("allow"),
ExceptedValues: pulumi.StringArray{
pulumi.String("GB"),
pulumi.String("DE"),
},
},
IpAddressAcl: &gcore.CdnResourceOptionsIpAddressAclArgs{
Enabled: pulumi.Bool(true),
PolicyType: pulumi.String("deny"),
ExceptedValues: pulumi.StringArray{
pulumi.String("192.168.1.100/32"),
},
},
ReferrerAcl: &gcore.CdnResourceOptionsReferrerAclArgs{
Enabled: pulumi.Bool(true),
PolicyType: pulumi.String("deny"),
ExceptedValues: pulumi.StringArray{
pulumi.String("*.google.com"),
},
},
UserAgentAcl: &gcore.CdnResourceOptionsUserAgentAclArgs{
Enabled: pulumi.Bool(true),
PolicyType: pulumi.String("allow"),
ExceptedValues: pulumi.StringArray{
pulumi.String("UserAgent"),
},
},
GzipOn: &gcore.CdnResourceOptionsGzipOnArgs{
Enabled: pulumi.Bool(true),
Value: pulumi.Bool(true),
},
BrotliCompression: &gcore.CdnResourceOptionsBrotliCompressionArgs{
Enabled: pulumi.Bool(true),
Values: pulumi.StringArray{
pulumi.String("text/html"),
pulumi.String("text/plain"),
},
},
FetchCompressed: &gcore.CdnResourceOptionsFetchCompressedArgs{
Enabled: pulumi.Bool(true),
Value: pulumi.Bool(false),
},
HostHeader: &gcore.CdnResourceOptionsHostHeaderArgs{
Enabled: pulumi.Bool(true),
Value: pulumi.String("host.com"),
},
ForwardHostHeader: &gcore.CdnResourceOptionsForwardHostHeaderArgs{
Enabled: pulumi.Bool(true),
Value: pulumi.Bool(false),
},
Sni: &gcore.CdnResourceOptionsSniArgs{
Enabled: pulumi.Bool(true),
SniType: pulumi.String("custom"),
CustomHostname: pulumi.String("custom.example.com"),
},
Rewrite: &gcore.CdnResourceOptionsRewriteArgs{
Enabled: pulumi.Bool(true),
Body: pulumi.String("/(.*) /additional_path/$1"),
Flag: pulumi.String("break"),
},
StaticRequestHeaders: &gcore.CdnResourceOptionsStaticRequestHeadersArgs{
Enabled: pulumi.Bool(true),
Value: pulumi.StringMap{
"X-Custom": pulumi.String("X-Request"),
},
},
StaticResponseHeaders: &gcore.CdnResourceOptionsStaticResponseHeadersArgs{
Enabled: pulumi.Bool(true),
Values: gcore.CdnResourceOptionsStaticResponseHeadersValueArray{
&gcore.CdnResourceOptionsStaticResponseHeadersValueArgs{
Name: pulumi.String("X-Custom1"),
Values: pulumi.StringArray{
pulumi.String("Value1"),
pulumi.String("Value2"),
},
Always: pulumi.Bool(false),
},
&gcore.CdnResourceOptionsStaticResponseHeadersValueArgs{
Name: pulumi.String("X-Custom2"),
Values: pulumi.StringArray{
pulumi.String("CDN"),
},
Always: pulumi.Bool(true),
},
},
},
ResponseHeadersHidingPolicy: &gcore.CdnResourceOptionsResponseHeadersHidingPolicyArgs{
Enabled: pulumi.Bool(true),
Mode: pulumi.String("hide"),
Excepteds: pulumi.StringArray{
pulumi.String("my-header"),
},
},
RequestLimiter: &gcore.CdnResourceOptionsRequestLimiterArgs{
Enabled: pulumi.Bool(true),
Rate: pulumi.Float64(5),
RateUnit: pulumi.String("r/s"),
},
LimitBandwidth: &gcore.CdnResourceOptionsLimitBandwidthArgs{
Enabled: pulumi.Bool(true),
LimitType: pulumi.String("static"),
Speed: pulumi.Float64(100),
Buffer: pulumi.Float64(200),
},
ProxyCacheMethodsSet: &gcore.CdnResourceOptionsProxyCacheMethodsSetArgs{
Enabled: pulumi.Bool(true),
Value: pulumi.Bool(false),
},
ProxyConnectTimeout: &gcore.CdnResourceOptionsProxyConnectTimeoutArgs{
Enabled: pulumi.Bool(true),
Value: pulumi.String("4s"),
},
ProxyReadTimeout: &gcore.CdnResourceOptionsProxyReadTimeoutArgs{
Enabled: pulumi.Bool(true),
Value: pulumi.String("10s"),
},
AllowedHttpMethods: &gcore.CdnResourceOptionsAllowedHttpMethodsArgs{
Enabled: pulumi.Bool(true),
Values: pulumi.StringArray{
pulumi.String("GET"),
pulumi.String("POST"),
},
},
FollowOriginRedirect: &gcore.CdnResourceOptionsFollowOriginRedirectArgs{
Enabled: pulumi.Bool(true),
Codes: pulumi.Float64Array{
pulumi.Float64(301),
pulumi.Float64(302),
},
},
Websockets: &gcore.CdnResourceOptionsWebsocketsArgs{
Enabled: pulumi.Bool(true),
Value: pulumi.Bool(true),
},
Http3Enabled: &gcore.CdnResourceOptionsHttp3EnabledArgs{
Enabled: pulumi.Bool(true),
Value: pulumi.Bool(true),
},
ImageStack: &gcore.CdnResourceOptionsImageStackArgs{
Enabled: pulumi.Bool(true),
Quality: pulumi.Float64(80),
AvifEnabled: pulumi.Bool(true),
WebpEnabled: pulumi.Bool(false),
PngLossless: pulumi.Bool(true),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcore = Pulumi.Gcore;
return await Deployment.RunAsync(() =>
{
var example = new Gcore.CdnOriginGroup("example", new()
{
Name = "origin_group_1",
UseNext = true,
Sources = new[]
{
new Gcore.Inputs.CdnOriginGroupSourceArgs
{
Source = "example.com",
Enabled = true,
},
},
});
var exampleCdnResource = new Gcore.CdnResource("example", new()
{
Cname = "cdn.example.com",
OriginGroup = example.CdnOriginGroupId,
OriginProtocol = "HTTPS",
SslEnabled = true,
Active = true,
Description = "CDN resource with advanced options",
SecondaryHostnames = new[]
{
"cdn2.example.com",
"cdn3.example.com",
},
Options = new Gcore.Inputs.CdnResourceOptionsArgs
{
EdgeCacheSettings = new Gcore.Inputs.CdnResourceOptionsEdgeCacheSettingsArgs
{
Enabled = true,
Value = "43200s",
CustomValues =
{
{ "100", "400s" },
{ "101", "400s" },
},
},
BrowserCacheSettings = new Gcore.Inputs.CdnResourceOptionsBrowserCacheSettingsArgs
{
Enabled = true,
Value = "3600s",
},
IgnoreCookie = new Gcore.Inputs.CdnResourceOptionsIgnoreCookieArgs
{
Enabled = true,
Value = true,
},
IgnoreQueryString = new Gcore.Inputs.CdnResourceOptionsIgnoreQueryStringArgs
{
Enabled = true,
Value = false,
},
Slice = new Gcore.Inputs.CdnResourceOptionsSliceArgs
{
Enabled = true,
Value = true,
},
Stale = new Gcore.Inputs.CdnResourceOptionsStaleArgs
{
Enabled = true,
Values = new[]
{
"http_404",
"http_500",
},
},
RedirectHttpToHttps = new Gcore.Inputs.CdnResourceOptionsRedirectHttpToHttpsArgs
{
Enabled = true,
Value = true,
},
TlsVersions = new Gcore.Inputs.CdnResourceOptionsTlsVersionsArgs
{
Enabled = true,
Values = new[]
{
"TLSv1.2",
},
},
SecureKey = new Gcore.Inputs.CdnResourceOptionsSecureKeyArgs
{
Enabled = true,
Key = "secret",
Type = 2,
},
Cors = new Gcore.Inputs.CdnResourceOptionsCorsArgs
{
Enabled = true,
Values = new[]
{
"*",
},
Always = true,
},
CountryAcl = new Gcore.Inputs.CdnResourceOptionsCountryAclArgs
{
Enabled = true,
PolicyType = "allow",
ExceptedValues = new[]
{
"GB",
"DE",
},
},
IpAddressAcl = new Gcore.Inputs.CdnResourceOptionsIpAddressAclArgs
{
Enabled = true,
PolicyType = "deny",
ExceptedValues = new[]
{
"192.168.1.100/32",
},
},
ReferrerAcl = new Gcore.Inputs.CdnResourceOptionsReferrerAclArgs
{
Enabled = true,
PolicyType = "deny",
ExceptedValues = new[]
{
"*.google.com",
},
},
UserAgentAcl = new Gcore.Inputs.CdnResourceOptionsUserAgentAclArgs
{
Enabled = true,
PolicyType = "allow",
ExceptedValues = new[]
{
"UserAgent",
},
},
GzipOn = new Gcore.Inputs.CdnResourceOptionsGzipOnArgs
{
Enabled = true,
Value = true,
},
BrotliCompression = new Gcore.Inputs.CdnResourceOptionsBrotliCompressionArgs
{
Enabled = true,
Values = new[]
{
"text/html",
"text/plain",
},
},
FetchCompressed = new Gcore.Inputs.CdnResourceOptionsFetchCompressedArgs
{
Enabled = true,
Value = false,
},
HostHeader = new Gcore.Inputs.CdnResourceOptionsHostHeaderArgs
{
Enabled = true,
Value = "host.com",
},
ForwardHostHeader = new Gcore.Inputs.CdnResourceOptionsForwardHostHeaderArgs
{
Enabled = true,
Value = false,
},
Sni = new Gcore.Inputs.CdnResourceOptionsSniArgs
{
Enabled = true,
SniType = "custom",
CustomHostname = "custom.example.com",
},
Rewrite = new Gcore.Inputs.CdnResourceOptionsRewriteArgs
{
Enabled = true,
Body = "/(.*) /additional_path/$1",
Flag = "break",
},
StaticRequestHeaders = new Gcore.Inputs.CdnResourceOptionsStaticRequestHeadersArgs
{
Enabled = true,
Value =
{
{ "X-Custom", "X-Request" },
},
},
StaticResponseHeaders = new Gcore.Inputs.CdnResourceOptionsStaticResponseHeadersArgs
{
Enabled = true,
Values = new[]
{
new Gcore.Inputs.CdnResourceOptionsStaticResponseHeadersValueArgs
{
Name = "X-Custom1",
Values = new[]
{
"Value1",
"Value2",
},
Always = false,
},
new Gcore.Inputs.CdnResourceOptionsStaticResponseHeadersValueArgs
{
Name = "X-Custom2",
Values = new[]
{
"CDN",
},
Always = true,
},
},
},
ResponseHeadersHidingPolicy = new Gcore.Inputs.CdnResourceOptionsResponseHeadersHidingPolicyArgs
{
Enabled = true,
Mode = "hide",
Excepteds = new[]
{
"my-header",
},
},
RequestLimiter = new Gcore.Inputs.CdnResourceOptionsRequestLimiterArgs
{
Enabled = true,
Rate = 5,
RateUnit = "r/s",
},
LimitBandwidth = new Gcore.Inputs.CdnResourceOptionsLimitBandwidthArgs
{
Enabled = true,
LimitType = "static",
Speed = 100,
Buffer = 200,
},
ProxyCacheMethodsSet = new Gcore.Inputs.CdnResourceOptionsProxyCacheMethodsSetArgs
{
Enabled = true,
Value = false,
},
ProxyConnectTimeout = new Gcore.Inputs.CdnResourceOptionsProxyConnectTimeoutArgs
{
Enabled = true,
Value = "4s",
},
ProxyReadTimeout = new Gcore.Inputs.CdnResourceOptionsProxyReadTimeoutArgs
{
Enabled = true,
Value = "10s",
},
AllowedHttpMethods = new Gcore.Inputs.CdnResourceOptionsAllowedHttpMethodsArgs
{
Enabled = true,
Values = new[]
{
"GET",
"POST",
},
},
FollowOriginRedirect = new Gcore.Inputs.CdnResourceOptionsFollowOriginRedirectArgs
{
Enabled = true,
Codes = new[]
{
301,
302,
},
},
Websockets = new Gcore.Inputs.CdnResourceOptionsWebsocketsArgs
{
Enabled = true,
Value = true,
},
Http3Enabled = new Gcore.Inputs.CdnResourceOptionsHttp3EnabledArgs
{
Enabled = true,
Value = true,
},
ImageStack = new Gcore.Inputs.CdnResourceOptionsImageStackArgs
{
Enabled = true,
Quality = 80,
AvifEnabled = true,
WebpEnabled = false,
PngLossless = true,
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcore.CdnOriginGroup;
import com.pulumi.gcore.CdnOriginGroupArgs;
import com.pulumi.gcore.inputs.CdnOriginGroupSourceArgs;
import com.pulumi.gcore.CdnResource;
import com.pulumi.gcore.CdnResourceArgs;
import com.pulumi.gcore.inputs.CdnResourceOptionsArgs;
import com.pulumi.gcore.inputs.CdnResourceOptionsEdgeCacheSettingsArgs;
import com.pulumi.gcore.inputs.CdnResourceOptionsBrowserCacheSettingsArgs;
import com.pulumi.gcore.inputs.CdnResourceOptionsIgnoreCookieArgs;
import com.pulumi.gcore.inputs.CdnResourceOptionsIgnoreQueryStringArgs;
import com.pulumi.gcore.inputs.CdnResourceOptionsSliceArgs;
import com.pulumi.gcore.inputs.CdnResourceOptionsStaleArgs;
import com.pulumi.gcore.inputs.CdnResourceOptionsRedirectHttpToHttpsArgs;
import com.pulumi.gcore.inputs.CdnResourceOptionsTlsVersionsArgs;
import com.pulumi.gcore.inputs.CdnResourceOptionsSecureKeyArgs;
import com.pulumi.gcore.inputs.CdnResourceOptionsCorsArgs;
import com.pulumi.gcore.inputs.CdnResourceOptionsCountryAclArgs;
import com.pulumi.gcore.inputs.CdnResourceOptionsIpAddressAclArgs;
import com.pulumi.gcore.inputs.CdnResourceOptionsReferrerAclArgs;
import com.pulumi.gcore.inputs.CdnResourceOptionsUserAgentAclArgs;
import com.pulumi.gcore.inputs.CdnResourceOptionsGzipOnArgs;
import com.pulumi.gcore.inputs.CdnResourceOptionsBrotliCompressionArgs;
import com.pulumi.gcore.inputs.CdnResourceOptionsFetchCompressedArgs;
import com.pulumi.gcore.inputs.CdnResourceOptionsHostHeaderArgs;
import com.pulumi.gcore.inputs.CdnResourceOptionsForwardHostHeaderArgs;
import com.pulumi.gcore.inputs.CdnResourceOptionsSniArgs;
import com.pulumi.gcore.inputs.CdnResourceOptionsRewriteArgs;
import com.pulumi.gcore.inputs.CdnResourceOptionsStaticRequestHeadersArgs;
import com.pulumi.gcore.inputs.CdnResourceOptionsStaticResponseHeadersArgs;
import com.pulumi.gcore.inputs.CdnResourceOptionsResponseHeadersHidingPolicyArgs;
import com.pulumi.gcore.inputs.CdnResourceOptionsRequestLimiterArgs;
import com.pulumi.gcore.inputs.CdnResourceOptionsLimitBandwidthArgs;
import com.pulumi.gcore.inputs.CdnResourceOptionsProxyCacheMethodsSetArgs;
import com.pulumi.gcore.inputs.CdnResourceOptionsProxyConnectTimeoutArgs;
import com.pulumi.gcore.inputs.CdnResourceOptionsProxyReadTimeoutArgs;
import com.pulumi.gcore.inputs.CdnResourceOptionsAllowedHttpMethodsArgs;
import com.pulumi.gcore.inputs.CdnResourceOptionsFollowOriginRedirectArgs;
import com.pulumi.gcore.inputs.CdnResourceOptionsWebsocketsArgs;
import com.pulumi.gcore.inputs.CdnResourceOptionsHttp3EnabledArgs;
import com.pulumi.gcore.inputs.CdnResourceOptionsImageStackArgs;
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 CdnOriginGroup("example", CdnOriginGroupArgs.builder()
.name("origin_group_1")
.useNext(true)
.sources(CdnOriginGroupSourceArgs.builder()
.source("example.com")
.enabled(true)
.build())
.build());
var exampleCdnResource = new CdnResource("exampleCdnResource", CdnResourceArgs.builder()
.cname("cdn.example.com")
.originGroup(example.cdnOriginGroupId())
.originProtocol("HTTPS")
.sslEnabled(true)
.active(true)
.description("CDN resource with advanced options")
.secondaryHostnames(
"cdn2.example.com",
"cdn3.example.com")
.options(CdnResourceOptionsArgs.builder()
.edgeCacheSettings(CdnResourceOptionsEdgeCacheSettingsArgs.builder()
.enabled(true)
.value("43200s")
.customValues(Map.ofEntries(
Map.entry("100", "400s"),
Map.entry("101", "400s")
))
.build())
.browserCacheSettings(CdnResourceOptionsBrowserCacheSettingsArgs.builder()
.enabled(true)
.value("3600s")
.build())
.ignoreCookie(CdnResourceOptionsIgnoreCookieArgs.builder()
.enabled(true)
.value(true)
.build())
.ignoreQueryString(CdnResourceOptionsIgnoreQueryStringArgs.builder()
.enabled(true)
.value(false)
.build())
.slice(CdnResourceOptionsSliceArgs.builder()
.enabled(true)
.value(true)
.build())
.stale(CdnResourceOptionsStaleArgs.builder()
.enabled(true)
.values(
"http_404",
"http_500")
.build())
.redirectHttpToHttps(CdnResourceOptionsRedirectHttpToHttpsArgs.builder()
.enabled(true)
.value(true)
.build())
.tlsVersions(CdnResourceOptionsTlsVersionsArgs.builder()
.enabled(true)
.values("TLSv1.2")
.build())
.secureKey(CdnResourceOptionsSecureKeyArgs.builder()
.enabled(true)
.key("secret")
.type(2.0)
.build())
.cors(CdnResourceOptionsCorsArgs.builder()
.enabled(true)
.values("*")
.always(true)
.build())
.countryAcl(CdnResourceOptionsCountryAclArgs.builder()
.enabled(true)
.policyType("allow")
.exceptedValues(
"GB",
"DE")
.build())
.ipAddressAcl(CdnResourceOptionsIpAddressAclArgs.builder()
.enabled(true)
.policyType("deny")
.exceptedValues("192.168.1.100/32")
.build())
.referrerAcl(CdnResourceOptionsReferrerAclArgs.builder()
.enabled(true)
.policyType("deny")
.exceptedValues("*.google.com")
.build())
.userAgentAcl(CdnResourceOptionsUserAgentAclArgs.builder()
.enabled(true)
.policyType("allow")
.exceptedValues("UserAgent")
.build())
.gzipOn(CdnResourceOptionsGzipOnArgs.builder()
.enabled(true)
.value(true)
.build())
.brotliCompression(CdnResourceOptionsBrotliCompressionArgs.builder()
.enabled(true)
.values(
"text/html",
"text/plain")
.build())
.fetchCompressed(CdnResourceOptionsFetchCompressedArgs.builder()
.enabled(true)
.value(false)
.build())
.hostHeader(CdnResourceOptionsHostHeaderArgs.builder()
.enabled(true)
.value("host.com")
.build())
.forwardHostHeader(CdnResourceOptionsForwardHostHeaderArgs.builder()
.enabled(true)
.value(false)
.build())
.sni(CdnResourceOptionsSniArgs.builder()
.enabled(true)
.sniType("custom")
.customHostname("custom.example.com")
.build())
.rewrite(CdnResourceOptionsRewriteArgs.builder()
.enabled(true)
.body("/(.*) /additional_path/$1")
.flag("break")
.build())
.staticRequestHeaders(CdnResourceOptionsStaticRequestHeadersArgs.builder()
.enabled(true)
.value(Map.of("X-Custom", "X-Request"))
.build())
.staticResponseHeaders(CdnResourceOptionsStaticResponseHeadersArgs.builder()
.enabled(true)
.values(
CdnResourceOptionsStaticResponseHeadersValueArgs.builder()
.name("X-Custom1")
.values(
"Value1",
"Value2")
.always(false)
.build(),
CdnResourceOptionsStaticResponseHeadersValueArgs.builder()
.name("X-Custom2")
.values("CDN")
.always(true)
.build())
.build())
.responseHeadersHidingPolicy(CdnResourceOptionsResponseHeadersHidingPolicyArgs.builder()
.enabled(true)
.mode("hide")
.excepteds("my-header")
.build())
.requestLimiter(CdnResourceOptionsRequestLimiterArgs.builder()
.enabled(true)
.rate(5.0)
.rateUnit("r/s")
.build())
.limitBandwidth(CdnResourceOptionsLimitBandwidthArgs.builder()
.enabled(true)
.limitType("static")
.speed(100.0)
.buffer(200.0)
.build())
.proxyCacheMethodsSet(CdnResourceOptionsProxyCacheMethodsSetArgs.builder()
.enabled(true)
.value(false)
.build())
.proxyConnectTimeout(CdnResourceOptionsProxyConnectTimeoutArgs.builder()
.enabled(true)
.value("4s")
.build())
.proxyReadTimeout(CdnResourceOptionsProxyReadTimeoutArgs.builder()
.enabled(true)
.value("10s")
.build())
.allowedHttpMethods(CdnResourceOptionsAllowedHttpMethodsArgs.builder()
.enabled(true)
.values(
"GET",
"POST")
.build())
.followOriginRedirect(CdnResourceOptionsFollowOriginRedirectArgs.builder()
.enabled(true)
.codes(
301.0,
302.0)
.build())
.websockets(CdnResourceOptionsWebsocketsArgs.builder()
.enabled(true)
.value(true)
.build())
.http3Enabled(CdnResourceOptionsHttp3EnabledArgs.builder()
.enabled(true)
.value(true)
.build())
.imageStack(CdnResourceOptionsImageStackArgs.builder()
.enabled(true)
.quality(80.0)
.avifEnabled(true)
.webpEnabled(false)
.pngLossless(true)
.build())
.build())
.build());
}
}
resources:
example:
type: gcore:CdnOriginGroup
properties:
name: origin_group_1
useNext: true
sources:
- source: example.com
enabled: true
exampleCdnResource:
type: gcore:CdnResource
name: example
properties:
cname: cdn.example.com
originGroup: ${example.cdnOriginGroupId}
originProtocol: HTTPS
sslEnabled: true
active: true
description: CDN resource with advanced options
secondaryHostnames:
- cdn2.example.com
- cdn3.example.com
options:
edgeCacheSettings:
enabled: true
value: 43200s
customValues:
'100': 400s
'101': 400s
browserCacheSettings:
enabled: true
value: 3600s
ignoreCookie:
enabled: true
value: true
ignoreQueryString:
enabled: true
value: false
slice:
enabled: true
value: true
stale:
enabled: true
values:
- http_404
- http_500
redirectHttpToHttps:
enabled: true
value: true
tlsVersions:
enabled: true
values:
- TLSv1.2
secureKey:
enabled: true
key: secret
type: 2
cors:
enabled: true
values:
- '*'
always: true
countryAcl:
enabled: true
policyType: allow
exceptedValues:
- GB
- DE
ipAddressAcl:
enabled: true
policyType: deny
exceptedValues:
- 192.168.1.100/32
referrerAcl:
enabled: true
policyType: deny
exceptedValues:
- '*.google.com'
userAgentAcl:
enabled: true
policyType: allow
exceptedValues:
- UserAgent
gzipOn:
enabled: true
value: true
brotliCompression:
enabled: true
values:
- text/html
- text/plain
fetchCompressed:
enabled: true
value: false
hostHeader:
enabled: true
value: host.com
forwardHostHeader:
enabled: true
value: false
sni:
enabled: true
sniType: custom
customHostname: custom.example.com
rewrite:
enabled: true
body: /(.*) /additional_path/$1
flag: break
staticRequestHeaders:
enabled: true
value:
X-Custom: X-Request
staticResponseHeaders:
enabled: true
values:
- name: X-Custom1
values:
- Value1
- Value2
always: false
- name: X-Custom2
values:
- CDN
always: true
responseHeadersHidingPolicy:
enabled: true
mode: hide
excepteds:
- my-header
requestLimiter:
enabled: true
rate: 5
rateUnit: r/s
limitBandwidth:
enabled: true
limitType: static
speed: 100
buffer: 200
proxyCacheMethodsSet:
enabled: true
value: false
proxyConnectTimeout:
enabled: true
value: 4s
proxyReadTimeout:
enabled: true
value: 10s
allowedHttpMethods:
enabled: true
values:
- GET
- POST
followOriginRedirect:
enabled: true
codes:
- 301
- 302
websockets:
enabled: true
value: true
http3Enabled:
enabled: true
value: true
imageStack:
enabled: true
quality: 80
avifEnabled: true
webpEnabled: false
pngLossless: true
Create CdnResource Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CdnResource(name: string, args: CdnResourceArgs, opts?: CustomResourceOptions);@overload
def CdnResource(resource_name: str,
args: CdnResourceArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CdnResource(resource_name: str,
opts: Optional[ResourceOptions] = None,
cname: Optional[str] = None,
primary_resource: Optional[float] = None,
proxy_ssl_enabled: Optional[bool] = None,
name: Optional[str] = None,
options: Optional[CdnResourceOptionsArgs] = None,
origin: Optional[str] = None,
origin_group: Optional[float] = None,
description: Optional[str] = None,
proxy_ssl_ca: Optional[float] = None,
origin_protocol: Optional[str] = None,
proxy_ssl_data: Optional[float] = None,
active: Optional[bool] = None,
secondary_hostnames: Optional[Sequence[str]] = None,
ssl_data: Optional[float] = None,
ssl_enabled: Optional[bool] = None,
waap_api_domain_enabled: Optional[bool] = None)func NewCdnResource(ctx *Context, name string, args CdnResourceArgs, opts ...ResourceOption) (*CdnResource, error)public CdnResource(string name, CdnResourceArgs args, CustomResourceOptions? opts = null)
public CdnResource(String name, CdnResourceArgs args)
public CdnResource(String name, CdnResourceArgs args, CustomResourceOptions options)
type: gcore:CdnResource
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args CdnResourceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args CdnResourceArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args CdnResourceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CdnResourceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CdnResourceArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var cdnResourceResource = new Gcore.CdnResource("cdnResourceResource", new()
{
Cname = "string",
PrimaryResource = 0,
ProxySslEnabled = false,
Name = "string",
Options = new Gcore.Inputs.CdnResourceOptionsArgs
{
AllowedHttpMethods = new Gcore.Inputs.CdnResourceOptionsAllowedHttpMethodsArgs
{
Enabled = false,
Values = new[]
{
"string",
},
},
BotProtection = new Gcore.Inputs.CdnResourceOptionsBotProtectionArgs
{
BotChallenge = new Gcore.Inputs.CdnResourceOptionsBotProtectionBotChallengeArgs
{
Enabled = false,
},
Enabled = false,
},
BrotliCompression = new Gcore.Inputs.CdnResourceOptionsBrotliCompressionArgs
{
Enabled = false,
Values = new[]
{
"string",
},
},
BrowserCacheSettings = new Gcore.Inputs.CdnResourceOptionsBrowserCacheSettingsArgs
{
Enabled = false,
Value = "string",
},
Cors = new Gcore.Inputs.CdnResourceOptionsCorsArgs
{
Enabled = false,
Values = new[]
{
"string",
},
Always = false,
},
CountryAcl = new Gcore.Inputs.CdnResourceOptionsCountryAclArgs
{
Enabled = false,
ExceptedValues = new[]
{
"string",
},
PolicyType = "string",
},
DisableProxyForceRanges = new Gcore.Inputs.CdnResourceOptionsDisableProxyForceRangesArgs
{
Enabled = false,
Value = false,
},
EdgeCacheSettings = new Gcore.Inputs.CdnResourceOptionsEdgeCacheSettingsArgs
{
Enabled = false,
CustomValues =
{
{ "string", "string" },
},
Default = "string",
Value = "string",
},
Fastedge = new Gcore.Inputs.CdnResourceOptionsFastedgeArgs
{
Enabled = false,
OnRequestBody = new Gcore.Inputs.CdnResourceOptionsFastedgeOnRequestBodyArgs
{
AppId = "string",
Enabled = false,
ExecuteOnEdge = false,
ExecuteOnShield = false,
InterruptOnError = false,
},
OnRequestHeaders = new Gcore.Inputs.CdnResourceOptionsFastedgeOnRequestHeadersArgs
{
AppId = "string",
Enabled = false,
ExecuteOnEdge = false,
ExecuteOnShield = false,
InterruptOnError = false,
},
OnResponseBody = new Gcore.Inputs.CdnResourceOptionsFastedgeOnResponseBodyArgs
{
AppId = "string",
Enabled = false,
ExecuteOnEdge = false,
ExecuteOnShield = false,
InterruptOnError = false,
},
OnResponseHeaders = new Gcore.Inputs.CdnResourceOptionsFastedgeOnResponseHeadersArgs
{
AppId = "string",
Enabled = false,
ExecuteOnEdge = false,
ExecuteOnShield = false,
InterruptOnError = false,
},
},
FetchCompressed = new Gcore.Inputs.CdnResourceOptionsFetchCompressedArgs
{
Enabled = false,
Value = false,
},
FollowOriginRedirect = new Gcore.Inputs.CdnResourceOptionsFollowOriginRedirectArgs
{
Codes = new[]
{
0,
},
Enabled = false,
},
ForceReturn = new Gcore.Inputs.CdnResourceOptionsForceReturnArgs
{
Body = "string",
Code = 0,
Enabled = false,
TimeInterval = new Gcore.Inputs.CdnResourceOptionsForceReturnTimeIntervalArgs
{
EndTime = "string",
StartTime = "string",
TimeZone = "string",
},
},
ForwardHostHeader = new Gcore.Inputs.CdnResourceOptionsForwardHostHeaderArgs
{
Enabled = false,
Value = false,
},
GzipOn = new Gcore.Inputs.CdnResourceOptionsGzipOnArgs
{
Enabled = false,
Value = false,
},
HostHeader = new Gcore.Inputs.CdnResourceOptionsHostHeaderArgs
{
Enabled = false,
Value = "string",
},
Http3Enabled = new Gcore.Inputs.CdnResourceOptionsHttp3EnabledArgs
{
Enabled = false,
Value = false,
},
IgnoreCookie = new Gcore.Inputs.CdnResourceOptionsIgnoreCookieArgs
{
Enabled = false,
Value = false,
},
IgnoreQueryString = new Gcore.Inputs.CdnResourceOptionsIgnoreQueryStringArgs
{
Enabled = false,
Value = false,
},
ImageStack = new Gcore.Inputs.CdnResourceOptionsImageStackArgs
{
Enabled = false,
AvifEnabled = false,
PngLossless = false,
Quality = 0,
WebpEnabled = false,
},
IpAddressAcl = new Gcore.Inputs.CdnResourceOptionsIpAddressAclArgs
{
Enabled = false,
ExceptedValues = new[]
{
"string",
},
PolicyType = "string",
},
LimitBandwidth = new Gcore.Inputs.CdnResourceOptionsLimitBandwidthArgs
{
Enabled = false,
LimitType = "string",
Buffer = 0,
Speed = 0,
},
ProxyCacheKey = new Gcore.Inputs.CdnResourceOptionsProxyCacheKeyArgs
{
Enabled = false,
Value = "string",
},
ProxyCacheMethodsSet = new Gcore.Inputs.CdnResourceOptionsProxyCacheMethodsSetArgs
{
Enabled = false,
Value = false,
},
ProxyConnectTimeout = new Gcore.Inputs.CdnResourceOptionsProxyConnectTimeoutArgs
{
Enabled = false,
Value = "string",
},
ProxyReadTimeout = new Gcore.Inputs.CdnResourceOptionsProxyReadTimeoutArgs
{
Enabled = false,
Value = "string",
},
QueryParamsBlacklist = new Gcore.Inputs.CdnResourceOptionsQueryParamsBlacklistArgs
{
Enabled = false,
Values = new[]
{
"string",
},
},
QueryParamsWhitelist = new Gcore.Inputs.CdnResourceOptionsQueryParamsWhitelistArgs
{
Enabled = false,
Values = new[]
{
"string",
},
},
QueryStringForwarding = new Gcore.Inputs.CdnResourceOptionsQueryStringForwardingArgs
{
Enabled = false,
ForwardFromFileTypes = new[]
{
"string",
},
ForwardToFileTypes = new[]
{
"string",
},
ForwardExceptKeys = new[]
{
"string",
},
ForwardOnlyKeys = new[]
{
"string",
},
},
RedirectHttpToHttps = new Gcore.Inputs.CdnResourceOptionsRedirectHttpToHttpsArgs
{
Enabled = false,
Value = false,
},
RedirectHttpsToHttp = new Gcore.Inputs.CdnResourceOptionsRedirectHttpsToHttpArgs
{
Enabled = false,
Value = false,
},
ReferrerAcl = new Gcore.Inputs.CdnResourceOptionsReferrerAclArgs
{
Enabled = false,
ExceptedValues = new[]
{
"string",
},
PolicyType = "string",
},
RequestLimiter = new Gcore.Inputs.CdnResourceOptionsRequestLimiterArgs
{
Enabled = false,
Rate = 0,
Burst = 0,
Delay = 0,
RateUnit = "string",
},
ResponseHeadersHidingPolicy = new Gcore.Inputs.CdnResourceOptionsResponseHeadersHidingPolicyArgs
{
Enabled = false,
Mode = "string",
Excepteds = new[]
{
"string",
},
},
Rewrite = new Gcore.Inputs.CdnResourceOptionsRewriteArgs
{
Body = "string",
Enabled = false,
Flag = "string",
},
SecureKey = new Gcore.Inputs.CdnResourceOptionsSecureKeyArgs
{
Enabled = false,
Key = "string",
Type = 0,
},
Slice = new Gcore.Inputs.CdnResourceOptionsSliceArgs
{
Enabled = false,
Value = false,
},
Sni = new Gcore.Inputs.CdnResourceOptionsSniArgs
{
CustomHostname = "string",
Enabled = false,
SniType = "string",
},
Stale = new Gcore.Inputs.CdnResourceOptionsStaleArgs
{
Enabled = false,
Values = new[]
{
"string",
},
},
StaticRequestHeaders = new Gcore.Inputs.CdnResourceOptionsStaticRequestHeadersArgs
{
Enabled = false,
Value =
{
{ "string", "string" },
},
},
StaticResponseHeaders = new Gcore.Inputs.CdnResourceOptionsStaticResponseHeadersArgs
{
Enabled = false,
Values = new[]
{
new Gcore.Inputs.CdnResourceOptionsStaticResponseHeadersValueArgs
{
Name = "string",
Values = new[]
{
"string",
},
Always = false,
},
},
},
TlsVersions = new Gcore.Inputs.CdnResourceOptionsTlsVersionsArgs
{
Enabled = false,
Values = new[]
{
"string",
},
},
UseDefaultLeChain = new Gcore.Inputs.CdnResourceOptionsUseDefaultLeChainArgs
{
Enabled = false,
Value = false,
},
UseDns01LeChallenge = new Gcore.Inputs.CdnResourceOptionsUseDns01LeChallengeArgs
{
Enabled = false,
Value = false,
},
UseRsaLeCert = new Gcore.Inputs.CdnResourceOptionsUseRsaLeCertArgs
{
Enabled = false,
Value = false,
},
UserAgentAcl = new Gcore.Inputs.CdnResourceOptionsUserAgentAclArgs
{
Enabled = false,
ExceptedValues = new[]
{
"string",
},
PolicyType = "string",
},
Waap = new Gcore.Inputs.CdnResourceOptionsWaapArgs
{
Enabled = false,
Value = false,
},
Websockets = new Gcore.Inputs.CdnResourceOptionsWebsocketsArgs
{
Enabled = false,
Value = false,
},
},
Origin = "string",
OriginGroup = 0,
Description = "string",
ProxySslCa = 0,
OriginProtocol = "string",
ProxySslData = 0,
Active = false,
SecondaryHostnames = new[]
{
"string",
},
SslData = 0,
SslEnabled = false,
WaapApiDomainEnabled = false,
});
example, err := gcore.NewCdnResource(ctx, "cdnResourceResource", &gcore.CdnResourceArgs{
Cname: pulumi.String("string"),
PrimaryResource: pulumi.Float64(0),
ProxySslEnabled: pulumi.Bool(false),
Name: pulumi.String("string"),
Options: &gcore.CdnResourceOptionsArgs{
AllowedHttpMethods: &gcore.CdnResourceOptionsAllowedHttpMethodsArgs{
Enabled: pulumi.Bool(false),
Values: pulumi.StringArray{
pulumi.String("string"),
},
},
BotProtection: &gcore.CdnResourceOptionsBotProtectionArgs{
BotChallenge: &gcore.CdnResourceOptionsBotProtectionBotChallengeArgs{
Enabled: pulumi.Bool(false),
},
Enabled: pulumi.Bool(false),
},
BrotliCompression: &gcore.CdnResourceOptionsBrotliCompressionArgs{
Enabled: pulumi.Bool(false),
Values: pulumi.StringArray{
pulumi.String("string"),
},
},
BrowserCacheSettings: &gcore.CdnResourceOptionsBrowserCacheSettingsArgs{
Enabled: pulumi.Bool(false),
Value: pulumi.String("string"),
},
Cors: &gcore.CdnResourceOptionsCorsArgs{
Enabled: pulumi.Bool(false),
Values: pulumi.StringArray{
pulumi.String("string"),
},
Always: pulumi.Bool(false),
},
CountryAcl: &gcore.CdnResourceOptionsCountryAclArgs{
Enabled: pulumi.Bool(false),
ExceptedValues: pulumi.StringArray{
pulumi.String("string"),
},
PolicyType: pulumi.String("string"),
},
DisableProxyForceRanges: &gcore.CdnResourceOptionsDisableProxyForceRangesArgs{
Enabled: pulumi.Bool(false),
Value: pulumi.Bool(false),
},
EdgeCacheSettings: &gcore.CdnResourceOptionsEdgeCacheSettingsArgs{
Enabled: pulumi.Bool(false),
CustomValues: pulumi.StringMap{
"string": pulumi.String("string"),
},
Default: pulumi.String("string"),
Value: pulumi.String("string"),
},
Fastedge: &gcore.CdnResourceOptionsFastedgeArgs{
Enabled: pulumi.Bool(false),
OnRequestBody: &gcore.CdnResourceOptionsFastedgeOnRequestBodyArgs{
AppId: pulumi.String("string"),
Enabled: pulumi.Bool(false),
ExecuteOnEdge: pulumi.Bool(false),
ExecuteOnShield: pulumi.Bool(false),
InterruptOnError: pulumi.Bool(false),
},
OnRequestHeaders: &gcore.CdnResourceOptionsFastedgeOnRequestHeadersArgs{
AppId: pulumi.String("string"),
Enabled: pulumi.Bool(false),
ExecuteOnEdge: pulumi.Bool(false),
ExecuteOnShield: pulumi.Bool(false),
InterruptOnError: pulumi.Bool(false),
},
OnResponseBody: &gcore.CdnResourceOptionsFastedgeOnResponseBodyArgs{
AppId: pulumi.String("string"),
Enabled: pulumi.Bool(false),
ExecuteOnEdge: pulumi.Bool(false),
ExecuteOnShield: pulumi.Bool(false),
InterruptOnError: pulumi.Bool(false),
},
OnResponseHeaders: &gcore.CdnResourceOptionsFastedgeOnResponseHeadersArgs{
AppId: pulumi.String("string"),
Enabled: pulumi.Bool(false),
ExecuteOnEdge: pulumi.Bool(false),
ExecuteOnShield: pulumi.Bool(false),
InterruptOnError: pulumi.Bool(false),
},
},
FetchCompressed: &gcore.CdnResourceOptionsFetchCompressedArgs{
Enabled: pulumi.Bool(false),
Value: pulumi.Bool(false),
},
FollowOriginRedirect: &gcore.CdnResourceOptionsFollowOriginRedirectArgs{
Codes: pulumi.Float64Array{
pulumi.Float64(0),
},
Enabled: pulumi.Bool(false),
},
ForceReturn: &gcore.CdnResourceOptionsForceReturnArgs{
Body: pulumi.String("string"),
Code: pulumi.Float64(0),
Enabled: pulumi.Bool(false),
TimeInterval: &gcore.CdnResourceOptionsForceReturnTimeIntervalArgs{
EndTime: pulumi.String("string"),
StartTime: pulumi.String("string"),
TimeZone: pulumi.String("string"),
},
},
ForwardHostHeader: &gcore.CdnResourceOptionsForwardHostHeaderArgs{
Enabled: pulumi.Bool(false),
Value: pulumi.Bool(false),
},
GzipOn: &gcore.CdnResourceOptionsGzipOnArgs{
Enabled: pulumi.Bool(false),
Value: pulumi.Bool(false),
},
HostHeader: &gcore.CdnResourceOptionsHostHeaderArgs{
Enabled: pulumi.Bool(false),
Value: pulumi.String("string"),
},
Http3Enabled: &gcore.CdnResourceOptionsHttp3EnabledArgs{
Enabled: pulumi.Bool(false),
Value: pulumi.Bool(false),
},
IgnoreCookie: &gcore.CdnResourceOptionsIgnoreCookieArgs{
Enabled: pulumi.Bool(false),
Value: pulumi.Bool(false),
},
IgnoreQueryString: &gcore.CdnResourceOptionsIgnoreQueryStringArgs{
Enabled: pulumi.Bool(false),
Value: pulumi.Bool(false),
},
ImageStack: &gcore.CdnResourceOptionsImageStackArgs{
Enabled: pulumi.Bool(false),
AvifEnabled: pulumi.Bool(false),
PngLossless: pulumi.Bool(false),
Quality: pulumi.Float64(0),
WebpEnabled: pulumi.Bool(false),
},
IpAddressAcl: &gcore.CdnResourceOptionsIpAddressAclArgs{
Enabled: pulumi.Bool(false),
ExceptedValues: pulumi.StringArray{
pulumi.String("string"),
},
PolicyType: pulumi.String("string"),
},
LimitBandwidth: &gcore.CdnResourceOptionsLimitBandwidthArgs{
Enabled: pulumi.Bool(false),
LimitType: pulumi.String("string"),
Buffer: pulumi.Float64(0),
Speed: pulumi.Float64(0),
},
ProxyCacheKey: &gcore.CdnResourceOptionsProxyCacheKeyArgs{
Enabled: pulumi.Bool(false),
Value: pulumi.String("string"),
},
ProxyCacheMethodsSet: &gcore.CdnResourceOptionsProxyCacheMethodsSetArgs{
Enabled: pulumi.Bool(false),
Value: pulumi.Bool(false),
},
ProxyConnectTimeout: &gcore.CdnResourceOptionsProxyConnectTimeoutArgs{
Enabled: pulumi.Bool(false),
Value: pulumi.String("string"),
},
ProxyReadTimeout: &gcore.CdnResourceOptionsProxyReadTimeoutArgs{
Enabled: pulumi.Bool(false),
Value: pulumi.String("string"),
},
QueryParamsBlacklist: &gcore.CdnResourceOptionsQueryParamsBlacklistArgs{
Enabled: pulumi.Bool(false),
Values: pulumi.StringArray{
pulumi.String("string"),
},
},
QueryParamsWhitelist: &gcore.CdnResourceOptionsQueryParamsWhitelistArgs{
Enabled: pulumi.Bool(false),
Values: pulumi.StringArray{
pulumi.String("string"),
},
},
QueryStringForwarding: &gcore.CdnResourceOptionsQueryStringForwardingArgs{
Enabled: pulumi.Bool(false),
ForwardFromFileTypes: pulumi.StringArray{
pulumi.String("string"),
},
ForwardToFileTypes: pulumi.StringArray{
pulumi.String("string"),
},
ForwardExceptKeys: pulumi.StringArray{
pulumi.String("string"),
},
ForwardOnlyKeys: pulumi.StringArray{
pulumi.String("string"),
},
},
RedirectHttpToHttps: &gcore.CdnResourceOptionsRedirectHttpToHttpsArgs{
Enabled: pulumi.Bool(false),
Value: pulumi.Bool(false),
},
RedirectHttpsToHttp: &gcore.CdnResourceOptionsRedirectHttpsToHttpArgs{
Enabled: pulumi.Bool(false),
Value: pulumi.Bool(false),
},
ReferrerAcl: &gcore.CdnResourceOptionsReferrerAclArgs{
Enabled: pulumi.Bool(false),
ExceptedValues: pulumi.StringArray{
pulumi.String("string"),
},
PolicyType: pulumi.String("string"),
},
RequestLimiter: &gcore.CdnResourceOptionsRequestLimiterArgs{
Enabled: pulumi.Bool(false),
Rate: pulumi.Float64(0),
Burst: pulumi.Float64(0),
Delay: pulumi.Float64(0),
RateUnit: pulumi.String("string"),
},
ResponseHeadersHidingPolicy: &gcore.CdnResourceOptionsResponseHeadersHidingPolicyArgs{
Enabled: pulumi.Bool(false),
Mode: pulumi.String("string"),
Excepteds: pulumi.StringArray{
pulumi.String("string"),
},
},
Rewrite: &gcore.CdnResourceOptionsRewriteArgs{
Body: pulumi.String("string"),
Enabled: pulumi.Bool(false),
Flag: pulumi.String("string"),
},
SecureKey: &gcore.CdnResourceOptionsSecureKeyArgs{
Enabled: pulumi.Bool(false),
Key: pulumi.String("string"),
Type: pulumi.Float64(0),
},
Slice: &gcore.CdnResourceOptionsSliceArgs{
Enabled: pulumi.Bool(false),
Value: pulumi.Bool(false),
},
Sni: &gcore.CdnResourceOptionsSniArgs{
CustomHostname: pulumi.String("string"),
Enabled: pulumi.Bool(false),
SniType: pulumi.String("string"),
},
Stale: &gcore.CdnResourceOptionsStaleArgs{
Enabled: pulumi.Bool(false),
Values: pulumi.StringArray{
pulumi.String("string"),
},
},
StaticRequestHeaders: &gcore.CdnResourceOptionsStaticRequestHeadersArgs{
Enabled: pulumi.Bool(false),
Value: pulumi.StringMap{
"string": pulumi.String("string"),
},
},
StaticResponseHeaders: &gcore.CdnResourceOptionsStaticResponseHeadersArgs{
Enabled: pulumi.Bool(false),
Values: gcore.CdnResourceOptionsStaticResponseHeadersValueArray{
&gcore.CdnResourceOptionsStaticResponseHeadersValueArgs{
Name: pulumi.String("string"),
Values: pulumi.StringArray{
pulumi.String("string"),
},
Always: pulumi.Bool(false),
},
},
},
TlsVersions: &gcore.CdnResourceOptionsTlsVersionsArgs{
Enabled: pulumi.Bool(false),
Values: pulumi.StringArray{
pulumi.String("string"),
},
},
UseDefaultLeChain: &gcore.CdnResourceOptionsUseDefaultLeChainArgs{
Enabled: pulumi.Bool(false),
Value: pulumi.Bool(false),
},
UseDns01LeChallenge: &gcore.CdnResourceOptionsUseDns01LeChallengeArgs{
Enabled: pulumi.Bool(false),
Value: pulumi.Bool(false),
},
UseRsaLeCert: &gcore.CdnResourceOptionsUseRsaLeCertArgs{
Enabled: pulumi.Bool(false),
Value: pulumi.Bool(false),
},
UserAgentAcl: &gcore.CdnResourceOptionsUserAgentAclArgs{
Enabled: pulumi.Bool(false),
ExceptedValues: pulumi.StringArray{
pulumi.String("string"),
},
PolicyType: pulumi.String("string"),
},
Waap: &gcore.CdnResourceOptionsWaapArgs{
Enabled: pulumi.Bool(false),
Value: pulumi.Bool(false),
},
Websockets: &gcore.CdnResourceOptionsWebsocketsArgs{
Enabled: pulumi.Bool(false),
Value: pulumi.Bool(false),
},
},
Origin: pulumi.String("string"),
OriginGroup: pulumi.Float64(0),
Description: pulumi.String("string"),
ProxySslCa: pulumi.Float64(0),
OriginProtocol: pulumi.String("string"),
ProxySslData: pulumi.Float64(0),
Active: pulumi.Bool(false),
SecondaryHostnames: pulumi.StringArray{
pulumi.String("string"),
},
SslData: pulumi.Float64(0),
SslEnabled: pulumi.Bool(false),
WaapApiDomainEnabled: pulumi.Bool(false),
})
var cdnResourceResource = new CdnResource("cdnResourceResource", CdnResourceArgs.builder()
.cname("string")
.primaryResource(0.0)
.proxySslEnabled(false)
.name("string")
.options(CdnResourceOptionsArgs.builder()
.allowedHttpMethods(CdnResourceOptionsAllowedHttpMethodsArgs.builder()
.enabled(false)
.values("string")
.build())
.botProtection(CdnResourceOptionsBotProtectionArgs.builder()
.botChallenge(CdnResourceOptionsBotProtectionBotChallengeArgs.builder()
.enabled(false)
.build())
.enabled(false)
.build())
.brotliCompression(CdnResourceOptionsBrotliCompressionArgs.builder()
.enabled(false)
.values("string")
.build())
.browserCacheSettings(CdnResourceOptionsBrowserCacheSettingsArgs.builder()
.enabled(false)
.value("string")
.build())
.cors(CdnResourceOptionsCorsArgs.builder()
.enabled(false)
.values("string")
.always(false)
.build())
.countryAcl(CdnResourceOptionsCountryAclArgs.builder()
.enabled(false)
.exceptedValues("string")
.policyType("string")
.build())
.disableProxyForceRanges(CdnResourceOptionsDisableProxyForceRangesArgs.builder()
.enabled(false)
.value(false)
.build())
.edgeCacheSettings(CdnResourceOptionsEdgeCacheSettingsArgs.builder()
.enabled(false)
.customValues(Map.of("string", "string"))
.default_("string")
.value("string")
.build())
.fastedge(CdnResourceOptionsFastedgeArgs.builder()
.enabled(false)
.onRequestBody(CdnResourceOptionsFastedgeOnRequestBodyArgs.builder()
.appId("string")
.enabled(false)
.executeOnEdge(false)
.executeOnShield(false)
.interruptOnError(false)
.build())
.onRequestHeaders(CdnResourceOptionsFastedgeOnRequestHeadersArgs.builder()
.appId("string")
.enabled(false)
.executeOnEdge(false)
.executeOnShield(false)
.interruptOnError(false)
.build())
.onResponseBody(CdnResourceOptionsFastedgeOnResponseBodyArgs.builder()
.appId("string")
.enabled(false)
.executeOnEdge(false)
.executeOnShield(false)
.interruptOnError(false)
.build())
.onResponseHeaders(CdnResourceOptionsFastedgeOnResponseHeadersArgs.builder()
.appId("string")
.enabled(false)
.executeOnEdge(false)
.executeOnShield(false)
.interruptOnError(false)
.build())
.build())
.fetchCompressed(CdnResourceOptionsFetchCompressedArgs.builder()
.enabled(false)
.value(false)
.build())
.followOriginRedirect(CdnResourceOptionsFollowOriginRedirectArgs.builder()
.codes(0.0)
.enabled(false)
.build())
.forceReturn(CdnResourceOptionsForceReturnArgs.builder()
.body("string")
.code(0.0)
.enabled(false)
.timeInterval(CdnResourceOptionsForceReturnTimeIntervalArgs.builder()
.endTime("string")
.startTime("string")
.timeZone("string")
.build())
.build())
.forwardHostHeader(CdnResourceOptionsForwardHostHeaderArgs.builder()
.enabled(false)
.value(false)
.build())
.gzipOn(CdnResourceOptionsGzipOnArgs.builder()
.enabled(false)
.value(false)
.build())
.hostHeader(CdnResourceOptionsHostHeaderArgs.builder()
.enabled(false)
.value("string")
.build())
.http3Enabled(CdnResourceOptionsHttp3EnabledArgs.builder()
.enabled(false)
.value(false)
.build())
.ignoreCookie(CdnResourceOptionsIgnoreCookieArgs.builder()
.enabled(false)
.value(false)
.build())
.ignoreQueryString(CdnResourceOptionsIgnoreQueryStringArgs.builder()
.enabled(false)
.value(false)
.build())
.imageStack(CdnResourceOptionsImageStackArgs.builder()
.enabled(false)
.avifEnabled(false)
.pngLossless(false)
.quality(0.0)
.webpEnabled(false)
.build())
.ipAddressAcl(CdnResourceOptionsIpAddressAclArgs.builder()
.enabled(false)
.exceptedValues("string")
.policyType("string")
.build())
.limitBandwidth(CdnResourceOptionsLimitBandwidthArgs.builder()
.enabled(false)
.limitType("string")
.buffer(0.0)
.speed(0.0)
.build())
.proxyCacheKey(CdnResourceOptionsProxyCacheKeyArgs.builder()
.enabled(false)
.value("string")
.build())
.proxyCacheMethodsSet(CdnResourceOptionsProxyCacheMethodsSetArgs.builder()
.enabled(false)
.value(false)
.build())
.proxyConnectTimeout(CdnResourceOptionsProxyConnectTimeoutArgs.builder()
.enabled(false)
.value("string")
.build())
.proxyReadTimeout(CdnResourceOptionsProxyReadTimeoutArgs.builder()
.enabled(false)
.value("string")
.build())
.queryParamsBlacklist(CdnResourceOptionsQueryParamsBlacklistArgs.builder()
.enabled(false)
.values("string")
.build())
.queryParamsWhitelist(CdnResourceOptionsQueryParamsWhitelistArgs.builder()
.enabled(false)
.values("string")
.build())
.queryStringForwarding(CdnResourceOptionsQueryStringForwardingArgs.builder()
.enabled(false)
.forwardFromFileTypes("string")
.forwardToFileTypes("string")
.forwardExceptKeys("string")
.forwardOnlyKeys("string")
.build())
.redirectHttpToHttps(CdnResourceOptionsRedirectHttpToHttpsArgs.builder()
.enabled(false)
.value(false)
.build())
.redirectHttpsToHttp(CdnResourceOptionsRedirectHttpsToHttpArgs.builder()
.enabled(false)
.value(false)
.build())
.referrerAcl(CdnResourceOptionsReferrerAclArgs.builder()
.enabled(false)
.exceptedValues("string")
.policyType("string")
.build())
.requestLimiter(CdnResourceOptionsRequestLimiterArgs.builder()
.enabled(false)
.rate(0.0)
.burst(0.0)
.delay(0.0)
.rateUnit("string")
.build())
.responseHeadersHidingPolicy(CdnResourceOptionsResponseHeadersHidingPolicyArgs.builder()
.enabled(false)
.mode("string")
.excepteds("string")
.build())
.rewrite(CdnResourceOptionsRewriteArgs.builder()
.body("string")
.enabled(false)
.flag("string")
.build())
.secureKey(CdnResourceOptionsSecureKeyArgs.builder()
.enabled(false)
.key("string")
.type(0.0)
.build())
.slice(CdnResourceOptionsSliceArgs.builder()
.enabled(false)
.value(false)
.build())
.sni(CdnResourceOptionsSniArgs.builder()
.customHostname("string")
.enabled(false)
.sniType("string")
.build())
.stale(CdnResourceOptionsStaleArgs.builder()
.enabled(false)
.values("string")
.build())
.staticRequestHeaders(CdnResourceOptionsStaticRequestHeadersArgs.builder()
.enabled(false)
.value(Map.of("string", "string"))
.build())
.staticResponseHeaders(CdnResourceOptionsStaticResponseHeadersArgs.builder()
.enabled(false)
.values(CdnResourceOptionsStaticResponseHeadersValueArgs.builder()
.name("string")
.values("string")
.always(false)
.build())
.build())
.tlsVersions(CdnResourceOptionsTlsVersionsArgs.builder()
.enabled(false)
.values("string")
.build())
.useDefaultLeChain(CdnResourceOptionsUseDefaultLeChainArgs.builder()
.enabled(false)
.value(false)
.build())
.useDns01LeChallenge(CdnResourceOptionsUseDns01LeChallengeArgs.builder()
.enabled(false)
.value(false)
.build())
.useRsaLeCert(CdnResourceOptionsUseRsaLeCertArgs.builder()
.enabled(false)
.value(false)
.build())
.userAgentAcl(CdnResourceOptionsUserAgentAclArgs.builder()
.enabled(false)
.exceptedValues("string")
.policyType("string")
.build())
.waap(CdnResourceOptionsWaapArgs.builder()
.enabled(false)
.value(false)
.build())
.websockets(CdnResourceOptionsWebsocketsArgs.builder()
.enabled(false)
.value(false)
.build())
.build())
.origin("string")
.originGroup(0.0)
.description("string")
.proxySslCa(0.0)
.originProtocol("string")
.proxySslData(0.0)
.active(false)
.secondaryHostnames("string")
.sslData(0.0)
.sslEnabled(false)
.waapApiDomainEnabled(false)
.build());
cdn_resource_resource = gcore.CdnResource("cdnResourceResource",
cname="string",
primary_resource=0,
proxy_ssl_enabled=False,
name="string",
options={
"allowed_http_methods": {
"enabled": False,
"values": ["string"],
},
"bot_protection": {
"bot_challenge": {
"enabled": False,
},
"enabled": False,
},
"brotli_compression": {
"enabled": False,
"values": ["string"],
},
"browser_cache_settings": {
"enabled": False,
"value": "string",
},
"cors": {
"enabled": False,
"values": ["string"],
"always": False,
},
"country_acl": {
"enabled": False,
"excepted_values": ["string"],
"policy_type": "string",
},
"disable_proxy_force_ranges": {
"enabled": False,
"value": False,
},
"edge_cache_settings": {
"enabled": False,
"custom_values": {
"string": "string",
},
"default": "string",
"value": "string",
},
"fastedge": {
"enabled": False,
"on_request_body": {
"app_id": "string",
"enabled": False,
"execute_on_edge": False,
"execute_on_shield": False,
"interrupt_on_error": False,
},
"on_request_headers": {
"app_id": "string",
"enabled": False,
"execute_on_edge": False,
"execute_on_shield": False,
"interrupt_on_error": False,
},
"on_response_body": {
"app_id": "string",
"enabled": False,
"execute_on_edge": False,
"execute_on_shield": False,
"interrupt_on_error": False,
},
"on_response_headers": {
"app_id": "string",
"enabled": False,
"execute_on_edge": False,
"execute_on_shield": False,
"interrupt_on_error": False,
},
},
"fetch_compressed": {
"enabled": False,
"value": False,
},
"follow_origin_redirect": {
"codes": [0],
"enabled": False,
},
"force_return": {
"body": "string",
"code": 0,
"enabled": False,
"time_interval": {
"end_time": "string",
"start_time": "string",
"time_zone": "string",
},
},
"forward_host_header": {
"enabled": False,
"value": False,
},
"gzip_on": {
"enabled": False,
"value": False,
},
"host_header": {
"enabled": False,
"value": "string",
},
"http3_enabled": {
"enabled": False,
"value": False,
},
"ignore_cookie": {
"enabled": False,
"value": False,
},
"ignore_query_string": {
"enabled": False,
"value": False,
},
"image_stack": {
"enabled": False,
"avif_enabled": False,
"png_lossless": False,
"quality": 0,
"webp_enabled": False,
},
"ip_address_acl": {
"enabled": False,
"excepted_values": ["string"],
"policy_type": "string",
},
"limit_bandwidth": {
"enabled": False,
"limit_type": "string",
"buffer": 0,
"speed": 0,
},
"proxy_cache_key": {
"enabled": False,
"value": "string",
},
"proxy_cache_methods_set": {
"enabled": False,
"value": False,
},
"proxy_connect_timeout": {
"enabled": False,
"value": "string",
},
"proxy_read_timeout": {
"enabled": False,
"value": "string",
},
"query_params_blacklist": {
"enabled": False,
"values": ["string"],
},
"query_params_whitelist": {
"enabled": False,
"values": ["string"],
},
"query_string_forwarding": {
"enabled": False,
"forward_from_file_types": ["string"],
"forward_to_file_types": ["string"],
"forward_except_keys": ["string"],
"forward_only_keys": ["string"],
},
"redirect_http_to_https": {
"enabled": False,
"value": False,
},
"redirect_https_to_http": {
"enabled": False,
"value": False,
},
"referrer_acl": {
"enabled": False,
"excepted_values": ["string"],
"policy_type": "string",
},
"request_limiter": {
"enabled": False,
"rate": 0,
"burst": 0,
"delay": 0,
"rate_unit": "string",
},
"response_headers_hiding_policy": {
"enabled": False,
"mode": "string",
"excepteds": ["string"],
},
"rewrite": {
"body": "string",
"enabled": False,
"flag": "string",
},
"secure_key": {
"enabled": False,
"key": "string",
"type": 0,
},
"slice": {
"enabled": False,
"value": False,
},
"sni": {
"custom_hostname": "string",
"enabled": False,
"sni_type": "string",
},
"stale": {
"enabled": False,
"values": ["string"],
},
"static_request_headers": {
"enabled": False,
"value": {
"string": "string",
},
},
"static_response_headers": {
"enabled": False,
"values": [{
"name": "string",
"values": ["string"],
"always": False,
}],
},
"tls_versions": {
"enabled": False,
"values": ["string"],
},
"use_default_le_chain": {
"enabled": False,
"value": False,
},
"use_dns01_le_challenge": {
"enabled": False,
"value": False,
},
"use_rsa_le_cert": {
"enabled": False,
"value": False,
},
"user_agent_acl": {
"enabled": False,
"excepted_values": ["string"],
"policy_type": "string",
},
"waap": {
"enabled": False,
"value": False,
},
"websockets": {
"enabled": False,
"value": False,
},
},
origin="string",
origin_group=0,
description="string",
proxy_ssl_ca=0,
origin_protocol="string",
proxy_ssl_data=0,
active=False,
secondary_hostnames=["string"],
ssl_data=0,
ssl_enabled=False,
waap_api_domain_enabled=False)
const cdnResourceResource = new gcore.CdnResource("cdnResourceResource", {
cname: "string",
primaryResource: 0,
proxySslEnabled: false,
name: "string",
options: {
allowedHttpMethods: {
enabled: false,
values: ["string"],
},
botProtection: {
botChallenge: {
enabled: false,
},
enabled: false,
},
brotliCompression: {
enabled: false,
values: ["string"],
},
browserCacheSettings: {
enabled: false,
value: "string",
},
cors: {
enabled: false,
values: ["string"],
always: false,
},
countryAcl: {
enabled: false,
exceptedValues: ["string"],
policyType: "string",
},
disableProxyForceRanges: {
enabled: false,
value: false,
},
edgeCacheSettings: {
enabled: false,
customValues: {
string: "string",
},
"default": "string",
value: "string",
},
fastedge: {
enabled: false,
onRequestBody: {
appId: "string",
enabled: false,
executeOnEdge: false,
executeOnShield: false,
interruptOnError: false,
},
onRequestHeaders: {
appId: "string",
enabled: false,
executeOnEdge: false,
executeOnShield: false,
interruptOnError: false,
},
onResponseBody: {
appId: "string",
enabled: false,
executeOnEdge: false,
executeOnShield: false,
interruptOnError: false,
},
onResponseHeaders: {
appId: "string",
enabled: false,
executeOnEdge: false,
executeOnShield: false,
interruptOnError: false,
},
},
fetchCompressed: {
enabled: false,
value: false,
},
followOriginRedirect: {
codes: [0],
enabled: false,
},
forceReturn: {
body: "string",
code: 0,
enabled: false,
timeInterval: {
endTime: "string",
startTime: "string",
timeZone: "string",
},
},
forwardHostHeader: {
enabled: false,
value: false,
},
gzipOn: {
enabled: false,
value: false,
},
hostHeader: {
enabled: false,
value: "string",
},
http3Enabled: {
enabled: false,
value: false,
},
ignoreCookie: {
enabled: false,
value: false,
},
ignoreQueryString: {
enabled: false,
value: false,
},
imageStack: {
enabled: false,
avifEnabled: false,
pngLossless: false,
quality: 0,
webpEnabled: false,
},
ipAddressAcl: {
enabled: false,
exceptedValues: ["string"],
policyType: "string",
},
limitBandwidth: {
enabled: false,
limitType: "string",
buffer: 0,
speed: 0,
},
proxyCacheKey: {
enabled: false,
value: "string",
},
proxyCacheMethodsSet: {
enabled: false,
value: false,
},
proxyConnectTimeout: {
enabled: false,
value: "string",
},
proxyReadTimeout: {
enabled: false,
value: "string",
},
queryParamsBlacklist: {
enabled: false,
values: ["string"],
},
queryParamsWhitelist: {
enabled: false,
values: ["string"],
},
queryStringForwarding: {
enabled: false,
forwardFromFileTypes: ["string"],
forwardToFileTypes: ["string"],
forwardExceptKeys: ["string"],
forwardOnlyKeys: ["string"],
},
redirectHttpToHttps: {
enabled: false,
value: false,
},
redirectHttpsToHttp: {
enabled: false,
value: false,
},
referrerAcl: {
enabled: false,
exceptedValues: ["string"],
policyType: "string",
},
requestLimiter: {
enabled: false,
rate: 0,
burst: 0,
delay: 0,
rateUnit: "string",
},
responseHeadersHidingPolicy: {
enabled: false,
mode: "string",
excepteds: ["string"],
},
rewrite: {
body: "string",
enabled: false,
flag: "string",
},
secureKey: {
enabled: false,
key: "string",
type: 0,
},
slice: {
enabled: false,
value: false,
},
sni: {
customHostname: "string",
enabled: false,
sniType: "string",
},
stale: {
enabled: false,
values: ["string"],
},
staticRequestHeaders: {
enabled: false,
value: {
string: "string",
},
},
staticResponseHeaders: {
enabled: false,
values: [{
name: "string",
values: ["string"],
always: false,
}],
},
tlsVersions: {
enabled: false,
values: ["string"],
},
useDefaultLeChain: {
enabled: false,
value: false,
},
useDns01LeChallenge: {
enabled: false,
value: false,
},
useRsaLeCert: {
enabled: false,
value: false,
},
userAgentAcl: {
enabled: false,
exceptedValues: ["string"],
policyType: "string",
},
waap: {
enabled: false,
value: false,
},
websockets: {
enabled: false,
value: false,
},
},
origin: "string",
originGroup: 0,
description: "string",
proxySslCa: 0,
originProtocol: "string",
proxySslData: 0,
active: false,
secondaryHostnames: ["string"],
sslData: 0,
sslEnabled: false,
waapApiDomainEnabled: false,
});
type: gcore:CdnResource
properties:
active: false
cname: string
description: string
name: string
options:
allowedHttpMethods:
enabled: false
values:
- string
botProtection:
botChallenge:
enabled: false
enabled: false
brotliCompression:
enabled: false
values:
- string
browserCacheSettings:
enabled: false
value: string
cors:
always: false
enabled: false
values:
- string
countryAcl:
enabled: false
exceptedValues:
- string
policyType: string
disableProxyForceRanges:
enabled: false
value: false
edgeCacheSettings:
customValues:
string: string
default: string
enabled: false
value: string
fastedge:
enabled: false
onRequestBody:
appId: string
enabled: false
executeOnEdge: false
executeOnShield: false
interruptOnError: false
onRequestHeaders:
appId: string
enabled: false
executeOnEdge: false
executeOnShield: false
interruptOnError: false
onResponseBody:
appId: string
enabled: false
executeOnEdge: false
executeOnShield: false
interruptOnError: false
onResponseHeaders:
appId: string
enabled: false
executeOnEdge: false
executeOnShield: false
interruptOnError: false
fetchCompressed:
enabled: false
value: false
followOriginRedirect:
codes:
- 0
enabled: false
forceReturn:
body: string
code: 0
enabled: false
timeInterval:
endTime: string
startTime: string
timeZone: string
forwardHostHeader:
enabled: false
value: false
gzipOn:
enabled: false
value: false
hostHeader:
enabled: false
value: string
http3Enabled:
enabled: false
value: false
ignoreCookie:
enabled: false
value: false
ignoreQueryString:
enabled: false
value: false
imageStack:
avifEnabled: false
enabled: false
pngLossless: false
quality: 0
webpEnabled: false
ipAddressAcl:
enabled: false
exceptedValues:
- string
policyType: string
limitBandwidth:
buffer: 0
enabled: false
limitType: string
speed: 0
proxyCacheKey:
enabled: false
value: string
proxyCacheMethodsSet:
enabled: false
value: false
proxyConnectTimeout:
enabled: false
value: string
proxyReadTimeout:
enabled: false
value: string
queryParamsBlacklist:
enabled: false
values:
- string
queryParamsWhitelist:
enabled: false
values:
- string
queryStringForwarding:
enabled: false
forwardExceptKeys:
- string
forwardFromFileTypes:
- string
forwardOnlyKeys:
- string
forwardToFileTypes:
- string
redirectHttpToHttps:
enabled: false
value: false
redirectHttpsToHttp:
enabled: false
value: false
referrerAcl:
enabled: false
exceptedValues:
- string
policyType: string
requestLimiter:
burst: 0
delay: 0
enabled: false
rate: 0
rateUnit: string
responseHeadersHidingPolicy:
enabled: false
excepteds:
- string
mode: string
rewrite:
body: string
enabled: false
flag: string
secureKey:
enabled: false
key: string
type: 0
slice:
enabled: false
value: false
sni:
customHostname: string
enabled: false
sniType: string
stale:
enabled: false
values:
- string
staticRequestHeaders:
enabled: false
value:
string: string
staticResponseHeaders:
enabled: false
values:
- always: false
name: string
values:
- string
tlsVersions:
enabled: false
values:
- string
useDefaultLeChain:
enabled: false
value: false
useDns01LeChallenge:
enabled: false
value: false
useRsaLeCert:
enabled: false
value: false
userAgentAcl:
enabled: false
exceptedValues:
- string
policyType: string
waap:
enabled: false
value: false
websockets:
enabled: false
value: false
origin: string
originGroup: 0
originProtocol: string
primaryResource: 0
proxySslCa: 0
proxySslData: 0
proxySslEnabled: false
secondaryHostnames:
- string
sslData: 0
sslEnabled: false
waapApiDomainEnabled: false
CdnResource Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The CdnResource resource accepts the following input properties:
- Cname string
- Delivery domains that will be used for content delivery through a CDN.
- Active bool
Enables or disables a CDN resource.
Possible values:
- true - CDN resource is active. Content is being delivered.
- false - CDN resource is deactivated. Content is not being delivered.
- Description string
- Optional comment describing the CDN resource.
- Name string
- CDN resource name.
- Options
Cdn
Resource Options List of options that can be configured for the CDN resource.
In case of
nullvalue the option is not added to the CDN resource. Option may inherit its value from the global account settings.- Origin string
IP address or domain name of the origin and the port, if custom port is used.
You can use either the
originororiginGroupparameter in the request.- Origin
Group double Origin group ID with which the CDN resource is associated.
You can use either the
originororiginGroupparameter in the request.- Origin
Protocol string Protocol used by CDN servers to request content from an origin source.
Possible values:
- HTTPS - CDN servers will connect to the origin via HTTPS.
- HTTP - CDN servers will connect to the origin via HTTP.
- MATCH - connection protocol will be chosen automatically (content on the origin source should be available for the CDN both through HTTP and HTTPS).
If protocol is not specified, HTTP is used to connect to an origin server. Available values: "HTTP", "HTTPS", "MATCH".
- Primary
Resource double ID of the main CDN resource which has a shared caching zone with a reserve CDN resource.
If the parameter is not empty, then the current CDN resource is the reserve. You cannot change some options, create rules, set up origin shielding, or use the reserve CDN resource for Streaming.
- Proxy
Ssl doubleCa ID of the trusted CA certificate used to verify an origin.
It can be used only with
<span pulumi-lang-nodejs=""proxySslEnabled"" pulumi-lang-dotnet=""ProxySslEnabled"" pulumi-lang-go=""proxySslEnabled"" pulumi-lang-python=""proxy_ssl_enabled"" pulumi-lang-yaml=""proxySslEnabled"" pulumi-lang-java=""proxySslEnabled"">"proxy_ssl_enabled"</span>: true.- Proxy
Ssl doubleData ID of the SSL certificate used to verify an origin.
It can be used only with
<span pulumi-lang-nodejs=""proxySslEnabled"" pulumi-lang-dotnet=""ProxySslEnabled"" pulumi-lang-go=""proxySslEnabled"" pulumi-lang-python=""proxy_ssl_enabled"" pulumi-lang-yaml=""proxySslEnabled"" pulumi-lang-java=""proxySslEnabled"">"proxy_ssl_enabled"</span>: true.- Proxy
Ssl boolEnabled Enables or disables SSL certificate validation of the origin server before completing any connection.
Possible values:
- true - Origin SSL certificate validation is enabled.
- false - Origin SSL certificate validation is disabled.
- Secondary
Hostnames List<string> Additional delivery domains (CNAMEs) that will be used to deliver content via the CDN.
Up to ten additional CNAMEs are possible.
- Ssl
Data double ID of the SSL certificate linked to the CDN resource.
Can be used only with
"sslEnabled": true.- Ssl
Enabled bool Defines whether the HTTPS protocol enabled for content delivery.
Possible values:
- true - HTTPS is enabled.
- false - HTTPS is disabled.
- Waap
Api boolDomain Enabled Defines whether the associated WAAP Domain is identified as an API Domain.
Possible values:
- true - The associated WAAP Domain is designated as an API Domain.
- false - The associated WAAP Domain is not designated as an API Domain.
- Cname string
- Delivery domains that will be used for content delivery through a CDN.
- Active bool
Enables or disables a CDN resource.
Possible values:
- true - CDN resource is active. Content is being delivered.
- false - CDN resource is deactivated. Content is not being delivered.
- Description string
- Optional comment describing the CDN resource.
- Name string
- CDN resource name.
- Options
Cdn
Resource Options Args List of options that can be configured for the CDN resource.
In case of
nullvalue the option is not added to the CDN resource. Option may inherit its value from the global account settings.- Origin string
IP address or domain name of the origin and the port, if custom port is used.
You can use either the
originororiginGroupparameter in the request.- Origin
Group float64 Origin group ID with which the CDN resource is associated.
You can use either the
originororiginGroupparameter in the request.- Origin
Protocol string Protocol used by CDN servers to request content from an origin source.
Possible values:
- HTTPS - CDN servers will connect to the origin via HTTPS.
- HTTP - CDN servers will connect to the origin via HTTP.
- MATCH - connection protocol will be chosen automatically (content on the origin source should be available for the CDN both through HTTP and HTTPS).
If protocol is not specified, HTTP is used to connect to an origin server. Available values: "HTTP", "HTTPS", "MATCH".
- Primary
Resource float64 ID of the main CDN resource which has a shared caching zone with a reserve CDN resource.
If the parameter is not empty, then the current CDN resource is the reserve. You cannot change some options, create rules, set up origin shielding, or use the reserve CDN resource for Streaming.
- Proxy
Ssl float64Ca ID of the trusted CA certificate used to verify an origin.
It can be used only with
<span pulumi-lang-nodejs=""proxySslEnabled"" pulumi-lang-dotnet=""ProxySslEnabled"" pulumi-lang-go=""proxySslEnabled"" pulumi-lang-python=""proxy_ssl_enabled"" pulumi-lang-yaml=""proxySslEnabled"" pulumi-lang-java=""proxySslEnabled"">"proxy_ssl_enabled"</span>: true.- Proxy
Ssl float64Data ID of the SSL certificate used to verify an origin.
It can be used only with
<span pulumi-lang-nodejs=""proxySslEnabled"" pulumi-lang-dotnet=""ProxySslEnabled"" pulumi-lang-go=""proxySslEnabled"" pulumi-lang-python=""proxy_ssl_enabled"" pulumi-lang-yaml=""proxySslEnabled"" pulumi-lang-java=""proxySslEnabled"">"proxy_ssl_enabled"</span>: true.- Proxy
Ssl boolEnabled Enables or disables SSL certificate validation of the origin server before completing any connection.
Possible values:
- true - Origin SSL certificate validation is enabled.
- false - Origin SSL certificate validation is disabled.
- Secondary
Hostnames []string Additional delivery domains (CNAMEs) that will be used to deliver content via the CDN.
Up to ten additional CNAMEs are possible.
- Ssl
Data float64 ID of the SSL certificate linked to the CDN resource.
Can be used only with
"sslEnabled": true.- Ssl
Enabled bool Defines whether the HTTPS protocol enabled for content delivery.
Possible values:
- true - HTTPS is enabled.
- false - HTTPS is disabled.
- Waap
Api boolDomain Enabled Defines whether the associated WAAP Domain is identified as an API Domain.
Possible values:
- true - The associated WAAP Domain is designated as an API Domain.
- false - The associated WAAP Domain is not designated as an API Domain.
- cname String
- Delivery domains that will be used for content delivery through a CDN.
- active Boolean
Enables or disables a CDN resource.
Possible values:
- true - CDN resource is active. Content is being delivered.
- false - CDN resource is deactivated. Content is not being delivered.
- description String
- Optional comment describing the CDN resource.
- name String
- CDN resource name.
- options
Cdn
Resource Options List of options that can be configured for the CDN resource.
In case of
nullvalue the option is not added to the CDN resource. Option may inherit its value from the global account settings.- origin String
IP address or domain name of the origin and the port, if custom port is used.
You can use either the
originororiginGroupparameter in the request.- origin
Group Double Origin group ID with which the CDN resource is associated.
You can use either the
originororiginGroupparameter in the request.- origin
Protocol String Protocol used by CDN servers to request content from an origin source.
Possible values:
- HTTPS - CDN servers will connect to the origin via HTTPS.
- HTTP - CDN servers will connect to the origin via HTTP.
- MATCH - connection protocol will be chosen automatically (content on the origin source should be available for the CDN both through HTTP and HTTPS).
If protocol is not specified, HTTP is used to connect to an origin server. Available values: "HTTP", "HTTPS", "MATCH".
- primary
Resource Double ID of the main CDN resource which has a shared caching zone with a reserve CDN resource.
If the parameter is not empty, then the current CDN resource is the reserve. You cannot change some options, create rules, set up origin shielding, or use the reserve CDN resource for Streaming.
- proxy
Ssl DoubleCa ID of the trusted CA certificate used to verify an origin.
It can be used only with
<span pulumi-lang-nodejs=""proxySslEnabled"" pulumi-lang-dotnet=""ProxySslEnabled"" pulumi-lang-go=""proxySslEnabled"" pulumi-lang-python=""proxy_ssl_enabled"" pulumi-lang-yaml=""proxySslEnabled"" pulumi-lang-java=""proxySslEnabled"">"proxy_ssl_enabled"</span>: true.- proxy
Ssl DoubleData ID of the SSL certificate used to verify an origin.
It can be used only with
<span pulumi-lang-nodejs=""proxySslEnabled"" pulumi-lang-dotnet=""ProxySslEnabled"" pulumi-lang-go=""proxySslEnabled"" pulumi-lang-python=""proxy_ssl_enabled"" pulumi-lang-yaml=""proxySslEnabled"" pulumi-lang-java=""proxySslEnabled"">"proxy_ssl_enabled"</span>: true.- proxy
Ssl BooleanEnabled Enables or disables SSL certificate validation of the origin server before completing any connection.
Possible values:
- true - Origin SSL certificate validation is enabled.
- false - Origin SSL certificate validation is disabled.
- secondary
Hostnames List<String> Additional delivery domains (CNAMEs) that will be used to deliver content via the CDN.
Up to ten additional CNAMEs are possible.
- ssl
Data Double ID of the SSL certificate linked to the CDN resource.
Can be used only with
"sslEnabled": true.- ssl
Enabled Boolean Defines whether the HTTPS protocol enabled for content delivery.
Possible values:
- true - HTTPS is enabled.
- false - HTTPS is disabled.
- waap
Api BooleanDomain Enabled Defines whether the associated WAAP Domain is identified as an API Domain.
Possible values:
- true - The associated WAAP Domain is designated as an API Domain.
- false - The associated WAAP Domain is not designated as an API Domain.
- cname string
- Delivery domains that will be used for content delivery through a CDN.
- active boolean
Enables or disables a CDN resource.
Possible values:
- true - CDN resource is active. Content is being delivered.
- false - CDN resource is deactivated. Content is not being delivered.
- description string
- Optional comment describing the CDN resource.
- name string
- CDN resource name.
- options
Cdn
Resource Options List of options that can be configured for the CDN resource.
In case of
nullvalue the option is not added to the CDN resource. Option may inherit its value from the global account settings.- origin string
IP address or domain name of the origin and the port, if custom port is used.
You can use either the
originororiginGroupparameter in the request.- origin
Group number Origin group ID with which the CDN resource is associated.
You can use either the
originororiginGroupparameter in the request.- origin
Protocol string Protocol used by CDN servers to request content from an origin source.
Possible values:
- HTTPS - CDN servers will connect to the origin via HTTPS.
- HTTP - CDN servers will connect to the origin via HTTP.
- MATCH - connection protocol will be chosen automatically (content on the origin source should be available for the CDN both through HTTP and HTTPS).
If protocol is not specified, HTTP is used to connect to an origin server. Available values: "HTTP", "HTTPS", "MATCH".
- primary
Resource number ID of the main CDN resource which has a shared caching zone with a reserve CDN resource.
If the parameter is not empty, then the current CDN resource is the reserve. You cannot change some options, create rules, set up origin shielding, or use the reserve CDN resource for Streaming.
- proxy
Ssl numberCa ID of the trusted CA certificate used to verify an origin.
It can be used only with
<span pulumi-lang-nodejs=""proxySslEnabled"" pulumi-lang-dotnet=""ProxySslEnabled"" pulumi-lang-go=""proxySslEnabled"" pulumi-lang-python=""proxy_ssl_enabled"" pulumi-lang-yaml=""proxySslEnabled"" pulumi-lang-java=""proxySslEnabled"">"proxy_ssl_enabled"</span>: true.- proxy
Ssl numberData ID of the SSL certificate used to verify an origin.
It can be used only with
<span pulumi-lang-nodejs=""proxySslEnabled"" pulumi-lang-dotnet=""ProxySslEnabled"" pulumi-lang-go=""proxySslEnabled"" pulumi-lang-python=""proxy_ssl_enabled"" pulumi-lang-yaml=""proxySslEnabled"" pulumi-lang-java=""proxySslEnabled"">"proxy_ssl_enabled"</span>: true.- proxy
Ssl booleanEnabled Enables or disables SSL certificate validation of the origin server before completing any connection.
Possible values:
- true - Origin SSL certificate validation is enabled.
- false - Origin SSL certificate validation is disabled.
- secondary
Hostnames string[] Additional delivery domains (CNAMEs) that will be used to deliver content via the CDN.
Up to ten additional CNAMEs are possible.
- ssl
Data number ID of the SSL certificate linked to the CDN resource.
Can be used only with
"sslEnabled": true.- ssl
Enabled boolean Defines whether the HTTPS protocol enabled for content delivery.
Possible values:
- true - HTTPS is enabled.
- false - HTTPS is disabled.
- waap
Api booleanDomain Enabled Defines whether the associated WAAP Domain is identified as an API Domain.
Possible values:
- true - The associated WAAP Domain is designated as an API Domain.
- false - The associated WAAP Domain is not designated as an API Domain.
- cname str
- Delivery domains that will be used for content delivery through a CDN.
- active bool
Enables or disables a CDN resource.
Possible values:
- true - CDN resource is active. Content is being delivered.
- false - CDN resource is deactivated. Content is not being delivered.
- description str
- Optional comment describing the CDN resource.
- name str
- CDN resource name.
- options
Cdn
Resource Options Args List of options that can be configured for the CDN resource.
In case of
nullvalue the option is not added to the CDN resource. Option may inherit its value from the global account settings.- origin str
IP address or domain name of the origin and the port, if custom port is used.
You can use either the
originororiginGroupparameter in the request.- origin_
group float Origin group ID with which the CDN resource is associated.
You can use either the
originororiginGroupparameter in the request.- origin_
protocol str Protocol used by CDN servers to request content from an origin source.
Possible values:
- HTTPS - CDN servers will connect to the origin via HTTPS.
- HTTP - CDN servers will connect to the origin via HTTP.
- MATCH - connection protocol will be chosen automatically (content on the origin source should be available for the CDN both through HTTP and HTTPS).
If protocol is not specified, HTTP is used to connect to an origin server. Available values: "HTTP", "HTTPS", "MATCH".
- primary_
resource float ID of the main CDN resource which has a shared caching zone with a reserve CDN resource.
If the parameter is not empty, then the current CDN resource is the reserve. You cannot change some options, create rules, set up origin shielding, or use the reserve CDN resource for Streaming.
- proxy_
ssl_ floatca ID of the trusted CA certificate used to verify an origin.
It can be used only with
<span pulumi-lang-nodejs=""proxySslEnabled"" pulumi-lang-dotnet=""ProxySslEnabled"" pulumi-lang-go=""proxySslEnabled"" pulumi-lang-python=""proxy_ssl_enabled"" pulumi-lang-yaml=""proxySslEnabled"" pulumi-lang-java=""proxySslEnabled"">"proxy_ssl_enabled"</span>: true.- proxy_
ssl_ floatdata ID of the SSL certificate used to verify an origin.
It can be used only with
<span pulumi-lang-nodejs=""proxySslEnabled"" pulumi-lang-dotnet=""ProxySslEnabled"" pulumi-lang-go=""proxySslEnabled"" pulumi-lang-python=""proxy_ssl_enabled"" pulumi-lang-yaml=""proxySslEnabled"" pulumi-lang-java=""proxySslEnabled"">"proxy_ssl_enabled"</span>: true.- proxy_
ssl_ boolenabled Enables or disables SSL certificate validation of the origin server before completing any connection.
Possible values:
- true - Origin SSL certificate validation is enabled.
- false - Origin SSL certificate validation is disabled.
- secondary_
hostnames Sequence[str] Additional delivery domains (CNAMEs) that will be used to deliver content via the CDN.
Up to ten additional CNAMEs are possible.
- ssl_
data float ID of the SSL certificate linked to the CDN resource.
Can be used only with
"sslEnabled": true.- ssl_
enabled bool Defines whether the HTTPS protocol enabled for content delivery.
Possible values:
- true - HTTPS is enabled.
- false - HTTPS is disabled.
- waap_
api_ booldomain_ enabled Defines whether the associated WAAP Domain is identified as an API Domain.
Possible values:
- true - The associated WAAP Domain is designated as an API Domain.
- false - The associated WAAP Domain is not designated as an API Domain.
- cname String
- Delivery domains that will be used for content delivery through a CDN.
- active Boolean
Enables or disables a CDN resource.
Possible values:
- true - CDN resource is active. Content is being delivered.
- false - CDN resource is deactivated. Content is not being delivered.
- description String
- Optional comment describing the CDN resource.
- name String
- CDN resource name.
- options Property Map
List of options that can be configured for the CDN resource.
In case of
nullvalue the option is not added to the CDN resource. Option may inherit its value from the global account settings.- origin String
IP address or domain name of the origin and the port, if custom port is used.
You can use either the
originororiginGroupparameter in the request.- origin
Group Number Origin group ID with which the CDN resource is associated.
You can use either the
originororiginGroupparameter in the request.- origin
Protocol String Protocol used by CDN servers to request content from an origin source.
Possible values:
- HTTPS - CDN servers will connect to the origin via HTTPS.
- HTTP - CDN servers will connect to the origin via HTTP.
- MATCH - connection protocol will be chosen automatically (content on the origin source should be available for the CDN both through HTTP and HTTPS).
If protocol is not specified, HTTP is used to connect to an origin server. Available values: "HTTP", "HTTPS", "MATCH".
- primary
Resource Number ID of the main CDN resource which has a shared caching zone with a reserve CDN resource.
If the parameter is not empty, then the current CDN resource is the reserve. You cannot change some options, create rules, set up origin shielding, or use the reserve CDN resource for Streaming.
- proxy
Ssl NumberCa ID of the trusted CA certificate used to verify an origin.
It can be used only with
<span pulumi-lang-nodejs=""proxySslEnabled"" pulumi-lang-dotnet=""ProxySslEnabled"" pulumi-lang-go=""proxySslEnabled"" pulumi-lang-python=""proxy_ssl_enabled"" pulumi-lang-yaml=""proxySslEnabled"" pulumi-lang-java=""proxySslEnabled"">"proxy_ssl_enabled"</span>: true.- proxy
Ssl NumberData ID of the SSL certificate used to verify an origin.
It can be used only with
<span pulumi-lang-nodejs=""proxySslEnabled"" pulumi-lang-dotnet=""ProxySslEnabled"" pulumi-lang-go=""proxySslEnabled"" pulumi-lang-python=""proxy_ssl_enabled"" pulumi-lang-yaml=""proxySslEnabled"" pulumi-lang-java=""proxySslEnabled"">"proxy_ssl_enabled"</span>: true.- proxy
Ssl BooleanEnabled Enables or disables SSL certificate validation of the origin server before completing any connection.
Possible values:
- true - Origin SSL certificate validation is enabled.
- false - Origin SSL certificate validation is disabled.
- secondary
Hostnames List<String> Additional delivery domains (CNAMEs) that will be used to deliver content via the CDN.
Up to ten additional CNAMEs are possible.
- ssl
Data Number ID of the SSL certificate linked to the CDN resource.
Can be used only with
"sslEnabled": true.- ssl
Enabled Boolean Defines whether the HTTPS protocol enabled for content delivery.
Possible values:
- true - HTTPS is enabled.
- false - HTTPS is disabled.
- waap
Api BooleanDomain Enabled Defines whether the associated WAAP Domain is identified as an API Domain.
Possible values:
- true - The associated WAAP Domain is designated as an API Domain.
- false - The associated WAAP Domain is not designated as an API Domain.
Outputs
All input properties are implicitly available as output properties. Additionally, the CdnResource resource produces the following output properties:
- Can
Purge boolBy Urls Defines whether the CDN resource can be used for purge by URLs feature.
It's available only in case the CDN resource has enabled
ignore_vary_headeroption.- Cdn
Resource doubleId - CDN resource ID.
- Client double
- ID of an account to which the CDN resource belongs.
- Created string
- Date of CDN resource creation.
- Full
Custom boolEnabled Defines whether the CDN resource has a custom configuration.
Possible values:
- true - CDN resource has a custom configuration. You cannot change resource settings, except for the SSL certificate. To change other settings, contact technical support.
- false - CDN resource has a regular configuration. You can change CDN resource settings.
- Id string
- The provider-assigned unique ID for this managed resource.
- Is
Primary bool Defines whether a CDN resource has a cache zone shared with other CDN resources.
Possible values:
- true - CDN resource is main and has a shared caching zone with other CDN resources, which are called reserve.
- false - CDN resource is reserve and it has a shared caching zone with the main CDN resource. You cannot change some options, create rules, set up origin shielding and use the reserve resource for Streaming.
- null - CDN resource does not have a shared cache zone.
The main CDN resource is specified in the
primary_resourcefield. It cannot be suspended unless all related reserve CDN resources are suspended.- Origin
Group stringName - Origin group name.
- Preset
Applied bool Defines whether the CDN resource has a preset applied.
Possible values:
- true - CDN resource has a preset applied. CDN resource options included in the preset cannot be edited.
- false - CDN resource does not have a preset applied.
- Rules List<string>
- Rules configured for the CDN resource.
- Shield
Dc string Name of the origin shielding location data center.
Parameter returns null if origin shielding is disabled.
- Shield
Enabled bool Defines whether origin shield is active and working for the CDN resource.
Possible values:
- true - Origin shield is active.
- false - Origin shield is not active.
- Shield
Routing doubleMap Defines whether the origin shield with a dynamic location is enabled for the CDN resource.
To manage origin shielding, you must contact customer support.
- Shielded bool
Defines whether origin shielding feature is enabled for the resource.
Possible values:
- true - Origin shielding is enabled.
- false - Origin shielding is disabled.
- Suspend
Date string Date when the CDN resource was suspended automatically if there is no traffic on it for 90 days.
Not specified if the resource was not stopped due to lack of traffic.
- Suspended bool
Defines whether the CDN resource has been automatically suspended because there was no traffic on it for 90 days.
Possible values:
- true - CDN resource is currently automatically suspended.
- false - CDN resource is not automatically suspended.
You can enable CDN resource using the
activefield. If there is no traffic on the CDN resource within seven days following activation, it will be suspended again.To avoid CDN resource suspension due to no traffic, contact technical support.
- Vp
Enabled bool Defines whether the CDN resource is integrated with the Streaming Platform.
Possible values:
- true - CDN resource is configured for Streaming Platform. Changing resource settings can affect its operation.
- false - CDN resource is not configured for Streaming Platform.
- Waap
Domain stringId - The ID of the associated WAAP domain.
- Can
Purge boolBy Urls Defines whether the CDN resource can be used for purge by URLs feature.
It's available only in case the CDN resource has enabled
ignore_vary_headeroption.- Cdn
Resource float64Id - CDN resource ID.
- Client float64
- ID of an account to which the CDN resource belongs.
- Created string
- Date of CDN resource creation.
- Full
Custom boolEnabled Defines whether the CDN resource has a custom configuration.
Possible values:
- true - CDN resource has a custom configuration. You cannot change resource settings, except for the SSL certificate. To change other settings, contact technical support.
- false - CDN resource has a regular configuration. You can change CDN resource settings.
- Id string
- The provider-assigned unique ID for this managed resource.
- Is
Primary bool Defines whether a CDN resource has a cache zone shared with other CDN resources.
Possible values:
- true - CDN resource is main and has a shared caching zone with other CDN resources, which are called reserve.
- false - CDN resource is reserve and it has a shared caching zone with the main CDN resource. You cannot change some options, create rules, set up origin shielding and use the reserve resource for Streaming.
- null - CDN resource does not have a shared cache zone.
The main CDN resource is specified in the
primary_resourcefield. It cannot be suspended unless all related reserve CDN resources are suspended.- Origin
Group stringName - Origin group name.
- Preset
Applied bool Defines whether the CDN resource has a preset applied.
Possible values:
- true - CDN resource has a preset applied. CDN resource options included in the preset cannot be edited.
- false - CDN resource does not have a preset applied.
- Rules []string
- Rules configured for the CDN resource.
- Shield
Dc string Name of the origin shielding location data center.
Parameter returns null if origin shielding is disabled.
- Shield
Enabled bool Defines whether origin shield is active and working for the CDN resource.
Possible values:
- true - Origin shield is active.
- false - Origin shield is not active.
- Shield
Routing float64Map Defines whether the origin shield with a dynamic location is enabled for the CDN resource.
To manage origin shielding, you must contact customer support.
- Shielded bool
Defines whether origin shielding feature is enabled for the resource.
Possible values:
- true - Origin shielding is enabled.
- false - Origin shielding is disabled.
- Suspend
Date string Date when the CDN resource was suspended automatically if there is no traffic on it for 90 days.
Not specified if the resource was not stopped due to lack of traffic.
- Suspended bool
Defines whether the CDN resource has been automatically suspended because there was no traffic on it for 90 days.
Possible values:
- true - CDN resource is currently automatically suspended.
- false - CDN resource is not automatically suspended.
You can enable CDN resource using the
activefield. If there is no traffic on the CDN resource within seven days following activation, it will be suspended again.To avoid CDN resource suspension due to no traffic, contact technical support.
- Vp
Enabled bool Defines whether the CDN resource is integrated with the Streaming Platform.
Possible values:
- true - CDN resource is configured for Streaming Platform. Changing resource settings can affect its operation.
- false - CDN resource is not configured for Streaming Platform.
- Waap
Domain stringId - The ID of the associated WAAP domain.
- can
Purge BooleanBy Urls Defines whether the CDN resource can be used for purge by URLs feature.
It's available only in case the CDN resource has enabled
ignore_vary_headeroption.- cdn
Resource DoubleId - CDN resource ID.
- client Double
- ID of an account to which the CDN resource belongs.
- created String
- Date of CDN resource creation.
- full
Custom BooleanEnabled Defines whether the CDN resource has a custom configuration.
Possible values:
- true - CDN resource has a custom configuration. You cannot change resource settings, except for the SSL certificate. To change other settings, contact technical support.
- false - CDN resource has a regular configuration. You can change CDN resource settings.
- id String
- The provider-assigned unique ID for this managed resource.
- is
Primary Boolean Defines whether a CDN resource has a cache zone shared with other CDN resources.
Possible values:
- true - CDN resource is main and has a shared caching zone with other CDN resources, which are called reserve.
- false - CDN resource is reserve and it has a shared caching zone with the main CDN resource. You cannot change some options, create rules, set up origin shielding and use the reserve resource for Streaming.
- null - CDN resource does not have a shared cache zone.
The main CDN resource is specified in the
primary_resourcefield. It cannot be suspended unless all related reserve CDN resources are suspended.- origin
Group StringName - Origin group name.
- preset
Applied Boolean Defines whether the CDN resource has a preset applied.
Possible values:
- true - CDN resource has a preset applied. CDN resource options included in the preset cannot be edited.
- false - CDN resource does not have a preset applied.
- rules List<String>
- Rules configured for the CDN resource.
- shield
Dc String Name of the origin shielding location data center.
Parameter returns null if origin shielding is disabled.
- shield
Enabled Boolean Defines whether origin shield is active and working for the CDN resource.
Possible values:
- true - Origin shield is active.
- false - Origin shield is not active.
- shield
Routing DoubleMap Defines whether the origin shield with a dynamic location is enabled for the CDN resource.
To manage origin shielding, you must contact customer support.
- shielded Boolean
Defines whether origin shielding feature is enabled for the resource.
Possible values:
- true - Origin shielding is enabled.
- false - Origin shielding is disabled.
- suspend
Date String Date when the CDN resource was suspended automatically if there is no traffic on it for 90 days.
Not specified if the resource was not stopped due to lack of traffic.
- suspended Boolean
Defines whether the CDN resource has been automatically suspended because there was no traffic on it for 90 days.
Possible values:
- true - CDN resource is currently automatically suspended.
- false - CDN resource is not automatically suspended.
You can enable CDN resource using the
activefield. If there is no traffic on the CDN resource within seven days following activation, it will be suspended again.To avoid CDN resource suspension due to no traffic, contact technical support.
- vp
Enabled Boolean Defines whether the CDN resource is integrated with the Streaming Platform.
Possible values:
- true - CDN resource is configured for Streaming Platform. Changing resource settings can affect its operation.
- false - CDN resource is not configured for Streaming Platform.
- waap
Domain StringId - The ID of the associated WAAP domain.
- can
Purge booleanBy Urls Defines whether the CDN resource can be used for purge by URLs feature.
It's available only in case the CDN resource has enabled
ignore_vary_headeroption.- cdn
Resource numberId - CDN resource ID.
- client number
- ID of an account to which the CDN resource belongs.
- created string
- Date of CDN resource creation.
- full
Custom booleanEnabled Defines whether the CDN resource has a custom configuration.
Possible values:
- true - CDN resource has a custom configuration. You cannot change resource settings, except for the SSL certificate. To change other settings, contact technical support.
- false - CDN resource has a regular configuration. You can change CDN resource settings.
- id string
- The provider-assigned unique ID for this managed resource.
- is
Primary boolean Defines whether a CDN resource has a cache zone shared with other CDN resources.
Possible values:
- true - CDN resource is main and has a shared caching zone with other CDN resources, which are called reserve.
- false - CDN resource is reserve and it has a shared caching zone with the main CDN resource. You cannot change some options, create rules, set up origin shielding and use the reserve resource for Streaming.
- null - CDN resource does not have a shared cache zone.
The main CDN resource is specified in the
primary_resourcefield. It cannot be suspended unless all related reserve CDN resources are suspended.- origin
Group stringName - Origin group name.
- preset
Applied boolean Defines whether the CDN resource has a preset applied.
Possible values:
- true - CDN resource has a preset applied. CDN resource options included in the preset cannot be edited.
- false - CDN resource does not have a preset applied.
- rules string[]
- Rules configured for the CDN resource.
- shield
Dc string Name of the origin shielding location data center.
Parameter returns null if origin shielding is disabled.
- shield
Enabled boolean Defines whether origin shield is active and working for the CDN resource.
Possible values:
- true - Origin shield is active.
- false - Origin shield is not active.
- shield
Routing numberMap Defines whether the origin shield with a dynamic location is enabled for the CDN resource.
To manage origin shielding, you must contact customer support.
- shielded boolean
Defines whether origin shielding feature is enabled for the resource.
Possible values:
- true - Origin shielding is enabled.
- false - Origin shielding is disabled.
- suspend
Date string Date when the CDN resource was suspended automatically if there is no traffic on it for 90 days.
Not specified if the resource was not stopped due to lack of traffic.
- suspended boolean
Defines whether the CDN resource has been automatically suspended because there was no traffic on it for 90 days.
Possible values:
- true - CDN resource is currently automatically suspended.
- false - CDN resource is not automatically suspended.
You can enable CDN resource using the
activefield. If there is no traffic on the CDN resource within seven days following activation, it will be suspended again.To avoid CDN resource suspension due to no traffic, contact technical support.
- vp
Enabled boolean Defines whether the CDN resource is integrated with the Streaming Platform.
Possible values:
- true - CDN resource is configured for Streaming Platform. Changing resource settings can affect its operation.
- false - CDN resource is not configured for Streaming Platform.
- waap
Domain stringId - The ID of the associated WAAP domain.
- can_
purge_ boolby_ urls Defines whether the CDN resource can be used for purge by URLs feature.
It's available only in case the CDN resource has enabled
ignore_vary_headeroption.- cdn_
resource_ floatid - CDN resource ID.
- client float
- ID of an account to which the CDN resource belongs.
- created str
- Date of CDN resource creation.
- full_
custom_ boolenabled Defines whether the CDN resource has a custom configuration.
Possible values:
- true - CDN resource has a custom configuration. You cannot change resource settings, except for the SSL certificate. To change other settings, contact technical support.
- false - CDN resource has a regular configuration. You can change CDN resource settings.
- id str
- The provider-assigned unique ID for this managed resource.
- is_
primary bool Defines whether a CDN resource has a cache zone shared with other CDN resources.
Possible values:
- true - CDN resource is main and has a shared caching zone with other CDN resources, which are called reserve.
- false - CDN resource is reserve and it has a shared caching zone with the main CDN resource. You cannot change some options, create rules, set up origin shielding and use the reserve resource for Streaming.
- null - CDN resource does not have a shared cache zone.
The main CDN resource is specified in the
primary_resourcefield. It cannot be suspended unless all related reserve CDN resources are suspended.- origin_
group_ strname - Origin group name.
- preset_
applied bool Defines whether the CDN resource has a preset applied.
Possible values:
- true - CDN resource has a preset applied. CDN resource options included in the preset cannot be edited.
- false - CDN resource does not have a preset applied.
- rules Sequence[str]
- Rules configured for the CDN resource.
- shield_
dc str Name of the origin shielding location data center.
Parameter returns null if origin shielding is disabled.
- shield_
enabled bool Defines whether origin shield is active and working for the CDN resource.
Possible values:
- true - Origin shield is active.
- false - Origin shield is not active.
- shield_
routing_ floatmap Defines whether the origin shield with a dynamic location is enabled for the CDN resource.
To manage origin shielding, you must contact customer support.
- shielded bool
Defines whether origin shielding feature is enabled for the resource.
Possible values:
- true - Origin shielding is enabled.
- false - Origin shielding is disabled.
- suspend_
date str Date when the CDN resource was suspended automatically if there is no traffic on it for 90 days.
Not specified if the resource was not stopped due to lack of traffic.
- suspended bool
Defines whether the CDN resource has been automatically suspended because there was no traffic on it for 90 days.
Possible values:
- true - CDN resource is currently automatically suspended.
- false - CDN resource is not automatically suspended.
You can enable CDN resource using the
activefield. If there is no traffic on the CDN resource within seven days following activation, it will be suspended again.To avoid CDN resource suspension due to no traffic, contact technical support.
- vp_
enabled bool Defines whether the CDN resource is integrated with the Streaming Platform.
Possible values:
- true - CDN resource is configured for Streaming Platform. Changing resource settings can affect its operation.
- false - CDN resource is not configured for Streaming Platform.
- waap_
domain_ strid - The ID of the associated WAAP domain.
- can
Purge BooleanBy Urls Defines whether the CDN resource can be used for purge by URLs feature.
It's available only in case the CDN resource has enabled
ignore_vary_headeroption.- cdn
Resource NumberId - CDN resource ID.
- client Number
- ID of an account to which the CDN resource belongs.
- created String
- Date of CDN resource creation.
- full
Custom BooleanEnabled Defines whether the CDN resource has a custom configuration.
Possible values:
- true - CDN resource has a custom configuration. You cannot change resource settings, except for the SSL certificate. To change other settings, contact technical support.
- false - CDN resource has a regular configuration. You can change CDN resource settings.
- id String
- The provider-assigned unique ID for this managed resource.
- is
Primary Boolean Defines whether a CDN resource has a cache zone shared with other CDN resources.
Possible values:
- true - CDN resource is main and has a shared caching zone with other CDN resources, which are called reserve.
- false - CDN resource is reserve and it has a shared caching zone with the main CDN resource. You cannot change some options, create rules, set up origin shielding and use the reserve resource for Streaming.
- null - CDN resource does not have a shared cache zone.
The main CDN resource is specified in the
primary_resourcefield. It cannot be suspended unless all related reserve CDN resources are suspended.- origin
Group StringName - Origin group name.
- preset
Applied Boolean Defines whether the CDN resource has a preset applied.
Possible values:
- true - CDN resource has a preset applied. CDN resource options included in the preset cannot be edited.
- false - CDN resource does not have a preset applied.
- rules List<String>
- Rules configured for the CDN resource.
- shield
Dc String Name of the origin shielding location data center.
Parameter returns null if origin shielding is disabled.
- shield
Enabled Boolean Defines whether origin shield is active and working for the CDN resource.
Possible values:
- true - Origin shield is active.
- false - Origin shield is not active.
- shield
Routing NumberMap Defines whether the origin shield with a dynamic location is enabled for the CDN resource.
To manage origin shielding, you must contact customer support.
- shielded Boolean
Defines whether origin shielding feature is enabled for the resource.
Possible values:
- true - Origin shielding is enabled.
- false - Origin shielding is disabled.
- suspend
Date String Date when the CDN resource was suspended automatically if there is no traffic on it for 90 days.
Not specified if the resource was not stopped due to lack of traffic.
- suspended Boolean
Defines whether the CDN resource has been automatically suspended because there was no traffic on it for 90 days.
Possible values:
- true - CDN resource is currently automatically suspended.
- false - CDN resource is not automatically suspended.
You can enable CDN resource using the
activefield. If there is no traffic on the CDN resource within seven days following activation, it will be suspended again.To avoid CDN resource suspension due to no traffic, contact technical support.
- vp
Enabled Boolean Defines whether the CDN resource is integrated with the Streaming Platform.
Possible values:
- true - CDN resource is configured for Streaming Platform. Changing resource settings can affect its operation.
- false - CDN resource is not configured for Streaming Platform.
- waap
Domain StringId - The ID of the associated WAAP domain.
Look up Existing CdnResource Resource
Get an existing CdnResource resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: CdnResourceState, opts?: CustomResourceOptions): CdnResource@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
active: Optional[bool] = None,
can_purge_by_urls: Optional[bool] = None,
cdn_resource_id: Optional[float] = None,
client: Optional[float] = None,
cname: Optional[str] = None,
created: Optional[str] = None,
description: Optional[str] = None,
full_custom_enabled: Optional[bool] = None,
is_primary: Optional[bool] = None,
name: Optional[str] = None,
options: Optional[CdnResourceOptionsArgs] = None,
origin: Optional[str] = None,
origin_group: Optional[float] = None,
origin_group_name: Optional[str] = None,
origin_protocol: Optional[str] = None,
preset_applied: Optional[bool] = None,
primary_resource: Optional[float] = None,
proxy_ssl_ca: Optional[float] = None,
proxy_ssl_data: Optional[float] = None,
proxy_ssl_enabled: Optional[bool] = None,
rules: Optional[Sequence[str]] = None,
secondary_hostnames: Optional[Sequence[str]] = None,
shield_dc: Optional[str] = None,
shield_enabled: Optional[bool] = None,
shield_routing_map: Optional[float] = None,
shielded: Optional[bool] = None,
ssl_data: Optional[float] = None,
ssl_enabled: Optional[bool] = None,
suspend_date: Optional[str] = None,
suspended: Optional[bool] = None,
vp_enabled: Optional[bool] = None,
waap_api_domain_enabled: Optional[bool] = None,
waap_domain_id: Optional[str] = None) -> CdnResourcefunc GetCdnResource(ctx *Context, name string, id IDInput, state *CdnResourceState, opts ...ResourceOption) (*CdnResource, error)public static CdnResource Get(string name, Input<string> id, CdnResourceState? state, CustomResourceOptions? opts = null)public static CdnResource get(String name, Output<String> id, CdnResourceState state, CustomResourceOptions options)resources: _: type: gcore:CdnResource get: id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Active bool
Enables or disables a CDN resource.
Possible values:
- true - CDN resource is active. Content is being delivered.
- false - CDN resource is deactivated. Content is not being delivered.
- Can
Purge boolBy Urls Defines whether the CDN resource can be used for purge by URLs feature.
It's available only in case the CDN resource has enabled
ignore_vary_headeroption.- Cdn
Resource doubleId - CDN resource ID.
- Client double
- ID of an account to which the CDN resource belongs.
- Cname string
- Delivery domains that will be used for content delivery through a CDN.
- Created string
- Date of CDN resource creation.
- Description string
- Optional comment describing the CDN resource.
- Full
Custom boolEnabled Defines whether the CDN resource has a custom configuration.
Possible values:
- true - CDN resource has a custom configuration. You cannot change resource settings, except for the SSL certificate. To change other settings, contact technical support.
- false - CDN resource has a regular configuration. You can change CDN resource settings.
- Is
Primary bool Defines whether a CDN resource has a cache zone shared with other CDN resources.
Possible values:
- true - CDN resource is main and has a shared caching zone with other CDN resources, which are called reserve.
- false - CDN resource is reserve and it has a shared caching zone with the main CDN resource. You cannot change some options, create rules, set up origin shielding and use the reserve resource for Streaming.
- null - CDN resource does not have a shared cache zone.
The main CDN resource is specified in the
primary_resourcefield. It cannot be suspended unless all related reserve CDN resources are suspended.- Name string
- CDN resource name.
- Options
Cdn
Resource Options List of options that can be configured for the CDN resource.
In case of
nullvalue the option is not added to the CDN resource. Option may inherit its value from the global account settings.- Origin string
IP address or domain name of the origin and the port, if custom port is used.
You can use either the
originororiginGroupparameter in the request.- Origin
Group double Origin group ID with which the CDN resource is associated.
You can use either the
originororiginGroupparameter in the request.- Origin
Group stringName - Origin group name.
- Origin
Protocol string Protocol used by CDN servers to request content from an origin source.
Possible values:
- HTTPS - CDN servers will connect to the origin via HTTPS.
- HTTP - CDN servers will connect to the origin via HTTP.
- MATCH - connection protocol will be chosen automatically (content on the origin source should be available for the CDN both through HTTP and HTTPS).
If protocol is not specified, HTTP is used to connect to an origin server. Available values: "HTTP", "HTTPS", "MATCH".
- Preset
Applied bool Defines whether the CDN resource has a preset applied.
Possible values:
- true - CDN resource has a preset applied. CDN resource options included in the preset cannot be edited.
- false - CDN resource does not have a preset applied.
- Primary
Resource double ID of the main CDN resource which has a shared caching zone with a reserve CDN resource.
If the parameter is not empty, then the current CDN resource is the reserve. You cannot change some options, create rules, set up origin shielding, or use the reserve CDN resource for Streaming.
- Proxy
Ssl doubleCa ID of the trusted CA certificate used to verify an origin.
It can be used only with
<span pulumi-lang-nodejs=""proxySslEnabled"" pulumi-lang-dotnet=""ProxySslEnabled"" pulumi-lang-go=""proxySslEnabled"" pulumi-lang-python=""proxy_ssl_enabled"" pulumi-lang-yaml=""proxySslEnabled"" pulumi-lang-java=""proxySslEnabled"">"proxy_ssl_enabled"</span>: true.- Proxy
Ssl doubleData ID of the SSL certificate used to verify an origin.
It can be used only with
<span pulumi-lang-nodejs=""proxySslEnabled"" pulumi-lang-dotnet=""ProxySslEnabled"" pulumi-lang-go=""proxySslEnabled"" pulumi-lang-python=""proxy_ssl_enabled"" pulumi-lang-yaml=""proxySslEnabled"" pulumi-lang-java=""proxySslEnabled"">"proxy_ssl_enabled"</span>: true.- Proxy
Ssl boolEnabled Enables or disables SSL certificate validation of the origin server before completing any connection.
Possible values:
- true - Origin SSL certificate validation is enabled.
- false - Origin SSL certificate validation is disabled.
- Rules List<string>
- Rules configured for the CDN resource.
- Secondary
Hostnames List<string> Additional delivery domains (CNAMEs) that will be used to deliver content via the CDN.
Up to ten additional CNAMEs are possible.
- Shield
Dc string Name of the origin shielding location data center.
Parameter returns null if origin shielding is disabled.
- Shield
Enabled bool Defines whether origin shield is active and working for the CDN resource.
Possible values:
- true - Origin shield is active.
- false - Origin shield is not active.
- Shield
Routing doubleMap Defines whether the origin shield with a dynamic location is enabled for the CDN resource.
To manage origin shielding, you must contact customer support.
- Shielded bool
Defines whether origin shielding feature is enabled for the resource.
Possible values:
- true - Origin shielding is enabled.
- false - Origin shielding is disabled.
- Ssl
Data double ID of the SSL certificate linked to the CDN resource.
Can be used only with
"sslEnabled": true.- Ssl
Enabled bool Defines whether the HTTPS protocol enabled for content delivery.
Possible values:
- true - HTTPS is enabled.
- false - HTTPS is disabled.
- Suspend
Date string Date when the CDN resource was suspended automatically if there is no traffic on it for 90 days.
Not specified if the resource was not stopped due to lack of traffic.
- Suspended bool
Defines whether the CDN resource has been automatically suspended because there was no traffic on it for 90 days.
Possible values:
- true - CDN resource is currently automatically suspended.
- false - CDN resource is not automatically suspended.
You can enable CDN resource using the
activefield. If there is no traffic on the CDN resource within seven days following activation, it will be suspended again.To avoid CDN resource suspension due to no traffic, contact technical support.
- Vp
Enabled bool Defines whether the CDN resource is integrated with the Streaming Platform.
Possible values:
- true - CDN resource is configured for Streaming Platform. Changing resource settings can affect its operation.
- false - CDN resource is not configured for Streaming Platform.
- Waap
Api boolDomain Enabled Defines whether the associated WAAP Domain is identified as an API Domain.
Possible values:
- true - The associated WAAP Domain is designated as an API Domain.
- false - The associated WAAP Domain is not designated as an API Domain.
- Waap
Domain stringId - The ID of the associated WAAP domain.
- Active bool
Enables or disables a CDN resource.
Possible values:
- true - CDN resource is active. Content is being delivered.
- false - CDN resource is deactivated. Content is not being delivered.
- Can
Purge boolBy Urls Defines whether the CDN resource can be used for purge by URLs feature.
It's available only in case the CDN resource has enabled
ignore_vary_headeroption.- Cdn
Resource float64Id - CDN resource ID.
- Client float64
- ID of an account to which the CDN resource belongs.
- Cname string
- Delivery domains that will be used for content delivery through a CDN.
- Created string
- Date of CDN resource creation.
- Description string
- Optional comment describing the CDN resource.
- Full
Custom boolEnabled Defines whether the CDN resource has a custom configuration.
Possible values:
- true - CDN resource has a custom configuration. You cannot change resource settings, except for the SSL certificate. To change other settings, contact technical support.
- false - CDN resource has a regular configuration. You can change CDN resource settings.
- Is
Primary bool Defines whether a CDN resource has a cache zone shared with other CDN resources.
Possible values:
- true - CDN resource is main and has a shared caching zone with other CDN resources, which are called reserve.
- false - CDN resource is reserve and it has a shared caching zone with the main CDN resource. You cannot change some options, create rules, set up origin shielding and use the reserve resource for Streaming.
- null - CDN resource does not have a shared cache zone.
The main CDN resource is specified in the
primary_resourcefield. It cannot be suspended unless all related reserve CDN resources are suspended.- Name string
- CDN resource name.
- Options
Cdn
Resource Options Args List of options that can be configured for the CDN resource.
In case of
nullvalue the option is not added to the CDN resource. Option may inherit its value from the global account settings.- Origin string
IP address or domain name of the origin and the port, if custom port is used.
You can use either the
originororiginGroupparameter in the request.- Origin
Group float64 Origin group ID with which the CDN resource is associated.
You can use either the
originororiginGroupparameter in the request.- Origin
Group stringName - Origin group name.
- Origin
Protocol string Protocol used by CDN servers to request content from an origin source.
Possible values:
- HTTPS - CDN servers will connect to the origin via HTTPS.
- HTTP - CDN servers will connect to the origin via HTTP.
- MATCH - connection protocol will be chosen automatically (content on the origin source should be available for the CDN both through HTTP and HTTPS).
If protocol is not specified, HTTP is used to connect to an origin server. Available values: "HTTP", "HTTPS", "MATCH".
- Preset
Applied bool Defines whether the CDN resource has a preset applied.
Possible values:
- true - CDN resource has a preset applied. CDN resource options included in the preset cannot be edited.
- false - CDN resource does not have a preset applied.
- Primary
Resource float64 ID of the main CDN resource which has a shared caching zone with a reserve CDN resource.
If the parameter is not empty, then the current CDN resource is the reserve. You cannot change some options, create rules, set up origin shielding, or use the reserve CDN resource for Streaming.
- Proxy
Ssl float64Ca ID of the trusted CA certificate used to verify an origin.
It can be used only with
<span pulumi-lang-nodejs=""proxySslEnabled"" pulumi-lang-dotnet=""ProxySslEnabled"" pulumi-lang-go=""proxySslEnabled"" pulumi-lang-python=""proxy_ssl_enabled"" pulumi-lang-yaml=""proxySslEnabled"" pulumi-lang-java=""proxySslEnabled"">"proxy_ssl_enabled"</span>: true.- Proxy
Ssl float64Data ID of the SSL certificate used to verify an origin.
It can be used only with
<span pulumi-lang-nodejs=""proxySslEnabled"" pulumi-lang-dotnet=""ProxySslEnabled"" pulumi-lang-go=""proxySslEnabled"" pulumi-lang-python=""proxy_ssl_enabled"" pulumi-lang-yaml=""proxySslEnabled"" pulumi-lang-java=""proxySslEnabled"">"proxy_ssl_enabled"</span>: true.- Proxy
Ssl boolEnabled Enables or disables SSL certificate validation of the origin server before completing any connection.
Possible values:
- true - Origin SSL certificate validation is enabled.
- false - Origin SSL certificate validation is disabled.
- Rules []string
- Rules configured for the CDN resource.
- Secondary
Hostnames []string Additional delivery domains (CNAMEs) that will be used to deliver content via the CDN.
Up to ten additional CNAMEs are possible.
- Shield
Dc string Name of the origin shielding location data center.
Parameter returns null if origin shielding is disabled.
- Shield
Enabled bool Defines whether origin shield is active and working for the CDN resource.
Possible values:
- true - Origin shield is active.
- false - Origin shield is not active.
- Shield
Routing float64Map Defines whether the origin shield with a dynamic location is enabled for the CDN resource.
To manage origin shielding, you must contact customer support.
- Shielded bool
Defines whether origin shielding feature is enabled for the resource.
Possible values:
- true - Origin shielding is enabled.
- false - Origin shielding is disabled.
- Ssl
Data float64 ID of the SSL certificate linked to the CDN resource.
Can be used only with
"sslEnabled": true.- Ssl
Enabled bool Defines whether the HTTPS protocol enabled for content delivery.
Possible values:
- true - HTTPS is enabled.
- false - HTTPS is disabled.
- Suspend
Date string Date when the CDN resource was suspended automatically if there is no traffic on it for 90 days.
Not specified if the resource was not stopped due to lack of traffic.
- Suspended bool
Defines whether the CDN resource has been automatically suspended because there was no traffic on it for 90 days.
Possible values:
- true - CDN resource is currently automatically suspended.
- false - CDN resource is not automatically suspended.
You can enable CDN resource using the
activefield. If there is no traffic on the CDN resource within seven days following activation, it will be suspended again.To avoid CDN resource suspension due to no traffic, contact technical support.
- Vp
Enabled bool Defines whether the CDN resource is integrated with the Streaming Platform.
Possible values:
- true - CDN resource is configured for Streaming Platform. Changing resource settings can affect its operation.
- false - CDN resource is not configured for Streaming Platform.
- Waap
Api boolDomain Enabled Defines whether the associated WAAP Domain is identified as an API Domain.
Possible values:
- true - The associated WAAP Domain is designated as an API Domain.
- false - The associated WAAP Domain is not designated as an API Domain.
- Waap
Domain stringId - The ID of the associated WAAP domain.
- active Boolean
Enables or disables a CDN resource.
Possible values:
- true - CDN resource is active. Content is being delivered.
- false - CDN resource is deactivated. Content is not being delivered.
- can
Purge BooleanBy Urls Defines whether the CDN resource can be used for purge by URLs feature.
It's available only in case the CDN resource has enabled
ignore_vary_headeroption.- cdn
Resource DoubleId - CDN resource ID.
- client Double
- ID of an account to which the CDN resource belongs.
- cname String
- Delivery domains that will be used for content delivery through a CDN.
- created String
- Date of CDN resource creation.
- description String
- Optional comment describing the CDN resource.
- full
Custom BooleanEnabled Defines whether the CDN resource has a custom configuration.
Possible values:
- true - CDN resource has a custom configuration. You cannot change resource settings, except for the SSL certificate. To change other settings, contact technical support.
- false - CDN resource has a regular configuration. You can change CDN resource settings.
- is
Primary Boolean Defines whether a CDN resource has a cache zone shared with other CDN resources.
Possible values:
- true - CDN resource is main and has a shared caching zone with other CDN resources, which are called reserve.
- false - CDN resource is reserve and it has a shared caching zone with the main CDN resource. You cannot change some options, create rules, set up origin shielding and use the reserve resource for Streaming.
- null - CDN resource does not have a shared cache zone.
The main CDN resource is specified in the
primary_resourcefield. It cannot be suspended unless all related reserve CDN resources are suspended.- name String
- CDN resource name.
- options
Cdn
Resource Options List of options that can be configured for the CDN resource.
In case of
nullvalue the option is not added to the CDN resource. Option may inherit its value from the global account settings.- origin String
IP address or domain name of the origin and the port, if custom port is used.
You can use either the
originororiginGroupparameter in the request.- origin
Group Double Origin group ID with which the CDN resource is associated.
You can use either the
originororiginGroupparameter in the request.- origin
Group StringName - Origin group name.
- origin
Protocol String Protocol used by CDN servers to request content from an origin source.
Possible values:
- HTTPS - CDN servers will connect to the origin via HTTPS.
- HTTP - CDN servers will connect to the origin via HTTP.
- MATCH - connection protocol will be chosen automatically (content on the origin source should be available for the CDN both through HTTP and HTTPS).
If protocol is not specified, HTTP is used to connect to an origin server. Available values: "HTTP", "HTTPS", "MATCH".
- preset
Applied Boolean Defines whether the CDN resource has a preset applied.
Possible values:
- true - CDN resource has a preset applied. CDN resource options included in the preset cannot be edited.
- false - CDN resource does not have a preset applied.
- primary
Resource Double ID of the main CDN resource which has a shared caching zone with a reserve CDN resource.
If the parameter is not empty, then the current CDN resource is the reserve. You cannot change some options, create rules, set up origin shielding, or use the reserve CDN resource for Streaming.
- proxy
Ssl DoubleCa ID of the trusted CA certificate used to verify an origin.
It can be used only with
<span pulumi-lang-nodejs=""proxySslEnabled"" pulumi-lang-dotnet=""ProxySslEnabled"" pulumi-lang-go=""proxySslEnabled"" pulumi-lang-python=""proxy_ssl_enabled"" pulumi-lang-yaml=""proxySslEnabled"" pulumi-lang-java=""proxySslEnabled"">"proxy_ssl_enabled"</span>: true.- proxy
Ssl DoubleData ID of the SSL certificate used to verify an origin.
It can be used only with
<span pulumi-lang-nodejs=""proxySslEnabled"" pulumi-lang-dotnet=""ProxySslEnabled"" pulumi-lang-go=""proxySslEnabled"" pulumi-lang-python=""proxy_ssl_enabled"" pulumi-lang-yaml=""proxySslEnabled"" pulumi-lang-java=""proxySslEnabled"">"proxy_ssl_enabled"</span>: true.- proxy
Ssl BooleanEnabled Enables or disables SSL certificate validation of the origin server before completing any connection.
Possible values:
- true - Origin SSL certificate validation is enabled.
- false - Origin SSL certificate validation is disabled.
- rules List<String>
- Rules configured for the CDN resource.
- secondary
Hostnames List<String> Additional delivery domains (CNAMEs) that will be used to deliver content via the CDN.
Up to ten additional CNAMEs are possible.
- shield
Dc String Name of the origin shielding location data center.
Parameter returns null if origin shielding is disabled.
- shield
Enabled Boolean Defines whether origin shield is active and working for the CDN resource.
Possible values:
- true - Origin shield is active.
- false - Origin shield is not active.
- shield
Routing DoubleMap Defines whether the origin shield with a dynamic location is enabled for the CDN resource.
To manage origin shielding, you must contact customer support.
- shielded Boolean
Defines whether origin shielding feature is enabled for the resource.
Possible values:
- true - Origin shielding is enabled.
- false - Origin shielding is disabled.
- ssl
Data Double ID of the SSL certificate linked to the CDN resource.
Can be used only with
"sslEnabled": true.- ssl
Enabled Boolean Defines whether the HTTPS protocol enabled for content delivery.
Possible values:
- true - HTTPS is enabled.
- false - HTTPS is disabled.
- suspend
Date String Date when the CDN resource was suspended automatically if there is no traffic on it for 90 days.
Not specified if the resource was not stopped due to lack of traffic.
- suspended Boolean
Defines whether the CDN resource has been automatically suspended because there was no traffic on it for 90 days.
Possible values:
- true - CDN resource is currently automatically suspended.
- false - CDN resource is not automatically suspended.
You can enable CDN resource using the
activefield. If there is no traffic on the CDN resource within seven days following activation, it will be suspended again.To avoid CDN resource suspension due to no traffic, contact technical support.
- vp
Enabled Boolean Defines whether the CDN resource is integrated with the Streaming Platform.
Possible values:
- true - CDN resource is configured for Streaming Platform. Changing resource settings can affect its operation.
- false - CDN resource is not configured for Streaming Platform.
- waap
Api BooleanDomain Enabled Defines whether the associated WAAP Domain is identified as an API Domain.
Possible values:
- true - The associated WAAP Domain is designated as an API Domain.
- false - The associated WAAP Domain is not designated as an API Domain.
- waap
Domain StringId - The ID of the associated WAAP domain.
- active boolean
Enables or disables a CDN resource.
Possible values:
- true - CDN resource is active. Content is being delivered.
- false - CDN resource is deactivated. Content is not being delivered.
- can
Purge booleanBy Urls Defines whether the CDN resource can be used for purge by URLs feature.
It's available only in case the CDN resource has enabled
ignore_vary_headeroption.- cdn
Resource numberId - CDN resource ID.
- client number
- ID of an account to which the CDN resource belongs.
- cname string
- Delivery domains that will be used for content delivery through a CDN.
- created string
- Date of CDN resource creation.
- description string
- Optional comment describing the CDN resource.
- full
Custom booleanEnabled Defines whether the CDN resource has a custom configuration.
Possible values:
- true - CDN resource has a custom configuration. You cannot change resource settings, except for the SSL certificate. To change other settings, contact technical support.
- false - CDN resource has a regular configuration. You can change CDN resource settings.
- is
Primary boolean Defines whether a CDN resource has a cache zone shared with other CDN resources.
Possible values:
- true - CDN resource is main and has a shared caching zone with other CDN resources, which are called reserve.
- false - CDN resource is reserve and it has a shared caching zone with the main CDN resource. You cannot change some options, create rules, set up origin shielding and use the reserve resource for Streaming.
- null - CDN resource does not have a shared cache zone.
The main CDN resource is specified in the
primary_resourcefield. It cannot be suspended unless all related reserve CDN resources are suspended.- name string
- CDN resource name.
- options
Cdn
Resource Options List of options that can be configured for the CDN resource.
In case of
nullvalue the option is not added to the CDN resource. Option may inherit its value from the global account settings.- origin string
IP address or domain name of the origin and the port, if custom port is used.
You can use either the
originororiginGroupparameter in the request.- origin
Group number Origin group ID with which the CDN resource is associated.
You can use either the
originororiginGroupparameter in the request.- origin
Group stringName - Origin group name.
- origin
Protocol string Protocol used by CDN servers to request content from an origin source.
Possible values:
- HTTPS - CDN servers will connect to the origin via HTTPS.
- HTTP - CDN servers will connect to the origin via HTTP.
- MATCH - connection protocol will be chosen automatically (content on the origin source should be available for the CDN both through HTTP and HTTPS).
If protocol is not specified, HTTP is used to connect to an origin server. Available values: "HTTP", "HTTPS", "MATCH".
- preset
Applied boolean Defines whether the CDN resource has a preset applied.
Possible values:
- true - CDN resource has a preset applied. CDN resource options included in the preset cannot be edited.
- false - CDN resource does not have a preset applied.
- primary
Resource number ID of the main CDN resource which has a shared caching zone with a reserve CDN resource.
If the parameter is not empty, then the current CDN resource is the reserve. You cannot change some options, create rules, set up origin shielding, or use the reserve CDN resource for Streaming.
- proxy
Ssl numberCa ID of the trusted CA certificate used to verify an origin.
It can be used only with
<span pulumi-lang-nodejs=""proxySslEnabled"" pulumi-lang-dotnet=""ProxySslEnabled"" pulumi-lang-go=""proxySslEnabled"" pulumi-lang-python=""proxy_ssl_enabled"" pulumi-lang-yaml=""proxySslEnabled"" pulumi-lang-java=""proxySslEnabled"">"proxy_ssl_enabled"</span>: true.- proxy
Ssl numberData ID of the SSL certificate used to verify an origin.
It can be used only with
<span pulumi-lang-nodejs=""proxySslEnabled"" pulumi-lang-dotnet=""ProxySslEnabled"" pulumi-lang-go=""proxySslEnabled"" pulumi-lang-python=""proxy_ssl_enabled"" pulumi-lang-yaml=""proxySslEnabled"" pulumi-lang-java=""proxySslEnabled"">"proxy_ssl_enabled"</span>: true.- proxy
Ssl booleanEnabled Enables or disables SSL certificate validation of the origin server before completing any connection.
Possible values:
- true - Origin SSL certificate validation is enabled.
- false - Origin SSL certificate validation is disabled.
- rules string[]
- Rules configured for the CDN resource.
- secondary
Hostnames string[] Additional delivery domains (CNAMEs) that will be used to deliver content via the CDN.
Up to ten additional CNAMEs are possible.
- shield
Dc string Name of the origin shielding location data center.
Parameter returns null if origin shielding is disabled.
- shield
Enabled boolean Defines whether origin shield is active and working for the CDN resource.
Possible values:
- true - Origin shield is active.
- false - Origin shield is not active.
- shield
Routing numberMap Defines whether the origin shield with a dynamic location is enabled for the CDN resource.
To manage origin shielding, you must contact customer support.
- shielded boolean
Defines whether origin shielding feature is enabled for the resource.
Possible values:
- true - Origin shielding is enabled.
- false - Origin shielding is disabled.
- ssl
Data number ID of the SSL certificate linked to the CDN resource.
Can be used only with
"sslEnabled": true.- ssl
Enabled boolean Defines whether the HTTPS protocol enabled for content delivery.
Possible values:
- true - HTTPS is enabled.
- false - HTTPS is disabled.
- suspend
Date string Date when the CDN resource was suspended automatically if there is no traffic on it for 90 days.
Not specified if the resource was not stopped due to lack of traffic.
- suspended boolean
Defines whether the CDN resource has been automatically suspended because there was no traffic on it for 90 days.
Possible values:
- true - CDN resource is currently automatically suspended.
- false - CDN resource is not automatically suspended.
You can enable CDN resource using the
activefield. If there is no traffic on the CDN resource within seven days following activation, it will be suspended again.To avoid CDN resource suspension due to no traffic, contact technical support.
- vp
Enabled boolean Defines whether the CDN resource is integrated with the Streaming Platform.
Possible values:
- true - CDN resource is configured for Streaming Platform. Changing resource settings can affect its operation.
- false - CDN resource is not configured for Streaming Platform.
- waap
Api booleanDomain Enabled Defines whether the associated WAAP Domain is identified as an API Domain.
Possible values:
- true - The associated WAAP Domain is designated as an API Domain.
- false - The associated WAAP Domain is not designated as an API Domain.
- waap
Domain stringId - The ID of the associated WAAP domain.
- active bool
Enables or disables a CDN resource.
Possible values:
- true - CDN resource is active. Content is being delivered.
- false - CDN resource is deactivated. Content is not being delivered.
- can_
purge_ boolby_ urls Defines whether the CDN resource can be used for purge by URLs feature.
It's available only in case the CDN resource has enabled
ignore_vary_headeroption.- cdn_
resource_ floatid - CDN resource ID.
- client float
- ID of an account to which the CDN resource belongs.
- cname str
- Delivery domains that will be used for content delivery through a CDN.
- created str
- Date of CDN resource creation.
- description str
- Optional comment describing the CDN resource.
- full_
custom_ boolenabled Defines whether the CDN resource has a custom configuration.
Possible values:
- true - CDN resource has a custom configuration. You cannot change resource settings, except for the SSL certificate. To change other settings, contact technical support.
- false - CDN resource has a regular configuration. You can change CDN resource settings.
- is_
primary bool Defines whether a CDN resource has a cache zone shared with other CDN resources.
Possible values:
- true - CDN resource is main and has a shared caching zone with other CDN resources, which are called reserve.
- false - CDN resource is reserve and it has a shared caching zone with the main CDN resource. You cannot change some options, create rules, set up origin shielding and use the reserve resource for Streaming.
- null - CDN resource does not have a shared cache zone.
The main CDN resource is specified in the
primary_resourcefield. It cannot be suspended unless all related reserve CDN resources are suspended.- name str
- CDN resource name.
- options
Cdn
Resource Options Args List of options that can be configured for the CDN resource.
In case of
nullvalue the option is not added to the CDN resource. Option may inherit its value from the global account settings.- origin str
IP address or domain name of the origin and the port, if custom port is used.
You can use either the
originororiginGroupparameter in the request.- origin_
group float Origin group ID with which the CDN resource is associated.
You can use either the
originororiginGroupparameter in the request.- origin_
group_ strname - Origin group name.
- origin_
protocol str Protocol used by CDN servers to request content from an origin source.
Possible values:
- HTTPS - CDN servers will connect to the origin via HTTPS.
- HTTP - CDN servers will connect to the origin via HTTP.
- MATCH - connection protocol will be chosen automatically (content on the origin source should be available for the CDN both through HTTP and HTTPS).
If protocol is not specified, HTTP is used to connect to an origin server. Available values: "HTTP", "HTTPS", "MATCH".
- preset_
applied bool Defines whether the CDN resource has a preset applied.
Possible values:
- true - CDN resource has a preset applied. CDN resource options included in the preset cannot be edited.
- false - CDN resource does not have a preset applied.
- primary_
resource float ID of the main CDN resource which has a shared caching zone with a reserve CDN resource.
If the parameter is not empty, then the current CDN resource is the reserve. You cannot change some options, create rules, set up origin shielding, or use the reserve CDN resource for Streaming.
- proxy_
ssl_ floatca ID of the trusted CA certificate used to verify an origin.
It can be used only with
<span pulumi-lang-nodejs=""proxySslEnabled"" pulumi-lang-dotnet=""ProxySslEnabled"" pulumi-lang-go=""proxySslEnabled"" pulumi-lang-python=""proxy_ssl_enabled"" pulumi-lang-yaml=""proxySslEnabled"" pulumi-lang-java=""proxySslEnabled"">"proxy_ssl_enabled"</span>: true.- proxy_
ssl_ floatdata ID of the SSL certificate used to verify an origin.
It can be used only with
<span pulumi-lang-nodejs=""proxySslEnabled"" pulumi-lang-dotnet=""ProxySslEnabled"" pulumi-lang-go=""proxySslEnabled"" pulumi-lang-python=""proxy_ssl_enabled"" pulumi-lang-yaml=""proxySslEnabled"" pulumi-lang-java=""proxySslEnabled"">"proxy_ssl_enabled"</span>: true.- proxy_
ssl_ boolenabled Enables or disables SSL certificate validation of the origin server before completing any connection.
Possible values:
- true - Origin SSL certificate validation is enabled.
- false - Origin SSL certificate validation is disabled.
- rules Sequence[str]
- Rules configured for the CDN resource.
- secondary_
hostnames Sequence[str] Additional delivery domains (CNAMEs) that will be used to deliver content via the CDN.
Up to ten additional CNAMEs are possible.
- shield_
dc str Name of the origin shielding location data center.
Parameter returns null if origin shielding is disabled.
- shield_
enabled bool Defines whether origin shield is active and working for the CDN resource.
Possible values:
- true - Origin shield is active.
- false - Origin shield is not active.
- shield_
routing_ floatmap Defines whether the origin shield with a dynamic location is enabled for the CDN resource.
To manage origin shielding, you must contact customer support.
- shielded bool
Defines whether origin shielding feature is enabled for the resource.
Possible values:
- true - Origin shielding is enabled.
- false - Origin shielding is disabled.
- ssl_
data float ID of the SSL certificate linked to the CDN resource.
Can be used only with
"sslEnabled": true.- ssl_
enabled bool Defines whether the HTTPS protocol enabled for content delivery.
Possible values:
- true - HTTPS is enabled.
- false - HTTPS is disabled.
- suspend_
date str Date when the CDN resource was suspended automatically if there is no traffic on it for 90 days.
Not specified if the resource was not stopped due to lack of traffic.
- suspended bool
Defines whether the CDN resource has been automatically suspended because there was no traffic on it for 90 days.
Possible values:
- true - CDN resource is currently automatically suspended.
- false - CDN resource is not automatically suspended.
You can enable CDN resource using the
activefield. If there is no traffic on the CDN resource within seven days following activation, it will be suspended again.To avoid CDN resource suspension due to no traffic, contact technical support.
- vp_
enabled bool Defines whether the CDN resource is integrated with the Streaming Platform.
Possible values:
- true - CDN resource is configured for Streaming Platform. Changing resource settings can affect its operation.
- false - CDN resource is not configured for Streaming Platform.
- waap_
api_ booldomain_ enabled Defines whether the associated WAAP Domain is identified as an API Domain.
Possible values:
- true - The associated WAAP Domain is designated as an API Domain.
- false - The associated WAAP Domain is not designated as an API Domain.
- waap_
domain_ strid - The ID of the associated WAAP domain.
- active Boolean
Enables or disables a CDN resource.
Possible values:
- true - CDN resource is active. Content is being delivered.
- false - CDN resource is deactivated. Content is not being delivered.
- can
Purge BooleanBy Urls Defines whether the CDN resource can be used for purge by URLs feature.
It's available only in case the CDN resource has enabled
ignore_vary_headeroption.- cdn
Resource NumberId - CDN resource ID.
- client Number
- ID of an account to which the CDN resource belongs.
- cname String
- Delivery domains that will be used for content delivery through a CDN.
- created String
- Date of CDN resource creation.
- description String
- Optional comment describing the CDN resource.
- full
Custom BooleanEnabled Defines whether the CDN resource has a custom configuration.
Possible values:
- true - CDN resource has a custom configuration. You cannot change resource settings, except for the SSL certificate. To change other settings, contact technical support.
- false - CDN resource has a regular configuration. You can change CDN resource settings.
- is
Primary Boolean Defines whether a CDN resource has a cache zone shared with other CDN resources.
Possible values:
- true - CDN resource is main and has a shared caching zone with other CDN resources, which are called reserve.
- false - CDN resource is reserve and it has a shared caching zone with the main CDN resource. You cannot change some options, create rules, set up origin shielding and use the reserve resource for Streaming.
- null - CDN resource does not have a shared cache zone.
The main CDN resource is specified in the
primary_resourcefield. It cannot be suspended unless all related reserve CDN resources are suspended.- name String
- CDN resource name.
- options Property Map
List of options that can be configured for the CDN resource.
In case of
nullvalue the option is not added to the CDN resource. Option may inherit its value from the global account settings.- origin String
IP address or domain name of the origin and the port, if custom port is used.
You can use either the
originororiginGroupparameter in the request.- origin
Group Number Origin group ID with which the CDN resource is associated.
You can use either the
originororiginGroupparameter in the request.- origin
Group StringName - Origin group name.
- origin
Protocol String Protocol used by CDN servers to request content from an origin source.
Possible values:
- HTTPS - CDN servers will connect to the origin via HTTPS.
- HTTP - CDN servers will connect to the origin via HTTP.
- MATCH - connection protocol will be chosen automatically (content on the origin source should be available for the CDN both through HTTP and HTTPS).
If protocol is not specified, HTTP is used to connect to an origin server. Available values: "HTTP", "HTTPS", "MATCH".
- preset
Applied Boolean Defines whether the CDN resource has a preset applied.
Possible values:
- true - CDN resource has a preset applied. CDN resource options included in the preset cannot be edited.
- false - CDN resource does not have a preset applied.
- primary
Resource Number ID of the main CDN resource which has a shared caching zone with a reserve CDN resource.
If the parameter is not empty, then the current CDN resource is the reserve. You cannot change some options, create rules, set up origin shielding, or use the reserve CDN resource for Streaming.
- proxy
Ssl NumberCa ID of the trusted CA certificate used to verify an origin.
It can be used only with
<span pulumi-lang-nodejs=""proxySslEnabled"" pulumi-lang-dotnet=""ProxySslEnabled"" pulumi-lang-go=""proxySslEnabled"" pulumi-lang-python=""proxy_ssl_enabled"" pulumi-lang-yaml=""proxySslEnabled"" pulumi-lang-java=""proxySslEnabled"">"proxy_ssl_enabled"</span>: true.- proxy
Ssl NumberData ID of the SSL certificate used to verify an origin.
It can be used only with
<span pulumi-lang-nodejs=""proxySslEnabled"" pulumi-lang-dotnet=""ProxySslEnabled"" pulumi-lang-go=""proxySslEnabled"" pulumi-lang-python=""proxy_ssl_enabled"" pulumi-lang-yaml=""proxySslEnabled"" pulumi-lang-java=""proxySslEnabled"">"proxy_ssl_enabled"</span>: true.- proxy
Ssl BooleanEnabled Enables or disables SSL certificate validation of the origin server before completing any connection.
Possible values:
- true - Origin SSL certificate validation is enabled.
- false - Origin SSL certificate validation is disabled.
- rules List<String>
- Rules configured for the CDN resource.
- secondary
Hostnames List<String> Additional delivery domains (CNAMEs) that will be used to deliver content via the CDN.
Up to ten additional CNAMEs are possible.
- shield
Dc String Name of the origin shielding location data center.
Parameter returns null if origin shielding is disabled.
- shield
Enabled Boolean Defines whether origin shield is active and working for the CDN resource.
Possible values:
- true - Origin shield is active.
- false - Origin shield is not active.
- shield
Routing NumberMap Defines whether the origin shield with a dynamic location is enabled for the CDN resource.
To manage origin shielding, you must contact customer support.
- shielded Boolean
Defines whether origin shielding feature is enabled for the resource.
Possible values:
- true - Origin shielding is enabled.
- false - Origin shielding is disabled.
- ssl
Data Number ID of the SSL certificate linked to the CDN resource.
Can be used only with
"sslEnabled": true.- ssl
Enabled Boolean Defines whether the HTTPS protocol enabled for content delivery.
Possible values:
- true - HTTPS is enabled.
- false - HTTPS is disabled.
- suspend
Date String Date when the CDN resource was suspended automatically if there is no traffic on it for 90 days.
Not specified if the resource was not stopped due to lack of traffic.
- suspended Boolean
Defines whether the CDN resource has been automatically suspended because there was no traffic on it for 90 days.
Possible values:
- true - CDN resource is currently automatically suspended.
- false - CDN resource is not automatically suspended.
You can enable CDN resource using the
activefield. If there is no traffic on the CDN resource within seven days following activation, it will be suspended again.To avoid CDN resource suspension due to no traffic, contact technical support.
- vp
Enabled Boolean Defines whether the CDN resource is integrated with the Streaming Platform.
Possible values:
- true - CDN resource is configured for Streaming Platform. Changing resource settings can affect its operation.
- false - CDN resource is not configured for Streaming Platform.
- waap
Api BooleanDomain Enabled Defines whether the associated WAAP Domain is identified as an API Domain.
Possible values:
- true - The associated WAAP Domain is designated as an API Domain.
- false - The associated WAAP Domain is not designated as an API Domain.
- waap
Domain StringId - The ID of the associated WAAP domain.
Supporting Types
CdnResourceOptions, CdnResourceOptionsArgs
- Allowed
Http CdnMethods Resource Options Allowed Http Methods - HTTP methods allowed for content requests from the CDN.
- Bot
Protection CdnResource Options Bot Protection - Allows to prevent online services from overloading and ensure your business workflow running smoothly.
- Brotli
Compression CdnResource Options Brotli Compression - Compresses content with Brotli on the CDN side. CDN servers will request only uncompressed content from the origin.
- Browser
Cache CdnSettings Resource Options Browser Cache Settings Cache expiration time for users browsers in seconds.
Cache expiration time is applied to the following response codes: 200, 201, 204, 206, 301, 302, 303, 304, 307, 308.
Responses with other codes will not be cached.
- Cors
Cdn
Resource Options Cors Enables or disables CORS (Cross-Origin Resource Sharing) header support.
CORS header support allows the CDN to add the Access-Control-Allow-Origin header to a response to a browser.
- Country
Acl CdnResource Options Country Acl - Enables control access to content for specified countries.
- Disable
Proxy CdnForce Ranges Resource Options Disable Proxy Force Ranges - Allows 206 responses regardless of the settings of an origin source.
- Edge
Cache CdnSettings Resource Options Edge Cache Settings Cache expiration time for CDN servers.
valueanddefaultfields cannot be used simultaneously.- Fastedge
Cdn
Resource Options Fastedge Allows to configure FastEdge app to be called on different request/response phases.
Note: At least one of
on_request_headers,on_request_body,on_response_headers, oron_response_bodymust be specified.- Fetch
Compressed CdnResource Options Fetch Compressed Makes the CDN request compressed content from the origin.
The origin server should support compression. CDN servers will not decompress your content even if a user browser does not accept compression.
Notes:
fetch_compressedis not supported withgzipONorbrotli_compressionorsliceoptions enabled.fetch_compressedoverridesgzipONandbrotli_compressionin rule. If you enable it in CDN resource and want to usegzipONandbrotli_compressionin a rule, you have to specify<span pulumi-lang-nodejs=""fetchCompressed"" pulumi-lang-dotnet=""FetchCompressed"" pulumi-lang-go=""fetchCompressed"" pulumi-lang-python=""fetch_compressed"" pulumi-lang-yaml=""fetchCompressed"" pulumi-lang-java=""fetchCompressed"">"fetch_compressed"</span>: falsein the rule.
- Follow
Origin CdnRedirect Resource Options Follow Origin Redirect - Enables redirection from origin. If the origin server returns a redirect, the option allows the CDN to pull the requested content from the origin server that was returned in the redirect.
- Force
Return CdnResource Options Force Return Applies custom HTTP response codes for CDN content.
The following codes are reserved by our system and cannot be specified in this option: 408, 444, 477, 494, 495, 496, 497, 499.
- Forward
Host CdnHeader Resource Options Forward Host Header Forwards the Host header from a end-user request to an origin server.
hostHeaderandforward_host_headeroptions cannot be enabled simultaneously.- Gzip
On CdnResource Options Gzip On Compresses content with gzip on the CDN end. CDN servers will request only uncompressed content from the origin.
Notes:
- Compression with gzip is not supported with
fetch_compressedorsliceoptions enabled. fetch_compressedoption in CDN resource settings overridesgzipONin rules. If you enablefetch_compressedin CDN resource and want to enablegzipONin rules, you need to specify<span pulumi-lang-nodejs=""fetchCompressed"" pulumi-lang-dotnet=""FetchCompressed"" pulumi-lang-go=""fetchCompressed"" pulumi-lang-python=""fetch_compressed"" pulumi-lang-yaml=""fetchCompressed"" pulumi-lang-java=""fetchCompressed"">"fetch_compressed"</span>:falsefor rules.
- Compression with gzip is not supported with
- Host
Header CdnResource Options Host Header Sets the Host header that CDN servers use when request content from an origin server. Your server must be able to process requests with the chosen header.
If the option is
null, the Host Header value is equal to first CNAME.hostHeaderandforward_host_headeroptions cannot be enabled simultaneously.- Http3Enabled
Cdn
Resource Options Http3Enabled Enables HTTP/3 protocol for content delivery.
http3_enabledoption works only with"sslEnabled": true.-
Cdn
Resource Options Ignore Cookie - Defines whether the files with the Set-Cookies header are cached as one file or as different ones.
- Ignore
Query CdnString Resource Options Ignore Query String How a file with different query strings is cached: either as one object (option is enabled) or as different objects (option is disabled.)
ignoreQueryString,query_params_whitelistandquery_params_blacklistoptions cannot be enabled simultaneously.- Image
Stack CdnResource Options Image Stack - Transforms JPG and PNG images (for example, resize or crop) and automatically converts them to WebP or AVIF format.
- Ip
Address CdnAcl Resource Options Ip Address Acl Controls access to the CDN resource content for specific IP addresses.
If you want to use IPs from our CDN servers IP list for IP ACL configuration, you have to independently monitor their relevance.
We recommend you use a script for automatically update IP ACL. Read more.
- Limit
Bandwidth CdnResource Options Limit Bandwidth - Allows to control the download speed per connection.
- Proxy
Cache CdnKey Resource Options Proxy Cache Key Allows you to modify your cache key. If omitted, the default value is
$request_uri.Combine the specified variables to create a key for caching.
- $
request_uri - $scheme
- $uri
Warning: Enabling and changing this option can invalidate your current cache and affect the cache hit ratio. Furthermore, the "Purge by pattern" option will not work.
- $
- Proxy
Cache CdnMethods Set Resource Options Proxy Cache Methods Set - Caching for POST requests along with default GET and HEAD.
- Proxy
Connect CdnTimeout Resource Options Proxy Connect Timeout - The time limit for establishing a connection with the origin.
- Proxy
Read CdnTimeout Resource Options Proxy Read Timeout The time limit for receiving a partial response from the origin. If no response is received within this time, the connection will be closed.
Note: When used with a WebSocket connection, this option supports values only in the range 1–20 seconds (instead of the usual 1–30 seconds).
- Query
Params CdnBlacklist Resource Options Query Params Blacklist Files with the specified query parameters are cached as one object, files with other parameters are cached as different objects.
ignoreQueryString,query_params_whitelistandquery_params_blacklistoptions cannot be enabled simultaneously.- Query
Params CdnWhitelist Resource Options Query Params Whitelist Files with the specified query parameters are cached as different objects, files with other parameters are cached as one object.
ignoreQueryString,query_params_whitelistandquery_params_blacklistoptions cannot be enabled simultaneously.- Query
String CdnForwarding Resource Options Query String Forwarding - The Query String Forwarding feature allows for the seamless transfer of parameters embedded in playlist files to the corresponding media chunk files. This functionality ensures that specific attributes, such as authentication tokens or tracking information, are consistently passed along from the playlist manifest to the individual media segments. This is particularly useful for maintaining continuity in security, analytics, and any other parameter-based operations across the entire media delivery workflow.
- Redirect
Http CdnTo Https Resource Options Redirect Http To Https Enables redirect from HTTP to HTTPS.
redirect_http_to_httpsandredirect_https_to_httpoptions cannot be enabled simultaneously.- Redirect
Https CdnTo Http Resource Options Redirect Https To Http Enables redirect from HTTPS to HTTP.
redirect_http_to_httpsandredirect_https_to_httpoptions cannot be enabled simultaneously.- Referrer
Acl CdnResource Options Referrer Acl - Controls access to the CDN resource content for specified domain names.
- Request
Limiter CdnResource Options Request Limiter - Option allows to limit the amount of HTTP requests.
- Response
Headers CdnHiding Policy Resource Options Response Headers Hiding Policy - Hides HTTP headers from an origin server in the CDN response.
- Rewrite
Cdn
Resource Options Rewrite - Changes and redirects requests from the CDN to the origin. It operates according to the Nginx configuration.
- Secure
Key CdnResource Options Secure Key - Configures access with tokenized URLs. This makes impossible to access content without a valid (unexpired) token.
- Slice
Cdn
Resource Options Slice Requests and caches files larger than 10 MB in parts (no larger than 10 MB per part.) This reduces time to first byte.
The option is based on the Slice module.
Notes:
- Origin must support HTTP Range requests.
- Not supported with
gzipON,brotli_compressionorfetch_compressedoptions enabled.
- Sni
Cdn
Resource Options Sni The hostname that is added to SNI requests from CDN servers to the origin server via HTTPS.
SNI is generally only required if your origin uses shared hosting or does not have a dedicated IP address. If the origin server presents multiple certificates, SNI allows the origin server to know which certificate to use for the connection.
The option works only if
originProtocolparameter isHTTPSorMATCH.- Stale
Cdn
Resource Options Stale - Serves stale cached content in case of origin unavailability.
- Static
Request CdnHeaders Resource Options Static Request Headers - Custom HTTP Headers for a CDN server to add to request. Up to fifty custom HTTP Headers can be specified.
- Static
Response CdnHeaders Resource Options Static Response Headers - Custom HTTP Headers that a CDN server adds to a response.
- Tls
Versions CdnResource Options Tls Versions List of SSL/TLS protocol versions allowed for HTTPS connections from end users to the domain.
When the option is disabled, all protocols versions are allowed.
- Use
Default CdnLe Chain Resource Options Use Default Le Chain Let's Encrypt certificate chain.
The specified chain will be used during the next Let's Encrypt certificate issue or renewal.
- Use
Dns01Le CdnChallenge Resource Options Use Dns01Le Challenge DNS-01 challenge to issue a Let's Encrypt certificate for the resource.
DNS service should be activated to enable this option.
- Use
Rsa CdnLe Cert Resource Options Use Rsa Le Cert RSA Let's Encrypt certificate type for the CDN resource.
The specified value will be used during the next Let's Encrypt certificate issue or renewal.
- User
Agent CdnAcl Resource Options User Agent Acl - Controls access to the content for specified User-Agents.
- Waap
Cdn
Resource Options Waap - Allows to enable WAAP (Web Application and API Protection).
- Websockets
Cdn
Resource Options Websockets - Enables or disables WebSockets connections to an origin server.
- Allowed
Http CdnMethods Resource Options Allowed Http Methods - HTTP methods allowed for content requests from the CDN.
- Bot
Protection CdnResource Options Bot Protection - Allows to prevent online services from overloading and ensure your business workflow running smoothly.
- Brotli
Compression CdnResource Options Brotli Compression - Compresses content with Brotli on the CDN side. CDN servers will request only uncompressed content from the origin.
- Browser
Cache CdnSettings Resource Options Browser Cache Settings Cache expiration time for users browsers in seconds.
Cache expiration time is applied to the following response codes: 200, 201, 204, 206, 301, 302, 303, 304, 307, 308.
Responses with other codes will not be cached.
- Cors
Cdn
Resource Options Cors Enables or disables CORS (Cross-Origin Resource Sharing) header support.
CORS header support allows the CDN to add the Access-Control-Allow-Origin header to a response to a browser.
- Country
Acl CdnResource Options Country Acl - Enables control access to content for specified countries.
- Disable
Proxy CdnForce Ranges Resource Options Disable Proxy Force Ranges - Allows 206 responses regardless of the settings of an origin source.
- Edge
Cache CdnSettings Resource Options Edge Cache Settings Cache expiration time for CDN servers.
valueanddefaultfields cannot be used simultaneously.- Fastedge
Cdn
Resource Options Fastedge Allows to configure FastEdge app to be called on different request/response phases.
Note: At least one of
on_request_headers,on_request_body,on_response_headers, oron_response_bodymust be specified.- Fetch
Compressed CdnResource Options Fetch Compressed Makes the CDN request compressed content from the origin.
The origin server should support compression. CDN servers will not decompress your content even if a user browser does not accept compression.
Notes:
fetch_compressedis not supported withgzipONorbrotli_compressionorsliceoptions enabled.fetch_compressedoverridesgzipONandbrotli_compressionin rule. If you enable it in CDN resource and want to usegzipONandbrotli_compressionin a rule, you have to specify<span pulumi-lang-nodejs=""fetchCompressed"" pulumi-lang-dotnet=""FetchCompressed"" pulumi-lang-go=""fetchCompressed"" pulumi-lang-python=""fetch_compressed"" pulumi-lang-yaml=""fetchCompressed"" pulumi-lang-java=""fetchCompressed"">"fetch_compressed"</span>: falsein the rule.
- Follow
Origin CdnRedirect Resource Options Follow Origin Redirect - Enables redirection from origin. If the origin server returns a redirect, the option allows the CDN to pull the requested content from the origin server that was returned in the redirect.
- Force
Return CdnResource Options Force Return Applies custom HTTP response codes for CDN content.
The following codes are reserved by our system and cannot be specified in this option: 408, 444, 477, 494, 495, 496, 497, 499.
- Forward
Host CdnHeader Resource Options Forward Host Header Forwards the Host header from a end-user request to an origin server.
hostHeaderandforward_host_headeroptions cannot be enabled simultaneously.- Gzip
On CdnResource Options Gzip On Compresses content with gzip on the CDN end. CDN servers will request only uncompressed content from the origin.
Notes:
- Compression with gzip is not supported with
fetch_compressedorsliceoptions enabled. fetch_compressedoption in CDN resource settings overridesgzipONin rules. If you enablefetch_compressedin CDN resource and want to enablegzipONin rules, you need to specify<span pulumi-lang-nodejs=""fetchCompressed"" pulumi-lang-dotnet=""FetchCompressed"" pulumi-lang-go=""fetchCompressed"" pulumi-lang-python=""fetch_compressed"" pulumi-lang-yaml=""fetchCompressed"" pulumi-lang-java=""fetchCompressed"">"fetch_compressed"</span>:falsefor rules.
- Compression with gzip is not supported with
- Host
Header CdnResource Options Host Header Sets the Host header that CDN servers use when request content from an origin server. Your server must be able to process requests with the chosen header.
If the option is
null, the Host Header value is equal to first CNAME.hostHeaderandforward_host_headeroptions cannot be enabled simultaneously.- Http3Enabled
Cdn
Resource Options Http3Enabled Enables HTTP/3 protocol for content delivery.
http3_enabledoption works only with"sslEnabled": true.-
Cdn
Resource Options Ignore Cookie - Defines whether the files with the Set-Cookies header are cached as one file or as different ones.
- Ignore
Query CdnString Resource Options Ignore Query String How a file with different query strings is cached: either as one object (option is enabled) or as different objects (option is disabled.)
ignoreQueryString,query_params_whitelistandquery_params_blacklistoptions cannot be enabled simultaneously.- Image
Stack CdnResource Options Image Stack - Transforms JPG and PNG images (for example, resize or crop) and automatically converts them to WebP or AVIF format.
- Ip
Address CdnAcl Resource Options Ip Address Acl Controls access to the CDN resource content for specific IP addresses.
If you want to use IPs from our CDN servers IP list for IP ACL configuration, you have to independently monitor their relevance.
We recommend you use a script for automatically update IP ACL. Read more.
- Limit
Bandwidth CdnResource Options Limit Bandwidth - Allows to control the download speed per connection.
- Proxy
Cache CdnKey Resource Options Proxy Cache Key Allows you to modify your cache key. If omitted, the default value is
$request_uri.Combine the specified variables to create a key for caching.
- $
request_uri - $scheme
- $uri
Warning: Enabling and changing this option can invalidate your current cache and affect the cache hit ratio. Furthermore, the "Purge by pattern" option will not work.
- $
- Proxy
Cache CdnMethods Set Resource Options Proxy Cache Methods Set - Caching for POST requests along with default GET and HEAD.
- Proxy
Connect CdnTimeout Resource Options Proxy Connect Timeout - The time limit for establishing a connection with the origin.
- Proxy
Read CdnTimeout Resource Options Proxy Read Timeout The time limit for receiving a partial response from the origin. If no response is received within this time, the connection will be closed.
Note: When used with a WebSocket connection, this option supports values only in the range 1–20 seconds (instead of the usual 1–30 seconds).
- Query
Params CdnBlacklist Resource Options Query Params Blacklist Files with the specified query parameters are cached as one object, files with other parameters are cached as different objects.
ignoreQueryString,query_params_whitelistandquery_params_blacklistoptions cannot be enabled simultaneously.- Query
Params CdnWhitelist Resource Options Query Params Whitelist Files with the specified query parameters are cached as different objects, files with other parameters are cached as one object.
ignoreQueryString,query_params_whitelistandquery_params_blacklistoptions cannot be enabled simultaneously.- Query
String CdnForwarding Resource Options Query String Forwarding - The Query String Forwarding feature allows for the seamless transfer of parameters embedded in playlist files to the corresponding media chunk files. This functionality ensures that specific attributes, such as authentication tokens or tracking information, are consistently passed along from the playlist manifest to the individual media segments. This is particularly useful for maintaining continuity in security, analytics, and any other parameter-based operations across the entire media delivery workflow.
- Redirect
Http CdnTo Https Resource Options Redirect Http To Https Enables redirect from HTTP to HTTPS.
redirect_http_to_httpsandredirect_https_to_httpoptions cannot be enabled simultaneously.- Redirect
Https CdnTo Http Resource Options Redirect Https To Http Enables redirect from HTTPS to HTTP.
redirect_http_to_httpsandredirect_https_to_httpoptions cannot be enabled simultaneously.- Referrer
Acl CdnResource Options Referrer Acl - Controls access to the CDN resource content for specified domain names.
- Request
Limiter CdnResource Options Request Limiter - Option allows to limit the amount of HTTP requests.
- Response
Headers CdnHiding Policy Resource Options Response Headers Hiding Policy - Hides HTTP headers from an origin server in the CDN response.
- Rewrite
Cdn
Resource Options Rewrite - Changes and redirects requests from the CDN to the origin. It operates according to the Nginx configuration.
- Secure
Key CdnResource Options Secure Key - Configures access with tokenized URLs. This makes impossible to access content without a valid (unexpired) token.
- Slice
Cdn
Resource Options Slice Requests and caches files larger than 10 MB in parts (no larger than 10 MB per part.) This reduces time to first byte.
The option is based on the Slice module.
Notes:
- Origin must support HTTP Range requests.
- Not supported with
gzipON,brotli_compressionorfetch_compressedoptions enabled.
- Sni
Cdn
Resource Options Sni The hostname that is added to SNI requests from CDN servers to the origin server via HTTPS.
SNI is generally only required if your origin uses shared hosting or does not have a dedicated IP address. If the origin server presents multiple certificates, SNI allows the origin server to know which certificate to use for the connection.
The option works only if
originProtocolparameter isHTTPSorMATCH.- Stale
Cdn
Resource Options Stale - Serves stale cached content in case of origin unavailability.
- Static
Request CdnHeaders Resource Options Static Request Headers - Custom HTTP Headers for a CDN server to add to request. Up to fifty custom HTTP Headers can be specified.
- Static
Response CdnHeaders Resource Options Static Response Headers - Custom HTTP Headers that a CDN server adds to a response.
- Tls
Versions CdnResource Options Tls Versions List of SSL/TLS protocol versions allowed for HTTPS connections from end users to the domain.
When the option is disabled, all protocols versions are allowed.
- Use
Default CdnLe Chain Resource Options Use Default Le Chain Let's Encrypt certificate chain.
The specified chain will be used during the next Let's Encrypt certificate issue or renewal.
- Use
Dns01Le CdnChallenge Resource Options Use Dns01Le Challenge DNS-01 challenge to issue a Let's Encrypt certificate for the resource.
DNS service should be activated to enable this option.
- Use
Rsa CdnLe Cert Resource Options Use Rsa Le Cert RSA Let's Encrypt certificate type for the CDN resource.
The specified value will be used during the next Let's Encrypt certificate issue or renewal.
- User
Agent CdnAcl Resource Options User Agent Acl - Controls access to the content for specified User-Agents.
- Waap
Cdn
Resource Options Waap - Allows to enable WAAP (Web Application and API Protection).
- Websockets
Cdn
Resource Options Websockets - Enables or disables WebSockets connections to an origin server.
- allowed
Http CdnMethods Resource Options Allowed Http Methods - HTTP methods allowed for content requests from the CDN.
- bot
Protection CdnResource Options Bot Protection - Allows to prevent online services from overloading and ensure your business workflow running smoothly.
- brotli
Compression CdnResource Options Brotli Compression - Compresses content with Brotli on the CDN side. CDN servers will request only uncompressed content from the origin.
- browser
Cache CdnSettings Resource Options Browser Cache Settings Cache expiration time for users browsers in seconds.
Cache expiration time is applied to the following response codes: 200, 201, 204, 206, 301, 302, 303, 304, 307, 308.
Responses with other codes will not be cached.
- cors
Cdn
Resource Options Cors Enables or disables CORS (Cross-Origin Resource Sharing) header support.
CORS header support allows the CDN to add the Access-Control-Allow-Origin header to a response to a browser.
- country
Acl CdnResource Options Country Acl - Enables control access to content for specified countries.
- disable
Proxy CdnForce Ranges Resource Options Disable Proxy Force Ranges - Allows 206 responses regardless of the settings of an origin source.
- edge
Cache CdnSettings Resource Options Edge Cache Settings Cache expiration time for CDN servers.
valueanddefaultfields cannot be used simultaneously.- fastedge
Cdn
Resource Options Fastedge Allows to configure FastEdge app to be called on different request/response phases.
Note: At least one of
on_request_headers,on_request_body,on_response_headers, oron_response_bodymust be specified.- fetch
Compressed CdnResource Options Fetch Compressed Makes the CDN request compressed content from the origin.
The origin server should support compression. CDN servers will not decompress your content even if a user browser does not accept compression.
Notes:
fetch_compressedis not supported withgzipONorbrotli_compressionorsliceoptions enabled.fetch_compressedoverridesgzipONandbrotli_compressionin rule. If you enable it in CDN resource and want to usegzipONandbrotli_compressionin a rule, you have to specify<span pulumi-lang-nodejs=""fetchCompressed"" pulumi-lang-dotnet=""FetchCompressed"" pulumi-lang-go=""fetchCompressed"" pulumi-lang-python=""fetch_compressed"" pulumi-lang-yaml=""fetchCompressed"" pulumi-lang-java=""fetchCompressed"">"fetch_compressed"</span>: falsein the rule.
- follow
Origin CdnRedirect Resource Options Follow Origin Redirect - Enables redirection from origin. If the origin server returns a redirect, the option allows the CDN to pull the requested content from the origin server that was returned in the redirect.
- force
Return CdnResource Options Force Return Applies custom HTTP response codes for CDN content.
The following codes are reserved by our system and cannot be specified in this option: 408, 444, 477, 494, 495, 496, 497, 499.
- forward
Host CdnHeader Resource Options Forward Host Header Forwards the Host header from a end-user request to an origin server.
hostHeaderandforward_host_headeroptions cannot be enabled simultaneously.- gzip
On CdnResource Options Gzip On Compresses content with gzip on the CDN end. CDN servers will request only uncompressed content from the origin.
Notes:
- Compression with gzip is not supported with
fetch_compressedorsliceoptions enabled. fetch_compressedoption in CDN resource settings overridesgzipONin rules. If you enablefetch_compressedin CDN resource and want to enablegzipONin rules, you need to specify<span pulumi-lang-nodejs=""fetchCompressed"" pulumi-lang-dotnet=""FetchCompressed"" pulumi-lang-go=""fetchCompressed"" pulumi-lang-python=""fetch_compressed"" pulumi-lang-yaml=""fetchCompressed"" pulumi-lang-java=""fetchCompressed"">"fetch_compressed"</span>:falsefor rules.
- Compression with gzip is not supported with
- host
Header CdnResource Options Host Header Sets the Host header that CDN servers use when request content from an origin server. Your server must be able to process requests with the chosen header.
If the option is
null, the Host Header value is equal to first CNAME.hostHeaderandforward_host_headeroptions cannot be enabled simultaneously.- http3Enabled
Cdn
Resource Options Http3Enabled Enables HTTP/3 protocol for content delivery.
http3_enabledoption works only with"sslEnabled": true.-
Cdn
Resource Options Ignore Cookie - Defines whether the files with the Set-Cookies header are cached as one file or as different ones.
- ignore
Query CdnString Resource Options Ignore Query String How a file with different query strings is cached: either as one object (option is enabled) or as different objects (option is disabled.)
ignoreQueryString,query_params_whitelistandquery_params_blacklistoptions cannot be enabled simultaneously.- image
Stack CdnResource Options Image Stack - Transforms JPG and PNG images (for example, resize or crop) and automatically converts them to WebP or AVIF format.
- ip
Address CdnAcl Resource Options Ip Address Acl Controls access to the CDN resource content for specific IP addresses.
If you want to use IPs from our CDN servers IP list for IP ACL configuration, you have to independently monitor their relevance.
We recommend you use a script for automatically update IP ACL. Read more.
- limit
Bandwidth CdnResource Options Limit Bandwidth - Allows to control the download speed per connection.
- proxy
Cache CdnKey Resource Options Proxy Cache Key Allows you to modify your cache key. If omitted, the default value is
$request_uri.Combine the specified variables to create a key for caching.
- $
request_uri - $scheme
- $uri
Warning: Enabling and changing this option can invalidate your current cache and affect the cache hit ratio. Furthermore, the "Purge by pattern" option will not work.
- $
- proxy
Cache CdnMethods Set Resource Options Proxy Cache Methods Set - Caching for POST requests along with default GET and HEAD.
- proxy
Connect CdnTimeout Resource Options Proxy Connect Timeout - The time limit for establishing a connection with the origin.
- proxy
Read CdnTimeout Resource Options Proxy Read Timeout The time limit for receiving a partial response from the origin. If no response is received within this time, the connection will be closed.
Note: When used with a WebSocket connection, this option supports values only in the range 1–20 seconds (instead of the usual 1–30 seconds).
- query
Params CdnBlacklist Resource Options Query Params Blacklist Files with the specified query parameters are cached as one object, files with other parameters are cached as different objects.
ignoreQueryString,query_params_whitelistandquery_params_blacklistoptions cannot be enabled simultaneously.- query
Params CdnWhitelist Resource Options Query Params Whitelist Files with the specified query parameters are cached as different objects, files with other parameters are cached as one object.
ignoreQueryString,query_params_whitelistandquery_params_blacklistoptions cannot be enabled simultaneously.- query
String CdnForwarding Resource Options Query String Forwarding - The Query String Forwarding feature allows for the seamless transfer of parameters embedded in playlist files to the corresponding media chunk files. This functionality ensures that specific attributes, such as authentication tokens or tracking information, are consistently passed along from the playlist manifest to the individual media segments. This is particularly useful for maintaining continuity in security, analytics, and any other parameter-based operations across the entire media delivery workflow.
- redirect
Http CdnTo Https Resource Options Redirect Http To Https Enables redirect from HTTP to HTTPS.
redirect_http_to_httpsandredirect_https_to_httpoptions cannot be enabled simultaneously.- redirect
Https CdnTo Http Resource Options Redirect Https To Http Enables redirect from HTTPS to HTTP.
redirect_http_to_httpsandredirect_https_to_httpoptions cannot be enabled simultaneously.- referrer
Acl CdnResource Options Referrer Acl - Controls access to the CDN resource content for specified domain names.
- request
Limiter CdnResource Options Request Limiter - Option allows to limit the amount of HTTP requests.
- response
Headers CdnHiding Policy Resource Options Response Headers Hiding Policy - Hides HTTP headers from an origin server in the CDN response.
- rewrite
Cdn
Resource Options Rewrite - Changes and redirects requests from the CDN to the origin. It operates according to the Nginx configuration.
- secure
Key CdnResource Options Secure Key - Configures access with tokenized URLs. This makes impossible to access content without a valid (unexpired) token.
- slice
Cdn
Resource Options Slice Requests and caches files larger than 10 MB in parts (no larger than 10 MB per part.) This reduces time to first byte.
The option is based on the Slice module.
Notes:
- Origin must support HTTP Range requests.
- Not supported with
gzipON,brotli_compressionorfetch_compressedoptions enabled.
- sni
Cdn
Resource Options Sni The hostname that is added to SNI requests from CDN servers to the origin server via HTTPS.
SNI is generally only required if your origin uses shared hosting or does not have a dedicated IP address. If the origin server presents multiple certificates, SNI allows the origin server to know which certificate to use for the connection.
The option works only if
originProtocolparameter isHTTPSorMATCH.- stale
Cdn
Resource Options Stale - Serves stale cached content in case of origin unavailability.
- static
Request CdnHeaders Resource Options Static Request Headers - Custom HTTP Headers for a CDN server to add to request. Up to fifty custom HTTP Headers can be specified.
- static
Response CdnHeaders Resource Options Static Response Headers - Custom HTTP Headers that a CDN server adds to a response.
- tls
Versions CdnResource Options Tls Versions List of SSL/TLS protocol versions allowed for HTTPS connections from end users to the domain.
When the option is disabled, all protocols versions are allowed.
- use
Default CdnLe Chain Resource Options Use Default Le Chain Let's Encrypt certificate chain.
The specified chain will be used during the next Let's Encrypt certificate issue or renewal.
- use
Dns01Le CdnChallenge Resource Options Use Dns01Le Challenge DNS-01 challenge to issue a Let's Encrypt certificate for the resource.
DNS service should be activated to enable this option.
- use
Rsa CdnLe Cert Resource Options Use Rsa Le Cert RSA Let's Encrypt certificate type for the CDN resource.
The specified value will be used during the next Let's Encrypt certificate issue or renewal.
- user
Agent CdnAcl Resource Options User Agent Acl - Controls access to the content for specified User-Agents.
- waap
Cdn
Resource Options Waap - Allows to enable WAAP (Web Application and API Protection).
- websockets
Cdn
Resource Options Websockets - Enables or disables WebSockets connections to an origin server.
- allowed
Http CdnMethods Resource Options Allowed Http Methods - HTTP methods allowed for content requests from the CDN.
- bot
Protection CdnResource Options Bot Protection - Allows to prevent online services from overloading and ensure your business workflow running smoothly.
- brotli
Compression CdnResource Options Brotli Compression - Compresses content with Brotli on the CDN side. CDN servers will request only uncompressed content from the origin.
- browser
Cache CdnSettings Resource Options Browser Cache Settings Cache expiration time for users browsers in seconds.
Cache expiration time is applied to the following response codes: 200, 201, 204, 206, 301, 302, 303, 304, 307, 308.
Responses with other codes will not be cached.
- cors
Cdn
Resource Options Cors Enables or disables CORS (Cross-Origin Resource Sharing) header support.
CORS header support allows the CDN to add the Access-Control-Allow-Origin header to a response to a browser.
- country
Acl CdnResource Options Country Acl - Enables control access to content for specified countries.
- disable
Proxy CdnForce Ranges Resource Options Disable Proxy Force Ranges - Allows 206 responses regardless of the settings of an origin source.
- edge
Cache CdnSettings Resource Options Edge Cache Settings Cache expiration time for CDN servers.
valueanddefaultfields cannot be used simultaneously.- fastedge
Cdn
Resource Options Fastedge Allows to configure FastEdge app to be called on different request/response phases.
Note: At least one of
on_request_headers,on_request_body,on_response_headers, oron_response_bodymust be specified.- fetch
Compressed CdnResource Options Fetch Compressed Makes the CDN request compressed content from the origin.
The origin server should support compression. CDN servers will not decompress your content even if a user browser does not accept compression.
Notes:
fetch_compressedis not supported withgzipONorbrotli_compressionorsliceoptions enabled.fetch_compressedoverridesgzipONandbrotli_compressionin rule. If you enable it in CDN resource and want to usegzipONandbrotli_compressionin a rule, you have to specify<span pulumi-lang-nodejs=""fetchCompressed"" pulumi-lang-dotnet=""FetchCompressed"" pulumi-lang-go=""fetchCompressed"" pulumi-lang-python=""fetch_compressed"" pulumi-lang-yaml=""fetchCompressed"" pulumi-lang-java=""fetchCompressed"">"fetch_compressed"</span>: falsein the rule.
- follow
Origin CdnRedirect Resource Options Follow Origin Redirect - Enables redirection from origin. If the origin server returns a redirect, the option allows the CDN to pull the requested content from the origin server that was returned in the redirect.
- force
Return CdnResource Options Force Return Applies custom HTTP response codes for CDN content.
The following codes are reserved by our system and cannot be specified in this option: 408, 444, 477, 494, 495, 496, 497, 499.
- forward
Host CdnHeader Resource Options Forward Host Header Forwards the Host header from a end-user request to an origin server.
hostHeaderandforward_host_headeroptions cannot be enabled simultaneously.- gzip
On CdnResource Options Gzip On Compresses content with gzip on the CDN end. CDN servers will request only uncompressed content from the origin.
Notes:
- Compression with gzip is not supported with
fetch_compressedorsliceoptions enabled. fetch_compressedoption in CDN resource settings overridesgzipONin rules. If you enablefetch_compressedin CDN resource and want to enablegzipONin rules, you need to specify<span pulumi-lang-nodejs=""fetchCompressed"" pulumi-lang-dotnet=""FetchCompressed"" pulumi-lang-go=""fetchCompressed"" pulumi-lang-python=""fetch_compressed"" pulumi-lang-yaml=""fetchCompressed"" pulumi-lang-java=""fetchCompressed"">"fetch_compressed"</span>:falsefor rules.
- Compression with gzip is not supported with
- host
Header CdnResource Options Host Header Sets the Host header that CDN servers use when request content from an origin server. Your server must be able to process requests with the chosen header.
If the option is
null, the Host Header value is equal to first CNAME.hostHeaderandforward_host_headeroptions cannot be enabled simultaneously.- http3Enabled
Cdn
Resource Options Http3Enabled Enables HTTP/3 protocol for content delivery.
http3_enabledoption works only with"sslEnabled": true.-
Cdn
Resource Options Ignore Cookie - Defines whether the files with the Set-Cookies header are cached as one file or as different ones.
- ignore
Query CdnString Resource Options Ignore Query String How a file with different query strings is cached: either as one object (option is enabled) or as different objects (option is disabled.)
ignoreQueryString,query_params_whitelistandquery_params_blacklistoptions cannot be enabled simultaneously.- image
Stack CdnResource Options Image Stack - Transforms JPG and PNG images (for example, resize or crop) and automatically converts them to WebP or AVIF format.
- ip
Address CdnAcl Resource Options Ip Address Acl Controls access to the CDN resource content for specific IP addresses.
If you want to use IPs from our CDN servers IP list for IP ACL configuration, you have to independently monitor their relevance.
We recommend you use a script for automatically update IP ACL. Read more.
- limit
Bandwidth CdnResource Options Limit Bandwidth - Allows to control the download speed per connection.
- proxy
Cache CdnKey Resource Options Proxy Cache Key Allows you to modify your cache key. If omitted, the default value is
$request_uri.Combine the specified variables to create a key for caching.
- $
request_uri - $scheme
- $uri
Warning: Enabling and changing this option can invalidate your current cache and affect the cache hit ratio. Furthermore, the "Purge by pattern" option will not work.
- $
- proxy
Cache CdnMethods Set Resource Options Proxy Cache Methods Set - Caching for POST requests along with default GET and HEAD.
- proxy
Connect CdnTimeout Resource Options Proxy Connect Timeout - The time limit for establishing a connection with the origin.
- proxy
Read CdnTimeout Resource Options Proxy Read Timeout The time limit for receiving a partial response from the origin. If no response is received within this time, the connection will be closed.
Note: When used with a WebSocket connection, this option supports values only in the range 1–20 seconds (instead of the usual 1–30 seconds).
- query
Params CdnBlacklist Resource Options Query Params Blacklist Files with the specified query parameters are cached as one object, files with other parameters are cached as different objects.
ignoreQueryString,query_params_whitelistandquery_params_blacklistoptions cannot be enabled simultaneously.- query
Params CdnWhitelist Resource Options Query Params Whitelist Files with the specified query parameters are cached as different objects, files with other parameters are cached as one object.
ignoreQueryString,query_params_whitelistandquery_params_blacklistoptions cannot be enabled simultaneously.- query
String CdnForwarding Resource Options Query String Forwarding - The Query String Forwarding feature allows for the seamless transfer of parameters embedded in playlist files to the corresponding media chunk files. This functionality ensures that specific attributes, such as authentication tokens or tracking information, are consistently passed along from the playlist manifest to the individual media segments. This is particularly useful for maintaining continuity in security, analytics, and any other parameter-based operations across the entire media delivery workflow.
- redirect
Http CdnTo Https Resource Options Redirect Http To Https Enables redirect from HTTP to HTTPS.
redirect_http_to_httpsandredirect_https_to_httpoptions cannot be enabled simultaneously.- redirect
Https CdnTo Http Resource Options Redirect Https To Http Enables redirect from HTTPS to HTTP.
redirect_http_to_httpsandredirect_https_to_httpoptions cannot be enabled simultaneously.- referrer
Acl CdnResource Options Referrer Acl - Controls access to the CDN resource content for specified domain names.
- request
Limiter CdnResource Options Request Limiter - Option allows to limit the amount of HTTP requests.
- response
Headers CdnHiding Policy Resource Options Response Headers Hiding Policy - Hides HTTP headers from an origin server in the CDN response.
- rewrite
Cdn
Resource Options Rewrite - Changes and redirects requests from the CDN to the origin. It operates according to the Nginx configuration.
- secure
Key CdnResource Options Secure Key - Configures access with tokenized URLs. This makes impossible to access content without a valid (unexpired) token.
- slice
Cdn
Resource Options Slice Requests and caches files larger than 10 MB in parts (no larger than 10 MB per part.) This reduces time to first byte.
The option is based on the Slice module.
Notes:
- Origin must support HTTP Range requests.
- Not supported with
gzipON,brotli_compressionorfetch_compressedoptions enabled.
- sni
Cdn
Resource Options Sni The hostname that is added to SNI requests from CDN servers to the origin server via HTTPS.
SNI is generally only required if your origin uses shared hosting or does not have a dedicated IP address. If the origin server presents multiple certificates, SNI allows the origin server to know which certificate to use for the connection.
The option works only if
originProtocolparameter isHTTPSorMATCH.- stale
Cdn
Resource Options Stale - Serves stale cached content in case of origin unavailability.
- static
Request CdnHeaders Resource Options Static Request Headers - Custom HTTP Headers for a CDN server to add to request. Up to fifty custom HTTP Headers can be specified.
- static
Response CdnHeaders Resource Options Static Response Headers - Custom HTTP Headers that a CDN server adds to a response.
- tls
Versions CdnResource Options Tls Versions List of SSL/TLS protocol versions allowed for HTTPS connections from end users to the domain.
When the option is disabled, all protocols versions are allowed.
- use
Default CdnLe Chain Resource Options Use Default Le Chain Let's Encrypt certificate chain.
The specified chain will be used during the next Let's Encrypt certificate issue or renewal.
- use
Dns01Le CdnChallenge Resource Options Use Dns01Le Challenge DNS-01 challenge to issue a Let's Encrypt certificate for the resource.
DNS service should be activated to enable this option.
- use
Rsa CdnLe Cert Resource Options Use Rsa Le Cert RSA Let's Encrypt certificate type for the CDN resource.
The specified value will be used during the next Let's Encrypt certificate issue or renewal.
- user
Agent CdnAcl Resource Options User Agent Acl - Controls access to the content for specified User-Agents.
- waap
Cdn
Resource Options Waap - Allows to enable WAAP (Web Application and API Protection).
- websockets
Cdn
Resource Options Websockets - Enables or disables WebSockets connections to an origin server.
- allowed_
http_ Cdnmethods Resource Options Allowed Http Methods - HTTP methods allowed for content requests from the CDN.
- bot_
protection CdnResource Options Bot Protection - Allows to prevent online services from overloading and ensure your business workflow running smoothly.
- brotli_
compression CdnResource Options Brotli Compression - Compresses content with Brotli on the CDN side. CDN servers will request only uncompressed content from the origin.
- browser_
cache_ Cdnsettings Resource Options Browser Cache Settings Cache expiration time for users browsers in seconds.
Cache expiration time is applied to the following response codes: 200, 201, 204, 206, 301, 302, 303, 304, 307, 308.
Responses with other codes will not be cached.
- cors
Cdn
Resource Options Cors Enables or disables CORS (Cross-Origin Resource Sharing) header support.
CORS header support allows the CDN to add the Access-Control-Allow-Origin header to a response to a browser.
- country_
acl CdnResource Options Country Acl - Enables control access to content for specified countries.
- disable_
proxy_ Cdnforce_ ranges Resource Options Disable Proxy Force Ranges - Allows 206 responses regardless of the settings of an origin source.
- edge_
cache_ Cdnsettings Resource Options Edge Cache Settings Cache expiration time for CDN servers.
valueanddefaultfields cannot be used simultaneously.- fastedge
Cdn
Resource Options Fastedge Allows to configure FastEdge app to be called on different request/response phases.
Note: At least one of
on_request_headers,on_request_body,on_response_headers, oron_response_bodymust be specified.- fetch_
compressed CdnResource Options Fetch Compressed Makes the CDN request compressed content from the origin.
The origin server should support compression. CDN servers will not decompress your content even if a user browser does not accept compression.
Notes:
fetch_compressedis not supported withgzipONorbrotli_compressionorsliceoptions enabled.fetch_compressedoverridesgzipONandbrotli_compressionin rule. If you enable it in CDN resource and want to usegzipONandbrotli_compressionin a rule, you have to specify<span pulumi-lang-nodejs=""fetchCompressed"" pulumi-lang-dotnet=""FetchCompressed"" pulumi-lang-go=""fetchCompressed"" pulumi-lang-python=""fetch_compressed"" pulumi-lang-yaml=""fetchCompressed"" pulumi-lang-java=""fetchCompressed"">"fetch_compressed"</span>: falsein the rule.
- follow_
origin_ Cdnredirect Resource Options Follow Origin Redirect - Enables redirection from origin. If the origin server returns a redirect, the option allows the CDN to pull the requested content from the origin server that was returned in the redirect.
- force_
return CdnResource Options Force Return Applies custom HTTP response codes for CDN content.
The following codes are reserved by our system and cannot be specified in this option: 408, 444, 477, 494, 495, 496, 497, 499.
- forward_
host_ Cdnheader Resource Options Forward Host Header Forwards the Host header from a end-user request to an origin server.
hostHeaderandforward_host_headeroptions cannot be enabled simultaneously.- gzip_
on CdnResource Options Gzip On Compresses content with gzip on the CDN end. CDN servers will request only uncompressed content from the origin.
Notes:
- Compression with gzip is not supported with
fetch_compressedorsliceoptions enabled. fetch_compressedoption in CDN resource settings overridesgzipONin rules. If you enablefetch_compressedin CDN resource and want to enablegzipONin rules, you need to specify<span pulumi-lang-nodejs=""fetchCompressed"" pulumi-lang-dotnet=""FetchCompressed"" pulumi-lang-go=""fetchCompressed"" pulumi-lang-python=""fetch_compressed"" pulumi-lang-yaml=""fetchCompressed"" pulumi-lang-java=""fetchCompressed"">"fetch_compressed"</span>:falsefor rules.
- Compression with gzip is not supported with
- host_
header CdnResource Options Host Header Sets the Host header that CDN servers use when request content from an origin server. Your server must be able to process requests with the chosen header.
If the option is
null, the Host Header value is equal to first CNAME.hostHeaderandforward_host_headeroptions cannot be enabled simultaneously.- http3_
enabled CdnResource Options Http3Enabled Enables HTTP/3 protocol for content delivery.
http3_enabledoption works only with"sslEnabled": true.-
Cdn
Resource Options Ignore Cookie - Defines whether the files with the Set-Cookies header are cached as one file or as different ones.
- ignore_
query_ Cdnstring Resource Options Ignore Query String How a file with different query strings is cached: either as one object (option is enabled) or as different objects (option is disabled.)
ignoreQueryString,query_params_whitelistandquery_params_blacklistoptions cannot be enabled simultaneously.- image_
stack CdnResource Options Image Stack - Transforms JPG and PNG images (for example, resize or crop) and automatically converts them to WebP or AVIF format.
- ip_
address_ Cdnacl Resource Options Ip Address Acl Controls access to the CDN resource content for specific IP addresses.
If you want to use IPs from our CDN servers IP list for IP ACL configuration, you have to independently monitor their relevance.
We recommend you use a script for automatically update IP ACL. Read more.
- limit_
bandwidth CdnResource Options Limit Bandwidth - Allows to control the download speed per connection.
- proxy_
cache_ Cdnkey Resource Options Proxy Cache Key Allows you to modify your cache key. If omitted, the default value is
$request_uri.Combine the specified variables to create a key for caching.
- $
request_uri - $scheme
- $uri
Warning: Enabling and changing this option can invalidate your current cache and affect the cache hit ratio. Furthermore, the "Purge by pattern" option will not work.
- $
- proxy_
cache_ Cdnmethods_ set Resource Options Proxy Cache Methods Set - Caching for POST requests along with default GET and HEAD.
- proxy_
connect_ Cdntimeout Resource Options Proxy Connect Timeout - The time limit for establishing a connection with the origin.
- proxy_
read_ Cdntimeout Resource Options Proxy Read Timeout The time limit for receiving a partial response from the origin. If no response is received within this time, the connection will be closed.
Note: When used with a WebSocket connection, this option supports values only in the range 1–20 seconds (instead of the usual 1–30 seconds).
- query_
params_ Cdnblacklist Resource Options Query Params Blacklist Files with the specified query parameters are cached as one object, files with other parameters are cached as different objects.
ignoreQueryString,query_params_whitelistandquery_params_blacklistoptions cannot be enabled simultaneously.- query_
params_ Cdnwhitelist Resource Options Query Params Whitelist Files with the specified query parameters are cached as different objects, files with other parameters are cached as one object.
ignoreQueryString,query_params_whitelistandquery_params_blacklistoptions cannot be enabled simultaneously.- query_
string_ Cdnforwarding Resource Options Query String Forwarding - The Query String Forwarding feature allows for the seamless transfer of parameters embedded in playlist files to the corresponding media chunk files. This functionality ensures that specific attributes, such as authentication tokens or tracking information, are consistently passed along from the playlist manifest to the individual media segments. This is particularly useful for maintaining continuity in security, analytics, and any other parameter-based operations across the entire media delivery workflow.
- redirect_
http_ Cdnto_ https Resource Options Redirect Http To Https Enables redirect from HTTP to HTTPS.
redirect_http_to_httpsandredirect_https_to_httpoptions cannot be enabled simultaneously.- redirect_
https_ Cdnto_ http Resource Options Redirect Https To Http Enables redirect from HTTPS to HTTP.
redirect_http_to_httpsandredirect_https_to_httpoptions cannot be enabled simultaneously.- referrer_
acl CdnResource Options Referrer Acl - Controls access to the CDN resource content for specified domain names.
- request_
limiter CdnResource Options Request Limiter - Option allows to limit the amount of HTTP requests.
- response_
headers_ Cdnhiding_ policy Resource Options Response Headers Hiding Policy - Hides HTTP headers from an origin server in the CDN response.
- rewrite
Cdn
Resource Options Rewrite - Changes and redirects requests from the CDN to the origin. It operates according to the Nginx configuration.
- secure_
key CdnResource Options Secure Key - Configures access with tokenized URLs. This makes impossible to access content without a valid (unexpired) token.
- slice
Cdn
Resource Options Slice Requests and caches files larger than 10 MB in parts (no larger than 10 MB per part.) This reduces time to first byte.
The option is based on the Slice module.
Notes:
- Origin must support HTTP Range requests.
- Not supported with
gzipON,brotli_compressionorfetch_compressedoptions enabled.
- sni
Cdn
Resource Options Sni The hostname that is added to SNI requests from CDN servers to the origin server via HTTPS.
SNI is generally only required if your origin uses shared hosting or does not have a dedicated IP address. If the origin server presents multiple certificates, SNI allows the origin server to know which certificate to use for the connection.
The option works only if
originProtocolparameter isHTTPSorMATCH.- stale
Cdn
Resource Options Stale - Serves stale cached content in case of origin unavailability.
- static_
request_ Cdnheaders Resource Options Static Request Headers - Custom HTTP Headers for a CDN server to add to request. Up to fifty custom HTTP Headers can be specified.
- static_
response_ Cdnheaders Resource Options Static Response Headers - Custom HTTP Headers that a CDN server adds to a response.
- tls_
versions CdnResource Options Tls Versions List of SSL/TLS protocol versions allowed for HTTPS connections from end users to the domain.
When the option is disabled, all protocols versions are allowed.
- use_
default_ Cdnle_ chain Resource Options Use Default Le Chain Let's Encrypt certificate chain.
The specified chain will be used during the next Let's Encrypt certificate issue or renewal.
- use_
dns01_ Cdnle_ challenge Resource Options Use Dns01Le Challenge DNS-01 challenge to issue a Let's Encrypt certificate for the resource.
DNS service should be activated to enable this option.
- use_
rsa_ Cdnle_ cert Resource Options Use Rsa Le Cert RSA Let's Encrypt certificate type for the CDN resource.
The specified value will be used during the next Let's Encrypt certificate issue or renewal.
- user_
agent_ Cdnacl Resource Options User Agent Acl - Controls access to the content for specified User-Agents.
- waap
Cdn
Resource Options Waap - Allows to enable WAAP (Web Application and API Protection).
- websockets
Cdn
Resource Options Websockets - Enables or disables WebSockets connections to an origin server.
- allowed
Http Property MapMethods - HTTP methods allowed for content requests from the CDN.
- bot
Protection Property Map - Allows to prevent online services from overloading and ensure your business workflow running smoothly.
- brotli
Compression Property Map - Compresses content with Brotli on the CDN side. CDN servers will request only uncompressed content from the origin.
- browser
Cache Property MapSettings Cache expiration time for users browsers in seconds.
Cache expiration time is applied to the following response codes: 200, 201, 204, 206, 301, 302, 303, 304, 307, 308.
Responses with other codes will not be cached.
- cors Property Map
Enables or disables CORS (Cross-Origin Resource Sharing) header support.
CORS header support allows the CDN to add the Access-Control-Allow-Origin header to a response to a browser.
- country
Acl Property Map - Enables control access to content for specified countries.
- disable
Proxy Property MapForce Ranges - Allows 206 responses regardless of the settings of an origin source.
- edge
Cache Property MapSettings Cache expiration time for CDN servers.
valueanddefaultfields cannot be used simultaneously.- fastedge Property Map
Allows to configure FastEdge app to be called on different request/response phases.
Note: At least one of
on_request_headers,on_request_body,on_response_headers, oron_response_bodymust be specified.- fetch
Compressed Property Map Makes the CDN request compressed content from the origin.
The origin server should support compression. CDN servers will not decompress your content even if a user browser does not accept compression.
Notes:
fetch_compressedis not supported withgzipONorbrotli_compressionorsliceoptions enabled.fetch_compressedoverridesgzipONandbrotli_compressionin rule. If you enable it in CDN resource and want to usegzipONandbrotli_compressionin a rule, you have to specify<span pulumi-lang-nodejs=""fetchCompressed"" pulumi-lang-dotnet=""FetchCompressed"" pulumi-lang-go=""fetchCompressed"" pulumi-lang-python=""fetch_compressed"" pulumi-lang-yaml=""fetchCompressed"" pulumi-lang-java=""fetchCompressed"">"fetch_compressed"</span>: falsein the rule.
- follow
Origin Property MapRedirect - Enables redirection from origin. If the origin server returns a redirect, the option allows the CDN to pull the requested content from the origin server that was returned in the redirect.
- force
Return Property Map Applies custom HTTP response codes for CDN content.
The following codes are reserved by our system and cannot be specified in this option: 408, 444, 477, 494, 495, 496, 497, 499.
- forward
Host Property MapHeader Forwards the Host header from a end-user request to an origin server.
hostHeaderandforward_host_headeroptions cannot be enabled simultaneously.- gzip
On Property Map Compresses content with gzip on the CDN end. CDN servers will request only uncompressed content from the origin.
Notes:
- Compression with gzip is not supported with
fetch_compressedorsliceoptions enabled. fetch_compressedoption in CDN resource settings overridesgzipONin rules. If you enablefetch_compressedin CDN resource and want to enablegzipONin rules, you need to specify<span pulumi-lang-nodejs=""fetchCompressed"" pulumi-lang-dotnet=""FetchCompressed"" pulumi-lang-go=""fetchCompressed"" pulumi-lang-python=""fetch_compressed"" pulumi-lang-yaml=""fetchCompressed"" pulumi-lang-java=""fetchCompressed"">"fetch_compressed"</span>:falsefor rules.
- Compression with gzip is not supported with
- host
Header Property Map Sets the Host header that CDN servers use when request content from an origin server. Your server must be able to process requests with the chosen header.
If the option is
null, the Host Header value is equal to first CNAME.hostHeaderandforward_host_headeroptions cannot be enabled simultaneously.- http3Enabled Property Map
Enables HTTP/3 protocol for content delivery.
http3_enabledoption works only with"sslEnabled": true.- Property Map
- Defines whether the files with the Set-Cookies header are cached as one file or as different ones.
- ignore
Query Property MapString How a file with different query strings is cached: either as one object (option is enabled) or as different objects (option is disabled.)
ignoreQueryString,query_params_whitelistandquery_params_blacklistoptions cannot be enabled simultaneously.- image
Stack Property Map - Transforms JPG and PNG images (for example, resize or crop) and automatically converts them to WebP or AVIF format.
- ip
Address Property MapAcl Controls access to the CDN resource content for specific IP addresses.
If you want to use IPs from our CDN servers IP list for IP ACL configuration, you have to independently monitor their relevance.
We recommend you use a script for automatically update IP ACL. Read more.
- limit
Bandwidth Property Map - Allows to control the download speed per connection.
- proxy
Cache Property MapKey Allows you to modify your cache key. If omitted, the default value is
$request_uri.Combine the specified variables to create a key for caching.
- $
request_uri - $scheme
- $uri
Warning: Enabling and changing this option can invalidate your current cache and affect the cache hit ratio. Furthermore, the "Purge by pattern" option will not work.
- $
- proxy
Cache Property MapMethods Set - Caching for POST requests along with default GET and HEAD.
- proxy
Connect Property MapTimeout - The time limit for establishing a connection with the origin.
- proxy
Read Property MapTimeout The time limit for receiving a partial response from the origin. If no response is received within this time, the connection will be closed.
Note: When used with a WebSocket connection, this option supports values only in the range 1–20 seconds (instead of the usual 1–30 seconds).
- query
Params Property MapBlacklist Files with the specified query parameters are cached as one object, files with other parameters are cached as different objects.
ignoreQueryString,query_params_whitelistandquery_params_blacklistoptions cannot be enabled simultaneously.- query
Params Property MapWhitelist Files with the specified query parameters are cached as different objects, files with other parameters are cached as one object.
ignoreQueryString,query_params_whitelistandquery_params_blacklistoptions cannot be enabled simultaneously.- query
String Property MapForwarding - The Query String Forwarding feature allows for the seamless transfer of parameters embedded in playlist files to the corresponding media chunk files. This functionality ensures that specific attributes, such as authentication tokens or tracking information, are consistently passed along from the playlist manifest to the individual media segments. This is particularly useful for maintaining continuity in security, analytics, and any other parameter-based operations across the entire media delivery workflow.
- redirect
Http Property MapTo Https Enables redirect from HTTP to HTTPS.
redirect_http_to_httpsandredirect_https_to_httpoptions cannot be enabled simultaneously.- redirect
Https Property MapTo Http Enables redirect from HTTPS to HTTP.
redirect_http_to_httpsandredirect_https_to_httpoptions cannot be enabled simultaneously.- referrer
Acl Property Map - Controls access to the CDN resource content for specified domain names.
- request
Limiter Property Map - Option allows to limit the amount of HTTP requests.
- response
Headers Property MapHiding Policy - Hides HTTP headers from an origin server in the CDN response.
- rewrite Property Map
- Changes and redirects requests from the CDN to the origin. It operates according to the Nginx configuration.
- secure
Key Property Map - Configures access with tokenized URLs. This makes impossible to access content without a valid (unexpired) token.
- slice Property Map
Requests and caches files larger than 10 MB in parts (no larger than 10 MB per part.) This reduces time to first byte.
The option is based on the Slice module.
Notes:
- Origin must support HTTP Range requests.
- Not supported with
gzipON,brotli_compressionorfetch_compressedoptions enabled.
- sni Property Map
The hostname that is added to SNI requests from CDN servers to the origin server via HTTPS.
SNI is generally only required if your origin uses shared hosting or does not have a dedicated IP address. If the origin server presents multiple certificates, SNI allows the origin server to know which certificate to use for the connection.
The option works only if
originProtocolparameter isHTTPSorMATCH.- stale Property Map
- Serves stale cached content in case of origin unavailability.
- static
Request Property MapHeaders - Custom HTTP Headers for a CDN server to add to request. Up to fifty custom HTTP Headers can be specified.
- static
Response Property MapHeaders - Custom HTTP Headers that a CDN server adds to a response.
- tls
Versions Property Map List of SSL/TLS protocol versions allowed for HTTPS connections from end users to the domain.
When the option is disabled, all protocols versions are allowed.
- use
Default Property MapLe Chain Let's Encrypt certificate chain.
The specified chain will be used during the next Let's Encrypt certificate issue or renewal.
- use
Dns01Le Property MapChallenge DNS-01 challenge to issue a Let's Encrypt certificate for the resource.
DNS service should be activated to enable this option.
- use
Rsa Property MapLe Cert RSA Let's Encrypt certificate type for the CDN resource.
The specified value will be used during the next Let's Encrypt certificate issue or renewal.
- user
Agent Property MapAcl - Controls access to the content for specified User-Agents.
- waap Property Map
- Allows to enable WAAP (Web Application and API Protection).
- websockets Property Map
- Enables or disables WebSockets connections to an origin server.
CdnResourceOptionsAllowedHttpMethods, CdnResourceOptionsAllowedHttpMethodsArgs
CdnResourceOptionsBotProtection, CdnResourceOptionsBotProtectionArgs
- Bot
Challenge CdnResource Options Bot Protection Bot Challenge - Controls the bot challenge module state.
- Enabled bool
- Controls the option state.
- Bot
Challenge CdnResource Options Bot Protection Bot Challenge - Controls the bot challenge module state.
- Enabled bool
- Controls the option state.
- bot
Challenge CdnResource Options Bot Protection Bot Challenge - Controls the bot challenge module state.
- enabled Boolean
- Controls the option state.
- bot
Challenge CdnResource Options Bot Protection Bot Challenge - Controls the bot challenge module state.
- enabled boolean
- Controls the option state.
- bot_
challenge CdnResource Options Bot Protection Bot Challenge - Controls the bot challenge module state.
- enabled bool
- Controls the option state.
- bot
Challenge Property Map - Controls the bot challenge module state.
- enabled Boolean
- Controls the option state.
CdnResourceOptionsBotProtectionBotChallenge, CdnResourceOptionsBotProtectionBotChallengeArgs
- Enabled bool
- Possible values:
- Enabled bool
- Possible values:
- enabled Boolean
- Possible values:
- enabled boolean
- Possible values:
- enabled bool
- Possible values:
- enabled Boolean
- Possible values:
CdnResourceOptionsBrotliCompression, CdnResourceOptionsBrotliCompressionArgs
CdnResourceOptionsBrowserCacheSettings, CdnResourceOptionsBrowserCacheSettingsArgs
CdnResourceOptionsCors, CdnResourceOptionsCorsArgs
- Enabled bool
- Controls the option state.
- Values List<string>
Value of the Access-Control-Allow-Origin header.
Possible values:
- Adds * as the Access-Control-Allow-Origin header value - Content will be uploaded for requests from any domain.
"value": ["*"] - Adds "$http_origin" as the Access-Control-Allow-Origin header value if the origin matches one of the listed domains - Content will be uploaded only for requests from the domains specified in the field.
"value": ["domain.com", "second.dom.com"] - Adds "$http_origin" as the Access-Control-Allow-Origin header value - Content will be uploaded for requests from any domain, and the domain from which the request was sent will be added to the "Access-Control-Allow-Origin" header in the response.
"value": ["$http_origin"]
- Adds * as the Access-Control-Allow-Origin header value - Content will be uploaded for requests from any domain.
- Always bool
Defines whether the Access-Control-Allow-Origin header should be added to a response from CDN regardless of response code.
Possible values:
- true - Header will be added to a response regardless of response code.
- false - Header will only be added to responses with codes: 200, 201, 204, 206, 301, 302, 303, 304, 307, 308.
- Enabled bool
- Controls the option state.
- Values []string
Value of the Access-Control-Allow-Origin header.
Possible values:
- Adds * as the Access-Control-Allow-Origin header value - Content will be uploaded for requests from any domain.
"value": ["*"] - Adds "$http_origin" as the Access-Control-Allow-Origin header value if the origin matches one of the listed domains - Content will be uploaded only for requests from the domains specified in the field.
"value": ["domain.com", "second.dom.com"] - Adds "$http_origin" as the Access-Control-Allow-Origin header value - Content will be uploaded for requests from any domain, and the domain from which the request was sent will be added to the "Access-Control-Allow-Origin" header in the response.
"value": ["$http_origin"]
- Adds * as the Access-Control-Allow-Origin header value - Content will be uploaded for requests from any domain.
- Always bool
Defines whether the Access-Control-Allow-Origin header should be added to a response from CDN regardless of response code.
Possible values:
- true - Header will be added to a response regardless of response code.
- false - Header will only be added to responses with codes: 200, 201, 204, 206, 301, 302, 303, 304, 307, 308.
- enabled Boolean
- Controls the option state.
- values List<String>
Value of the Access-Control-Allow-Origin header.
Possible values:
- Adds * as the Access-Control-Allow-Origin header value - Content will be uploaded for requests from any domain.
"value": ["*"] - Adds "$http_origin" as the Access-Control-Allow-Origin header value if the origin matches one of the listed domains - Content will be uploaded only for requests from the domains specified in the field.
"value": ["domain.com", "second.dom.com"] - Adds "$http_origin" as the Access-Control-Allow-Origin header value - Content will be uploaded for requests from any domain, and the domain from which the request was sent will be added to the "Access-Control-Allow-Origin" header in the response.
"value": ["$http_origin"]
- Adds * as the Access-Control-Allow-Origin header value - Content will be uploaded for requests from any domain.
- always Boolean
Defines whether the Access-Control-Allow-Origin header should be added to a response from CDN regardless of response code.
Possible values:
- true - Header will be added to a response regardless of response code.
- false - Header will only be added to responses with codes: 200, 201, 204, 206, 301, 302, 303, 304, 307, 308.
- enabled boolean
- Controls the option state.
- values string[]
Value of the Access-Control-Allow-Origin header.
Possible values:
- Adds * as the Access-Control-Allow-Origin header value - Content will be uploaded for requests from any domain.
"value": ["*"] - Adds "$http_origin" as the Access-Control-Allow-Origin header value if the origin matches one of the listed domains - Content will be uploaded only for requests from the domains specified in the field.
"value": ["domain.com", "second.dom.com"] - Adds "$http_origin" as the Access-Control-Allow-Origin header value - Content will be uploaded for requests from any domain, and the domain from which the request was sent will be added to the "Access-Control-Allow-Origin" header in the response.
"value": ["$http_origin"]
- Adds * as the Access-Control-Allow-Origin header value - Content will be uploaded for requests from any domain.
- always boolean
Defines whether the Access-Control-Allow-Origin header should be added to a response from CDN regardless of response code.
Possible values:
- true - Header will be added to a response regardless of response code.
- false - Header will only be added to responses with codes: 200, 201, 204, 206, 301, 302, 303, 304, 307, 308.
- enabled bool
- Controls the option state.
- values Sequence[str]
Value of the Access-Control-Allow-Origin header.
Possible values:
- Adds * as the Access-Control-Allow-Origin header value - Content will be uploaded for requests from any domain.
"value": ["*"] - Adds "$http_origin" as the Access-Control-Allow-Origin header value if the origin matches one of the listed domains - Content will be uploaded only for requests from the domains specified in the field.
"value": ["domain.com", "second.dom.com"] - Adds "$http_origin" as the Access-Control-Allow-Origin header value - Content will be uploaded for requests from any domain, and the domain from which the request was sent will be added to the "Access-Control-Allow-Origin" header in the response.
"value": ["$http_origin"]
- Adds * as the Access-Control-Allow-Origin header value - Content will be uploaded for requests from any domain.
- always bool
Defines whether the Access-Control-Allow-Origin header should be added to a response from CDN regardless of response code.
Possible values:
- true - Header will be added to a response regardless of response code.
- false - Header will only be added to responses with codes: 200, 201, 204, 206, 301, 302, 303, 304, 307, 308.
- enabled Boolean
- Controls the option state.
- values List<String>
Value of the Access-Control-Allow-Origin header.
Possible values:
- Adds * as the Access-Control-Allow-Origin header value - Content will be uploaded for requests from any domain.
"value": ["*"] - Adds "$http_origin" as the Access-Control-Allow-Origin header value if the origin matches one of the listed domains - Content will be uploaded only for requests from the domains specified in the field.
"value": ["domain.com", "second.dom.com"] - Adds "$http_origin" as the Access-Control-Allow-Origin header value - Content will be uploaded for requests from any domain, and the domain from which the request was sent will be added to the "Access-Control-Allow-Origin" header in the response.
"value": ["$http_origin"]
- Adds * as the Access-Control-Allow-Origin header value - Content will be uploaded for requests from any domain.
- always Boolean
Defines whether the Access-Control-Allow-Origin header should be added to a response from CDN regardless of response code.
Possible values:
- true - Header will be added to a response regardless of response code.
- false - Header will only be added to responses with codes: 200, 201, 204, 206, 301, 302, 303, 304, 307, 308.
CdnResourceOptionsCountryAcl, CdnResourceOptionsCountryAclArgs
- Enabled bool
- Controls the option state.
- Excepted
Values List<string> List of countries according to ISO-3166-1.
The meaning of the parameter depends on
policy_typevalue:- allow - List of countries for which access is prohibited.
- deny - List of countries for which access is allowed.
- Policy
Type string Defines the type of CDN resource access policy.
Possible values:
- allow - Access is allowed for all the countries except for those specified in
excepted_valuesfield. - deny - Access is denied for all the countries except for those specified in
excepted_valuesfield. Available values: "allow", "deny".
- allow - Access is allowed for all the countries except for those specified in
- Enabled bool
- Controls the option state.
- Excepted
Values []string List of countries according to ISO-3166-1.
The meaning of the parameter depends on
policy_typevalue:- allow - List of countries for which access is prohibited.
- deny - List of countries for which access is allowed.
- Policy
Type string Defines the type of CDN resource access policy.
Possible values:
- allow - Access is allowed for all the countries except for those specified in
excepted_valuesfield. - deny - Access is denied for all the countries except for those specified in
excepted_valuesfield. Available values: "allow", "deny".
- allow - Access is allowed for all the countries except for those specified in
- enabled Boolean
- Controls the option state.
- excepted
Values List<String> List of countries according to ISO-3166-1.
The meaning of the parameter depends on
policy_typevalue:- allow - List of countries for which access is prohibited.
- deny - List of countries for which access is allowed.
- policy
Type String Defines the type of CDN resource access policy.
Possible values:
- allow - Access is allowed for all the countries except for those specified in
excepted_valuesfield. - deny - Access is denied for all the countries except for those specified in
excepted_valuesfield. Available values: "allow", "deny".
- allow - Access is allowed for all the countries except for those specified in
- enabled boolean
- Controls the option state.
- excepted
Values string[] List of countries according to ISO-3166-1.
The meaning of the parameter depends on
policy_typevalue:- allow - List of countries for which access is prohibited.
- deny - List of countries for which access is allowed.
- policy
Type string Defines the type of CDN resource access policy.
Possible values:
- allow - Access is allowed for all the countries except for those specified in
excepted_valuesfield. - deny - Access is denied for all the countries except for those specified in
excepted_valuesfield. Available values: "allow", "deny".
- allow - Access is allowed for all the countries except for those specified in
- enabled bool
- Controls the option state.
- excepted_
values Sequence[str] List of countries according to ISO-3166-1.
The meaning of the parameter depends on
policy_typevalue:- allow - List of countries for which access is prohibited.
- deny - List of countries for which access is allowed.
- policy_
type str Defines the type of CDN resource access policy.
Possible values:
- allow - Access is allowed for all the countries except for those specified in
excepted_valuesfield. - deny - Access is denied for all the countries except for those specified in
excepted_valuesfield. Available values: "allow", "deny".
- allow - Access is allowed for all the countries except for those specified in
- enabled Boolean
- Controls the option state.
- excepted
Values List<String> List of countries according to ISO-3166-1.
The meaning of the parameter depends on
policy_typevalue:- allow - List of countries for which access is prohibited.
- deny - List of countries for which access is allowed.
- policy
Type String Defines the type of CDN resource access policy.
Possible values:
- allow - Access is allowed for all the countries except for those specified in
excepted_valuesfield. - deny - Access is denied for all the countries except for those specified in
excepted_valuesfield. Available values: "allow", "deny".
- allow - Access is allowed for all the countries except for those specified in
CdnResourceOptionsDisableProxyForceRanges, CdnResourceOptionsDisableProxyForceRangesArgs
CdnResourceOptionsEdgeCacheSettings, CdnResourceOptionsEdgeCacheSettingsArgs
- Enabled bool
- Controls the option state.
- Custom
Values Dictionary<string, string> A MAP object representing the caching time in seconds for a response with a specific response code.
These settings have a higher priority than the
valuefield.- Use
anykey to specify caching time for all response codes. - Use
0svalue to disable caching for a specific response code.
- Use
- Default string
Enables content caching according to the origin cache settings.
The value is applied to the following response codes 200, 201, 204, 206, 301, 302, 303, 304, 307, 308, if an origin server does not have caching HTTP headers.
Responses with other codes will not be cached.
The maximum duration is any equivalent to
1y.- Value string
Caching time.
The value is applied to the following response codes: 200, 206, 301, 302. Responses with codes 4xx, 5xx will not be cached.
Use
0sto disable caching.The maximum duration is any equivalent to
1y.
- Enabled bool
- Controls the option state.
- Custom
Values map[string]string A MAP object representing the caching time in seconds for a response with a specific response code.
These settings have a higher priority than the
valuefield.- Use
anykey to specify caching time for all response codes. - Use
0svalue to disable caching for a specific response code.
- Use
- Default string
Enables content caching according to the origin cache settings.
The value is applied to the following response codes 200, 201, 204, 206, 301, 302, 303, 304, 307, 308, if an origin server does not have caching HTTP headers.
Responses with other codes will not be cached.
The maximum duration is any equivalent to
1y.- Value string
Caching time.
The value is applied to the following response codes: 200, 206, 301, 302. Responses with codes 4xx, 5xx will not be cached.
Use
0sto disable caching.The maximum duration is any equivalent to
1y.
- enabled Boolean
- Controls the option state.
- custom
Values Map<String,String> A MAP object representing the caching time in seconds for a response with a specific response code.
These settings have a higher priority than the
valuefield.- Use
anykey to specify caching time for all response codes. - Use
0svalue to disable caching for a specific response code.
- Use
- default_ String
Enables content caching according to the origin cache settings.
The value is applied to the following response codes 200, 201, 204, 206, 301, 302, 303, 304, 307, 308, if an origin server does not have caching HTTP headers.
Responses with other codes will not be cached.
The maximum duration is any equivalent to
1y.- value String
Caching time.
The value is applied to the following response codes: 200, 206, 301, 302. Responses with codes 4xx, 5xx will not be cached.
Use
0sto disable caching.The maximum duration is any equivalent to
1y.
- enabled boolean
- Controls the option state.
- custom
Values {[key: string]: string} A MAP object representing the caching time in seconds for a response with a specific response code.
These settings have a higher priority than the
valuefield.- Use
anykey to specify caching time for all response codes. - Use
0svalue to disable caching for a specific response code.
- Use
- default string
Enables content caching according to the origin cache settings.
The value is applied to the following response codes 200, 201, 204, 206, 301, 302, 303, 304, 307, 308, if an origin server does not have caching HTTP headers.
Responses with other codes will not be cached.
The maximum duration is any equivalent to
1y.- value string
Caching time.
The value is applied to the following response codes: 200, 206, 301, 302. Responses with codes 4xx, 5xx will not be cached.
Use
0sto disable caching.The maximum duration is any equivalent to
1y.
- enabled bool
- Controls the option state.
- custom_
values Mapping[str, str] A MAP object representing the caching time in seconds for a response with a specific response code.
These settings have a higher priority than the
valuefield.- Use
anykey to specify caching time for all response codes. - Use
0svalue to disable caching for a specific response code.
- Use
- default str
Enables content caching according to the origin cache settings.
The value is applied to the following response codes 200, 201, 204, 206, 301, 302, 303, 304, 307, 308, if an origin server does not have caching HTTP headers.
Responses with other codes will not be cached.
The maximum duration is any equivalent to
1y.- value str
Caching time.
The value is applied to the following response codes: 200, 206, 301, 302. Responses with codes 4xx, 5xx will not be cached.
Use
0sto disable caching.The maximum duration is any equivalent to
1y.
- enabled Boolean
- Controls the option state.
- custom
Values Map<String> A MAP object representing the caching time in seconds for a response with a specific response code.
These settings have a higher priority than the
valuefield.- Use
anykey to specify caching time for all response codes. - Use
0svalue to disable caching for a specific response code.
- Use
- default String
Enables content caching according to the origin cache settings.
The value is applied to the following response codes 200, 201, 204, 206, 301, 302, 303, 304, 307, 308, if an origin server does not have caching HTTP headers.
Responses with other codes will not be cached.
The maximum duration is any equivalent to
1y.- value String
Caching time.
The value is applied to the following response codes: 200, 206, 301, 302. Responses with codes 4xx, 5xx will not be cached.
Use
0sto disable caching.The maximum duration is any equivalent to
1y.
CdnResourceOptionsFastedge, CdnResourceOptionsFastedgeArgs
- Enabled bool
- Controls the option state.
- On
Request CdnBody Resource Options Fastedge On Request Body - Allows to configure FastEdge application that will be called to handle request body as soon as CDN receives incoming HTTP request.
- On
Request CdnHeaders Resource Options Fastedge On Request Headers - Allows to configure FastEdge application that will be called to handle request headers as soon as CDN receives incoming HTTP request.
- On
Response CdnBody Resource Options Fastedge On Response Body - Allows to configure FastEdge application that will be called to handle response body before CDN sends the HTTP response.
- On
Response CdnHeaders Resource Options Fastedge On Response Headers - Allows to configure FastEdge application that will be called to handle response headers before CDN sends the HTTP response.
- Enabled bool
- Controls the option state.
- On
Request CdnBody Resource Options Fastedge On Request Body - Allows to configure FastEdge application that will be called to handle request body as soon as CDN receives incoming HTTP request.
- On
Request CdnHeaders Resource Options Fastedge On Request Headers - Allows to configure FastEdge application that will be called to handle request headers as soon as CDN receives incoming HTTP request.
- On
Response CdnBody Resource Options Fastedge On Response Body - Allows to configure FastEdge application that will be called to handle response body before CDN sends the HTTP response.
- On
Response CdnHeaders Resource Options Fastedge On Response Headers - Allows to configure FastEdge application that will be called to handle response headers before CDN sends the HTTP response.
- enabled Boolean
- Controls the option state.
- on
Request CdnBody Resource Options Fastedge On Request Body - Allows to configure FastEdge application that will be called to handle request body as soon as CDN receives incoming HTTP request.
- on
Request CdnHeaders Resource Options Fastedge On Request Headers - Allows to configure FastEdge application that will be called to handle request headers as soon as CDN receives incoming HTTP request.
- on
Response CdnBody Resource Options Fastedge On Response Body - Allows to configure FastEdge application that will be called to handle response body before CDN sends the HTTP response.
- on
Response CdnHeaders Resource Options Fastedge On Response Headers - Allows to configure FastEdge application that will be called to handle response headers before CDN sends the HTTP response.
- enabled boolean
- Controls the option state.
- on
Request CdnBody Resource Options Fastedge On Request Body - Allows to configure FastEdge application that will be called to handle request body as soon as CDN receives incoming HTTP request.
- on
Request CdnHeaders Resource Options Fastedge On Request Headers - Allows to configure FastEdge application that will be called to handle request headers as soon as CDN receives incoming HTTP request.
- on
Response CdnBody Resource Options Fastedge On Response Body - Allows to configure FastEdge application that will be called to handle response body before CDN sends the HTTP response.
- on
Response CdnHeaders Resource Options Fastedge On Response Headers - Allows to configure FastEdge application that will be called to handle response headers before CDN sends the HTTP response.
- enabled bool
- Controls the option state.
- on_
request_ Cdnbody Resource Options Fastedge On Request Body - Allows to configure FastEdge application that will be called to handle request body as soon as CDN receives incoming HTTP request.
- on_
request_ Cdnheaders Resource Options Fastedge On Request Headers - Allows to configure FastEdge application that will be called to handle request headers as soon as CDN receives incoming HTTP request.
- on_
response_ Cdnbody Resource Options Fastedge On Response Body - Allows to configure FastEdge application that will be called to handle response body before CDN sends the HTTP response.
- on_
response_ Cdnheaders Resource Options Fastedge On Response Headers - Allows to configure FastEdge application that will be called to handle response headers before CDN sends the HTTP response.
- enabled Boolean
- Controls the option state.
- on
Request Property MapBody - Allows to configure FastEdge application that will be called to handle request body as soon as CDN receives incoming HTTP request.
- on
Request Property MapHeaders - Allows to configure FastEdge application that will be called to handle request headers as soon as CDN receives incoming HTTP request.
- on
Response Property MapBody - Allows to configure FastEdge application that will be called to handle response body before CDN sends the HTTP response.
- on
Response Property MapHeaders - Allows to configure FastEdge application that will be called to handle response headers before CDN sends the HTTP response.
CdnResourceOptionsFastedgeOnRequestBody, CdnResourceOptionsFastedgeOnRequestBodyArgs
- App
Id string - The ID of the application in FastEdge.
- Enabled bool
- Determines if the FastEdge application should be called whenever HTTP request headers are received.
- Execute
On boolEdge - Determines if the request should be executed at the edge nodes.
- Execute
On boolShield - Determines if the request should be executed at the shield nodes.
- Interrupt
On boolError - Determines if the request execution should be interrupted when an error occurs.
- App
Id string - The ID of the application in FastEdge.
- Enabled bool
- Determines if the FastEdge application should be called whenever HTTP request headers are received.
- Execute
On boolEdge - Determines if the request should be executed at the edge nodes.
- Execute
On boolShield - Determines if the request should be executed at the shield nodes.
- Interrupt
On boolError - Determines if the request execution should be interrupted when an error occurs.
- app
Id String - The ID of the application in FastEdge.
- enabled Boolean
- Determines if the FastEdge application should be called whenever HTTP request headers are received.
- execute
On BooleanEdge - Determines if the request should be executed at the edge nodes.
- execute
On BooleanShield - Determines if the request should be executed at the shield nodes.
- interrupt
On BooleanError - Determines if the request execution should be interrupted when an error occurs.
- app
Id string - The ID of the application in FastEdge.
- enabled boolean
- Determines if the FastEdge application should be called whenever HTTP request headers are received.
- execute
On booleanEdge - Determines if the request should be executed at the edge nodes.
- execute
On booleanShield - Determines if the request should be executed at the shield nodes.
- interrupt
On booleanError - Determines if the request execution should be interrupted when an error occurs.
- app_
id str - The ID of the application in FastEdge.
- enabled bool
- Determines if the FastEdge application should be called whenever HTTP request headers are received.
- execute_
on_ booledge - Determines if the request should be executed at the edge nodes.
- execute_
on_ boolshield - Determines if the request should be executed at the shield nodes.
- interrupt_
on_ boolerror - Determines if the request execution should be interrupted when an error occurs.
- app
Id String - The ID of the application in FastEdge.
- enabled Boolean
- Determines if the FastEdge application should be called whenever HTTP request headers are received.
- execute
On BooleanEdge - Determines if the request should be executed at the edge nodes.
- execute
On BooleanShield - Determines if the request should be executed at the shield nodes.
- interrupt
On BooleanError - Determines if the request execution should be interrupted when an error occurs.
CdnResourceOptionsFastedgeOnRequestHeaders, CdnResourceOptionsFastedgeOnRequestHeadersArgs
- App
Id string - The ID of the application in FastEdge.
- Enabled bool
- Determines if the FastEdge application should be called whenever HTTP request headers are received.
- Execute
On boolEdge - Determines if the request should be executed at the edge nodes.
- Execute
On boolShield - Determines if the request should be executed at the shield nodes.
- Interrupt
On boolError - Determines if the request execution should be interrupted when an error occurs.
- App
Id string - The ID of the application in FastEdge.
- Enabled bool
- Determines if the FastEdge application should be called whenever HTTP request headers are received.
- Execute
On boolEdge - Determines if the request should be executed at the edge nodes.
- Execute
On boolShield - Determines if the request should be executed at the shield nodes.
- Interrupt
On boolError - Determines if the request execution should be interrupted when an error occurs.
- app
Id String - The ID of the application in FastEdge.
- enabled Boolean
- Determines if the FastEdge application should be called whenever HTTP request headers are received.
- execute
On BooleanEdge - Determines if the request should be executed at the edge nodes.
- execute
On BooleanShield - Determines if the request should be executed at the shield nodes.
- interrupt
On BooleanError - Determines if the request execution should be interrupted when an error occurs.
- app
Id string - The ID of the application in FastEdge.
- enabled boolean
- Determines if the FastEdge application should be called whenever HTTP request headers are received.
- execute
On booleanEdge - Determines if the request should be executed at the edge nodes.
- execute
On booleanShield - Determines if the request should be executed at the shield nodes.
- interrupt
On booleanError - Determines if the request execution should be interrupted when an error occurs.
- app_
id str - The ID of the application in FastEdge.
- enabled bool
- Determines if the FastEdge application should be called whenever HTTP request headers are received.
- execute_
on_ booledge - Determines if the request should be executed at the edge nodes.
- execute_
on_ boolshield - Determines if the request should be executed at the shield nodes.
- interrupt_
on_ boolerror - Determines if the request execution should be interrupted when an error occurs.
- app
Id String - The ID of the application in FastEdge.
- enabled Boolean
- Determines if the FastEdge application should be called whenever HTTP request headers are received.
- execute
On BooleanEdge - Determines if the request should be executed at the edge nodes.
- execute
On BooleanShield - Determines if the request should be executed at the shield nodes.
- interrupt
On BooleanError - Determines if the request execution should be interrupted when an error occurs.
CdnResourceOptionsFastedgeOnResponseBody, CdnResourceOptionsFastedgeOnResponseBodyArgs
- App
Id string - The ID of the application in FastEdge.
- Enabled bool
- Determines if the FastEdge application should be called whenever HTTP request headers are received.
- Execute
On boolEdge - Determines if the request should be executed at the edge nodes.
- Execute
On boolShield - Determines if the request should be executed at the shield nodes.
- Interrupt
On boolError - Determines if the request execution should be interrupted when an error occurs.
- App
Id string - The ID of the application in FastEdge.
- Enabled bool
- Determines if the FastEdge application should be called whenever HTTP request headers are received.
- Execute
On boolEdge - Determines if the request should be executed at the edge nodes.
- Execute
On boolShield - Determines if the request should be executed at the shield nodes.
- Interrupt
On boolError - Determines if the request execution should be interrupted when an error occurs.
- app
Id String - The ID of the application in FastEdge.
- enabled Boolean
- Determines if the FastEdge application should be called whenever HTTP request headers are received.
- execute
On BooleanEdge - Determines if the request should be executed at the edge nodes.
- execute
On BooleanShield - Determines if the request should be executed at the shield nodes.
- interrupt
On BooleanError - Determines if the request execution should be interrupted when an error occurs.
- app
Id string - The ID of the application in FastEdge.
- enabled boolean
- Determines if the FastEdge application should be called whenever HTTP request headers are received.
- execute
On booleanEdge - Determines if the request should be executed at the edge nodes.
- execute
On booleanShield - Determines if the request should be executed at the shield nodes.
- interrupt
On booleanError - Determines if the request execution should be interrupted when an error occurs.
- app_
id str - The ID of the application in FastEdge.
- enabled bool
- Determines if the FastEdge application should be called whenever HTTP request headers are received.
- execute_
on_ booledge - Determines if the request should be executed at the edge nodes.
- execute_
on_ boolshield - Determines if the request should be executed at the shield nodes.
- interrupt_
on_ boolerror - Determines if the request execution should be interrupted when an error occurs.
- app
Id String - The ID of the application in FastEdge.
- enabled Boolean
- Determines if the FastEdge application should be called whenever HTTP request headers are received.
- execute
On BooleanEdge - Determines if the request should be executed at the edge nodes.
- execute
On BooleanShield - Determines if the request should be executed at the shield nodes.
- interrupt
On BooleanError - Determines if the request execution should be interrupted when an error occurs.
CdnResourceOptionsFastedgeOnResponseHeaders, CdnResourceOptionsFastedgeOnResponseHeadersArgs
- App
Id string - The ID of the application in FastEdge.
- Enabled bool
- Determines if the FastEdge application should be called whenever HTTP request headers are received.
- Execute
On boolEdge - Determines if the request should be executed at the edge nodes.
- Execute
On boolShield - Determines if the request should be executed at the shield nodes.
- Interrupt
On boolError - Determines if the request execution should be interrupted when an error occurs.
- App
Id string - The ID of the application in FastEdge.
- Enabled bool
- Determines if the FastEdge application should be called whenever HTTP request headers are received.
- Execute
On boolEdge - Determines if the request should be executed at the edge nodes.
- Execute
On boolShield - Determines if the request should be executed at the shield nodes.
- Interrupt
On boolError - Determines if the request execution should be interrupted when an error occurs.
- app
Id String - The ID of the application in FastEdge.
- enabled Boolean
- Determines if the FastEdge application should be called whenever HTTP request headers are received.
- execute
On BooleanEdge - Determines if the request should be executed at the edge nodes.
- execute
On BooleanShield - Determines if the request should be executed at the shield nodes.
- interrupt
On BooleanError - Determines if the request execution should be interrupted when an error occurs.
- app
Id string - The ID of the application in FastEdge.
- enabled boolean
- Determines if the FastEdge application should be called whenever HTTP request headers are received.
- execute
On booleanEdge - Determines if the request should be executed at the edge nodes.
- execute
On booleanShield - Determines if the request should be executed at the shield nodes.
- interrupt
On booleanError - Determines if the request execution should be interrupted when an error occurs.
- app_
id str - The ID of the application in FastEdge.
- enabled bool
- Determines if the FastEdge application should be called whenever HTTP request headers are received.
- execute_
on_ booledge - Determines if the request should be executed at the edge nodes.
- execute_
on_ boolshield - Determines if the request should be executed at the shield nodes.
- interrupt_
on_ boolerror - Determines if the request execution should be interrupted when an error occurs.
- app
Id String - The ID of the application in FastEdge.
- enabled Boolean
- Determines if the FastEdge application should be called whenever HTTP request headers are received.
- execute
On BooleanEdge - Determines if the request should be executed at the edge nodes.
- execute
On BooleanShield - Determines if the request should be executed at the shield nodes.
- interrupt
On BooleanError - Determines if the request execution should be interrupted when an error occurs.
CdnResourceOptionsFetchCompressed, CdnResourceOptionsFetchCompressedArgs
CdnResourceOptionsFollowOriginRedirect, CdnResourceOptionsFollowOriginRedirectArgs
CdnResourceOptionsForceReturn, CdnResourceOptionsForceReturnArgs
- Body string
- URL for redirection or text.
- Code double
- Status code value.
- Enabled bool
- Controls the option state.
- Time
Interval CdnResource Options Force Return Time Interval - Controls the time at which a custom HTTP response code should be applied. By default, a custom HTTP response code is applied at any time.
- Body string
- URL for redirection or text.
- Code float64
- Status code value.
- Enabled bool
- Controls the option state.
- Time
Interval CdnResource Options Force Return Time Interval - Controls the time at which a custom HTTP response code should be applied. By default, a custom HTTP response code is applied at any time.
- body String
- URL for redirection or text.
- code Double
- Status code value.
- enabled Boolean
- Controls the option state.
- time
Interval CdnResource Options Force Return Time Interval - Controls the time at which a custom HTTP response code should be applied. By default, a custom HTTP response code is applied at any time.
- body string
- URL for redirection or text.
- code number
- Status code value.
- enabled boolean
- Controls the option state.
- time
Interval CdnResource Options Force Return Time Interval - Controls the time at which a custom HTTP response code should be applied. By default, a custom HTTP response code is applied at any time.
- body str
- URL for redirection or text.
- code float
- Status code value.
- enabled bool
- Controls the option state.
- time_
interval CdnResource Options Force Return Time Interval - Controls the time at which a custom HTTP response code should be applied. By default, a custom HTTP response code is applied at any time.
- body String
- URL for redirection or text.
- code Number
- Status code value.
- enabled Boolean
- Controls the option state.
- time
Interval Property Map - Controls the time at which a custom HTTP response code should be applied. By default, a custom HTTP response code is applied at any time.
CdnResourceOptionsForceReturnTimeInterval, CdnResourceOptionsForceReturnTimeIntervalArgs
- end_
time str - Time until which a custom HTTP response code should be applied. Indicated in 24-hour format.
- start_
time str - Time from which a custom HTTP response code should be applied. Indicated in 24-hour format.
- time_
zone str - Time zone used to calculate time.
CdnResourceOptionsForwardHostHeader, CdnResourceOptionsForwardHostHeaderArgs
CdnResourceOptionsGzipOn, CdnResourceOptionsGzipOnArgs
CdnResourceOptionsHostHeader, CdnResourceOptionsHostHeaderArgs
CdnResourceOptionsHttp3Enabled, CdnResourceOptionsHttp3EnabledArgs
CdnResourceOptionsIgnoreCookie, CdnResourceOptionsIgnoreCookieArgs
CdnResourceOptionsIgnoreQueryString, CdnResourceOptionsIgnoreQueryStringArgs
CdnResourceOptionsImageStack, CdnResourceOptionsImageStackArgs
- Enabled bool
- Controls the option state.
- Avif
Enabled bool - Enables or disables automatic conversion of JPEG and PNG images to AVI format.
- Png
Lossless bool - Enables or disables compression without quality loss for PNG format.
- Quality double
- Defines quality settings for JPG and PNG images. The higher the value, the better the image quality, and the larger the file size after conversion.
- Webp
Enabled bool - Enables or disables automatic conversion of JPEG and PNG images to WebP format.
- Enabled bool
- Controls the option state.
- Avif
Enabled bool - Enables or disables automatic conversion of JPEG and PNG images to AVI format.
- Png
Lossless bool - Enables or disables compression without quality loss for PNG format.
- Quality float64
- Defines quality settings for JPG and PNG images. The higher the value, the better the image quality, and the larger the file size after conversion.
- Webp
Enabled bool - Enables or disables automatic conversion of JPEG and PNG images to WebP format.
- enabled Boolean
- Controls the option state.
- avif
Enabled Boolean - Enables or disables automatic conversion of JPEG and PNG images to AVI format.
- png
Lossless Boolean - Enables or disables compression without quality loss for PNG format.
- quality Double
- Defines quality settings for JPG and PNG images. The higher the value, the better the image quality, and the larger the file size after conversion.
- webp
Enabled Boolean - Enables or disables automatic conversion of JPEG and PNG images to WebP format.
- enabled boolean
- Controls the option state.
- avif
Enabled boolean - Enables or disables automatic conversion of JPEG and PNG images to AVI format.
- png
Lossless boolean - Enables or disables compression without quality loss for PNG format.
- quality number
- Defines quality settings for JPG and PNG images. The higher the value, the better the image quality, and the larger the file size after conversion.
- webp
Enabled boolean - Enables or disables automatic conversion of JPEG and PNG images to WebP format.
- enabled bool
- Controls the option state.
- avif_
enabled bool - Enables or disables automatic conversion of JPEG and PNG images to AVI format.
- png_
lossless bool - Enables or disables compression without quality loss for PNG format.
- quality float
- Defines quality settings for JPG and PNG images. The higher the value, the better the image quality, and the larger the file size after conversion.
- webp_
enabled bool - Enables or disables automatic conversion of JPEG and PNG images to WebP format.
- enabled Boolean
- Controls the option state.
- avif
Enabled Boolean - Enables or disables automatic conversion of JPEG and PNG images to AVI format.
- png
Lossless Boolean - Enables or disables compression without quality loss for PNG format.
- quality Number
- Defines quality settings for JPG and PNG images. The higher the value, the better the image quality, and the larger the file size after conversion.
- webp
Enabled Boolean - Enables or disables automatic conversion of JPEG and PNG images to WebP format.
CdnResourceOptionsIpAddressAcl, CdnResourceOptionsIpAddressAclArgs
- Enabled bool
- Controls the option state.
- Excepted
Values List<string> List of IP addresses with a subnet mask.
The meaning of the parameter depends on
policy_typevalue:- allow - List of IP addresses for which access is prohibited.
- deny - List of IP addresses for which access is allowed.
Examples:
192.168.3.2/322a03:d000:2980:7::8/128
- Policy
Type string IP access policy type.
Possible values:
- allow - Allow access to all IPs except IPs specified in <span pulumi-lang-nodejs=""exceptedValues"" pulumi-lang-dotnet=""ExceptedValues"" pulumi-lang-go=""exceptedValues"" pulumi-lang-python=""excepted_values"" pulumi-lang-yaml=""exceptedValues"" pulumi-lang-java=""exceptedValues"">"excepted_values" field.
- deny - Deny access to all IPs except IPs specified in <span pulumi-lang-nodejs=""exceptedValues"" pulumi-lang-dotnet=""ExceptedValues"" pulumi-lang-go=""exceptedValues"" pulumi-lang-python=""excepted_values"" pulumi-lang-yaml=""exceptedValues"" pulumi-lang-java=""exceptedValues"">"excepted_values" field. Available values: "allow", "deny".
- Enabled bool
- Controls the option state.
- Excepted
Values []string List of IP addresses with a subnet mask.
The meaning of the parameter depends on
policy_typevalue:- allow - List of IP addresses for which access is prohibited.
- deny - List of IP addresses for which access is allowed.
Examples:
192.168.3.2/322a03:d000:2980:7::8/128
- Policy
Type string IP access policy type.
Possible values:
- allow - Allow access to all IPs except IPs specified in <span pulumi-lang-nodejs=""exceptedValues"" pulumi-lang-dotnet=""ExceptedValues"" pulumi-lang-go=""exceptedValues"" pulumi-lang-python=""excepted_values"" pulumi-lang-yaml=""exceptedValues"" pulumi-lang-java=""exceptedValues"">"excepted_values" field.
- deny - Deny access to all IPs except IPs specified in <span pulumi-lang-nodejs=""exceptedValues"" pulumi-lang-dotnet=""ExceptedValues"" pulumi-lang-go=""exceptedValues"" pulumi-lang-python=""excepted_values"" pulumi-lang-yaml=""exceptedValues"" pulumi-lang-java=""exceptedValues"">"excepted_values" field. Available values: "allow", "deny".
- enabled Boolean
- Controls the option state.
- excepted
Values List<String> List of IP addresses with a subnet mask.
The meaning of the parameter depends on
policy_typevalue:- allow - List of IP addresses for which access is prohibited.
- deny - List of IP addresses for which access is allowed.
Examples:
192.168.3.2/322a03:d000:2980:7::8/128
- policy
Type String IP access policy type.
Possible values:
- allow - Allow access to all IPs except IPs specified in <span pulumi-lang-nodejs=""exceptedValues"" pulumi-lang-dotnet=""ExceptedValues"" pulumi-lang-go=""exceptedValues"" pulumi-lang-python=""excepted_values"" pulumi-lang-yaml=""exceptedValues"" pulumi-lang-java=""exceptedValues"">"excepted_values" field.
- deny - Deny access to all IPs except IPs specified in <span pulumi-lang-nodejs=""exceptedValues"" pulumi-lang-dotnet=""ExceptedValues"" pulumi-lang-go=""exceptedValues"" pulumi-lang-python=""excepted_values"" pulumi-lang-yaml=""exceptedValues"" pulumi-lang-java=""exceptedValues"">"excepted_values" field. Available values: "allow", "deny".
- enabled boolean
- Controls the option state.
- excepted
Values string[] List of IP addresses with a subnet mask.
The meaning of the parameter depends on
policy_typevalue:- allow - List of IP addresses for which access is prohibited.
- deny - List of IP addresses for which access is allowed.
Examples:
192.168.3.2/322a03:d000:2980:7::8/128
- policy
Type string IP access policy type.
Possible values:
- allow - Allow access to all IPs except IPs specified in <span pulumi-lang-nodejs=""exceptedValues"" pulumi-lang-dotnet=""ExceptedValues"" pulumi-lang-go=""exceptedValues"" pulumi-lang-python=""excepted_values"" pulumi-lang-yaml=""exceptedValues"" pulumi-lang-java=""exceptedValues"">"excepted_values" field.
- deny - Deny access to all IPs except IPs specified in <span pulumi-lang-nodejs=""exceptedValues"" pulumi-lang-dotnet=""ExceptedValues"" pulumi-lang-go=""exceptedValues"" pulumi-lang-python=""excepted_values"" pulumi-lang-yaml=""exceptedValues"" pulumi-lang-java=""exceptedValues"">"excepted_values" field. Available values: "allow", "deny".
- enabled bool
- Controls the option state.
- excepted_
values Sequence[str] List of IP addresses with a subnet mask.
The meaning of the parameter depends on
policy_typevalue:- allow - List of IP addresses for which access is prohibited.
- deny - List of IP addresses for which access is allowed.
Examples:
192.168.3.2/322a03:d000:2980:7::8/128
- policy_
type str IP access policy type.
Possible values:
- allow - Allow access to all IPs except IPs specified in <span pulumi-lang-nodejs=""exceptedValues"" pulumi-lang-dotnet=""ExceptedValues"" pulumi-lang-go=""exceptedValues"" pulumi-lang-python=""excepted_values"" pulumi-lang-yaml=""exceptedValues"" pulumi-lang-java=""exceptedValues"">"excepted_values" field.
- deny - Deny access to all IPs except IPs specified in <span pulumi-lang-nodejs=""exceptedValues"" pulumi-lang-dotnet=""ExceptedValues"" pulumi-lang-go=""exceptedValues"" pulumi-lang-python=""excepted_values"" pulumi-lang-yaml=""exceptedValues"" pulumi-lang-java=""exceptedValues"">"excepted_values" field. Available values: "allow", "deny".
- enabled Boolean
- Controls the option state.
- excepted
Values List<String> List of IP addresses with a subnet mask.
The meaning of the parameter depends on
policy_typevalue:- allow - List of IP addresses for which access is prohibited.
- deny - List of IP addresses for which access is allowed.
Examples:
192.168.3.2/322a03:d000:2980:7::8/128
- policy
Type String IP access policy type.
Possible values:
- allow - Allow access to all IPs except IPs specified in <span pulumi-lang-nodejs=""exceptedValues"" pulumi-lang-dotnet=""ExceptedValues"" pulumi-lang-go=""exceptedValues"" pulumi-lang-python=""excepted_values"" pulumi-lang-yaml=""exceptedValues"" pulumi-lang-java=""exceptedValues"">"excepted_values" field.
- deny - Deny access to all IPs except IPs specified in <span pulumi-lang-nodejs=""exceptedValues"" pulumi-lang-dotnet=""ExceptedValues"" pulumi-lang-go=""exceptedValues"" pulumi-lang-python=""excepted_values"" pulumi-lang-yaml=""exceptedValues"" pulumi-lang-java=""exceptedValues"">"excepted_values" field. Available values: "allow", "deny".
CdnResourceOptionsLimitBandwidth, CdnResourceOptionsLimitBandwidthArgs
- Enabled bool
- Controls the option state.
- Limit
Type string Method of controlling the download speed per connection.
Possible values:
- static - Use speed and buffer fields to set the download speed limit.
- dynamic - Use query strings speed and buffer to set the download speed limit.
For example, when requesting content at the link
http://cdn.example.com/video.mp4?speed=50k&buffer=500kthe download speed will be limited to 50kB/s after 500 kB. Available values: "static", "dynamic".
- Buffer double
- Amount of downloaded data after which the user will be rate limited.
- Speed double
- Maximum download speed per connection.
- Enabled bool
- Controls the option state.
- Limit
Type string Method of controlling the download speed per connection.
Possible values:
- static - Use speed and buffer fields to set the download speed limit.
- dynamic - Use query strings speed and buffer to set the download speed limit.
For example, when requesting content at the link
http://cdn.example.com/video.mp4?speed=50k&buffer=500kthe download speed will be limited to 50kB/s after 500 kB. Available values: "static", "dynamic".
- Buffer float64
- Amount of downloaded data after which the user will be rate limited.
- Speed float64
- Maximum download speed per connection.
- enabled Boolean
- Controls the option state.
- limit
Type String Method of controlling the download speed per connection.
Possible values:
- static - Use speed and buffer fields to set the download speed limit.
- dynamic - Use query strings speed and buffer to set the download speed limit.
For example, when requesting content at the link
http://cdn.example.com/video.mp4?speed=50k&buffer=500kthe download speed will be limited to 50kB/s after 500 kB. Available values: "static", "dynamic".
- buffer Double
- Amount of downloaded data after which the user will be rate limited.
- speed Double
- Maximum download speed per connection.
- enabled boolean
- Controls the option state.
- limit
Type string Method of controlling the download speed per connection.
Possible values:
- static - Use speed and buffer fields to set the download speed limit.
- dynamic - Use query strings speed and buffer to set the download speed limit.
For example, when requesting content at the link
http://cdn.example.com/video.mp4?speed=50k&buffer=500kthe download speed will be limited to 50kB/s after 500 kB. Available values: "static", "dynamic".
- buffer number
- Amount of downloaded data after which the user will be rate limited.
- speed number
- Maximum download speed per connection.
- enabled bool
- Controls the option state.
- limit_
type str Method of controlling the download speed per connection.
Possible values:
- static - Use speed and buffer fields to set the download speed limit.
- dynamic - Use query strings speed and buffer to set the download speed limit.
For example, when requesting content at the link
http://cdn.example.com/video.mp4?speed=50k&buffer=500kthe download speed will be limited to 50kB/s after 500 kB. Available values: "static", "dynamic".
- buffer float
- Amount of downloaded data after which the user will be rate limited.
- speed float
- Maximum download speed per connection.
- enabled Boolean
- Controls the option state.
- limit
Type String Method of controlling the download speed per connection.
Possible values:
- static - Use speed and buffer fields to set the download speed limit.
- dynamic - Use query strings speed and buffer to set the download speed limit.
For example, when requesting content at the link
http://cdn.example.com/video.mp4?speed=50k&buffer=500kthe download speed will be limited to 50kB/s after 500 kB. Available values: "static", "dynamic".
- buffer Number
- Amount of downloaded data after which the user will be rate limited.
- speed Number
- Maximum download speed per connection.
CdnResourceOptionsProxyCacheKey, CdnResourceOptionsProxyCacheKeyArgs
CdnResourceOptionsProxyCacheMethodsSet, CdnResourceOptionsProxyCacheMethodsSetArgs
CdnResourceOptionsProxyConnectTimeout, CdnResourceOptionsProxyConnectTimeoutArgs
CdnResourceOptionsProxyReadTimeout, CdnResourceOptionsProxyReadTimeoutArgs
CdnResourceOptionsQueryParamsBlacklist, CdnResourceOptionsQueryParamsBlacklistArgs
CdnResourceOptionsQueryParamsWhitelist, CdnResourceOptionsQueryParamsWhitelistArgs
CdnResourceOptionsQueryStringForwarding, CdnResourceOptionsQueryStringForwardingArgs
- Enabled bool
- Controls the option state.
- Forward
From List<string>File Types - The
forward_from_files_typesfield specifies the types of playlist files from which parameters will be extracted and forwarded. This typically includes formats that list multiple media chunk references, such as HLS and DASH playlists. Parameters associated with these playlist files (like query strings or headers) will be propagated to the chunks they reference. - Forward
To List<string>File Types - The field specifies the types of media chunk files to which parameters, extracted from playlist files, will be forwarded. These refer to the actual segments of media content that are delivered to viewers. Ensuring the correct parameters are forwarded to these files is crucial for maintaining the integrity of the streaming session.
- Forward
Except List<string>Keys - The
forward_except_keysfield provides a mechanism to exclude specific parameters from being forwarded from playlist files to media chunk files. By listing certain keys in this field, you can ensure that these parameters are omitted during the forwarding process. This is particularly useful for preventing sensitive or irrelevant information from being included in requests for media chunks, thereby enhancing security and optimizing performance. - Forward
Only List<string>Keys - The
forward_only_keysfield allows for granular control over which specific parameters are forwarded from playlist files to media chunk files. By specifying certain keys, only those parameters will be propagated, ensuring that only relevant information is passed along. This is particularly useful for security and performance optimization, as it prevents unnecessary or sensitive data from being included in requests for media chunks.
- Enabled bool
- Controls the option state.
- Forward
From []stringFile Types - The
forward_from_files_typesfield specifies the types of playlist files from which parameters will be extracted and forwarded. This typically includes formats that list multiple media chunk references, such as HLS and DASH playlists. Parameters associated with these playlist files (like query strings or headers) will be propagated to the chunks they reference. - Forward
To []stringFile Types - The field specifies the types of media chunk files to which parameters, extracted from playlist files, will be forwarded. These refer to the actual segments of media content that are delivered to viewers. Ensuring the correct parameters are forwarded to these files is crucial for maintaining the integrity of the streaming session.
- Forward
Except []stringKeys - The
forward_except_keysfield provides a mechanism to exclude specific parameters from being forwarded from playlist files to media chunk files. By listing certain keys in this field, you can ensure that these parameters are omitted during the forwarding process. This is particularly useful for preventing sensitive or irrelevant information from being included in requests for media chunks, thereby enhancing security and optimizing performance. - Forward
Only []stringKeys - The
forward_only_keysfield allows for granular control over which specific parameters are forwarded from playlist files to media chunk files. By specifying certain keys, only those parameters will be propagated, ensuring that only relevant information is passed along. This is particularly useful for security and performance optimization, as it prevents unnecessary or sensitive data from being included in requests for media chunks.
- enabled Boolean
- Controls the option state.
- forward
From List<String>File Types - The
forward_from_files_typesfield specifies the types of playlist files from which parameters will be extracted and forwarded. This typically includes formats that list multiple media chunk references, such as HLS and DASH playlists. Parameters associated with these playlist files (like query strings or headers) will be propagated to the chunks they reference. - forward
To List<String>File Types - The field specifies the types of media chunk files to which parameters, extracted from playlist files, will be forwarded. These refer to the actual segments of media content that are delivered to viewers. Ensuring the correct parameters are forwarded to these files is crucial for maintaining the integrity of the streaming session.
- forward
Except List<String>Keys - The
forward_except_keysfield provides a mechanism to exclude specific parameters from being forwarded from playlist files to media chunk files. By listing certain keys in this field, you can ensure that these parameters are omitted during the forwarding process. This is particularly useful for preventing sensitive or irrelevant information from being included in requests for media chunks, thereby enhancing security and optimizing performance. - forward
Only List<String>Keys - The
forward_only_keysfield allows for granular control over which specific parameters are forwarded from playlist files to media chunk files. By specifying certain keys, only those parameters will be propagated, ensuring that only relevant information is passed along. This is particularly useful for security and performance optimization, as it prevents unnecessary or sensitive data from being included in requests for media chunks.
- enabled boolean
- Controls the option state.
- forward
From string[]File Types - The
forward_from_files_typesfield specifies the types of playlist files from which parameters will be extracted and forwarded. This typically includes formats that list multiple media chunk references, such as HLS and DASH playlists. Parameters associated with these playlist files (like query strings or headers) will be propagated to the chunks they reference. - forward
To string[]File Types - The field specifies the types of media chunk files to which parameters, extracted from playlist files, will be forwarded. These refer to the actual segments of media content that are delivered to viewers. Ensuring the correct parameters are forwarded to these files is crucial for maintaining the integrity of the streaming session.
- forward
Except string[]Keys - The
forward_except_keysfield provides a mechanism to exclude specific parameters from being forwarded from playlist files to media chunk files. By listing certain keys in this field, you can ensure that these parameters are omitted during the forwarding process. This is particularly useful for preventing sensitive or irrelevant information from being included in requests for media chunks, thereby enhancing security and optimizing performance. - forward
Only string[]Keys - The
forward_only_keysfield allows for granular control over which specific parameters are forwarded from playlist files to media chunk files. By specifying certain keys, only those parameters will be propagated, ensuring that only relevant information is passed along. This is particularly useful for security and performance optimization, as it prevents unnecessary or sensitive data from being included in requests for media chunks.
- enabled bool
- Controls the option state.
- forward_
from_ Sequence[str]file_ types - The
forward_from_files_typesfield specifies the types of playlist files from which parameters will be extracted and forwarded. This typically includes formats that list multiple media chunk references, such as HLS and DASH playlists. Parameters associated with these playlist files (like query strings or headers) will be propagated to the chunks they reference. - forward_
to_ Sequence[str]file_ types - The field specifies the types of media chunk files to which parameters, extracted from playlist files, will be forwarded. These refer to the actual segments of media content that are delivered to viewers. Ensuring the correct parameters are forwarded to these files is crucial for maintaining the integrity of the streaming session.
- forward_
except_ Sequence[str]keys - The
forward_except_keysfield provides a mechanism to exclude specific parameters from being forwarded from playlist files to media chunk files. By listing certain keys in this field, you can ensure that these parameters are omitted during the forwarding process. This is particularly useful for preventing sensitive or irrelevant information from being included in requests for media chunks, thereby enhancing security and optimizing performance. - forward_
only_ Sequence[str]keys - The
forward_only_keysfield allows for granular control over which specific parameters are forwarded from playlist files to media chunk files. By specifying certain keys, only those parameters will be propagated, ensuring that only relevant information is passed along. This is particularly useful for security and performance optimization, as it prevents unnecessary or sensitive data from being included in requests for media chunks.
- enabled Boolean
- Controls the option state.
- forward
From List<String>File Types - The
forward_from_files_typesfield specifies the types of playlist files from which parameters will be extracted and forwarded. This typically includes formats that list multiple media chunk references, such as HLS and DASH playlists. Parameters associated with these playlist files (like query strings or headers) will be propagated to the chunks they reference. - forward
To List<String>File Types - The field specifies the types of media chunk files to which parameters, extracted from playlist files, will be forwarded. These refer to the actual segments of media content that are delivered to viewers. Ensuring the correct parameters are forwarded to these files is crucial for maintaining the integrity of the streaming session.
- forward
Except List<String>Keys - The
forward_except_keysfield provides a mechanism to exclude specific parameters from being forwarded from playlist files to media chunk files. By listing certain keys in this field, you can ensure that these parameters are omitted during the forwarding process. This is particularly useful for preventing sensitive or irrelevant information from being included in requests for media chunks, thereby enhancing security and optimizing performance. - forward
Only List<String>Keys - The
forward_only_keysfield allows for granular control over which specific parameters are forwarded from playlist files to media chunk files. By specifying certain keys, only those parameters will be propagated, ensuring that only relevant information is passed along. This is particularly useful for security and performance optimization, as it prevents unnecessary or sensitive data from being included in requests for media chunks.
CdnResourceOptionsRedirectHttpToHttps, CdnResourceOptionsRedirectHttpToHttpsArgs
CdnResourceOptionsRedirectHttpsToHttp, CdnResourceOptionsRedirectHttpsToHttpArgs
CdnResourceOptionsReferrerAcl, CdnResourceOptionsReferrerAclArgs
- Enabled bool
- Controls the option state.
- Excepted
Values List<string> List of domain names or wildcard domains (without protocol:
http://orhttps://.)The meaning of the parameter depends on
policy_typevalue:- allow - List of domain names for which access is prohibited.
- deny - List of IP domain names for which access is allowed.
Examples:
example.com*.example.com
- Policy
Type string Policy type.
Possible values:
- allow - Allow access to all domain names except the domain names specified in
excepted_valuesfield. - deny - Deny access to all domain names except the domain names specified in
excepted_valuesfield. Available values: "allow", "deny".
- allow - Allow access to all domain names except the domain names specified in
- Enabled bool
- Controls the option state.
- Excepted
Values []string List of domain names or wildcard domains (without protocol:
http://orhttps://.)The meaning of the parameter depends on
policy_typevalue:- allow - List of domain names for which access is prohibited.
- deny - List of IP domain names for which access is allowed.
Examples:
example.com*.example.com
- Policy
Type string Policy type.
Possible values:
- allow - Allow access to all domain names except the domain names specified in
excepted_valuesfield. - deny - Deny access to all domain names except the domain names specified in
excepted_valuesfield. Available values: "allow", "deny".
- allow - Allow access to all domain names except the domain names specified in
- enabled Boolean
- Controls the option state.
- excepted
Values List<String> List of domain names or wildcard domains (without protocol:
http://orhttps://.)The meaning of the parameter depends on
policy_typevalue:- allow - List of domain names for which access is prohibited.
- deny - List of IP domain names for which access is allowed.
Examples:
example.com*.example.com
- policy
Type String Policy type.
Possible values:
- allow - Allow access to all domain names except the domain names specified in
excepted_valuesfield. - deny - Deny access to all domain names except the domain names specified in
excepted_valuesfield. Available values: "allow", "deny".
- allow - Allow access to all domain names except the domain names specified in
- enabled boolean
- Controls the option state.
- excepted
Values string[] List of domain names or wildcard domains (without protocol:
http://orhttps://.)The meaning of the parameter depends on
policy_typevalue:- allow - List of domain names for which access is prohibited.
- deny - List of IP domain names for which access is allowed.
Examples:
example.com*.example.com
- policy
Type string Policy type.
Possible values:
- allow - Allow access to all domain names except the domain names specified in
excepted_valuesfield. - deny - Deny access to all domain names except the domain names specified in
excepted_valuesfield. Available values: "allow", "deny".
- allow - Allow access to all domain names except the domain names specified in
- enabled bool
- Controls the option state.
- excepted_
values Sequence[str] List of domain names or wildcard domains (without protocol:
http://orhttps://.)The meaning of the parameter depends on
policy_typevalue:- allow - List of domain names for which access is prohibited.
- deny - List of IP domain names for which access is allowed.
Examples:
example.com*.example.com
- policy_
type str Policy type.
Possible values:
- allow - Allow access to all domain names except the domain names specified in
excepted_valuesfield. - deny - Deny access to all domain names except the domain names specified in
excepted_valuesfield. Available values: "allow", "deny".
- allow - Allow access to all domain names except the domain names specified in
- enabled Boolean
- Controls the option state.
- excepted
Values List<String> List of domain names or wildcard domains (without protocol:
http://orhttps://.)The meaning of the parameter depends on
policy_typevalue:- allow - List of domain names for which access is prohibited.
- deny - List of IP domain names for which access is allowed.
Examples:
example.com*.example.com
- policy
Type String Policy type.
Possible values:
- allow - Allow access to all domain names except the domain names specified in
excepted_valuesfield. - deny - Deny access to all domain names except the domain names specified in
excepted_valuesfield. Available values: "allow", "deny".
- allow - Allow access to all domain names except the domain names specified in
CdnResourceOptionsRequestLimiter, CdnResourceOptionsRequestLimiterArgs
- Enabled bool
- Controls the option state.
- Rate double
- Maximum request rate.
- Burst double
- Delay double
- Rate
Unit string Units of measurement for the
ratefield.Possible values:
- r/s - Requests per second.
- r/m - Requests per minute.
If the rate is less than one request per second, it is specified in request per minute (r/m.) Available values: "r/s", "r/m".
- Enabled bool
- Controls the option state.
- Rate float64
- Maximum request rate.
- Burst float64
- Delay float64
- Rate
Unit string Units of measurement for the
ratefield.Possible values:
- r/s - Requests per second.
- r/m - Requests per minute.
If the rate is less than one request per second, it is specified in request per minute (r/m.) Available values: "r/s", "r/m".
- enabled Boolean
- Controls the option state.
- rate Double
- Maximum request rate.
- burst Double
- delay Double
- rate
Unit String Units of measurement for the
ratefield.Possible values:
- r/s - Requests per second.
- r/m - Requests per minute.
If the rate is less than one request per second, it is specified in request per minute (r/m.) Available values: "r/s", "r/m".
- enabled boolean
- Controls the option state.
- rate number
- Maximum request rate.
- burst number
- delay number
- rate
Unit string Units of measurement for the
ratefield.Possible values:
- r/s - Requests per second.
- r/m - Requests per minute.
If the rate is less than one request per second, it is specified in request per minute (r/m.) Available values: "r/s", "r/m".
- enabled bool
- Controls the option state.
- rate float
- Maximum request rate.
- burst float
- delay float
- rate_
unit str Units of measurement for the
ratefield.Possible values:
- r/s - Requests per second.
- r/m - Requests per minute.
If the rate is less than one request per second, it is specified in request per minute (r/m.) Available values: "r/s", "r/m".
- enabled Boolean
- Controls the option state.
- rate Number
- Maximum request rate.
- burst Number
- delay Number
- rate
Unit String Units of measurement for the
ratefield.Possible values:
- r/s - Requests per second.
- r/m - Requests per minute.
If the rate is less than one request per second, it is specified in request per minute (r/m.) Available values: "r/s", "r/m".
CdnResourceOptionsResponseHeadersHidingPolicy, CdnResourceOptionsResponseHeadersHidingPolicyArgs
- Enabled bool
- Controls the option state.
- Mode string
How HTTP headers are hidden from the response.
Possible values:
- show - Hide only HTTP headers listed in the
exceptedfield. - hide - Hide all HTTP headers except headers listed in the "excepted" field. Available values: "hide", "show".
- show - Hide only HTTP headers listed in the
- Excepteds List<string>
List of HTTP headers.
Parameter meaning depends on the value of the
modefield:- show - List of HTTP headers to hide from response.
- hide - List of HTTP headers to include in response. Other HTTP headers will be hidden.
The following headers are required and cannot be hidden from response:
ConnectionContent-LengthContent-TypeDateServer
- Enabled bool
- Controls the option state.
- Mode string
How HTTP headers are hidden from the response.
Possible values:
- show - Hide only HTTP headers listed in the
exceptedfield. - hide - Hide all HTTP headers except headers listed in the "excepted" field. Available values: "hide", "show".
- show - Hide only HTTP headers listed in the
- Excepteds []string
List of HTTP headers.
Parameter meaning depends on the value of the
modefield:- show - List of HTTP headers to hide from response.
- hide - List of HTTP headers to include in response. Other HTTP headers will be hidden.
The following headers are required and cannot be hidden from response:
ConnectionContent-LengthContent-TypeDateServer
- enabled Boolean
- Controls the option state.
- mode String
How HTTP headers are hidden from the response.
Possible values:
- show - Hide only HTTP headers listed in the
exceptedfield. - hide - Hide all HTTP headers except headers listed in the "excepted" field. Available values: "hide", "show".
- show - Hide only HTTP headers listed in the
- excepteds List<String>
List of HTTP headers.
Parameter meaning depends on the value of the
modefield:- show - List of HTTP headers to hide from response.
- hide - List of HTTP headers to include in response. Other HTTP headers will be hidden.
The following headers are required and cannot be hidden from response:
ConnectionContent-LengthContent-TypeDateServer
- enabled boolean
- Controls the option state.
- mode string
How HTTP headers are hidden from the response.
Possible values:
- show - Hide only HTTP headers listed in the
exceptedfield. - hide - Hide all HTTP headers except headers listed in the "excepted" field. Available values: "hide", "show".
- show - Hide only HTTP headers listed in the
- excepteds string[]
List of HTTP headers.
Parameter meaning depends on the value of the
modefield:- show - List of HTTP headers to hide from response.
- hide - List of HTTP headers to include in response. Other HTTP headers will be hidden.
The following headers are required and cannot be hidden from response:
ConnectionContent-LengthContent-TypeDateServer
- enabled bool
- Controls the option state.
- mode str
How HTTP headers are hidden from the response.
Possible values:
- show - Hide only HTTP headers listed in the
exceptedfield. - hide - Hide all HTTP headers except headers listed in the "excepted" field. Available values: "hide", "show".
- show - Hide only HTTP headers listed in the
- excepteds Sequence[str]
List of HTTP headers.
Parameter meaning depends on the value of the
modefield:- show - List of HTTP headers to hide from response.
- hide - List of HTTP headers to include in response. Other HTTP headers will be hidden.
The following headers are required and cannot be hidden from response:
ConnectionContent-LengthContent-TypeDateServer
- enabled Boolean
- Controls the option state.
- mode String
How HTTP headers are hidden from the response.
Possible values:
- show - Hide only HTTP headers listed in the
exceptedfield. - hide - Hide all HTTP headers except headers listed in the "excepted" field. Available values: "hide", "show".
- show - Hide only HTTP headers listed in the
- excepteds List<String>
List of HTTP headers.
Parameter meaning depends on the value of the
modefield:- show - List of HTTP headers to hide from response.
- hide - List of HTTP headers to include in response. Other HTTP headers will be hidden.
The following headers are required and cannot be hidden from response:
ConnectionContent-LengthContent-TypeDateServer
CdnResourceOptionsRewrite, CdnResourceOptionsRewriteArgs
- Body string
- Path for the Rewrite option.
- Enabled bool
Controls the option state.
Possible values:
- true - Option is enabled.
- false - Option is disabled.
- Flag string
Flag for the Rewrite option.
Possible values:
- last - Stop processing the current set of
ngx_http_rewrite_moduledirectives and start a search for a new location matching changed URI. - break - Stop processing the current set of the Rewrite option.
- redirect - Return a temporary redirect with the 302 code; used when a replacement string does not start with
http://,https://, or$scheme. - permanent - Return a permanent redirect with the 301 code. Available values: "break", "last", "redirect", "permanent".
- last - Stop processing the current set of
- Body string
- Path for the Rewrite option.
- Enabled bool
Controls the option state.
Possible values:
- true - Option is enabled.
- false - Option is disabled.
- Flag string
Flag for the Rewrite option.
Possible values:
- last - Stop processing the current set of
ngx_http_rewrite_moduledirectives and start a search for a new location matching changed URI. - break - Stop processing the current set of the Rewrite option.
- redirect - Return a temporary redirect with the 302 code; used when a replacement string does not start with
http://,https://, or$scheme. - permanent - Return a permanent redirect with the 301 code. Available values: "break", "last", "redirect", "permanent".
- last - Stop processing the current set of
- body String
- Path for the Rewrite option.
- enabled Boolean
Controls the option state.
Possible values:
- true - Option is enabled.
- false - Option is disabled.
- flag String
Flag for the Rewrite option.
Possible values:
- last - Stop processing the current set of
ngx_http_rewrite_moduledirectives and start a search for a new location matching changed URI. - break - Stop processing the current set of the Rewrite option.
- redirect - Return a temporary redirect with the 302 code; used when a replacement string does not start with
http://,https://, or$scheme. - permanent - Return a permanent redirect with the 301 code. Available values: "break", "last", "redirect", "permanent".
- last - Stop processing the current set of
- body string
- Path for the Rewrite option.
- enabled boolean
Controls the option state.
Possible values:
- true - Option is enabled.
- false - Option is disabled.
- flag string
Flag for the Rewrite option.
Possible values:
- last - Stop processing the current set of
ngx_http_rewrite_moduledirectives and start a search for a new location matching changed URI. - break - Stop processing the current set of the Rewrite option.
- redirect - Return a temporary redirect with the 302 code; used when a replacement string does not start with
http://,https://, or$scheme. - permanent - Return a permanent redirect with the 301 code. Available values: "break", "last", "redirect", "permanent".
- last - Stop processing the current set of
- body str
- Path for the Rewrite option.
- enabled bool
Controls the option state.
Possible values:
- true - Option is enabled.
- false - Option is disabled.
- flag str
Flag for the Rewrite option.
Possible values:
- last - Stop processing the current set of
ngx_http_rewrite_moduledirectives and start a search for a new location matching changed URI. - break - Stop processing the current set of the Rewrite option.
- redirect - Return a temporary redirect with the 302 code; used when a replacement string does not start with
http://,https://, or$scheme. - permanent - Return a permanent redirect with the 301 code. Available values: "break", "last", "redirect", "permanent".
- last - Stop processing the current set of
- body String
- Path for the Rewrite option.
- enabled Boolean
Controls the option state.
Possible values:
- true - Option is enabled.
- false - Option is disabled.
- flag String
Flag for the Rewrite option.
Possible values:
- last - Stop processing the current set of
ngx_http_rewrite_moduledirectives and start a search for a new location matching changed URI. - break - Stop processing the current set of the Rewrite option.
- redirect - Return a temporary redirect with the 302 code; used when a replacement string does not start with
http://,https://, or$scheme. - permanent - Return a permanent redirect with the 301 code. Available values: "break", "last", "redirect", "permanent".
- last - Stop processing the current set of
CdnResourceOptionsSecureKey, CdnResourceOptionsSecureKeyArgs
CdnResourceOptionsSlice, CdnResourceOptionsSliceArgs
CdnResourceOptionsSni, CdnResourceOptionsSniArgs
- Custom
Hostname string - Custom SNI hostname.
- Enabled bool
Controls the option state.
Possible values:
- true - Option is enabled.
- false - Option is disabled.
- Sni
Type string SNI (Server Name Indication) type.
Possible values:
- dynamic - SNI hostname depends on
hostHeaderandforward_host_headeroptions. It has several possible combinations: - If the
hostHeaderoption is enabled and specified, SNI hostname matches the Host header. - If the
forward_host_headeroption is enabled and has true value, SNI hostname matches the Host header used in the request made to a CDN. - If the
hostHeaderandforward_host_headeroptions are disabled, SNI hostname matches the primary CNAME. - custom - custom SNI hostname is in use. Available values: "dynamic", "custom".
- dynamic - SNI hostname depends on
- Custom
Hostname string - Custom SNI hostname.
- Enabled bool
Controls the option state.
Possible values:
- true - Option is enabled.
- false - Option is disabled.
- Sni
Type string SNI (Server Name Indication) type.
Possible values:
- dynamic - SNI hostname depends on
hostHeaderandforward_host_headeroptions. It has several possible combinations: - If the
hostHeaderoption is enabled and specified, SNI hostname matches the Host header. - If the
forward_host_headeroption is enabled and has true value, SNI hostname matches the Host header used in the request made to a CDN. - If the
hostHeaderandforward_host_headeroptions are disabled, SNI hostname matches the primary CNAME. - custom - custom SNI hostname is in use. Available values: "dynamic", "custom".
- dynamic - SNI hostname depends on
- custom
Hostname String - Custom SNI hostname.
- enabled Boolean
Controls the option state.
Possible values:
- true - Option is enabled.
- false - Option is disabled.
- sni
Type String SNI (Server Name Indication) type.
Possible values:
- dynamic - SNI hostname depends on
hostHeaderandforward_host_headeroptions. It has several possible combinations: - If the
hostHeaderoption is enabled and specified, SNI hostname matches the Host header. - If the
forward_host_headeroption is enabled and has true value, SNI hostname matches the Host header used in the request made to a CDN. - If the
hostHeaderandforward_host_headeroptions are disabled, SNI hostname matches the primary CNAME. - custom - custom SNI hostname is in use. Available values: "dynamic", "custom".
- dynamic - SNI hostname depends on
- custom
Hostname string - Custom SNI hostname.
- enabled boolean
Controls the option state.
Possible values:
- true - Option is enabled.
- false - Option is disabled.
- sni
Type string SNI (Server Name Indication) type.
Possible values:
- dynamic - SNI hostname depends on
hostHeaderandforward_host_headeroptions. It has several possible combinations: - If the
hostHeaderoption is enabled and specified, SNI hostname matches the Host header. - If the
forward_host_headeroption is enabled and has true value, SNI hostname matches the Host header used in the request made to a CDN. - If the
hostHeaderandforward_host_headeroptions are disabled, SNI hostname matches the primary CNAME. - custom - custom SNI hostname is in use. Available values: "dynamic", "custom".
- dynamic - SNI hostname depends on
- custom_
hostname str - Custom SNI hostname.
- enabled bool
Controls the option state.
Possible values:
- true - Option is enabled.
- false - Option is disabled.
- sni_
type str SNI (Server Name Indication) type.
Possible values:
- dynamic - SNI hostname depends on
hostHeaderandforward_host_headeroptions. It has several possible combinations: - If the
hostHeaderoption is enabled and specified, SNI hostname matches the Host header. - If the
forward_host_headeroption is enabled and has true value, SNI hostname matches the Host header used in the request made to a CDN. - If the
hostHeaderandforward_host_headeroptions are disabled, SNI hostname matches the primary CNAME. - custom - custom SNI hostname is in use. Available values: "dynamic", "custom".
- dynamic - SNI hostname depends on
- custom
Hostname String - Custom SNI hostname.
- enabled Boolean
Controls the option state.
Possible values:
- true - Option is enabled.
- false - Option is disabled.
- sni
Type String SNI (Server Name Indication) type.
Possible values:
- dynamic - SNI hostname depends on
hostHeaderandforward_host_headeroptions. It has several possible combinations: - If the
hostHeaderoption is enabled and specified, SNI hostname matches the Host header. - If the
forward_host_headeroption is enabled and has true value, SNI hostname matches the Host header used in the request made to a CDN. - If the
hostHeaderandforward_host_headeroptions are disabled, SNI hostname matches the primary CNAME. - custom - custom SNI hostname is in use. Available values: "dynamic", "custom".
- dynamic - SNI hostname depends on
CdnResourceOptionsStale, CdnResourceOptionsStaleArgs
CdnResourceOptionsStaticRequestHeaders, CdnResourceOptionsStaticRequestHeadersArgs
- Enabled bool
- Controls the option state.
- Value Dictionary<string, string>
A MAP for static headers in a format of
header_name:<span pulumi-lang-nodejs=" headerValue" pulumi-lang-dotnet=" HeaderValue" pulumi-lang-go=" headerValue" pulumi-lang-python=" header_value" pulumi-lang-yaml=" headerValue" pulumi-lang-java=" headerValue"> header_value.Restrictions:
- Header name - Maximum 255 symbols, may contain Latin letters (A-Z, a-z), numbers (0-9), dashes, and underscores.
- Header value - Maximum 512 symbols, may contain letters (a-z), numbers (0-9), spaces, and symbols (`~!@#%%^&*()-_=+ /|";:?.,><{}[]). Must start with a letter, number, asterisk or {.
- Enabled bool
- Controls the option state.
- Value map[string]string
A MAP for static headers in a format of
header_name:<span pulumi-lang-nodejs=" headerValue" pulumi-lang-dotnet=" HeaderValue" pulumi-lang-go=" headerValue" pulumi-lang-python=" header_value" pulumi-lang-yaml=" headerValue" pulumi-lang-java=" headerValue"> header_value.Restrictions:
- Header name - Maximum 255 symbols, may contain Latin letters (A-Z, a-z), numbers (0-9), dashes, and underscores.
- Header value - Maximum 512 symbols, may contain letters (a-z), numbers (0-9), spaces, and symbols (`~!@#%%^&*()-_=+ /|";:?.,><{}[]). Must start with a letter, number, asterisk or {.
- enabled Boolean
- Controls the option state.
- value Map<String,String>
A MAP for static headers in a format of
header_name:<span pulumi-lang-nodejs=" headerValue" pulumi-lang-dotnet=" HeaderValue" pulumi-lang-go=" headerValue" pulumi-lang-python=" header_value" pulumi-lang-yaml=" headerValue" pulumi-lang-java=" headerValue"> header_value.Restrictions:
- Header name - Maximum 255 symbols, may contain Latin letters (A-Z, a-z), numbers (0-9), dashes, and underscores.
- Header value - Maximum 512 symbols, may contain letters (a-z), numbers (0-9), spaces, and symbols (`~!@#%%^&*()-_=+ /|";:?.,><{}[]). Must start with a letter, number, asterisk or {.
- enabled boolean
- Controls the option state.
- value {[key: string]: string}
A MAP for static headers in a format of
header_name:<span pulumi-lang-nodejs=" headerValue" pulumi-lang-dotnet=" HeaderValue" pulumi-lang-go=" headerValue" pulumi-lang-python=" header_value" pulumi-lang-yaml=" headerValue" pulumi-lang-java=" headerValue"> header_value.Restrictions:
- Header name - Maximum 255 symbols, may contain Latin letters (A-Z, a-z), numbers (0-9), dashes, and underscores.
- Header value - Maximum 512 symbols, may contain letters (a-z), numbers (0-9), spaces, and symbols (`~!@#%%^&*()-_=+ /|";:?.,><{}[]). Must start with a letter, number, asterisk or {.
- enabled bool
- Controls the option state.
- value Mapping[str, str]
A MAP for static headers in a format of
header_name:<span pulumi-lang-nodejs=" headerValue" pulumi-lang-dotnet=" HeaderValue" pulumi-lang-go=" headerValue" pulumi-lang-python=" header_value" pulumi-lang-yaml=" headerValue" pulumi-lang-java=" headerValue"> header_value.Restrictions:
- Header name - Maximum 255 symbols, may contain Latin letters (A-Z, a-z), numbers (0-9), dashes, and underscores.
- Header value - Maximum 512 symbols, may contain letters (a-z), numbers (0-9), spaces, and symbols (`~!@#%%^&*()-_=+ /|";:?.,><{}[]). Must start with a letter, number, asterisk or {.
- enabled Boolean
- Controls the option state.
- value Map<String>
A MAP for static headers in a format of
header_name:<span pulumi-lang-nodejs=" headerValue" pulumi-lang-dotnet=" HeaderValue" pulumi-lang-go=" headerValue" pulumi-lang-python=" header_value" pulumi-lang-yaml=" headerValue" pulumi-lang-java=" headerValue"> header_value.Restrictions:
- Header name - Maximum 255 symbols, may contain Latin letters (A-Z, a-z), numbers (0-9), dashes, and underscores.
- Header value - Maximum 512 symbols, may contain letters (a-z), numbers (0-9), spaces, and symbols (`~!@#%%^&*()-_=+ /|";:?.,><{}[]). Must start with a letter, number, asterisk or {.
CdnResourceOptionsStaticResponseHeaders, CdnResourceOptionsStaticResponseHeadersArgs
- Enabled bool
- Controls the option state.
- Values
List<Cdn
Resource Options Static Response Headers Value>
- Enabled bool
- Controls the option state.
- Values
[]Cdn
Resource Options Static Response Headers Value
- enabled Boolean
- Controls the option state.
- values
List<Cdn
Resource Options Static Response Headers Value>
- enabled boolean
- Controls the option state.
- values
Cdn
Resource Options Static Response Headers Value[]
- enabled bool
- Controls the option state.
- values
Sequence[Cdn
Resource Options Static Response Headers Value]
- enabled Boolean
- Controls the option state.
- values List<Property Map>
CdnResourceOptionsStaticResponseHeadersValue, CdnResourceOptionsStaticResponseHeadersValueArgs
- Name string
- HTTP Header name.
- Values List<string>
Header value.
Restrictions:
- Maximum 512 symbols.
- Letters (a-z), numbers (0-9), spaces, and symbols (`~!@#%%^&*()-_=+ /|";:?.,><{}[]).
- Must start with a letter, number, asterisk or {.
- Multiple values can be added.
- Always bool
Defines whether the header will be added to a response from CDN regardless of response code.
Possible values:
- true - Header will be added to a response from CDN regardless of response code.
- false - Header will be added only to the following response codes: 200, 201, 204, 206, 301, 302, 303, 304, 307, 308.
- Name string
- HTTP Header name.
- Values []string
Header value.
Restrictions:
- Maximum 512 symbols.
- Letters (a-z), numbers (0-9), spaces, and symbols (`~!@#%%^&*()-_=+ /|";:?.,><{}[]).
- Must start with a letter, number, asterisk or {.
- Multiple values can be added.
- Always bool
Defines whether the header will be added to a response from CDN regardless of response code.
Possible values:
- true - Header will be added to a response from CDN regardless of response code.
- false - Header will be added only to the following response codes: 200, 201, 204, 206, 301, 302, 303, 304, 307, 308.
- name String
- HTTP Header name.
- values List<String>
Header value.
Restrictions:
- Maximum 512 symbols.
- Letters (a-z), numbers (0-9), spaces, and symbols (`~!@#%%^&*()-_=+ /|";:?.,><{}[]).
- Must start with a letter, number, asterisk or {.
- Multiple values can be added.
- always Boolean
Defines whether the header will be added to a response from CDN regardless of response code.
Possible values:
- true - Header will be added to a response from CDN regardless of response code.
- false - Header will be added only to the following response codes: 200, 201, 204, 206, 301, 302, 303, 304, 307, 308.
- name string
- HTTP Header name.
- values string[]
Header value.
Restrictions:
- Maximum 512 symbols.
- Letters (a-z), numbers (0-9), spaces, and symbols (`~!@#%%^&*()-_=+ /|";:?.,><{}[]).
- Must start with a letter, number, asterisk or {.
- Multiple values can be added.
- always boolean
Defines whether the header will be added to a response from CDN regardless of response code.
Possible values:
- true - Header will be added to a response from CDN regardless of response code.
- false - Header will be added only to the following response codes: 200, 201, 204, 206, 301, 302, 303, 304, 307, 308.
- name str
- HTTP Header name.
- values Sequence[str]
Header value.
Restrictions:
- Maximum 512 symbols.
- Letters (a-z), numbers (0-9), spaces, and symbols (`~!@#%%^&*()-_=+ /|";:?.,><{}[]).
- Must start with a letter, number, asterisk or {.
- Multiple values can be added.
- always bool
Defines whether the header will be added to a response from CDN regardless of response code.
Possible values:
- true - Header will be added to a response from CDN regardless of response code.
- false - Header will be added only to the following response codes: 200, 201, 204, 206, 301, 302, 303, 304, 307, 308.
- name String
- HTTP Header name.
- values List<String>
Header value.
Restrictions:
- Maximum 512 symbols.
- Letters (a-z), numbers (0-9), spaces, and symbols (`~!@#%%^&*()-_=+ /|";:?.,><{}[]).
- Must start with a letter, number, asterisk or {.
- Multiple values can be added.
- always Boolean
Defines whether the header will be added to a response from CDN regardless of response code.
Possible values:
- true - Header will be added to a response from CDN regardless of response code.
- false - Header will be added only to the following response codes: 200, 201, 204, 206, 301, 302, 303, 304, 307, 308.
CdnResourceOptionsTlsVersions, CdnResourceOptionsTlsVersionsArgs
CdnResourceOptionsUseDefaultLeChain, CdnResourceOptionsUseDefaultLeChainArgs
CdnResourceOptionsUseDns01LeChallenge, CdnResourceOptionsUseDns01LeChallengeArgs
CdnResourceOptionsUseRsaLeCert, CdnResourceOptionsUseRsaLeCertArgs
CdnResourceOptionsUserAgentAcl, CdnResourceOptionsUserAgentAclArgs
- Enabled bool
- Controls the option state.
- Excepted
Values List<string> List of User-Agents that will be allowed/denied.
The meaning of the parameter depends on
policy_type:- allow - List of User-Agents for which access is prohibited.
- deny - List of User-Agents for which access is allowed.
You can provide exact User-Agent strings or regular expressions. Regular expressions must start with
~(case-sensitive) or~*(case-insensitive).Use an empty string
""to allow/deny access when the User-Agent header is empty.- Policy
Type string User-Agents policy type.
Possible values:
- allow - Allow access for all User-Agents except specified in
excepted_valuesfield. - deny - Deny access for all User-Agents except specified in
excepted_valuesfield. Available values: "allow", "deny".
- allow - Allow access for all User-Agents except specified in
- Enabled bool
- Controls the option state.
- Excepted
Values []string List of User-Agents that will be allowed/denied.
The meaning of the parameter depends on
policy_type:- allow - List of User-Agents for which access is prohibited.
- deny - List of User-Agents for which access is allowed.
You can provide exact User-Agent strings or regular expressions. Regular expressions must start with
~(case-sensitive) or~*(case-insensitive).Use an empty string
""to allow/deny access when the User-Agent header is empty.- Policy
Type string User-Agents policy type.
Possible values:
- allow - Allow access for all User-Agents except specified in
excepted_valuesfield. - deny - Deny access for all User-Agents except specified in
excepted_valuesfield. Available values: "allow", "deny".
- allow - Allow access for all User-Agents except specified in
- enabled Boolean
- Controls the option state.
- excepted
Values List<String> List of User-Agents that will be allowed/denied.
The meaning of the parameter depends on
policy_type:- allow - List of User-Agents for which access is prohibited.
- deny - List of User-Agents for which access is allowed.
You can provide exact User-Agent strings or regular expressions. Regular expressions must start with
~(case-sensitive) or~*(case-insensitive).Use an empty string
""to allow/deny access when the User-Agent header is empty.- policy
Type String User-Agents policy type.
Possible values:
- allow - Allow access for all User-Agents except specified in
excepted_valuesfield. - deny - Deny access for all User-Agents except specified in
excepted_valuesfield. Available values: "allow", "deny".
- allow - Allow access for all User-Agents except specified in
- enabled boolean
- Controls the option state.
- excepted
Values string[] List of User-Agents that will be allowed/denied.
The meaning of the parameter depends on
policy_type:- allow - List of User-Agents for which access is prohibited.
- deny - List of User-Agents for which access is allowed.
You can provide exact User-Agent strings or regular expressions. Regular expressions must start with
~(case-sensitive) or~*(case-insensitive).Use an empty string
""to allow/deny access when the User-Agent header is empty.- policy
Type string User-Agents policy type.
Possible values:
- allow - Allow access for all User-Agents except specified in
excepted_valuesfield. - deny - Deny access for all User-Agents except specified in
excepted_valuesfield. Available values: "allow", "deny".
- allow - Allow access for all User-Agents except specified in
- enabled bool
- Controls the option state.
- excepted_
values Sequence[str] List of User-Agents that will be allowed/denied.
The meaning of the parameter depends on
policy_type:- allow - List of User-Agents for which access is prohibited.
- deny - List of User-Agents for which access is allowed.
You can provide exact User-Agent strings or regular expressions. Regular expressions must start with
~(case-sensitive) or~*(case-insensitive).Use an empty string
""to allow/deny access when the User-Agent header is empty.- policy_
type str User-Agents policy type.
Possible values:
- allow - Allow access for all User-Agents except specified in
excepted_valuesfield. - deny - Deny access for all User-Agents except specified in
excepted_valuesfield. Available values: "allow", "deny".
- allow - Allow access for all User-Agents except specified in
- enabled Boolean
- Controls the option state.
- excepted
Values List<String> List of User-Agents that will be allowed/denied.
The meaning of the parameter depends on
policy_type:- allow - List of User-Agents for which access is prohibited.
- deny - List of User-Agents for which access is allowed.
You can provide exact User-Agent strings or regular expressions. Regular expressions must start with
~(case-sensitive) or~*(case-insensitive).Use an empty string
""to allow/deny access when the User-Agent header is empty.- policy
Type String User-Agents policy type.
Possible values:
- allow - Allow access for all User-Agents except specified in
excepted_valuesfield. - deny - Deny access for all User-Agents except specified in
excepted_valuesfield. Available values: "allow", "deny".
- allow - Allow access for all User-Agents except specified in
CdnResourceOptionsWaap, CdnResourceOptionsWaapArgs
CdnResourceOptionsWebsockets, CdnResourceOptionsWebsocketsArgs
Import
$ pulumi import gcore:index/cdnResource:CdnResource example '<resource_id>'
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- gcore g-core/terraform-provider-gcore
- License
- Notes
- This Pulumi package is based on the
gcoreTerraform Provider.
published on Monday, Mar 9, 2026 by g-core
