1. Packages
  2. Vkcs Provider
  3. API Docs
  4. CdnResource
vkcs 0.9.3 published on Tuesday, Apr 15, 2025 by vk-cs

vkcs.CdnResource

Explore with Pulumi AI

vkcs logo
vkcs 0.9.3 published on Tuesday, Apr 15, 2025 by vk-cs

    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.
    OriginGroup double
    required number → Origin group ID with which the CDN resource is associated.
    Active bool
    optional boolean → Enables or disables a CDN resource.
    Options CdnResourceOptions
    optional → Options that configure a CDN resource.
    OriginProtocol 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.
    SecondaryHostnames List<string>
    optional string → Additional delivery domains (CNAMEs) that will be used to deliver content via the CDN.
    Shielding CdnResourceShielding
    optional → Use this attribute to configure origin shielding.
    SslCertificate CdnResourceSslCertificate
    optional → SSL certificate settings for content delivery over HTTPS protocol.
    Timeouts CdnResourceTimeouts
    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.
    OriginGroup float64
    required number → Origin group ID with which the CDN resource is associated.
    Active bool
    optional boolean → Enables or disables a CDN resource.
    Options CdnResourceOptionsArgs
    optional → Options that configure a CDN resource.
    OriginProtocol 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.
    SecondaryHostnames []string
    optional string → Additional delivery domains (CNAMEs) that will be used to deliver content via the CDN.
    Shielding CdnResourceShieldingArgs
    optional → Use this attribute to configure origin shielding.
    SslCertificate CdnResourceSslCertificateArgs
    optional → SSL certificate settings for content delivery over HTTPS protocol.
    Timeouts CdnResourceTimeoutsArgs
    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.
    originGroup Double
    required number → Origin group ID with which the CDN resource is associated.
    active Boolean
    optional boolean → Enables or disables a CDN resource.
    options CdnResourceOptions
    optional → Options that configure a CDN resource.
    originProtocol 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.
    secondaryHostnames List<String>
    optional string → Additional delivery domains (CNAMEs) that will be used to deliver content via the CDN.
    shielding CdnResourceShielding
    optional → Use this attribute to configure origin shielding.
    sslCertificate CdnResourceSslCertificate
    optional → SSL certificate settings for content delivery over HTTPS protocol.
    timeouts CdnResourceTimeouts
    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.
    originGroup number
    required number → Origin group ID with which the CDN resource is associated.
    active boolean
    optional boolean → Enables or disables a CDN resource.
    options CdnResourceOptions
    optional → Options that configure a CDN resource.
    originProtocol 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.
    secondaryHostnames string[]
    optional string → Additional delivery domains (CNAMEs) that will be used to deliver content via the CDN.
    shielding CdnResourceShielding
    optional → Use this attribute to configure origin shielding.
    sslCertificate CdnResourceSslCertificate
    optional → SSL certificate settings for content delivery over HTTPS protocol.
    timeouts CdnResourceTimeouts
    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 CdnResourceOptionsArgs
    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 CdnResourceShieldingArgs
    optional → Use this attribute to configure origin shielding.
    ssl_certificate CdnResourceSslCertificateArgs
    optional → SSL certificate settings for content delivery over HTTPS protocol.
    timeouts CdnResourceTimeoutsArgs
    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.
    originGroup 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.
    originProtocol 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.
    secondaryHostnames 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.
    sslCertificate 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:

    CdnResourceId double
    number → ID of the CDN resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    PresetApplied bool
    boolean → Protocol used by CDN servers to request content from an origin source.
    Status string
    string → CDN resource status.
    VpEnabled bool
    boolean → Defines whether the CDN resource is integrated with the Streaming Platform.
    CdnResourceId float64
    number → ID of the CDN resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    PresetApplied bool
    boolean → Protocol used by CDN servers to request content from an origin source.
    Status string
    string → CDN resource status.
    VpEnabled bool
    boolean → Defines whether the CDN resource is integrated with the Streaming Platform.
    cdnResourceId Double
    number → ID of the CDN resource.
    id String
    The provider-assigned unique ID for this managed resource.
    presetApplied Boolean
    boolean → Protocol used by CDN servers to request content from an origin source.
    status String
    string → CDN resource status.
    vpEnabled Boolean
    boolean → Defines whether the CDN resource is integrated with the Streaming Platform.
    cdnResourceId number
    number → ID of the CDN resource.
    id string
    The provider-assigned unique ID for this managed resource.
    presetApplied boolean
    boolean → Protocol used by CDN servers to request content from an origin source.
    status string
    string → CDN resource status.
    vpEnabled boolean
    boolean → Defines whether the CDN resource is integrated with the Streaming Platform.
    cdn_resource_id float
    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.
    cdnResourceId Number
    number → ID of the CDN resource.
    id String
    The provider-assigned unique ID for this managed resource.
    presetApplied Boolean
    boolean → Protocol used by CDN servers to request content from an origin source.
    status String
    string → CDN resource status.
    vpEnabled 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.
    The following state arguments are supported:
    Active bool
    optional boolean → Enables or disables a CDN resource.
    CdnResourceId double
    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 CdnResourceOptions
    optional → Options that configure a CDN resource.
    OriginGroup double
    required number → Origin group ID with which the CDN resource is associated.
    OriginProtocol 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.
    PresetApplied 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.
    SecondaryHostnames List<string>
    optional string → Additional delivery domains (CNAMEs) that will be used to deliver content via the CDN.
    Shielding CdnResourceShielding
    optional → Use this attribute to configure origin shielding.
    SslCertificate CdnResourceSslCertificate
    optional → SSL certificate settings for content delivery over HTTPS protocol.
    Status string
    string → CDN resource status.
    Timeouts CdnResourceTimeouts
    VpEnabled bool
    boolean → Defines whether the CDN resource is integrated with the Streaming Platform.
    Active bool
    optional boolean → Enables or disables a CDN resource.
    CdnResourceId float64
    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 CdnResourceOptionsArgs
    optional → Options that configure a CDN resource.
    OriginGroup float64
    required number → Origin group ID with which the CDN resource is associated.
    OriginProtocol 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.
    PresetApplied 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.
    SecondaryHostnames []string
    optional string → Additional delivery domains (CNAMEs) that will be used to deliver content via the CDN.
    Shielding CdnResourceShieldingArgs
    optional → Use this attribute to configure origin shielding.
    SslCertificate CdnResourceSslCertificateArgs
    optional → SSL certificate settings for content delivery over HTTPS protocol.
    Status string
    string → CDN resource status.
    Timeouts CdnResourceTimeoutsArgs
    VpEnabled bool
    boolean → Defines whether the CDN resource is integrated with the Streaming Platform.
    active Boolean
    optional boolean → Enables or disables a CDN resource.
    cdnResourceId Double
    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 CdnResourceOptions
    optional → Options that configure a CDN resource.
    originGroup Double
    required number → Origin group ID with which the CDN resource is associated.
    originProtocol 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.
    presetApplied 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.
    secondaryHostnames List<String>
    optional string → Additional delivery domains (CNAMEs) that will be used to deliver content via the CDN.
    shielding CdnResourceShielding
    optional → Use this attribute to configure origin shielding.
    sslCertificate CdnResourceSslCertificate
    optional → SSL certificate settings for content delivery over HTTPS protocol.
    status String
    string → CDN resource status.
    timeouts CdnResourceTimeouts
    vpEnabled Boolean
    boolean → Defines whether the CDN resource is integrated with the Streaming Platform.
    active boolean
    optional boolean → Enables or disables a CDN resource.
    cdnResourceId number
    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 CdnResourceOptions
    optional → Options that configure a CDN resource.
    originGroup number
    required number → Origin group ID with which the CDN resource is associated.
    originProtocol 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.
    presetApplied 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.
    secondaryHostnames string[]
    optional string → Additional delivery domains (CNAMEs) that will be used to deliver content via the CDN.
    shielding CdnResourceShielding
    optional → Use this attribute to configure origin shielding.
    sslCertificate CdnResourceSslCertificate
    optional → SSL certificate settings for content delivery over HTTPS protocol.
    status string
    string → CDN resource status.
    timeouts CdnResourceTimeouts
    vpEnabled 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_id float
    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 CdnResourceOptionsArgs
    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 CdnResourceShieldingArgs
    optional → Use this attribute to configure origin shielding.
    ssl_certificate CdnResourceSslCertificateArgs
    optional → SSL certificate settings for content delivery over HTTPS protocol.
    status str
    string → CDN resource status.
    timeouts CdnResourceTimeoutsArgs
    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.
    cdnResourceId Number
    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.
    originGroup Number
    required number → Origin group ID with which the CDN resource is associated.
    originProtocol 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.
    presetApplied 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.
    secondaryHostnames 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.
    sslCertificate Property Map
    optional → SSL certificate settings for content delivery over HTTPS protocol.
    status String
    string → CDN resource status.
    timeouts Property Map
    vpEnabled Boolean
    boolean → Defines whether the CDN resource is integrated with the Streaming Platform.

    Supporting Types

    CdnResourceOptions, CdnResourceOptionsArgs

    AllowedHttpMethods CdnResourceOptionsAllowedHttpMethods
    optional → HTTP methods allowed for content requests from the CDN.
    BrotliCompression CdnResourceOptionsBrotliCompression
    optional → Compresses content with Brotli on the CDN side. CDN servers will request only uncompressed content from the origin.
    BrowserCacheSettings CdnResourceOptionsBrowserCacheSettings
    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 CdnResourceOptionsCors
    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.
    CountryAcl CdnResourceOptionsCountryAcl
    optional → Use this option to control access to the content for specified countries.
    EdgeCacheSettings CdnResourceOptionsEdgeCacheSettings
    optional → Cache settings for CDN servers.
    FetchCompressed 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.
    ForceReturn CdnResourceOptionsForceReturn
    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.
    ForwardHostHeader bool
    optional boolean → Forwards the Host header from a end-user request to an origin server. Conflicts with host_header if both enabled simultaneously.
    GzipCompression CdnResourceOptionsGzipCompression
    optional → Compresses content with GZip on the CDN side. CDN servers will request only uncompressed content from the origin. Conflicts with fetch_compressed, slice and gzip_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.
    GzipOn 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 and gzip_compression if any of them are enabled simultaneously.
    HostHeader CdnResourceOptionsHostHeader
    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.
    IgnoreCookie bool
    optional boolean → Defines whether the files with the Set-Cookies header are cached as one file or as different ones.
    IgnoreQueryString bool
    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 and query_params_blacklist options cannot be enabled simultaneously.
    IpAddressAcl CdnResourceOptionsIpAddressAcl
    optional → The option allows to control access to the CDN Resource content for specific IP addresses.
    QueryParamsBlacklist CdnResourceOptionsQueryParamsBlacklist
    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 and query_params_blacklist options cannot be enabled simultaneously.
    QueryParamsWhitelist CdnResourceOptionsQueryParamsWhitelist
    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 and query_params_blacklist options cannot be enabled simultaneously.
    ReferrerAcl CdnResourceOptionsReferrerAcl
    optional → Use this option to control access to the CDN resource content for specified domain names.
    SecureKey CdnResourceOptionsSecureKey
    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 CdnResourceOptionsStale
    optional → If enabled, CDN serves stale cached content in case of origin unavailability.
    StaticHeaders CdnResourceOptionsStaticHeaders
    optional → Custom HTTP Headers that a CDN server adds to a response.
    StaticRequestHeaders CdnResourceOptionsStaticRequestHeaders
    optional → Custom HTTP Headers for a CDN server to add to a request.
    AllowedHttpMethods CdnResourceOptionsAllowedHttpMethods
    optional → HTTP methods allowed for content requests from the CDN.
    BrotliCompression CdnResourceOptionsBrotliCompression
    optional → Compresses content with Brotli on the CDN side. CDN servers will request only uncompressed content from the origin.
    BrowserCacheSettings CdnResourceOptionsBrowserCacheSettings
    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 CdnResourceOptionsCors
    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.
    CountryAcl CdnResourceOptionsCountryAcl
    optional → Use this option to control access to the content for specified countries.
    EdgeCacheSettings CdnResourceOptionsEdgeCacheSettings
    optional → Cache settings for CDN servers.
    FetchCompressed 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.
    ForceReturn CdnResourceOptionsForceReturn
    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.
    ForwardHostHeader bool
    optional boolean → Forwards the Host header from a end-user request to an origin server. Conflicts with host_header if both enabled simultaneously.
    GzipCompression CdnResourceOptionsGzipCompression
    optional → Compresses content with GZip on the CDN side. CDN servers will request only uncompressed content from the origin. Conflicts with fetch_compressed, slice and gzip_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.
    GzipOn 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 and gzip_compression if any of them are enabled simultaneously.
    HostHeader CdnResourceOptionsHostHeader
    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.
    IgnoreCookie bool
    optional boolean → Defines whether the files with the Set-Cookies header are cached as one file or as different ones.
    IgnoreQueryString bool
    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 and query_params_blacklist options cannot be enabled simultaneously.
    IpAddressAcl CdnResourceOptionsIpAddressAcl
    optional → The option allows to control access to the CDN Resource content for specific IP addresses.
    QueryParamsBlacklist CdnResourceOptionsQueryParamsBlacklist
    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 and query_params_blacklist options cannot be enabled simultaneously.
    QueryParamsWhitelist CdnResourceOptionsQueryParamsWhitelist
    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 and query_params_blacklist options cannot be enabled simultaneously.
    ReferrerAcl CdnResourceOptionsReferrerAcl
    optional → Use this option to control access to the CDN resource content for specified domain names.
    SecureKey CdnResourceOptionsSecureKey
    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 CdnResourceOptionsStale
    optional → If enabled, CDN serves stale cached content in case of origin unavailability.
    StaticHeaders CdnResourceOptionsStaticHeaders
    optional → Custom HTTP Headers that a CDN server adds to a response.
    StaticRequestHeaders CdnResourceOptionsStaticRequestHeaders
    optional → Custom HTTP Headers for a CDN server to add to a request.
    allowedHttpMethods CdnResourceOptionsAllowedHttpMethods
    optional → HTTP methods allowed for content requests from the CDN.
    brotliCompression CdnResourceOptionsBrotliCompression
    optional → Compresses content with Brotli on the CDN side. CDN servers will request only uncompressed content from the origin.
    browserCacheSettings CdnResourceOptionsBrowserCacheSettings
    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 CdnResourceOptionsCors
    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.
    countryAcl CdnResourceOptionsCountryAcl
    optional → Use this option to control access to the content for specified countries.
    edgeCacheSettings CdnResourceOptionsEdgeCacheSettings
    optional → Cache settings for CDN servers.
    fetchCompressed 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.
    forceReturn CdnResourceOptionsForceReturn
    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.
    forwardHostHeader Boolean
    optional boolean → Forwards the Host header from a end-user request to an origin server. Conflicts with host_header if both enabled simultaneously.
    gzipCompression CdnResourceOptionsGzipCompression
    optional → Compresses content with GZip on the CDN side. CDN servers will request only uncompressed content from the origin. Conflicts with fetch_compressed, slice and gzip_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.
    gzipOn 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 and gzip_compression if any of them are enabled simultaneously.
    hostHeader CdnResourceOptionsHostHeader
    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.
    ignoreCookie Boolean
    optional boolean → Defines whether the files with the Set-Cookies header are cached as one file or as different ones.
    ignoreQueryString Boolean
    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 and query_params_blacklist options cannot be enabled simultaneously.
    ipAddressAcl CdnResourceOptionsIpAddressAcl
    optional → The option allows to control access to the CDN Resource content for specific IP addresses.
    queryParamsBlacklist CdnResourceOptionsQueryParamsBlacklist
    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 and query_params_blacklist options cannot be enabled simultaneously.
    queryParamsWhitelist CdnResourceOptionsQueryParamsWhitelist
    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 and query_params_blacklist options cannot be enabled simultaneously.
    referrerAcl CdnResourceOptionsReferrerAcl
    optional → Use this option to control access to the CDN resource content for specified domain names.
    secureKey CdnResourceOptionsSecureKey
    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 CdnResourceOptionsStale
    optional → If enabled, CDN serves stale cached content in case of origin unavailability.
    staticHeaders CdnResourceOptionsStaticHeaders
    optional → Custom HTTP Headers that a CDN server adds to a response.
    staticRequestHeaders CdnResourceOptionsStaticRequestHeaders
    optional → Custom HTTP Headers for a CDN server to add to a request.
    allowedHttpMethods CdnResourceOptionsAllowedHttpMethods
    optional → HTTP methods allowed for content requests from the CDN.
    brotliCompression CdnResourceOptionsBrotliCompression
    optional → Compresses content with Brotli on the CDN side. CDN servers will request only uncompressed content from the origin.
    browserCacheSettings CdnResourceOptionsBrowserCacheSettings
    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 CdnResourceOptionsCors
    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.
    countryAcl CdnResourceOptionsCountryAcl
    optional → Use this option to control access to the content for specified countries.
    edgeCacheSettings CdnResourceOptionsEdgeCacheSettings
    optional → Cache settings for CDN servers.
    fetchCompressed 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.
    forceReturn CdnResourceOptionsForceReturn
    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.
    forwardHostHeader boolean
    optional boolean → Forwards the Host header from a end-user request to an origin server. Conflicts with host_header if both enabled simultaneously.
    gzipCompression CdnResourceOptionsGzipCompression
    optional → Compresses content with GZip on the CDN side. CDN servers will request only uncompressed content from the origin. Conflicts with fetch_compressed, slice and gzip_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.
    gzipOn 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 and gzip_compression if any of them are enabled simultaneously.
    hostHeader CdnResourceOptionsHostHeader
    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.
    ignoreCookie boolean
    optional boolean → Defines whether the files with the Set-Cookies header are cached as one file or as different ones.
    ignoreQueryString boolean
    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 and query_params_blacklist options cannot be enabled simultaneously.
    ipAddressAcl CdnResourceOptionsIpAddressAcl
    optional → The option allows to control access to the CDN Resource content for specific IP addresses.
    queryParamsBlacklist CdnResourceOptionsQueryParamsBlacklist
    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 and query_params_blacklist options cannot be enabled simultaneously.
    queryParamsWhitelist CdnResourceOptionsQueryParamsWhitelist
    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 and query_params_blacklist options cannot be enabled simultaneously.
    referrerAcl CdnResourceOptionsReferrerAcl
    optional → Use this option to control access to the CDN resource content for specified domain names.
    secureKey CdnResourceOptionsSecureKey
    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 CdnResourceOptionsStale
    optional → If enabled, CDN serves stale cached content in case of origin unavailability.
    staticHeaders CdnResourceOptionsStaticHeaders
    optional → Custom HTTP Headers that a CDN server adds to a response.
    staticRequestHeaders CdnResourceOptionsStaticRequestHeaders
    optional → Custom HTTP Headers for a CDN server to add to a request.
    allowed_http_methods CdnResourceOptionsAllowedHttpMethods
    optional → HTTP methods allowed for content requests from the CDN.
    brotli_compression CdnResourceOptionsBrotliCompression
    optional → Compresses content with Brotli on the CDN side. CDN servers will request only uncompressed content from the origin.
    browser_cache_settings CdnResourceOptionsBrowserCacheSettings
    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 CdnResourceOptionsCors
    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 CdnResourceOptionsCountryAcl
    optional → Use this option to control access to the content for specified countries.
    edge_cache_settings CdnResourceOptionsEdgeCacheSettings
    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 CdnResourceOptionsForceReturn
    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_header bool
    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 CdnResourceOptionsGzipCompression
    optional → Compresses content with GZip on the CDN side. CDN servers will request only uncompressed content from the origin. Conflicts with fetch_compressed, slice and gzip_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 and gzip_compression if any of them are enabled simultaneously.
    host_header CdnResourceOptionsHostHeader
    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.
    ignore_cookie bool
    optional boolean → Defines whether the files with the Set-Cookies header are cached as one file or as different ones.
    ignore_query_string bool
    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 and query_params_blacklist options cannot be enabled simultaneously.
    ip_address_acl CdnResourceOptionsIpAddressAcl
    optional → The option allows to control access to the CDN Resource content for specific IP addresses.
    query_params_blacklist CdnResourceOptionsQueryParamsBlacklist
    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 and query_params_blacklist options cannot be enabled simultaneously.
    query_params_whitelist CdnResourceOptionsQueryParamsWhitelist
    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 and query_params_blacklist options cannot be enabled simultaneously.
    referrer_acl CdnResourceOptionsReferrerAcl
    optional → Use this option to control access to the CDN resource content for specified domain names.
    secure_key CdnResourceOptionsSecureKey
    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 CdnResourceOptionsStale
    optional → If enabled, CDN serves stale cached content in case of origin unavailability.
    static_headers CdnResourceOptionsStaticHeaders
    optional → Custom HTTP Headers that a CDN server adds to a response.
    static_request_headers CdnResourceOptionsStaticRequestHeaders
    optional → Custom HTTP Headers for a CDN server to add to a request.
    allowedHttpMethods Property Map
    optional → HTTP methods allowed for content requests from the CDN.
    brotliCompression Property Map
    optional → Compresses content with Brotli on the CDN side. CDN servers will request only uncompressed content from the origin.
    browserCacheSettings Property Map
    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.
    countryAcl Property Map
    optional → Use this option to control access to the content for specified countries.
    edgeCacheSettings Property Map
    optional → Cache settings for CDN servers.
    fetchCompressed 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.
    forceReturn 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.
    forwardHostHeader Boolean
    optional boolean → Forwards the Host header from a end-user request to an origin server. Conflicts with host_header if both enabled simultaneously.
    gzipCompression 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 and gzip_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.
    gzipOn 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 and gzip_compression if any of them are enabled simultaneously.
    hostHeader 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.
    ignoreCookie Boolean
    optional boolean → Defines whether the files with the Set-Cookies header are cached as one file or as different ones.
    ignoreQueryString Boolean
    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 and query_params_blacklist options cannot be enabled simultaneously.
    ipAddressAcl Property Map
    optional → The option allows to control access to the CDN Resource content for specific IP addresses.
    queryParamsBlacklist Property Map
    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 and query_params_blacklist options cannot be enabled simultaneously.
    queryParamsWhitelist Property Map
    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 and query_params_blacklist options cannot be enabled simultaneously.
    referrerAcl Property Map
    optional → Use this option to control access to the CDN resource content for specified domain names.
    secureKey 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.
    staticHeaders Property Map
    optional → Custom HTTP Headers that a CDN server adds to a response.
    staticRequestHeaders Property Map
    optional → Custom HTTP Headers for a CDN server to add to a request.

    CdnResourceOptionsAllowedHttpMethods, CdnResourceOptionsAllowedHttpMethodsArgs

    Enabled bool
    optional boolean → Controls the option state.
    Values List<string>
    optional string → List of HTTP methods.
    Enabled bool
    optional boolean → Controls the option state.
    Values []string
    optional string → List of HTTP methods.
    enabled Boolean
    optional boolean → Controls the option state.
    values List<String>
    optional string → List of HTTP methods.
    enabled boolean
    optional boolean → Controls the option state.
    values string[]
    optional string → List of HTTP methods.
    enabled bool
    optional boolean → Controls the option state.
    values Sequence[str]
    optional string → List of HTTP methods.
    enabled Boolean
    optional boolean → Controls the option state.
    values List<String>
    optional string → List of HTTP methods.

    CdnResourceOptionsBrotliCompression, CdnResourceOptionsBrotliCompressionArgs

    Enabled bool
    optional boolean → Controls the option state.
    Values List<string>
    optional set of string → List of content types to be compressed. It's required to specify text/html here.
    Enabled bool
    optional boolean → Controls the option state.
    Values []string
    optional set of string → List of content types to be compressed. It's required to specify text/html here.
    enabled Boolean
    optional boolean → Controls the option state.
    values List<String>
    optional set of string → List of content types to be compressed. It's required to specify text/html here.
    enabled boolean
    optional boolean → Controls the option state.
    values string[]
    optional set of string → List of content types to be compressed. It's required to specify text/html here.
    enabled bool
    optional boolean → Controls the option state.
    values Sequence[str]
    optional set of string → List of content types to be compressed. It's required to specify text/html here.
    enabled Boolean
    optional boolean → Controls the option state.
    values List<String>
    optional set of string → List of content types to be compressed. It's required to specify text/html here.

    CdnResourceOptionsBrowserCacheSettings, CdnResourceOptionsBrowserCacheSettingsArgs

    Enabled bool
    optional boolean → Controls the option state.
    Value string
    optional string → Cache expiration time. Use '0s' to disable caching.
    Enabled bool
    optional boolean → Controls the option state.
    Value string
    optional string → Cache expiration time. Use '0s' to disable caching.
    enabled Boolean
    optional boolean → Controls the option state.
    value String
    optional string → Cache expiration time. Use '0s' to disable caching.
    enabled boolean
    optional boolean → Controls the option state.
    value string
    optional string → Cache expiration time. Use '0s' to disable caching.
    enabled bool
    optional boolean → Controls the option state.
    value str
    optional string → Cache expiration time. Use '0s' to disable caching.
    enabled Boolean
    optional boolean → Controls the option state.
    value String
    optional string → Cache expiration time. Use '0s' to disable caching.

    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.
    ExceptedValues List<string>
    optional string → List of countries according to ISO-3166-1. The meaning of the argument depends on policy_type value.
    PolicyType 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.
    ExceptedValues []string
    optional string → List of countries according to ISO-3166-1. The meaning of the argument depends on policy_type value.
    PolicyType 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.
    exceptedValues List<String>
    optional string → List of countries according to ISO-3166-1. The meaning of the argument depends on policy_type value.
    policyType 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.
    exceptedValues string[]
    optional string → List of countries according to ISO-3166-1. The meaning of the argument depends on policy_type value.
    policyType 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.
    exceptedValues List<String>
    optional string → List of countries according to ISO-3166-1. The meaning of the argument depends on policy_type value.
    policyType String
    optional string → The type of CDN resource access policy. Must be one of following: "allow", "deny".

    CdnResourceOptionsEdgeCacheSettings, CdnResourceOptionsEdgeCacheSettingsArgs

    CustomValues 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.
    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.
    CustomValues 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.
    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.
    customValues 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.
    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.
    customValues {[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.
    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.
    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.
    customValues 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.
    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

    Body string
    optional string → URL for redirection or text.
    Code double
    optional number → Status code value.
    Enabled bool
    optional boolean → Controls the option state.
    Body string
    optional string → URL for redirection or text.
    Code float64
    optional number → Status code value.
    Enabled bool
    optional boolean → Controls the option state.
    body String
    optional string → URL for redirection or text.
    code Double
    optional number → Status code value.
    enabled Boolean
    optional boolean → Controls the option state.
    body string
    optional string → URL for redirection or text.
    code number
    optional number → Status code value.
    enabled boolean
    optional boolean → Controls the option state.
    body str
    optional string → URL for redirection or text.
    code float
    optional number → Status code value.
    enabled bool
    optional boolean → Controls the option state.
    body String
    optional string → URL for redirection or text.
    code Number
    optional number → Status code value.
    enabled Boolean
    optional boolean → Controls the option state.

    CdnResourceOptionsGzipCompression, CdnResourceOptionsGzipCompressionArgs

    Enabled bool
    optional boolean → Controls the option state.
    Values List<string>
    optional set of string → List of content types to be compressed. It's required to specify text/html here.
    Enabled bool
    optional boolean → Controls the option state.
    Values []string
    optional set of string → List of content types to be compressed. It's required to specify text/html here.
    enabled Boolean
    optional boolean → Controls the option state.
    values List<String>
    optional set of string → List of content types to be compressed. It's required to specify text/html here.
    enabled boolean
    optional boolean → Controls the option state.
    values string[]
    optional set of string → List of content types to be compressed. It's required to specify text/html here.
    enabled bool
    optional boolean → Controls the option state.
    values Sequence[str]
    optional set of string → List of content types to be compressed. It's required to specify text/html here.
    enabled Boolean
    optional boolean → Controls the option state.
    values List<String>
    optional set of string → List of content types to be compressed. It's required to specify text/html here.

    CdnResourceOptionsHostHeader, CdnResourceOptionsHostHeaderArgs

    Enabled bool
    optional boolean → Controls the option state.
    Value string
    optional string → Host Header value.
    Enabled bool
    optional boolean → Controls the option state.
    Value string
    optional string → Host Header value.
    enabled Boolean
    optional boolean → Controls the option state.
    value String
    optional string → Host Header value.
    enabled boolean
    optional boolean → Controls the option state.
    value string
    optional string → Host Header value.
    enabled bool
    optional boolean → Controls the option state.
    value str
    optional string → Host Header value.
    enabled Boolean
    optional boolean → Controls the option state.
    value String
    optional string → Host Header value.

    CdnResourceOptionsIpAddressAcl, CdnResourceOptionsIpAddressAclArgs

    Enabled bool
    optional boolean → Controls the option state.
    ExceptedValues List<string>
    optional string → List of IP addresses with a subnet mask. The meaning of the argument depends on policy_type value.
    PolicyType 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.
    ExceptedValues []string
    optional string → List of IP addresses with a subnet mask. The meaning of the argument depends on policy_type value.
    PolicyType 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.
    exceptedValues List<String>
    optional string → List of IP addresses with a subnet mask. The meaning of the argument depends on policy_type value.
    policyType 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.
    exceptedValues string[]
    optional string → List of IP addresses with a subnet mask. The meaning of the argument depends on policy_type value.
    policyType 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.
    exceptedValues List<String>
    optional string → List of IP addresses with a subnet mask. The meaning of the argument depends on policy_type value.
    policyType String
    optional string → The type of CDN resource access policy. Must be one of following: "allow", "deny".

    CdnResourceOptionsQueryParamsBlacklist, CdnResourceOptionsQueryParamsBlacklistArgs

    Enabled bool
    optional boolean → Controls the option state.
    Values List<string>
    optional string → List of query parameters.
    Enabled bool
    optional boolean → Controls the option state.
    Values []string
    optional string → List of query parameters.
    enabled Boolean
    optional boolean → Controls the option state.
    values List<String>
    optional string → List of query parameters.
    enabled boolean
    optional boolean → Controls the option state.
    values string[]
    optional string → List of query parameters.
    enabled bool
    optional boolean → Controls the option state.
    values Sequence[str]
    optional string → List of query parameters.
    enabled Boolean
    optional boolean → Controls the option state.
    values List<String>
    optional string → List of query parameters.

    CdnResourceOptionsQueryParamsWhitelist, CdnResourceOptionsQueryParamsWhitelistArgs

    Enabled bool
    optional boolean → Controls the option state.
    Values List<string>
    optional string → List of query parameters.
    Enabled bool
    optional boolean → Controls the option state.
    Values []string
    optional string → List of query parameters.
    enabled Boolean
    optional boolean → Controls the option state.
    values List<String>
    optional string → List of query parameters.
    enabled boolean
    optional boolean → Controls the option state.
    values string[]
    optional string → List of query parameters.
    enabled bool
    optional boolean → Controls the option state.
    values Sequence[str]
    optional string → List of query parameters.
    enabled Boolean
    optional boolean → Controls the option state.
    values List<String>
    optional string → List of query parameters.

    CdnResourceOptionsReferrerAcl, CdnResourceOptionsReferrerAclArgs

    Enabled bool
    optional boolean → Controls the option state.
    ExceptedValues List<string>
    optional string → List of domain names or wildcard domains, without protocol. The meaning of the argument depends on policy_type value.
    PolicyType 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.
    ExceptedValues []string
    optional string → List of domain names or wildcard domains, without protocol. The meaning of the argument depends on policy_type value.
    PolicyType 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.
    exceptedValues List<String>
    optional string → List of domain names or wildcard domains, without protocol. The meaning of the argument depends on policy_type value.
    policyType 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.
    exceptedValues string[]
    optional string → List of domain names or wildcard domains, without protocol. The meaning of the argument depends on policy_type value.
    policyType 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.
    exceptedValues List<String>
    optional string → List of domain names or wildcard domains, without protocol. The meaning of the argument depends on policy_type value.
    policyType 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

    Enabled bool
    optional boolean → Controls the option state.
    Values List<string>
    optional string → The list of errors to which the option is applied.
    Enabled bool
    optional boolean → Controls the option state.
    Values []string
    optional string → The list of errors to which the option is applied.
    enabled Boolean
    optional boolean → Controls the option state.
    values List<String>
    optional string → The list of errors to which the option is applied.
    enabled boolean
    optional boolean → Controls the option state.
    values string[]
    optional string → The list of errors to which the option is applied.
    enabled bool
    optional boolean → Controls the option state.
    values Sequence[str]
    optional string → The list of errors to which the option is applied.
    enabled Boolean
    optional boolean → Controls the option state.
    values List<String>
    optional string → The list of errors to which the option is applied.

    CdnResourceOptionsStaticHeaders, CdnResourceOptionsStaticHeadersArgs

    Enabled bool
    optional boolean → Controls the option state.
    Value Dictionary<string, string>
    optional map of string → A map of static headers in the format "header_name": "header_value".
    Enabled bool
    optional boolean → Controls the option state.
    Value map[string]string
    optional map of string → A map of static headers in the format "header_name": "header_value".
    enabled Boolean
    optional boolean → Controls the option state.
    value Map<String,String>
    optional map of string → A map of static headers in the format "header_name": "header_value".
    enabled boolean
    optional boolean → Controls the option state.
    value {[key: string]: string}
    optional map of string → A map of static headers in the format "header_name": "header_value".
    enabled bool
    optional boolean → Controls the option state.
    value Mapping[str, str]
    optional map of string → A map of static headers in the format "header_name": "header_value".
    enabled Boolean
    optional boolean → Controls the option state.
    value Map<String>
    optional map of string → A map of static headers in the format "header_name": "header_value".

    CdnResourceOptionsStaticRequestHeaders, CdnResourceOptionsStaticRequestHeadersArgs

    Enabled bool
    optional boolean → Controls the option state.
    Value Dictionary<string, string>
    optional map of string → A map of static headers in the format "header_name": "header_value".
    Enabled bool
    optional boolean → Controls the option state.
    Value map[string]string
    optional map of string → A map of static headers in the format "header_name": "header_value".
    enabled Boolean
    optional boolean → Controls the option state.
    value Map<String,String>
    optional map of string → A map of static headers in the format "header_name": "header_value".
    enabled boolean
    optional boolean → Controls the option state.
    value {[key: string]: string}
    optional map of string → A map of static headers in the format "header_name": "header_value".
    enabled bool
    optional boolean → Controls the option state.
    value Mapping[str, str]
    optional map of string → A map of static headers in the format "header_name": "header_value".
    enabled Boolean
    optional boolean → Controls the option state.
    value Map<String>
    optional map of string → A map of static headers in the format "header_name": "header_value".

    CdnResourceShielding, CdnResourceShieldingArgs

    Enabled bool
    optional boolean → Defines whether origin shielding feature is enabled for the resource.
    PopId double
    optional number → ID of the origin shielding point of presence.
    Enabled bool
    optional boolean → Defines whether origin shielding feature is enabled for the resource.
    PopId float64
    optional number → ID of the origin shielding point of presence.
    enabled Boolean
    optional boolean → Defines whether origin shielding feature is enabled for the resource.
    popId Double
    optional number → ID of the origin shielding point of presence.
    enabled boolean
    optional boolean → Defines whether origin shielding feature is enabled for the resource.
    popId number
    optional number → ID of the origin shielding point of presence.
    enabled bool
    optional boolean → Defines whether origin shielding feature is enabled for the resource.
    pop_id float
    optional number → ID of the origin shielding point of presence.
    enabled Boolean
    optional boolean → Defines whether origin shielding feature is enabled for the resource.
    popId Number
    optional number → ID of the origin shielding point of presence.

    CdnResourceSslCertificate, CdnResourceSslCertificateArgs

    Id double
    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".
    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".
    id Double
    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".
    id number
    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".
    id float
    optional number → ID of the SSL certificate linked to the CDN resource. Must be configured when type is "own".
    status str
    read-only string → Status of the SSL certificate.
    type str
    optional string → Type of the SSL certificate. Must be one of following: "not_used", "own", "lets_encrypt".
    id Number
    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

    Create string
    Update string
    Create string
    Update string
    create String
    update String
    create string
    update string
    create str
    update str
    create String
    update String

    Package Details

    Repository
    vkcs vk-cs/terraform-provider-vkcs
    License
    Notes
    This Pulumi package is based on the vkcs Terraform Provider.
    vkcs logo
    vkcs 0.9.3 published on Tuesday, Apr 15, 2025 by vk-cs