// generated from terraform resource schema import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; /** * AWS Shield Protection */ export interface ShieldProtectionGroupConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/shield_protection_group.html#aggregation ShieldProtectionGroup#aggregation} */ readonly aggregation: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/shield_protection_group.html#members ShieldProtectionGroup#members} */ readonly members?: string[]; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/shield_protection_group.html#pattern ShieldProtectionGroup#pattern} */ readonly pattern: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/shield_protection_group.html#protection_group_id ShieldProtectionGroup#protection_group_id} */ readonly protectionGroupId: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/shield_protection_group.html#resource_type ShieldProtectionGroup#resource_type} */ readonly resourceType?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/shield_protection_group.html#tags ShieldProtectionGroup#tags} */ readonly tags?: { [key: string]: string } | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/shield_protection_group.html#tags_all ShieldProtectionGroup#tags_all} */ readonly tagsAll?: { [key: string]: string } | cdktf.IResolvable; } /** * Represents a {@link https://www.terraform.io/docs/providers/aws/r/shield_protection_group.html aws_shield_protection_group} */ export class ShieldProtectionGroup extends cdktf.TerraformResource { // ================= // STATIC PROPERTIES // ================= public static readonly tfResourceType: string = "aws_shield_protection_group"; // =========== // INITIALIZER // =========== /** * Create a new {@link https://www.terraform.io/docs/providers/aws/r/shield_protection_group.html aws_shield_protection_group} 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 ShieldProtectionGroupConfig */ public constructor(scope: Construct, id: string, config: ShieldProtectionGroupConfig) { super(scope, id, { terraformResourceType: 'aws_shield_protection_group', terraformGeneratorMetadata: { providerName: 'aws' }, provider: config.provider, dependsOn: config.dependsOn, count: config.count, lifecycle: config.lifecycle }); this._aggregation = config.aggregation; this._members = config.members; this._pattern = config.pattern; this._protectionGroupId = config.protectionGroupId; this._resourceType = config.resourceType; this._tags = config.tags; this._tagsAll = config.tagsAll; } // ========== // ATTRIBUTES // ========== // aggregation - computed: false, optional: false, required: true private _aggregation?: string; public get aggregation() { return this.getStringAttribute('aggregation'); } public set aggregation(value: string) { this._aggregation = value; } // Temporarily expose input value. Use with caution. public get aggregationInput() { return this._aggregation; } // id - computed: true, optional: true, required: false public get id() { return this.getStringAttribute('id'); } // members - computed: false, optional: true, required: false private _members?: string[]; public get members() { return this.getListAttribute('members'); } public set members(value: string[]) { this._members = value; } public resetMembers() { this._members = undefined; } // Temporarily expose input value. Use with caution. public get membersInput() { return this._members; } // pattern - computed: false, optional: false, required: true private _pattern?: string; public get pattern() { return this.getStringAttribute('pattern'); } public set pattern(value: string) { this._pattern = value; } // Temporarily expose input value. Use with caution. public get patternInput() { return this._pattern; } // protection_group_arn - computed: true, optional: false, required: false public get protectionGroupArn() { return this.getStringAttribute('protection_group_arn'); } // protection_group_id - computed: false, optional: false, required: true private _protectionGroupId?: string; public get protectionGroupId() { return this.getStringAttribute('protection_group_id'); } public set protectionGroupId(value: string) { this._protectionGroupId = value; } // Temporarily expose input value. Use with caution. public get protectionGroupIdInput() { return this._protectionGroupId; } // resource_type - computed: false, optional: true, required: false private _resourceType?: string; public get resourceType() { return this.getStringAttribute('resource_type'); } public set resourceType(value: string) { this._resourceType = value; } public resetResourceType() { this._resourceType = undefined; } // Temporarily expose input value. Use with caution. public get resourceTypeInput() { return this._resourceType; } // 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 { aggregation: cdktf.stringToTerraform(this._aggregation), members: cdktf.listMapper(cdktf.stringToTerraform)(this._members), pattern: cdktf.stringToTerraform(this._pattern), protection_group_id: cdktf.stringToTerraform(this._protectionGroupId), resource_type: cdktf.stringToTerraform(this._resourceType), tags: cdktf.hashMapper(cdktf.anyToTerraform)(this._tags), tags_all: cdktf.hashMapper(cdktf.anyToTerraform)(this._tagsAll), }; } }