import * as core from "@terrascript/core"; export interface WeightedTargetArgs extends core.SchemaArgs { virtualNode: string | core.StringOut; weight: number | core.NumberOut; } export declare class WeightedTarget extends core.Schema { virtualNode: string | core.StringOut; weight: number | core.NumberOut; } export interface ActionArgs extends core.SchemaArgs { weightedTarget: core.Array | core.ArrayOut; } export declare class Action extends core.Schema { weightedTarget: core.Array | core.ArrayOut; } export interface RangeArgs extends core.SchemaArgs { end: number | core.NumberOut; start: number | core.NumberOut; } export declare class Range extends core.Schema { end: number | core.NumberOut; start: number | core.NumberOut; } export interface MetadataMatchArgs extends core.SchemaArgs { exact?: string | core.StringOut; prefix?: string | core.StringOut; range?: Range; regex?: string | core.StringOut; suffix?: string | core.StringOut; } export declare class MetadataMatch extends core.Schema { exact?: string | core.StringOut; prefix?: string | core.StringOut; range?: Range; regex?: string | core.StringOut; suffix?: string | core.StringOut; } export interface MetadataArgs extends core.SchemaArgs { invert?: boolean | core.BooleanOut; match?: MetadataMatch; name: string | core.StringOut; } export declare class Metadata extends core.Schema { invert?: boolean | core.BooleanOut; match?: MetadataMatch; name: string | core.StringOut; } export interface GrpcRouteMatchArgs extends core.SchemaArgs { metadata?: core.Array | core.ArrayOut; methodName?: string | core.StringOut; prefix?: string | core.StringOut; serviceName?: string | core.StringOut; } export declare class GrpcRouteMatch extends core.Schema { metadata?: core.Array | core.ArrayOut; methodName?: string | core.StringOut; prefix?: string | core.StringOut; serviceName?: string | core.StringOut; } export interface PerRetryTimeoutArgs extends core.SchemaArgs { unit: string | core.StringOut; value: number | core.NumberOut; } export declare class PerRetryTimeout extends core.Schema { unit: string | core.StringOut; value: number | core.NumberOut; } export interface GrpcRouteRetryPolicyArgs extends core.SchemaArgs { grpcRetryEvents?: core.Array | core.ArrayOut; httpRetryEvents?: core.Array | core.ArrayOut; maxRetries: number | core.NumberOut; perRetryTimeout: PerRetryTimeout; tcpRetryEvents?: core.Array | core.ArrayOut; } export declare class GrpcRouteRetryPolicy extends core.Schema { grpcRetryEvents?: core.Array | core.ArrayOut; httpRetryEvents?: core.Array | core.ArrayOut; maxRetries: number | core.NumberOut; perRetryTimeout: PerRetryTimeout; tcpRetryEvents?: core.Array | core.ArrayOut; } export interface IdleArgs extends core.SchemaArgs { unit: string | core.StringOut; value: number | core.NumberOut; } export declare class Idle extends core.Schema { unit: string | core.StringOut; value: number | core.NumberOut; } export interface PerRequestArgs extends core.SchemaArgs { unit: string | core.StringOut; value: number | core.NumberOut; } export declare class PerRequest extends core.Schema { unit: string | core.StringOut; value: number | core.NumberOut; } export interface GrpcRouteTimeoutArgs extends core.SchemaArgs { idle?: Idle; perRequest?: PerRequest; } export declare class GrpcRouteTimeout extends core.Schema { idle?: Idle; perRequest?: PerRequest; } export interface GrpcRouteArgs extends core.SchemaArgs { action: Action; match?: GrpcRouteMatch; retryPolicy?: GrpcRouteRetryPolicy; timeout?: GrpcRouteTimeout; } export declare class GrpcRoute extends core.Schema { action: Action; match?: GrpcRouteMatch; retryPolicy?: GrpcRouteRetryPolicy; timeout?: GrpcRouteTimeout; } export interface HeaderArgs extends core.SchemaArgs { invert?: boolean | core.BooleanOut; match?: MetadataMatch; name: string | core.StringOut; } export declare class Header extends core.Schema { invert?: boolean | core.BooleanOut; match?: MetadataMatch; name: string | core.StringOut; } export interface Http2RouteMatchArgs extends core.SchemaArgs { header?: core.Array
| core.ArrayOut
; method?: string | core.StringOut; prefix: string | core.StringOut; scheme?: string | core.StringOut; } export declare class Http2RouteMatch extends core.Schema { header?: core.Array
| core.ArrayOut
; method?: string | core.StringOut; prefix: string | core.StringOut; scheme?: string | core.StringOut; } export interface Http2RouteRetryPolicyArgs extends core.SchemaArgs { httpRetryEvents?: core.Array | core.ArrayOut; maxRetries: number | core.NumberOut; perRetryTimeout: PerRetryTimeout; tcpRetryEvents?: core.Array | core.ArrayOut; } export declare class Http2RouteRetryPolicy extends core.Schema { httpRetryEvents?: core.Array | core.ArrayOut; maxRetries: number | core.NumberOut; perRetryTimeout: PerRetryTimeout; tcpRetryEvents?: core.Array | core.ArrayOut; } export interface Http2RouteArgs extends core.SchemaArgs { action: Action; match: Http2RouteMatch; retryPolicy?: Http2RouteRetryPolicy; timeout?: GrpcRouteTimeout; } export declare class Http2Route extends core.Schema { action: Action; match: Http2RouteMatch; retryPolicy?: Http2RouteRetryPolicy; timeout?: GrpcRouteTimeout; } export interface HttpRouteArgs extends core.SchemaArgs { action: Action; match: Http2RouteMatch; retryPolicy?: Http2RouteRetryPolicy; timeout?: GrpcRouteTimeout; } export declare class HttpRoute extends core.Schema { action: Action; match: Http2RouteMatch; retryPolicy?: Http2RouteRetryPolicy; timeout?: GrpcRouteTimeout; } export interface TcpRouteTimeoutArgs extends core.SchemaArgs { idle?: Idle; } export declare class TcpRouteTimeout extends core.Schema { idle?: Idle; } export interface TcpRouteArgs extends core.SchemaArgs { action: Action; timeout?: TcpRouteTimeout; } export declare class TcpRoute extends core.Schema { action: Action; timeout?: TcpRouteTimeout; } export interface SpecArgs extends core.SchemaArgs { grpcRoute?: GrpcRoute; http2Route?: Http2Route; httpRoute?: HttpRoute; priority?: number | core.NumberOut; tcpRoute?: TcpRoute; } export declare class Spec extends core.Schema { grpcRoute?: GrpcRoute; http2Route?: Http2Route; httpRoute?: HttpRoute; priority?: number | core.NumberOut; tcpRoute?: TcpRoute; } export interface RouteArgs extends core.ResourceArgs { /** * (Required) The name of the service mesh in which to create the route. Must be between 1 and 255 char * acters 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 route. Must be between 1 and 255 characters in length. */ name: string | core.StringOut; /** * (Required) The 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 router in which to create the route. Must be between 1 and 255 ch * aracters in length. */ virtualRouterName: string | core.StringOut; } export declare class Route extends core.Resource { /** * The ARN of the route. */ arn: string | core.StringOut; /** * The creation date of the route. */ createdDate: string | core.StringOut; /** * The ID of the route. */ id: string | core.StringOut; /** * The last update date of the route. */ lastUpdatedDate: string | core.StringOut; /** * (Required) The name of the service mesh in which to create the route. Must be between 1 and 255 char * acters 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 route. Must be between 1 and 255 characters in length. */ name: string | core.StringOut; /** * The resource owner's AWS account ID. */ resourceOwner: string | core.StringOut; /** * (Required) The 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 router in which to create the route. Must be between 1 and 255 ch * aracters in length. */ virtualRouterName: string | core.StringOut; constructor(name: string, args?: RouteArgs); getNamespace(): string; } //# sourceMappingURL=route.d.ts.map