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);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
Mesh
Spec Args The service mesh specification to apply.
- Dictionary<string, string>
A map of tags to assign to the resource.
- name str
The name to use for the service mesh.
- spec
Dict[Mesh
Spec] The service mesh specification to apply.
- 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.
- 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.
- 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.
- 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.
- 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.
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): Meshstatic get(resource_name, id, opts=None, arn=None, created_date=None, last_updated_date=None, name=None, spec=None, tags=None, __props__=None);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.
- Created
Date string The creation date of the service mesh.
- Last
Updated stringDate The last update date of the service mesh.
- Name string
The name to use for the service mesh.
- Spec
Mesh
Spec Args The service mesh specification to apply.
- Dictionary<string, string>
A map of tags to assign to the resource.
- Arn string
The ARN of the service mesh.
- Created
Date string The creation date of the service mesh.
- Last
Updated stringDate The last update date of the service mesh.
- Name string
The name to use for the service mesh.
- Spec
Mesh
Spec The service mesh specification to apply.
- map[string]string
A map of tags to assign to the resource.
- arn string
The ARN of the service mesh.
- created
Date string The creation date of the service mesh.
- last
Updated stringDate The last update date of the service mesh.
- name string
The name to use for the service mesh.
- spec
Mesh
Spec The service mesh specification to apply.
- {[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_ strdate The last update date of the service mesh.
- name str
The name to use for the service mesh.
- spec
Dict[Mesh
Spec] The service mesh specification to apply.
- Dict[str, str]
A map of tags to assign to the resource.
Supporting Types
MeshSpec
- Egress
Filter MeshSpec Egress Filter Args The egress filter rules for the service mesh.
- Egress
Filter MeshSpec Egress Filter The egress filter rules for the service mesh.
- egress
Filter MeshSpec Egress Filter The egress filter rules for the service mesh.
- egress
Filter Dict[MeshSpec Egress Filter] The egress filter rules for the service mesh.
MeshSpecEgressFilter
Package Details
- Repository
- https://github.com/pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.