AWS Classic

Pulumi Official
Package maintained by Pulumi
v5.9.1 published on Tuesday, Jun 21, 2022 by Pulumi

Mesh

Provides an AWS App Mesh service mesh resource.

Example Usage

Basic

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
    public MyStack()
    {
        var simple = new Aws.AppMesh.Mesh("simple", new Aws.AppMesh.MeshArgs
        {
        });
    }

}
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.NewMesh(ctx, "simple", 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) {
        var simple = new Mesh("simple");

    }
}
import pulumi
import pulumi_aws as aws

simple = aws.appmesh.Mesh("simple")
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const simple = new aws.appmesh.Mesh("simple", {});
resources:
  simple:
    type: aws:appmesh:Mesh

Egress Filter

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
    public MyStack()
    {
        var simple = new Aws.AppMesh.Mesh("simple", new Aws.AppMesh.MeshArgs
        {
            Spec = new Aws.AppMesh.Inputs.MeshSpecArgs
            {
                EgressFilter = new Aws.AppMesh.Inputs.MeshSpecEgressFilterArgs
                {
                    Type = "ALLOW_ALL",
                },
            },
        });
    }

}
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.NewMesh(ctx, "simple", &appmesh.MeshArgs{
			Spec: &appmesh.MeshSpecArgs{
				EgressFilter: &appmesh.MeshSpecEgressFilterArgs{
					Type: pulumi.String("ALLOW_ALL"),
				},
			},
		})
		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) {
        var simple = new Mesh("simple", MeshArgs.builder()        
            .spec(MeshSpecArgs.builder()
                .egressFilter(MeshSpecEgressFilterArgs.builder()
                    .type("ALLOW_ALL")
                    .build())
                .build())
            .build());

    }
}
import pulumi
import pulumi_aws as aws

simple = aws.appmesh.Mesh("simple", spec=aws.appmesh.MeshSpecArgs(
    egress_filter=aws.appmesh.MeshSpecEgressFilterArgs(
        type="ALLOW_ALL",
    ),
))
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const simple = new aws.appmesh.Mesh("simple", {
    spec: {
        egressFilter: {
            type: "ALLOW_ALL",
        },
    },
});
resources:
  simple:
    type: aws:appmesh:Mesh
    properties:
      spec:
        egressFilter:
          type: ALLOW_ALL

Create a Mesh Resource

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

name string
The unique name of the resource.
args MeshArgs
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 MeshArgs
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 MeshArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args MeshArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args MeshArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Mesh Resource Properties

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

Inputs

The Mesh resource accepts the following input properties:

Name string

The name to use for the service mesh. Must be between 1 and 255 characters in length.

Spec MeshSpecArgs

The service mesh specification to apply.

Tags Dictionary<string, string>

A 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.

Name string

The name to use for the service mesh. Must be between 1 and 255 characters in length.

Spec MeshSpecArgs

The service mesh specification to apply.

Tags map[string]string

A 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.

name String

The name to use for the service mesh. Must be between 1 and 255 characters in length.

spec MeshSpecArgs

The service mesh specification to apply.

tags Map<String,String>

A 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.

name string

The name to use for the service mesh. Must be between 1 and 255 characters in length.

spec MeshSpecArgs

The service mesh specification to apply.

tags {[key: string]: string}

A 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.

name str

The name to use for the service mesh. Must be between 1 and 255 characters in length.

spec MeshSpecArgs

The service mesh specification to apply.

tags Mapping[str, str]

A 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.

name String

The name to use for the service mesh. Must be between 1 and 255 characters in length.

spec Property Map

The service mesh specification to apply.

tags Map<String>

A 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 Mesh resource produces the following output properties:

Arn string

The ARN of the service mesh.

CreatedDate string

The creation date of the service mesh.

Id string

The provider-assigned unique ID for this managed resource.

LastUpdatedDate string

The last update date of the service mesh.

MeshOwner string

The AWS account ID of the service mesh's owner.

ResourceOwner string

The resource owner's AWS account ID.

TagsAll Dictionary<string, string>

A map of tags assigned to the resource, including those inherited from the provider .

Arn string

The ARN of the service mesh.

CreatedDate string

The creation date of the service mesh.

Id string

The provider-assigned unique ID for this managed resource.

LastUpdatedDate string

The last update date of the service mesh.

MeshOwner string

The AWS account ID of the service mesh's owner.

ResourceOwner string

The resource owner's AWS account ID.

TagsAll map[string]string

A map of tags assigned to the resource, including those inherited from the provider .

arn String

The ARN of the service mesh.

createdDate String

The creation date of the service mesh.

id String

The provider-assigned unique ID for this managed resource.

lastUpdatedDate String

The last update date of the service mesh.

meshOwner String

The AWS account ID of the service mesh's owner.

resourceOwner String

The resource owner's AWS account ID.

tagsAll Map<String,String>

A map of tags assigned to the resource, including those inherited from the provider .

arn string

The ARN of the service mesh.

createdDate string

The creation date of the service mesh.

id string

The provider-assigned unique ID for this managed resource.

lastUpdatedDate string

The last update date of the service mesh.

meshOwner string

The AWS account ID of the service mesh's owner.

resourceOwner string

The resource owner's AWS account ID.

tagsAll {[key: string]: string}

A map of tags assigned to the resource, including those inherited from the provider .

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_date str

The last update date of the service mesh.

mesh_owner str

The AWS account ID of the service mesh's owner.

resource_owner str

The resource owner's AWS account ID.

tags_all Mapping[str, str]

A map of tags assigned to the resource, including those inherited from the provider .

arn String

The ARN of the service mesh.

createdDate String

