@cdktf-providers/rancher-file
Version:
Prebuilt rancher/file Provider for Terraform CDK (cdktf)
68 lines (67 loc) • 3.16 kB
TypeScript
import { Construct } from 'constructs';
import * as cdktf from 'cdktf';
export interface DataFileLocalConfig extends cdktf.TerraformMetaArguments {
/**
* The directory where the file exists, if left empty the current local directory will be used.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/rancher/file/2.2.2/docs/data-sources/local#directory DataFileLocal#directory}
*/
readonly directory?: string;
/**
* A string used to generate the file identifier, you can pass this value in the environment variable `TF_FILE_HMAC_SECRET_KEY`.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/rancher/file/2.2.2/docs/data-sources/local#hmac_secret_key DataFileLocal#hmac_secret_key}
*/
readonly hmacSecretKey?: string;
/**
* File name, required.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/rancher/file/2.2.2/docs/data-sources/local#name DataFileLocal#name}
*/
readonly name: string;
}
/**
* Represents a {@link https://registry.terraform.io/providers/rancher/file/2.2.2/docs/data-sources/local file_local}
*/
export declare class DataFileLocal extends cdktf.TerraformDataSource {
static readonly tfResourceType = "file_local";
/**
* Generates CDKTF code for importing a DataFileLocal 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 DataFileLocal to import
* @param importFromId The id of the existing DataFileLocal that should be imported. Refer to the {@link https://registry.terraform.io/providers/rancher/file/2.2.2/docs/data-sources/local#import import section} in the documentation of this resource for the id to use
* @param provider? Optional instance of the provider where the DataFileLocal 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/rancher/file/2.2.2/docs/data-sources/local file_local} 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 DataFileLocalConfig
*/
constructor(scope: Construct, id: string, config: DataFileLocalConfig);
get contents(): any;
private _directory?;
get directory(): string;
set directory(value: string);
resetDirectory(): void;
get directoryInput(): string;
private _hmacSecretKey?;
get hmacSecretKey(): string;
set hmacSecretKey(value: string);
resetHmacSecretKey(): void;
get hmacSecretKeyInput(): string;
get id(): any;
private _name?;
get name(): string;
set name(value: string);
get nameInput(): string;
get permissions(): any;
protected synthesizeAttributes(): {
[name: string]: any;
};
protected synthesizeHclAttributes(): {
[name: string]: any;
};
}