// generated from terraform resource schema import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; /** * AWS Inspector */ export interface InspectorAssessmentTargetConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/inspector_assessment_target.html#name InspectorAssessmentTarget#name} */ readonly name: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/inspector_assessment_target.html#resource_group_arn InspectorAssessmentTarget#resource_group_arn} */ readonly resourceGroupArn?: string; } /** * Represents a {@link https://www.terraform.io/docs/providers/aws/r/inspector_assessment_target.html aws_inspector_assessment_target} */ export class InspectorAssessmentTarget extends cdktf.TerraformResource { // ================= // STATIC PROPERTIES // ================= public static readonly tfResourceType: string = "aws_inspector_assessment_target"; // =========== // INITIALIZER // =========== /** * Create a new {@link https://www.terraform.io/docs/providers/aws/r/inspector_assessment_target.html aws_inspector_assessment_target} 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 InspectorAssessmentTargetConfig */ public constructor(scope: Construct, id: string, config: InspectorAssessmentTargetConfig) { super(scope, id, { terraformResourceType: 'aws_inspector_assessment_target', terraformGeneratorMetadata: { providerName: 'aws' }, provider: config.provider, dependsOn: config.dependsOn, count: config.count, lifecycle: config.lifecycle }); this._name = config.name; this._resourceGroupArn = config.resourceGroupArn; } // ========== // ATTRIBUTES // ========== // arn - computed: true, optional: false, required: false public get arn() { return this.getStringAttribute('arn'); } // id - computed: true, optional: true, required: false public get id() { return this.getStringAttribute('id'); } // 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; } // resource_group_arn - computed: false, optional: true, required: false private _resourceGroupArn?: string; public get resourceGroupArn() { return this.getStringAttribute('resource_group_arn'); } public set resourceGroupArn(value: string) { this._resourceGroupArn = value; } public resetResourceGroupArn() { this._resourceGroupArn = undefined; } // Temporarily expose input value. Use with caution. public get resourceGroupArnInput() { return this._resourceGroupArn; } // ========= // SYNTHESIS // ========= protected synthesizeAttributes(): { [name: string]: any } { return { name: cdktf.stringToTerraform(this._name), resource_group_arn: cdktf.stringToTerraform(this._resourceGroupArn), }; } }