import * as pulumi from "@pulumi/pulumi"; import { input as inputs, output as outputs } from "./types"; /** * Allows management of [Yandex.Cloud CDN Resource](https://cloud.yandex.ru/docs/cdn/concepts/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 --type gcore``` * * ## Example Usage * * ```typescript * 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 * * A origin group can be imported using any of these accepted formats * * ```sh * $ pulumi import yandex:index/cdnResource:CdnResource default origin_group_id * ``` */ export declare class CdnResource extends pulumi.CustomResource { /** * Get an existing CdnResource resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: CdnResourceState, opts?: pulumi.CustomResourceOptions): CdnResource; /** * Returns true if the given object is an instance of CdnResource. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is CdnResource; /** * Flag to create Resource either in active or disabled state. True - the content from CDN is available to clients. */ readonly active: pulumi.Output; /** * CDN endpoint CNAME, must be unique among resources. */ readonly cname: pulumi.Output; /** * Creation timestamp of the IoT Core Device */ readonly createdAt: pulumi.Output; readonly folderId: pulumi.Output; /** * CDN Resource settings and options to tune CDN edge behavior. */ readonly options: pulumi.Output; readonly originGroupId: pulumi.Output; readonly originGroupName: pulumi.Output; readonly originProtocol: pulumi.Output; /** * list of secondary hostname strings. */ readonly secondaryHostnames: pulumi.Output; readonly sslCertificate: pulumi.Output; readonly updatedAt: pulumi.Output; /** * Create a CdnResource resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args?: CdnResourceArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering CdnResource resources. */ export interface CdnResourceState { /** * Flag to create Resource either in active or disabled state. True - the content from CDN is available to clients. */ active?: pulumi.Input; /** * CDN endpoint CNAME, must be unique among resources. */ cname?: pulumi.Input; /** * Creation timestamp of the IoT Core Device */ createdAt?: pulumi.Input; folderId?: pulumi.Input; /** * CDN Resource settings and options to tune CDN edge behavior. */ options?: pulumi.Input; originGroupId?: pulumi.Input; originGroupName?: pulumi.Input; originProtocol?: pulumi.Input; /** * list of secondary hostname strings. */ secondaryHostnames?: pulumi.Input[]>; sslCertificate?: pulumi.Input; updatedAt?: pulumi.Input; } /** * The set of arguments for constructing a CdnResource resource. */ export interface CdnResourceArgs { /** * Flag to create Resource either in active or disabled state. True - the content from CDN is available to clients. */ active?: pulumi.Input; /** * CDN endpoint CNAME, must be unique among resources. */ cname?: pulumi.Input; /** * CDN Resource settings and options to tune CDN edge behavior. */ options?: pulumi.Input; originGroupId?: pulumi.Input; originGroupName?: pulumi.Input; originProtocol?: pulumi.Input; /** * list of secondary hostname strings. */ secondaryHostnames?: pulumi.Input[]>; sslCertificate?: pulumi.Input; updatedAt?: pulumi.Input; }