// generated from terraform resource schema import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; /** * AWS Systems Manager */ export interface SsmParameterConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/ssm_parameter.html#allowed_pattern SsmParameter#allowed_pattern} */ readonly allowedPattern?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/ssm_parameter.html#data_type SsmParameter#data_type} */ readonly dataType?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/ssm_parameter.html#description SsmParameter#description} */ readonly description?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/ssm_parameter.html#key_id SsmParameter#key_id} */ readonly keyId?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/ssm_parameter.html#name SsmParameter#name} */ readonly name: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/ssm_parameter.html#overwrite SsmParameter#overwrite} */ readonly overwrite?: boolean | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/ssm_parameter.html#tags SsmParameter#tags} */ readonly tags?: { [key: string]: string } | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/ssm_parameter.html#tags_all SsmParameter#tags_all} */ readonly tagsAll?: { [key: string]: string } | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/ssm_parameter.html#tier SsmParameter#tier} */ readonly tier?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/ssm_parameter.html#type SsmParameter#type} */ readonly type: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/ssm_parameter.html#value SsmParameter#value} */ readonly value: string; } /** * Represents a {@link https://www.terraform.io/docs/providers/aws/r/ssm_parameter.html aws_ssm_parameter} */ export class SsmParameter extends cdktf.TerraformResource { // ================= // STATIC PROPERTIES // ================= public static readonly tfResourceType: string = "aws_ssm_parameter"; // =========== // INITIALIZER // =========== /** * Create a new {@link https://www.terraform.io/docs/providers/aws/r/ssm_parameter.html aws_ssm_parameter} 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 SsmParameterConfig */ public constructor(scope: Construct, id: string, config: SsmParameterConfig) { super(scope, id, { terraformResourceType: 'aws_ssm_parameter', terraformGeneratorMetadata: { providerName: 'aws' }, provider: config.provider, dependsOn: config.dependsOn, count: config.count, lifecycle: config.lifecycle }); this._allowedPattern = config.allowedPattern; this._dataType = config.dataType; this._description = config.description; this._keyId = config.keyId; this._name = config.name; this._overwrite = config.overwrite; this._tags = config.tags; this._tagsAll = config.tagsAll; this._tier = config.tier; this._type = config.type; this._value = config.value; } // ========== // ATTRIBUTES // ========== // allowed_pattern - computed: false, optional: true, required: false private _allowedPattern?: string; public get allowedPattern() { return this.getStringAttribute('allowed_pattern'); } public set allowedPattern(value: string) { this._allowedPattern = value; } public resetAllowedPattern() { this._allowedPattern = undefined; } // Temporarily expose input value. Use with caution. public get allowedPatternInput() { return this._allowedPattern; } // arn - computed: true, optional: true, required: false public get arn() { return this.getStringAttribute('arn'); } // data_type - computed: true, optional: true, required: false private _dataType?: string; public get dataType() { return this.getStringAttribute('data_type'); } public set dataType(value: string) { this._dataType = value; } public resetDataType() { this._dataType = undefined; } // Temporarily expose input value. Use with caution. public get dataTypeInput() { return this._dataType; } // description - computed: false, optional: true, required: false private _description?: string; public get description() { return this.getStringAttribute('description'); } public set description(value: string) { this._description = value; } public resetDescription() { this._description = undefined; } // Temporarily expose input value. Use with caution. public get descriptionInput() { return this._description; } // id - computed: true, optional: true, required: false public get id() { return this.getStringAttribute('id'); } // key_id - computed: true, optional: true, required: false private _keyId?: string; public get keyId() { return this.getStringAttribute('key_id'); } public set keyId(value: string) { this._keyId = value; } public resetKeyId() { this._keyId = undefined; } // Temporarily expose input value. Use with caution. public get keyIdInput() { return this._keyId; } // name - computed: false, optional: false, required: true private _name?: string; public get name() { return this.getStringAttribute('name'); } public set name(value: string) { this._name = value; } // Temporarily expose input value. Use with caution. public get nameInput() { return this._name; } // overwrite - computed: false, optional: true, required: false private _overwrite?: boolean | cdktf.IResolvable; public get overwrite() { return this.getBooleanAttribute('overwrite') as any; } public set overwrite(value: boolean | cdktf.IResolvable) { this._overwrite = value; } public resetOverwrite() { this._overwrite = undefined; } // Temporarily expose input value. Use with caution. public get overwriteInput() { return this._overwrite; } // tags - computed: false, optional: true, required: false private _tags?: { [key: string]: string } | cdktf.IResolvable; public get tags() { // Getting the computed value is not yet implemented return this.interpolationForAttribute('tags') as any; } public set tags(value: { [key: string]: string } | cdktf.IResolvable) { this._tags = value; } public resetTags() { this._tags = undefined; } // Temporarily expose input value. Use with caution. public get tagsInput() { return this._tags; } // tags_all - computed: true, optional: true, required: false private _tagsAll?: { [key: string]: string } | cdktf.IResolvable; public get tagsAll() { // Getting the computed value is not yet implemented return this.interpolationForAttribute('tags_all') as any; } public set tagsAll(value: { [key: string]: string } | cdktf.IResolvable) { this._tagsAll = value; } public resetTagsAll() { this._tagsAll = undefined; } // Temporarily expose input value. Use with caution. public get tagsAllInput() { return this._tagsAll; } // tier - computed: false, optional: true, required: false private _tier?: string; public get tier() { return this.getStringAttribute('tier'); } public set tier(value: string) { this._tier = value; } public resetTier() { this._tier = undefined; } // Temporarily expose input value. Use with caution. public get tierInput() { return this._tier; } // type - computed: false, optional: false, required: true private _type?: string; public get type() { return this.getStringAttribute('type'); } public set type(value: string) { this._type = value; } // Temporarily expose input value. Use with caution. public get typeInput() { return this._type; } // value - computed: false, optional: false, required: true private _value?: string; public get value() { return this.getStringAttribute('value'); } public set value(value: string) { this._value = value; } // Temporarily expose input value. Use with caution. public get valueInput() { return this._value; } // version - computed: true, optional: false, required: false public get version() { return this.getNumberAttribute('version'); } // ========= // SYNTHESIS // ========= protected synthesizeAttributes(): { [name: string]: any } { return { allowed_pattern: cdktf.stringToTerraform(this._allowedPattern), data_type: cdktf.stringToTerraform(this._dataType), description: cdktf.stringToTerraform(this._description), key_id: cdktf.stringToTerraform(this._keyId), name: cdktf.stringToTerraform(this._name), overwrite: cdktf.booleanToTerraform(this._overwrite), tags: cdktf.hashMapper(cdktf.anyToTerraform)(this._tags), tags_all: cdktf.hashMapper(cdktf.anyToTerraform)(this._tagsAll), tier: cdktf.stringToTerraform(this._tier), type: cdktf.stringToTerraform(this._type), value: cdktf.stringToTerraform(this._value), }; } }