import * as core from "@terrascript/core"; export interface IngressArgs extends core.SchemaArgs { cidr?: 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 securityGroupName?: string | core.StringOut; @core.attr(String, { computed: true }) public securityGroupOwnerId?: string | core.StringOut; } export interface SecurityGroupArgs extends core.ResourceArgs { /** * (Optional) The description of the Redshift security group. Defaults to "Managed by Terraform". */ description?: string | core.StringOut; /** * (Optional) A list of ingress rules. */ ingress: core.Array | core.ArrayOut; /** * (Required) The name of the Redshift security group. */ name: string | core.StringOut; } export class SecurityGroup extends core.Resource { /** * (Optional) The description of the Redshift security group. Defaults to "Managed by Terraform". */ @core.attr(String) public description?: string | core.StringOut; /** * The Redshift security group ID. */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Optional) A list of ingress rules. */ @core.attr(Ingress, { kind: "array" }) public ingress!: core.Array | core.ArrayOut; /** * (Required) The name of the Redshift security group. */ @core.attr(String) public name!: string | core.StringOut; constructor(name: string, args?: SecurityGroupArgs) { super(name, "aws_redshift_security_group", args); } public override getNamespace(): string { return "aws_redshift"; } }