import * as core from "@terrascript/core"; export interface VirtualNodeArgs extends core.SchemaArgs { virtualNodeName: string | core.StringOut; } export class VirtualNode extends core.Schema { @core.attr(String) public virtualNodeName!: string | core.StringOut; } export interface VirtualRouterArgs extends core.SchemaArgs { virtualRouterName: string | core.StringOut; } export class VirtualRouter extends core.Schema { @core.attr(String) public virtualRouterName!: string | core.StringOut; } export interface ProviderArgs extends core.SchemaArgs { virtualNode?: VirtualNode; virtualRouter?: VirtualRouter; } export class Provider extends core.Schema { @core.attr(VirtualNode) public virtualNode?: VirtualNode; @core.attr(VirtualRouter) public virtualRouter?: VirtualRouter; } export interface SpecArgs extends core.SchemaArgs { provider?: Provider; } export class Spec extends core.Schema { @core.attr(Provider) public provider?: Provider; } export interface VirtualServiceArgs extends core.ResourceArgs { /** * (Required) The name of the service mesh in which to create the virtual service. Must be between 1 an * d 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 service. Must be between 1 and 255 characters in length. */ name: string | core.StringOut; /** * (Required) The virtual service 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 VirtualService extends core.Resource { /** * The ARN of the virtual service. */ @core.attr(String, { computed: true }) public arn!: string | core.StringOut; /** * The creation date of the virtual service. */ @core.attr(String, { computed: true }) public createdDate!: string | core.StringOut; /** * The ID of the virtual service. */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * The last update date of the virtual service. */ @core.attr(String, { computed: true }) public lastUpdatedDate!: string | core.StringOut; /** * (Required) The name of the service mesh in which to create the virtual service. Must be between 1 an * d 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 service. 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 service 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?: VirtualServiceArgs) { super(name, "aws_appmesh_virtual_service", args); } public override getNamespace(): string { return "aws_appmesh"; } }