import * as pulumi from "@pulumi/pulumi"; import { input as inputs, output as outputs } from "./types"; /** * Get information about a Yandex CDN Resource. For more information, see * [the official documentation](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 = pulumi.output(yandex.getCdnResource({ * resourceId: "some resource id", * })); * * export const resourceCname = myResource.cname!; * ``` */ export declare function getCdnResource(args?: GetCdnResourceArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getCdnResource. */ export interface GetCdnResourceArgs { /** * Flag to create Resource either in active or disabled state. True - the content from CDN is available to clients. */ active?: boolean; /** * CDN endpoint CNAME, must be unique among resources. */ cname?: string; /** * CDN Resource settings and options to tune CDN edge behavior. */ options?: inputs.GetCdnResourceOptions; originGroupId?: number; originGroupName?: string; originProtocol?: string; resourceId?: string; /** * list of secondary hostname strings. */ secondaryHostnames?: string[]; sslCertificate?: inputs.GetCdnResourceSslCertificate; updatedAt?: string; } /** * A collection of values returned by getCdnResource. */ export interface GetCdnResourceResult { readonly active?: boolean; readonly cname: string; readonly createdAt: string; readonly folderId: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly options: outputs.GetCdnResourceOptions; readonly originGroupId?: number; readonly originGroupName?: string; readonly originProtocol?: string; readonly resourceId: string; readonly secondaryHostnames?: string[]; readonly sslCertificate?: outputs.GetCdnResourceSslCertificate; readonly updatedAt: string; } export declare function getCdnResourceOutput(args?: GetCdnResourceOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output; /** * A collection of arguments for invoking getCdnResource. */ export interface GetCdnResourceOutputArgs { /** * 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; resourceId?: pulumi.Input; /** * list of secondary hostname strings. */ secondaryHostnames?: pulumi.Input[]>; sslCertificate?: pulumi.Input; updatedAt?: pulumi.Input; }