import * as core from "@terrascript/core"; export interface VpcConnectorArgs extends core.ResourceArgs { /** * A list of IDs of security groups that App Runner should use for access to AWS resources under the sp * ecified subnets. If not specified, App Runner uses the default security group of the Amazon VPC. The * default security group allows all outbound traffic. */ securityGroups: core.Array | core.ArrayOut; subnets: core.Array | core.ArrayOut; /** * (Optional) Key-value map of resource tags. If configured with a provider [`default_tags` configurati * on block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-configurati * on-block) present, tags with matching keys will overwrite those defined at the provider-level. */ tags?: core.Map | core.MapOut; /** * (Required) A name for the VPC connector. */ vpcConnectorName: string | core.StringOut; } export class VpcConnector extends core.Resource { @core.attr(String, { computed: true }) public arn!: string | core.StringOut; @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * A list of IDs of security groups that App Runner should use for access to AWS resources under the sp * ecified subnets. If not specified, App Runner uses the default security group of the Amazon VPC. The * default security group allows all outbound traffic. */ @core.attr(String, { kind: "array" }) public securityGroups!: core.Array | core.ArrayOut; /** * The current state of the VPC connector. If the status of a connector revision is INACTIVE, it was de * leted and can't be used. Inactive connector revisions are permanently removed some time after they a * re deleted. */ @core.attr(String, { computed: true }) public status!: string | core.StringOut; @core.attr(String, { kind: "array" }) public subnets!: core.Array | core.ArrayOut; /** * (Optional) Key-value map of resource tags. If configured with a provider [`default_tags` configurati * on block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-configurati * on-block) present, tags with matching keys will overwrite those defined at the provider-level. */ @core.attr(String, { computed: true, kind: "map" }) public tags?: core.Map | core.MapOut; /** * (Required) A name for the VPC connector. */ @core.attr(String) public vpcConnectorName!: string | core.StringOut; /** * The revision of VPC connector. It's unique among all the active connectors ("Status": "ACTIVE") that * share the same Name. */ @core.attr(Number, { computed: true }) public vpcConnectorRevision!: number | core.NumberOut; constructor(name: string, args?: VpcConnectorArgs) { super(name, "aws_apprunner_vpc_connector", args); } public override getNamespace(): string { return "aws_apprunner"; } }