import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; export interface CdnOrigingroupConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/cdn_origingroup#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; /** * Name of the origin group * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/cdn_origingroup#name CdnOrigingroup#name} */ readonly name: string; /** * Available values: error, timeout, invalid_header, http_403, http_404, http_429, http_500, http_502, http_503, http_504. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/cdn_origingroup#proxy_next_upstream CdnOrigingroup#proxy_next_upstream} */ readonly proxyNextUpstream?: string[]; /** * This options have two possible values: true — The option is active. In case the origin responds with 4XX or 5XX codes, use the next origin from the list. false — The option is disabled. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/cdn_origingroup#use_next CdnOrigingroup#use_next} */ readonly useNext?: boolean | cdktf.IResolvable; /** * auth block * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/cdn_origingroup#auth CdnOrigingroup#auth} */ readonly auth?: CdnOrigingroupAuth; /** * origin block * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/cdn_origingroup#origin CdnOrigingroup#origin} */ readonly origin?: CdnOrigingroupOrigin[] | cdktf.IResolvable; } export interface CdnOrigingroupAuth { /** * Access key ID for the S3 storage * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/cdn_origingroup#s3_access_key_id CdnOrigingroup#s3_access_key_id} */ readonly s3AccessKeyId: string; /** * Bucket name of the S3 storage * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/cdn_origingroup#s3_bucket_name CdnOrigingroup#s3_bucket_name} */ readonly s3BucketName: string; /** * Region of the S3 storage, required if s3_type is 'amazon' * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/cdn_origingroup#s3_region CdnOrigingroup#s3_region} */ readonly s3Region?: string; /** * Secret access key for the S3 storage * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/cdn_origingroup#s3_secret_access_key CdnOrigingroup#s3_secret_access_key} */ readonly s3SecretAccessKey: string; /** * Hostname of the S3 storage, required if s3_type is 'other' * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/cdn_origingroup#s3_storage_hostname CdnOrigingroup#s3_storage_hostname} */ readonly s3StorageHostname?: string; /** * Type of the S3 storage, accepted values: 'other' or 'amazon' * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/cdn_origingroup#s3_type CdnOrigingroup#s3_type} */ readonly s3Type: string; } export declare function cdnOrigingroupAuthToTerraform(struct?: CdnOrigingroupAuthOutputReference | CdnOrigingroupAuth): any; export declare function cdnOrigingroupAuthToHclTerraform(struct?: CdnOrigingroupAuthOutputReference | CdnOrigingroupAuth): any; export declare class CdnOrigingroupAuthOutputReference extends cdktf.ComplexObject { private isEmptyObject; /** * @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(): CdnOrigingroupAuth | undefined; set internalValue(value: CdnOrigingroupAuth | undefined); private _s3AccessKeyId?; get s3AccessKeyId(): string; set s3AccessKeyId(value: string); get s3AccessKeyIdInput(): string; private _s3BucketName?; get s3BucketName(): string; set s3BucketName(value: string); get s3BucketNameInput(): string; private _s3Region?; get s3Region(): string; set s3Region(value: string); resetS3Region(): void; get s3RegionInput(): string; private _s3SecretAccessKey?; get s3SecretAccessKey(): string; set s3SecretAccessKey(value: string); get s3SecretAccessKeyInput(): string; private _s3StorageHostname?; get s3StorageHostname(): string; set s3StorageHostname(value: string); resetS3StorageHostname(): void; get s3StorageHostnameInput(): string; private _s3Type?; get s3Type(): string; set s3Type(value: string); get s3TypeInput(): string; } export interface CdnOrigingroupOrigin { /** * true — The option is active. The origin will not be used until one of active origins become unavailable. false — The option is disabled. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/cdn_origingroup#backup CdnOrigingroup#backup} */ readonly backup?: boolean | cdktf.IResolvable; /** * The setting allows to enable or disable an Origin source in the Origins group * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/cdn_origingroup#enabled CdnOrigingroup#enabled} */ readonly enabled?: boolean | cdktf.IResolvable; /** * IP address or Domain name of your origin and the port if custom * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/cdn_origingroup#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; 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; } /** * Represents a {@link https://registry.terraform.io/providers/g-core/gcore/0.32.5/docs/resources/cdn_origingroup gcore_cdn_origingroup} */ export declare class CdnOrigingroup extends cdktf.TerraformResource { static readonly tfResourceType = "gcore_cdn_origingroup"; /** * 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/g-core/gcore/0.32.5/docs/resources/cdn_origingroup#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/g-core/gcore/0.32.5/docs/resources/cdn_origingroup gcore_cdn_origingroup} 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 _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 _proxyNextUpstream?; get proxyNextUpstream(): string[]; set proxyNextUpstream(value: string[]); resetProxyNextUpstream(): void; get proxyNextUpstreamInput(): string[]; private _useNext?; get useNext(): boolean | cdktf.IResolvable; set useNext(value: boolean | cdktf.IResolvable); resetUseNext(): void; get useNextInput(): any; private _auth; get auth(): CdnOrigingroupAuthOutputReference; putAuth(value: CdnOrigingroupAuth): void; resetAuth(): void; get authInput(): CdnOrigingroupAuth; private _origin; get origin(): CdnOrigingroupOriginList; putOrigin(value: CdnOrigingroupOrigin[] | cdktf.IResolvable): void; resetOrigin(): void; get originInput(): any; protected synthesizeAttributes(): { [name: string]: any; }; protected synthesizeHclAttributes(): { [name: string]: any; }; }