alicloud.vpc.TrafficMirrorFilter
Provides a VPC Traffic Mirror Filter resource.
For information about VPC Traffic Mirror Filter and how to use it, see What is Traffic Mirror Filter.
NOTE: Available in v1.140.0+.
Example Usage
Basic Usage
using System.Collections.Generic;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var example = new AliCloud.Vpc.TrafficMirrorFilter("example", new()
{
TrafficMirrorFilterName = "example_value",
});
});
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := vpc.NewTrafficMirrorFilter(ctx, "example", &vpc.TrafficMirrorFilterArgs{
TrafficMirrorFilterName: pulumi.String("example_value"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.vpc.TrafficMirrorFilter;
import com.pulumi.alicloud.vpc.TrafficMirrorFilterArgs;
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 example = new TrafficMirrorFilter("example", TrafficMirrorFilterArgs.builder()
.trafficMirrorFilterName("example_value")
.build());
}
}
import pulumi
import pulumi_alicloud as alicloud
example = alicloud.vpc.TrafficMirrorFilter("example", traffic_mirror_filter_name="example_value")
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const example = new alicloud.vpc.TrafficMirrorFilter("example", {trafficMirrorFilterName: "example_value"});
resources:
example:
type: alicloud:vpc:TrafficMirrorFilter
properties:
trafficMirrorFilterName: example_value
Create TrafficMirrorFilter Resource
new TrafficMirrorFilter(name: string, args?: TrafficMirrorFilterArgs, opts?: CustomResourceOptions);
@overload
def TrafficMirrorFilter(resource_name: str,
opts: Optional[ResourceOptions] = None,
dry_run: Optional[bool] = None,
traffic_mirror_filter_description: Optional[str] = None,
traffic_mirror_filter_name: Optional[str] = None)
@overload
def TrafficMirrorFilter(resource_name: str,
args: Optional[TrafficMirrorFilterArgs] = None,
opts: Optional[ResourceOptions] = None)
func NewTrafficMirrorFilter(ctx *Context, name string, args *TrafficMirrorFilterArgs, opts ...ResourceOption) (*TrafficMirrorFilter, error)
public TrafficMirrorFilter(string name, TrafficMirrorFilterArgs? args = null, CustomResourceOptions? opts = null)
public TrafficMirrorFilter(String name, TrafficMirrorFilterArgs args)
public TrafficMirrorFilter(String name, TrafficMirrorFilterArgs args, CustomResourceOptions options)
type: alicloud:vpc:TrafficMirrorFilter
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TrafficMirrorFilterArgs
- 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 TrafficMirrorFilterArgs
- 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 TrafficMirrorFilterArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TrafficMirrorFilterArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TrafficMirrorFilterArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
TrafficMirrorFilter 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 TrafficMirrorFilter resource accepts the following input properties:
- Dry
Run bool The dry run.
- Traffic
Mirror stringFilter Description The description of the filter. The description must be 1 to 256 characters in length and cannot start with
http://
orhttps://
.- Traffic
Mirror stringFilter Name The name of the filter. The name must be 1 to 128 characters in length and cannot start with
http://
orhttps://
.
- Dry
Run bool The dry run.
- Traffic
Mirror stringFilter Description The description of the filter. The description must be 1 to 256 characters in length and cannot start with
http://
orhttps://
.- Traffic
Mirror stringFilter Name The name of the filter. The name must be 1 to 128 characters in length and cannot start with
http://
orhttps://
.
- dry
Run Boolean The dry run.
- traffic
Mirror StringFilter Description The description of the filter. The description must be 1 to 256 characters in length and cannot start with
http://
orhttps://
.- traffic
Mirror StringFilter Name The name of the filter. The name must be 1 to 128 characters in length and cannot start with
http://
orhttps://
.
- dry
Run boolean The dry run.
- traffic
Mirror stringFilter Description The description of the filter. The description must be 1 to 256 characters in length and cannot start with
http://
orhttps://
.- traffic
Mirror stringFilter Name The name of the filter. The name must be 1 to 128 characters in length and cannot start with
http://
orhttps://
.
- dry_
run bool The dry run.
- traffic_
mirror_ strfilter_ description The description of the filter. The description must be 1 to 256 characters in length and cannot start with
http://
orhttps://
.- traffic_
mirror_ strfilter_ name The name of the filter. The name must be 1 to 128 characters in length and cannot start with
http://
orhttps://
.
- dry
Run Boolean The dry run.
- traffic
Mirror StringFilter Description The description of the filter. The description must be 1 to 256 characters in length and cannot start with
http://
orhttps://
.- traffic
Mirror StringFilter Name The name of the filter. The name must be 1 to 128 characters in length and cannot start with
http://
orhttps://
.
Outputs
All input properties are implicitly available as output properties. Additionally, the TrafficMirrorFilter resource produces the following output properties:
- Id string
The provider-assigned unique ID for this managed resource.
- Status string
The state of the filter. Valid values:
Creating
,Created
,Modifying
andDeleting
.Creating
: The filter is being created.Created
: The filter is created.Modifying
: The filter is being modified.Deleting
: The filter is being deleted.
- Id string
The provider-assigned unique ID for this managed resource.
- Status string
The state of the filter. Valid values:
Creating
,Created
,Modifying
andDeleting
.Creating
: The filter is being created.Created
: The filter is created.Modifying
: The filter is being modified.Deleting
: The filter is being deleted.
- id String
The provider-assigned unique ID for this managed resource.
- status String
The state of the filter. Valid values:
Creating
,Created
,Modifying
andDeleting
.Creating
: The filter is being created.Created
: The filter is created.Modifying
: The filter is being modified.Deleting
: The filter is being deleted.
- id string
The provider-assigned unique ID for this managed resource.
- status string
The state of the filter. Valid values:
Creating
,Created
,Modifying
andDeleting
.Creating
: The filter is being created.Created
: The filter is created.Modifying
: The filter is being modified.Deleting
: The filter is being deleted.
- id str
The provider-assigned unique ID for this managed resource.
- status str
The state of the filter. Valid values:
Creating
,Created
,Modifying
andDeleting
.Creating
: The filter is being created.Created
: The filter is created.Modifying
: The filter is being modified.Deleting
: The filter is being deleted.
- id String
The provider-assigned unique ID for this managed resource.
- status String
The state of the filter. Valid values:
Creating
,Created
,Modifying
andDeleting
.Creating
: The filter is being created.Created
: The filter is created.Modifying
: The filter is being modified.Deleting
: The filter is being deleted.
Look up Existing TrafficMirrorFilter Resource
Get an existing TrafficMirrorFilter 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?: TrafficMirrorFilterState, opts?: CustomResourceOptions): TrafficMirrorFilter
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
dry_run: Optional[bool] = None,
status: Optional[str] = None,
traffic_mirror_filter_description: Optional[str] = None,
traffic_mirror_filter_name: Optional[str] = None) -> TrafficMirrorFilter
func GetTrafficMirrorFilter(ctx *Context, name string, id IDInput, state *TrafficMirrorFilterState, opts ...ResourceOption) (*TrafficMirrorFilter, error)
public static TrafficMirrorFilter Get(string name, Input<string> id, TrafficMirrorFilterState? state, CustomResourceOptions? opts = null)
public static TrafficMirrorFilter get(String name, Output<String> id, TrafficMirrorFilterState 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.
- Dry
Run bool The dry run.
- Status string
The state of the filter. Valid values:
Creating
,Created
,Modifying
andDeleting
.Creating
: The filter is being created.Created
: The filter is created.Modifying
: The filter is being modified.Deleting
: The filter is being deleted.- Traffic
Mirror stringFilter Description The description of the filter. The description must be 1 to 256 characters in length and cannot start with
http://
orhttps://
.- Traffic
Mirror stringFilter Name The name of the filter. The name must be 1 to 128 characters in length and cannot start with
http://
orhttps://
.
- Dry
Run bool The dry run.
- Status string
The state of the filter. Valid values:
Creating
,Created
,Modifying
andDeleting
.Creating
: The filter is being created.Created
: The filter is created.Modifying
: The filter is being modified.Deleting
: The filter is being deleted.- Traffic
Mirror stringFilter Description The description of the filter. The description must be 1 to 256 characters in length and cannot start with
http://
orhttps://
.- Traffic
Mirror stringFilter Name The name of the filter. The name must be 1 to 128 characters in length and cannot start with
http://
orhttps://
.
- dry
Run Boolean The dry run.
- status String
The state of the filter. Valid values:
Creating
,Created
,Modifying
andDeleting
.Creating
: The filter is being created.Created
: The filter is created.Modifying
: The filter is being modified.Deleting
: The filter is being deleted.- traffic
Mirror StringFilter Description The description of the filter. The description must be 1 to 256 characters in length and cannot start with
http://
orhttps://
.- traffic
Mirror StringFilter Name The name of the filter. The name must be 1 to 128 characters in length and cannot start with
http://
orhttps://
.
- dry
Run boolean The dry run.
- status string
The state of the filter. Valid values:
Creating
,Created
,Modifying
andDeleting
.Creating
: The filter is being created.Created
: The filter is created.Modifying
: The filter is being modified.Deleting
: The filter is being deleted.- traffic
Mirror stringFilter Description The description of the filter. The description must be 1 to 256 characters in length and cannot start with
http://
orhttps://
.- traffic
Mirror stringFilter Name The name of the filter. The name must be 1 to 128 characters in length and cannot start with
http://
orhttps://
.
- dry_
run bool The dry run.
- status str
The state of the filter. Valid values:
Creating
,Created
,Modifying
andDeleting
.Creating
: The filter is being created.Created
: The filter is created.Modifying
: The filter is being modified.Deleting
: The filter is being deleted.- traffic_
mirror_ strfilter_ description The description of the filter. The description must be 1 to 256 characters in length and cannot start with
http://
orhttps://
.- traffic_
mirror_ strfilter_ name The name of the filter. The name must be 1 to 128 characters in length and cannot start with
http://
orhttps://
.
- dry
Run Boolean The dry run.
- status String
The state of the filter. Valid values:
Creating
,Created
,Modifying
andDeleting
.Creating
: The filter is being created.Created
: The filter is created.Modifying
: The filter is being modified.Deleting
: The filter is being deleted.- traffic
Mirror StringFilter Description The description of the filter. The description must be 1 to 256 characters in length and cannot start with
http://
orhttps://
.- traffic
Mirror StringFilter Name The name of the filter. The name must be 1 to 128 characters in length and cannot start with
http://
orhttps://
.
Import
VPC Traffic Mirror Filter can be imported using the id, e.g.
$ pulumi import alicloud:vpc/trafficMirrorFilter:TrafficMirrorFilter example <id>
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
alicloud
Terraform Provider.