import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; export interface CdnOriginGroupConfig extends cdktf.TerraformMetaArguments { /** * The folder identifier that resource belongs to. If it is not provided, the default provider `folder-id` is used. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/cdn_origin_group#folder_id CdnOriginGroup#folder_id} */ readonly folderId?: string; /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/cdn_origin_group#id CdnOriginGroup#id} * * Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. * If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable. */ readonly id?: string; /** * The resource name. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/cdn_origin_group#name CdnOriginGroup#name} */ readonly name: string; /** * CDN provider is a content delivery service provider. Possible values: "ourcdn" (default) or "gcore" * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/cdn_origin_group#provider_type CdnOriginGroup#provider_type} */ readonly providerType?: string; /** * If the option is active (has true value), in case the origin responds with 4XX or 5XX codes, use the next origin from the list. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/cdn_origin_group#use_next CdnOriginGroup#use_next} */ readonly useNext?: boolean | cdktf.IResolvable; /** * origin block * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/cdn_origin_group#origin CdnOriginGroup#origin} */ readonly origin: CdnOriginGroupOrigin[] | cdktf.IResolvable; /** * timeouts block * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/cdn_origin_group#timeouts CdnOriginGroup#timeouts} */ readonly timeouts?: CdnOriginGroupTimeouts; } export interface CdnOriginGroupOrigin { /** * Specifies whether the origin is used in its origin group as backup. A backup origin is used when one of active origins becomes unavailable. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/cdn_origin_group#backup CdnOriginGroup#backup} */ readonly backup?: boolean | cdktf.IResolvable; /** * The origin is enabled and used as a source for the CDN. Default `enabled`. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/cdn_origin_group#enabled CdnOriginGroup#enabled} */ readonly enabled?: boolean | cdktf.IResolvable; /** * IP address or Domain name of your origin and the port. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/cdn_origin_group#source CdnOriginGroup#source} */ readonly source: string; } export declare function cdnOriginGroupOriginToTerraform(struct?: CdnOriginGroupOrigin | cdktf.IResolvable): any; export declare function cdnOriginGroupOriginToHclTerraform(struct?: CdnOriginGroupOrigin | cdktf.IResolvable): any; export declare class CdnOriginGroupOriginOutputReference extends cdktf.ComplexObject { private isEmptyObject; private resolvableValue?; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param complexObjectIndex the index of this item in the list * @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, complexObjectIndex: number, complexObjectIsFromSet: boolean); get internalValue(): CdnOriginGroupOrigin | cdktf.IResolvable | undefined; set internalValue(value: CdnOriginGroupOrigin | cdktf.IResolvable | undefined); private _backup?; get backup(): boolean | cdktf.IResolvable; set backup(value: boolean | cdktf.IResolvable); resetBackup(): void; get backupInput(): any; private _enabled?; get enabled(): boolean | cdktf.IResolvable; set enabled(value: boolean | cdktf.IResolvable); resetEnabled(): void; get enabledInput(): any; get originGroupId(): any; private _source?; get source(): string; set source(value: string); get sourceInput(): string; } export declare class CdnOriginGroupOriginList extends cdktf.ComplexList { protected terraformResource: cdktf.IInterpolatingParent; protected terraformAttribute: string; protected wrapsSet: boolean; internalValue?: CdnOriginGroupOrigin[] | cdktf.IResolvable; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean); /** * @param index the index of the item to return */ get(index: number): CdnOriginGroupOriginOutputReference; } export interface CdnOriginGroupTimeouts { /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/cdn_origin_group#create CdnOriginGroup#create} */ readonly create?: string; /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/cdn_origin_group#delete CdnOriginGroup#delete} */ readonly delete?: string; /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/cdn_origin_group#update CdnOriginGroup#update} */ readonly update?: string; } export declare function cdnOriginGroupTimeoutsToTerraform(struct?: CdnOriginGroupTimeouts | cdktf.IResolvable): any; export declare function cdnOriginGroupTimeoutsToHclTerraform(struct?: CdnOriginGroupTimeouts | cdktf.IResolvable): any; export declare class CdnOriginGroupTimeoutsOutputReference extends cdktf.ComplexObject { private isEmptyObject; private resolvableValue?; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing */ constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string); get internalValue(): CdnOriginGroupTimeouts | cdktf.IResolvable | undefined; set internalValue(value: CdnOriginGroupTimeouts | cdktf.IResolvable | undefined); private _create?; get create(): string; set create(value: string); resetCreate(): void; get createInput(): string; private _delete?; get delete(): string; set delete(value: string); resetDelete(): void; get deleteInput(): string; private _update?; get update(): string; set update(value: string); resetUpdate(): void; get updateInput(): string; } /** * Represents a {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/cdn_origin_group yandex_cdn_origin_group} */ export declare class CdnOriginGroup extends cdktf.TerraformResource { static readonly tfResourceType = "yandex_cdn_origin_group"; /** * Generates CDKTF code for importing a CdnOriginGroup resource upon running "cdktf plan " * @param scope The scope in which to define this construct * @param importToId The construct id used in the generated config for the CdnOriginGroup to import * @param importFromId The id of the existing CdnOriginGroup that should be imported. Refer to the {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/cdn_origin_group#import import section} in the documentation of this resource for the id to use * @param provider? Optional instance of the provider where the CdnOriginGroup to import is found */ static generateConfigForImport(scope: Construct, importToId: string, importFromId: string, provider?: cdktf.TerraformProvider): any; /** * Create a new {@link https://registry.terraform.io/providers/yandex-cloud/yandex/0.177.0/docs/resources/cdn_origin_group yandex_cdn_origin_group} Resource * * @param scope The scope in which to define this construct * @param id The scoped construct ID. Must be unique amongst siblings in the same scope * @param options CdnOriginGroupConfig */ constructor(scope: Construct, id: string, config: CdnOriginGroupConfig); private _folderId?; get folderId(): string; set folderId(value: string); resetFolderId(): void; get folderIdInput(): string; private _id?; get id(): string; set id(value: string); resetId(): void; get idInput(): string; private _name?; get name(): string; set name(value: string); get nameInput(): string; private _providerType?; get providerType(): string; set providerType(value: string); resetProviderType(): void; get providerTypeInput(): string; private _useNext?; get useNext(): boolean | cdktf.IResolvable; set useNext(value: boolean | cdktf.IResolvable); resetUseNext(): void; get useNextInput(): any; private _origin; get origin(): CdnOriginGroupOriginList; putOrigin(value: CdnOriginGroupOrigin[] | cdktf.IResolvable): void; get originInput(): any; private _timeouts; get timeouts(): CdnOriginGroupTimeoutsOutputReference; putTimeouts(value: CdnOriginGroupTimeouts): void; resetTimeouts(): void; get timeoutsInput(): any; protected synthesizeAttributes(): { [name: string]: any; }; protected synthesizeHclAttributes(): { [name: string]: any; }; }