@cdktf/provider-upcloud
Version:
Prebuilt upcloud Provider for Terraform CDK (cdktf)
84 lines (83 loc) • 3.58 kB
TypeScript
/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
import { Construct } from 'constructs';
import * as cdktf from 'cdktf';
export interface StorageTemplateConfig extends cdktf.TerraformMetaArguments {
/**
* User defined key-value pairs to classify the storage.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.23.3/docs/resources/storage_template#labels StorageTemplate#labels}
*/
readonly labels?: {
[key: string]: string;
};
/**
* The source storage that is used as a base for this storage template.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.23.3/docs/resources/storage_template#source_storage StorageTemplate#source_storage}
*/
readonly sourceStorage: string;
/**
* The title of the storage.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.23.3/docs/resources/storage_template#title StorageTemplate#title}
*/
readonly title: string;
}
/**
* Represents a {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.23.3/docs/resources/storage_template upcloud_storage_template}
*/
export declare class StorageTemplate extends cdktf.TerraformResource {
static readonly tfResourceType = "upcloud_storage_template";
/**
* Generates CDKTF code for importing a StorageTemplate 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 StorageTemplate to import
* @param importFromId The id of the existing StorageTemplate that should be imported. Refer to the {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.23.3/docs/resources/storage_template#import import section} in the documentation of this resource for the id to use
* @param provider? Optional instance of the provider where the StorageTemplate 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/resources/storage_template upcloud_storage_template} 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 StorageTemplateConfig
*/
constructor(scope: Construct, id: string, config: StorageTemplateConfig);
get encrypt(): cdktf.IResolvable;
get id(): string;
private _labels?;
get labels(): {
[key: string]: string;
};
set labels(value: {
[key: string]: string;
});
resetLabels(): void;
get labelsInput(): {
[key: string]: string;
} | undefined;
get size(): number;
private _sourceStorage?;
get sourceStorage(): string;
set sourceStorage(value: string);
get sourceStorageInput(): string | undefined;
private _systemLabels;
get systemLabels(): cdktf.StringMap;
get tier(): string;
private _title?;
get title(): string;
set title(value: string);
get titleInput(): string | undefined;
get type(): string;
get zone(): string;
protected synthesizeAttributes(): {
[name: string]: any;
};
protected synthesizeHclAttributes(): {
[name: string]: any;
};
}