// generated from terraform resource schema import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; /** * AWS GuardDuty */ export interface GuarddutyIpsetConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/guardduty_ipset.html#activate GuarddutyIpset#activate} */ readonly activate: boolean | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/guardduty_ipset.html#detector_id GuarddutyIpset#detector_id} */ readonly detectorId: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/guardduty_ipset.html#format GuarddutyIpset#format} */ readonly format: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/guardduty_ipset.html#location GuarddutyIpset#location} */ readonly location: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/guardduty_ipset.html#name GuarddutyIpset#name} */ readonly name: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/guardduty_ipset.html#tags GuarddutyIpset#tags} */ readonly tags?: { [key: string]: string } | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/guardduty_ipset.html#tags_all GuarddutyIpset#tags_all} */ readonly tagsAll?: { [key: string]: string } | cdktf.IResolvable; } /** * Represents a {@link https://www.terraform.io/docs/providers/aws/r/guardduty_ipset.html aws_guardduty_ipset} */ export class GuarddutyIpset extends cdktf.TerraformResource { // ================= // STATIC PROPERTIES // ================= public static readonly tfResourceType: string = "aws_guardduty_ipset"; // =========== // INITIALIZER // =========== /** * Create a new {@link https://www.terraform.io/docs/providers/aws/r/guardduty_ipset.html aws_guardduty_ipset} 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 GuarddutyIpsetConfig */ public constructor(scope: Construct, id: string, config: GuarddutyIpsetConfig) { super(scope, id, { terraformResourceType: 'aws_guardduty_ipset', terraformGeneratorMetadata: { providerName: 'aws' }, provider: config.provider, dependsOn: config.dependsOn, count: config.count, lifecycle: config.lifecycle }); this._activate = config.activate; this._detectorId = config.detectorId; this._format = config.format; this._location = config.location; this._name = config.name; this._tags = config.tags; this._tagsAll = config.tagsAll; } // ========== // ATTRIBUTES // ========== // activate - computed: false, optional: false, required: true private _activate?: boolean | cdktf.IResolvable; public get activate() { return this.getBooleanAttribute('activate') as any; } public set activate(value: boolean | cdktf.IResolvable) { this._activate = value; } // Temporarily expose input value. Use with caution. public get activateInput() { return this._activate; } // arn - computed: true, optional: false, required: false public get arn() { return this.getStringAttribute('arn'); } // detector_id - computed: false, optional: false, required: true private _detectorId?: string; public get detectorId() { return this.getStringAttribute('detector_id'); } public set detectorId(value: string) { this._detectorId = value; } // Temporarily expose input value. Use with caution. public get detectorIdInput() { return this._detectorId; } // format - computed: false, optional: false, required: true private _format?: string; public get format() { return this.getStringAttribute('format'); } public set format(value: string) { this._format = value; } // Temporarily expose input value. Use with caution. public get formatInput() { return this._format; } // id - computed: true, optional: true, required: false public get id() { return this.getStringAttribute('id'); } // location - computed: false, optional: false, required: true private _location?: string; public get location() { return this.getStringAttribute('location'); } public set location(value: string) { this._location = value; } // Temporarily expose input value. Use with caution. public get locationInput() { return this._location; } // 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; } // 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; } // ========= // SYNTHESIS // ========= protected synthesizeAttributes(): { [name: string]: any } { return { activate: cdktf.booleanToTerraform(this._activate), detector_id: cdktf.stringToTerraform(this._detectorId), format: cdktf.stringToTerraform(this._format), location: cdktf.stringToTerraform(this._location), name: cdktf.stringToTerraform(this._name), tags: cdktf.hashMapper(cdktf.anyToTerraform)(this._tags), tags_all: cdktf.hashMapper(cdktf.anyToTerraform)(this._tagsAll), }; } }