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 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
Cdn
Resource Options - CDN Resource settings and options to tune CDN edge behavior.
- Origin
Group intId - Origin
Group stringName - Origin
Protocol string - Secondary
Hostnames List<string> - list of secondary hostname strings.
- Ssl
Certificate CdnResource Ssl Certificate - Updated
At 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
Cdn
Resource Options Args - CDN Resource settings and options to tune CDN edge behavior.
- Origin
Group intId - Origin
Group stringName - Origin
Protocol string - Secondary
Hostnames []string - list of secondary hostname strings.
- Ssl
Certificate CdnResource Ssl Certificate Args - Updated
At 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
Cdn
Resource Options - CDN Resource settings and options to tune CDN edge behavior.
- origin
Group IntegerId - origin
Group StringName - origin
Protocol String - secondary
Hostnames List<String> - list of secondary hostname strings.
- ssl
Certificate CdnResource Ssl Certificate - updated
At 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
Cdn
Resource Options - CDN Resource settings and options to tune CDN edge behavior.
- origin
Group numberId - origin
Group stringName - origin
Protocol string - secondary
Hostnames string[] - list of secondary hostname strings.
- ssl
Certificate CdnResource Ssl Certificate - updated
At 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
Cdn
Resource 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.
- origin
Group NumberId - origin
Group StringName - origin
Protocol String - secondary
Hostnames List<String> - list of secondary hostname strings.
- ssl
Certificate Property Map - updated
At 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) -> 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.
- 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.
- Created
At string - Creation timestamp of the IoT Core Device
- Folder
Id string - Options
Cdn
Resource Options - CDN Resource settings and options to tune CDN edge behavior.
- Origin
Group intId - Origin
Group stringName - Origin
Protocol string - Secondary
Hostnames List<string> - list of secondary hostname strings.
- Ssl
Certificate CdnResource Ssl Certificate - Updated
At 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.
- Created
At string - Creation timestamp of the IoT Core Device
- Folder
Id string - Options
Cdn
Resource Options Args - CDN Resource settings and options to tune CDN edge behavior.
- Origin
Group intId - Origin
Group stringName - Origin
Protocol string - Secondary
Hostnames []string - list of secondary hostname strings.
- Ssl
Certificate CdnResource Ssl Certificate Args - Updated
At 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.
- created
At String - Creation timestamp of the IoT Core Device
- folder
Id String - options
Cdn
Resource Options - CDN Resource settings and options to tune CDN edge behavior.
- origin
Group IntegerId - origin
Group StringName - origin
Protocol String - secondary
Hostnames List<String> - list of secondary hostname strings.
- ssl
Certificate CdnResource Ssl Certificate - updated
At 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.
- created
At string - Creation timestamp of the IoT Core Device
- folder
Id string - options
Cdn
Resource Options - CDN Resource settings and options to tune CDN edge behavior.
- origin
Group numberId - origin
Group stringName - origin
Protocol string - secondary
Hostnames string[] - list of secondary hostname strings.
- ssl
Certificate CdnResource Ssl Certificate - updated
At 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
Cdn
Resource 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.
- created
At String - Creation timestamp of the IoT Core Device
- folder
Id String - options Property Map
- CDN Resource settings and options to tune CDN edge behavior.
- origin
Group NumberId - origin
Group StringName - origin
Protocol String - secondary
Hostnames List<String> - list of secondary hostname strings.
- ssl
Certificate Property Map - updated
At String
Supporting Types
CdnResourceOptions, CdnResourceOptionsArgs
- Allowed
Http 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.
- 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 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.
- Custom
Host stringHeader - custom value for the Host header. Your server must be able to process requests with the chosen header.
- Custom
Server 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.
- 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 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.
- Query
Params 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.
- 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 List<string>Headers - set up custom headers that CDN servers send in requests to origins.
- Static
Response Dictionary<string, string>Headers
- Allowed
Http []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.
- 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 []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.
- Custom
Host stringHeader - custom value for the Host header. Your server must be able to process requests with the chosen header.
- Custom
Server 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.
- 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 []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.
- Query
Params []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.
- 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 []stringHeaders - set up custom headers that CDN servers send in requests to origins.
- Static
Response map[string]stringHeaders
- allowed
Http 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.
- browser
Cache 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.
- cache
Http 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.
- custom
Host StringHeader - custom value for the Host header. Your server must be able to process requests with the chosen header.
- custom
Server 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.
- disable
Cache Boolean - setup a cache status.
- disable
Proxy BooleanForce Ranges - disabling proxy force ranges.
- edge
Cache 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.
- fetched
Compressed 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.
- forward
Host 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.
- gzip
On Boolean - GZip compression at CDN servers reduces file size by 70% and can be as high as 90%.
- Boolean
- set for ignoring cookie.
- ignore
Query BooleanParams - files with different query parameters are cached as objects with the same key regardless of the parameter value. selected by default.
- proxy
Cache BooleanMethods Set - allows caching for GET, HEAD and POST requests.
- query
Params 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.
- query
Params 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.
- redirect
Http BooleanTo Https - set up a redirect from HTTP to HTTPS.
- redirect
Https 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.
- static
Request List<String>Headers - set up custom headers that CDN servers send in requests to origins.
- static
Response Map<String,String>Headers
- allowed
Http 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.
- browser
Cache 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.
- cache
Http 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.
- custom
Host stringHeader - custom value for the Host header. Your server must be able to process requests with the chosen header.
- custom
Server 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.
- disable
Cache boolean - setup a cache status.
- disable
Proxy booleanForce Ranges - disabling proxy force ranges.
- edge
Cache 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.
- fetched
Compressed 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.
- forward
Host 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.
- gzip
On boolean - GZip compression at CDN servers reduces file size by 70% and can be as high as 90%.
- boolean
- set for ignoring cookie.
- ignore
Query booleanParams - files with different query parameters are cached as objects with the same key regardless of the parameter value. selected by default.
- proxy
Cache booleanMethods Set - allows caching for GET, HEAD and POST requests.
- query
Params 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.
- query
Params 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.
- redirect
Http booleanTo Https - set up a redirect from HTTP to HTTPS.
- redirect
Https 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.
- static
Request string[]Headers - set up custom headers that CDN servers send in requests to origins.
- static
Response {[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
- allowed
Http 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.
- browser
Cache 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.
- cache
Http 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.
- custom
Host StringHeader - custom value for the Host header. Your server must be able to process requests with the chosen header.
- custom
Server 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.
- disable
Cache Boolean - setup a cache status.
- disable
Proxy BooleanForce Ranges - disabling proxy force ranges.
- edge
Cache 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.
- fetched
Compressed 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.
- forward
Host 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.
- gzip
On Boolean - GZip compression at CDN servers reduces file size by 70% and can be as high as 90%.
- Boolean
- set for ignoring cookie.
- ignore
Query BooleanParams - files with different query parameters are cached as objects with the same key regardless of the parameter value. selected by default.
- proxy
Cache BooleanMethods Set - allows caching for GET, HEAD and POST requests.
- query
Params 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.
- query
Params 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.
- redirect
Http BooleanTo Https - set up a redirect from HTTP to HTTPS.
- redirect
Https 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.
- static
Request List<String>Headers - set up custom headers that CDN servers send in requests to origins.
- static
Response Map<String>Headers
CdnResourceSslCertificate, CdnResourceSslCertificateArgs
- Type string
- Certificate
Manager stringId - Status string
- Type string
- Certificate
Manager stringId - Status string
- type String
- certificate
Manager StringId - status String
- type string
- certificate
Manager stringId - status string
- type str
- certificate_
manager_ strid - status str
- type String
- certificate
Manager 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
yandex
Terraform Provider.