UNPKG

@pulumi/yandex

Version:

A Pulumi package for creating and managing yandex cloud resources.

99 lines (98 loc) 3.44 kB
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 <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<GetCdnResourceResult>; /** * 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<GetCdnResourceResult>; /** * 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<boolean>; /** * CDN endpoint CNAME, must be unique among resources. */ cname?: pulumi.Input<string>; /** * CDN Resource settings and options to tune CDN edge behavior. */ options?: pulumi.Input<inputs.GetCdnResourceOptionsArgs>; originGroupId?: pulumi.Input<number>; originGroupName?: pulumi.Input<string>; originProtocol?: pulumi.Input<string>; resourceId?: pulumi.Input<string>; /** * list of secondary hostname strings. */ secondaryHostnames?: pulumi.Input<pulumi.Input<string>[]>; sslCertificate?: pulumi.Input<inputs.GetCdnResourceSslCertificateArgs>; updatedAt?: pulumi.Input<string>; }