@cdktf-providers/rancher-file
Version:
Prebuilt rancher/file Provider for Terraform CDK (cdktf)
83 lines (82 loc) • 4.27 kB
TypeScript
import { Construct } from 'constructs';
import * as cdktf from 'cdktf';
export interface DataFileLocalDirectoryConfig extends cdktf.TerraformMetaArguments {
/**
* Path to directory.
*
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/rancher/file/2.2.2/docs/data-sources/local_directory#path DataFileLocalDirectory#path}
*/
readonly path: string;
}
export interface DataFileLocalDirectoryFiles {
}
export declare function dataFileLocalDirectoryFilesToTerraform(struct?: DataFileLocalDirectoryFiles): any;
export declare function dataFileLocalDirectoryFilesToHclTerraform(struct?: DataFileLocalDirectoryFiles): any;
export declare class DataFileLocalDirectoryFilesOutputReference extends cdktf.ComplexObject {
private isEmptyObject;
/**
* @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(): DataFileLocalDirectoryFiles | undefined;
set internalValue(value: DataFileLocalDirectoryFiles | undefined);
get isDirectory(): any;
get lastModified(): any;
get name(): any;
get permissions(): any;
get size(): any;
}
export declare class DataFileLocalDirectoryFilesList extends cdktf.ComplexList {
protected terraformResource: cdktf.IInterpolatingParent;
protected terraformAttribute: string;
protected wrapsSet: boolean;
/**
* @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): DataFileLocalDirectoryFilesOutputReference;
}
/**
* Represents a {@link https://registry.terraform.io/providers/rancher/file/2.2.2/docs/data-sources/local_directory file_local_directory}
*/
export declare class DataFileLocalDirectory extends cdktf.TerraformDataSource {
static readonly tfResourceType = "file_local_directory";
/**
* Generates CDKTF code for importing a DataFileLocalDirectory 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 DataFileLocalDirectory to import
* @param importFromId The id of the existing DataFileLocalDirectory that should be imported. Refer to the {@link https://registry.terraform.io/providers/rancher/file/2.2.2/docs/data-sources/local_directory#import import section} in the documentation of this resource for the id to use
* @param provider? Optional instance of the provider where the DataFileLocalDirectory 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_directory file_local_directory} 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 DataFileLocalDirectoryConfig
*/
constructor(scope: Construct, id: string, config: DataFileLocalDirectoryConfig);
private _files;
get files(): DataFileLocalDirectoryFilesList;
get id(): any;
private _path?;
get path(): string;
set path(value: string);
get pathInput(): string;
get permissions(): any;
protected synthesizeAttributes(): {
[name: string]: any;
};
protected synthesizeHclAttributes(): {
[name: string]: any;
};
}