AWS Classic
getMesh
The App Mesh Mesh data source allows details of an App Mesh Mesh to be retrieved by its name and optionally the mesh_owner.
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var simple = Output.Create(Aws.AppMesh.GetMesh.InvokeAsync(new Aws.AppMesh.GetMeshArgs
{
Name = "simpleapp",
}));
}
}
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/appmesh"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := appmesh.LookupMesh(ctx, &appmesh.LookupMeshArgs{
Name: "simpleapp",
}, nil)
if err != nil {
return err
}
return nil
})
}
package generated_program;
import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var simple = Output.of(AppmeshFunctions.getMesh(GetMeshArgs.builder()
.name("simpleapp")
.build()));
}
}
import pulumi
import pulumi_aws as aws
simple = aws.appmesh.get_mesh(name="simpleapp")
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const simple = pulumi.output(aws.appmesh.getMesh({
name: "simpleapp",
}));
variables:
simple:
Fn::Invoke:
Function: aws:appmesh:getMesh
Arguments:
name: simpleapp
Using getMesh
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getMesh(args: GetMeshArgs, opts?: InvokeOptions): Promise<GetMeshResult>
function getMeshOutput(args: GetMeshOutputArgs, opts?: InvokeOptions): Output<GetMeshResult>
def get_mesh(mesh_owner: Optional[str] = None,
name: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
opts: Optional[InvokeOptions] = None) -> GetMeshResult
def get_mesh_output(mesh_owner: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetMeshResult]
func LookupMesh(ctx *Context, args *LookupMeshArgs, opts ...InvokeOption) (*LookupMeshResult, error)
func LookupMeshOutput(ctx *Context, args *LookupMeshOutputArgs, opts ...InvokeOption) LookupMeshResultOutput
> Note: This function is named LookupMesh
in the Go SDK.
public static class GetMesh
{
public static Task<GetMeshResult> InvokeAsync(GetMeshArgs args, InvokeOptions? opts = null)
public static Output<GetMeshResult> Invoke(GetMeshInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetMeshResult> getMesh(GetMeshArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
Function: aws:appmesh/getMesh:getMesh
Arguments:
# Arguments dictionary
The following arguments are supported:
- name str
The name of the service mesh.
- mesh_
owner str The AWS account ID of the service mesh's owner.
- Mapping[str, str]
A map of tags.
getMesh Result
The following output properties are available:
- Arn string
The ARN of the service mesh.
- Created
Date string The creation date of the service mesh.
- Id string
The provider-assigned unique ID for this managed resource.
- Last
Updated stringDate The last update date of the service mesh.
- Mesh
Owner string - Name string
- Resource
Owner string The resource owner's AWS account ID.
- Specs
List<Get
Mesh Spec> The service mesh specification.
- Dictionary<string, string>
A map of tags.
- Arn string
The ARN of the service mesh.
- Created
Date string The creation date of the service mesh.
- Id string
The provider-assigned unique ID for this managed resource.
- Last
Updated stringDate The last update date of the service mesh.
- Mesh
Owner string - Name string
- Resource
Owner string The resource owner's AWS account ID.
- Specs
[]Get
Mesh Spec The service mesh specification.
- map[string]string
A map of tags.
- arn String
The ARN of the service mesh.
- created
Date String The creation date of the service mesh.
- id String
The provider-assigned unique ID for this managed resource.
- last
Updated StringDate The last update date of the service mesh.
- mesh
Owner String - name String
- resource
Owner String The resource owner's AWS account ID.
- specs
List
Mesh Spec> The service mesh specification.
- Map
A map of tags.
- arn string
The ARN of the service mesh.
- created
Date string The creation date of the service mesh.
- id string
The provider-assigned unique ID for this managed resource.
- last
Updated stringDate The last update date of the service mesh.
- mesh
Owner string - name string
- resource
Owner string The resource owner's AWS account ID.
- specs
Get
Mesh Spec[] The service mesh specification.
- {[key: string]: string}
A map of tags.
- arn str
The ARN of the service mesh.
- created_
date str The creation date of the service mesh.
- id str
The provider-assigned unique ID for this managed resource.
- last_
updated_ strdate The last update date of the service mesh.
- mesh_
owner str - name str
- resource_
owner str The resource owner's AWS account ID.
- specs
Sequence[Get
Mesh Spec] The service mesh specification.
- Mapping[str, str]
A map of tags.
- arn String
The ARN of the service mesh.
- created
Date String The creation date of the service mesh.
- id String
The provider-assigned unique ID for this managed resource.
- last
Updated StringDate The last update date of the service mesh.
- mesh
Owner String - name String
- resource
Owner String The resource owner's AWS account ID.
- specs
List
The service mesh specification.
- Map
A map of tags.
Supporting Types
GetMeshSpec
- Egress
Filters List<GetMesh Spec Egress Filter> The egress filter rules for the service mesh.
- Egress
Filters []GetMesh Spec Egress Filter The egress filter rules for the service mesh.
- egress
Filters ListMesh Spec Egress Filter> The egress filter rules for the service mesh.
- egress
Filters GetMesh Spec Egress Filter[] The egress filter rules for the service mesh.
- egress_
filters Sequence[GetMesh Spec Egress Filter] The egress filter rules for the service mesh.
- egress
Filters List The egress filter rules for the service mesh.
GetMeshSpecEgressFilter
- Type string
The egress filter type.
- Type string
The egress filter type.
- type String
The egress filter type.
- type string
The egress filter type.
- type str
The egress filter type.
- type String
The egress filter type.
Package Details
- Repository
- https://github.com/pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
aws
Terraform Provider.