// generated from terraform resource schema import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; /** * AWS Systems Manager */ export interface DataAwsSsmParametersByPathConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/d/ssm_parameters_by_path.html#path DataAwsSsmParametersByPath#path} */ readonly path: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/d/ssm_parameters_by_path.html#with_decryption DataAwsSsmParametersByPath#with_decryption} */ readonly withDecryption?: boolean | cdktf.IResolvable; } /** * Represents a {@link https://www.terraform.io/docs/providers/aws/d/ssm_parameters_by_path.html aws_ssm_parameters_by_path} */ export class DataAwsSsmParametersByPath extends cdktf.TerraformDataSource { // ================= // STATIC PROPERTIES // ================= public static readonly tfResourceType: string = "aws_ssm_parameters_by_path"; // =========== // INITIALIZER // =========== /** * Create a new {@link https://www.terraform.io/docs/providers/aws/d/ssm_parameters_by_path.html aws_ssm_parameters_by_path} 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 DataAwsSsmParametersByPathConfig */ public constructor(scope: Construct, id: string, config: DataAwsSsmParametersByPathConfig) { super(scope, id, { terraformResourceType: 'aws_ssm_parameters_by_path', terraformGeneratorMetadata: { providerName: 'aws' }, provider: config.provider, dependsOn: config.dependsOn, count: config.count, lifecycle: config.lifecycle }); this._path = config.path; this._withDecryption = config.withDecryption; } // ========== // ATTRIBUTES // ========== // arns - computed: true, optional: false, required: false public get arns() { return this.getListAttribute('arns'); } // id - computed: true, optional: true, required: false public get id() { return this.getStringAttribute('id'); } // names - computed: true, optional: false, required: false public get names() { return this.getListAttribute('names'); } // path - computed: false, optional: false, required: true private _path?: string; public get path() { return this.getStringAttribute('path'); } public set path(value: string) { this._path = value; } // Temporarily expose input value. Use with caution. public get pathInput() { return this._path; } // types - computed: true, optional: false, required: false public get types() { return this.getListAttribute('types'); } // values - computed: true, optional: false, required: false public get values() { return this.getListAttribute('values'); } // with_decryption - computed: false, optional: true, required: false private _withDecryption?: boolean | cdktf.IResolvable; public get withDecryption() { return this.getBooleanAttribute('with_decryption') as any; } public set withDecryption(value: boolean | cdktf.IResolvable) { this._withDecryption = value; } public resetWithDecryption() { this._withDecryption = undefined; } // Temporarily expose input value. Use with caution. public get withDecryptionInput() { return this._withDecryption; } // ========= // SYNTHESIS // ========= protected synthesizeAttributes(): { [name: string]: any } { return { path: cdktf.stringToTerraform(this._path), with_decryption: cdktf.booleanToTerraform(this._withDecryption), }; } }