1. Packages
  2. AWS
  3. API Docs
  4. appmesh
  5. VirtualRouter
AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi

aws.appmesh.VirtualRouter

Explore with Pulumi AI

aws logo
AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi

    Provides an AWS App Mesh virtual router resource.

    Breaking Changes

    Because of backward incompatible API changes (read here and here), aws.appmesh.VirtualRouter resource definitions created with provider versions earlier than v2.3.0 will need to be modified:

    • Remove service service_names from the spec argument. AWS has created a aws.appmesh.VirtualService resource for each service name. Import these resource using pulumi import.

    • Add a listener configuration block to the spec argument.

    The state associated with existing resources will automatically be migrated.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const serviceb = new aws.appmesh.VirtualRouter("serviceb", {
        name: "serviceB",
        meshName: simple.id,
        spec: {
            listeners: [{
                portMapping: {
                    port: 8080,
                    protocol: "http",
                },
            }],
        },
    });
    
    import pulumi
    import pulumi_aws as aws
    
    serviceb = aws.appmesh.VirtualRouter("serviceb",
        name="serviceB",
        mesh_name=simple["id"],
        spec={
            "listeners": [{
                "port_mapping": {
                    "port": 8080,
                    "protocol": "http",
                },
            }],
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/appmesh"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := appmesh.NewVirtualRouter(ctx, "serviceb", &appmesh.VirtualRouterArgs{
    			Name:     pulumi.String("serviceB"),
    			MeshName: pulumi.Any(simple.Id),
    			Spec: &appmesh.VirtualRouterSpecArgs{
    				Listeners: appmesh.VirtualRouterSpecListenerArray{
    					&appmesh.VirtualRouterSpecListenerArgs{
    						PortMapping: &appmesh.VirtualRouterSpecListenerPortMappingArgs{
    							Port:     pulumi.Int(8080),
    							Protocol: pulumi.String("http"),
    						},
    					},
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var serviceb = new Aws.AppMesh.VirtualRouter("serviceb", new()
        {
            Name = "serviceB",
            MeshName = simple.Id,
            Spec = new Aws.AppMesh.Inputs.VirtualRouterSpecArgs
            {
                Listeners = new[]
                {
                    new Aws.AppMesh.Inputs.VirtualRouterSpecListenerArgs
                    {
                        PortMapping = new Aws.AppMesh.Inputs.VirtualRouterSpecListenerPortMappingArgs
                        {
                            Port = 8080,
                            Protocol = "http",
                        },
                    },
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.appmesh.VirtualRouter;
    import com.pulumi.aws.appmesh.VirtualRouterArgs;
    import com.pulumi.aws.appmesh.inputs.VirtualRouterSpecArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var serviceb = new VirtualRouter("serviceb", VirtualRouterArgs.builder()
                .name("serviceB")
                .meshName(simple.id())
                .spec(VirtualRouterSpecArgs.builder()
                    .listeners(VirtualRouterSpecListenerArgs.builder()
                        .portMapping(VirtualRouterSpecListenerPortMappingArgs.builder()
                            .port(8080)
                            .protocol("http")
                            .build())
                        .build())
                    .build())
                .build());
    
        }
    }
    
    resources:
      serviceb:
        type: aws:appmesh:VirtualRouter
        properties:
          name: serviceB
          meshName: ${simple.id}
          spec:
            listeners:
              - portMapping:
                  port: 8080
                  protocol: http
    

    Create VirtualRouter Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new VirtualRouter(name: string, args: VirtualRouterArgs, opts?: CustomResourceOptions);
    @overload
    def VirtualRouter(resource_name: str,
                      args: VirtualRouterArgs,
                      opts: Optional[ResourceOptions] = None)
    
    @overload
    def VirtualRouter(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      mesh_name: Optional[str] = None,
                      spec: Optional[VirtualRouterSpecArgs] = None,
                      mesh_owner: Optional[str] = None,
                      name: Optional[str] = None,
                      tags: Optional[Mapping[str, str]] = None)
    func NewVirtualRouter(ctx *Context, name string, args VirtualRouterArgs, opts ...ResourceOption) (*VirtualRouter, error)
    public VirtualRouter(string name, VirtualRouterArgs args, CustomResourceOptions? opts = null)
    public VirtualRouter(String name, VirtualRouterArgs args)
    public VirtualRouter(String name, VirtualRouterArgs args, CustomResourceOptions options)
    
    type: aws:appmesh:VirtualRouter
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args VirtualRouterArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args VirtualRouterArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args VirtualRouterArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args VirtualRouterArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args VirtualRouterArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var virtualRouterResource = new Aws.AppMesh.VirtualRouter("virtualRouterResource", new()
    {
        MeshName = "string",
        Spec = new Aws.AppMesh.Inputs.VirtualRouterSpecArgs
        {
            Listeners = new[]
            {
                new Aws.AppMesh.Inputs.VirtualRouterSpecListenerArgs
                {
                    PortMapping = new Aws.AppMesh.Inputs.VirtualRouterSpecListenerPortMappingArgs
                    {
                        Port = 0,
                        Protocol = "string",
                    },
                },
            },
        },
        MeshOwner = "string",
        Name = "string",
        Tags = 
        {
            { "string", "string" },
        },
    });
    
    example, err := appmesh.NewVirtualRouter(ctx, "virtualRouterResource", &appmesh.VirtualRouterArgs{
    	MeshName: pulumi.String("string"),
    	Spec: &appmesh.VirtualRouterSpecArgs{
    		Listeners: appmesh.VirtualRouterSpecListenerArray{
    			&appmesh.VirtualRouterSpecListenerArgs{
    				PortMapping: &appmesh.VirtualRouterSpecListenerPortMappingArgs{
    					Port:     pulumi.Int(0),
    					Protocol: pulumi.String("string"),
    				},
    			},
    		},
    	},
    	MeshOwner: pulumi.String("string"),
    	Name:      pulumi.String("string"),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    })
    
    var virtualRouterResource = new VirtualRouter("virtualRouterResource", VirtualRouterArgs.builder()
        .meshName("string")
        .spec(VirtualRouterSpecArgs.builder()
            .listeners(VirtualRouterSpecListenerArgs.builder()
                .portMapping(VirtualRouterSpecListenerPortMappingArgs.builder()
                    .port(0)
                    .protocol("string")
                    .build())
                .build())
            .build())
        .meshOwner("string")
        .name("string")
        .tags(Map.of("string", "string"))
        .build());
    
    virtual_router_resource = aws.appmesh.VirtualRouter("virtualRouterResource",
        mesh_name="string",
        spec={
            "listeners": [{
                "port_mapping": {
                    "port": 0,
                    "protocol": "string",
                },
            }],
        },
        mesh_owner="string",
        name="string",
        tags={
            "string": "string",
        })
    
    const virtualRouterResource = new aws.appmesh.VirtualRouter("virtualRouterResource", {
        meshName: "string",
        spec: {
            listeners: [{
                portMapping: {
                    port: 0,
                    protocol: "string",
                },
            }],
        },
        meshOwner: "string",
        name: "string",
        tags: {
            string: "string",
        },
    });
    
    type: aws:appmesh:VirtualRouter
    properties:
        meshName: string
        meshOwner: string
        name: string
        spec:
            listeners:
                - portMapping:
                    port: 0
                    protocol: string
        tags:
            string: string
    

    VirtualRouter Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The VirtualRouter resource accepts the following input properties:

    MeshName string
    Name of the service mesh in which to create the virtual router. Must be between 1 and 255 characters in length.
    Spec VirtualRouterSpec
    Virtual router specification to apply.
    MeshOwner string
    AWS account ID of the service mesh's owner. Defaults to the account ID the AWS provider is currently connected to.
    Name string
    Name to use for the virtual router. Must be between 1 and 255 characters in length.
    Tags Dictionary<string, string>
    Map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    MeshName string
    Name of the service mesh in which to create the virtual router. Must be between 1 and 255 characters in length.
    Spec VirtualRouterSpecArgs
    Virtual router specification to apply.
    MeshOwner string
    AWS account ID of the service mesh's owner. Defaults to the account ID the AWS provider is currently connected to.
    Name string
    Name to use for the virtual router. Must be between 1 and 255 characters in length.
    Tags map[string]string
    Map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    meshName String
    Name of the service mesh in which to create the virtual router. Must be between 1 and 255 characters in length.
    spec VirtualRouterSpec
    Virtual router specification to apply.
    meshOwner String
    AWS account ID of the service mesh's owner. Defaults to the account ID the AWS provider is currently connected to.
    name String
    Name to use for the virtual router. Must be between 1 and 255 characters in length.
    tags Map<String,String>
    Map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    meshName string
    Name of the service mesh in which to create the virtual router. Must be between 1 and 255 characters in length.
    spec VirtualRouterSpec
    Virtual router specification to apply.
    meshOwner string
    AWS account ID of the service mesh's owner. Defaults to the account ID the AWS provider is currently connected to.
    name string
    Name to use for the virtual router. Must be between 1 and 255 characters in length.
    tags {[key: string]: string}
    Map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    mesh_name str
    Name of the service mesh in which to create the virtual router. Must be between 1 and 255 characters in length.
    spec VirtualRouterSpecArgs
    Virtual router specification to apply.
    mesh_owner str
    AWS account ID of the service mesh's owner. Defaults to the account ID the AWS provider is currently connected to.
    name str
    Name to use for the virtual router. Must be between 1 and 255 characters in length.
    tags Mapping[str, str]
    Map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    meshName String
    Name of the service mesh in which to create the virtual router. Must be between 1 and 255 characters in length.
    spec Property Map
    Virtual router specification to apply.
    meshOwner String
    AWS account ID of the service mesh's owner. Defaults to the account ID the AWS provider is currently connected to.
    name String
    Name to use for the virtual router. Must be between 1 and 255 characters in length.
    tags Map<String>
    Map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the VirtualRouter resource produces the following output properties:

    Arn string
    ARN of the virtual router.
    CreatedDate string
    Creation date of the virtual router.
    Id string
    The provider-assigned unique ID for this managed resource.
    LastUpdatedDate string
    Last update date of the virtual router.
    ResourceOwner string
    Resource owner's AWS account ID.
    TagsAll Dictionary<string, string>
    Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    Arn string
    ARN of the virtual router.
    CreatedDate string
    Creation date of the virtual router.
    Id string
    The provider-assigned unique ID for this managed resource.
    LastUpdatedDate string
    Last update date of the virtual router.
    ResourceOwner string
    Resource owner's AWS account ID.
    TagsAll map[string]string
    Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    arn String
    ARN of the virtual router.
    createdDate String
    Creation date of the virtual router.
    id String
    The provider-assigned unique ID for this managed resource.
    lastUpdatedDate String
    Last update date of the virtual router.
    resourceOwner String
    Resource owner's AWS account ID.
    tagsAll Map<String,String>
    Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    arn string
    ARN of the virtual router.
    createdDate string
    Creation date of the virtual router.
    id string
    The provider-assigned unique ID for this managed resource.
    lastUpdatedDate string
    Last update date of the virtual router.
    resourceOwner string
    Resource owner's AWS account ID.
    tagsAll {[key: string]: string}
    Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    arn str
    ARN of the virtual router.
    created_date str
    Creation date of the virtual router.
    id str
    The provider-assigned unique ID for this managed resource.
    last_updated_date str
    Last update date of the virtual router.
    resource_owner str
    Resource owner's AWS account ID.
    tags_all Mapping[str, str]
    Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    arn String
    ARN of the virtual router.
    createdDate String
    Creation date of the virtual router.
    id String
    The provider-assigned unique ID for this managed resource.
    lastUpdatedDate String
    Last update date of the virtual router.
    resourceOwner String
    Resource owner's AWS account ID.
    tagsAll Map<String>
    Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    Look up Existing VirtualRouter Resource

    Get an existing VirtualRouter resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: VirtualRouterState, opts?: CustomResourceOptions): VirtualRouter
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            arn: Optional[str] = None,
            created_date: Optional[str] = None,
            last_updated_date: Optional[str] = None,
            mesh_name: Optional[str] = None,
            mesh_owner: Optional[str] = None,
            name: Optional[str] = None,
            resource_owner: Optional[str] = None,
            spec: Optional[VirtualRouterSpecArgs] = None,
            tags: Optional[Mapping[str, str]] = None,
            tags_all: Optional[Mapping[str, str]] = None) -> VirtualRouter
    func GetVirtualRouter(ctx *Context, name string, id IDInput, state *VirtualRouterState, opts ...ResourceOption) (*VirtualRouter, error)
    public static VirtualRouter Get(string name, Input<string> id, VirtualRouterState? state, CustomResourceOptions? opts = null)
    public static VirtualRouter get(String name, Output<String> id, VirtualRouterState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Arn string
    ARN of the virtual router.
    CreatedDate string
    Creation date of the virtual router.
    LastUpdatedDate string
    Last update date of the virtual router.
    MeshName string
    Name of the service mesh in which to create the virtual router. Must be between 1 and 255 characters in length.
    MeshOwner string
    AWS account ID of the service mesh's owner. Defaults to the account ID the AWS provider is currently connected to.
    Name string
    Name to use for the virtual router. Must be between 1 and 255 characters in length.
    ResourceOwner string
    Resource owner's AWS account ID.
    Spec VirtualRouterSpec
    Virtual router specification to apply.
    Tags Dictionary<string, string>
    Map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    TagsAll Dictionary<string, string>
    Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    Arn string
    ARN of the virtual router.
    CreatedDate string
    Creation date of the virtual router.
    LastUpdatedDate string
    Last update date of the virtual router.
    MeshName string
    Name of the service mesh in which to create the virtual router. Must be between 1 and 255 characters in length.
    MeshOwner string
    AWS account ID of the service mesh's owner. Defaults to the account ID the AWS provider is currently connected to.
    Name string
    Name to use for the virtual router. Must be between 1 and 255 characters in length.
    ResourceOwner string
    Resource owner's AWS account ID.
    Spec VirtualRouterSpecArgs
    Virtual router specification to apply.
    Tags map[string]string
    Map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    TagsAll map[string]string
    Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    arn String
    ARN of the virtual router.
    createdDate String
    Creation date of the virtual router.
    lastUpdatedDate String
    Last update date of the virtual router.
    meshName String
    Name of the service mesh in which to create the virtual router. Must be between 1 and 255 characters in length.
    meshOwner String
    AWS account ID of the service mesh's owner. Defaults to the account ID the AWS provider is currently connected to.
    name String
    Name to use for the virtual router. Must be between 1 and 255 characters in length.
    resourceOwner String
    Resource owner's AWS account ID.
    spec VirtualRouterSpec
    Virtual router specification to apply.
    tags Map<String,String>
    Map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tagsAll Map<String,String>
    Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    arn string
    ARN of the virtual router.
    createdDate string
    Creation date of the virtual router.
    lastUpdatedDate string
    Last update date of the virtual router.
    meshName string
    Name of the service mesh in which to create the virtual router. Must be between 1 and 255 characters in length.
    meshOwner string
    AWS account ID of the service mesh's owner. Defaults to the account ID the AWS provider is currently connected to.
    name string
    Name to use for the virtual router. Must be between 1 and 255 characters in length.
    resourceOwner string
    Resource owner's AWS account ID.
    spec VirtualRouterSpec
    Virtual router specification to apply.
    tags {[key: string]: string}
    Map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tagsAll {[key: string]: string}
    Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    arn str
    ARN of the virtual router.
    created_date str
    Creation date of the virtual router.
    last_updated_date str
    Last update date of the virtual router.
    mesh_name str
    Name of the service mesh in which to create the virtual router. Must be between 1 and 255 characters in length.
    mesh_owner str
    AWS account ID of the service mesh's owner. Defaults to the account ID the AWS provider is currently connected to.
    name str
    Name to use for the virtual router. Must be between 1 and 255 characters in length.
    resource_owner str
    Resource owner's AWS account ID.
    spec VirtualRouterSpecArgs
    Virtual router specification to apply.
    tags Mapping[str, str]
    Map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tags_all Mapping[str, str]
    Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    arn String
    ARN of the virtual router.
    createdDate String
    Creation date of the virtual router.
    lastUpdatedDate String
    Last update date of the virtual router.
    meshName String
    Name of the service mesh in which to create the virtual router. Must be between 1 and 255 characters in length.
    meshOwner String
    AWS account ID of the service mesh's owner. Defaults to the account ID the AWS provider is currently connected to.
    name String
    Name to use for the virtual router. Must be between 1 and 255 characters in length.
    resourceOwner String
    Resource owner's AWS account ID.
    spec Property Map
    Virtual router specification to apply.
    tags Map<String>
    Map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tagsAll Map<String>
    Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    Supporting Types

    VirtualRouterSpec, VirtualRouterSpecArgs

    Listeners List<VirtualRouterSpecListener>
    Listeners that the virtual router is expected to receive inbound traffic from. Currently only one listener is supported per virtual router.
    Listeners []VirtualRouterSpecListener
    Listeners that the virtual router is expected to receive inbound traffic from. Currently only one listener is supported per virtual router.
    listeners List<VirtualRouterSpecListener>
    Listeners that the virtual router is expected to receive inbound traffic from. Currently only one listener is supported per virtual router.
    listeners VirtualRouterSpecListener[]
    Listeners that the virtual router is expected to receive inbound traffic from. Currently only one listener is supported per virtual router.
    listeners Sequence[VirtualRouterSpecListener]
    Listeners that the virtual router is expected to receive inbound traffic from. Currently only one listener is supported per virtual router.
    listeners List<Property Map>
    Listeners that the virtual router is expected to receive inbound traffic from. Currently only one listener is supported per virtual router.

    VirtualRouterSpecListener, VirtualRouterSpecListenerArgs

    PortMapping VirtualRouterSpecListenerPortMapping
    Port mapping information for the listener.
    PortMapping VirtualRouterSpecListenerPortMapping
    Port mapping information for the listener.
    portMapping VirtualRouterSpecListenerPortMapping
    Port mapping information for the listener.
    portMapping VirtualRouterSpecListenerPortMapping
    Port mapping information for the listener.
    port_mapping VirtualRouterSpecListenerPortMapping
    Port mapping information for the listener.
    portMapping Property Map
    Port mapping information for the listener.

    VirtualRouterSpecListenerPortMapping, VirtualRouterSpecListenerPortMappingArgs

    Port int
    Port used for the port mapping.
    Protocol string
    Protocol used for the port mapping. Valid values are http,http2, tcp and grpc.
    Port int
    Port used for the port mapping.
    Protocol string
    Protocol used for the port mapping. Valid values are http,http2, tcp and grpc.
    port Integer
    Port used for the port mapping.
    protocol String
    Protocol used for the port mapping. Valid values are http,http2, tcp and grpc.
    port number
    Port used for the port mapping.
    protocol string
    Protocol used for the port mapping. Valid values are http,http2, tcp and grpc.
    port int
    Port used for the port mapping.
    protocol str
    Protocol used for the port mapping. Valid values are http,http2, tcp and grpc.
    port Number
    Port used for the port mapping.
    protocol String
    Protocol used for the port mapping. Valid values are http,http2, tcp and grpc.

    Import

    Using pulumi import, import App Mesh virtual routers using mesh_name together with the virtual router’s name. For example:

    $ pulumi import aws:appmesh/virtualRouter:VirtualRouter serviceb simpleapp/serviceB
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    AWS Classic pulumi/pulumi-aws
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aws Terraform Provider.
    aws logo
    AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi