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/v2/go/aws/appmesh"
    "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)

func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
        _, err := appmesh.NewMesh(ctx, "simple", nil)
        if err != nil {
            return err
        }
        return nil
    })
}
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", {});

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/v2/go/aws/appmesh"
    "github.com/pulumi/pulumi/sdk/v2/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
    })
}
import pulumi
import pulumi_aws as aws

simple = aws.appmesh.Mesh("simple", spec={
    "egressFilter": {
        "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",
        },
    },
});

Create a Mesh Resource

new Mesh(name: string, args?: MeshArgs, opts?: CustomResourceOptions);
def Mesh(resource_name, opts=None, name=None, spec=None, tags=None, __props__=None);
func NewMesh(ctx *Context, name string, args *MeshArgs, opts ...ResourceOption) (*Mesh, error)
public Mesh(string name, MeshArgs? args = null, CustomResourceOptions? opts = null)
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.
opts ResourceOptions
A bag of options that control this 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.

Mesh Resource Properties

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

Inputs

The Mesh resource accepts the following input properties:

Name string

The name to use for the service mesh.

Spec MeshSpecArgs

The service mesh specification to apply.

Tags Dictionary<string, string>

A map of tags to assign to the resource.

Name string

The name to use for the service mesh.

Spec MeshSpec

The service mesh specification to apply.

Tags map[string]string

A map of tags to assign to the resource.

name string

The name to use for the service mesh.

spec MeshSpec

The service mesh specification to apply.

tags {[key: string]: string}

A map of tags to assign to the resource.

name str

The name to use for the service mesh.

spec Dict[MeshSpec]

The service mesh specification to apply.

tags Dict[str, str]

A map of tags to assign to the resource.

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.

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.

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.

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.

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
static get(resource_name, id, opts=None, arn=None, created_date=None, last_updated_date=None, name=None, spec=None, tags=None, __props__=None);
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)
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.

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.

Name string

The name to use for the service mesh.

Spec MeshSpecArgs

The service mesh specification to apply.

Tags Dictionary<string, string>

A map of tags to assign to the resource.

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.

Name string

The name to use for the service mesh.

Spec MeshSpec

The service mesh specification to apply.

Tags map[string]string

A map of tags to assign to the resource.

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.

name string

The name to use for the service mesh.

spec MeshSpec

The service mesh specification to apply.

tags {[key: string]: string}

A map of tags to assign to the resource.

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.

name str

The name to use for the service mesh.

spec Dict[MeshSpec]

The service mesh specification to apply.

tags Dict[str, str]

A map of tags to assign to the resource.

Supporting Types

MeshSpec

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

EgressFilter MeshSpecEgressFilterArgs

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 Dict[MeshSpecEgressFilter]

The egress filter rules for the service mesh.

MeshSpecEgressFilter

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

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.

Package Details

Repository
https://github.com/pulumi/pulumi-aws
License
Apache-2.0
Notes
This Pulumi package is based on the aws Terraform Provider.