edgecenter.CdnResource
Explore with Pulumi AI
Represent CDN resource
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,
origin: Optional[str] = None,
cdn_resource_id: Optional[str] = None,
description: Optional[str] = None,
issue_le_cert: Optional[bool] = None,
options: Optional[CdnResourceOptionsArgs] = None,
active: Optional[bool] = None,
origin_group: Optional[float] = None,
origin_protocol: Optional[str] = None,
secondary_hostnames: Optional[Sequence[str]] = None,
ssl_automated: Optional[bool] = None,
ssl_data: Optional[float] = None,
ssl_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: edgecenter: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 Edgecenter.CdnResource("cdnResourceResource", new()
{
Cname = "string",
Origin = "string",
CdnResourceId = "string",
Description = "string",
IssueLeCert = false,
Options = new Edgecenter.Inputs.CdnResourceOptionsArgs
{
AllowedHttpMethods = new Edgecenter.Inputs.CdnResourceOptionsAllowedHttpMethodsArgs
{
Values = new[]
{
"string",
},
Enabled = false,
},
BrotliCompression = new Edgecenter.Inputs.CdnResourceOptionsBrotliCompressionArgs
{
Values = new[]
{
"string",
},
Enabled = false,
},
BrowserCacheSettings = new Edgecenter.Inputs.CdnResourceOptionsBrowserCacheSettingsArgs
{
Enabled = false,
Value = "string",
},
Cors = new Edgecenter.Inputs.CdnResourceOptionsCorsArgs
{
Values = new[]
{
"string",
},
Always = false,
Enabled = false,
},
DisableProxyForceRanges = new Edgecenter.Inputs.CdnResourceOptionsDisableProxyForceRangesArgs
{
Value = false,
Enabled = false,
},
EdgeCacheSettings = new Edgecenter.Inputs.CdnResourceOptionsEdgeCacheSettingsArgs
{
CustomValues =
{
{ "string", "string" },
},
Default = "string",
Enabled = false,
Value = "string",
},
FetchCompressed = new Edgecenter.Inputs.CdnResourceOptionsFetchCompressedArgs
{
Value = false,
Enabled = false,
},
FollowOriginRedirect = new Edgecenter.Inputs.CdnResourceOptionsFollowOriginRedirectArgs
{
Codes = new[]
{
0,
},
Enabled = false,
UseHost = false,
},
ForceReturn = new Edgecenter.Inputs.CdnResourceOptionsForceReturnArgs
{
Code = 0,
Body = "string",
Enabled = false,
},
ForwardHostHeader = new Edgecenter.Inputs.CdnResourceOptionsForwardHostHeaderArgs
{
Value = false,
Enabled = false,
},
GeoAcl = new Edgecenter.Inputs.CdnResourceOptionsGeoAclArgs
{
ExceptedValues = new[]
{
new Edgecenter.Inputs.CdnResourceOptionsGeoAclExceptedValueArgs
{
Key = "string",
Values = new[]
{
"string",
},
},
},
Enabled = false,
PolicyType = "string",
},
GzipCompression = new Edgecenter.Inputs.CdnResourceOptionsGzipCompressionArgs
{
Values = new[]
{
"string",
},
Enabled = false,
},
HostHeader = new Edgecenter.Inputs.CdnResourceOptionsHostHeaderArgs
{
Value = "string",
Enabled = false,
},
Http3Enabled = new Edgecenter.Inputs.CdnResourceOptionsHttp3EnabledArgs
{
Value = false,
Enabled = false,
},
IgnoreCookie = new Edgecenter.Inputs.CdnResourceOptionsIgnoreCookieArgs
{
Value = false,
Enabled = false,
},
IgnoreQueryString = new Edgecenter.Inputs.CdnResourceOptionsIgnoreQueryStringArgs
{
Value = false,
Enabled = false,
},
ImageStack = new Edgecenter.Inputs.CdnResourceOptionsImageStackArgs
{
Quality = 0,
AvifEnabled = false,
Enabled = false,
PngLossless = false,
WebpEnabled = false,
},
IpAddressAcl = new Edgecenter.Inputs.CdnResourceOptionsIpAddressAclArgs
{
ExceptedValues = new[]
{
"string",
},
PolicyType = "string",
Enabled = false,
},
LimitBandwidth = new Edgecenter.Inputs.CdnResourceOptionsLimitBandwidthArgs
{
LimitType = "string",
Buffer = 0,
Enabled = false,
Speed = 0,
},
ProxyCacheMethodsSet = new Edgecenter.Inputs.CdnResourceOptionsProxyCacheMethodsSetArgs
{
Value = false,
Enabled = false,
},
QueryParamsBlacklist = new Edgecenter.Inputs.CdnResourceOptionsQueryParamsBlacklistArgs
{
Values = new[]
{
"string",
},
Enabled = false,
},
QueryParamsWhitelist = new Edgecenter.Inputs.CdnResourceOptionsQueryParamsWhitelistArgs
{
Values = new[]
{
"string",
},
Enabled = false,
},
RedirectHttpToHttps = new Edgecenter.Inputs.CdnResourceOptionsRedirectHttpToHttpsArgs
{
Value = false,
Enabled = false,
},
RedirectHttpsToHttp = new Edgecenter.Inputs.CdnResourceOptionsRedirectHttpsToHttpArgs
{
Value = false,
Enabled = false,
},
ReferrerAcl = new Edgecenter.Inputs.CdnResourceOptionsReferrerAclArgs
{
ExceptedValues = new[]
{
"string",
},
PolicyType = "string",
Enabled = false,
},
ResponseHeadersHidingPolicy = new Edgecenter.Inputs.CdnResourceOptionsResponseHeadersHidingPolicyArgs
{
Excepteds = new[]
{
"string",
},
Mode = "string",
Enabled = false,
},
Rewrite = new Edgecenter.Inputs.CdnResourceOptionsRewriteArgs
{
Body = "string",
Enabled = false,
Flag = "string",
},
SecureKey = new Edgecenter.Inputs.CdnResourceOptionsSecureKeyArgs
{
Key = "string",
Type = 0,
Enabled = false,
},
Slice = new Edgecenter.Inputs.CdnResourceOptionsSliceArgs
{
Value = false,
Enabled = false,
},
Sni = new Edgecenter.Inputs.CdnResourceOptionsSniArgs
{
CustomHostname = "string",
Enabled = false,
SniType = "string",
},
Stale = new Edgecenter.Inputs.CdnResourceOptionsStaleArgs
{
Values = new[]
{
"string",
},
Enabled = false,
},
StaticRequestHeaders = new Edgecenter.Inputs.CdnResourceOptionsStaticRequestHeadersArgs
{
Value =
{
{ "string", "string" },
},
Enabled = false,
},
StaticResponseHeaders = new Edgecenter.Inputs.CdnResourceOptionsStaticResponseHeadersArgs
{
Values = new[]
{
new Edgecenter.Inputs.CdnResourceOptionsStaticResponseHeadersValueArgs
{
Name = "string",
Values = new[]
{
"string",
},
Always = false,
},
},
Enabled = false,
},
TlsVersions = new Edgecenter.Inputs.CdnResourceOptionsTlsVersionsArgs
{
Values = new[]
{
"string",
},
Enabled = false,
},
UseDefaultLeChain = new Edgecenter.Inputs.CdnResourceOptionsUseDefaultLeChainArgs
{
Value = false,
Enabled = false,
},
UserAgentAcl = new Edgecenter.Inputs.CdnResourceOptionsUserAgentAclArgs
{
ExceptedValues = new[]
{
"string",
},
PolicyType = "string",
Enabled = false,
},
Websockets = new Edgecenter.Inputs.CdnResourceOptionsWebsocketsArgs
{
Value = false,
Enabled = false,
},
},
Active = false,
OriginGroup = 0,
OriginProtocol = "string",
SecondaryHostnames = new[]
{
"string",
},
SslAutomated = false,
SslData = 0,
SslEnabled = false,
});
example, err := edgecenter.NewCdnResource(ctx, "cdnResourceResource", &edgecenter.CdnResourceArgs{
Cname: pulumi.String("string"),
Origin: pulumi.String("string"),
CdnResourceId: pulumi.String("string"),
Description: pulumi.String("string"),
IssueLeCert: pulumi.Bool(false),
Options: &edgecenter.CdnResourceOptionsArgs{
AllowedHttpMethods: &edgecenter.CdnResourceOptionsAllowedHttpMethodsArgs{
Values: pulumi.StringArray{
pulumi.String("string"),
},
Enabled: pulumi.Bool(false),
},
BrotliCompression: &edgecenter.CdnResourceOptionsBrotliCompressionArgs{
Values: pulumi.StringArray{
pulumi.String("string"),
},
Enabled: pulumi.Bool(false),
},
BrowserCacheSettings: &edgecenter.CdnResourceOptionsBrowserCacheSettingsArgs{
Enabled: pulumi.Bool(false),
Value: pulumi.String("string"),
},
Cors: &edgecenter.CdnResourceOptionsCorsArgs{
Values: pulumi.StringArray{
pulumi.String("string"),
},
Always: pulumi.Bool(false),
Enabled: pulumi.Bool(false),
},
DisableProxyForceRanges: &edgecenter.CdnResourceOptionsDisableProxyForceRangesArgs{
Value: pulumi.Bool(false),
Enabled: pulumi.Bool(false),
},
EdgeCacheSettings: &edgecenter.CdnResourceOptionsEdgeCacheSettingsArgs{
CustomValues: pulumi.StringMap{
"string": pulumi.String("string"),
},
Default: pulumi.String("string"),
Enabled: pulumi.Bool(false),
Value: pulumi.String("string"),
},
FetchCompressed: &edgecenter.CdnResourceOptionsFetchCompressedArgs{
Value: pulumi.Bool(false),
Enabled: pulumi.Bool(false),
},
FollowOriginRedirect: &edgecenter.CdnResourceOptionsFollowOriginRedirectArgs{
Codes: pulumi.Float64Array{
pulumi.Float64(0),
},
Enabled: pulumi.Bool(false),
UseHost: pulumi.Bool(false),
},
ForceReturn: &edgecenter.CdnResourceOptionsForceReturnArgs{
Code: pulumi.Float64(0),
Body: pulumi.String("string"),
Enabled: pulumi.Bool(false),
},
ForwardHostHeader: &edgecenter.CdnResourceOptionsForwardHostHeaderArgs{
Value: pulumi.Bool(false),
Enabled: pulumi.Bool(false),
},
GeoAcl: &edgecenter.CdnResourceOptionsGeoAclArgs{
ExceptedValues: edgecenter.CdnResourceOptionsGeoAclExceptedValueArray{
&edgecenter.CdnResourceOptionsGeoAclExceptedValueArgs{
Key: pulumi.String("string"),
Values: pulumi.StringArray{
pulumi.String("string"),
},
},
},
Enabled: pulumi.Bool(false),
PolicyType: pulumi.String("string"),
},
GzipCompression: &edgecenter.CdnResourceOptionsGzipCompressionArgs{
Values: pulumi.StringArray{
pulumi.String("string"),
},
Enabled: pulumi.Bool(false),
},
HostHeader: &edgecenter.CdnResourceOptionsHostHeaderArgs{
Value: pulumi.String("string"),
Enabled: pulumi.Bool(false),
},
Http3Enabled: &edgecenter.CdnResourceOptionsHttp3EnabledArgs{
Value: pulumi.Bool(false),
Enabled: pulumi.Bool(false),
},
IgnoreCookie: &edgecenter.CdnResourceOptionsIgnoreCookieArgs{
Value: pulumi.Bool(false),
Enabled: pulumi.Bool(false),
},
IgnoreQueryString: &edgecenter.CdnResourceOptionsIgnoreQueryStringArgs{
Value: pulumi.Bool(false),
Enabled: pulumi.Bool(false),
},
ImageStack: &edgecenter.CdnResourceOptionsImageStackArgs{
Quality: pulumi.Float64(0),
AvifEnabled: pulumi.Bool(false),
Enabled: pulumi.Bool(false),
PngLossless: pulumi.Bool(false),
WebpEnabled: pulumi.Bool(false),
},
IpAddressAcl: &edgecenter.CdnResourceOptionsIpAddressAclArgs{
ExceptedValues: pulumi.StringArray{
pulumi.String("string"),
},
PolicyType: pulumi.String("string"),
Enabled: pulumi.Bool(false),
},
LimitBandwidth: &edgecenter.CdnResourceOptionsLimitBandwidthArgs{
LimitType: pulumi.String("string"),
Buffer: pulumi.Float64(0),
Enabled: pulumi.Bool(false),
Speed: pulumi.Float64(0),
},
ProxyCacheMethodsSet: &edgecenter.CdnResourceOptionsProxyCacheMethodsSetArgs{
Value: pulumi.Bool(false),
Enabled: pulumi.Bool(false),
},
QueryParamsBlacklist: &edgecenter.CdnResourceOptionsQueryParamsBlacklistArgs{
Values: pulumi.StringArray{
pulumi.String("string"),
},
Enabled: pulumi.Bool(false),
},
QueryParamsWhitelist: &edgecenter.CdnResourceOptionsQueryParamsWhitelistArgs{
Values: pulumi.StringArray{
pulumi.String("string"),
},
Enabled: pulumi.Bool(false),
},
RedirectHttpToHttps: &edgecenter.CdnResourceOptionsRedirectHttpToHttpsArgs{
Value: pulumi.Bool(false),
Enabled: pulumi.Bool(false),
},
RedirectHttpsToHttp: &edgecenter.CdnResourceOptionsRedirectHttpsToHttpArgs{
Value: pulumi.Bool(false),
Enabled: pulumi.Bool(false),
},
ReferrerAcl: &edgecenter.CdnResourceOptionsReferrerAclArgs{
ExceptedValues: pulumi.StringArray{
pulumi.String("string"),
},
PolicyType: pulumi.String("string"),
Enabled: pulumi.Bool(false),
},
ResponseHeadersHidingPolicy: &edgecenter.CdnResourceOptionsResponseHeadersHidingPolicyArgs{
Excepteds: pulumi.StringArray{
pulumi.String("string"),
},
Mode: pulumi.String("string"),
Enabled: pulumi.Bool(false),
},
Rewrite: &edgecenter.CdnResourceOptionsRewriteArgs{
Body: pulumi.String("string"),
Enabled: pulumi.Bool(false),
Flag: pulumi.String("string"),
},
SecureKey: &edgecenter.CdnResourceOptionsSecureKeyArgs{
Key: pulumi.String("string"),
Type: pulumi.Float64(0),
Enabled: pulumi.Bool(false),
},
Slice: &edgecenter.CdnResourceOptionsSliceArgs{
Value: pulumi.Bool(false),
Enabled: pulumi.Bool(false),
},
Sni: &edgecenter.CdnResourceOptionsSniArgs{
CustomHostname: pulumi.String("string"),
Enabled: pulumi.Bool(false),
SniType: pulumi.String("string"),
},
Stale: &edgecenter.CdnResourceOptionsStaleArgs{
Values: pulumi.StringArray{
pulumi.String("string"),
},
Enabled: pulumi.Bool(false),
},
StaticRequestHeaders: &edgecenter.CdnResourceOptionsStaticRequestHeadersArgs{
Value: pulumi.StringMap{
"string": pulumi.String("string"),
},
Enabled: pulumi.Bool(false),
},
StaticResponseHeaders: &edgecenter.CdnResourceOptionsStaticResponseHeadersArgs{
Values: edgecenter.CdnResourceOptionsStaticResponseHeadersValueArray{
&edgecenter.CdnResourceOptionsStaticResponseHeadersValueArgs{
Name: pulumi.String("string"),
Values: pulumi.StringArray{
pulumi.String("string"),
},
Always: pulumi.Bool(false),
},
},
Enabled: pulumi.Bool(false),
},
TlsVersions: &edgecenter.CdnResourceOptionsTlsVersionsArgs{
Values: pulumi.StringArray{
pulumi.String("string"),
},
Enabled: pulumi.Bool(false),
},
UseDefaultLeChain: &edgecenter.CdnResourceOptionsUseDefaultLeChainArgs{
Value: pulumi.Bool(false),
Enabled: pulumi.Bool(false),
},
UserAgentAcl: &edgecenter.CdnResourceOptionsUserAgentAclArgs{
ExceptedValues: pulumi.StringArray{
pulumi.String("string"),
},
PolicyType: pulumi.String("string"),
Enabled: pulumi.Bool(false),
},
Websockets: &edgecenter.CdnResourceOptionsWebsocketsArgs{
Value: pulumi.Bool(false),
Enabled: pulumi.Bool(false),
},
},
Active: pulumi.Bool(false),
OriginGroup: pulumi.Float64(0),
OriginProtocol: pulumi.String("string"),
SecondaryHostnames: pulumi.StringArray{
pulumi.String("string"),
},
SslAutomated: pulumi.Bool(false),
SslData: pulumi.Float64(0),
SslEnabled: pulumi.Bool(false),
})
var cdnResourceResource = new CdnResource("cdnResourceResource", CdnResourceArgs.builder()
.cname("string")
.origin("string")
.cdnResourceId("string")
.description("string")
.issueLeCert(false)
.options(CdnResourceOptionsArgs.builder()
.allowedHttpMethods(CdnResourceOptionsAllowedHttpMethodsArgs.builder()
.values("string")
.enabled(false)
.build())
.brotliCompression(CdnResourceOptionsBrotliCompressionArgs.builder()
.values("string")
.enabled(false)
.build())
.browserCacheSettings(CdnResourceOptionsBrowserCacheSettingsArgs.builder()
.enabled(false)
.value("string")
.build())
.cors(CdnResourceOptionsCorsArgs.builder()
.values("string")
.always(false)
.enabled(false)
.build())
.disableProxyForceRanges(CdnResourceOptionsDisableProxyForceRangesArgs.builder()
.value(false)
.enabled(false)
.build())
.edgeCacheSettings(CdnResourceOptionsEdgeCacheSettingsArgs.builder()
.customValues(Map.of("string", "string"))
.default_("string")
.enabled(false)
.value("string")
.build())
.fetchCompressed(CdnResourceOptionsFetchCompressedArgs.builder()
.value(false)
.enabled(false)
.build())
.followOriginRedirect(CdnResourceOptionsFollowOriginRedirectArgs.builder()
.codes(0)
.enabled(false)
.useHost(false)
.build())
.forceReturn(CdnResourceOptionsForceReturnArgs.builder()
.code(0)
.body("string")
.enabled(false)
.build())
.forwardHostHeader(CdnResourceOptionsForwardHostHeaderArgs.builder()
.value(false)
.enabled(false)
.build())
.geoAcl(CdnResourceOptionsGeoAclArgs.builder()
.exceptedValues(CdnResourceOptionsGeoAclExceptedValueArgs.builder()
.key("string")
.values("string")
.build())
.enabled(false)
.policyType("string")
.build())
.gzipCompression(CdnResourceOptionsGzipCompressionArgs.builder()
.values("string")
.enabled(false)
.build())
.hostHeader(CdnResourceOptionsHostHeaderArgs.builder()
.value("string")
.enabled(false)
.build())
.http3Enabled(CdnResourceOptionsHttp3EnabledArgs.builder()
.value(false)
.enabled(false)
.build())
.ignoreCookie(CdnResourceOptionsIgnoreCookieArgs.builder()
.value(false)
.enabled(false)
.build())
.ignoreQueryString(CdnResourceOptionsIgnoreQueryStringArgs.builder()
.value(false)
.enabled(false)
.build())
.imageStack(CdnResourceOptionsImageStackArgs.builder()
.quality(0)
.avifEnabled(false)
.enabled(false)
.pngLossless(false)
.webpEnabled(false)
.build())
.ipAddressAcl(CdnResourceOptionsIpAddressAclArgs.builder()
.exceptedValues("string")
.policyType("string")
.enabled(false)
.build())
.limitBandwidth(CdnResourceOptionsLimitBandwidthArgs.builder()
.limitType("string")
.buffer(0)
.enabled(false)
.speed(0)
.build())
.proxyCacheMethodsSet(CdnResourceOptionsProxyCacheMethodsSetArgs.builder()
.value(false)
.enabled(false)
.build())
.queryParamsBlacklist(CdnResourceOptionsQueryParamsBlacklistArgs.builder()
.values("string")
.enabled(false)
.build())
.queryParamsWhitelist(CdnResourceOptionsQueryParamsWhitelistArgs.builder()
.values("string")
.enabled(false)
.build())
.redirectHttpToHttps(CdnResourceOptionsRedirectHttpToHttpsArgs.builder()
.value(false)
.enabled(false)
.build())
.redirectHttpsToHttp(CdnResourceOptionsRedirectHttpsToHttpArgs.builder()
.value(false)
.enabled(false)
.build())
.referrerAcl(CdnResourceOptionsReferrerAclArgs.builder()
.exceptedValues("string")
.policyType("string")
.enabled(false)
.build())
.responseHeadersHidingPolicy(CdnResourceOptionsResponseHeadersHidingPolicyArgs.builder()
.excepteds("string")
.mode("string")
.enabled(false)
.build())
.rewrite(CdnResourceOptionsRewriteArgs.builder()
.body("string")
.enabled(false)
.flag("string")
.build())
.secureKey(CdnResourceOptionsSecureKeyArgs.builder()
.key("string")
.type(0)
.enabled(false)
.build())
.slice(CdnResourceOptionsSliceArgs.builder()
.value(false)
.enabled(false)
.build())
.sni(CdnResourceOptionsSniArgs.builder()
.customHostname("string")
.enabled(false)
.sniType("string")
.build())
.stale(CdnResourceOptionsStaleArgs.builder()
.values("string")
.enabled(false)
.build())
.staticRequestHeaders(CdnResourceOptionsStaticRequestHeadersArgs.builder()
.value(Map.of("string", "string"))
.enabled(false)
.build())
.staticResponseHeaders(CdnResourceOptionsStaticResponseHeadersArgs.builder()
.values(CdnResourceOptionsStaticResponseHeadersValueArgs.builder()
.name("string")
.values("string")
.always(false)
.build())
.enabled(false)
.build())
.tlsVersions(CdnResourceOptionsTlsVersionsArgs.builder()
.values("string")
.enabled(false)
.build())
.useDefaultLeChain(CdnResourceOptionsUseDefaultLeChainArgs.builder()
.value(false)
.enabled(false)
.build())
.userAgentAcl(CdnResourceOptionsUserAgentAclArgs.builder()
.exceptedValues("string")
.policyType("string")
.enabled(false)
.build())
.websockets(CdnResourceOptionsWebsocketsArgs.builder()
.value(false)
.enabled(false)
.build())
.build())
.active(false)
.originGroup(0)
.originProtocol("string")
.secondaryHostnames("string")
.sslAutomated(false)
.sslData(0)
.sslEnabled(false)
.build());
cdn_resource_resource = edgecenter.CdnResource("cdnResourceResource",
cname="string",
origin="string",
cdn_resource_id="string",
description="string",
issue_le_cert=False,
options={
"allowed_http_methods": {
"values": ["string"],
"enabled": False,
},
"brotli_compression": {
"values": ["string"],
"enabled": False,
},
"browser_cache_settings": {
"enabled": False,
"value": "string",
},
"cors": {
"values": ["string"],
"always": False,
"enabled": False,
},
"disable_proxy_force_ranges": {
"value": False,
"enabled": False,
},
"edge_cache_settings": {
"custom_values": {
"string": "string",
},
"default": "string",
"enabled": False,
"value": "string",
},
"fetch_compressed": {
"value": False,
"enabled": False,
},
"follow_origin_redirect": {
"codes": [0],
"enabled": False,
"use_host": False,
},
"force_return": {
"code": 0,
"body": "string",
"enabled": False,
},
"forward_host_header": {
"value": False,
"enabled": False,
},
"geo_acl": {
"excepted_values": [{
"key": "string",
"values": ["string"],
}],
"enabled": False,
"policy_type": "string",
},
"gzip_compression": {
"values": ["string"],
"enabled": False,
},
"host_header": {
"value": "string",
"enabled": False,
},
"http3_enabled": {
"value": False,
"enabled": False,
},
"ignore_cookie": {
"value": False,
"enabled": False,
},
"ignore_query_string": {
"value": False,
"enabled": False,
},
"image_stack": {
"quality": 0,
"avif_enabled": False,
"enabled": False,
"png_lossless": False,
"webp_enabled": False,
},
"ip_address_acl": {
"excepted_values": ["string"],
"policy_type": "string",
"enabled": False,
},
"limit_bandwidth": {
"limit_type": "string",
"buffer": 0,
"enabled": False,
"speed": 0,
},
"proxy_cache_methods_set": {
"value": False,
"enabled": False,
},
"query_params_blacklist": {
"values": ["string"],
"enabled": False,
},
"query_params_whitelist": {
"values": ["string"],
"enabled": False,
},
"redirect_http_to_https": {
"value": False,
"enabled": False,
},
"redirect_https_to_http": {
"value": False,
"enabled": False,
},
"referrer_acl": {
"excepted_values": ["string"],
"policy_type": "string",
"enabled": False,
},
"response_headers_hiding_policy": {
"excepteds": ["string"],
"mode": "string",
"enabled": False,
},
"rewrite": {
"body": "string",
"enabled": False,
"flag": "string",
},
"secure_key": {
"key": "string",
"type": 0,
"enabled": False,
},
"slice": {
"value": False,
"enabled": False,
},
"sni": {
"custom_hostname": "string",
"enabled": False,
"sni_type": "string",
},
"stale": {
"values": ["string"],
"enabled": False,
},
"static_request_headers": {
"value": {
"string": "string",
},
"enabled": False,
},
"static_response_headers": {
"values": [{
"name": "string",
"values": ["string"],
"always": False,
}],
"enabled": False,
},
"tls_versions": {
"values": ["string"],
"enabled": False,
},
"use_default_le_chain": {
"value": False,
"enabled": False,
},
"user_agent_acl": {
"excepted_values": ["string"],
"policy_type": "string",
"enabled": False,
},
"websockets": {
"value": False,
"enabled": False,
},
},
active=False,
origin_group=0,
origin_protocol="string",
secondary_hostnames=["string"],
ssl_automated=False,
ssl_data=0,
ssl_enabled=False)
const cdnResourceResource = new edgecenter.CdnResource("cdnResourceResource", {
cname: "string",
origin: "string",
cdnResourceId: "string",
description: "string",
issueLeCert: false,
options: {
allowedHttpMethods: {
values: ["string"],
enabled: false,
},
brotliCompression: {
values: ["string"],
enabled: false,
},
browserCacheSettings: {
enabled: false,
value: "string",
},
cors: {
values: ["string"],
always: false,
enabled: false,
},
disableProxyForceRanges: {
value: false,
enabled: false,
},
edgeCacheSettings: {
customValues: {
string: "string",
},
"default": "string",
enabled: false,
value: "string",
},
fetchCompressed: {
value: false,
enabled: false,
},
followOriginRedirect: {
codes: [0],
enabled: false,
useHost: false,
},
forceReturn: {
code: 0,
body: "string",
enabled: false,
},
forwardHostHeader: {
value: false,
enabled: false,
},
geoAcl: {
exceptedValues: [{
key: "string",
values: ["string"],
}],
enabled: false,
policyType: "string",
},
gzipCompression: {
values: ["string"],
enabled: false,
},
hostHeader: {
value: "string",
enabled: false,
},
http3Enabled: {
value: false,
enabled: false,
},
ignoreCookie: {
value: false,
enabled: false,
},
ignoreQueryString: {
value: false,
enabled: false,
},
imageStack: {
quality: 0,
avifEnabled: false,
enabled: false,
pngLossless: false,
webpEnabled: false,
},
ipAddressAcl: {
exceptedValues: ["string"],
policyType: "string",
enabled: false,
},
limitBandwidth: {
limitType: "string",
buffer: 0,
enabled: false,
speed: 0,
},
proxyCacheMethodsSet: {
value: false,
enabled: false,
},
queryParamsBlacklist: {
values: ["string"],
enabled: false,
},
queryParamsWhitelist: {
values: ["string"],
enabled: false,
},
redirectHttpToHttps: {
value: false,
enabled: false,
},
redirectHttpsToHttp: {
value: false,
enabled: false,
},
referrerAcl: {
exceptedValues: ["string"],
policyType: "string",
enabled: false,
},
responseHeadersHidingPolicy: {
excepteds: ["string"],
mode: "string",
enabled: false,
},
rewrite: {
body: "string",
enabled: false,
flag: "string",
},
secureKey: {
key: "string",
type: 0,
enabled: false,
},
slice: {
value: false,
enabled: false,
},
sni: {
customHostname: "string",
enabled: false,
sniType: "string",
},
stale: {
values: ["string"],
enabled: false,
},
staticRequestHeaders: {
value: {
string: "string",
},
enabled: false,
},
staticResponseHeaders: {
values: [{
name: "string",
values: ["string"],
always: false,
}],
enabled: false,
},
tlsVersions: {
values: ["string"],
enabled: false,
},
useDefaultLeChain: {
value: false,
enabled: false,
},
userAgentAcl: {
exceptedValues: ["string"],
policyType: "string",
enabled: false,
},
websockets: {
value: false,
enabled: false,
},
},
active: false,
originGroup: 0,
originProtocol: "string",
secondaryHostnames: ["string"],
sslAutomated: false,
sslData: 0,
sslEnabled: false,
});
type: edgecenter:CdnResource
properties:
active: false
cdnResourceId: string
cname: string
description: string
issueLeCert: false
options:
allowedHttpMethods:
enabled: false
values:
- string
brotliCompression:
enabled: false
values:
- string
browserCacheSettings:
enabled: false
value: string
cors:
always: false
enabled: false
values:
- string
disableProxyForceRanges:
enabled: false
value: false
edgeCacheSettings:
customValues:
string: string
default: string
enabled: false
value: string
fetchCompressed:
enabled: false
value: false
followOriginRedirect:
codes:
- 0
enabled: false
useHost: false
forceReturn:
body: string
code: 0
enabled: false
forwardHostHeader:
enabled: false
value: false
geoAcl:
enabled: false
exceptedValues:
- key: string
values:
- string
policyType: string
gzipCompression:
enabled: false
values:
- string
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
proxyCacheMethodsSet:
enabled: false
value: false
queryParamsBlacklist:
enabled: false
values:
- string
queryParamsWhitelist:
enabled: false
values:
- string
redirectHttpToHttps:
enabled: false
value: false
redirectHttpsToHttp:
enabled: false
value: false
referrerAcl:
enabled: false
exceptedValues:
- string
policyType: 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
userAgentAcl:
enabled: false
exceptedValues:
- string
policyType: string
websockets:
enabled: false
value: false
origin: string
originGroup: 0
originProtocol: string
secondaryHostnames:
- string
sslAutomated: false
sslData: 0
sslEnabled: 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
- Specify a custom domain that will be used to deliver content via CDN.
- Active bool
- Enable or disable the CDN resource.
- Cdn
Resource stringId - The ID of this resource.
- Description string
- Leave an optional comment that describes this CDN resource.
- Issue
Le boolCert - Generate LE certificate.
- Options
Cdn
Resource Options - Each option in CDN resource settings. Each option added to CDN resource settings should have the following mandatory request fields: enabled, value.
- Origin string
- Enter a domain name or the IP address of your source. Specify a port if custom. You can use either "origin" or "origin_group" field in the request.
- Origin
Group double - Enter the source group ID. Use one of your source groups or create a new one. You can use either "origin" or "origin_group" field in the request.
- Origin
Protocol string - Choose the protocol that will be used by CDN servers to request content from the source. If not specified, the HTTP protocol will be used. Allowed values are "HTTPS", "HTTP", or "MATCH". If "MATCH" is chosen, content on the source should be available over both HTTP and HTTPS protocols.
- Secondary
Hostnames List<string> - Specify up to 10 additional custom domains that will be used to deliver content via the CDN.
- Ssl
Automated bool - generate LE certificate automatically.
- Ssl
Data double - Specify the SSL certificate ID which will be used for the CDN resource. The field must be used only with "ssl_enabled": true.
- Ssl
Enabled bool - Enable or disable the HTTPS protocol for content delivery.
- Cname string
- Specify a custom domain that will be used to deliver content via CDN.
- Active bool
- Enable or disable the CDN resource.
- Cdn
Resource stringId - The ID of this resource.
- Description string
- Leave an optional comment that describes this CDN resource.
- Issue
Le boolCert - Generate LE certificate.
- Options
Cdn
Resource Options Args - Each option in CDN resource settings. Each option added to CDN resource settings should have the following mandatory request fields: enabled, value.
- Origin string
- Enter a domain name or the IP address of your source. Specify a port if custom. You can use either "origin" or "origin_group" field in the request.
- Origin
Group float64 - Enter the source group ID. Use one of your source groups or create a new one. You can use either "origin" or "origin_group" field in the request.
- Origin
Protocol string - Choose the protocol that will be used by CDN servers to request content from the source. If not specified, the HTTP protocol will be used. Allowed values are "HTTPS", "HTTP", or "MATCH". If "MATCH" is chosen, content on the source should be available over both HTTP and HTTPS protocols.
- Secondary
Hostnames []string - Specify up to 10 additional custom domains that will be used to deliver content via the CDN.
- Ssl
Automated bool - generate LE certificate automatically.
- Ssl
Data float64 - Specify the SSL certificate ID which will be used for the CDN resource. The field must be used only with "ssl_enabled": true.
- Ssl
Enabled bool - Enable or disable the HTTPS protocol for content delivery.
- cname String
- Specify a custom domain that will be used to deliver content via CDN.
- active Boolean
- Enable or disable the CDN resource.
- cdn
Resource StringId - The ID of this resource.
- description String
- Leave an optional comment that describes this CDN resource.
- issue
Le BooleanCert - Generate LE certificate.
- options
Cdn
Resource Options - Each option in CDN resource settings. Each option added to CDN resource settings should have the following mandatory request fields: enabled, value.
- origin String
- Enter a domain name or the IP address of your source. Specify a port if custom. You can use either "origin" or "origin_group" field in the request.
- origin
Group Double - Enter the source group ID. Use one of your source groups or create a new one. You can use either "origin" or "origin_group" field in the request.
- origin
Protocol String - Choose the protocol that will be used by CDN servers to request content from the source. If not specified, the HTTP protocol will be used. Allowed values are "HTTPS", "HTTP", or "MATCH". If "MATCH" is chosen, content on the source should be available over both HTTP and HTTPS protocols.
- secondary
Hostnames List<String> - Specify up to 10 additional custom domains that will be used to deliver content via the CDN.
- ssl
Automated Boolean - generate LE certificate automatically.
- ssl
Data Double - Specify the SSL certificate ID which will be used for the CDN resource. The field must be used only with "ssl_enabled": true.
- ssl
Enabled Boolean - Enable or disable the HTTPS protocol for content delivery.
- cname string
- Specify a custom domain that will be used to deliver content via CDN.
- active boolean
- Enable or disable the CDN resource.
- cdn
Resource stringId - The ID of this resource.
- description string
- Leave an optional comment that describes this CDN resource.
- issue
Le booleanCert - Generate LE certificate.
- options
Cdn
Resource Options - Each option in CDN resource settings. Each option added to CDN resource settings should have the following mandatory request fields: enabled, value.
- origin string
- Enter a domain name or the IP address of your source. Specify a port if custom. You can use either "origin" or "origin_group" field in the request.
- origin
Group number - Enter the source group ID. Use one of your source groups or create a new one. You can use either "origin" or "origin_group" field in the request.
- origin
Protocol string - Choose the protocol that will be used by CDN servers to request content from the source. If not specified, the HTTP protocol will be used. Allowed values are "HTTPS", "HTTP", or "MATCH". If "MATCH" is chosen, content on the source should be available over both HTTP and HTTPS protocols.
- secondary
Hostnames string[] - Specify up to 10 additional custom domains that will be used to deliver content via the CDN.
- ssl
Automated boolean - generate LE certificate automatically.
- ssl
Data number - Specify the SSL certificate ID which will be used for the CDN resource. The field must be used only with "ssl_enabled": true.
- ssl
Enabled boolean - Enable or disable the HTTPS protocol for content delivery.
- cname str
- Specify a custom domain that will be used to deliver content via CDN.
- active bool
- Enable or disable the CDN resource.
- cdn_
resource_ strid - The ID of this resource.
- description str
- Leave an optional comment that describes this CDN resource.
- issue_
le_ boolcert - Generate LE certificate.
- options
Cdn
Resource Options Args - Each option in CDN resource settings. Each option added to CDN resource settings should have the following mandatory request fields: enabled, value.
- origin str
- Enter a domain name or the IP address of your source. Specify a port if custom. You can use either "origin" or "origin_group" field in the request.
- origin_
group float - Enter the source group ID. Use one of your source groups or create a new one. You can use either "origin" or "origin_group" field in the request.
- origin_
protocol str - Choose the protocol that will be used by CDN servers to request content from the source. If not specified, the HTTP protocol will be used. Allowed values are "HTTPS", "HTTP", or "MATCH". If "MATCH" is chosen, content on the source should be available over both HTTP and HTTPS protocols.
- secondary_
hostnames Sequence[str] - Specify up to 10 additional custom domains that will be used to deliver content via the CDN.
- ssl_
automated bool - generate LE certificate automatically.
- ssl_
data float - Specify the SSL certificate ID which will be used for the CDN resource. The field must be used only with "ssl_enabled": true.
- ssl_
enabled bool - Enable or disable the HTTPS protocol for content delivery.
- cname String
- Specify a custom domain that will be used to deliver content via CDN.
- active Boolean
- Enable or disable the CDN resource.
- cdn
Resource StringId - The ID of this resource.
- description String
- Leave an optional comment that describes this CDN resource.
- issue
Le BooleanCert - Generate LE certificate.
- options Property Map
- Each option in CDN resource settings. Each option added to CDN resource settings should have the following mandatory request fields: enabled, value.
- origin String
- Enter a domain name or the IP address of your source. Specify a port if custom. You can use either "origin" or "origin_group" field in the request.
- origin
Group Number - Enter the source group ID. Use one of your source groups or create a new one. You can use either "origin" or "origin_group" field in the request.
- origin
Protocol String - Choose the protocol that will be used by CDN servers to request content from the source. If not specified, the HTTP protocol will be used. Allowed values are "HTTPS", "HTTP", or "MATCH". If "MATCH" is chosen, content on the source should be available over both HTTP and HTTPS protocols.
- secondary
Hostnames List<String> - Specify up to 10 additional custom domains that will be used to deliver content via the CDN.
- ssl
Automated Boolean - generate LE certificate automatically.
- ssl
Data Number - Specify the SSL certificate ID which will be used for the CDN resource. The field must be used only with "ssl_enabled": true.
- ssl
Enabled Boolean - Enable or disable the HTTPS protocol for content delivery.
Outputs
All input properties are implicitly available as output properties. Additionally, the CdnResource resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Ssl
Le boolEnabled - Status string
- CDN resource status. Allowed values are "active", "suspended", or "processed".
- Id string
- The provider-assigned unique ID for this managed resource.
- Ssl
Le boolEnabled - Status string
- CDN resource status. Allowed values are "active", "suspended", or "processed".
- id String
- The provider-assigned unique ID for this managed resource.
- ssl
Le BooleanEnabled - status String
- CDN resource status. Allowed values are "active", "suspended", or "processed".
- id string
- The provider-assigned unique ID for this managed resource.
- ssl
Le booleanEnabled - status string
- CDN resource status. Allowed values are "active", "suspended", or "processed".
- id str
- The provider-assigned unique ID for this managed resource.
- ssl_
le_ boolenabled - status str
- CDN resource status. Allowed values are "active", "suspended", or "processed".
- id String
- The provider-assigned unique ID for this managed resource.
- ssl
Le BooleanEnabled - status String
- CDN resource status. Allowed values are "active", "suspended", or "processed".
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,
cdn_resource_id: Optional[str] = None,
cname: Optional[str] = None,
description: Optional[str] = None,
issue_le_cert: Optional[bool] = None,
options: Optional[CdnResourceOptionsArgs] = None,
origin: Optional[str] = None,
origin_group: Optional[float] = None,
origin_protocol: Optional[str] = None,
secondary_hostnames: Optional[Sequence[str]] = None,
ssl_automated: Optional[bool] = None,
ssl_data: Optional[float] = None,
ssl_enabled: Optional[bool] = None,
ssl_le_enabled: Optional[bool] = None,
status: Optional[str] = None) -> CdnResource
func 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: edgecenter: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
- Enable or disable the CDN resource.
- Cdn
Resource stringId - The ID of this resource.
- Cname string
- Specify a custom domain that will be used to deliver content via CDN.
- Description string
- Leave an optional comment that describes this CDN resource.
- Issue
Le boolCert - Generate LE certificate.
- Options
Cdn
Resource Options - Each option in CDN resource settings. Each option added to CDN resource settings should have the following mandatory request fields: enabled, value.
- Origin string
- Enter a domain name or the IP address of your source. Specify a port if custom. You can use either "origin" or "origin_group" field in the request.
- Origin
Group double - Enter the source group ID. Use one of your source groups or create a new one. You can use either "origin" or "origin_group" field in the request.
- Origin
Protocol string - Choose the protocol that will be used by CDN servers to request content from the source. If not specified, the HTTP protocol will be used. Allowed values are "HTTPS", "HTTP", or "MATCH". If "MATCH" is chosen, content on the source should be available over both HTTP and HTTPS protocols.
- Secondary
Hostnames List<string> - Specify up to 10 additional custom domains that will be used to deliver content via the CDN.
- Ssl
Automated bool - generate LE certificate automatically.
- Ssl
Data double - Specify the SSL certificate ID which will be used for the CDN resource. The field must be used only with "ssl_enabled": true.
- Ssl
Enabled bool - Enable or disable the HTTPS protocol for content delivery.
- Ssl
Le boolEnabled - Status string
- CDN resource status. Allowed values are "active", "suspended", or "processed".
- Active bool
- Enable or disable the CDN resource.
- Cdn
Resource stringId - The ID of this resource.
- Cname string
- Specify a custom domain that will be used to deliver content via CDN.
- Description string
- Leave an optional comment that describes this CDN resource.
- Issue
Le boolCert - Generate LE certificate.
- Options
Cdn
Resource Options Args - Each option in CDN resource settings. Each option added to CDN resource settings should have the following mandatory request fields: enabled, value.
- Origin string
- Enter a domain name or the IP address of your source. Specify a port if custom. You can use either "origin" or "origin_group" field in the request.
- Origin
Group float64 - Enter the source group ID. Use one of your source groups or create a new one. You can use either "origin" or "origin_group" field in the request.
- Origin
Protocol string - Choose the protocol that will be used by CDN servers to request content from the source. If not specified, the HTTP protocol will be used. Allowed values are "HTTPS", "HTTP", or "MATCH". If "MATCH" is chosen, content on the source should be available over both HTTP and HTTPS protocols.
- Secondary
Hostnames []string - Specify up to 10 additional custom domains that will be used to deliver content via the CDN.
- Ssl
Automated bool - generate LE certificate automatically.
- Ssl
Data float64 - Specify the SSL certificate ID which will be used for the CDN resource. The field must be used only with "ssl_enabled": true.
- Ssl
Enabled bool - Enable or disable the HTTPS protocol for content delivery.
- Ssl
Le boolEnabled - Status string
- CDN resource status. Allowed values are "active", "suspended", or "processed".
- active Boolean
- Enable or disable the CDN resource.
- cdn
Resource StringId - The ID of this resource.
- cname String
- Specify a custom domain that will be used to deliver content via CDN.
- description String
- Leave an optional comment that describes this CDN resource.
- issue
Le BooleanCert - Generate LE certificate.
- options
Cdn
Resource Options - Each option in CDN resource settings. Each option added to CDN resource settings should have the following mandatory request fields: enabled, value.
- origin String
- Enter a domain name or the IP address of your source. Specify a port if custom. You can use either "origin" or "origin_group" field in the request.
- origin
Group Double - Enter the source group ID. Use one of your source groups or create a new one. You can use either "origin" or "origin_group" field in the request.
- origin
Protocol String - Choose the protocol that will be used by CDN servers to request content from the source. If not specified, the HTTP protocol will be used. Allowed values are "HTTPS", "HTTP", or "MATCH". If "MATCH" is chosen, content on the source should be available over both HTTP and HTTPS protocols.
- secondary
Hostnames List<String> - Specify up to 10 additional custom domains that will be used to deliver content via the CDN.
- ssl
Automated Boolean - generate LE certificate automatically.
- ssl
Data Double - Specify the SSL certificate ID which will be used for the CDN resource. The field must be used only with "ssl_enabled": true.
- ssl
Enabled Boolean - Enable or disable the HTTPS protocol for content delivery.
- ssl
Le BooleanEnabled - status String
- CDN resource status. Allowed values are "active", "suspended", or "processed".
- active boolean
- Enable or disable the CDN resource.
- cdn
Resource stringId - The ID of this resource.
- cname string
- Specify a custom domain that will be used to deliver content via CDN.
- description string
- Leave an optional comment that describes this CDN resource.
- issue
Le booleanCert - Generate LE certificate.
- options
Cdn
Resource Options - Each option in CDN resource settings. Each option added to CDN resource settings should have the following mandatory request fields: enabled, value.
- origin string
- Enter a domain name or the IP address of your source. Specify a port if custom. You can use either "origin" or "origin_group" field in the request.
- origin
Group number - Enter the source group ID. Use one of your source groups or create a new one. You can use either "origin" or "origin_group" field in the request.
- origin
Protocol string - Choose the protocol that will be used by CDN servers to request content from the source. If not specified, the HTTP protocol will be used. Allowed values are "HTTPS", "HTTP", or "MATCH". If "MATCH" is chosen, content on the source should be available over both HTTP and HTTPS protocols.
- secondary
Hostnames string[] - Specify up to 10 additional custom domains that will be used to deliver content via the CDN.
- ssl
Automated boolean - generate LE certificate automatically.
- ssl
Data number - Specify the SSL certificate ID which will be used for the CDN resource. The field must be used only with "ssl_enabled": true.
- ssl
Enabled boolean - Enable or disable the HTTPS protocol for content delivery.
- ssl
Le booleanEnabled - status string
- CDN resource status. Allowed values are "active", "suspended", or "processed".
- active bool
- Enable or disable the CDN resource.
- cdn_
resource_ strid - The ID of this resource.
- cname str
- Specify a custom domain that will be used to deliver content via CDN.
- description str
- Leave an optional comment that describes this CDN resource.
- issue_
le_ boolcert - Generate LE certificate.
- options
Cdn
Resource Options Args - Each option in CDN resource settings. Each option added to CDN resource settings should have the following mandatory request fields: enabled, value.
- origin str
- Enter a domain name or the IP address of your source. Specify a port if custom. You can use either "origin" or "origin_group" field in the request.
- origin_
group float - Enter the source group ID. Use one of your source groups or create a new one. You can use either "origin" or "origin_group" field in the request.
- origin_
protocol str - Choose the protocol that will be used by CDN servers to request content from the source. If not specified, the HTTP protocol will be used. Allowed values are "HTTPS", "HTTP", or "MATCH". If "MATCH" is chosen, content on the source should be available over both HTTP and HTTPS protocols.
- secondary_
hostnames Sequence[str] - Specify up to 10 additional custom domains that will be used to deliver content via the CDN.
- ssl_
automated bool - generate LE certificate automatically.
- ssl_
data float - Specify the SSL certificate ID which will be used for the CDN resource. The field must be used only with "ssl_enabled": true.
- ssl_
enabled bool - Enable or disable the HTTPS protocol for content delivery.
- ssl_
le_ boolenabled - status str
- CDN resource status. Allowed values are "active", "suspended", or "processed".
- active Boolean
- Enable or disable the CDN resource.
- cdn
Resource StringId - The ID of this resource.
- cname String
- Specify a custom domain that will be used to deliver content via CDN.
- description String
- Leave an optional comment that describes this CDN resource.
- issue
Le BooleanCert - Generate LE certificate.
- options Property Map
- Each option in CDN resource settings. Each option added to CDN resource settings should have the following mandatory request fields: enabled, value.
- origin String
- Enter a domain name or the IP address of your source. Specify a port if custom. You can use either "origin" or "origin_group" field in the request.
- origin
Group Number - Enter the source group ID. Use one of your source groups or create a new one. You can use either "origin" or "origin_group" field in the request.
- origin
Protocol String - Choose the protocol that will be used by CDN servers to request content from the source. If not specified, the HTTP protocol will be used. Allowed values are "HTTPS", "HTTP", or "MATCH". If "MATCH" is chosen, content on the source should be available over both HTTP and HTTPS protocols.
- secondary
Hostnames List<String> - Specify up to 10 additional custom domains that will be used to deliver content via the CDN.
- ssl
Automated Boolean - generate LE certificate automatically.
- ssl
Data Number - Specify the SSL certificate ID which will be used for the CDN resource. The field must be used only with "ssl_enabled": true.
- ssl
Enabled Boolean - Enable or disable the HTTPS protocol for content delivery.
- ssl
Le BooleanEnabled - status String
- CDN resource status. Allowed values are "active", "suspended", or "processed".
Supporting Types
CdnResourceOptions, CdnResourceOptionsArgs
- Allowed
Http CdnMethods Resource Options Allowed Http Methods - Set a list of allowed HTTP methods for the CDN content.
- Brotli
Compression CdnResource Options Brotli Compression - Allow compressing content with Brotli on CDN. CDN servers will request only uncompressed content from the source. It is not supported unless the Origin shielding is enabled. Brotli compression is not supported when "fetch*compressed" or "slice" are enabled.
- Browser
Cache CdnSettings Resource Options Browser Cache Settings - Set the cache lifetime for the end users’ browsers in seconds.
- Cors
Cdn
Resource Options Cors - Add the Access-Control-Allow-Origin header to responses from the CDN servers.
- Disable
Proxy CdnForce Ranges Resource Options Disable Proxy Force Ranges - Allow CDN to get the HTTP 206 status codes regardless of the settings on the source.
- Edge
Cache CdnSettings Resource Options Edge Cache Settings - Set the cache expiration time for CDN servers. The "value" and "default" fields cannot be used simultaneously.
- Fetch
Compressed CdnResource Options Fetch Compressed - Let CDN pull pre-compressed content from the source and cache it. Your source should support compression. The CDN servers won't ungzip your content even if a user's browser doesn't accept compression. The option is not supported when "brotli*compression" or "slice" are enabled.
- Follow
Origin CdnRedirect Resource Options Follow Origin Redirect - If the source returns a redirect, let CDN pull the requested content from the source that was returned in the redirect.
- Force
Return CdnResource Options Force Return - Apply custom HTTP status codes to CDN content. Some HTTP status codes are reserved by our system and cannot be used with this option: 408, 444, 477, 494, 495, 496, 497, 499.
- Forward
Host CdnHeader Resource Options Forward Host Header - Allow forwarding the Host header used in the request made to the CDN when the CDN requests content from the source. "hostheader" and "forwardhost*header" cannot be enabled simultaneously.
- Geo
Acl CdnResource Options Geo Acl - Shows the state of the Geolocation access policy option. The option controls access to content from the specified countries and their regions.
- Gzip
Compression CdnResource Options Gzip Compression - Allow compressing content with gzip on CDN. CDN servers will request only uncompressed content from the source. The option is not supported when "fetch*compressed" or "slice" are enabled.
- Host
Header CdnResource Options Host Header - Manage the custom Host header in the Host header option. When the CDN requests content from the source, it will use the specified Host header. "hostheader" and "forwardhost*header" cannot be enabled simultaneously.
- Http3Enabled
Cdn
Resource Options Http3Enabled - Enable the HTTP/3 protocol for content delivery when supported by the end user’s browser.
- Cdn
Resource Options Ignore Cookie - Specify how to cache files with different values of the Set-Cookie header: as one object (when the option is enabled) or as different objects (when the option is disabled).
- Ignore
Query CdnString Resource Options Ignore Query String - Specify how to cache files with different query strings: as one object (when the option is enabled) or as different objects (when the option is disabled). "ignorequerystring", "queryparamswhitelist", and "queryparamsblacklist" cannot be enabled simultaneously.
- Image
Stack CdnResource Options Image Stack - Allow transforming JPG and PNG images and converting them into WebP or AVIF format.
- Ip
Address CdnAcl Resource Options Ip Address Acl - Control access to content from the specified IP addresses.
- Limit
Bandwidth CdnResource Options Limit Bandwidth - Control the download speed per connection.
- Proxy
Cache CdnMethods Set Resource Options Proxy Cache Methods Set - Allow the caching for GET, HEAD, and POST requests.
- Query
Params CdnBlacklist Resource Options Query Params Blacklist - Manage the Ignore only setting of the Query string option. The setting allows CDN to ignore the specified params and cache them as one object. "ignorequerystring", "queryparamswhitelist", and "queryparamsblacklist" cannot be enabled simultaneously.
- Query
Params CdnWhitelist Resource Options Query Params Whitelist - Manage the Ignore all except setting of the Query string option. The setting allows CDN to ignore all but specified params and cache them as separate objects. "ignorequerystring", "queryparamswhitelist", and "queryparamsblacklist" cannot be enabled simultaneously.
- Redirect
Http CdnTo Https Resource Options Redirect Http To Https - Let CDN redirect HTTPS requests to HTTP. "redirecthttptohttps" and "redirecthttpstohttp" cannot be enabled simultaneously.
- Redirect
Https CdnTo Http Resource Options Redirect Https To Http - Let CDN redirect HTTP requests to HTTPS. "redirecthttptohttps" and "redirecthttpstohttp" cannot be enabled simultaneously.
- Referrer
Acl CdnResource Options Referrer Acl - Сontrol access to content from the specified domain names.
- Response
Headers CdnHiding Policy Resource Options Response Headers Hiding Policy - Specify the HTTP headers set on the source that CDN servers should hide from the response.
- Rewrite
Cdn
Resource Options Rewrite - Change and redirect the requests from the CDN to the source.
- Secure
Key CdnResource Options Secure Key - Configure access to content with tokenized URLs, generated with the MD5 algorithm.
- Slice
Cdn
Resource Options Slice - Speed up the delivery of large files and their caching. When enabled, the files are requested and cached in 10 MB chunks. The option reduces the time to first byte. The source must support the HTTP Range requests. The option is not supported when "fetchcompressed", "brotlicompression", or "gzip_compression" are enabled.
- Sni
Cdn
Resource Options Sni - Help the resource understand which certificate to use for the connection, if the source server presents multiple certificates. The option works only if the "origin_protocol" field is set to "HTTPS" or "MATCH".
- Stale
Cdn
Resource Options Stale - Let CDN serve stale cached content in case of the source unavailability.
- Static
Request CdnHeaders Resource Options Static Request Headers - Let CDN add custom HTTP request headers when making requests to the source. You can specify up to 50 custom HTTP request headers.
- Static
Response CdnHeaders Resource Options Static Response Headers - Let CDN add custom HTTP response headers to the responses for the end users. You can specify up to 50 custom HTTP response headers.
- Tls
Versions CdnResource Options Tls Versions - Specify a list of allowed SSL/TLS protocol versions. By default, all the protocol versions are allowed.
- Use
Default CdnLe Chain Resource Options Use Default Le Chain - Choose the Let's Encrypt certificate chain that will be used on the CDN resource. By default, the certificate is issued with the alternative chain.
- User
Agent CdnAcl Resource Options User Agent Acl - Control access to content for the specified user agents.
- Websockets
Cdn
Resource Options Websockets - Allow WebSockets connections to the source. The WebSockets option can only be enabled upon request. Please contact support for assistance with activation.
- Allowed
Http CdnMethods Resource Options Allowed Http Methods - Set a list of allowed HTTP methods for the CDN content.
- Brotli
Compression CdnResource Options Brotli Compression - Allow compressing content with Brotli on CDN. CDN servers will request only uncompressed content from the source. It is not supported unless the Origin shielding is enabled. Brotli compression is not supported when "fetch*compressed" or "slice" are enabled.
- Browser
Cache CdnSettings Resource Options Browser Cache Settings - Set the cache lifetime for the end users’ browsers in seconds.
- Cors
Cdn
Resource Options Cors - Add the Access-Control-Allow-Origin header to responses from the CDN servers.
- Disable
Proxy CdnForce Ranges Resource Options Disable Proxy Force Ranges - Allow CDN to get the HTTP 206 status codes regardless of the settings on the source.
- Edge
Cache CdnSettings Resource Options Edge Cache Settings - Set the cache expiration time for CDN servers. The "value" and "default" fields cannot be used simultaneously.
- Fetch
Compressed CdnResource Options Fetch Compressed - Let CDN pull pre-compressed content from the source and cache it. Your source should support compression. The CDN servers won't ungzip your content even if a user's browser doesn't accept compression. The option is not supported when "brotli*compression" or "slice" are enabled.
- Follow
Origin CdnRedirect Resource Options Follow Origin Redirect - If the source returns a redirect, let CDN pull the requested content from the source that was returned in the redirect.
- Force
Return CdnResource Options Force Return - Apply custom HTTP status codes to CDN content. Some HTTP status codes are reserved by our system and cannot be used with this option: 408, 444, 477, 494, 495, 496, 497, 499.
- Forward
Host CdnHeader Resource Options Forward Host Header - Allow forwarding the Host header used in the request made to the CDN when the CDN requests content from the source. "hostheader" and "forwardhost*header" cannot be enabled simultaneously.
- Geo
Acl CdnResource Options Geo Acl - Shows the state of the Geolocation access policy option. The option controls access to content from the specified countries and their regions.
- Gzip
Compression CdnResource Options Gzip Compression - Allow compressing content with gzip on CDN. CDN servers will request only uncompressed content from the source. The option is not supported when "fetch*compressed" or "slice" are enabled.
- Host
Header CdnResource Options Host Header - Manage the custom Host header in the Host header option. When the CDN requests content from the source, it will use the specified Host header. "hostheader" and "forwardhost*header" cannot be enabled simultaneously.
- Http3Enabled
Cdn
Resource Options Http3Enabled - Enable the HTTP/3 protocol for content delivery when supported by the end user’s browser.
- Cdn
Resource Options Ignore Cookie - Specify how to cache files with different values of the Set-Cookie header: as one object (when the option is enabled) or as different objects (when the option is disabled).
- Ignore
Query CdnString Resource Options Ignore Query String - Specify how to cache files with different query strings: as one object (when the option is enabled) or as different objects (when the option is disabled). "ignorequerystring", "queryparamswhitelist", and "queryparamsblacklist" cannot be enabled simultaneously.
- Image
Stack CdnResource Options Image Stack - Allow transforming JPG and PNG images and converting them into WebP or AVIF format.
- Ip
Address CdnAcl Resource Options Ip Address Acl - Control access to content from the specified IP addresses.
- Limit
Bandwidth CdnResource Options Limit Bandwidth - Control the download speed per connection.
- Proxy
Cache CdnMethods Set Resource Options Proxy Cache Methods Set - Allow the caching for GET, HEAD, and POST requests.
- Query
Params CdnBlacklist Resource Options Query Params Blacklist - Manage the Ignore only setting of the Query string option. The setting allows CDN to ignore the specified params and cache them as one object. "ignorequerystring", "queryparamswhitelist", and "queryparamsblacklist" cannot be enabled simultaneously.
- Query
Params CdnWhitelist Resource Options Query Params Whitelist - Manage the Ignore all except setting of the Query string option. The setting allows CDN to ignore all but specified params and cache them as separate objects. "ignorequerystring", "queryparamswhitelist", and "queryparamsblacklist" cannot be enabled simultaneously.
- Redirect
Http CdnTo Https Resource Options Redirect Http To Https - Let CDN redirect HTTPS requests to HTTP. "redirecthttptohttps" and "redirecthttpstohttp" cannot be enabled simultaneously.
- Redirect
Https CdnTo Http Resource Options Redirect Https To Http - Let CDN redirect HTTP requests to HTTPS. "redirecthttptohttps" and "redirecthttpstohttp" cannot be enabled simultaneously.
- Referrer
Acl CdnResource Options Referrer Acl - Сontrol access to content from the specified domain names.
- Response
Headers CdnHiding Policy Resource Options Response Headers Hiding Policy - Specify the HTTP headers set on the source that CDN servers should hide from the response.
- Rewrite
Cdn
Resource Options Rewrite - Change and redirect the requests from the CDN to the source.
- Secure
Key CdnResource Options Secure Key - Configure access to content with tokenized URLs, generated with the MD5 algorithm.
- Slice
Cdn
Resource Options Slice - Speed up the delivery of large files and their caching. When enabled, the files are requested and cached in 10 MB chunks. The option reduces the time to first byte. The source must support the HTTP Range requests. The option is not supported when "fetchcompressed", "brotlicompression", or "gzip_compression" are enabled.
- Sni
Cdn
Resource Options Sni - Help the resource understand which certificate to use for the connection, if the source server presents multiple certificates. The option works only if the "origin_protocol" field is set to "HTTPS" or "MATCH".
- Stale
Cdn
Resource Options Stale - Let CDN serve stale cached content in case of the source unavailability.
- Static
Request CdnHeaders Resource Options Static Request Headers - Let CDN add custom HTTP request headers when making requests to the source. You can specify up to 50 custom HTTP request headers.
- Static
Response CdnHeaders Resource Options Static Response Headers - Let CDN add custom HTTP response headers to the responses for the end users. You can specify up to 50 custom HTTP response headers.
- Tls
Versions CdnResource Options Tls Versions - Specify a list of allowed SSL/TLS protocol versions. By default, all the protocol versions are allowed.
- Use
Default CdnLe Chain Resource Options Use Default Le Chain - Choose the Let's Encrypt certificate chain that will be used on the CDN resource. By default, the certificate is issued with the alternative chain.
- User
Agent CdnAcl Resource Options User Agent Acl - Control access to content for the specified user agents.
- Websockets
Cdn
Resource Options Websockets - Allow WebSockets connections to the source. The WebSockets option can only be enabled upon request. Please contact support for assistance with activation.
- allowed
Http CdnMethods Resource Options Allowed Http Methods - Set a list of allowed HTTP methods for the CDN content.
- brotli
Compression CdnResource Options Brotli Compression - Allow compressing content with Brotli on CDN. CDN servers will request only uncompressed content from the source. It is not supported unless the Origin shielding is enabled. Brotli compression is not supported when "fetch*compressed" or "slice" are enabled.
- browser
Cache CdnSettings Resource Options Browser Cache Settings - Set the cache lifetime for the end users’ browsers in seconds.
- cors
Cdn
Resource Options Cors - Add the Access-Control-Allow-Origin header to responses from the CDN servers.
- disable
Proxy CdnForce Ranges Resource Options Disable Proxy Force Ranges - Allow CDN to get the HTTP 206 status codes regardless of the settings on the source.
- edge
Cache CdnSettings Resource Options Edge Cache Settings - Set the cache expiration time for CDN servers. The "value" and "default" fields cannot be used simultaneously.
- fetch
Compressed CdnResource Options Fetch Compressed - Let CDN pull pre-compressed content from the source and cache it. Your source should support compression. The CDN servers won't ungzip your content even if a user's browser doesn't accept compression. The option is not supported when "brotli*compression" or "slice" are enabled.
- follow
Origin CdnRedirect Resource Options Follow Origin Redirect - If the source returns a redirect, let CDN pull the requested content from the source that was returned in the redirect.
- force
Return CdnResource Options Force Return - Apply custom HTTP status codes to CDN content. Some HTTP status codes are reserved by our system and cannot be used with this option: 408, 444, 477, 494, 495, 496, 497, 499.
- forward
Host CdnHeader Resource Options Forward Host Header - Allow forwarding the Host header used in the request made to the CDN when the CDN requests content from the source. "hostheader" and "forwardhost*header" cannot be enabled simultaneously.
- geo
Acl CdnResource Options Geo Acl - Shows the state of the Geolocation access policy option. The option controls access to content from the specified countries and their regions.
- gzip
Compression CdnResource Options Gzip Compression - Allow compressing content with gzip on CDN. CDN servers will request only uncompressed content from the source. The option is not supported when "fetch*compressed" or "slice" are enabled.
- host
Header CdnResource Options Host Header - Manage the custom Host header in the Host header option. When the CDN requests content from the source, it will use the specified Host header. "hostheader" and "forwardhost*header" cannot be enabled simultaneously.
- http3Enabled
Cdn
Resource Options Http3Enabled - Enable the HTTP/3 protocol for content delivery when supported by the end user’s browser.
- Cdn
Resource Options Ignore Cookie - Specify how to cache files with different values of the Set-Cookie header: as one object (when the option is enabled) or as different objects (when the option is disabled).
- ignore
Query CdnString Resource Options Ignore Query String - Specify how to cache files with different query strings: as one object (when the option is enabled) or as different objects (when the option is disabled). "ignorequerystring", "queryparamswhitelist", and "queryparamsblacklist" cannot be enabled simultaneously.
- image
Stack CdnResource Options Image Stack - Allow transforming JPG and PNG images and converting them into WebP or AVIF format.
- ip
Address CdnAcl Resource Options Ip Address Acl - Control access to content from the specified IP addresses.
- limit
Bandwidth CdnResource Options Limit Bandwidth - Control the download speed per connection.
- proxy
Cache CdnMethods Set Resource Options Proxy Cache Methods Set - Allow the caching for GET, HEAD, and POST requests.
- query
Params CdnBlacklist Resource Options Query Params Blacklist - Manage the Ignore only setting of the Query string option. The setting allows CDN to ignore the specified params and cache them as one object. "ignorequerystring", "queryparamswhitelist", and "queryparamsblacklist" cannot be enabled simultaneously.
- query
Params CdnWhitelist Resource Options Query Params Whitelist - Manage the Ignore all except setting of the Query string option. The setting allows CDN to ignore all but specified params and cache them as separate objects. "ignorequerystring", "queryparamswhitelist", and "queryparamsblacklist" cannot be enabled simultaneously.
- redirect
Http CdnTo Https Resource Options Redirect Http To Https - Let CDN redirect HTTPS requests to HTTP. "redirecthttptohttps" and "redirecthttpstohttp" cannot be enabled simultaneously.
- redirect
Https CdnTo Http Resource Options Redirect Https To Http - Let CDN redirect HTTP requests to HTTPS. "redirecthttptohttps" and "redirecthttpstohttp" cannot be enabled simultaneously.
- referrer
Acl CdnResource Options Referrer Acl - Сontrol access to content from the specified domain names.
- response
Headers CdnHiding Policy Resource Options Response Headers Hiding Policy - Specify the HTTP headers set on the source that CDN servers should hide from the response.
- rewrite
Cdn
Resource Options Rewrite - Change and redirect the requests from the CDN to the source.
- secure
Key CdnResource Options Secure Key - Configure access to content with tokenized URLs, generated with the MD5 algorithm.
- slice
Cdn
Resource Options Slice - Speed up the delivery of large files and their caching. When enabled, the files are requested and cached in 10 MB chunks. The option reduces the time to first byte. The source must support the HTTP Range requests. The option is not supported when "fetchcompressed", "brotlicompression", or "gzip_compression" are enabled.
- sni
Cdn
Resource Options Sni - Help the resource understand which certificate to use for the connection, if the source server presents multiple certificates. The option works only if the "origin_protocol" field is set to "HTTPS" or "MATCH".
- stale
Cdn
Resource Options Stale - Let CDN serve stale cached content in case of the source unavailability.
- static
Request CdnHeaders Resource Options Static Request Headers - Let CDN add custom HTTP request headers when making requests to the source. You can specify up to 50 custom HTTP request headers.
- static
Response CdnHeaders Resource Options Static Response Headers - Let CDN add custom HTTP response headers to the responses for the end users. You can specify up to 50 custom HTTP response headers.
- tls
Versions CdnResource Options Tls Versions - Specify a list of allowed SSL/TLS protocol versions. By default, all the protocol versions are allowed.
- use
Default CdnLe Chain Resource Options Use Default Le Chain - Choose the Let's Encrypt certificate chain that will be used on the CDN resource. By default, the certificate is issued with the alternative chain.
- user
Agent CdnAcl Resource Options User Agent Acl - Control access to content for the specified user agents.
- websockets
Cdn
Resource Options Websockets - Allow WebSockets connections to the source. The WebSockets option can only be enabled upon request. Please contact support for assistance with activation.
- allowed
Http CdnMethods Resource Options Allowed Http Methods - Set a list of allowed HTTP methods for the CDN content.
- brotli
Compression CdnResource Options Brotli Compression - Allow compressing content with Brotli on CDN. CDN servers will request only uncompressed content from the source. It is not supported unless the Origin shielding is enabled. Brotli compression is not supported when "fetch*compressed" or "slice" are enabled.
- browser
Cache CdnSettings Resource Options Browser Cache Settings - Set the cache lifetime for the end users’ browsers in seconds.
- cors
Cdn
Resource Options Cors - Add the Access-Control-Allow-Origin header to responses from the CDN servers.
- disable
Proxy CdnForce Ranges Resource Options Disable Proxy Force Ranges - Allow CDN to get the HTTP 206 status codes regardless of the settings on the source.
- edge
Cache CdnSettings Resource Options Edge Cache Settings - Set the cache expiration time for CDN servers. The "value" and "default" fields cannot be used simultaneously.
- fetch
Compressed CdnResource Options Fetch Compressed - Let CDN pull pre-compressed content from the source and cache it. Your source should support compression. The CDN servers won't ungzip your content even if a user's browser doesn't accept compression. The option is not supported when "brotli*compression" or "slice" are enabled.
- follow
Origin CdnRedirect Resource Options Follow Origin Redirect - If the source returns a redirect, let CDN pull the requested content from the source that was returned in the redirect.
- force
Return CdnResource Options Force Return - Apply custom HTTP status codes to CDN content. Some HTTP status codes are reserved by our system and cannot be used with this option: 408, 444, 477, 494, 495, 496, 497, 499.
- forward
Host CdnHeader Resource Options Forward Host Header - Allow forwarding the Host header used in the request made to the CDN when the CDN requests content from the source. "hostheader" and "forwardhost*header" cannot be enabled simultaneously.
- geo
Acl CdnResource Options Geo Acl - Shows the state of the Geolocation access policy option. The option controls access to content from the specified countries and their regions.
- gzip
Compression CdnResource Options Gzip Compression - Allow compressing content with gzip on CDN. CDN servers will request only uncompressed content from the source. The option is not supported when "fetch*compressed" or "slice" are enabled.
- host
Header CdnResource Options Host Header - Manage the custom Host header in the Host header option. When the CDN requests content from the source, it will use the specified Host header. "hostheader" and "forwardhost*header" cannot be enabled simultaneously.
- http3Enabled
Cdn
Resource Options Http3Enabled - Enable the HTTP/3 protocol for content delivery when supported by the end user’s browser.
- Cdn
Resource Options Ignore Cookie - Specify how to cache files with different values of the Set-Cookie header: as one object (when the option is enabled) or as different objects (when the option is disabled).
- ignore
Query CdnString Resource Options Ignore Query String - Specify how to cache files with different query strings: as one object (when the option is enabled) or as different objects (when the option is disabled). "ignorequerystring", "queryparamswhitelist", and "queryparamsblacklist" cannot be enabled simultaneously.
- image
Stack CdnResource Options Image Stack - Allow transforming JPG and PNG images and converting them into WebP or AVIF format.
- ip
Address CdnAcl Resource Options Ip Address Acl - Control access to content from the specified IP addresses.
- limit
Bandwidth CdnResource Options Limit Bandwidth - Control the download speed per connection.
- proxy
Cache CdnMethods Set Resource Options Proxy Cache Methods Set - Allow the caching for GET, HEAD, and POST requests.
- query
Params CdnBlacklist Resource Options Query Params Blacklist - Manage the Ignore only setting of the Query string option. The setting allows CDN to ignore the specified params and cache them as one object. "ignorequerystring", "queryparamswhitelist", and "queryparamsblacklist" cannot be enabled simultaneously.
- query
Params CdnWhitelist Resource Options Query Params Whitelist - Manage the Ignore all except setting of the Query string option. The setting allows CDN to ignore all but specified params and cache them as separate objects. "ignorequerystring", "queryparamswhitelist", and "queryparamsblacklist" cannot be enabled simultaneously.
- redirect
Http CdnTo Https Resource Options Redirect Http To Https - Let CDN redirect HTTPS requests to HTTP. "redirecthttptohttps" and "redirecthttpstohttp" cannot be enabled simultaneously.
- redirect
Https CdnTo Http Resource Options Redirect Https To Http - Let CDN redirect HTTP requests to HTTPS. "redirecthttptohttps" and "redirecthttpstohttp" cannot be enabled simultaneously.
- referrer
Acl CdnResource Options Referrer Acl - Сontrol access to content from the specified domain names.
- response
Headers CdnHiding Policy Resource Options Response Headers Hiding Policy - Specify the HTTP headers set on the source that CDN servers should hide from the response.
- rewrite
Cdn
Resource Options Rewrite - Change and redirect the requests from the CDN to the source.
- secure
Key CdnResource Options Secure Key - Configure access to content with tokenized URLs, generated with the MD5 algorithm.
- slice
Cdn
Resource Options Slice - Speed up the delivery of large files and their caching. When enabled, the files are requested and cached in 10 MB chunks. The option reduces the time to first byte. The source must support the HTTP Range requests. The option is not supported when "fetchcompressed", "brotlicompression", or "gzip_compression" are enabled.
- sni
Cdn
Resource Options Sni - Help the resource understand which certificate to use for the connection, if the source server presents multiple certificates. The option works only if the "origin_protocol" field is set to "HTTPS" or "MATCH".
- stale
Cdn
Resource Options Stale - Let CDN serve stale cached content in case of the source unavailability.
- static
Request CdnHeaders Resource Options Static Request Headers - Let CDN add custom HTTP request headers when making requests to the source. You can specify up to 50 custom HTTP request headers.
- static
Response CdnHeaders Resource Options Static Response Headers - Let CDN add custom HTTP response headers to the responses for the end users. You can specify up to 50 custom HTTP response headers.
- tls
Versions CdnResource Options Tls Versions - Specify a list of allowed SSL/TLS protocol versions. By default, all the protocol versions are allowed.
- use
Default CdnLe Chain Resource Options Use Default Le Chain - Choose the Let's Encrypt certificate chain that will be used on the CDN resource. By default, the certificate is issued with the alternative chain.
- user
Agent CdnAcl Resource Options User Agent Acl - Control access to content for the specified user agents.
- websockets
Cdn
Resource Options Websockets - Allow WebSockets connections to the source. The WebSockets option can only be enabled upon request. Please contact support for assistance with activation.
- allowed_
http_ Cdnmethods Resource Options Allowed Http Methods - Set a list of allowed HTTP methods for the CDN content.
- brotli_
compression CdnResource Options Brotli Compression - Allow compressing content with Brotli on CDN. CDN servers will request only uncompressed content from the source. It is not supported unless the Origin shielding is enabled. Brotli compression is not supported when "fetch*compressed" or "slice" are enabled.
- browser_
cache_ Cdnsettings Resource Options Browser Cache Settings - Set the cache lifetime for the end users’ browsers in seconds.
- cors
Cdn
Resource Options Cors - Add the Access-Control-Allow-Origin header to responses from the CDN servers.
- disable_
proxy_ Cdnforce_ ranges Resource Options Disable Proxy Force Ranges - Allow CDN to get the HTTP 206 status codes regardless of the settings on the source.
- edge_
cache_ Cdnsettings Resource Options Edge Cache Settings - Set the cache expiration time for CDN servers. The "value" and "default" fields cannot be used simultaneously.
- fetch_
compressed CdnResource Options Fetch Compressed - Let CDN pull pre-compressed content from the source and cache it. Your source should support compression. The CDN servers won't ungzip your content even if a user's browser doesn't accept compression. The option is not supported when "brotli*compression" or "slice" are enabled.
- follow_
origin_ Cdnredirect Resource Options Follow Origin Redirect - If the source returns a redirect, let CDN pull the requested content from the source that was returned in the redirect.
- force_
return CdnResource Options Force Return - Apply custom HTTP status codes to CDN content. Some HTTP status codes are reserved by our system and cannot be used with this option: 408, 444, 477, 494, 495, 496, 497, 499.
- forward_
host_ Cdnheader Resource Options Forward Host Header - Allow forwarding the Host header used in the request made to the CDN when the CDN requests content from the source. "hostheader" and "forwardhost*header" cannot be enabled simultaneously.
- geo_
acl CdnResource Options Geo Acl - Shows the state of the Geolocation access policy option. The option controls access to content from the specified countries and their regions.
- gzip_
compression CdnResource Options Gzip Compression - Allow compressing content with gzip on CDN. CDN servers will request only uncompressed content from the source. The option is not supported when "fetch*compressed" or "slice" are enabled.
- host_
header CdnResource Options Host Header - Manage the custom Host header in the Host header option. When the CDN requests content from the source, it will use the specified Host header. "hostheader" and "forwardhost*header" cannot be enabled simultaneously.
- http3_
enabled CdnResource Options Http3Enabled - Enable the HTTP/3 protocol for content delivery when supported by the end user’s browser.
- Cdn
Resource Options Ignore Cookie - Specify how to cache files with different values of the Set-Cookie header: as one object (when the option is enabled) or as different objects (when the option is disabled).
- ignore_
query_ Cdnstring Resource Options Ignore Query String - Specify how to cache files with different query strings: as one object (when the option is enabled) or as different objects (when the option is disabled). "ignorequerystring", "queryparamswhitelist", and "queryparamsblacklist" cannot be enabled simultaneously.
- image_
stack CdnResource Options Image Stack - Allow transforming JPG and PNG images and converting them into WebP or AVIF format.
- ip_
address_ Cdnacl Resource Options Ip Address Acl - Control access to content from the specified IP addresses.
- limit_
bandwidth CdnResource Options Limit Bandwidth - Control the download speed per connection.
- proxy_
cache_ Cdnmethods_ set Resource Options Proxy Cache Methods Set - Allow the caching for GET, HEAD, and POST requests.
- query_
params_ Cdnblacklist Resource Options Query Params Blacklist - Manage the Ignore only setting of the Query string option. The setting allows CDN to ignore the specified params and cache them as one object. "ignorequerystring", "queryparamswhitelist", and "queryparamsblacklist" cannot be enabled simultaneously.
- query_
params_ Cdnwhitelist Resource Options Query Params Whitelist - Manage the Ignore all except setting of the Query string option. The setting allows CDN to ignore all but specified params and cache them as separate objects. "ignorequerystring", "queryparamswhitelist", and "queryparamsblacklist" cannot be enabled simultaneously.
- redirect_
http_ Cdnto_ https Resource Options Redirect Http To Https - Let CDN redirect HTTPS requests to HTTP. "redirecthttptohttps" and "redirecthttpstohttp" cannot be enabled simultaneously.
- redirect_
https_ Cdnto_ http Resource Options Redirect Https To Http - Let CDN redirect HTTP requests to HTTPS. "redirecthttptohttps" and "redirecthttpstohttp" cannot be enabled simultaneously.
- referrer_
acl CdnResource Options Referrer Acl - Сontrol access to content from the specified domain names.
- response_
headers_ Cdnhiding_ policy Resource Options Response Headers Hiding Policy - Specify the HTTP headers set on the source that CDN servers should hide from the response.
- rewrite
Cdn
Resource Options Rewrite - Change and redirect the requests from the CDN to the source.
- secure_
key CdnResource Options Secure Key - Configure access to content with tokenized URLs, generated with the MD5 algorithm.
- slice
Cdn
Resource Options Slice - Speed up the delivery of large files and their caching. When enabled, the files are requested and cached in 10 MB chunks. The option reduces the time to first byte. The source must support the HTTP Range requests. The option is not supported when "fetchcompressed", "brotlicompression", or "gzip_compression" are enabled.
- sni
Cdn
Resource Options Sni - Help the resource understand which certificate to use for the connection, if the source server presents multiple certificates. The option works only if the "origin_protocol" field is set to "HTTPS" or "MATCH".
- stale
Cdn
Resource Options Stale - Let CDN serve stale cached content in case of the source unavailability.
- static_
request_ Cdnheaders Resource Options Static Request Headers - Let CDN add custom HTTP request headers when making requests to the source. You can specify up to 50 custom HTTP request headers.
- static_
response_ Cdnheaders Resource Options Static Response Headers - Let CDN add custom HTTP response headers to the responses for the end users. You can specify up to 50 custom HTTP response headers.
- tls_
versions CdnResource Options Tls Versions - Specify a list of allowed SSL/TLS protocol versions. By default, all the protocol versions are allowed.
- use_
default_ Cdnle_ chain Resource Options Use Default Le Chain - Choose the Let's Encrypt certificate chain that will be used on the CDN resource. By default, the certificate is issued with the alternative chain.
- user_
agent_ Cdnacl Resource Options User Agent Acl - Control access to content for the specified user agents.
- websockets
Cdn
Resource Options Websockets - Allow WebSockets connections to the source. The WebSockets option can only be enabled upon request. Please contact support for assistance with activation.
- allowed
Http Property MapMethods - Set a list of allowed HTTP methods for the CDN content.
- brotli
Compression Property Map - Allow compressing content with Brotli on CDN. CDN servers will request only uncompressed content from the source. It is not supported unless the Origin shielding is enabled. Brotli compression is not supported when "fetch*compressed" or "slice" are enabled.
- browser
Cache Property MapSettings - Set the cache lifetime for the end users’ browsers in seconds.
- cors Property Map
- Add the Access-Control-Allow-Origin header to responses from the CDN servers.
- disable
Proxy Property MapForce Ranges - Allow CDN to get the HTTP 206 status codes regardless of the settings on the source.
- edge
Cache Property MapSettings - Set the cache expiration time for CDN servers. The "value" and "default" fields cannot be used simultaneously.
- fetch
Compressed Property Map - Let CDN pull pre-compressed content from the source and cache it. Your source should support compression. The CDN servers won't ungzip your content even if a user's browser doesn't accept compression. The option is not supported when "brotli*compression" or "slice" are enabled.
- follow
Origin Property MapRedirect - If the source returns a redirect, let CDN pull the requested content from the source that was returned in the redirect.
- force
Return Property Map - Apply custom HTTP status codes to CDN content. Some HTTP status codes are reserved by our system and cannot be used with this option: 408, 444, 477, 494, 495, 496, 497, 499.
- forward
Host Property MapHeader - Allow forwarding the Host header used in the request made to the CDN when the CDN requests content from the source. "hostheader" and "forwardhost*header" cannot be enabled simultaneously.
- geo
Acl Property Map - Shows the state of the Geolocation access policy option. The option controls access to content from the specified countries and their regions.
- gzip
Compression Property Map - Allow compressing content with gzip on CDN. CDN servers will request only uncompressed content from the source. The option is not supported when "fetch*compressed" or "slice" are enabled.
- host
Header Property Map - Manage the custom Host header in the Host header option. When the CDN requests content from the source, it will use the specified Host header. "hostheader" and "forwardhost*header" cannot be enabled simultaneously.
- http3Enabled Property Map
- Enable the HTTP/3 protocol for content delivery when supported by the end user’s browser.
- Property Map
- Specify how to cache files with different values of the Set-Cookie header: as one object (when the option is enabled) or as different objects (when the option is disabled).
- ignore
Query Property MapString - Specify how to cache files with different query strings: as one object (when the option is enabled) or as different objects (when the option is disabled). "ignorequerystring", "queryparamswhitelist", and "queryparamsblacklist" cannot be enabled simultaneously.
- image
Stack Property Map - Allow transforming JPG and PNG images and converting them into WebP or AVIF format.
- ip
Address Property MapAcl - Control access to content from the specified IP addresses.
- limit
Bandwidth Property Map - Control the download speed per connection.
- proxy
Cache Property MapMethods Set - Allow the caching for GET, HEAD, and POST requests.
- query
Params Property MapBlacklist - Manage the Ignore only setting of the Query string option. The setting allows CDN to ignore the specified params and cache them as one object. "ignorequerystring", "queryparamswhitelist", and "queryparamsblacklist" cannot be enabled simultaneously.
- query
Params Property MapWhitelist - Manage the Ignore all except setting of the Query string option. The setting allows CDN to ignore all but specified params and cache them as separate objects. "ignorequerystring", "queryparamswhitelist", and "queryparamsblacklist" cannot be enabled simultaneously.
- redirect
Http Property MapTo Https - Let CDN redirect HTTPS requests to HTTP. "redirecthttptohttps" and "redirecthttpstohttp" cannot be enabled simultaneously.
- redirect
Https Property MapTo Http - Let CDN redirect HTTP requests to HTTPS. "redirecthttptohttps" and "redirecthttpstohttp" cannot be enabled simultaneously.
- referrer
Acl Property Map - Сontrol access to content from the specified domain names.
- response
Headers Property MapHiding Policy - Specify the HTTP headers set on the source that CDN servers should hide from the response.
- rewrite Property Map
- Change and redirect the requests from the CDN to the source.
- secure
Key Property Map - Configure access to content with tokenized URLs, generated with the MD5 algorithm.
- slice Property Map
- Speed up the delivery of large files and their caching. When enabled, the files are requested and cached in 10 MB chunks. The option reduces the time to first byte. The source must support the HTTP Range requests. The option is not supported when "fetchcompressed", "brotlicompression", or "gzip_compression" are enabled.
- sni Property Map
- Help the resource understand which certificate to use for the connection, if the source server presents multiple certificates. The option works only if the "origin_protocol" field is set to "HTTPS" or "MATCH".
- stale Property Map
- Let CDN serve stale cached content in case of the source unavailability.
- static
Request Property MapHeaders - Let CDN add custom HTTP request headers when making requests to the source. You can specify up to 50 custom HTTP request headers.
- static
Response Property MapHeaders - Let CDN add custom HTTP response headers to the responses for the end users. You can specify up to 50 custom HTTP response headers.
- tls
Versions Property Map - Specify a list of allowed SSL/TLS protocol versions. By default, all the protocol versions are allowed.
- use
Default Property MapLe Chain - Choose the Let's Encrypt certificate chain that will be used on the CDN resource. By default, the certificate is issued with the alternative chain.
- user
Agent Property MapAcl - Control access to content for the specified user agents.
- websockets Property Map
- Allow WebSockets connections to the source. The WebSockets option can only be enabled upon request. Please contact support for assistance with activation.
CdnResourceOptionsAllowedHttpMethods, CdnResourceOptionsAllowedHttpMethodsArgs
CdnResourceOptionsBrotliCompression, CdnResourceOptionsBrotliCompressionArgs
- Values List<string>
- Allowed values are "application/javascript", "application/json", "application/vnd.ms-fontobject", "application/x-font-ttf", "application/x-javascript", "application/xml", "application/xml+rss", "image/svg+xml", "image/x-icon", "text/css", "text/html", "text/javascript", "text/plain", "text/xml".
- Enabled bool
- Enable or disable the option. Allowed values are "true" or "false".
- Values []string
- Allowed values are "application/javascript", "application/json", "application/vnd.ms-fontobject", "application/x-font-ttf", "application/x-javascript", "application/xml", "application/xml+rss", "image/svg+xml", "image/x-icon", "text/css", "text/html", "text/javascript", "text/plain", "text/xml".
- Enabled bool
- Enable or disable the option. Allowed values are "true" or "false".
- values List<String>
- Allowed values are "application/javascript", "application/json", "application/vnd.ms-fontobject", "application/x-font-ttf", "application/x-javascript", "application/xml", "application/xml+rss", "image/svg+xml", "image/x-icon", "text/css", "text/html", "text/javascript", "text/plain", "text/xml".
- enabled Boolean
- Enable or disable the option. Allowed values are "true" or "false".
- values string[]
- Allowed values are "application/javascript", "application/json", "application/vnd.ms-fontobject", "application/x-font-ttf", "application/x-javascript", "application/xml", "application/xml+rss", "image/svg+xml", "image/x-icon", "text/css", "text/html", "text/javascript", "text/plain", "text/xml".
- enabled boolean
- Enable or disable the option. Allowed values are "true" or "false".
- values Sequence[str]
- Allowed values are "application/javascript", "application/json", "application/vnd.ms-fontobject", "application/x-font-ttf", "application/x-javascript", "application/xml", "application/xml+rss", "image/svg+xml", "image/x-icon", "text/css", "text/html", "text/javascript", "text/plain", "text/xml".
- enabled bool
- Enable or disable the option. Allowed values are "true" or "false".
- values List<String>
- Allowed values are "application/javascript", "application/json", "application/vnd.ms-fontobject", "application/x-font-ttf", "application/x-javascript", "application/xml", "application/xml+rss", "image/svg+xml", "image/x-icon", "text/css", "text/html", "text/javascript", "text/plain", "text/xml".
- enabled Boolean
- Enable or disable the option. Allowed values are "true" or "false".
CdnResourceOptionsBrowserCacheSettings, CdnResourceOptionsBrowserCacheSettingsArgs
- Enabled bool
- Enable or disable the option. Allowed values are "true" or "false".
- Value string
- Set the cache lifetime if the CDN controlled option is chosen. If the value is empty, the Origin controlled option will be enabled and the cache lifetime will be inherited from the source. Set to "0s" to disable browser caching. The value only applies for the HTTP 200, 201, 204, 206, 301, 302, 303, 304, 307, 308 response status codes. Responses with other HTTP status codes will not be cached.
- Enabled bool
- Enable or disable the option. Allowed values are "true" or "false".
- Value string
- Set the cache lifetime if the CDN controlled option is chosen. If the value is empty, the Origin controlled option will be enabled and the cache lifetime will be inherited from the source. Set to "0s" to disable browser caching. The value only applies for the HTTP 200, 201, 204, 206, 301, 302, 303, 304, 307, 308 response status codes. Responses with other HTTP status codes will not be cached.
- enabled Boolean
- Enable or disable the option. Allowed values are "true" or "false".
- value String
- Set the cache lifetime if the CDN controlled option is chosen. If the value is empty, the Origin controlled option will be enabled and the cache lifetime will be inherited from the source. Set to "0s" to disable browser caching. The value only applies for the HTTP 200, 201, 204, 206, 301, 302, 303, 304, 307, 308 response status codes. Responses with other HTTP status codes will not be cached.
- enabled boolean
- Enable or disable the option. Allowed values are "true" or "false".
- value string
- Set the cache lifetime if the CDN controlled option is chosen. If the value is empty, the Origin controlled option will be enabled and the cache lifetime will be inherited from the source. Set to "0s" to disable browser caching. The value only applies for the HTTP 200, 201, 204, 206, 301, 302, 303, 304, 307, 308 response status codes. Responses with other HTTP status codes will not be cached.
- enabled bool
- Enable or disable the option. Allowed values are "true" or "false".
- value str
- Set the cache lifetime if the CDN controlled option is chosen. If the value is empty, the Origin controlled option will be enabled and the cache lifetime will be inherited from the source. Set to "0s" to disable browser caching. The value only applies for the HTTP 200, 201, 204, 206, 301, 302, 303, 304, 307, 308 response status codes. Responses with other HTTP status codes will not be cached.
- enabled Boolean
- Enable or disable the option. Allowed values are "true" or "false".
- value String
- Set the cache lifetime if the CDN controlled option is chosen. If the value is empty, the Origin controlled option will be enabled and the cache lifetime will be inherited from the source. Set to "0s" to disable browser caching. The value only applies for the HTTP 200, 201, 204, 206, 301, 302, 303, 304, 307, 308 response status codes. Responses with other HTTP status codes will not be cached.
CdnResourceOptionsCors, CdnResourceOptionsCorsArgs
- Values List<string>
- Add the value of the Access-Control-Allow-Origin header. Allowed values are "*", "domain.com" or other domain name, or "$http_origin".
- Always bool
- Add the Access-Control-Allow-Origin header to the response regardless of the HTTP response status code. Allowed values are "true" or "false". If set to "false", the header is only added to the responses with HTTP 200, 201, 204, 206, 301, 302, 303, 304, 307, or 308 response status codes.
- Enabled bool
- Enable or disable the option. Allowed values are "true" or "false".
- Values []string
- Add the value of the Access-Control-Allow-Origin header. Allowed values are "*", "domain.com" or other domain name, or "$http_origin".
- Always bool
- Add the Access-Control-Allow-Origin header to the response regardless of the HTTP response status code. Allowed values are "true" or "false". If set to "false", the header is only added to the responses with HTTP 200, 201, 204, 206, 301, 302, 303, 304, 307, or 308 response status codes.
- Enabled bool
- Enable or disable the option. Allowed values are "true" or "false".
- values List<String>
- Add the value of the Access-Control-Allow-Origin header. Allowed values are "*", "domain.com" or other domain name, or "$http_origin".
- always Boolean
- Add the Access-Control-Allow-Origin header to the response regardless of the HTTP response status code. Allowed values are "true" or "false". If set to "false", the header is only added to the responses with HTTP 200, 201, 204, 206, 301, 302, 303, 304, 307, or 308 response status codes.
- enabled Boolean
- Enable or disable the option. Allowed values are "true" or "false".
- values string[]
- Add the value of the Access-Control-Allow-Origin header. Allowed values are "*", "domain.com" or other domain name, or "$http_origin".
- always boolean
- Add the Access-Control-Allow-Origin header to the response regardless of the HTTP response status code. Allowed values are "true" or "false". If set to "false", the header is only added to the responses with HTTP 200, 201, 204, 206, 301, 302, 303, 304, 307, or 308 response status codes.
- enabled boolean
- Enable or disable the option. Allowed values are "true" or "false".
- values Sequence[str]
- Add the value of the Access-Control-Allow-Origin header. Allowed values are "*", "domain.com" or other domain name, or "$http_origin".
- always bool
- Add the Access-Control-Allow-Origin header to the response regardless of the HTTP response status code. Allowed values are "true" or "false". If set to "false", the header is only added to the responses with HTTP 200, 201, 204, 206, 301, 302, 303, 304, 307, or 308 response status codes.
- enabled bool
- Enable or disable the option. Allowed values are "true" or "false".
- values List<String>
- Add the value of the Access-Control-Allow-Origin header. Allowed values are "*", "domain.com" or other domain name, or "$http_origin".
- always Boolean
- Add the Access-Control-Allow-Origin header to the response regardless of the HTTP response status code. Allowed values are "true" or "false". If set to "false", the header is only added to the responses with HTTP 200, 201, 204, 206, 301, 302, 303, 304, 307, or 308 response status codes.
- enabled Boolean
- Enable or disable the option. Allowed values are "true" or "false".
CdnResourceOptionsDisableProxyForceRanges, CdnResourceOptionsDisableProxyForceRangesArgs
CdnResourceOptionsEdgeCacheSettings, CdnResourceOptionsEdgeCacheSettingsArgs
- Custom
Values Dictionary<string, string> - Set the caching time in seconds for certain HTTP status codes. Use "any" to specify the caching time for all HTTP response status codes. Use "0s" to disable caching.
- Default string
- Set the caching time in seconds. Use the field if you want your source to control the caching time of the HTTP 200, 201, 204, 206, 301, 302, 303, 304, 307, 308 response status codes, and if a source server does not have any caching HTTP headers. Responses with other HTTP status codes will not be cached
- Enabled bool
- Enable or disable the option. Allowed values are "true" or "false".
- Value string
- Set the caching time in seconds. Use the field if you want CDN to control the caching time of the HTTP 200, 206, 301, and 302 response status codes. Responses with HTTP 4xx, 5xx status codes will not be cached. Use the "custom_values" field to specify the custom caching time for responses with specific HTTP status codes.
- Custom
Values map[string]string - Set the caching time in seconds for certain HTTP status codes. Use "any" to specify the caching time for all HTTP response status codes. Use "0s" to disable caching.
- Default string
- Set the caching time in seconds. Use the field if you want your source to control the caching time of the HTTP 200, 201, 204, 206, 301, 302, 303, 304, 307, 308 response status codes, and if a source server does not have any caching HTTP headers. Responses with other HTTP status codes will not be cached
- Enabled bool
- Enable or disable the option. Allowed values are "true" or "false".
- Value string
- Set the caching time in seconds. Use the field if you want CDN to control the caching time of the HTTP 200, 206, 301, and 302 response status codes. Responses with HTTP 4xx, 5xx status codes will not be cached. Use the "custom_values" field to specify the custom caching time for responses with specific HTTP status codes.
- custom
Values Map<String,String> - Set the caching time in seconds for certain HTTP status codes. Use "any" to specify the caching time for all HTTP response status codes. Use "0s" to disable caching.
- default_ String
- Set the caching time in seconds. Use the field if you want your source to control the caching time of the HTTP 200, 201, 204, 206, 301, 302, 303, 304, 307, 308 response status codes, and if a source server does not have any caching HTTP headers. Responses with other HTTP status codes will not be cached
- enabled Boolean
- Enable or disable the option. Allowed values are "true" or "false".
- value String
- Set the caching time in seconds. Use the field if you want CDN to control the caching time of the HTTP 200, 206, 301, and 302 response status codes. Responses with HTTP 4xx, 5xx status codes will not be cached. Use the "custom_values" field to specify the custom caching time for responses with specific HTTP status codes.
- custom
Values {[key: string]: string} - Set the caching time in seconds for certain HTTP status codes. Use "any" to specify the caching time for all HTTP response status codes. Use "0s" to disable caching.
- default string
- Set the caching time in seconds. Use the field if you want your source to control the caching time of the HTTP 200, 201, 204, 206, 301, 302, 303, 304, 307, 308 response status codes, and if a source server does not have any caching HTTP headers. Responses with other HTTP status codes will not be cached
- enabled boolean
- Enable or disable the option. Allowed values are "true" or "false".
- value string
- Set the caching time in seconds. Use the field if you want CDN to control the caching time of the HTTP 200, 206, 301, and 302 response status codes. Responses with HTTP 4xx, 5xx status codes will not be cached. Use the "custom_values" field to specify the custom caching time for responses with specific HTTP status codes.
- custom_
values Mapping[str, str] - Set the caching time in seconds for certain HTTP status codes. Use "any" to specify the caching time for all HTTP response status codes. Use "0s" to disable caching.
- default str
- Set the caching time in seconds. Use the field if you want your source to control the caching time of the HTTP 200, 201, 204, 206, 301, 302, 303, 304, 307, 308 response status codes, and if a source server does not have any caching HTTP headers. Responses with other HTTP status codes will not be cached
- enabled bool
- Enable or disable the option. Allowed values are "true" or "false".
- value str
- Set the caching time in seconds. Use the field if you want CDN to control the caching time of the HTTP 200, 206, 301, and 302 response status codes. Responses with HTTP 4xx, 5xx status codes will not be cached. Use the "custom_values" field to specify the custom caching time for responses with specific HTTP status codes.
- custom
Values Map<String> - Set the caching time in seconds for certain HTTP status codes. Use "any" to specify the caching time for all HTTP response status codes. Use "0s" to disable caching.
- default String
- Set the caching time in seconds. Use the field if you want your source to control the caching time of the HTTP 200, 201, 204, 206, 301, 302, 303, 304, 307, 308 response status codes, and if a source server does not have any caching HTTP headers. Responses with other HTTP status codes will not be cached
- enabled Boolean
- Enable or disable the option. Allowed values are "true" or "false".
- value String
- Set the caching time in seconds. Use the field if you want CDN to control the caching time of the HTTP 200, 206, 301, and 302 response status codes. Responses with HTTP 4xx, 5xx status codes will not be cached. Use the "custom_values" field to specify the custom caching time for responses with specific HTTP status codes.
CdnResourceOptionsFetchCompressed, CdnResourceOptionsFetchCompressedArgs
CdnResourceOptionsFollowOriginRedirect, CdnResourceOptionsFollowOriginRedirectArgs
- Codes List<double>
- Add the redirect HTTP status codes returned by the source. Allowed values are "301", "302", "303", "307", "308".
- Enabled bool
- Enable or disable the option. Allowed values are "true" or "false".
- Use
Host bool - Use the redirect target domain as a Host header, or leave it the same as the value of the Change Host header option. Allowed values are "true" or "false".
- Codes []float64
- Add the redirect HTTP status codes returned by the source. Allowed values are "301", "302", "303", "307", "308".
- Enabled bool
- Enable or disable the option. Allowed values are "true" or "false".
- Use
Host bool - Use the redirect target domain as a Host header, or leave it the same as the value of the Change Host header option. Allowed values are "true" or "false".
- codes List<Double>
- Add the redirect HTTP status codes returned by the source. Allowed values are "301", "302", "303", "307", "308".
- enabled Boolean
- Enable or disable the option. Allowed values are "true" or "false".
- use
Host Boolean - Use the redirect target domain as a Host header, or leave it the same as the value of the Change Host header option. Allowed values are "true" or "false".
- codes number[]
- Add the redirect HTTP status codes returned by the source. Allowed values are "301", "302", "303", "307", "308".
- enabled boolean
- Enable or disable the option. Allowed values are "true" or "false".
- use
Host boolean - Use the redirect target domain as a Host header, or leave it the same as the value of the Change Host header option. Allowed values are "true" or "false".
- codes Sequence[float]
- Add the redirect HTTP status codes returned by the source. Allowed values are "301", "302", "303", "307", "308".
- enabled bool
- Enable or disable the option. Allowed values are "true" or "false".
- use_
host bool - Use the redirect target domain as a Host header, or leave it the same as the value of the Change Host header option. Allowed values are "true" or "false".
- codes List<Number>
- Add the redirect HTTP status codes returned by the source. Allowed values are "301", "302", "303", "307", "308".
- enabled Boolean
- Enable or disable the option. Allowed values are "true" or "false".
- use
Host Boolean - Use the redirect target domain as a Host header, or leave it the same as the value of the Change Host header option. Allowed values are "true" or "false".
CdnResourceOptionsForceReturn, CdnResourceOptionsForceReturnArgs
CdnResourceOptionsForwardHostHeader, CdnResourceOptionsForwardHostHeaderArgs
CdnResourceOptionsGeoAcl, CdnResourceOptionsGeoAclArgs
- Excepted
Values List<CdnResource Options Geo Acl Excepted Value> - Shows the list of countries and their regions
- Enabled bool
- Enable or disable the option. Allowed values are "true" or "false".
- Policy
Type string - Shows the chosen policy type. Has either "allow" or "deny" value.
- Excepted
Values []CdnResource Options Geo Acl Excepted Value - Shows the list of countries and their regions
- Enabled bool
- Enable or disable the option. Allowed values are "true" or "false".
- Policy
Type string - Shows the chosen policy type. Has either "allow" or "deny" value.
- excepted
Values List<CdnResource Options Geo Acl Excepted Value> - Shows the list of countries and their regions
- enabled Boolean
- Enable or disable the option. Allowed values are "true" or "false".
- policy
Type String - Shows the chosen policy type. Has either "allow" or "deny" value.
- excepted
Values CdnResource Options Geo Acl Excepted Value[] - Shows the list of countries and their regions
- enabled boolean
- Enable or disable the option. Allowed values are "true" or "false".
- policy
Type string - Shows the chosen policy type. Has either "allow" or "deny" value.
- excepted_
values Sequence[CdnResource Options Geo Acl Excepted Value] - Shows the list of countries and their regions
- enabled bool
- Enable or disable the option. Allowed values are "true" or "false".
- policy_
type str - Shows the chosen policy type. Has either "allow" or "deny" value.
- excepted
Values List<Property Map> - Shows the list of countries and their regions
- enabled Boolean
- Enable or disable the option. Allowed values are "true" or "false".
- policy
Type String - Shows the chosen policy type. Has either "allow" or "deny" value.
CdnResourceOptionsGeoAclExceptedValue, CdnResourceOptionsGeoAclExceptedValueArgs
CdnResourceOptionsGzipCompression, CdnResourceOptionsGzipCompressionArgs
- Values List<string>
- Allowed values are "application/dash+xml", "application/javascript", "application/javascript", "application/vnd.apple.mpegurl", "application/vnd.ms-fontobject", "application/wasm", "application/x-font-opentype", "application/x-font-ttf", "application/x-javascript", "application/x-mpegURL", "application/x-subrip", "application/xml", "application/xml+rss", "font/woff", "font/woff2", "image/svg+xml", "text/css", "text/html", "text/javascript", "text/plain", "text/vtt", "text/xml".
- Enabled bool
- Enable or disable the option. Allowed values are "true" or "false".
- Values []string
- Allowed values are "application/dash+xml", "application/javascript", "application/javascript", "application/vnd.apple.mpegurl", "application/vnd.ms-fontobject", "application/wasm", "application/x-font-opentype", "application/x-font-ttf", "application/x-javascript", "application/x-mpegURL", "application/x-subrip", "application/xml", "application/xml+rss", "font/woff", "font/woff2", "image/svg+xml", "text/css", "text/html", "text/javascript", "text/plain", "text/vtt", "text/xml".
- Enabled bool
- Enable or disable the option. Allowed values are "true" or "false".
- values List<String>
- Allowed values are "application/dash+xml", "application/javascript", "application/javascript", "application/vnd.apple.mpegurl", "application/vnd.ms-fontobject", "application/wasm", "application/x-font-opentype", "application/x-font-ttf", "application/x-javascript", "application/x-mpegURL", "application/x-subrip", "application/xml", "application/xml+rss", "font/woff", "font/woff2", "image/svg+xml", "text/css", "text/html", "text/javascript", "text/plain", "text/vtt", "text/xml".
- enabled Boolean
- Enable or disable the option. Allowed values are "true" or "false".
- values string[]
- Allowed values are "application/dash+xml", "application/javascript", "application/javascript", "application/vnd.apple.mpegurl", "application/vnd.ms-fontobject", "application/wasm", "application/x-font-opentype", "application/x-font-ttf", "application/x-javascript", "application/x-mpegURL", "application/x-subrip", "application/xml", "application/xml+rss", "font/woff", "font/woff2", "image/svg+xml", "text/css", "text/html", "text/javascript", "text/plain", "text/vtt", "text/xml".
- enabled boolean
- Enable or disable the option. Allowed values are "true" or "false".
- values Sequence[str]
- Allowed values are "application/dash+xml", "application/javascript", "application/javascript", "application/vnd.apple.mpegurl", "application/vnd.ms-fontobject", "application/wasm", "application/x-font-opentype", "application/x-font-ttf", "application/x-javascript", "application/x-mpegURL", "application/x-subrip", "application/xml", "application/xml+rss", "font/woff", "font/woff2", "image/svg+xml", "text/css", "text/html", "text/javascript", "text/plain", "text/vtt", "text/xml".
- enabled bool
- Enable or disable the option. Allowed values are "true" or "false".
- values List<String>
- Allowed values are "application/dash+xml", "application/javascript", "application/javascript", "application/vnd.apple.mpegurl", "application/vnd.ms-fontobject", "application/wasm", "application/x-font-opentype", "application/x-font-ttf", "application/x-javascript", "application/x-mpegURL", "application/x-subrip", "application/xml", "application/xml+rss", "font/woff", "font/woff2", "image/svg+xml", "text/css", "text/html", "text/javascript", "text/plain", "text/vtt", "text/xml".
- enabled Boolean
- Enable or disable the option. Allowed values are "true" or "false".
CdnResourceOptionsHostHeader, CdnResourceOptionsHostHeaderArgs
CdnResourceOptionsHttp3Enabled, CdnResourceOptionsHttp3EnabledArgs
CdnResourceOptionsIgnoreCookie, CdnResourceOptionsIgnoreCookieArgs
CdnResourceOptionsIgnoreQueryString, CdnResourceOptionsIgnoreQueryStringArgs
CdnResourceOptionsImageStack, CdnResourceOptionsImageStackArgs
- Quality double
- Set the quality of the JPG and PNG images after conversion. The higher the value, the better the image quality and the larger the file size after conversion.
- Avif
Enabled bool - Allow to convert the JPG and PNG images into AVIF format when supported by the end user's browser. Allowed values are "true" or "false".
- Enabled bool
- Enable or disable the option. Allowed values are "true" or "false".
- Png
Lossless bool - Specify if the PNG images should be compressed without the quality loss.
- Webp
Enabled bool - Allow to convert the JPG and PNG images into WebP format when supported by the end user's browser. Allowed values are "true" or "false".
- Quality float64
- Set the quality of the JPG and PNG images after conversion. The higher the value, the better the image quality and the larger the file size after conversion.
- Avif
Enabled bool - Allow to convert the JPG and PNG images into AVIF format when supported by the end user's browser. Allowed values are "true" or "false".
- Enabled bool
- Enable or disable the option. Allowed values are "true" or "false".
- Png
Lossless bool - Specify if the PNG images should be compressed without the quality loss.
- Webp
Enabled bool - Allow to convert the JPG and PNG images into WebP format when supported by the end user's browser. Allowed values are "true" or "false".
- quality Double
- Set the quality of the JPG and PNG images after conversion. The higher the value, the better the image quality and the larger the file size after conversion.
- avif
Enabled Boolean - Allow to convert the JPG and PNG images into AVIF format when supported by the end user's browser. Allowed values are "true" or "false".
- enabled Boolean
- Enable or disable the option. Allowed values are "true" or "false".
- png
Lossless Boolean - Specify if the PNG images should be compressed without the quality loss.
- webp
Enabled Boolean - Allow to convert the JPG and PNG images into WebP format when supported by the end user's browser. Allowed values are "true" or "false".
- quality number
- Set the quality of the JPG and PNG images after conversion. The higher the value, the better the image quality and the larger the file size after conversion.
- avif
Enabled boolean - Allow to convert the JPG and PNG images into AVIF format when supported by the end user's browser. Allowed values are "true" or "false".
- enabled boolean
- Enable or disable the option. Allowed values are "true" or "false".
- png
Lossless boolean - Specify if the PNG images should be compressed without the quality loss.
- webp
Enabled boolean - Allow to convert the JPG and PNG images into WebP format when supported by the end user's browser. Allowed values are "true" or "false".
- quality float
- Set the quality of the JPG and PNG images after conversion. The higher the value, the better the image quality and the larger the file size after conversion.
- avif_
enabled bool - Allow to convert the JPG and PNG images into AVIF format when supported by the end user's browser. Allowed values are "true" or "false".
- enabled bool
- Enable or disable the option. Allowed values are "true" or "false".
- png_
lossless bool - Specify if the PNG images should be compressed without the quality loss.
- webp_
enabled bool - Allow to convert the JPG and PNG images into WebP format when supported by the end user's browser. Allowed values are "true" or "false".
- quality Number
- Set the quality of the JPG and PNG images after conversion. The higher the value, the better the image quality and the larger the file size after conversion.
- avif
Enabled Boolean - Allow to convert the JPG and PNG images into AVIF format when supported by the end user's browser. Allowed values are "true" or "false".
- enabled Boolean
- Enable or disable the option. Allowed values are "true" or "false".
- png
Lossless Boolean - Specify if the PNG images should be compressed without the quality loss.
- webp
Enabled Boolean - Allow to convert the JPG and PNG images into WebP format when supported by the end user's browser. Allowed values are "true" or "false".
CdnResourceOptionsIpAddressAcl, CdnResourceOptionsIpAddressAclArgs
- Excepted
Values List<string> - Add the list of IP addresses.
- Policy
Type string - Set the policy type. Allowed values are "allow" or "deny". The policy allows or denies access to content from all IP addresses except those specified in the "excepted_values" field.
- Enabled bool
- Enable or disable the option. Allowed values are "true" or "false".
- Excepted
Values []string - Add the list of IP addresses.
- Policy
Type string - Set the policy type. Allowed values are "allow" or "deny". The policy allows or denies access to content from all IP addresses except those specified in the "excepted_values" field.
- Enabled bool
- Enable or disable the option. Allowed values are "true" or "false".
- excepted
Values List<String> - Add the list of IP addresses.
- policy
Type String - Set the policy type. Allowed values are "allow" or "deny". The policy allows or denies access to content from all IP addresses except those specified in the "excepted_values" field.
- enabled Boolean
- Enable or disable the option. Allowed values are "true" or "false".
- excepted
Values string[] - Add the list of IP addresses.
- policy
Type string - Set the policy type. Allowed values are "allow" or "deny". The policy allows or denies access to content from all IP addresses except those specified in the "excepted_values" field.
- enabled boolean
- Enable or disable the option. Allowed values are "true" or "false".
- excepted_
values Sequence[str] - Add the list of IP addresses.
- policy_
type str - Set the policy type. Allowed values are "allow" or "deny". The policy allows or denies access to content from all IP addresses except those specified in the "excepted_values" field.
- enabled bool
- Enable or disable the option. Allowed values are "true" or "false".
- excepted
Values List<String> - Add the list of IP addresses.
- policy
Type String - Set the policy type. Allowed values are "allow" or "deny". The policy allows or denies access to content from all IP addresses except those specified in the "excepted_values" field.
- enabled Boolean
- Enable or disable the option. Allowed values are "true" or "false".
CdnResourceOptionsLimitBandwidth, CdnResourceOptionsLimitBandwidthArgs
- Limit
Type string - Set the speed limit type. Allowed values are "static" or "dynamic". If set to "static", use the "speed" and "buffer" fields. If set to "dynamic", the speed is limited according to the "?speed" and "?buffer" query parameters.
- Buffer double
- Specify the amount of downloaded data in KB after which the user will be rate limited.
- Enabled bool
- Enable or disable the option. Allowed values are "true" or "false".
- Speed double
- Set the maximum download speed per connection in KB/s. Must be greater than "0".
- Limit
Type string - Set the speed limit type. Allowed values are "static" or "dynamic". If set to "static", use the "speed" and "buffer" fields. If set to "dynamic", the speed is limited according to the "?speed" and "?buffer" query parameters.
- Buffer float64
- Specify the amount of downloaded data in KB after which the user will be rate limited.
- Enabled bool
- Enable or disable the option. Allowed values are "true" or "false".
- Speed float64
- Set the maximum download speed per connection in KB/s. Must be greater than "0".
- limit
Type String - Set the speed limit type. Allowed values are "static" or "dynamic". If set to "static", use the "speed" and "buffer" fields. If set to "dynamic", the speed is limited according to the "?speed" and "?buffer" query parameters.
- buffer Double
- Specify the amount of downloaded data in KB after which the user will be rate limited.
- enabled Boolean
- Enable or disable the option. Allowed values are "true" or "false".
- speed Double
- Set the maximum download speed per connection in KB/s. Must be greater than "0".
- limit
Type string - Set the speed limit type. Allowed values are "static" or "dynamic". If set to "static", use the "speed" and "buffer" fields. If set to "dynamic", the speed is limited according to the "?speed" and "?buffer" query parameters.
- buffer number
- Specify the amount of downloaded data in KB after which the user will be rate limited.
- enabled boolean
- Enable or disable the option. Allowed values are "true" or "false".
- speed number
- Set the maximum download speed per connection in KB/s. Must be greater than "0".
- limit_
type str - Set the speed limit type. Allowed values are "static" or "dynamic". If set to "static", use the "speed" and "buffer" fields. If set to "dynamic", the speed is limited according to the "?speed" and "?buffer" query parameters.
- buffer float
- Specify the amount of downloaded data in KB after which the user will be rate limited.
- enabled bool
- Enable or disable the option. Allowed values are "true" or "false".
- speed float
- Set the maximum download speed per connection in KB/s. Must be greater than "0".
- limit
Type String - Set the speed limit type. Allowed values are "static" or "dynamic". If set to "static", use the "speed" and "buffer" fields. If set to "dynamic", the speed is limited according to the "?speed" and "?buffer" query parameters.
- buffer Number
- Specify the amount of downloaded data in KB after which the user will be rate limited.
- enabled Boolean
- Enable or disable the option. Allowed values are "true" or "false".
- speed Number
- Set the maximum download speed per connection in KB/s. Must be greater than "0".
CdnResourceOptionsProxyCacheMethodsSet, CdnResourceOptionsProxyCacheMethodsSetArgs
CdnResourceOptionsQueryParamsBlacklist, CdnResourceOptionsQueryParamsBlacklistArgs
CdnResourceOptionsQueryParamsWhitelist, CdnResourceOptionsQueryParamsWhitelistArgs
CdnResourceOptionsRedirectHttpToHttps, CdnResourceOptionsRedirectHttpToHttpsArgs
CdnResourceOptionsRedirectHttpsToHttp, CdnResourceOptionsRedirectHttpsToHttpArgs
CdnResourceOptionsReferrerAcl, CdnResourceOptionsReferrerAclArgs
- Excepted
Values List<string> - Add a list of domain names. To allow a direct link access, add an empty value "". You cannot enter just the empty value because at least one valid referer is required.
- Policy
Type string - Set the policy type. Allowed values are "allow" or "deny". The policy allows or denies access to content from all domain names except those specified in the "excepted_values" field.
- Enabled bool
- Enable or disable the option. Allowed values are "true" or "false".
- Excepted
Values []string - Add a list of domain names. To allow a direct link access, add an empty value "". You cannot enter just the empty value because at least one valid referer is required.
- Policy
Type string - Set the policy type. Allowed values are "allow" or "deny". The policy allows or denies access to content from all domain names except those specified in the "excepted_values" field.
- Enabled bool
- Enable or disable the option. Allowed values are "true" or "false".
- excepted
Values List<String> - Add a list of domain names. To allow a direct link access, add an empty value "". You cannot enter just the empty value because at least one valid referer is required.
- policy
Type String - Set the policy type. Allowed values are "allow" or "deny". The policy allows or denies access to content from all domain names except those specified in the "excepted_values" field.
- enabled Boolean
- Enable or disable the option. Allowed values are "true" or "false".
- excepted
Values string[] - Add a list of domain names. To allow a direct link access, add an empty value "". You cannot enter just the empty value because at least one valid referer is required.
- policy
Type string - Set the policy type. Allowed values are "allow" or "deny". The policy allows or denies access to content from all domain names except those specified in the "excepted_values" field.
- enabled boolean
- Enable or disable the option. Allowed values are "true" or "false".
- excepted_
values Sequence[str] - Add a list of domain names. To allow a direct link access, add an empty value "". You cannot enter just the empty value because at least one valid referer is required.
- policy_
type str - Set the policy type. Allowed values are "allow" or "deny". The policy allows or denies access to content from all domain names except those specified in the "excepted_values" field.
- enabled bool
- Enable or disable the option. Allowed values are "true" or "false".
- excepted
Values List<String> - Add a list of domain names. To allow a direct link access, add an empty value "". You cannot enter just the empty value because at least one valid referer is required.
- policy
Type String - Set the policy type. Allowed values are "allow" or "deny". The policy allows or denies access to content from all domain names except those specified in the "excepted_values" field.
- enabled Boolean
- Enable or disable the option. Allowed values are "true" or "false".
CdnResourceOptionsResponseHeadersHidingPolicy, CdnResourceOptionsResponseHeadersHidingPolicyArgs
- Excepteds List<string>
- Depending on the value of the "mode" field, list the HTTP headers that will be either shown or hidden in the response. HTTP headers, that can't be hidden from the response: Connection, Content-Length, Content-Type, Date, Server.
- Mode string
- Set the way the HTTP headers are displayed. Allowed values are "hide" or "show". If set to "hide", all the HTTP headers from the response except those listed in the "excepted" field. If set to "show", the HTTP headers listed in the "excepted" field are hidden from the response.
- Enabled bool
- Enable or disable the option. Allowed values are "true" or "false".
- Excepteds []string
- Depending on the value of the "mode" field, list the HTTP headers that will be either shown or hidden in the response. HTTP headers, that can't be hidden from the response: Connection, Content-Length, Content-Type, Date, Server.
- Mode string
- Set the way the HTTP headers are displayed. Allowed values are "hide" or "show". If set to "hide", all the HTTP headers from the response except those listed in the "excepted" field. If set to "show", the HTTP headers listed in the "excepted" field are hidden from the response.
- Enabled bool
- Enable or disable the option. Allowed values are "true" or "false".
- excepteds List<String>
- Depending on the value of the "mode" field, list the HTTP headers that will be either shown or hidden in the response. HTTP headers, that can't be hidden from the response: Connection, Content-Length, Content-Type, Date, Server.
- mode String
- Set the way the HTTP headers are displayed. Allowed values are "hide" or "show". If set to "hide", all the HTTP headers from the response except those listed in the "excepted" field. If set to "show", the HTTP headers listed in the "excepted" field are hidden from the response.
- enabled Boolean
- Enable or disable the option. Allowed values are "true" or "false".
- excepteds string[]
- Depending on the value of the "mode" field, list the HTTP headers that will be either shown or hidden in the response. HTTP headers, that can't be hidden from the response: Connection, Content-Length, Content-Type, Date, Server.
- mode string
- Set the way the HTTP headers are displayed. Allowed values are "hide" or "show". If set to "hide", all the HTTP headers from the response except those listed in the "excepted" field. If set to "show", the HTTP headers listed in the "excepted" field are hidden from the response.
- enabled boolean
- Enable or disable the option. Allowed values are "true" or "false".
- excepteds Sequence[str]
- Depending on the value of the "mode" field, list the HTTP headers that will be either shown or hidden in the response. HTTP headers, that can't be hidden from the response: Connection, Content-Length, Content-Type, Date, Server.
- mode str
- Set the way the HTTP headers are displayed. Allowed values are "hide" or "show". If set to "hide", all the HTTP headers from the response except those listed in the "excepted" field. If set to "show", the HTTP headers listed in the "excepted" field are hidden from the response.
- enabled bool
- Enable or disable the option. Allowed values are "true" or "false".
- excepteds List<String>
- Depending on the value of the "mode" field, list the HTTP headers that will be either shown or hidden in the response. HTTP headers, that can't be hidden from the response: Connection, Content-Length, Content-Type, Date, Server.
- mode String
- Set the way the HTTP headers are displayed. Allowed values are "hide" or "show". If set to "hide", all the HTTP headers from the response except those listed in the "excepted" field. If set to "show", the HTTP headers listed in the "excepted" field are hidden from the response.
- enabled Boolean
- Enable or disable the option. Allowed values are "true" or "false".
CdnResourceOptionsRewrite, CdnResourceOptionsRewriteArgs
CdnResourceOptionsSecureKey, CdnResourceOptionsSecureKeyArgs
- Key string
- Add the key generated on your side which will be used for the URL signing.
- Type double
- Set the type of the URL signing. Allowed values are "0" or "2". If set to "0", the end user's IP address is inclded to secure token generation. If set to "2", the end user's IP address is excluded from the secure token generation.
- Enabled bool
- Enable or disable the option. Allowed values are "true" or "false".
- Key string
- Add the key generated on your side which will be used for the URL signing.
- Type float64
- Set the type of the URL signing. Allowed values are "0" or "2". If set to "0", the end user's IP address is inclded to secure token generation. If set to "2", the end user's IP address is excluded from the secure token generation.
- Enabled bool
- Enable or disable the option. Allowed values are "true" or "false".
- key String
- Add the key generated on your side which will be used for the URL signing.
- type Double
- Set the type of the URL signing. Allowed values are "0" or "2". If set to "0", the end user's IP address is inclded to secure token generation. If set to "2", the end user's IP address is excluded from the secure token generation.
- enabled Boolean
- Enable or disable the option. Allowed values are "true" or "false".
- key string
- Add the key generated on your side which will be used for the URL signing.
- type number
- Set the type of the URL signing. Allowed values are "0" or "2". If set to "0", the end user's IP address is inclded to secure token generation. If set to "2", the end user's IP address is excluded from the secure token generation.
- enabled boolean
- Enable or disable the option. Allowed values are "true" or "false".
- key str
- Add the key generated on your side which will be used for the URL signing.
- type float
- Set the type of the URL signing. Allowed values are "0" or "2". If set to "0", the end user's IP address is inclded to secure token generation. If set to "2", the end user's IP address is excluded from the secure token generation.
- enabled bool
- Enable or disable the option. Allowed values are "true" or "false".
- key String
- Add the key generated on your side which will be used for the URL signing.
- type Number
- Set the type of the URL signing. Allowed values are "0" or "2". If set to "0", the end user's IP address is inclded to secure token generation. If set to "2", the end user's IP address is excluded from the secure token generation.
- enabled Boolean
- Enable or disable the option. Allowed values are "true" or "false".
CdnResourceOptionsSlice, CdnResourceOptionsSliceArgs
CdnResourceOptionsSni, CdnResourceOptionsSniArgs
- Custom
Hostname string - Specify the custom SNI hostname.
- Enabled bool
- Enable or disable the option. Allowed values are "true" or "false".
- Sni
Type string - Set the SNI type. Allowed values are "dynamic" or "custom". If set to "dynamic", the hostname matches the value of the "hostheader" or "forwardhostheader" field. If set to "custom", the hostname matches the value of the "customhostname" field.
- Custom
Hostname string - Specify the custom SNI hostname.
- Enabled bool
- Enable or disable the option. Allowed values are "true" or "false".
- Sni
Type string - Set the SNI type. Allowed values are "dynamic" or "custom". If set to "dynamic", the hostname matches the value of the "hostheader" or "forwardhostheader" field. If set to "custom", the hostname matches the value of the "customhostname" field.
- custom
Hostname String - Specify the custom SNI hostname.
- enabled Boolean
- Enable or disable the option. Allowed values are "true" or "false".
- sni
Type String - Set the SNI type. Allowed values are "dynamic" or "custom". If set to "dynamic", the hostname matches the value of the "hostheader" or "forwardhostheader" field. If set to "custom", the hostname matches the value of the "customhostname" field.
- custom
Hostname string - Specify the custom SNI hostname.
- enabled boolean
- Enable or disable the option. Allowed values are "true" or "false".
- sni
Type string - Set the SNI type. Allowed values are "dynamic" or "custom". If set to "dynamic", the hostname matches the value of the "hostheader" or "forwardhostheader" field. If set to "custom", the hostname matches the value of the "customhostname" field.
- custom_
hostname str - Specify the custom SNI hostname.
- enabled bool
- Enable or disable the option. Allowed values are "true" or "false".
- sni_
type str - Set the SNI type. Allowed values are "dynamic" or "custom". If set to "dynamic", the hostname matches the value of the "hostheader" or "forwardhostheader" field. If set to "custom", the hostname matches the value of the "customhostname" field.
- custom
Hostname String - Specify the custom SNI hostname.
- enabled Boolean
- Enable or disable the option. Allowed values are "true" or "false".
- sni
Type String - Set the SNI type. Allowed values are "dynamic" or "custom". If set to "dynamic", the hostname matches the value of the "hostheader" or "forwardhostheader" field. If set to "custom", the hostname matches the value of the "customhostname" field.
CdnResourceOptionsStale, CdnResourceOptionsStaleArgs
CdnResourceOptionsStaticRequestHeaders, CdnResourceOptionsStaticRequestHeadersArgs
- Value Dictionary<string, string>
- Add the list of custom HTTP request headers in the "name: value" format. Header name is restricted to 255 symbols and can contain Latin letters (A-Z, a-z), numbers (0-9), dashes, and underscores Header value is restricted to 512 symbols and must start with a letter, a number, an asterisk or {. It can contain only Latin letters (A-Z, a-z), numbers (0-9), spaces and symbols (`~!@#%^&*()-_=+ /|";:?.><{}[]). Space can be used only between the words.
- Enabled bool
- Enable or disable the option. Allowed values are "true" or "false".
- Value map[string]string
- Add the list of custom HTTP request headers in the "name: value" format. Header name is restricted to 255 symbols and can contain Latin letters (A-Z, a-z), numbers (0-9), dashes, and underscores Header value is restricted to 512 symbols and must start with a letter, a number, an asterisk or {. It can contain only Latin letters (A-Z, a-z), numbers (0-9), spaces and symbols (`~!@#%^&*()-_=+ /|";:?.><{}[]). Space can be used only between the words.
- Enabled bool
- Enable or disable the option. Allowed values are "true" or "false".
- value Map<String,String>
- Add the list of custom HTTP request headers in the "name: value" format. Header name is restricted to 255 symbols and can contain Latin letters (A-Z, a-z), numbers (0-9), dashes, and underscores Header value is restricted to 512 symbols and must start with a letter, a number, an asterisk or {. It can contain only Latin letters (A-Z, a-z), numbers (0-9), spaces and symbols (`~!@#%^&*()-_=+ /|";:?.><{}[]). Space can be used only between the words.
- enabled Boolean
- Enable or disable the option. Allowed values are "true" or "false".
- value {[key: string]: string}
- Add the list of custom HTTP request headers in the "name: value" format. Header name is restricted to 255 symbols and can contain Latin letters (A-Z, a-z), numbers (0-9), dashes, and underscores Header value is restricted to 512 symbols and must start with a letter, a number, an asterisk or {. It can contain only Latin letters (A-Z, a-z), numbers (0-9), spaces and symbols (`~!@#%^&*()-_=+ /|";:?.><{}[]). Space can be used only between the words.
- enabled boolean
- Enable or disable the option. Allowed values are "true" or "false".
- value Mapping[str, str]
- Add the list of custom HTTP request headers in the "name: value" format. Header name is restricted to 255 symbols and can contain Latin letters (A-Z, a-z), numbers (0-9), dashes, and underscores Header value is restricted to 512 symbols and must start with a letter, a number, an asterisk or {. It can contain only Latin letters (A-Z, a-z), numbers (0-9), spaces and symbols (`~!@#%^&*()-_=+ /|";:?.><{}[]). Space can be used only between the words.
- enabled bool
- Enable or disable the option. Allowed values are "true" or "false".
- value Map<String>
- Add the list of custom HTTP request headers in the "name: value" format. Header name is restricted to 255 symbols and can contain Latin letters (A-Z, a-z), numbers (0-9), dashes, and underscores Header value is restricted to 512 symbols and must start with a letter, a number, an asterisk or {. It can contain only Latin letters (A-Z, a-z), numbers (0-9), spaces and symbols (`~!@#%^&*()-_=+ /|";:?.><{}[]). Space can be used only between the words.
- enabled Boolean
- Enable or disable the option. Allowed values are "true" or "false".
CdnResourceOptionsStaticResponseHeaders, CdnResourceOptionsStaticResponseHeadersArgs
- Values
List<Cdn
Resource Options Static Response Headers Value> - Add the list of custom HTTP response headers, using the "name", "value", and "always" fields.
- Enabled bool
- Enable or disable the option. Allowed values are "true" or "false".
- Values
[]Cdn
Resource Options Static Response Headers Value - Add the list of custom HTTP response headers, using the "name", "value", and "always" fields.
- Enabled bool
- Enable or disable the option. Allowed values are "true" or "false".
- values
List<Cdn
Resource Options Static Response Headers Value> - Add the list of custom HTTP response headers, using the "name", "value", and "always" fields.
- enabled Boolean
- Enable or disable the option. Allowed values are "true" or "false".
- values
Cdn
Resource Options Static Response Headers Value[] - Add the list of custom HTTP response headers, using the "name", "value", and "always" fields.
- enabled boolean
- Enable or disable the option. Allowed values are "true" or "false".
- values
Sequence[Cdn
Resource Options Static Response Headers Value] - Add the list of custom HTTP response headers, using the "name", "value", and "always" fields.
- enabled bool
- Enable or disable the option. Allowed values are "true" or "false".
- values List<Property Map>
- Add the list of custom HTTP response headers, using the "name", "value", and "always" fields.
- enabled Boolean
- Enable or disable the option. Allowed values are "true" or "false".
CdnResourceOptionsStaticResponseHeadersValue, CdnResourceOptionsStaticResponseHeadersValueArgs
- Name string
- Add the header name.
- Values List<string>
- Add the header value.
- Always bool
- Specify if the custom header should be added to the responses from CDN regardless of the HTTP response status code. Allowed values are "true" or "false". If set to "false", the header will only be added to the responses with HTTP 200, 201, 204, 206, 301, 302, 303, 304, 307, or 308 status codes.
- Name string
- Add the header name.
- Values []string
- Add the header value.
- Always bool
- Specify if the custom header should be added to the responses from CDN regardless of the HTTP response status code. Allowed values are "true" or "false". If set to "false", the header will only be added to the responses with HTTP 200, 201, 204, 206, 301, 302, 303, 304, 307, or 308 status codes.
- name String
- Add the header name.
- values List<String>
- Add the header value.
- always Boolean
- Specify if the custom header should be added to the responses from CDN regardless of the HTTP response status code. Allowed values are "true" or "false". If set to "false", the header will only be added to the responses with HTTP 200, 201, 204, 206, 301, 302, 303, 304, 307, or 308 status codes.
- name string
- Add the header name.
- values string[]
- Add the header value.
- always boolean
- Specify if the custom header should be added to the responses from CDN regardless of the HTTP response status code. Allowed values are "true" or "false". If set to "false", the header will only be added to the responses with HTTP 200, 201, 204, 206, 301, 302, 303, 304, 307, or 308 status codes.
- name str
- Add the header name.
- values Sequence[str]
- Add the header value.
- always bool
- Specify if the custom header should be added to the responses from CDN regardless of the HTTP response status code. Allowed values are "true" or "false". If set to "false", the header will only be added to the responses with HTTP 200, 201, 204, 206, 301, 302, 303, 304, 307, or 308 status codes.
- name String
- Add the header name.
- values List<String>
- Add the header value.
- always Boolean
- Specify if the custom header should be added to the responses from CDN regardless of the HTTP response status code. Allowed values are "true" or "false". If set to "false", the header will only be added to the responses with HTTP 200, 201, 204, 206, 301, 302, 303, 304, 307, or 308 status codes.
CdnResourceOptionsTlsVersions, CdnResourceOptionsTlsVersionsArgs
CdnResourceOptionsUseDefaultLeChain, CdnResourceOptionsUseDefaultLeChainArgs
- Value bool
- Choose the certificate chain type. Allowed values are "true" or "false". If set to "true", a default chain is chosen. Use it for Android devices 7.1.1 or lower. If set to "false", an alternative certificate chain is chosen.
- Enabled bool
- Enable or disable the option. Allowed values are "true" or "false".
- Value bool
- Choose the certificate chain type. Allowed values are "true" or "false". If set to "true", a default chain is chosen. Use it for Android devices 7.1.1 or lower. If set to "false", an alternative certificate chain is chosen.
- Enabled bool
- Enable or disable the option. Allowed values are "true" or "false".
- value Boolean
- Choose the certificate chain type. Allowed values are "true" or "false". If set to "true", a default chain is chosen. Use it for Android devices 7.1.1 or lower. If set to "false", an alternative certificate chain is chosen.
- enabled Boolean
- Enable or disable the option. Allowed values are "true" or "false".
- value boolean
- Choose the certificate chain type. Allowed values are "true" or "false". If set to "true", a default chain is chosen. Use it for Android devices 7.1.1 or lower. If set to "false", an alternative certificate chain is chosen.
- enabled boolean
- Enable or disable the option. Allowed values are "true" or "false".
- value bool
- Choose the certificate chain type. Allowed values are "true" or "false". If set to "true", a default chain is chosen. Use it for Android devices 7.1.1 or lower. If set to "false", an alternative certificate chain is chosen.
- enabled bool
- Enable or disable the option. Allowed values are "true" or "false".
- value Boolean
- Choose the certificate chain type. Allowed values are "true" or "false". If set to "true", a default chain is chosen. Use it for Android devices 7.1.1 or lower. If set to "false", an alternative certificate chain is chosen.
- enabled Boolean
- Enable or disable the option. Allowed values are "true" or "false".
CdnResourceOptionsUserAgentAcl, CdnResourceOptionsUserAgentAclArgs
- Excepted
Values List<string> - Add a list of user agents. Enter the values in [""]. You can specify a user agent string, an empty value using "", or a regular expression that starts with "~".
- Policy
Type string - Set the policy type. Allowed values are "allow" or "deny". The policy allows or denies access to content from all user agents except those specified in the "excepted_values" field.
- Enabled bool
- Enable or disable the option. Allowed values are "true" or "false".
- Excepted
Values []string - Add a list of user agents. Enter the values in [""]. You can specify a user agent string, an empty value using "", or a regular expression that starts with "~".
- Policy
Type string - Set the policy type. Allowed values are "allow" or "deny". The policy allows or denies access to content from all user agents except those specified in the "excepted_values" field.
- Enabled bool
- Enable or disable the option. Allowed values are "true" or "false".
- excepted
Values List<String> - Add a list of user agents. Enter the values in [""]. You can specify a user agent string, an empty value using "", or a regular expression that starts with "~".
- policy
Type String - Set the policy type. Allowed values are "allow" or "deny". The policy allows or denies access to content from all user agents except those specified in the "excepted_values" field.
- enabled Boolean
- Enable or disable the option. Allowed values are "true" or "false".
- excepted
Values string[] - Add a list of user agents. Enter the values in [""]. You can specify a user agent string, an empty value using "", or a regular expression that starts with "~".
- policy
Type string - Set the policy type. Allowed values are "allow" or "deny". The policy allows or denies access to content from all user agents except those specified in the "excepted_values" field.
- enabled boolean
- Enable or disable the option. Allowed values are "true" or "false".
- excepted_
values Sequence[str] - Add a list of user agents. Enter the values in [""]. You can specify a user agent string, an empty value using "", or a regular expression that starts with "~".
- policy_
type str - Set the policy type. Allowed values are "allow" or "deny". The policy allows or denies access to content from all user agents except those specified in the "excepted_values" field.
- enabled bool
- Enable or disable the option. Allowed values are "true" or "false".
- excepted
Values List<String> - Add a list of user agents. Enter the values in [""]. You can specify a user agent string, an empty value using "", or a regular expression that starts with "~".
- policy
Type String - Set the policy type. Allowed values are "allow" or "deny". The policy allows or denies access to content from all user agents except those specified in the "excepted_values" field.
- enabled Boolean
- Enable or disable the option. Allowed values are "true" or "false".
CdnResourceOptionsWebsockets, CdnResourceOptionsWebsocketsArgs
Package Details
- Repository
- edgecenter edge-center/terraform-provider-edgecenter
- License
- Notes
- This Pulumi package is based on the
edgecenter
Terraform Provider.