vkcs.CdnResource
Explore with Pulumi AI
Example Usage
Coming soon!
Coming soon!
Coming soon!
Coming soon!
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.vkcs.CdnResource;
import com.pulumi.vkcs.CdnResourceArgs;
import com.pulumi.vkcs.inputs.CdnResourceOptionsArgs;
import com.pulumi.vkcs.inputs.CdnResourceSslCertificateArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var resource = new CdnResource("resource", CdnResourceArgs.builder()
.cname(local.cname())
.originGroup(vkcs_cdn_origin_group.origin_group().id())
.options(CdnResourceOptionsArgs.builder()
.edge_cache_settings(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.forward_host_header(true)
.gzip_on(true)
.build())
.sslCertificate(CdnResourceSslCertificateArgs.builder()
.type("own")
.id(vkcs_cdn_ssl_certificate.certificate().id())
.build())
.build());
}
}
resources:
resource:
type: vkcs:CdnResource
properties:
cname: ${local.cname}
originGroup: ${vkcs_cdn_origin_group.origin_group.id}
options:
edge_cache_settings:
value: 10m
forward_host_header: true
gzip_on: true
sslCertificate:
type: own
id: ${vkcs_cdn_ssl_certificate.certificate.id}
Using a Let’s Encrypt certificate
To issue a free Let’s Encrypt certificate, specify “lets_encrypt” as
the value for ssl_certificate.type
argument. The certificate will be issued after the CDN
resource is established, once the origin servers are available and DNS changes involving the
CNAME records for personal domains have propagated.
Note: The option is only available for an active CDN resource, to achieve this, set the value of
active
argument to “true”.
Configuring ACLs
To enhance security, you can specify Access Control Lists (ACLs) options. All of the follow the
same principles: when policy_type
is “allow”, it means that CDN server will allow access for all
possible values of ACL subject except for those specified in excepted_values
argument, and when
policy_type
is “deny”, CDN will deny access with the same logic for excepted values.
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_group: Optional[float] = None,
active: Optional[bool] = None,
options: Optional[CdnResourceOptionsArgs] = None,
origin_protocol: Optional[str] = None,
region: Optional[str] = None,
secondary_hostnames: Optional[Sequence[str]] = None,
shielding: Optional[CdnResourceShieldingArgs] = None,
ssl_certificate: Optional[CdnResourceSslCertificateArgs] = None,
timeouts: Optional[CdnResourceTimeoutsArgs] = 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: vkcs: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 Vkcs.CdnResource("cdnResourceResource", new()
{
Cname = "string",
OriginGroup = 0,
Active = false,
Options = new Vkcs.Inputs.CdnResourceOptionsArgs
{
AllowedHttpMethods = new Vkcs.Inputs.CdnResourceOptionsAllowedHttpMethodsArgs
{
Enabled = false,
Values = new[]
{
"string",
},
},
BrotliCompression = new Vkcs.Inputs.CdnResourceOptionsBrotliCompressionArgs
{
Enabled = false,
Values = new[]
{
"string",
},
},
BrowserCacheSettings = new Vkcs.Inputs.CdnResourceOptionsBrowserCacheSettingsArgs
{
Enabled = false,
Value = "string",
},
Cors = new Vkcs.Inputs.CdnResourceOptionsCorsArgs
{
Enabled = false,
Values = new[]
{
"string",
},
},
CountryAcl = new Vkcs.Inputs.CdnResourceOptionsCountryAclArgs
{
Enabled = false,
ExceptedValues = new[]
{
"string",
},
PolicyType = "string",
},
EdgeCacheSettings = new Vkcs.Inputs.CdnResourceOptionsEdgeCacheSettingsArgs
{
CustomValues =
{
{ "string", "string" },
},
Default = "string",
Enabled = false,
Value = "string",
},
FetchCompressed = false,
ForceReturn = new Vkcs.Inputs.CdnResourceOptionsForceReturnArgs
{
Body = "string",
Code = 0,
Enabled = false,
},
ForwardHostHeader = false,
GzipCompression = new Vkcs.Inputs.CdnResourceOptionsGzipCompressionArgs
{
Enabled = false,
Values = new[]
{
"string",
},
},
GzipOn = false,
HostHeader = new Vkcs.Inputs.CdnResourceOptionsHostHeaderArgs
{
Enabled = false,
Value = "string",
},
IgnoreCookie = false,
IgnoreQueryString = false,
IpAddressAcl = new Vkcs.Inputs.CdnResourceOptionsIpAddressAclArgs
{
Enabled = false,
ExceptedValues = new[]
{
"string",
},
PolicyType = "string",
},
QueryParamsBlacklist = new Vkcs.Inputs.CdnResourceOptionsQueryParamsBlacklistArgs
{
Enabled = false,
Values = new[]
{
"string",
},
},
QueryParamsWhitelist = new Vkcs.Inputs.CdnResourceOptionsQueryParamsWhitelistArgs
{
Enabled = false,
Values = new[]
{
"string",
},
},
ReferrerAcl = new Vkcs.Inputs.CdnResourceOptionsReferrerAclArgs
{
Enabled = false,
ExceptedValues = new[]
{
"string",
},
PolicyType = "string",
},
SecureKey = new Vkcs.Inputs.CdnResourceOptionsSecureKeyArgs
{
Enabled = false,
Key = "string",
Type = 0,
},
Slice = false,
Stale = new Vkcs.Inputs.CdnResourceOptionsStaleArgs
{
Enabled = false,
Values = new[]
{
"string",
},
},
StaticHeaders = new Vkcs.Inputs.CdnResourceOptionsStaticHeadersArgs
{
Enabled = false,
Value =
{
{ "string", "string" },
},
},
StaticRequestHeaders = new Vkcs.Inputs.CdnResourceOptionsStaticRequestHeadersArgs
{
Enabled = false,
Value =
{
{ "string", "string" },
},
},
},
OriginProtocol = "string",
Region = "string",
SecondaryHostnames = new[]
{
"string",
},
Shielding = new Vkcs.Inputs.CdnResourceShieldingArgs
{
Enabled = false,
PopId = 0,
},
SslCertificate = new Vkcs.Inputs.CdnResourceSslCertificateArgs
{
Id = 0,
Status = "string",
Type = "string",
},
Timeouts = new Vkcs.Inputs.CdnResourceTimeoutsArgs
{
Create = "string",
Update = "string",
},
});
example, err := vkcs.NewCdnResource(ctx, "cdnResourceResource", &vkcs.CdnResourceArgs{
Cname: pulumi.String("string"),
OriginGroup: pulumi.Float64(0),
Active: pulumi.Bool(false),
Options: &.CdnResourceOptionsArgs{
AllowedHttpMethods: &.CdnResourceOptionsAllowedHttpMethodsArgs{
Enabled: pulumi.Bool(false),
Values: pulumi.StringArray{
pulumi.String("string"),
},
},
BrotliCompression: &.CdnResourceOptionsBrotliCompressionArgs{
Enabled: pulumi.Bool(false),
Values: pulumi.StringArray{
pulumi.String("string"),
},
},
BrowserCacheSettings: &.CdnResourceOptionsBrowserCacheSettingsArgs{
Enabled: pulumi.Bool(false),
Value: pulumi.String("string"),
},
Cors: &.CdnResourceOptionsCorsArgs{
Enabled: pulumi.Bool(false),
Values: pulumi.StringArray{
pulumi.String("string"),
},
},
CountryAcl: &.CdnResourceOptionsCountryAclArgs{
Enabled: pulumi.Bool(false),
ExceptedValues: pulumi.StringArray{
pulumi.String("string"),
},
PolicyType: pulumi.String("string"),
},
EdgeCacheSettings: &.CdnResourceOptionsEdgeCacheSettingsArgs{
CustomValues: pulumi.StringMap{
"string": pulumi.String("string"),
},
Default: pulumi.String("string"),
Enabled: pulumi.Bool(false),
Value: pulumi.String("string"),
},
FetchCompressed: pulumi.Bool(false),
ForceReturn: &.CdnResourceOptionsForceReturnArgs{
Body: pulumi.String("string"),
Code: pulumi.Float64(0),
Enabled: pulumi.Bool(false),
},
ForwardHostHeader: pulumi.Bool(false),
GzipCompression: &.CdnResourceOptionsGzipCompressionArgs{
Enabled: pulumi.Bool(false),
Values: pulumi.StringArray{
pulumi.String("string"),
},
},
GzipOn: pulumi.Bool(false),
HostHeader: &.CdnResourceOptionsHostHeaderArgs{
Enabled: pulumi.Bool(false),
Value: pulumi.String("string"),
},
IgnoreCookie: pulumi.Bool(false),
IgnoreQueryString: pulumi.Bool(false),
IpAddressAcl: &.CdnResourceOptionsIpAddressAclArgs{
Enabled: pulumi.Bool(false),
ExceptedValues: pulumi.StringArray{
pulumi.String("string"),
},
PolicyType: pulumi.String("string"),
},
QueryParamsBlacklist: &.CdnResourceOptionsQueryParamsBlacklistArgs{
Enabled: pulumi.Bool(false),
Values: pulumi.StringArray{
pulumi.String("string"),
},
},
QueryParamsWhitelist: &.CdnResourceOptionsQueryParamsWhitelistArgs{
Enabled: pulumi.Bool(false),
Values: pulumi.StringArray{
pulumi.String("string"),
},
},
ReferrerAcl: &.CdnResourceOptionsReferrerAclArgs{
Enabled: pulumi.Bool(false),
ExceptedValues: pulumi.StringArray{
pulumi.String("string"),
},
PolicyType: pulumi.String("string"),
},
SecureKey: &.CdnResourceOptionsSecureKeyArgs{
Enabled: pulumi.Bool(false),
Key: pulumi.String("string"),
Type: pulumi.Float64(0),
},
Slice: pulumi.Bool(false),
Stale: &.CdnResourceOptionsStaleArgs{
Enabled: pulumi.Bool(false),
Values: pulumi.StringArray{
pulumi.String("string"),
},
},
StaticHeaders: &.CdnResourceOptionsStaticHeadersArgs{
Enabled: pulumi.Bool(false),
Value: pulumi.StringMap{
"string": pulumi.String("string"),
},
},
StaticRequestHeaders: &.CdnResourceOptionsStaticRequestHeadersArgs{
Enabled: pulumi.Bool(false),
Value: pulumi.StringMap{
"string": pulumi.String("string"),
},
},
},
OriginProtocol: pulumi.String("string"),
Region: pulumi.String("string"),
SecondaryHostnames: pulumi.StringArray{
pulumi.String("string"),
},
Shielding: &.CdnResourceShieldingArgs{
Enabled: pulumi.Bool(false),
PopId: pulumi.Float64(0),
},
SslCertificate: &.CdnResourceSslCertificateArgs{
Id: pulumi.Float64(0),
Status: pulumi.String("string"),
Type: pulumi.String("string"),
},
Timeouts: &.CdnResourceTimeoutsArgs{
Create: pulumi.String("string"),
Update: pulumi.String("string"),
},
})
var cdnResourceResource = new CdnResource("cdnResourceResource", CdnResourceArgs.builder()
.cname("string")
.originGroup(0)
.active(false)
.options(CdnResourceOptionsArgs.builder()
.allowedHttpMethods(CdnResourceOptionsAllowedHttpMethodsArgs.builder()
.enabled(false)
.values("string")
.build())
.brotliCompression(CdnResourceOptionsBrotliCompressionArgs.builder()
.enabled(false)
.values("string")
.build())
.browserCacheSettings(CdnResourceOptionsBrowserCacheSettingsArgs.builder()
.enabled(false)
.value("string")
.build())
.cors(CdnResourceOptionsCorsArgs.builder()
.enabled(false)
.values("string")
.build())
.countryAcl(CdnResourceOptionsCountryAclArgs.builder()
.enabled(false)
.exceptedValues("string")
.policyType("string")
.build())
.edgeCacheSettings(CdnResourceOptionsEdgeCacheSettingsArgs.builder()
.customValues(Map.of("string", "string"))
.default_("string")
.enabled(false)
.value("string")
.build())
.fetchCompressed(false)
.forceReturn(CdnResourceOptionsForceReturnArgs.builder()
.body("string")
.code(0)
.enabled(false)
.build())
.forwardHostHeader(false)
.gzipCompression(CdnResourceOptionsGzipCompressionArgs.builder()
.enabled(false)
.values("string")
.build())
.gzipOn(false)
.hostHeader(CdnResourceOptionsHostHeaderArgs.builder()
.enabled(false)
.value("string")
.build())
.ignoreCookie(false)
.ignoreQueryString(false)
.ipAddressAcl(CdnResourceOptionsIpAddressAclArgs.builder()
.enabled(false)
.exceptedValues("string")
.policyType("string")
.build())
.queryParamsBlacklist(CdnResourceOptionsQueryParamsBlacklistArgs.builder()
.enabled(false)
.values("string")
.build())
.queryParamsWhitelist(CdnResourceOptionsQueryParamsWhitelistArgs.builder()
.enabled(false)
.values("string")
.build())
.referrerAcl(CdnResourceOptionsReferrerAclArgs.builder()
.enabled(false)
.exceptedValues("string")
.policyType("string")
.build())
.secureKey(CdnResourceOptionsSecureKeyArgs.builder()
.enabled(false)
.key("string")
.type(0)
.build())
.slice(false)
.stale(CdnResourceOptionsStaleArgs.builder()
.enabled(false)
.values("string")
.build())
.staticHeaders(CdnResourceOptionsStaticHeadersArgs.builder()
.enabled(false)
.value(Map.of("string", "string"))
.build())
.staticRequestHeaders(CdnResourceOptionsStaticRequestHeadersArgs.builder()
.enabled(false)
.value(Map.of("string", "string"))
.build())
.build())
.originProtocol("string")
.region("string")
.secondaryHostnames("string")
.shielding(CdnResourceShieldingArgs.builder()
.enabled(false)
.popId(0)
.build())
.sslCertificate(CdnResourceSslCertificateArgs.builder()
.id(0)
.status("string")
.type("string")
.build())
.timeouts(CdnResourceTimeoutsArgs.builder()
.create("string")
.update("string")
.build())
.build());
cdn_resource_resource = vkcs.CdnResource("cdnResourceResource",
cname="string",
origin_group=0,
active=False,
options={
"allowed_http_methods": {
"enabled": False,
"values": ["string"],
},
"brotli_compression": {
"enabled": False,
"values": ["string"],
},
"browser_cache_settings": {
"enabled": False,
"value": "string",
},
"cors": {
"enabled": False,
"values": ["string"],
},
"country_acl": {
"enabled": False,
"excepted_values": ["string"],
"policy_type": "string",
},
"edge_cache_settings": {
"custom_values": {
"string": "string",
},
"default": "string",
"enabled": False,
"value": "string",
},
"fetch_compressed": False,
"force_return": {
"body": "string",
"code": 0,
"enabled": False,
},
"forward_host_header": False,
"gzip_compression": {
"enabled": False,
"values": ["string"],
},
"gzip_on": False,
"host_header": {
"enabled": False,
"value": "string",
},
"ignore_cookie": False,
"ignore_query_string": False,
"ip_address_acl": {
"enabled": False,
"excepted_values": ["string"],
"policy_type": "string",
},
"query_params_blacklist": {
"enabled": False,
"values": ["string"],
},
"query_params_whitelist": {
"enabled": False,
"values": ["string"],
},
"referrer_acl": {
"enabled": False,
"excepted_values": ["string"],
"policy_type": "string",
},
"secure_key": {
"enabled": False,
"key": "string",
"type": 0,
},
"slice": False,
"stale": {
"enabled": False,
"values": ["string"],
},
"static_headers": {
"enabled": False,
"value": {
"string": "string",
},
},
"static_request_headers": {
"enabled": False,
"value": {
"string": "string",
},
},
},
origin_protocol="string",
region="string",
secondary_hostnames=["string"],
shielding={
"enabled": False,
"pop_id": 0,
},
ssl_certificate={
"id": 0,
"status": "string",
"type": "string",
},
timeouts={
"create": "string",
"update": "string",
})
const cdnResourceResource = new vkcs.CdnResource("cdnResourceResource", {
cname: "string",
originGroup: 0,
active: false,
options: {
allowedHttpMethods: {
enabled: false,
values: ["string"],
},
brotliCompression: {
enabled: false,
values: ["string"],
},
browserCacheSettings: {
enabled: false,
value: "string",
},
cors: {
enabled: false,
values: ["string"],
},
countryAcl: {
enabled: false,
exceptedValues: ["string"],
policyType: "string",
},
edgeCacheSettings: {
customValues: {
string: "string",
},
"default": "string",
enabled: false,
value: "string",
},
fetchCompressed: false,
forceReturn: {
body: "string",
code: 0,
enabled: false,
},
forwardHostHeader: false,
gzipCompression: {
enabled: false,
values: ["string"],
},
gzipOn: false,
hostHeader: {
enabled: false,
value: "string",
},
ignoreCookie: false,
ignoreQueryString: false,
ipAddressAcl: {
enabled: false,
exceptedValues: ["string"],
policyType: "string",
},
queryParamsBlacklist: {
enabled: false,
values: ["string"],
},
queryParamsWhitelist: {
enabled: false,
values: ["string"],
},
referrerAcl: {
enabled: false,
exceptedValues: ["string"],
policyType: "string",
},
secureKey: {
enabled: false,
key: "string",
type: 0,
},
slice: false,
stale: {
enabled: false,
values: ["string"],
},
staticHeaders: {
enabled: false,
value: {
string: "string",
},
},
staticRequestHeaders: {
enabled: false,
value: {
string: "string",
},
},
},
originProtocol: "string",
region: "string",
secondaryHostnames: ["string"],
shielding: {
enabled: false,
popId: 0,
},
sslCertificate: {
id: 0,
status: "string",
type: "string",
},
timeouts: {
create: "string",
update: "string",
},
});
type: vkcs:CdnResource
properties:
active: false
cname: string
options:
allowedHttpMethods:
enabled: false
values:
- string
brotliCompression:
enabled: false
values:
- string
browserCacheSettings:
enabled: false
value: string
cors:
enabled: false
values:
- string
countryAcl:
enabled: false
exceptedValues:
- string
policyType: string
edgeCacheSettings:
customValues:
string: string
default: string
enabled: false
value: string
fetchCompressed: false
forceReturn:
body: string
code: 0
enabled: false
forwardHostHeader: false
gzipCompression:
enabled: false
values:
- string
gzipOn: false
hostHeader:
enabled: false
value: string
ignoreCookie: false
ignoreQueryString: false
ipAddressAcl:
enabled: false
exceptedValues:
- string
policyType: string
queryParamsBlacklist:
enabled: false
values:
- string
queryParamsWhitelist:
enabled: false
values:
- string
referrerAcl:
enabled: false
exceptedValues:
- string
policyType: string
secureKey:
enabled: false
key: string
type: 0
slice: false
stale:
enabled: false
values:
- string
staticHeaders:
enabled: false
value:
string: string
staticRequestHeaders:
enabled: false
value:
string: string
originGroup: 0
originProtocol: string
region: string
secondaryHostnames:
- string
shielding:
enabled: false
popId: 0
sslCertificate:
id: 0
status: string
type: string
timeouts:
create: string
update: string
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
- required string → Delivery domain that will be used for content delivery through a CDN. Use
secondary_hostnames
to add extra domains. Note: Delivery domains should be added to your DNS settings. - Origin
Group double - required number → Origin group ID with which the CDN resource is associated.
- Active bool
- optional boolean → Enables or disables a CDN resource.
- Options
Cdn
Resource Options - optional → Options that configure a CDN resource.
- Origin
Protocol string - optional string → Protocol used by CDN servers to request content from an origin source. If protocol is not specified, HTTP is used to connect to an origin server.
- Region string
- optional string → The region in which to obtain the CDN client. If omitted, the
region
argument of the provider is used. Changing this creates a new resource. - Secondary
Hostnames List<string> - optional string → Additional delivery domains (CNAMEs) that will be used to deliver content via the CDN.
- Shielding
Cdn
Resource Shielding - optional → Use this attribute to configure origin shielding.
- Ssl
Certificate CdnResource Ssl Certificate - optional → SSL certificate settings for content delivery over HTTPS protocol.
- Timeouts
Cdn
Resource Timeouts
- Cname string
- required string → Delivery domain that will be used for content delivery through a CDN. Use
secondary_hostnames
to add extra domains. Note: Delivery domains should be added to your DNS settings. - Origin
Group float64 - required number → Origin group ID with which the CDN resource is associated.
- Active bool
- optional boolean → Enables or disables a CDN resource.
- Options
Cdn
Resource Options Args - optional → Options that configure a CDN resource.
- Origin
Protocol string - optional string → Protocol used by CDN servers to request content from an origin source. If protocol is not specified, HTTP is used to connect to an origin server.
- Region string
- optional string → The region in which to obtain the CDN client. If omitted, the
region
argument of the provider is used. Changing this creates a new resource. - Secondary
Hostnames []string - optional string → Additional delivery domains (CNAMEs) that will be used to deliver content via the CDN.
- Shielding
Cdn
Resource Shielding Args - optional → Use this attribute to configure origin shielding.
- Ssl
Certificate CdnResource Ssl Certificate Args - optional → SSL certificate settings for content delivery over HTTPS protocol.
- Timeouts
Cdn
Resource Timeouts Args
- cname String
- required string → Delivery domain that will be used for content delivery through a CDN. Use
secondary_hostnames
to add extra domains. Note: Delivery domains should be added to your DNS settings. - origin
Group Double - required number → Origin group ID with which the CDN resource is associated.
- active Boolean
- optional boolean → Enables or disables a CDN resource.
- options
Cdn
Resource Options - optional → Options that configure a CDN resource.
- origin
Protocol String - optional string → Protocol used by CDN servers to request content from an origin source. If protocol is not specified, HTTP is used to connect to an origin server.
- region String
- optional string → The region in which to obtain the CDN client. If omitted, the
region
argument of the provider is used. Changing this creates a new resource. - secondary
Hostnames List<String> - optional string → Additional delivery domains (CNAMEs) that will be used to deliver content via the CDN.
- shielding
Cdn
Resource Shielding - optional → Use this attribute to configure origin shielding.
- ssl
Certificate CdnResource Ssl Certificate - optional → SSL certificate settings for content delivery over HTTPS protocol.
- timeouts
Cdn
Resource Timeouts
- cname string
- required string → Delivery domain that will be used for content delivery through a CDN. Use
secondary_hostnames
to add extra domains. Note: Delivery domains should be added to your DNS settings. - origin
Group number - required number → Origin group ID with which the CDN resource is associated.
- active boolean
- optional boolean → Enables or disables a CDN resource.
- options
Cdn
Resource Options - optional → Options that configure a CDN resource.
- origin
Protocol string - optional string → Protocol used by CDN servers to request content from an origin source. If protocol is not specified, HTTP is used to connect to an origin server.
- region string
- optional string → The region in which to obtain the CDN client. If omitted, the
region
argument of the provider is used. Changing this creates a new resource. - secondary
Hostnames string[] - optional string → Additional delivery domains (CNAMEs) that will be used to deliver content via the CDN.
- shielding
Cdn
Resource Shielding - optional → Use this attribute to configure origin shielding.
- ssl
Certificate CdnResource Ssl Certificate - optional → SSL certificate settings for content delivery over HTTPS protocol.
- timeouts
Cdn
Resource Timeouts
- cname str
- required string → Delivery domain that will be used for content delivery through a CDN. Use
secondary_hostnames
to add extra domains. Note: Delivery domains should be added to your DNS settings. - origin_
group float - required number → Origin group ID with which the CDN resource is associated.
- active bool
- optional boolean → Enables or disables a CDN resource.
- options
Cdn
Resource Options Args - optional → Options that configure a CDN resource.
- origin_
protocol str - optional string → Protocol used by CDN servers to request content from an origin source. If protocol is not specified, HTTP is used to connect to an origin server.
- region str
- optional string → The region in which to obtain the CDN client. If omitted, the
region
argument of the provider is used. Changing this creates a new resource. - secondary_
hostnames Sequence[str] - optional string → Additional delivery domains (CNAMEs) that will be used to deliver content via the CDN.
- shielding
Cdn
Resource Shielding Args - optional → Use this attribute to configure origin shielding.
- ssl_
certificate CdnResource Ssl Certificate Args - optional → SSL certificate settings for content delivery over HTTPS protocol.
- timeouts
Cdn
Resource Timeouts Args
- cname String
- required string → Delivery domain that will be used for content delivery through a CDN. Use
secondary_hostnames
to add extra domains. Note: Delivery domains should be added to your DNS settings. - origin
Group Number - required number → Origin group ID with which the CDN resource is associated.
- active Boolean
- optional boolean → Enables or disables a CDN resource.
- options Property Map
- optional → Options that configure a CDN resource.
- origin
Protocol String - optional string → Protocol used by CDN servers to request content from an origin source. If protocol is not specified, HTTP is used to connect to an origin server.
- region String
- optional string → The region in which to obtain the CDN client. If omitted, the
region
argument of the provider is used. Changing this creates a new resource. - secondary
Hostnames List<String> - optional string → Additional delivery domains (CNAMEs) that will be used to deliver content via the CDN.
- shielding Property Map
- optional → Use this attribute to configure origin shielding.
- ssl
Certificate Property Map - optional → SSL certificate settings for content delivery over HTTPS protocol.
- timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the CdnResource resource produces the following output properties:
- Cdn
Resource doubleId - number → ID of the CDN resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Preset
Applied bool - boolean → Protocol used by CDN servers to request content from an origin source.
- Status string
- string → CDN resource status.
- Vp
Enabled bool - boolean → Defines whether the CDN resource is integrated with the Streaming Platform.
- Cdn
Resource float64Id - number → ID of the CDN resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Preset
Applied bool - boolean → Protocol used by CDN servers to request content from an origin source.
- Status string
- string → CDN resource status.
- Vp
Enabled bool - boolean → Defines whether the CDN resource is integrated with the Streaming Platform.
- cdn
Resource DoubleId - number → ID of the CDN resource.
- id String
- The provider-assigned unique ID for this managed resource.
- preset
Applied Boolean - boolean → Protocol used by CDN servers to request content from an origin source.
- status String
- string → CDN resource status.
- vp
Enabled Boolean - boolean → Defines whether the CDN resource is integrated with the Streaming Platform.
- cdn
Resource numberId - number → ID of the CDN resource.
- id string
- The provider-assigned unique ID for this managed resource.
- preset
Applied boolean - boolean → Protocol used by CDN servers to request content from an origin source.
- status string
- string → CDN resource status.
- vp
Enabled boolean - boolean → Defines whether the CDN resource is integrated with the Streaming Platform.
- cdn_
resource_ floatid - number → ID of the CDN resource.
- id str
- The provider-assigned unique ID for this managed resource.
- preset_
applied bool - boolean → Protocol used by CDN servers to request content from an origin source.
- status str
- string → CDN resource status.
- vp_
enabled bool - boolean → Defines whether the CDN resource is integrated with the Streaming Platform.
- cdn
Resource NumberId - number → ID of the CDN resource.
- id String
- The provider-assigned unique ID for this managed resource.
- preset
Applied Boolean - boolean → Protocol used by CDN servers to request content from an origin source.
- status String
- string → CDN resource status.
- vp
Enabled Boolean - boolean → Defines whether the CDN resource is integrated with the Streaming Platform.
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[float] = None,
cname: Optional[str] = None,
options: Optional[CdnResourceOptionsArgs] = None,
origin_group: Optional[float] = None,
origin_protocol: Optional[str] = None,
preset_applied: Optional[bool] = None,
region: Optional[str] = None,
secondary_hostnames: Optional[Sequence[str]] = None,
shielding: Optional[CdnResourceShieldingArgs] = None,
ssl_certificate: Optional[CdnResourceSslCertificateArgs] = None,
status: Optional[str] = None,
timeouts: Optional[CdnResourceTimeoutsArgs] = None,
vp_enabled: Optional[bool] = 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: vkcs: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
- optional boolean → Enables or disables a CDN resource.
- Cdn
Resource doubleId - number → ID of the CDN resource.
- Cname string
- required string → Delivery domain that will be used for content delivery through a CDN. Use
secondary_hostnames
to add extra domains. Note: Delivery domains should be added to your DNS settings. - Options
Cdn
Resource Options - optional → Options that configure a CDN resource.
- Origin
Group double - required number → Origin group ID with which the CDN resource is associated.
- Origin
Protocol string - optional string → Protocol used by CDN servers to request content from an origin source. If protocol is not specified, HTTP is used to connect to an origin server.
- Preset
Applied bool - boolean → Protocol used by CDN servers to request content from an origin source.
- Region string
- optional string → The region in which to obtain the CDN client. If omitted, the
region
argument of the provider is used. Changing this creates a new resource. - Secondary
Hostnames List<string> - optional string → Additional delivery domains (CNAMEs) that will be used to deliver content via the CDN.
- Shielding
Cdn
Resource Shielding - optional → Use this attribute to configure origin shielding.
- Ssl
Certificate CdnResource Ssl Certificate - optional → SSL certificate settings for content delivery over HTTPS protocol.
- Status string
- string → CDN resource status.
- Timeouts
Cdn
Resource Timeouts - Vp
Enabled bool - boolean → Defines whether the CDN resource is integrated with the Streaming Platform.
- Active bool
- optional boolean → Enables or disables a CDN resource.
- Cdn
Resource float64Id - number → ID of the CDN resource.
- Cname string
- required string → Delivery domain that will be used for content delivery through a CDN. Use
secondary_hostnames
to add extra domains. Note: Delivery domains should be added to your DNS settings. - Options
Cdn
Resource Options Args - optional → Options that configure a CDN resource.
- Origin
Group float64 - required number → Origin group ID with which the CDN resource is associated.
- Origin
Protocol string - optional string → Protocol used by CDN servers to request content from an origin source. If protocol is not specified, HTTP is used to connect to an origin server.
- Preset
Applied bool - boolean → Protocol used by CDN servers to request content from an origin source.
- Region string
- optional string → The region in which to obtain the CDN client. If omitted, the
region
argument of the provider is used. Changing this creates a new resource. - Secondary
Hostnames []string - optional string → Additional delivery domains (CNAMEs) that will be used to deliver content via the CDN.
- Shielding
Cdn
Resource Shielding Args - optional → Use this attribute to configure origin shielding.
- Ssl
Certificate CdnResource Ssl Certificate Args - optional → SSL certificate settings for content delivery over HTTPS protocol.
- Status string
- string → CDN resource status.
- Timeouts
Cdn
Resource Timeouts Args - Vp
Enabled bool - boolean → Defines whether the CDN resource is integrated with the Streaming Platform.
- active Boolean
- optional boolean → Enables or disables a CDN resource.
- cdn
Resource DoubleId - number → ID of the CDN resource.
- cname String
- required string → Delivery domain that will be used for content delivery through a CDN. Use
secondary_hostnames
to add extra domains. Note: Delivery domains should be added to your DNS settings. - options
Cdn
Resource Options - optional → Options that configure a CDN resource.
- origin
Group Double - required number → Origin group ID with which the CDN resource is associated.
- origin
Protocol String - optional string → Protocol used by CDN servers to request content from an origin source. If protocol is not specified, HTTP is used to connect to an origin server.
- preset
Applied Boolean - boolean → Protocol used by CDN servers to request content from an origin source.
- region String
- optional string → The region in which to obtain the CDN client. If omitted, the
region
argument of the provider is used. Changing this creates a new resource. - secondary
Hostnames List<String> - optional string → Additional delivery domains (CNAMEs) that will be used to deliver content via the CDN.
- shielding
Cdn
Resource Shielding - optional → Use this attribute to configure origin shielding.
- ssl
Certificate CdnResource Ssl Certificate - optional → SSL certificate settings for content delivery over HTTPS protocol.
- status String
- string → CDN resource status.
- timeouts
Cdn
Resource Timeouts - vp
Enabled Boolean - boolean → Defines whether the CDN resource is integrated with the Streaming Platform.
- active boolean
- optional boolean → Enables or disables a CDN resource.
- cdn
Resource numberId - number → ID of the CDN resource.
- cname string
- required string → Delivery domain that will be used for content delivery through a CDN. Use
secondary_hostnames
to add extra domains. Note: Delivery domains should be added to your DNS settings. - options
Cdn
Resource Options - optional → Options that configure a CDN resource.
- origin
Group number - required number → Origin group ID with which the CDN resource is associated.
- origin
Protocol string - optional string → Protocol used by CDN servers to request content from an origin source. If protocol is not specified, HTTP is used to connect to an origin server.
- preset
Applied boolean - boolean → Protocol used by CDN servers to request content from an origin source.
- region string
- optional string → The region in which to obtain the CDN client. If omitted, the
region
argument of the provider is used. Changing this creates a new resource. - secondary
Hostnames string[] - optional string → Additional delivery domains (CNAMEs) that will be used to deliver content via the CDN.
- shielding
Cdn
Resource Shielding - optional → Use this attribute to configure origin shielding.
- ssl
Certificate CdnResource Ssl Certificate - optional → SSL certificate settings for content delivery over HTTPS protocol.
- status string
- string → CDN resource status.
- timeouts
Cdn
Resource Timeouts - vp
Enabled boolean - boolean → Defines whether the CDN resource is integrated with the Streaming Platform.
- active bool
- optional boolean → Enables or disables a CDN resource.
- cdn_
resource_ floatid - number → ID of the CDN resource.
- cname str
- required string → Delivery domain that will be used for content delivery through a CDN. Use
secondary_hostnames
to add extra domains. Note: Delivery domains should be added to your DNS settings. - options
Cdn
Resource Options Args - optional → Options that configure a CDN resource.
- origin_
group float - required number → Origin group ID with which the CDN resource is associated.
- origin_
protocol str - optional string → Protocol used by CDN servers to request content from an origin source. If protocol is not specified, HTTP is used to connect to an origin server.
- preset_
applied bool - boolean → Protocol used by CDN servers to request content from an origin source.
- region str
- optional string → The region in which to obtain the CDN client. If omitted, the
region
argument of the provider is used. Changing this creates a new resource. - secondary_
hostnames Sequence[str] - optional string → Additional delivery domains (CNAMEs) that will be used to deliver content via the CDN.
- shielding
Cdn
Resource Shielding Args - optional → Use this attribute to configure origin shielding.
- ssl_
certificate CdnResource Ssl Certificate Args - optional → SSL certificate settings for content delivery over HTTPS protocol.
- status str
- string → CDN resource status.
- timeouts
Cdn
Resource Timeouts Args - vp_
enabled bool - boolean → Defines whether the CDN resource is integrated with the Streaming Platform.
- active Boolean
- optional boolean → Enables or disables a CDN resource.
- cdn
Resource NumberId - number → ID of the CDN resource.
- cname String
- required string → Delivery domain that will be used for content delivery through a CDN. Use
secondary_hostnames
to add extra domains. Note: Delivery domains should be added to your DNS settings. - options Property Map
- optional → Options that configure a CDN resource.
- origin
Group Number - required number → Origin group ID with which the CDN resource is associated.
- origin
Protocol String - optional string → Protocol used by CDN servers to request content from an origin source. If protocol is not specified, HTTP is used to connect to an origin server.
- preset
Applied Boolean - boolean → Protocol used by CDN servers to request content from an origin source.
- region String
- optional string → The region in which to obtain the CDN client. If omitted, the
region
argument of the provider is used. Changing this creates a new resource. - secondary
Hostnames List<String> - optional string → Additional delivery domains (CNAMEs) that will be used to deliver content via the CDN.
- shielding Property Map
- optional → Use this attribute to configure origin shielding.
- ssl
Certificate Property Map - optional → SSL certificate settings for content delivery over HTTPS protocol.
- status String
- string → CDN resource status.
- timeouts Property Map
- vp
Enabled Boolean - boolean → Defines whether the CDN resource is integrated with the Streaming Platform.
Supporting Types
CdnResourceOptions, CdnResourceOptionsArgs
- Allowed
Http CdnMethods Resource Options Allowed Http Methods - optional → HTTP methods allowed for content requests from the CDN.
- Brotli
Compression CdnResource Options Brotli Compression - optional → Compresses content with Brotli on the CDN side. CDN servers will request only uncompressed content from the origin.
- Browser
Cache CdnSettings Resource Options Browser Cache Settings - optional → Cache settings for users browsers. Cache expiration time is applied to the following response codes: 200, 201, 204, 206, 301, 302, 303, 304, 307, 308. Responses with other codes will not be cached.
- Cors
Cdn
Resource Options Cors - optional → Enables or disables CORS (Cross-Origin Resource Sharing) header support. CORS header support allows the CDN to add the Access-Control-Allow-Origin header to a response to a browser.
- Country
Acl CdnResource Options Country Acl - optional → Use this option to control access to the content for specified countries.
- Edge
Cache CdnSettings Resource Options Edge Cache Settings - optional → Cache settings for CDN servers.
- Fetch
Compressed bool - optional boolean → If enabled, CDN servers request and cache compressed content from the origin. The origin server should support compression. CDN servers will not decompress your content even if a user browser does not accept compression. Conflicts with
gzip_on
if both enabled simultaneously. - Force
Return CdnResource Options Force Return - optional → Allows to apply custom HTTP code to the CDN content. Specify HTTP-code you need and text or URL if you're going to set up redirection.
- Forward
Host boolHeader - optional boolean → Forwards the Host header from a end-user request to an origin server. Conflicts with
host_header
if both enabled simultaneously. - Gzip
Compression CdnResource Options Gzip Compression - optional → Compresses content with GZip on the CDN side. CDN servers will request only uncompressed content from the origin. Conflicts with
fetch_compressed
,slice
andgzip_on
if any of them are enabled simultaneously.application/wasm
value is not supported when the shielded option is disabled, compression in this case is performed on the origin shielding, so it must be active for the MIME type to be compressed. - Gzip
On bool - optional boolean → Enables content compression using gzip on the CDN side. CDN servers will request only uncompressed content from the origin. Conflicts with
fetch_compressed
,slice
andgzip_compression
if any of them are enabled simultaneously. - Host
Header CdnResource Options Host Header - optional → Use this option to specify the Host header that CDN servers use when request content from an origin server. If the option is not set, the header value is equal to the first CNAME. Conflicts with
forward_host_header
if both enabled simultaneously. - bool
- optional boolean → Defines whether the files with the Set-Cookies header are cached as one file or as different ones.
- Ignore
Query boolString - optional boolean → Allows to specify how a file with different query strings is cached: either as one object (option is enabled) or as different objects (option is disabled.).
ignore_query_string
,query_params_whitelist
andquery_params_blacklist
options cannot be enabled simultaneously. - Ip
Address CdnAcl Resource Options Ip Address Acl - optional → The option allows to control access to the CDN Resource content for specific IP addresses.
- Query
Params CdnBlacklist Resource Options Query Params Blacklist - optional → Use this option to specify query parameters, so files with these query strings will be cached as one object, and files with other parameters will be cached as different objects.
ignore_query_string
,query_params_whitelist
andquery_params_blacklist
options cannot be enabled simultaneously. - Query
Params CdnWhitelist Resource Options Query Params Whitelist - optional → Use this option to specify query parameters, so files with these query strings will be cached as different objects, and files with other parameters will be cached as one object.
ignore_query_string
,query_params_whitelist
andquery_params_blacklist
options cannot be enabled simultaneously. - Referrer
Acl CdnResource Options Referrer Acl - optional → Use this option to control access to the CDN resource content for specified domain names.
- Secure
Key CdnResource Options Secure Key - optional → Configures access with tokenized URLs. This makes impossible to access content without a valid (unexpired) token.
- Slice bool
- optional boolean → If enabled, CDN servers request and cache files larger than 10 MB in parts. Origins must support HTTP Range requests.
- Stale
Cdn
Resource Options Stale - optional → If enabled, CDN serves stale cached content in case of origin unavailability.
- Static
Headers CdnResource Options Static Headers - optional → Custom HTTP Headers that a CDN server adds to a response.
- Static
Request CdnHeaders Resource Options Static Request Headers - optional → Custom HTTP Headers for a CDN server to add to a request.
- Allowed
Http CdnMethods Resource Options Allowed Http Methods - optional → HTTP methods allowed for content requests from the CDN.
- Brotli
Compression CdnResource Options Brotli Compression - optional → Compresses content with Brotli on the CDN side. CDN servers will request only uncompressed content from the origin.
- Browser
Cache CdnSettings Resource Options Browser Cache Settings - optional → Cache settings for users browsers. Cache expiration time is applied to the following response codes: 200, 201, 204, 206, 301, 302, 303, 304, 307, 308. Responses with other codes will not be cached.
- Cors
Cdn
Resource Options Cors - optional → Enables or disables CORS (Cross-Origin Resource Sharing) header support. CORS header support allows the CDN to add the Access-Control-Allow-Origin header to a response to a browser.
- Country
Acl CdnResource Options Country Acl - optional → Use this option to control access to the content for specified countries.
- Edge
Cache CdnSettings Resource Options Edge Cache Settings - optional → Cache settings for CDN servers.
- Fetch
Compressed bool - optional boolean → If enabled, CDN servers request and cache compressed content from the origin. The origin server should support compression. CDN servers will not decompress your content even if a user browser does not accept compression. Conflicts with
gzip_on
if both enabled simultaneously. - Force
Return CdnResource Options Force Return - optional → Allows to apply custom HTTP code to the CDN content. Specify HTTP-code you need and text or URL if you're going to set up redirection.
- Forward
Host boolHeader - optional boolean → Forwards the Host header from a end-user request to an origin server. Conflicts with
host_header
if both enabled simultaneously. - Gzip
Compression CdnResource Options Gzip Compression - optional → Compresses content with GZip on the CDN side. CDN servers will request only uncompressed content from the origin. Conflicts with
fetch_compressed
,slice
andgzip_on
if any of them are enabled simultaneously.application/wasm
value is not supported when the shielded option is disabled, compression in this case is performed on the origin shielding, so it must be active for the MIME type to be compressed. - Gzip
On bool - optional boolean → Enables content compression using gzip on the CDN side. CDN servers will request only uncompressed content from the origin. Conflicts with
fetch_compressed
,slice
andgzip_compression
if any of them are enabled simultaneously. - Host
Header CdnResource Options Host Header - optional → Use this option to specify the Host header that CDN servers use when request content from an origin server. If the option is not set, the header value is equal to the first CNAME. Conflicts with
forward_host_header
if both enabled simultaneously. - bool
- optional boolean → Defines whether the files with the Set-Cookies header are cached as one file or as different ones.
- Ignore
Query boolString - optional boolean → Allows to specify how a file with different query strings is cached: either as one object (option is enabled) or as different objects (option is disabled.).
ignore_query_string
,query_params_whitelist
andquery_params_blacklist
options cannot be enabled simultaneously. - Ip
Address CdnAcl Resource Options Ip Address Acl - optional → The option allows to control access to the CDN Resource content for specific IP addresses.
- Query
Params CdnBlacklist Resource Options Query Params Blacklist - optional → Use this option to specify query parameters, so files with these query strings will be cached as one object, and files with other parameters will be cached as different objects.
ignore_query_string
,query_params_whitelist
andquery_params_blacklist
options cannot be enabled simultaneously. - Query
Params CdnWhitelist Resource Options Query Params Whitelist - optional → Use this option to specify query parameters, so files with these query strings will be cached as different objects, and files with other parameters will be cached as one object.
ignore_query_string
,query_params_whitelist
andquery_params_blacklist
options cannot be enabled simultaneously. - Referrer
Acl CdnResource Options Referrer Acl - optional → Use this option to control access to the CDN resource content for specified domain names.
- Secure
Key CdnResource Options Secure Key - optional → Configures access with tokenized URLs. This makes impossible to access content without a valid (unexpired) token.
- Slice bool
- optional boolean → If enabled, CDN servers request and cache files larger than 10 MB in parts. Origins must support HTTP Range requests.
- Stale
Cdn
Resource Options Stale - optional → If enabled, CDN serves stale cached content in case of origin unavailability.
- Static
Headers CdnResource Options Static Headers - optional → Custom HTTP Headers that a CDN server adds to a response.
- Static
Request CdnHeaders Resource Options Static Request Headers - optional → Custom HTTP Headers for a CDN server to add to a request.
- allowed
Http CdnMethods Resource Options Allowed Http Methods - optional → HTTP methods allowed for content requests from the CDN.
- brotli
Compression CdnResource Options Brotli Compression - optional → Compresses content with Brotli on the CDN side. CDN servers will request only uncompressed content from the origin.
- browser
Cache CdnSettings Resource Options Browser Cache Settings - optional → Cache settings for users browsers. Cache expiration time is applied to the following response codes: 200, 201, 204, 206, 301, 302, 303, 304, 307, 308. Responses with other codes will not be cached.
- cors
Cdn
Resource Options Cors - optional → Enables or disables CORS (Cross-Origin Resource Sharing) header support. CORS header support allows the CDN to add the Access-Control-Allow-Origin header to a response to a browser.
- country
Acl CdnResource Options Country Acl - optional → Use this option to control access to the content for specified countries.
- edge
Cache CdnSettings Resource Options Edge Cache Settings - optional → Cache settings for CDN servers.
- fetch
Compressed Boolean - optional boolean → If enabled, CDN servers request and cache compressed content from the origin. The origin server should support compression. CDN servers will not decompress your content even if a user browser does not accept compression. Conflicts with
gzip_on
if both enabled simultaneously. - force
Return CdnResource Options Force Return - optional → Allows to apply custom HTTP code to the CDN content. Specify HTTP-code you need and text or URL if you're going to set up redirection.
- forward
Host BooleanHeader - optional boolean → Forwards the Host header from a end-user request to an origin server. Conflicts with
host_header
if both enabled simultaneously. - gzip
Compression CdnResource Options Gzip Compression - optional → Compresses content with GZip on the CDN side. CDN servers will request only uncompressed content from the origin. Conflicts with
fetch_compressed
,slice
andgzip_on
if any of them are enabled simultaneously.application/wasm
value is not supported when the shielded option is disabled, compression in this case is performed on the origin shielding, so it must be active for the MIME type to be compressed. - gzip
On Boolean - optional boolean → Enables content compression using gzip on the CDN side. CDN servers will request only uncompressed content from the origin. Conflicts with
fetch_compressed
,slice
andgzip_compression
if any of them are enabled simultaneously. - host
Header CdnResource Options Host Header - optional → Use this option to specify the Host header that CDN servers use when request content from an origin server. If the option is not set, the header value is equal to the first CNAME. Conflicts with
forward_host_header
if both enabled simultaneously. - Boolean
- optional boolean → Defines whether the files with the Set-Cookies header are cached as one file or as different ones.
- ignore
Query BooleanString - optional boolean → Allows to specify how a file with different query strings is cached: either as one object (option is enabled) or as different objects (option is disabled.).
ignore_query_string
,query_params_whitelist
andquery_params_blacklist
options cannot be enabled simultaneously. - ip
Address CdnAcl Resource Options Ip Address Acl - optional → The option allows to control access to the CDN Resource content for specific IP addresses.
- query
Params CdnBlacklist Resource Options Query Params Blacklist - optional → Use this option to specify query parameters, so files with these query strings will be cached as one object, and files with other parameters will be cached as different objects.
ignore_query_string
,query_params_whitelist
andquery_params_blacklist
options cannot be enabled simultaneously. - query
Params CdnWhitelist Resource Options Query Params Whitelist - optional → Use this option to specify query parameters, so files with these query strings will be cached as different objects, and files with other parameters will be cached as one object.
ignore_query_string
,query_params_whitelist
andquery_params_blacklist
options cannot be enabled simultaneously. - referrer
Acl CdnResource Options Referrer Acl - optional → Use this option to control access to the CDN resource content for specified domain names.
- secure
Key CdnResource Options Secure Key - optional → Configures access with tokenized URLs. This makes impossible to access content without a valid (unexpired) token.
- slice Boolean
- optional boolean → If enabled, CDN servers request and cache files larger than 10 MB in parts. Origins must support HTTP Range requests.
- stale
Cdn
Resource Options Stale - optional → If enabled, CDN serves stale cached content in case of origin unavailability.
- static
Headers CdnResource Options Static Headers - optional → Custom HTTP Headers that a CDN server adds to a response.
- static
Request CdnHeaders Resource Options Static Request Headers - optional → Custom HTTP Headers for a CDN server to add to a request.
- allowed
Http CdnMethods Resource Options Allowed Http Methods - optional → HTTP methods allowed for content requests from the CDN.
- brotli
Compression CdnResource Options Brotli Compression - optional → Compresses content with Brotli on the CDN side. CDN servers will request only uncompressed content from the origin.
- browser
Cache CdnSettings Resource Options Browser Cache Settings - optional → Cache settings for users browsers. Cache expiration time is applied to the following response codes: 200, 201, 204, 206, 301, 302, 303, 304, 307, 308. Responses with other codes will not be cached.
- cors
Cdn
Resource Options Cors - optional → Enables or disables CORS (Cross-Origin Resource Sharing) header support. CORS header support allows the CDN to add the Access-Control-Allow-Origin header to a response to a browser.
- country
Acl CdnResource Options Country Acl - optional → Use this option to control access to the content for specified countries.
- edge
Cache CdnSettings Resource Options Edge Cache Settings - optional → Cache settings for CDN servers.
- fetch
Compressed boolean - optional boolean → If enabled, CDN servers request and cache compressed content from the origin. The origin server should support compression. CDN servers will not decompress your content even if a user browser does not accept compression. Conflicts with
gzip_on
if both enabled simultaneously. - force
Return CdnResource Options Force Return - optional → Allows to apply custom HTTP code to the CDN content. Specify HTTP-code you need and text or URL if you're going to set up redirection.
- forward
Host booleanHeader - optional boolean → Forwards the Host header from a end-user request to an origin server. Conflicts with
host_header
if both enabled simultaneously. - gzip
Compression CdnResource Options Gzip Compression - optional → Compresses content with GZip on the CDN side. CDN servers will request only uncompressed content from the origin. Conflicts with
fetch_compressed
,slice
andgzip_on
if any of them are enabled simultaneously.application/wasm
value is not supported when the shielded option is disabled, compression in this case is performed on the origin shielding, so it must be active for the MIME type to be compressed. - gzip
On boolean - optional boolean → Enables content compression using gzip on the CDN side. CDN servers will request only uncompressed content from the origin. Conflicts with
fetch_compressed
,slice
andgzip_compression
if any of them are enabled simultaneously. - host
Header CdnResource Options Host Header - optional → Use this option to specify the Host header that CDN servers use when request content from an origin server. If the option is not set, the header value is equal to the first CNAME. Conflicts with
forward_host_header
if both enabled simultaneously. - boolean
- optional boolean → Defines whether the files with the Set-Cookies header are cached as one file or as different ones.
- ignore
Query booleanString - optional boolean → Allows to specify how a file with different query strings is cached: either as one object (option is enabled) or as different objects (option is disabled.).
ignore_query_string
,query_params_whitelist
andquery_params_blacklist
options cannot be enabled simultaneously. - ip
Address CdnAcl Resource Options Ip Address Acl - optional → The option allows to control access to the CDN Resource content for specific IP addresses.
- query
Params CdnBlacklist Resource Options Query Params Blacklist - optional → Use this option to specify query parameters, so files with these query strings will be cached as one object, and files with other parameters will be cached as different objects.
ignore_query_string
,query_params_whitelist
andquery_params_blacklist
options cannot be enabled simultaneously. - query
Params CdnWhitelist Resource Options Query Params Whitelist - optional → Use this option to specify query parameters, so files with these query strings will be cached as different objects, and files with other parameters will be cached as one object.
ignore_query_string
,query_params_whitelist
andquery_params_blacklist
options cannot be enabled simultaneously. - referrer
Acl CdnResource Options Referrer Acl - optional → Use this option to control access to the CDN resource content for specified domain names.
- secure
Key CdnResource Options Secure Key - optional → Configures access with tokenized URLs. This makes impossible to access content without a valid (unexpired) token.
- slice boolean
- optional boolean → If enabled, CDN servers request and cache files larger than 10 MB in parts. Origins must support HTTP Range requests.
- stale
Cdn
Resource Options Stale - optional → If enabled, CDN serves stale cached content in case of origin unavailability.
- static
Headers CdnResource Options Static Headers - optional → Custom HTTP Headers that a CDN server adds to a response.
- static
Request CdnHeaders Resource Options Static Request Headers - optional → Custom HTTP Headers for a CDN server to add to a request.
- allowed_
http_ Cdnmethods Resource Options Allowed Http Methods - optional → HTTP methods allowed for content requests from the CDN.
- brotli_
compression CdnResource Options Brotli Compression - optional → Compresses content with Brotli on the CDN side. CDN servers will request only uncompressed content from the origin.
- browser_
cache_ Cdnsettings Resource Options Browser Cache Settings - optional → Cache settings for users browsers. Cache expiration time is applied to the following response codes: 200, 201, 204, 206, 301, 302, 303, 304, 307, 308. Responses with other codes will not be cached.
- cors
Cdn
Resource Options Cors - optional → Enables or disables CORS (Cross-Origin Resource Sharing) header support. CORS header support allows the CDN to add the Access-Control-Allow-Origin header to a response to a browser.
- country_
acl CdnResource Options Country Acl - optional → Use this option to control access to the content for specified countries.
- edge_
cache_ Cdnsettings Resource Options Edge Cache Settings - optional → Cache settings for CDN servers.
- fetch_
compressed bool - optional boolean → If enabled, CDN servers request and cache compressed content from the origin. The origin server should support compression. CDN servers will not decompress your content even if a user browser does not accept compression. Conflicts with
gzip_on
if both enabled simultaneously. - force_
return CdnResource Options Force Return - optional → Allows to apply custom HTTP code to the CDN content. Specify HTTP-code you need and text or URL if you're going to set up redirection.
- forward_
host_ boolheader - optional boolean → Forwards the Host header from a end-user request to an origin server. Conflicts with
host_header
if both enabled simultaneously. - gzip_
compression CdnResource Options Gzip Compression - optional → Compresses content with GZip on the CDN side. CDN servers will request only uncompressed content from the origin. Conflicts with
fetch_compressed
,slice
andgzip_on
if any of them are enabled simultaneously.application/wasm
value is not supported when the shielded option is disabled, compression in this case is performed on the origin shielding, so it must be active for the MIME type to be compressed. - gzip_
on bool - optional boolean → Enables content compression using gzip on the CDN side. CDN servers will request only uncompressed content from the origin. Conflicts with
fetch_compressed
,slice
andgzip_compression
if any of them are enabled simultaneously. - host_
header CdnResource Options Host Header - optional → Use this option to specify the Host header that CDN servers use when request content from an origin server. If the option is not set, the header value is equal to the first CNAME. Conflicts with
forward_host_header
if both enabled simultaneously. - bool
- optional boolean → Defines whether the files with the Set-Cookies header are cached as one file or as different ones.
- ignore_
query_ boolstring - optional boolean → Allows to specify how a file with different query strings is cached: either as one object (option is enabled) or as different objects (option is disabled.).
ignore_query_string
,query_params_whitelist
andquery_params_blacklist
options cannot be enabled simultaneously. - ip_
address_ Cdnacl Resource Options Ip Address Acl - optional → The option allows to control access to the CDN Resource content for specific IP addresses.
- query_
params_ Cdnblacklist Resource Options Query Params Blacklist - optional → Use this option to specify query parameters, so files with these query strings will be cached as one object, and files with other parameters will be cached as different objects.
ignore_query_string
,query_params_whitelist
andquery_params_blacklist
options cannot be enabled simultaneously. - query_
params_ Cdnwhitelist Resource Options Query Params Whitelist - optional → Use this option to specify query parameters, so files with these query strings will be cached as different objects, and files with other parameters will be cached as one object.
ignore_query_string
,query_params_whitelist
andquery_params_blacklist
options cannot be enabled simultaneously. - referrer_
acl CdnResource Options Referrer Acl - optional → Use this option to control access to the CDN resource content for specified domain names.
- secure_
key CdnResource Options Secure Key - optional → Configures access with tokenized URLs. This makes impossible to access content without a valid (unexpired) token.
- slice bool
- optional boolean → If enabled, CDN servers request and cache files larger than 10 MB in parts. Origins must support HTTP Range requests.
- stale
Cdn
Resource Options Stale - optional → If enabled, CDN serves stale cached content in case of origin unavailability.
- static_
headers CdnResource Options Static Headers - optional → Custom HTTP Headers that a CDN server adds to a response.
- static_
request_ Cdnheaders Resource Options Static Request Headers - optional → Custom HTTP Headers for a CDN server to add to a request.
- allowed
Http Property MapMethods - optional → HTTP methods allowed for content requests from the CDN.
- brotli
Compression Property Map - optional → Compresses content with Brotli on the CDN side. CDN servers will request only uncompressed content from the origin.
- browser
Cache Property MapSettings - optional → Cache settings for users browsers. Cache expiration time is applied to the following response codes: 200, 201, 204, 206, 301, 302, 303, 304, 307, 308. Responses with other codes will not be cached.
- cors Property Map
- optional → Enables or disables CORS (Cross-Origin Resource Sharing) header support. CORS header support allows the CDN to add the Access-Control-Allow-Origin header to a response to a browser.
- country
Acl Property Map - optional → Use this option to control access to the content for specified countries.
- edge
Cache Property MapSettings - optional → Cache settings for CDN servers.
- fetch
Compressed Boolean - optional boolean → If enabled, CDN servers request and cache compressed content from the origin. The origin server should support compression. CDN servers will not decompress your content even if a user browser does not accept compression. Conflicts with
gzip_on
if both enabled simultaneously. - force
Return Property Map - optional → Allows to apply custom HTTP code to the CDN content. Specify HTTP-code you need and text or URL if you're going to set up redirection.
- forward
Host BooleanHeader - optional boolean → Forwards the Host header from a end-user request to an origin server. Conflicts with
host_header
if both enabled simultaneously. - gzip
Compression Property Map - optional → Compresses content with GZip on the CDN side. CDN servers will request only uncompressed content from the origin. Conflicts with
fetch_compressed
,slice
andgzip_on
if any of them are enabled simultaneously.application/wasm
value is not supported when the shielded option is disabled, compression in this case is performed on the origin shielding, so it must be active for the MIME type to be compressed. - gzip
On Boolean - optional boolean → Enables content compression using gzip on the CDN side. CDN servers will request only uncompressed content from the origin. Conflicts with
fetch_compressed
,slice
andgzip_compression
if any of them are enabled simultaneously. - host
Header Property Map - optional → Use this option to specify the Host header that CDN servers use when request content from an origin server. If the option is not set, the header value is equal to the first CNAME. Conflicts with
forward_host_header
if both enabled simultaneously. - Boolean
- optional boolean → Defines whether the files with the Set-Cookies header are cached as one file or as different ones.
- ignore
Query BooleanString - optional boolean → Allows to specify how a file with different query strings is cached: either as one object (option is enabled) or as different objects (option is disabled.).
ignore_query_string
,query_params_whitelist
andquery_params_blacklist
options cannot be enabled simultaneously. - ip
Address Property MapAcl - optional → The option allows to control access to the CDN Resource content for specific IP addresses.
- query
Params Property MapBlacklist - optional → Use this option to specify query parameters, so files with these query strings will be cached as one object, and files with other parameters will be cached as different objects.
ignore_query_string
,query_params_whitelist
andquery_params_blacklist
options cannot be enabled simultaneously. - query
Params Property MapWhitelist - optional → Use this option to specify query parameters, so files with these query strings will be cached as different objects, and files with other parameters will be cached as one object.
ignore_query_string
,query_params_whitelist
andquery_params_blacklist
options cannot be enabled simultaneously. - referrer
Acl Property Map - optional → Use this option to control access to the CDN resource content for specified domain names.
- secure
Key Property Map - optional → Configures access with tokenized URLs. This makes impossible to access content without a valid (unexpired) token.
- slice Boolean
- optional boolean → If enabled, CDN servers request and cache files larger than 10 MB in parts. Origins must support HTTP Range requests.
- stale Property Map
- optional → If enabled, CDN serves stale cached content in case of origin unavailability.
- static
Headers Property Map - optional → Custom HTTP Headers that a CDN server adds to a response.
- static
Request Property MapHeaders - optional → Custom HTTP Headers for a CDN server to add to a request.
CdnResourceOptionsAllowedHttpMethods, CdnResourceOptionsAllowedHttpMethodsArgs
CdnResourceOptionsBrotliCompression, CdnResourceOptionsBrotliCompressionArgs
CdnResourceOptionsBrowserCacheSettings, CdnResourceOptionsBrowserCacheSettingsArgs
CdnResourceOptionsCors, CdnResourceOptionsCorsArgs
- Enabled bool
- optional boolean → Controls the option state.
- Values List<string>
- optional string → Value of the Access-Control-Allow-Origin header.
Possible values:
- [""] - adds "" as the header value, content will be uploaded for requests from any domain. *["domain.com", "second.dom.com"] - adds "$http_origin" as the header value if the origin matches one of the listed domains, content will be uploaded only for requests from the domains specified in the field.
- ["$http_origin"] - adds "$http_origin" as the header value, content will be uploaded for requests from any domain, and the domain from which the request was sent will be added to the header in the response.
- Enabled bool
- optional boolean → Controls the option state.
- Values []string
- optional string → Value of the Access-Control-Allow-Origin header.
Possible values:
- [""] - adds "" as the header value, content will be uploaded for requests from any domain. *["domain.com", "second.dom.com"] - adds "$http_origin" as the header value if the origin matches one of the listed domains, content will be uploaded only for requests from the domains specified in the field.
- ["$http_origin"] - adds "$http_origin" as the header value, content will be uploaded for requests from any domain, and the domain from which the request was sent will be added to the header in the response.
- enabled Boolean
- optional boolean → Controls the option state.
- values List<String>
- optional string → Value of the Access-Control-Allow-Origin header.
Possible values:
- [""] - adds "" as the header value, content will be uploaded for requests from any domain. *["domain.com", "second.dom.com"] - adds "$http_origin" as the header value if the origin matches one of the listed domains, content will be uploaded only for requests from the domains specified in the field.
- ["$http_origin"] - adds "$http_origin" as the header value, content will be uploaded for requests from any domain, and the domain from which the request was sent will be added to the header in the response.
- enabled boolean
- optional boolean → Controls the option state.
- values string[]
- optional string → Value of the Access-Control-Allow-Origin header.
Possible values:
- [""] - adds "" as the header value, content will be uploaded for requests from any domain. *["domain.com", "second.dom.com"] - adds "$http_origin" as the header value if the origin matches one of the listed domains, content will be uploaded only for requests from the domains specified in the field.
- ["$http_origin"] - adds "$http_origin" as the header value, content will be uploaded for requests from any domain, and the domain from which the request was sent will be added to the header in the response.
- enabled bool
- optional boolean → Controls the option state.
- values Sequence[str]
- optional string → Value of the Access-Control-Allow-Origin header.
Possible values:
- [""] - adds "" as the header value, content will be uploaded for requests from any domain. *["domain.com", "second.dom.com"] - adds "$http_origin" as the header value if the origin matches one of the listed domains, content will be uploaded only for requests from the domains specified in the field.
- ["$http_origin"] - adds "$http_origin" as the header value, content will be uploaded for requests from any domain, and the domain from which the request was sent will be added to the header in the response.
- enabled Boolean
- optional boolean → Controls the option state.
- values List<String>
- optional string → Value of the Access-Control-Allow-Origin header.
Possible values:
- [""] - adds "" as the header value, content will be uploaded for requests from any domain. *["domain.com", "second.dom.com"] - adds "$http_origin" as the header value if the origin matches one of the listed domains, content will be uploaded only for requests from the domains specified in the field.
- ["$http_origin"] - adds "$http_origin" as the header value, content will be uploaded for requests from any domain, and the domain from which the request was sent will be added to the header in the response.
CdnResourceOptionsCountryAcl, CdnResourceOptionsCountryAclArgs
- Enabled bool
- optional boolean → Controls the option state.
- Excepted
Values List<string> - optional string → List of countries according to ISO-3166-1. The meaning of the argument depends on
policy_type
value. - Policy
Type string - optional string → The type of CDN resource access policy. Must be one of following: "allow", "deny".
- Enabled bool
- optional boolean → Controls the option state.
- Excepted
Values []string - optional string → List of countries according to ISO-3166-1. The meaning of the argument depends on
policy_type
value. - Policy
Type string - optional string → The type of CDN resource access policy. Must be one of following: "allow", "deny".
- enabled Boolean
- optional boolean → Controls the option state.
- excepted
Values List<String> - optional string → List of countries according to ISO-3166-1. The meaning of the argument depends on
policy_type
value. - policy
Type String - optional string → The type of CDN resource access policy. Must be one of following: "allow", "deny".
- enabled boolean
- optional boolean → Controls the option state.
- excepted
Values string[] - optional string → List of countries according to ISO-3166-1. The meaning of the argument depends on
policy_type
value. - policy
Type string - optional string → The type of CDN resource access policy. Must be one of following: "allow", "deny".
- enabled bool
- optional boolean → Controls the option state.
- excepted_
values Sequence[str] - optional string → List of countries according to ISO-3166-1. The meaning of the argument depends on
policy_type
value. - policy_
type str - optional string → The type of CDN resource access policy. Must be one of following: "allow", "deny".
- enabled Boolean
- optional boolean → Controls the option state.
- excepted
Values List<String> - optional string → List of countries according to ISO-3166-1. The meaning of the argument depends on
policy_type
value. - policy
Type String - optional string → The type of CDN resource access policy. Must be one of following: "allow", "deny".
CdnResourceOptionsEdgeCacheSettings, CdnResourceOptionsEdgeCacheSettingsArgs
- Custom
Values Dictionary<string, string> - optional map of string → A map representing the caching time for a response with a specific response code.
These settings have a higher priority than the value field.
- Use
any
key to specify caching time for all response codes. - Use
0s
value to disable caching for a specific response code.
- Use
- Default string
- optional string → Enables content caching according to the origin cache settings.
- Enabled bool
- optional boolean → Controls the option state.
- Value string
- optional string → Caching time. The value is applied to the following response codes: 200, 206, 301, 302.
Responses with codes 4xx, 5xx will not be cached. Use
0s
to disable caching.
- Custom
Values map[string]string - optional map of string → A map representing the caching time for a response with a specific response code.
These settings have a higher priority than the value field.
- Use
any
key to specify caching time for all response codes. - Use
0s
value to disable caching for a specific response code.
- Use
- Default string
- optional string → Enables content caching according to the origin cache settings.
- Enabled bool
- optional boolean → Controls the option state.
- Value string
- optional string → Caching time. The value is applied to the following response codes: 200, 206, 301, 302.
Responses with codes 4xx, 5xx will not be cached. Use
0s
to disable caching.
- custom
Values Map<String,String> - optional map of string → A map representing the caching time for a response with a specific response code.
These settings have a higher priority than the value field.
- Use
any
key to specify caching time for all response codes. - Use
0s
value to disable caching for a specific response code.
- Use
- default_ String
- optional string → Enables content caching according to the origin cache settings.
- enabled Boolean
- optional boolean → Controls the option state.
- value String
- optional string → Caching time. The value is applied to the following response codes: 200, 206, 301, 302.
Responses with codes 4xx, 5xx will not be cached. Use
0s
to disable caching.
- custom
Values {[key: string]: string} - optional map of string → A map representing the caching time for a response with a specific response code.
These settings have a higher priority than the value field.
- Use
any
key to specify caching time for all response codes. - Use
0s
value to disable caching for a specific response code.
- Use
- default string
- optional string → Enables content caching according to the origin cache settings.
- enabled boolean
- optional boolean → Controls the option state.
- value string
- optional string → Caching time. The value is applied to the following response codes: 200, 206, 301, 302.
Responses with codes 4xx, 5xx will not be cached. Use
0s
to disable caching.
- custom_
values Mapping[str, str] - optional map of string → A map representing the caching time for a response with a specific response code.
These settings have a higher priority than the value field.
- Use
any
key to specify caching time for all response codes. - Use
0s
value to disable caching for a specific response code.
- Use
- default str
- optional string → Enables content caching according to the origin cache settings.
- enabled bool
- optional boolean → Controls the option state.
- value str
- optional string → Caching time. The value is applied to the following response codes: 200, 206, 301, 302.
Responses with codes 4xx, 5xx will not be cached. Use
0s
to disable caching.
- custom
Values Map<String> - optional map of string → A map representing the caching time for a response with a specific response code.
These settings have a higher priority than the value field.
- Use
any
key to specify caching time for all response codes. - Use
0s
value to disable caching for a specific response code.
- Use
- default String
- optional string → Enables content caching according to the origin cache settings.
- enabled Boolean
- optional boolean → Controls the option state.
- value String
- optional string → Caching time. The value is applied to the following response codes: 200, 206, 301, 302.
Responses with codes 4xx, 5xx will not be cached. Use
0s
to disable caching.
CdnResourceOptionsForceReturn, CdnResourceOptionsForceReturnArgs
CdnResourceOptionsGzipCompression, CdnResourceOptionsGzipCompressionArgs
CdnResourceOptionsHostHeader, CdnResourceOptionsHostHeaderArgs
CdnResourceOptionsIpAddressAcl, CdnResourceOptionsIpAddressAclArgs
- Enabled bool
- optional boolean → Controls the option state.
- Excepted
Values List<string> - optional string → List of IP addresses with a subnet mask. The meaning of the argument depends on
policy_type
value. - Policy
Type string - optional string → The type of CDN resource access policy. Must be one of following: "allow", "deny".
- Enabled bool
- optional boolean → Controls the option state.
- Excepted
Values []string - optional string → List of IP addresses with a subnet mask. The meaning of the argument depends on
policy_type
value. - Policy
Type string - optional string → The type of CDN resource access policy. Must be one of following: "allow", "deny".
- enabled Boolean
- optional boolean → Controls the option state.
- excepted
Values List<String> - optional string → List of IP addresses with a subnet mask. The meaning of the argument depends on
policy_type
value. - policy
Type String - optional string → The type of CDN resource access policy. Must be one of following: "allow", "deny".
- enabled boolean
- optional boolean → Controls the option state.
- excepted
Values string[] - optional string → List of IP addresses with a subnet mask. The meaning of the argument depends on
policy_type
value. - policy
Type string - optional string → The type of CDN resource access policy. Must be one of following: "allow", "deny".
- enabled bool
- optional boolean → Controls the option state.
- excepted_
values Sequence[str] - optional string → List of IP addresses with a subnet mask. The meaning of the argument depends on
policy_type
value. - policy_
type str - optional string → The type of CDN resource access policy. Must be one of following: "allow", "deny".
- enabled Boolean
- optional boolean → Controls the option state.
- excepted
Values List<String> - optional string → List of IP addresses with a subnet mask. The meaning of the argument depends on
policy_type
value. - policy
Type String - optional string → The type of CDN resource access policy. Must be one of following: "allow", "deny".
CdnResourceOptionsQueryParamsBlacklist, CdnResourceOptionsQueryParamsBlacklistArgs
CdnResourceOptionsQueryParamsWhitelist, CdnResourceOptionsQueryParamsWhitelistArgs
CdnResourceOptionsReferrerAcl, CdnResourceOptionsReferrerAclArgs
- Enabled bool
- optional boolean → Controls the option state.
- Excepted
Values List<string> - optional string → List of domain names or wildcard domains, without protocol. The meaning of the argument depends on
policy_type
value. - Policy
Type string - optional string → The type of CDN resource access policy. Must be one of following: "allow", "deny".
- Enabled bool
- optional boolean → Controls the option state.
- Excepted
Values []string - optional string → List of domain names or wildcard domains, without protocol. The meaning of the argument depends on
policy_type
value. - Policy
Type string - optional string → The type of CDN resource access policy. Must be one of following: "allow", "deny".
- enabled Boolean
- optional boolean → Controls the option state.
- excepted
Values List<String> - optional string → List of domain names or wildcard domains, without protocol. The meaning of the argument depends on
policy_type
value. - policy
Type String - optional string → The type of CDN resource access policy. Must be one of following: "allow", "deny".
- enabled boolean
- optional boolean → Controls the option state.
- excepted
Values string[] - optional string → List of domain names or wildcard domains, without protocol. The meaning of the argument depends on
policy_type
value. - policy
Type string - optional string → The type of CDN resource access policy. Must be one of following: "allow", "deny".
- enabled bool
- optional boolean → Controls the option state.
- excepted_
values Sequence[str] - optional string → List of domain names or wildcard domains, without protocol. The meaning of the argument depends on
policy_type
value. - policy_
type str - optional string → The type of CDN resource access policy. Must be one of following: "allow", "deny".
- enabled Boolean
- optional boolean → Controls the option state.
- excepted
Values List<String> - optional string → List of domain names or wildcard domains, without protocol. The meaning of the argument depends on
policy_type
value. - policy
Type String - optional string → The type of CDN resource access policy. Must be one of following: "allow", "deny".
CdnResourceOptionsSecureKey, CdnResourceOptionsSecureKeyArgs
- Enabled bool
- optional boolean → Controls the option state.
- Key string
- optional string → Secure key generated on your side which will be used for the URL signing.
- Type double
- optional number → Type of the URL signing. Choose one of the values: 0 — to include the end user's IP address to secure token generation, 2 — to exclude the end user's IP address from the secure token generation.
- Enabled bool
- optional boolean → Controls the option state.
- Key string
- optional string → Secure key generated on your side which will be used for the URL signing.
- Type float64
- optional number → Type of the URL signing. Choose one of the values: 0 — to include the end user's IP address to secure token generation, 2 — to exclude the end user's IP address from the secure token generation.
- enabled Boolean
- optional boolean → Controls the option state.
- key String
- optional string → Secure key generated on your side which will be used for the URL signing.
- type Double
- optional number → Type of the URL signing. Choose one of the values: 0 — to include the end user's IP address to secure token generation, 2 — to exclude the end user's IP address from the secure token generation.
- enabled boolean
- optional boolean → Controls the option state.
- key string
- optional string → Secure key generated on your side which will be used for the URL signing.
- type number
- optional number → Type of the URL signing. Choose one of the values: 0 — to include the end user's IP address to secure token generation, 2 — to exclude the end user's IP address from the secure token generation.
- enabled bool
- optional boolean → Controls the option state.
- key str
- optional string → Secure key generated on your side which will be used for the URL signing.
- type float
- optional number → Type of the URL signing. Choose one of the values: 0 — to include the end user's IP address to secure token generation, 2 — to exclude the end user's IP address from the secure token generation.
- enabled Boolean
- optional boolean → Controls the option state.
- key String
- optional string → Secure key generated on your side which will be used for the URL signing.
- type Number
- optional number → Type of the URL signing. Choose one of the values: 0 — to include the end user's IP address to secure token generation, 2 — to exclude the end user's IP address from the secure token generation.
CdnResourceOptionsStale, CdnResourceOptionsStaleArgs
CdnResourceOptionsStaticHeaders, CdnResourceOptionsStaticHeadersArgs
CdnResourceOptionsStaticRequestHeaders, CdnResourceOptionsStaticRequestHeadersArgs
CdnResourceShielding, CdnResourceShieldingArgs
CdnResourceSslCertificate, CdnResourceSslCertificateArgs
- Id float64
- optional number → ID of the SSL certificate linked to the CDN resource. Must be configured when
type
is "own". - Status string
- read-only string → Status of the SSL certificate.
- Type string
- optional string → Type of the SSL certificate. Must be one of following: "not_used", "own", "lets_encrypt".
CdnResourceTimeouts, CdnResourceTimeoutsArgs
Package Details
- Repository
- vkcs vk-cs/terraform-provider-vkcs
- License
- Notes
- This Pulumi package is based on the
vkcs
Terraform Provider.