The creation date of the service mesh.

id String

The provider-assigned unique ID for this managed resource.

lastUpdatedDate String

The last update date of the service mesh.

meshOwner String

The AWS account ID of the service mesh's owner.

resourceOwner String

The resource owner's AWS account ID.

tagsAll Map<String>

A map of tags assigned to the resource, including those inherited from the provider .

Look up an Existing Mesh Resource

Get an existing Mesh 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?: MeshState, opts?: CustomResourceOptions): Mesh
@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_owner: Optional[str] = None,
        name: Optional[str] = None,
        resource_owner: Optional[str] = None,
        spec: Optional[MeshSpecArgs] = None,
        tags: Optional[Mapping[str, str]] = None,
        tags_all: Optional[Mapping[str, str]] = None) -> Mesh
func GetMesh(ctx *Context, name string, id IDInput, state *MeshState, opts ...ResourceOption) (*Mesh, error)
public static Mesh Get(string name, Input<string> id, MeshState? state, CustomResourceOptions? opts = null)
public static Mesh get(String name, Output<String> id, MeshState 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

The ARN of the service mesh.

CreatedDate string

The creation date of the service mesh.

LastUpdatedDate string

The last update date of the service mesh.

MeshOwner string

The AWS account ID of the service mesh's owner.

Name string

The name to use for the service mesh. Must be between 1 and 255 characters in length.

ResourceOwner string

The resource owner's AWS account ID.

Spec MeshSpecArgs

The service mesh specification to apply.

Tags Dictionary<string, string>

A 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>

A map of tags assigned to the resource, including those inherited from the provider .

Arn string

The ARN of the service mesh.

CreatedDate string

The creation date of the service mesh.

LastUpdatedDate string

The last update date of the service mesh.

MeshOwner string

The AWS account ID of the service mesh's owner.

Name string

The name to use for the service mesh. Must be between 1 and 255 characters in length.

ResourceOwner string

The resource owner's AWS account ID.

Spec MeshSpecArgs

The service mesh specification to apply.

Tags map[string]string

A 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

A map of tags assigned to the resource, including those inherited from the provider .

arn String

The ARN of the service mesh.

createdDate String

The creation date of the service mesh.

lastUpdatedDate String

The last update date of the service mesh.

meshOwner String

The AWS account ID of the service mesh's owner.

name String

The name to use for the service mesh. Must be between 1 and 255 characters in length.

resourceOwner String

The resource owner's AWS account ID.

spec MeshSpecArgs

The service mesh specification to apply.

tags Map<String,String>

A 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>

A map of tags assigned to the resource, including those inherited from the provider .

arn string

The ARN of the service mesh.

createdDate string

The creation date of the service mesh.

lastUpdatedDate string

The last update date of the service mesh.

meshOwner string

The AWS account ID of the service mesh's owner.

name string

The name to use for the service mesh. Must be between 1 and 255 characters in length.

resourceOwner string

The resource owner's AWS account ID.

spec MeshSpecArgs

The service mesh specification to apply.

tags {[key: string]: string}

A 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}

A map of tags assigned to the resource, including those inherited from the provider .

arn str

The ARN of the service mesh.

created_date str

The creation date of the service mesh.

last_updated_date str

The last update date of the service mesh.

mesh_owner str

The AWS account ID of the service mesh's owner.

name str

The name to use for the service mesh. Must be between 1 and 255 characters in length.

resource_owner str

The resource owner's AWS account ID.

spec MeshSpecArgs

The service mesh specification to apply.

tags Mapping[str, str]

A 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]

A map of tags assigned to the resource, including those inherited from the provider .

arn String

The ARN of the service mesh.

createdDate String

The creation date of the service mesh.

lastUpdatedDate String

The last update date of the service mesh.

meshOwner String

The AWS account ID of the service mesh's owner.

name String

The name to use for the service mesh. Must be between 1 and 255 characters in length.

resourceOwner String

The resource owner's AWS account ID.

spec Property Map

The service mesh specification to apply.

tags Map<String>

A 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>

A map of tags assigned to the resource, including those inherited from the provider .

Supporting Types

MeshSpec

EgressFilter MeshSpecEgressFilter

The egress filter rules for the service mesh.

EgressFilter MeshSpecEgressFilter

The egress filter rules for the service mesh.

egressFilter MeshSpecEgressFilter

The egress filter rules for the service mesh.

egressFilter MeshSpecEgressFilter

The egress filter rules for the service mesh.

egress_filter MeshSpecEgressFilter

The egress filter rules for the service mesh.

egressFilter Property Map

The egress filter rules for the service mesh.

MeshSpecEgressFilter

Type string

The egress filter type. By default, the type is DROP_ALL. Valid values are ALLOW_ALL and DROP_ALL.

Type string

The egress filter type. By default, the type is DROP_ALL. Valid values are ALLOW_ALL and DROP_ALL.

type String

The egress filter type. By default, the type is DROP_ALL. Valid values are ALLOW_ALL and DROP_ALL.

type string

The egress filter type. By default, the type is DROP_ALL. Valid values are ALLOW_ALL and DROP_ALL.

type str

The egress filter type. By default, the type is DROP_ALL. Valid values are ALLOW_ALL and DROP_ALL.

type String

The egress filter type. By default, the type is DROP_ALL. Valid values are ALLOW_ALL and DROP_ALL.

Import

App Mesh service meshes can be imported using the name, e.g.,

 $ pulumi import aws:appmesh/mesh:Mesh simple simpleapp

Package Details

Repository
https://github.com/pulumi/pulumi-aws
License
Apache-2.0
Notes

This Pulumi package is based on the aws Terraform Provider.