import * as core from "@terrascript/core"; export interface PortMappingArgs extends core.SchemaArgs { port: number | core.NumberOut; protocol: string | core.StringOut; } export class PortMapping extends core.Schema { @core.attr(Number) public port!: number | core.NumberOut; @core.attr(String) public protocol!: string | core.StringOut; } export interface ListenerArgs extends core.SchemaArgs { portMapping: PortMapping; } export class Listener extends core.Schema { @core.attr(PortMapping) public portMapping!: PortMapping; } export interface SpecArgs extends core.SchemaArgs { listener: Listener; } export class Spec extends core.Schema { @core.attr(Listener) public listener!: Listener; } export interface VirtualRouterArgs extends core.ResourceArgs { /** * (Required) The name of the service mesh in which to create the virtual router. Must be between 1 and * 255 characters in length. */ meshName: string | core.StringOut; /** * (Optional) The AWS account ID of the service mesh's owner. Defaults to the account ID the [AWS provi * der][1] is currently connected to. */ meshOwner?: string | core.StringOut; /** * (Required) The name to use for the virtual router. Must be between 1 and 255 characters in length. */ name: string | core.StringOut; /** * (Required) The virtual router specification to apply. */ spec: Spec; /** * (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 VirtualRouter extends core.Resource { /** * The ARN of the virtual router. */ @core.attr(String, { computed: true }) public arn!: string | core.StringOut; /** * The creation date of the virtual router. */ @core.attr(String, { computed: true }) public createdDate!: string | core.StringOut; /** * The ID of the virtual router. */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * The last update date of the virtual router. */ @core.attr(String, { computed: true }) public lastUpdatedDate!: string | core.StringOut; /** * (Required) The name of the service mesh in which to create the virtual router. Must be between 1 and * 255 characters in length. */ @core.attr(String) public meshName!: string | core.StringOut; /** * (Optional) The AWS account ID of the service mesh's owner. Defaults to the account ID the [AWS provi * der][1] is currently connected to. */ @core.attr(String, { computed: true }) public meshOwner?: string | core.StringOut; /** * (Required) The name to use for the virtual router. Must be between 1 and 255 characters in length. */ @core.attr(String) public name!: string | core.StringOut; /** * The resource owner's AWS account ID. */ @core.attr(String, { computed: true }) public resourceOwner!: string | core.StringOut; /** * (Required) The virtual router specification to apply. */ @core.attr(Spec) public spec!: Spec; /** * (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?: VirtualRouterArgs) { super(name, "aws_appmesh_virtual_router", args); } public override getNamespace(): string { return "aws_appmesh"; } }