@cdktf/provider-upcloud
Version:
Prebuilt upcloud Provider for Terraform CDK (cdktf)
136 lines (135 loc) • 6.06 kB
TypeScript
/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
import { Construct } from 'constructs';
import * as cdktf from 'cdktf';
export interface DataUpcloudStorageConfig extends cdktf.TerraformMetaArguments {
/**
* The access type of the storage, `public` or `private`.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.23.3/docs/data-sources/storage#access_type DataUpcloudStorage#access_type}
*/
readonly accessType?: string;
/**
* UUID of the storage.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.23.3/docs/data-sources/storage#id DataUpcloudStorage#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;
/**
* If more than one result is returned, use the most recent storage. This is only useful with private storages. Public storages might give unpredictable results.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.23.3/docs/data-sources/storage#most_recent DataUpcloudStorage#most_recent}
*/
readonly mostRecent?: boolean | cdktf.IResolvable;
/**
* Exact name of the storage (same as title). Deprecated, use `title` instead.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.23.3/docs/data-sources/storage#name DataUpcloudStorage#name}
*/
readonly name?: string;
/**
* Use regular expression to match storage name. Deprecated, use exact title or UUID instead.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.23.3/docs/data-sources/storage#name_regex DataUpcloudStorage#name_regex}
*/
readonly nameRegex?: string;
/**
* The title of the storage.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.23.3/docs/data-sources/storage#title DataUpcloudStorage#title}
*/
readonly title?: string;
/**
* The type of the storage.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.23.3/docs/data-sources/storage#type DataUpcloudStorage#type}
*/
readonly type?: string;
/**
* The zone the storage is in, e.g. `de-fra1`.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.23.3/docs/data-sources/storage#zone DataUpcloudStorage#zone}
*/
readonly zone?: string;
}
/**
* Represents a {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.23.3/docs/data-sources/storage upcloud_storage}
*/
export declare class DataUpcloudStorage extends cdktf.TerraformDataSource {
static readonly tfResourceType = "upcloud_storage";
/**
* Generates CDKTF code for importing a DataUpcloudStorage resource upon running "cdktf plan <stack-name>"
* @param scope The scope in which to define this construct
* @param importToId The construct id used in the generated config for the DataUpcloudStorage to import
* @param importFromId The id of the existing DataUpcloudStorage that should be imported. Refer to the {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.23.3/docs/data-sources/storage#import import section} in the documentation of this resource for the id to use
* @param provider? Optional instance of the provider where the DataUpcloudStorage to import is found
*/
static generateConfigForImport(scope: Construct, importToId: string, importFromId: string, provider?: cdktf.TerraformProvider): cdktf.ImportableResource;
/**
* Create a new {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.23.3/docs/data-sources/storage upcloud_storage} Data Source
*
* @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 DataUpcloudStorageConfig = {}
*/
constructor(scope: Construct, id: string, config?: DataUpcloudStorageConfig);
private _accessType?;
get accessType(): string;
set accessType(value: string);
resetAccessType(): void;
get accessTypeInput(): string | undefined;
get encrypt(): cdktf.IResolvable;
private _id?;
get id(): string;
set id(value: string);
resetId(): void;
get idInput(): string | undefined;
private _labels;
get labels(): cdktf.StringMap;
private _mostRecent?;
get mostRecent(): boolean | cdktf.IResolvable;
set mostRecent(value: boolean | cdktf.IResolvable);
resetMostRecent(): void;
get mostRecentInput(): boolean | cdktf.IResolvable | undefined;
private _name?;
get name(): string;
set name(value: string);
resetName(): void;
get nameInput(): string | undefined;
private _nameRegex?;
get nameRegex(): string;
set nameRegex(value: string);
resetNameRegex(): void;
get nameRegexInput(): string | undefined;
get size(): number;
get state(): string;
private _systemLabels;
get systemLabels(): cdktf.StringMap;
get tier(): string;
private _title?;
get title(): string;
set title(value: string);
resetTitle(): void;
get titleInput(): string | undefined;
private _type?;
get type(): string;
set type(value: string);
resetType(): void;
get typeInput(): string | undefined;
private _zone?;
get zone(): string;
set zone(value: string);
resetZone(): void;
get zoneInput(): string | undefined;
protected synthesizeAttributes(): {
[name: string]: any;
};
protected synthesizeHclAttributes(): {
[name: string]: any;
};
}