yandex.CdnResource
Explore with Pulumi AI
Allows management of Yandex.Cloud CDN Resource.
NOTE: CDN provider must be activated prior usage of CDN resources, either via UI console or via yc cli command:
yc cdn provider activate --folder-id <folder-id> --type gcore
Example Usage
using Pulumi;
using Yandex = Pulumi.Yandex;
class MyStack : Stack
{
    public MyStack()
    {
        var myResource = new Yandex.CdnResource("myResource", new Yandex.CdnResourceArgs
        {
            Cname = "cdn1.yandex-example.ru",
            Active = false,
            OriginProtocol = "https",
            SecondaryHostnames = 
            {
                "cdn-example-1.yandex.ru",
                "cdn-example-2.yandex.ru",
            },
            OriginGroupId = yandex_cdn_origin_group.Foo_cdn_group_by_id.Id,
            Options = new Yandex.Inputs.CdnResourceOptionsArgs
            {
                EdgeCacheSettings = 345600,
                IgnoreCookie = true,
            },
        });
    }
}
package main
import (
	"github.com/pulumi/pulumi-yandex/sdk/go/yandex"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := yandex.NewCdnResource(ctx, "myResource", &yandex.CdnResourceArgs{
			Cname:          pulumi.String("cdn1.yandex-example.ru"),
			Active:         pulumi.Bool(false),
			OriginProtocol: pulumi.String("https"),
			SecondaryHostnames: pulumi.StringArray{
				pulumi.String("cdn-example-1.yandex.ru"),
				pulumi.String("cdn-example-2.yandex.ru"),
			},
			OriginGroupId: pulumi.Any(yandex_cdn_origin_group.Foo_cdn_group_by_id.Id),
			Options: &CdnResourceOptionsArgs{
				EdgeCacheSettings: pulumi.Int(345600),
				IgnoreCookie:      pulumi.Bool(true),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Coming soon!
import * as pulumi from "@pulumi/pulumi";
import * as yandex from "@pulumi/yandex";
const myResource = new yandex.CdnResource("myResource", {
    cname: "cdn1.yandex-example.ru",
    active: false,
    originProtocol: "https",
    secondaryHostnames: [
        "cdn-example-1.yandex.ru",
        "cdn-example-2.yandex.ru",
    ],
    originGroupId: yandex_cdn_origin_group.foo_cdn_group_by_id.id,
    options: {
        edgeCacheSettings: 345600,
        ignoreCookie: true,
    },
});
import pulumi
import pulumi_yandex as yandex
my_resource = yandex.CdnResource("myResource",
    cname="cdn1.yandex-example.ru",
    active=False,
    origin_protocol="https",
    secondary_hostnames=[
        "cdn-example-1.yandex.ru",
        "cdn-example-2.yandex.ru",
    ],
    origin_group_id=yandex_cdn_origin_group["foo_cdn_group_by_id"]["id"],
    options=yandex.CdnResourceOptionsArgs(
        edge_cache_settings=345600,
        ignore_cookie=True,
    ))
Coming soon!
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: Optional[CdnResourceArgs] = None,
                opts: Optional[ResourceOptions] = None)
@overload
def CdnResource(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                active: Optional[bool] = None,
                cname: Optional[str] = None,
                options: Optional[CdnResourceOptionsArgs] = None,
                origin_group_id: Optional[int] = None,
                origin_group_name: Optional[str] = None,
                origin_protocol: Optional[str] = None,
                secondary_hostnames: Optional[Sequence[str]] = None,
                ssl_certificate: Optional[CdnResourceSslCertificateArgs] = None,
                updated_at: Optional[str] = None)func NewCdnResource(ctx *Context, name string, args *CdnResourceArgs, opts ...ResourceOption) (*CdnResource, error)public CdnResource(string name, CdnResourceArgs? args = null, CustomResourceOptions? opts = null)
public CdnResource(String name, CdnResourceArgs args)
public CdnResource(String name, CdnResourceArgs args, CustomResourceOptions options)
type: yandex: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 Yandex.CdnResource("cdnResourceResource", new()
{
    Active = false,
    Cname = "string",
    Options = new Yandex.Inputs.CdnResourceOptionsArgs
    {
        AllowedHttpMethods = new[]
        {
            "string",
        },
        BrowserCacheSettings = 0,
        CacheHttpHeaders = new[]
        {
            "string",
        },
        Cors = new[]
        {
            "string",
        },
        CustomHostHeader = "string",
        CustomServerName = "string",
        DisableCache = false,
        DisableProxyForceRanges = false,
        EdgeCacheSettings = 0,
        FetchedCompressed = false,
        ForwardHostHeader = false,
        GzipOn = false,
        IgnoreCookie = false,
        IgnoreQueryParams = false,
        ProxyCacheMethodsSet = false,
        QueryParamsBlacklists = new[]
        {
            "string",
        },
        QueryParamsWhitelists = new[]
        {
            "string",
        },
        RedirectHttpToHttps = false,
        RedirectHttpsToHttp = false,
        Slice = false,
        StaticRequestHeaders = new[]
        {
            "string",
        },
        StaticResponseHeaders = 
        {
            { "string", "string" },
        },
    },
    OriginGroupId = 0,
    OriginGroupName = "string",
    OriginProtocol = "string",
    SecondaryHostnames = new[]
    {
        "string",
    },
    SslCertificate = new Yandex.Inputs.CdnResourceSslCertificateArgs
    {
        Type = "string",
        CertificateManagerId = "string",
        Status = "string",
    },
    UpdatedAt = "string",
});
example, err := yandex.NewCdnResource(ctx, "cdnResourceResource", &yandex.CdnResourceArgs{
	Active: pulumi.Bool(false),
	Cname:  pulumi.String("string"),
	Options: &yandex.CdnResourceOptionsArgs{
		AllowedHttpMethods: pulumi.StringArray{
			pulumi.String("string"),
		},
		BrowserCacheSettings: pulumi.Int(0),
		CacheHttpHeaders: pulumi.StringArray{
			pulumi.String("string"),
		},
		Cors: pulumi.StringArray{
			pulumi.String("string"),
		},
		CustomHostHeader:        pulumi.String("string"),
		CustomServerName:        pulumi.String("string"),
		DisableCache:            pulumi.Bool(false),
		DisableProxyForceRanges: pulumi.Bool(false),
		EdgeCacheSettings:       pulumi.Int(0),
		FetchedCompressed:       pulumi.Bool(false),
		ForwardHostHeader:       pulumi.Bool(false),
		GzipOn:                  pulumi.Bool(false),
		IgnoreCookie:            pulumi.Bool(false),
		IgnoreQueryParams:       pulumi.Bool(false),
		ProxyCacheMethodsSet:    pulumi.Bool(false),
		QueryParamsBlacklists: pulumi.StringArray{
			pulumi.String("string"),
		},
		QueryParamsWhitelists: pulumi.StringArray{
			pulumi.String("string"),
		},
		RedirectHttpToHttps: pulumi.Bool(false),
		RedirectHttpsToHttp: pulumi.Bool(false),
		Slice:               pulumi.Bool(false),
		StaticRequestHeaders: pulumi.StringArray{
			pulumi.String("string"),
		},
		StaticResponseHeaders: pulumi.StringMap{
			"string": pulumi.String("string"),
		},
	},
	OriginGroupId:   pulumi.Int(0),
	OriginGroupName: pulumi.String("string"),
	OriginProtocol:  pulumi.String("string"),
	SecondaryHostnames: pulumi.StringArray{
		pulumi.String("string"),
	},
	SslCertificate: &yandex.CdnResourceSslCertificateArgs{
		Type:                 pulumi.String("string"),
		CertificateManagerId: pulumi.String("string"),
		Status:               pulumi.String("string"),
	},
	UpdatedAt: pulumi.String("string"),
})
var cdnResourceResource = new CdnResource("cdnResourceResource", CdnResourceArgs.builder()
    .active(false)
    .cname("string")
    .options(CdnResourceOptionsArgs.builder()
        .allowedHttpMethods("string")
        .browserCacheSettings(0)
        .cacheHttpHeaders("string")
        .cors("string")
        .customHostHeader("string")
        .customServerName("string")
        .disableCache(false)
        .disableProxyForceRanges(false)
        .edgeCacheSettings(0)
        .fetchedCompressed(false)
        .forwardHostHeader(false)
        .gzipOn(false)
        .ignoreCookie(false)
        .ignoreQueryParams(false)
        .proxyCacheMethodsSet(false)
        .queryParamsBlacklists("string")
        .queryParamsWhitelists("string")
        .redirectHttpToHttps(false)
        .redirectHttpsToHttp(false)
        .slice(false)
        .staticRequestHeaders("string")
        .staticResponseHeaders(Map.of("string", "string"))
        .build())
    .originGroupId(0)
    .originGroupName("string")
    .originProtocol("string")
    .secondaryHostnames("string")
    .sslCertificate(CdnResourceSslCertificateArgs.builder()
        .type("string")
        .certificateManagerId("string")
        .status("string")
        .build())
    .updatedAt("string")
    .build());
cdn_resource_resource = yandex.CdnResource("cdnResourceResource",
    active=False,
    cname="string",
    options={
        "allowed_http_methods": ["string"],
        "browser_cache_settings": 0,
        "cache_http_headers": ["string"],
        "cors": ["string"],
        "custom_host_header": "string",
        "custom_server_name": "string",
        "disable_cache": False,
        "disable_proxy_force_ranges": False,
        "edge_cache_settings": 0,
        "fetched_compressed": False,
        "forward_host_header": False,
        "gzip_on": False,
        "ignore_cookie": False,
        "ignore_query_params": False,
        "proxy_cache_methods_set": False,
        "query_params_blacklists": ["string"],
        "query_params_whitelists": ["string"],
        "redirect_http_to_https": False,
        "redirect_https_to_http": False,
        "slice": False,
        "static_request_headers": ["string"],
        "static_response_headers": {
            "string": "string",
        },
    },
    origin_group_id=0,
    origin_group_name="string",
    origin_protocol="string",
    secondary_hostnames=["string"],
    ssl_certificate={
        "type": "string",
        "certificate_manager_id": "string",
        "status": "string",
    },
    updated_at="string")
const cdnResourceResource = new yandex.CdnResource("cdnResourceResource", {
    active: false,
    cname: "string",
    options: {
        allowedHttpMethods: ["string"],
        browserCacheSettings: 0,
        cacheHttpHeaders: ["string"],
        cors: ["string"],
        customHostHeader: "string",
        customServerName: "string",
        disableCache: false,
        disableProxyForceRanges: false,
        edgeCacheSettings: 0,
        fetchedCompressed: false,
        forwardHostHeader: false,
        gzipOn: false,
        ignoreCookie: false,
        ignoreQueryParams: false,
        proxyCacheMethodsSet: false,
        queryParamsBlacklists: ["string"],
        queryParamsWhitelists: ["string"],
        redirectHttpToHttps: false,
        redirectHttpsToHttp: false,
        slice: false,
        staticRequestHeaders: ["string"],
        staticResponseHeaders: {
            string: "string",
        },
    },
    originGroupId: 0,
    originGroupName: "string",
    originProtocol: "string",
    secondaryHostnames: ["string"],
    sslCertificate: {
        type: "string",
        certificateManagerId: "string",
        status: "string",
    },
    updatedAt: "string",
});
type: yandex:CdnResource
properties:
    active: false
    cname: string
    options:
        allowedHttpMethods:
            - string
        browserCacheSettings: 0
        cacheHttpHeaders:
            - string
        cors:
            - string
        customHostHeader: string
        customServerName: string
        disableCache: false
        disableProxyForceRanges: false
        edgeCacheSettings: 0
        fetchedCompressed: false
        forwardHostHeader: false
        gzipOn: false
        ignoreCookie: false
        ignoreQueryParams: false
        proxyCacheMethodsSet: false
        queryParamsBlacklists:
            - string
        queryParamsWhitelists:
            - string
        redirectHttpToHttps: false
        redirectHttpsToHttp: false
        slice: false
        staticRequestHeaders:
            - string
        staticResponseHeaders:
            string: string
    originGroupId: 0
    originGroupName: string
    originProtocol: string
    secondaryHostnames:
        - string
    sslCertificate:
        certificateManagerId: string
        status: string
        type: string
    updatedAt: 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:
- Active bool
- Flag to create Resource either in active or disabled state. True - the content from CDN is available to clients.
- Cname string
- CDN endpoint CNAME, must be unique among resources.
- Options
CdnResource Options 
- CDN Resource settings and options to tune CDN edge behavior.
- OriginGroup intId 
- OriginGroup stringName 
- OriginProtocol string
- SecondaryHostnames List<string>
- list of secondary hostname strings.
- SslCertificate CdnResource Ssl Certificate 
- UpdatedAt string
- Active bool
- Flag to create Resource either in active or disabled state. True - the content from CDN is available to clients.
- Cname string
- CDN endpoint CNAME, must be unique among resources.
- Options
CdnResource Options Args 
- CDN Resource settings and options to tune CDN edge behavior.
- OriginGroup intId 
- OriginGroup stringName 
- OriginProtocol string
- SecondaryHostnames []string
- list of secondary hostname strings.
- SslCertificate CdnResource Ssl Certificate Args 
- UpdatedAt string
- active Boolean
- Flag to create Resource either in active or disabled state. True - the content from CDN is available to clients.
- cname String
- CDN endpoint CNAME, must be unique among resources.
- options
CdnResource Options 
- CDN Resource settings and options to tune CDN edge behavior.
- originGroup IntegerId 
- originGroup StringName 
- originProtocol String
- secondaryHostnames List<String>
- list of secondary hostname strings.
- sslCertificate CdnResource Ssl Certificate 
- updatedAt String
- active boolean
- Flag to create Resource either in active or disabled state. True - the content from CDN is available to clients.
- cname string
- CDN endpoint CNAME, must be unique among resources.
- options
CdnResource Options 
- CDN Resource settings and options to tune CDN edge behavior.
- originGroup numberId 
- originGroup stringName 
- originProtocol string
- secondaryHostnames string[]
- list of secondary hostname strings.
- sslCertificate CdnResource Ssl Certificate 
- updatedAt string
- active bool
- Flag to create Resource either in active or disabled state. True - the content from CDN is available to clients.
- cname str
- CDN endpoint CNAME, must be unique among resources.
- options
CdnResource Options Args 
- CDN Resource settings and options to tune CDN edge behavior.
- origin_group_ intid 
- origin_group_ strname 
- origin_protocol str
- secondary_hostnames Sequence[str]
- list of secondary hostname strings.
- ssl_certificate CdnResource Ssl Certificate Args 
- updated_at str
- active Boolean
- Flag to create Resource either in active or disabled state. True - the content from CDN is available to clients.
- cname String
- CDN endpoint CNAME, must be unique among resources.
- options Property Map
- CDN Resource settings and options to tune CDN edge behavior.
- originGroup NumberId 
- originGroup StringName 
- originProtocol String
- secondaryHostnames List<String>
- list of secondary hostname strings.
- sslCertificate Property Map
- updatedAt String
Outputs
All input properties are implicitly available as output properties. Additionally, the CdnResource resource produces the following output properties:
- created_at str
- Creation timestamp of the IoT Core Device
- folder_id str
- id str
- The provider-assigned unique ID for this managed resource.
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,
        cname: Optional[str] = None,
        created_at: Optional[str] = None,
        folder_id: Optional[str] = None,
        options: Optional[CdnResourceOptionsArgs] = None,
        origin_group_id: Optional[int] = None,
        origin_group_name: Optional[str] = None,
        origin_protocol: Optional[str] = None,
        secondary_hostnames: Optional[Sequence[str]] = None,
        ssl_certificate: Optional[CdnResourceSslCertificateArgs] = None,
        updated_at: Optional[str] = None) -> CdnResourcefunc GetCdnResource(ctx *Context, name string, id IDInput, state *CdnResourceState, opts ...ResourceOption) (*CdnResource, error)public static CdnResource Get(string name, Input<string> id, CdnResourceState? state, CustomResourceOptions? opts = null)public static CdnResource get(String name, Output<String> id, CdnResourceState state, CustomResourceOptions options)resources:  _:    type: yandex:CdnResource    get:      id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Active bool
- Flag to create Resource either in active or disabled state. True - the content from CDN is available to clients.
- Cname string
- CDN endpoint CNAME, must be unique among resources.
- CreatedAt string
- Creation timestamp of the IoT Core Device
- FolderId string
- Options
CdnResource Options 
- CDN Resource settings and options to tune CDN edge behavior.
- OriginGroup intId 
- OriginGroup stringName 
- OriginProtocol string
- SecondaryHostnames List<string>
- list of secondary hostname strings.
- SslCertificate CdnResource Ssl Certificate 
- UpdatedAt string
- Active bool
- Flag to create Resource either in active or disabled state. True - the content from CDN is available to clients.
- Cname string
- CDN endpoint CNAME, must be unique among resources.
- CreatedAt string
- Creation timestamp of the IoT Core Device
- FolderId string
- Options
CdnResource Options Args 
- CDN Resource settings and options to tune CDN edge behavior.
- OriginGroup intId 
- OriginGroup stringName 
- OriginProtocol string
- SecondaryHostnames []string
- list of secondary hostname strings.
- SslCertificate CdnResource Ssl Certificate Args 
- UpdatedAt string
- active Boolean
- Flag to create Resource either in active or disabled state. True - the content from CDN is available to clients.
- cname String
- CDN endpoint CNAME, must be unique among resources.
- createdAt String
- Creation timestamp of the IoT Core Device
- folderId String
- options
CdnResource Options 
- CDN Resource settings and options to tune CDN edge behavior.
- originGroup IntegerId 
- originGroup StringName 
- originProtocol String
- secondaryHostnames List<String>
- list of secondary hostname strings.
- sslCertificate CdnResource Ssl Certificate 
- updatedAt String
- active boolean
- Flag to create Resource either in active or disabled state. True - the content from CDN is available to clients.
- cname string
- CDN endpoint CNAME, must be unique among resources.
- createdAt string
- Creation timestamp of the IoT Core Device
- folderId string
- options
CdnResource Options 
- CDN Resource settings and options to tune CDN edge behavior.
- originGroup numberId 
- originGroup stringName 
- originProtocol string
- secondaryHostnames string[]
- list of secondary hostname strings.
- sslCertificate CdnResource Ssl Certificate 
- updatedAt string
- active bool
- Flag to create Resource either in active or disabled state. True - the content from CDN is available to clients.
- cname str
- CDN endpoint CNAME, must be unique among resources.
- created_at str
- Creation timestamp of the IoT Core Device
- folder_id str
- options
CdnResource Options Args 
- CDN Resource settings and options to tune CDN edge behavior.
- origin_group_ intid 
- origin_group_ strname 
- origin_protocol str
- secondary_hostnames Sequence[str]
- list of secondary hostname strings.
- ssl_certificate CdnResource Ssl Certificate Args 
- updated_at str
- active Boolean
- Flag to create Resource either in active or disabled state. True - the content from CDN is available to clients.
- cname String
- CDN endpoint CNAME, must be unique among resources.
- createdAt String
- Creation timestamp of the IoT Core Device
- folderId String
- options Property Map
- CDN Resource settings and options to tune CDN edge behavior.
- originGroup NumberId 
- originGroup StringName 
- originProtocol String
- secondaryHostnames List<String>
- list of secondary hostname strings.
- sslCertificate Property Map
- updatedAt String
Supporting Types
CdnResourceOptions, CdnResourceOptionsArgs      
- AllowedHttp List<string>Methods 
- HTTP methods for your CDN content. By default the following methods are allowed: GET, HEAD, POST, PUT, PATCH, DELETE, OPTIONS. In case some methods are not allowed to the user, they will get the 405 (Method Not Allowed) response. If the method is not supported, the user gets the 501 (Not Implemented) response.
- BrowserCache intSettings 
- set up a cache period for the end-users browser. Content will be cached due to origin settings. If there are no cache settings on your origin, the content will not be cached. The list of HTTP response codes that can be cached in browsers: 200, 201, 204, 206, 301, 302, 303, 304, 307, 308. Other response codes will not be cached. The default value is 4 days.
- CacheHttp List<string>Headers 
- list HTTP headers that must be included in responses to clients.
- Cors List<string>
- parameter that lets browsers get access to selected resources from a domain different to a domain from which the request is received.
- CustomHost stringHeader 
- custom value for the Host header. Your server must be able to process requests with the chosen header.
- CustomServer stringName 
- wildcard additional CNAME. If a resource has a wildcard additional CNAME, you can use your own certificate for content delivery via HTTPS. Read-only.
- DisableCache bool
- setup a cache status.
- DisableProxy boolForce Ranges 
- disabling proxy force ranges.
- EdgeCache intSettings 
- content will be cached according to origin cache settings. The value applies for a response with codes 200, 201, 204, 206, 301, 302, 303, 304, 307, 308 if an origin server does not have caching HTTP headers. Responses with other codes will not be cached.
- FetchedCompressed bool
- option helps you to reduce the bandwidth between origin and CDN servers. Also, content delivery speed becomes higher because of reducing the time for compressing files in a CDN.
- ForwardHost boolHeader 
- choose the Forward Host header option if is important to send in the request to the Origin the same Host header as was sent in the request to CDN server.
- GzipOn bool
- GZip compression at CDN servers reduces file size by 70% and can be as high as 90%.
- bool
- set for ignoring cookie.
- IgnoreQuery boolParams 
- files with different query parameters are cached as objects with the same key regardless of the parameter value. selected by default.
- ProxyCache boolMethods Set 
- allows caching for GET, HEAD and POST requests.
- QueryParams List<string>Blacklists 
- files with the specified query parameters are cached as objects with the same key, files with other parameters are cached as objects with different keys.
- QueryParams List<string>Whitelists 
- files with the specified query parameters are cached as objects with different keys, files with other parameters are cached as objects with the same key.
- RedirectHttp boolTo Https 
- set up a redirect from HTTP to HTTPS.
- RedirectHttps boolTo Http 
- set up a redirect from HTTPS to HTTP.
- Slice bool
- files larger than 10 MB will be requested and cached in parts (no larger than 10 MB each part). It reduces time to first byte. The origin must support HTTP Range requests.
- StaticRequest List<string>Headers 
- set up custom headers that CDN servers send in requests to origins.
- StaticResponse Dictionary<string, string>Headers 
- AllowedHttp []stringMethods 
- HTTP methods for your CDN content. By default the following methods are allowed: GET, HEAD, POST, PUT, PATCH, DELETE, OPTIONS. In case some methods are not allowed to the user, they will get the 405 (Method Not Allowed) response. If the method is not supported, the user gets the 501 (Not Implemented) response.
- BrowserCache intSettings 
- set up a cache period for the end-users browser. Content will be cached due to origin settings. If there are no cache settings on your origin, the content will not be cached. The list of HTTP response codes that can be cached in browsers: 200, 201, 204, 206, 301, 302, 303, 304, 307, 308. Other response codes will not be cached. The default value is 4 days.
- CacheHttp []stringHeaders 
- list HTTP headers that must be included in responses to clients.
- Cors []string
- parameter that lets browsers get access to selected resources from a domain different to a domain from which the request is received.
- CustomHost stringHeader 
- custom value for the Host header. Your server must be able to process requests with the chosen header.
- CustomServer stringName 
- wildcard additional CNAME. If a resource has a wildcard additional CNAME, you can use your own certificate for content delivery via HTTPS. Read-only.
- DisableCache bool
- setup a cache status.
- DisableProxy boolForce Ranges 
- disabling proxy force ranges.
- EdgeCache intSettings 
- content will be cached according to origin cache settings. The value applies for a response with codes 200, 201, 204, 206, 301, 302, 303, 304, 307, 308 if an origin server does not have caching HTTP headers. Responses with other codes will not be cached.
- FetchedCompressed bool
- option helps you to reduce the bandwidth between origin and CDN servers. Also, content delivery speed becomes higher because of reducing the time for compressing files in a CDN.
- ForwardHost boolHeader 
- choose the Forward Host header option if is important to send in the request to the Origin the same Host header as was sent in the request to CDN server.
- GzipOn bool
- GZip compression at CDN servers reduces file size by 70% and can be as high as 90%.
- bool
- set for ignoring cookie.
- IgnoreQuery boolParams 
- files with different query parameters are cached as objects with the same key regardless of the parameter value. selected by default.
- ProxyCache boolMethods Set 
- allows caching for GET, HEAD and POST requests.
- QueryParams []stringBlacklists 
- files with the specified query parameters are cached as objects with the same key, files with other parameters are cached as objects with different keys.
- QueryParams []stringWhitelists 
- files with the specified query parameters are cached as objects with different keys, files with other parameters are cached as objects with the same key.
- RedirectHttp boolTo Https 
- set up a redirect from HTTP to HTTPS.
- RedirectHttps boolTo Http 
- set up a redirect from HTTPS to HTTP.
- Slice bool
- files larger than 10 MB will be requested and cached in parts (no larger than 10 MB each part). It reduces time to first byte. The origin must support HTTP Range requests.
- StaticRequest []stringHeaders 
- set up custom headers that CDN servers send in requests to origins.
- StaticResponse map[string]stringHeaders 
- allowedHttp List<String>Methods 
- HTTP methods for your CDN content. By default the following methods are allowed: GET, HEAD, POST, PUT, PATCH, DELETE, OPTIONS. In case some methods are not allowed to the user, they will get the 405 (Method Not Allowed) response. If the method is not supported, the user gets the 501 (Not Implemented) response.
- browserCache IntegerSettings 
- set up a cache period for the end-users browser. Content will be cached due to origin settings. If there are no cache settings on your origin, the content will not be cached. The list of HTTP response codes that can be cached in browsers: 200, 201, 204, 206, 301, 302, 303, 304, 307, 308. Other response codes will not be cached. The default value is 4 days.
- cacheHttp List<String>Headers 
- list HTTP headers that must be included in responses to clients.
- cors List<String>
- parameter that lets browsers get access to selected resources from a domain different to a domain from which the request is received.
- customHost StringHeader 
- custom value for the Host header. Your server must be able to process requests with the chosen header.
- customServer StringName 
- wildcard additional CNAME. If a resource has a wildcard additional CNAME, you can use your own certificate for content delivery via HTTPS. Read-only.
- disableCache Boolean
- setup a cache status.
- disableProxy BooleanForce Ranges 
- disabling proxy force ranges.
- edgeCache IntegerSettings 
- content will be cached according to origin cache settings. The value applies for a response with codes 200, 201, 204, 206, 301, 302, 303, 304, 307, 308 if an origin server does not have caching HTTP headers. Responses with other codes will not be cached.
- fetchedCompressed Boolean
- option helps you to reduce the bandwidth between origin and CDN servers. Also, content delivery speed becomes higher because of reducing the time for compressing files in a CDN.
- forwardHost BooleanHeader 
- choose the Forward Host header option if is important to send in the request to the Origin the same Host header as was sent in the request to CDN server.
- gzipOn Boolean
- GZip compression at CDN servers reduces file size by 70% and can be as high as 90%.
- Boolean
- set for ignoring cookie.
- ignoreQuery BooleanParams 
- files with different query parameters are cached as objects with the same key regardless of the parameter value. selected by default.
- proxyCache BooleanMethods Set 
- allows caching for GET, HEAD and POST requests.
- queryParams List<String>Blacklists 
- files with the specified query parameters are cached as objects with the same key, files with other parameters are cached as objects with different keys.
- queryParams List<String>Whitelists 
- files with the specified query parameters are cached as objects with different keys, files with other parameters are cached as objects with the same key.
- redirectHttp BooleanTo Https 
- set up a redirect from HTTP to HTTPS.
- redirectHttps BooleanTo Http 
- set up a redirect from HTTPS to HTTP.
- slice Boolean
- files larger than 10 MB will be requested and cached in parts (no larger than 10 MB each part). It reduces time to first byte. The origin must support HTTP Range requests.
- staticRequest List<String>Headers 
- set up custom headers that CDN servers send in requests to origins.
- staticResponse Map<String,String>Headers 
- allowedHttp string[]Methods 
- HTTP methods for your CDN content. By default the following methods are allowed: GET, HEAD, POST, PUT, PATCH, DELETE, OPTIONS. In case some methods are not allowed to the user, they will get the 405 (Method Not Allowed) response. If the method is not supported, the user gets the 501 (Not Implemented) response.
- browserCache numberSettings 
- set up a cache period for the end-users browser. Content will be cached due to origin settings. If there are no cache settings on your origin, the content will not be cached. The list of HTTP response codes that can be cached in browsers: 200, 201, 204, 206, 301, 302, 303, 304, 307, 308. Other response codes will not be cached. The default value is 4 days.
- cacheHttp string[]Headers 
- list HTTP headers that must be included in responses to clients.
- cors string[]
- parameter that lets browsers get access to selected resources from a domain different to a domain from which the request is received.
- customHost stringHeader 
- custom value for the Host header. Your server must be able to process requests with the chosen header.
- customServer stringName 
- wildcard additional CNAME. If a resource has a wildcard additional CNAME, you can use your own certificate for content delivery via HTTPS. Read-only.
- disableCache boolean
- setup a cache status.
- disableProxy booleanForce Ranges 
- disabling proxy force ranges.
- edgeCache numberSettings 
- content will be cached according to origin cache settings. The value applies for a response with codes 200, 201, 204, 206, 301, 302, 303, 304, 307, 308 if an origin server does not have caching HTTP headers. Responses with other codes will not be cached.
- fetchedCompressed boolean
- option helps you to reduce the bandwidth between origin and CDN servers. Also, content delivery speed becomes higher because of reducing the time for compressing files in a CDN.
- forwardHost booleanHeader 
- choose the Forward Host header option if is important to send in the request to the Origin the same Host header as was sent in the request to CDN server.
- gzipOn boolean
- GZip compression at CDN servers reduces file size by 70% and can be as high as 90%.
- boolean
- set for ignoring cookie.
- ignoreQuery booleanParams 
- files with different query parameters are cached as objects with the same key regardless of the parameter value. selected by default.
- proxyCache booleanMethods Set 
- allows caching for GET, HEAD and POST requests.
- queryParams string[]Blacklists 
- files with the specified query parameters are cached as objects with the same key, files with other parameters are cached as objects with different keys.
- queryParams string[]Whitelists 
- files with the specified query parameters are cached as objects with different keys, files with other parameters are cached as objects with the same key.
- redirectHttp booleanTo Https 
- set up a redirect from HTTP to HTTPS.
- redirectHttps booleanTo Http 
- set up a redirect from HTTPS to HTTP.
- slice boolean
- files larger than 10 MB will be requested and cached in parts (no larger than 10 MB each part). It reduces time to first byte. The origin must support HTTP Range requests.
- staticRequest string[]Headers 
- set up custom headers that CDN servers send in requests to origins.
- staticResponse {[key: string]: string}Headers 
- allowed_http_ Sequence[str]methods 
- HTTP methods for your CDN content. By default the following methods are allowed: GET, HEAD, POST, PUT, PATCH, DELETE, OPTIONS. In case some methods are not allowed to the user, they will get the 405 (Method Not Allowed) response. If the method is not supported, the user gets the 501 (Not Implemented) response.
- browser_cache_ intsettings 
- set up a cache period for the end-users browser. Content will be cached due to origin settings. If there are no cache settings on your origin, the content will not be cached. The list of HTTP response codes that can be cached in browsers: 200, 201, 204, 206, 301, 302, 303, 304, 307, 308. Other response codes will not be cached. The default value is 4 days.
- cache_http_ Sequence[str]headers 
- list HTTP headers that must be included in responses to clients.
- cors Sequence[str]
- parameter that lets browsers get access to selected resources from a domain different to a domain from which the request is received.
- custom_host_ strheader 
- custom value for the Host header. Your server must be able to process requests with the chosen header.
- custom_server_ strname 
- wildcard additional CNAME. If a resource has a wildcard additional CNAME, you can use your own certificate for content delivery via HTTPS. Read-only.
- disable_cache bool
- setup a cache status.
- disable_proxy_ boolforce_ ranges 
- disabling proxy force ranges.
- edge_cache_ intsettings 
- content will be cached according to origin cache settings. The value applies for a response with codes 200, 201, 204, 206, 301, 302, 303, 304, 307, 308 if an origin server does not have caching HTTP headers. Responses with other codes will not be cached.
- fetched_compressed bool
- option helps you to reduce the bandwidth between origin and CDN servers. Also, content delivery speed becomes higher because of reducing the time for compressing files in a CDN.
- forward_host_ boolheader 
- choose the Forward Host header option if is important to send in the request to the Origin the same Host header as was sent in the request to CDN server.
- gzip_on bool
- GZip compression at CDN servers reduces file size by 70% and can be as high as 90%.
- bool
- set for ignoring cookie.
- ignore_query_ boolparams 
- files with different query parameters are cached as objects with the same key regardless of the parameter value. selected by default.
- proxy_cache_ boolmethods_ set 
- allows caching for GET, HEAD and POST requests.
- query_params_ Sequence[str]blacklists 
- files with the specified query parameters are cached as objects with the same key, files with other parameters are cached as objects with different keys.
- query_params_ Sequence[str]whitelists 
- files with the specified query parameters are cached as objects with different keys, files with other parameters are cached as objects with the same key.
- redirect_http_ boolto_ https 
- set up a redirect from HTTP to HTTPS.
- redirect_https_ boolto_ http 
- set up a redirect from HTTPS to HTTP.
- slice bool
- files larger than 10 MB will be requested and cached in parts (no larger than 10 MB each part). It reduces time to first byte. The origin must support HTTP Range requests.
- static_request_ Sequence[str]headers 
- set up custom headers that CDN servers send in requests to origins.
- static_response_ Mapping[str, str]headers 
- allowedHttp List<String>Methods 
- HTTP methods for your CDN content. By default the following methods are allowed: GET, HEAD, POST, PUT, PATCH, DELETE, OPTIONS. In case some methods are not allowed to the user, they will get the 405 (Method Not Allowed) response. If the method is not supported, the user gets the 501 (Not Implemented) response.
- browserCache NumberSettings 
- set up a cache period for the end-users browser. Content will be cached due to origin settings. If there are no cache settings on your origin, the content will not be cached. The list of HTTP response codes that can be cached in browsers: 200, 201, 204, 206, 301, 302, 303, 304, 307, 308. Other response codes will not be cached. The default value is 4 days.
- cacheHttp List<String>Headers 
- list HTTP headers that must be included in responses to clients.
- cors List<String>
- parameter that lets browsers get access to selected resources from a domain different to a domain from which the request is received.
- customHost StringHeader 
- custom value for the Host header. Your server must be able to process requests with the chosen header.
- customServer StringName 
- wildcard additional CNAME. If a resource has a wildcard additional CNAME, you can use your own certificate for content delivery via HTTPS. Read-only.
- disableCache Boolean
- setup a cache status.
- disableProxy BooleanForce Ranges 
- disabling proxy force ranges.
- edgeCache NumberSettings 
- content will be cached according to origin cache settings. The value applies for a response with codes 200, 201, 204, 206, 301, 302, 303, 304, 307, 308 if an origin server does not have caching HTTP headers. Responses with other codes will not be cached.
- fetchedCompressed Boolean
- option helps you to reduce the bandwidth between origin and CDN servers. Also, content delivery speed becomes higher because of reducing the time for compressing files in a CDN.
- forwardHost BooleanHeader 
- choose the Forward Host header option if is important to send in the request to the Origin the same Host header as was sent in the request to CDN server.
- gzipOn Boolean
- GZip compression at CDN servers reduces file size by 70% and can be as high as 90%.
- Boolean
- set for ignoring cookie.
- ignoreQuery BooleanParams 
- files with different query parameters are cached as objects with the same key regardless of the parameter value. selected by default.
- proxyCache BooleanMethods Set 
- allows caching for GET, HEAD and POST requests.
- queryParams List<String>Blacklists 
- files with the specified query parameters are cached as objects with the same key, files with other parameters are cached as objects with different keys.
- queryParams List<String>Whitelists 
- files with the specified query parameters are cached as objects with different keys, files with other parameters are cached as objects with the same key.
- redirectHttp BooleanTo Https 
- set up a redirect from HTTP to HTTPS.
- redirectHttps BooleanTo Http 
- set up a redirect from HTTPS to HTTP.
- slice Boolean
- files larger than 10 MB will be requested and cached in parts (no larger than 10 MB each part). It reduces time to first byte. The origin must support HTTP Range requests.
- staticRequest List<String>Headers 
- set up custom headers that CDN servers send in requests to origins.
- staticResponse Map<String>Headers 
CdnResourceSslCertificate, CdnResourceSslCertificateArgs        
- Type string
- CertificateManager stringId 
- Status string
- Type string
- CertificateManager stringId 
- Status string
- type String
- certificateManager StringId 
- status String
- type string
- certificateManager stringId 
- status string
- type str
- certificate_manager_ strid 
- status str
- type String
- certificateManager StringId 
- status String
Import
A origin group can be imported using any of these accepted formats
 $ pulumi import yandex:index/cdnResource:CdnResource default origin_group_id
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Yandex pulumi/pulumi-yandex
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the yandexTerraform Provider.