1. Packages
  2. Yandex
  3. API Docs
  4. CdnResource
Yandex v0.13.0 published on Tuesday, Feb 22, 2022 by Pulumi

yandex.CdnResource

Explore with Pulumi AI

yandex logo
Yandex v0.13.0 published on Tuesday, Feb 22, 2022 by Pulumi

    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 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,
        ))
    
    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,
        },
    });
    

    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=yandex.CdnResourceOptionsArgs(
            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=yandex.CdnResourceSslCertificateArgs(
            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

    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 CdnResourceOptions
    CDN Resource settings and options to tune CDN edge behavior.
    OriginGroupId int
    OriginGroupName string
    OriginProtocol string
    SecondaryHostnames List<string>
    list of secondary hostname strings.
    SslCertificate CdnResourceSslCertificate
    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 CdnResourceOptionsArgs
    CDN Resource settings and options to tune CDN edge behavior.
    OriginGroupId int
    OriginGroupName string
    OriginProtocol string
    SecondaryHostnames []string
    list of secondary hostname strings.
    SslCertificate CdnResourceSslCertificateArgs
    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 CdnResourceOptions
    CDN Resource settings and options to tune CDN edge behavior.
    originGroupId Integer
    originGroupName String
    originProtocol String
    secondaryHostnames List<String>
    list of secondary hostname strings.
    sslCertificate CdnResourceSslCertificate
    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 CdnResourceOptions
    CDN Resource settings and options to tune CDN edge behavior.
    originGroupId number
    originGroupName string
    originProtocol string
    secondaryHostnames string[]
    list of secondary hostname strings.
    sslCertificate CdnResourceSslCertificate
    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 CdnResourceOptionsArgs
    CDN Resource settings and options to tune CDN edge behavior.
    origin_group_id int
    origin_group_name str
    origin_protocol str
    secondary_hostnames Sequence[str]
    list of secondary hostname strings.
    ssl_certificate CdnResourceSslCertificateArgs
    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.
    originGroupId Number
    originGroupName String
    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:

    CreatedAt string
    Creation timestamp of the IoT Core Device
    FolderId string
    Id string
    The provider-assigned unique ID for this managed resource.
    CreatedAt string
    Creation timestamp of the IoT Core Device
    FolderId string
    Id string
    The provider-assigned unique ID for this managed resource.
    createdAt String
    Creation timestamp of the IoT Core Device
    folderId String
    id String
    The provider-assigned unique ID for this managed resource.
    createdAt string
    Creation timestamp of the IoT Core Device
    folderId string
    id string
    The provider-assigned unique ID for this managed resource.
    created_at str
    Creation timestamp of the IoT Core Device
    folder_id str
    id str
    The provider-assigned unique ID for this managed resource.
    createdAt String
    Creation timestamp of the IoT Core Device
    folderId String
    id String
    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) -> 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)
    Resource lookup is not supported in YAML
    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
    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 CdnResourceOptions
    CDN Resource settings and options to tune CDN edge behavior.
    OriginGroupId int
    OriginGroupName string
    OriginProtocol string
    SecondaryHostnames List<string>
    list of secondary hostname strings.
    SslCertificate CdnResourceSslCertificate
    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 CdnResourceOptionsArgs
    CDN Resource settings and options to tune CDN edge behavior.
    OriginGroupId int
    OriginGroupName string
    OriginProtocol string
    SecondaryHostnames []string
    list of secondary hostname strings.
    SslCertificate CdnResourceSslCertificateArgs
    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 CdnResourceOptions
    CDN Resource settings and options to tune CDN edge behavior.
    originGroupId Integer
    originGroupName String
    originProtocol String
    secondaryHostnames List<String>
    list of secondary hostname strings.
    sslCertificate CdnResourceSslCertificate
    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 CdnResourceOptions
    CDN Resource settings and options to tune CDN edge behavior.
    originGroupId number
    originGroupName string
    originProtocol string
    secondaryHostnames string[]
    list of secondary hostname strings.
    sslCertificate CdnResourceSslCertificate
    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 CdnResourceOptionsArgs
    CDN Resource settings and options to tune CDN edge behavior.
    origin_group_id int
    origin_group_name str
    origin_protocol str
    secondary_hostnames Sequence[str]
    list of secondary hostname strings.
    ssl_certificate CdnResourceSslCertificateArgs
    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.
    originGroupId Number
    originGroupName String
    originProtocol String
    secondaryHostnames List<String>
    list of secondary hostname strings.
    sslCertificate Property Map
    updatedAt String

    Supporting Types

    CdnResourceOptions, CdnResourceOptionsArgs

    AllowedHttpMethods List<string>
    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.
    BrowserCacheSettings int
    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.
    CacheHttpHeaders List<string>
    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.
    CustomHostHeader string
    custom value for the Host header. Your server must be able to process requests with the chosen header.
    CustomServerName string
    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.
    DisableProxyForceRanges bool
    disabling proxy force ranges.
    EdgeCacheSettings int
    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.
    ForwardHostHeader bool
    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%.
    IgnoreCookie bool
    set for ignoring cookie.
    IgnoreQueryParams bool
    files with different query parameters are cached as objects with the same key regardless of the parameter value. selected by default.
    ProxyCacheMethodsSet bool
    allows caching for GET, HEAD and POST requests.
    QueryParamsBlacklists List<string>
    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.
    QueryParamsWhitelists List<string>
    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.
    RedirectHttpToHttps bool
    set up a redirect from HTTP to HTTPS.
    RedirectHttpsToHttp bool
    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.
    StaticRequestHeaders List<string>
    set up custom headers that CDN servers send in requests to origins.
    StaticResponseHeaders Dictionary<string, string>
    AllowedHttpMethods []string
    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.
    BrowserCacheSettings int
    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.
    CacheHttpHeaders []string
    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.
    CustomHostHeader string
    custom value for the Host header. Your server must be able to process requests with the chosen header.
    CustomServerName string
    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.
    DisableProxyForceRanges bool
    disabling proxy force ranges.
    EdgeCacheSettings int
    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.
    ForwardHostHeader bool
    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%.
    IgnoreCookie bool
    set for ignoring cookie.
    IgnoreQueryParams bool
    files with different query parameters are cached as objects with the same key regardless of the parameter value. selected by default.
    ProxyCacheMethodsSet bool
    allows caching for GET, HEAD and POST requests.
    QueryParamsBlacklists []string
    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.
    QueryParamsWhitelists []string
    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.
    RedirectHttpToHttps bool
    set up a redirect from HTTP to HTTPS.
    RedirectHttpsToHttp bool
    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.
    StaticRequestHeaders []string
    set up custom headers that CDN servers send in requests to origins.
    StaticResponseHeaders map[string]string
    allowedHttpMethods List<String>
    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.
    browserCacheSettings Integer
    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.
    cacheHttpHeaders List<String>
    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.
    customHostHeader String
    custom value for the Host header. Your server must be able to process requests with the chosen header.
    customServerName String
    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.
    disableProxyForceRanges Boolean
    disabling proxy force ranges.
    edgeCacheSettings Integer
    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.
    forwardHostHeader Boolean
    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%.
    ignoreCookie Boolean
    set for ignoring cookie.
    ignoreQueryParams Boolean
    files with different query parameters are cached as objects with the same key regardless of the parameter value. selected by default.
    proxyCacheMethodsSet Boolean
    allows caching for GET, HEAD and POST requests.
    queryParamsBlacklists List<String>
    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.
    queryParamsWhitelists List<String>
    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.
    redirectHttpToHttps Boolean
    set up a redirect from HTTP to HTTPS.
    redirectHttpsToHttp Boolean
    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.
    staticRequestHeaders List<String>
    set up custom headers that CDN servers send in requests to origins.
    staticResponseHeaders Map<String,String>
    allowedHttpMethods string[]
    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.
    browserCacheSettings number
    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.
    cacheHttpHeaders string[]
    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.
    customHostHeader string
    custom value for the Host header. Your server must be able to process requests with the chosen header.
    customServerName string
    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.
    disableProxyForceRanges boolean
    disabling proxy force ranges.
    edgeCacheSettings number
    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.
    forwardHostHeader boolean
    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%.
    ignoreCookie boolean
    set for ignoring cookie.
    ignoreQueryParams boolean
    files with different query parameters are cached as objects with the same key regardless of the parameter value. selected by default.
    proxyCacheMethodsSet boolean
    allows caching for GET, HEAD and POST requests.
    queryParamsBlacklists string[]
    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.
    queryParamsWhitelists string[]
    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.
    redirectHttpToHttps boolean
    set up a redirect from HTTP to HTTPS.
    redirectHttpsToHttp boolean
    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.
    staticRequestHeaders string[]
    set up custom headers that CDN servers send in requests to origins.
    staticResponseHeaders {[key: string]: string}
    allowed_http_methods Sequence[str]
    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_settings int
    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_headers Sequence[str]
    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_header str
    custom value for the Host header. Your server must be able to process requests with the chosen header.
    custom_server_name str
    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_force_ranges bool
    disabling proxy force ranges.
    edge_cache_settings int
    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_header bool
    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%.
    ignore_cookie bool
    set for ignoring cookie.
    ignore_query_params bool
    files with different query parameters are cached as objects with the same key regardless of the parameter value. selected by default.
    proxy_cache_methods_set bool
    allows caching for GET, HEAD and POST requests.
    query_params_blacklists Sequence[str]
    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_whitelists Sequence[str]
    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_to_https bool
    set up a redirect from HTTP to HTTPS.
    redirect_https_to_http bool
    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_headers Sequence[str]
    set up custom headers that CDN servers send in requests to origins.
    static_response_headers Mapping[str, str]
    allowedHttpMethods List<String>
    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.
    browserCacheSettings Number
    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.
    cacheHttpHeaders List<String>
    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.
    customHostHeader String
    custom value for the Host header. Your server must be able to process requests with the chosen header.
    customServerName String
    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.
    disableProxyForceRanges Boolean
    disabling proxy force ranges.
    edgeCacheSettings Number
    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.
    forwardHostHeader Boolean
    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%.
    ignoreCookie Boolean
    set for ignoring cookie.
    ignoreQueryParams Boolean
    files with different query parameters are cached as objects with the same key regardless of the parameter value. selected by default.
    proxyCacheMethodsSet Boolean
    allows caching for GET, HEAD and POST requests.
    queryParamsBlacklists List<String>
    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.
    queryParamsWhitelists List<String>
    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.
    redirectHttpToHttps Boolean
    set up a redirect from HTTP to HTTPS.
    redirectHttpsToHttp Boolean
    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.
    staticRequestHeaders List<String>
    set up custom headers that CDN servers send in requests to origins.
    staticResponseHeaders Map<String>

    CdnResourceSslCertificate, CdnResourceSslCertificateArgs

    Type string
    CertificateManagerId string
    Status string
    Type string
    CertificateManagerId string
    Status string
    type String
    certificateManagerId String
    status String
    type string
    certificateManagerId string
    status string
    type String
    certificateManagerId String
    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 yandex Terraform Provider.
    yandex logo
    Yandex v0.13.0 published on Tuesday, Feb 22, 2022 by Pulumi