import * as core from "@terrascript/core"; export interface VirtualServiceArgs extends core.SchemaArgs { virtualServiceName: string | core.StringOut; } export class VirtualService extends core.Schema { @core.attr(String) public virtualServiceName!: string | core.StringOut; } export interface TargetArgs extends core.SchemaArgs { virtualService: VirtualService; } export class Target extends core.Schema { @core.attr(VirtualService) public virtualService!: VirtualService; } export interface RewriteHostnameArgs extends core.SchemaArgs { defaultTargetHostname: string | core.StringOut; } export class RewriteHostname extends core.Schema { @core.attr(String) public defaultTargetHostname!: string | core.StringOut; } export interface PrefixArgs extends core.SchemaArgs { defaultPrefix?: string | core.StringOut; value?: string | core.StringOut; } export class Prefix extends core.Schema { @core.attr(String) public defaultPrefix?: string | core.StringOut; @core.attr(String) public value?: string | core.StringOut; } export interface RewriteArgs extends core.SchemaArgs { hostname?: RewriteHostname; prefix?: Prefix; } export class Rewrite extends core.Schema { @core.attr(RewriteHostname) public hostname?: RewriteHostname; @core.attr(Prefix) public prefix?: Prefix; } export interface Http2RouteActionArgs extends core.SchemaArgs { rewrite?: Rewrite; target: Target; } export class Http2RouteAction extends core.Schema { @core.attr(Rewrite) public rewrite?: Rewrite; @core.attr(Target) public target!: Target; } export interface Http2RouteMatchHostnameArgs extends core.SchemaArgs { exact?: string | core.StringOut; suffix?: string | core.StringOut; } export class Http2RouteMatchHostname extends core.Schema { @core.attr(String) public exact?: string | core.StringOut; @core.attr(String) public suffix?: string | core.StringOut; } export interface Http2RouteMatchArgs extends core.SchemaArgs { hostname?: Http2RouteMatchHostname; prefix?: string | core.StringOut; } export class Http2RouteMatch extends core.Schema { @core.attr(Http2RouteMatchHostname) public hostname?: Http2RouteMatchHostname; @core.attr(String) public prefix?: string | core.StringOut; } export interface Http2RouteArgs extends core.SchemaArgs { action: Http2RouteAction; match: Http2RouteMatch; } export class Http2Route extends core.Schema { @core.attr(Http2RouteAction) public action!: Http2RouteAction; @core.attr(Http2RouteMatch) public match!: Http2RouteMatch; } export interface HttpRouteArgs extends core.SchemaArgs { action: Http2RouteAction; match: Http2RouteMatch; } export class HttpRoute extends core.Schema { @core.attr(Http2RouteAction) public action!: Http2RouteAction; @core.attr(Http2RouteMatch) public match!: Http2RouteMatch; } export interface GrpcRouteMatchArgs extends core.SchemaArgs { serviceName: string | core.StringOut; } export class GrpcRouteMatch extends core.Schema { @core.attr(String) public serviceName!: string | core.StringOut; } export interface GrpcRouteActionArgs extends core.SchemaArgs { target: Target; } export class GrpcRouteAction extends core.Schema { @core.attr(Target) public target!: Target; } export interface GrpcRouteArgs extends core.SchemaArgs { action: GrpcRouteAction; match: GrpcRouteMatch; } export class GrpcRoute extends core.Schema { @core.attr(GrpcRouteAction) public action!: GrpcRouteAction; @core.attr(GrpcRouteMatch) public match!: GrpcRouteMatch; } export interface SpecArgs extends core.SchemaArgs { grpcRoute?: GrpcRoute; http2Route?: Http2Route; httpRoute?: HttpRoute; } export class Spec extends core.Schema { @core.attr(GrpcRoute) public grpcRoute?: GrpcRoute; @core.attr(Http2Route) public http2Route?: Http2Route; @core.attr(HttpRoute) public httpRoute?: HttpRoute; } export interface GatewayRouteArgs extends core.ResourceArgs { /** * (Required) The name of the service mesh in which to create the gateway route. 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 gateway route. Must be between 1 and 255 characters in length. */ name: string | core.StringOut; /** * (Required) The gateway route 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; /** * (Required) The name of the [virtual gateway](/docs/providers/aws/r/appmesh_virtual_gateway.html) to * associate the gateway route with. Must be between 1 and 255 characters in length. */ virtualGatewayName: string | core.StringOut; } export class GatewayRoute extends core.Resource { /** * The ARN of the gateway route. */ @core.attr(String, { computed: true }) public arn!: string | core.StringOut; /** * The creation date of the gateway route. */ @core.attr(String, { computed: true }) public createdDate!: string | core.StringOut; /** * The ID of the gateway route. */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * The last update date of the gateway route. */ @core.attr(String, { computed: true }) public lastUpdatedDate!: string | core.StringOut; /** * (Required) The name of the service mesh in which to create the gateway route. 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 gateway route. 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 gateway route 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; /** * (Required) The name of the [virtual gateway](/docs/providers/aws/r/appmesh_virtual_gateway.html) to * associate the gateway route with. Must be between 1 and 255 characters in length. */ @core.attr(String) public virtualGatewayName!: string | core.StringOut; constructor(name: string, args?: GatewayRouteArgs) { super(name, "aws_appmesh_gateway_route", args); } public override getNamespace(): string { return "aws_appmesh"; } }