import * as core from "@terrascript/core"; export interface IngressArgs extends core.SchemaArgs { cidr?: string | core.StringOut; securityGroupId?: string | core.StringOut; securityGroupName?: string | core.StringOut; securityGroupOwnerId?: string | core.StringOut; } export class Ingress extends core.Schema { @core.attr(String) public cidr?: string | core.StringOut; @core.attr(String, { computed: true }) public securityGroupId?: string | core.StringOut; @core.attr(String, { computed: true }) public securityGroupName?: string | core.StringOut; @core.attr(String, { computed: true }) public securityGroupOwnerId?: string | core.StringOut; } export interface DbSecurityGroupArgs extends core.ResourceArgs { /** * (Optional) The description of the DB security group. Defaults to "Managed by Terraform". */ description?: string | core.StringOut; /** * (Required) A list of ingress rules. */ ingress: core.Array | core.ArrayOut; /** * (Required) The name of the DB security group. */ name: string | core.StringOut; /** * (Optional) A map of tags to assign to the resource. If configured with a provider [`default_tags` co * nfiguration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-co * nfiguration-block) present, tags with matching keys will overwrite those defined at the provider-lev * el. */ tags?: core.Map | core.MapOut; /** * A map of tags assigned to the resource, including those inherited from the provider [`default_tags` * configuration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags- * configuration-block). */ tagsAll?: core.Map | core.MapOut; } export class DbSecurityGroup extends core.Resource { /** * The arn of the DB security group. */ @core.attr(String, { computed: true }) public arn!: string | core.StringOut; /** * (Optional) The description of the DB security group. Defaults to "Managed by Terraform". */ @core.attr(String) public description?: string | core.StringOut; /** * The db security group ID. */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Required) A list of ingress rules. */ @core.attr(Ingress, { kind: "array" }) public ingress!: core.Array | core.ArrayOut; /** * (Required) The name of the DB security group. */ @core.attr(String) public name!: string | core.StringOut; /** * (Optional) A map of tags to assign to the resource. If configured with a provider [`default_tags` co * nfiguration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-co * nfiguration-block) present, tags with matching keys will overwrite those defined at the provider-lev * el. */ @core.attr(String, { kind: "map" }) public tags?: core.Map | core.MapOut; /** * A map of tags assigned to the resource, including those inherited from the provider [`default_tags` * configuration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags- * configuration-block). */ @core.attr(String, { computed: true, kind: "map" }) public tagsAll?: core.Map | core.MapOut; constructor(name: string, args?: DbSecurityGroupArgs) { super(name, "aws_db_security_group", args); } public override getNamespace(): string { return "aws_rds"; } }