1. Packages
  2. AWS
  3. API Docs
  4. networkflowmonitor
  5. Monitor
AWS v7.13.0 published on Tuesday, Dec 9, 2025 by Pulumi
aws logo
AWS v7.13.0 published on Tuesday, Dec 9, 2025 by Pulumi

    Manages a Network Flow Monitor Monitor.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = new aws.ec2.Vpc("example", {
        cidrBlock: "10.0.0.0/16",
        tags: {
            Name: "example",
        },
    });
    const exampleMonitor = new aws.networkflowmonitor.Monitor("example", {
        monitorName: "example-monitor",
        scopeArn: exampleAwsNetworkflowmonitorScope.scopeArn,
        localResources: [{
            type: "AWS::EC2::VPC",
            identifier: example.arn,
        }],
        remoteResources: [{
            type: "AWS::EC2::VPC",
            identifier: example.arn,
        }],
        tags: {
            Name: "example",
        },
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.ec2.Vpc("example",
        cidr_block="10.0.0.0/16",
        tags={
            "Name": "example",
        })
    example_monitor = aws.networkflowmonitor.Monitor("example",
        monitor_name="example-monitor",
        scope_arn=example_aws_networkflowmonitor_scope["scopeArn"],
        local_resources=[{
            "type": "AWS::EC2::VPC",
            "identifier": example.arn,
        }],
        remote_resources=[{
            "type": "AWS::EC2::VPC",
            "identifier": example.arn,
        }],
        tags={
            "Name": "example",
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/ec2"
    	"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/networkflowmonitor"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := ec2.NewVpc(ctx, "example", &ec2.VpcArgs{
    			CidrBlock: pulumi.String("10.0.0.0/16"),
    			Tags: pulumi.StringMap{
    				"Name": pulumi.String("example"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = networkflowmonitor.NewMonitor(ctx, "example", &networkflowmonitor.MonitorArgs{
    			MonitorName: pulumi.String("example-monitor"),
    			ScopeArn:    pulumi.Any(exampleAwsNetworkflowmonitorScope.ScopeArn),
    			LocalResources: networkflowmonitor.MonitorLocalResourceArray{
    				&networkflowmonitor.MonitorLocalResourceArgs{
    					Type:       pulumi.String("AWS::EC2::VPC"),
    					Identifier: example.Arn,
    				},
    			},
    			RemoteResources: networkflowmonitor.MonitorRemoteResourceArray{
    				&networkflowmonitor.MonitorRemoteResourceArgs{
    					Type:       pulumi.String("AWS::EC2::VPC"),
    					Identifier: example.Arn,
    				},
    			},
    			Tags: pulumi.StringMap{
    				"Name": pulumi.String("example"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Aws.Ec2.Vpc("example", new()
        {
            CidrBlock = "10.0.0.0/16",
            Tags = 
            {
                { "Name", "example" },
            },
        });
    
        var exampleMonitor = new Aws.Networkflowmonitor.Monitor("example", new()
        {
            MonitorName = "example-monitor",
            ScopeArn = exampleAwsNetworkflowmonitorScope.ScopeArn,
            LocalResources = new[]
            {
                new Aws.Networkflowmonitor.Inputs.MonitorLocalResourceArgs
                {
                    Type = "AWS::EC2::VPC",
                    Identifier = example.Arn,
                },
            },
            RemoteResources = new[]
            {
                new Aws.Networkflowmonitor.Inputs.MonitorRemoteResourceArgs
                {
                    Type = "AWS::EC2::VPC",
                    Identifier = example.Arn,
                },
            },
            Tags = 
            {
                { "Name", "example" },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.ec2.Vpc;
    import com.pulumi.aws.ec2.VpcArgs;
    import com.pulumi.aws.networkflowmonitor.Monitor;
    import com.pulumi.aws.networkflowmonitor.MonitorArgs;
    import com.pulumi.aws.networkflowmonitor.inputs.MonitorLocalResourceArgs;
    import com.pulumi.aws.networkflowmonitor.inputs.MonitorRemoteResourceArgs;
    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 Vpc("example", VpcArgs.builder()
                .cidrBlock("10.0.0.0/16")
                .tags(Map.of("Name", "example"))
                .build());
    
            var exampleMonitor = new Monitor("exampleMonitor", MonitorArgs.builder()
                .monitorName("example-monitor")
                .scopeArn(exampleAwsNetworkflowmonitorScope.scopeArn())
                .localResources(MonitorLocalResourceArgs.builder()
                    .type("AWS::EC2::VPC")
                    .identifier(example.arn())
                    .build())
                .remoteResources(MonitorRemoteResourceArgs.builder()
                    .type("AWS::EC2::VPC")
                    .identifier(example.arn())
                    .build())
                .tags(Map.of("Name", "example"))
                .build());
    
        }
    }
    
    resources:
      example:
        type: aws:ec2:Vpc
        properties:
          cidrBlock: 10.0.0.0/16
          tags:
            Name: example
      exampleMonitor:
        type: aws:networkflowmonitor:Monitor
        name: example
        properties:
          monitorName: example-monitor
          scopeArn: ${exampleAwsNetworkflowmonitorScope.scopeArn}
          localResources:
            - type: AWS::EC2::VPC
              identifier: ${example.arn}
          remoteResources:
            - type: AWS::EC2::VPC
              identifier: ${example.arn}
          tags:
            Name: example
    

    Create Monitor Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Monitor(name: string, args: MonitorArgs, opts?: CustomResourceOptions);
    @overload
    def Monitor(resource_name: str,
                args: MonitorArgs,
                opts: Optional[ResourceOptions] = None)
    
    @overload
    def Monitor(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                monitor_name: Optional[str] = None,
                scope_arn: Optional[str] = None,
                local_resources: Optional[Sequence[MonitorLocalResourceArgs]] = None,
                region: Optional[str] = None,
                remote_resources: Optional[Sequence[MonitorRemoteResourceArgs]] = None,
                tags: Optional[Mapping[str, str]] = None,
                timeouts: Optional[MonitorTimeoutsArgs] = None)
    func NewMonitor(ctx *Context, name string, args MonitorArgs, opts ...ResourceOption) (*Monitor, error)
    public Monitor(string name, MonitorArgs args, CustomResourceOptions? opts = null)
    public Monitor(String name, MonitorArgs args)
    public Monitor(String name, MonitorArgs args, CustomResourceOptions options)
    
    type: aws:networkflowmonitor:Monitor
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

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

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var monitorResource = new Aws.Networkflowmonitor.Monitor("monitorResource", new()
    {
        MonitorName = "string",
        ScopeArn = "string",
        LocalResources = new[]
        {
            new Aws.Networkflowmonitor.Inputs.MonitorLocalResourceArgs
            {
                Identifier = "string",
                Type = "string",
            },
        },
        Region = "string",
        RemoteResources = new[]
        {
            new Aws.Networkflowmonitor.Inputs.MonitorRemoteResourceArgs
            {
                Identifier = "string",
                Type = "string",
            },
        },
        Tags = 
        {
            { "string", "string" },
        },
        Timeouts = new Aws.Networkflowmonitor.Inputs.MonitorTimeoutsArgs
        {
            Create = "string",
            Delete = "string",
            Update = "string",
        },
    });
    
    example, err := networkflowmonitor.NewMonitor(ctx, "monitorResource", &networkflowmonitor.MonitorArgs{
    	MonitorName: pulumi.String("string"),
    	ScopeArn:    pulumi.String("string"),
    	LocalResources: networkflowmonitor.MonitorLocalResourceArray{
    		&networkflowmonitor.MonitorLocalResourceArgs{
    			Identifier: pulumi.String("string"),
    			Type:       pulumi.String("string"),
    		},
    	},
    	Region: pulumi.String("string"),
    	RemoteResources: networkflowmonitor.MonitorRemoteResourceArray{
    		&networkflowmonitor.MonitorRemoteResourceArgs{
    			Identifier: pulumi.String("string"),
    			Type:       pulumi.String("string"),
    		},
    	},
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Timeouts: &networkflowmonitor.MonitorTimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    		Update: pulumi.String("string"),
    	},
    })
    
    var monitorResource = new com.pulumi.aws.networkflowmonitor.Monitor("monitorResource", com.pulumi.aws.networkflowmonitor.MonitorArgs.builder()
        .monitorName("string")
        .scopeArn("string")
        .localResources(MonitorLocalResourceArgs.builder()
            .identifier("string")
            .type("string")
            .build())
        .region("string")
        .remoteResources(MonitorRemoteResourceArgs.builder()
            .identifier("string")
            .type("string")
            .build())
        .tags(Map.of("string", "string"))
        .timeouts(MonitorTimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .update("string")
            .build())
        .build());
    
    monitor_resource = aws.networkflowmonitor.Monitor("monitorResource",
        monitor_name="string",
        scope_arn="string",
        local_resources=[{
            "identifier": "string",
            "type": "string",
        }],
        region="string",
        remote_resources=[{
            "identifier": "string",
            "type": "string",
        }],
        tags={
            "string": "string",
        },
        timeouts={
            "create": "string",
            "delete": "string",
            "update": "string",
        })
    
    const monitorResource = new aws.networkflowmonitor.Monitor("monitorResource", {
        monitorName: "string",
        scopeArn: "string",
        localResources: [{
            identifier: "string",
            type: "string",
        }],
        region: "string",
        remoteResources: [{
            identifier: "string",
            type: "string",
        }],
        tags: {
            string: "string",
        },
        timeouts: {
            create: "string",
            "delete": "string",
            update: "string",
        },
    });
    
    type: aws:networkflowmonitor:Monitor
    properties:
        localResources:
            - identifier: string
              type: string
        monitorName: string
        region: string
        remoteResources:
            - identifier: string
              type: string
        scopeArn: string
        tags:
            string: string
        timeouts:
            create: string
            delete: string
            update: string
    

    Monitor Resource Properties

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

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The Monitor resource accepts the following input properties:

    MonitorName string
    The name of the monitor. Cannot be changed after creation.
    ScopeArn string

    The Amazon Resource Name (ARN) of the scope for the monitor. Cannot be changed after creation.

    The following arguments are optional:

    LocalResources List<MonitorLocalResource>
    The local resources to monitor. A local resource in a workload is the location of the hosts where the Network Flow Monitor agent is installed.
    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    RemoteResources List<MonitorRemoteResource>
    The remote resources to monitor. A remote resource is the other endpoint specified for the network flow of a workload, with a local resource.
    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.
    Timeouts MonitorTimeouts
    MonitorName string
    The name of the monitor. Cannot be changed after creation.
    ScopeArn string

    The Amazon Resource Name (ARN) of the scope for the monitor. Cannot be changed after creation.

    The following arguments are optional:

    LocalResources []MonitorLocalResourceArgs
    The local resources to monitor. A local resource in a workload is the location of the hosts where the Network Flow Monitor agent is installed.
    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    RemoteResources []MonitorRemoteResourceArgs
    The remote resources to monitor. A remote resource is the other endpoint specified for the network flow of a workload, with a local resource.
    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.
    Timeouts MonitorTimeoutsArgs
    monitorName String
    The name of the monitor. Cannot be changed after creation.
    scopeArn String

    The Amazon Resource Name (ARN) of the scope for the monitor. Cannot be changed after creation.

    The following arguments are optional:

    localResources List<MonitorLocalResource>
    The local resources to monitor. A local resource in a workload is the location of the hosts where the Network Flow Monitor agent is installed.
    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    remoteResources List<MonitorRemoteResource>
    The remote resources to monitor. A remote resource is the other endpoint specified for the network flow of a workload, with a local resource.
    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.
    timeouts MonitorTimeouts
    monitorName string
    The name of the monitor. Cannot be changed after creation.
    scopeArn string

    The Amazon Resource Name (ARN) of the scope for the monitor. Cannot be changed after creation.

    The following arguments are optional:

    localResources MonitorLocalResource[]
    The local resources to monitor. A local resource in a workload is the location of the hosts where the Network Flow Monitor agent is installed.
    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    remoteResources MonitorRemoteResource[]
    The remote resources to monitor. A remote resource is the other endpoint specified for the network flow of a workload, with a local resource.
    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.
    timeouts MonitorTimeouts
    monitor_name str
    The name of the monitor. Cannot be changed after creation.
    scope_arn str

    The Amazon Resource Name (ARN) of the scope for the monitor. Cannot be changed after creation.

    The following arguments are optional:

    local_resources Sequence[MonitorLocalResourceArgs]
    The local resources to monitor. A local resource in a workload is the location of the hosts where the Network Flow Monitor agent is installed.
    region str
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    remote_resources Sequence[MonitorRemoteResourceArgs]
    The remote resources to monitor. A remote resource is the other endpoint specified for the network flow of a workload, with a local resource.
    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.
    timeouts MonitorTimeoutsArgs
    monitorName String
    The name of the monitor. Cannot be changed after creation.
    scopeArn String

    The Amazon Resource Name (ARN) of the scope for the monitor. Cannot be changed after creation.

    The following arguments are optional:

    localResources List<Property Map>
    The local resources to monitor. A local resource in a workload is the location of the hosts where the Network Flow Monitor agent is installed.
    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    remoteResources List<Property Map>
    The remote resources to monitor. A remote resource is the other endpoint specified for the network flow of a workload, with a local resource.
    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.
    timeouts Property Map

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Monitor resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    MonitorArn string
    The Amazon Resource Name (ARN) of the monitor.
    TagsAll Dictionary<string, string>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.
    Id string
    The provider-assigned unique ID for this managed resource.
    MonitorArn string
    The Amazon Resource Name (ARN) of the monitor.
    TagsAll map[string]string
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.
    id String
    The provider-assigned unique ID for this managed resource.
    monitorArn String
    The Amazon Resource Name (ARN) of the monitor.
    tagsAll Map<String,String>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.
    id string
    The provider-assigned unique ID for this managed resource.
    monitorArn string
    The Amazon Resource Name (ARN) of the monitor.
    tagsAll {[key: string]: string}
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.
    id str
    The provider-assigned unique ID for this managed resource.
    monitor_arn str
    The Amazon Resource Name (ARN) of the monitor.
    tags_all Mapping[str, str]
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.
    id String
    The provider-assigned unique ID for this managed resource.
    monitorArn String
    The Amazon Resource Name (ARN) of the monitor.
    tagsAll Map<String>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Look up Existing Monitor Resource

    Get an existing Monitor 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?: MonitorState, opts?: CustomResourceOptions): Monitor
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            local_resources: Optional[Sequence[MonitorLocalResourceArgs]] = None,
            monitor_arn: Optional[str] = None,
            monitor_name: Optional[str] = None,
            region: Optional[str] = None,
            remote_resources: Optional[Sequence[MonitorRemoteResourceArgs]] = None,
            scope_arn: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None,
            tags_all: Optional[Mapping[str, str]] = None,
            timeouts: Optional[MonitorTimeoutsArgs] = None) -> Monitor
    func GetMonitor(ctx *Context, name string, id IDInput, state *MonitorState, opts ...ResourceOption) (*Monitor, error)
    public static Monitor Get(string name, Input<string> id, MonitorState? state, CustomResourceOptions? opts = null)
    public static Monitor get(String name, Output<String> id, MonitorState state, CustomResourceOptions options)
    resources:  _:    type: aws:networkflowmonitor:Monitor    get:      id: ${id}
    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:
    LocalResources List<MonitorLocalResource>
    The local resources to monitor. A local resource in a workload is the location of the hosts where the Network Flow Monitor agent is installed.
    MonitorArn string
    The Amazon Resource Name (ARN) of the monitor.
    MonitorName string
    The name of the monitor. Cannot be changed after creation.
    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    RemoteResources List<MonitorRemoteResource>
    The remote resources to monitor. A remote resource is the other endpoint specified for the network flow of a workload, with a local resource.
    ScopeArn string

    The Amazon Resource Name (ARN) of the scope for the monitor. Cannot be changed after creation.

    The following arguments are optional:

    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 default_tags configuration block.
    Timeouts MonitorTimeouts
    LocalResources []MonitorLocalResourceArgs
    The local resources to monitor. A local resource in a workload is the location of the hosts where the Network Flow Monitor agent is installed.
    MonitorArn string
    The Amazon Resource Name (ARN) of the monitor.
    MonitorName string
    The name of the monitor. Cannot be changed after creation.
    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    RemoteResources []MonitorRemoteResourceArgs
    The remote resources to monitor. A remote resource is the other endpoint specified for the network flow of a workload, with a local resource.
    ScopeArn string

    The Amazon Resource Name (ARN) of the scope for the monitor. Cannot be changed after creation.

    The following arguments are optional:

    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 default_tags configuration block.
    Timeouts MonitorTimeoutsArgs
    localResources List<MonitorLocalResource>
    The local resources to monitor. A local resource in a workload is the location of the hosts where the Network Flow Monitor agent is installed.
    monitorArn String
    The Amazon Resource Name (ARN) of the monitor.
    monitorName String
    The name of the monitor. Cannot be changed after creation.
    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    remoteResources List<MonitorRemoteResource>
    The remote resources to monitor. A remote resource is the other endpoint specified for the network flow of a workload, with a local resource.
    scopeArn String

    The Amazon Resource Name (ARN) of the scope for the monitor. Cannot be changed after creation.

    The following arguments are optional:

    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 default_tags configuration block.
    timeouts MonitorTimeouts
    localResources MonitorLocalResource[]
    The local resources to monitor. A local resource in a workload is the location of the hosts where the Network Flow Monitor agent is installed.
    monitorArn string
    The Amazon Resource Name (ARN) of the monitor.
    monitorName string
    The name of the monitor. Cannot be changed after creation.
    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    remoteResources MonitorRemoteResource[]
    The remote resources to monitor. A remote resource is the other endpoint specified for the network flow of a workload, with a local resource.
    scopeArn string

    The Amazon Resource Name (ARN) of the scope for the monitor. Cannot be changed after creation.

    The following arguments are optional:

    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 default_tags configuration block.
    timeouts MonitorTimeouts
    local_resources Sequence[MonitorLocalResourceArgs]
    The local resources to monitor. A local resource in a workload is the location of the hosts where the Network Flow Monitor agent is installed.
    monitor_arn str
    The Amazon Resource Name (ARN) of the monitor.
    monitor_name str
    The name of the monitor. Cannot be changed after creation.
    region str
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    remote_resources Sequence[MonitorRemoteResourceArgs]
    The remote resources to monitor. A remote resource is the other endpoint specified for the network flow of a workload, with a local resource.
    scope_arn str

    The Amazon Resource Name (ARN) of the scope for the monitor. Cannot be changed after creation.

    The following arguments are optional:

    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 default_tags configuration block.
    timeouts MonitorTimeoutsArgs
    localResources List<Property Map>
    The local resources to monitor. A local resource in a workload is the location of the hosts where the Network Flow Monitor agent is installed.
    monitorArn String
    The Amazon Resource Name (ARN) of the monitor.
    monitorName String
    The name of the monitor. Cannot be changed after creation.
    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    remoteResources List<Property Map>
    The remote resources to monitor. A remote resource is the other endpoint specified for the network flow of a workload, with a local resource.
    scopeArn String

    The Amazon Resource Name (ARN) of the scope for the monitor. Cannot be changed after creation.

    The following arguments are optional:

    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 default_tags configuration block.
    timeouts Property Map

    Supporting Types

    MonitorLocalResource, MonitorLocalResourceArgs

    Identifier string
    The identifier of the resource. For VPC resources, this is the VPC ARN.
    Type string
    The type of the resource. Valid values are AWS::EC2::VPC, AWS::EC2::Subnet, AWS::EC2::AvailabilityZone, AWS::EC2::Region, and AWS::EKS::Cluster.
    Identifier string
    The identifier of the resource. For VPC resources, this is the VPC ARN.
    Type string
    The type of the resource. Valid values are AWS::EC2::VPC, AWS::EC2::Subnet, AWS::EC2::AvailabilityZone, AWS::EC2::Region, and AWS::EKS::Cluster.
    identifier String
    The identifier of the resource. For VPC resources, this is the VPC ARN.
    type String
    The type of the resource. Valid values are AWS::EC2::VPC, AWS::EC2::Subnet, AWS::EC2::AvailabilityZone, AWS::EC2::Region, and AWS::EKS::Cluster.
    identifier string
    The identifier of the resource. For VPC resources, this is the VPC ARN.
    type string
    The type of the resource. Valid values are AWS::EC2::VPC, AWS::EC2::Subnet, AWS::EC2::AvailabilityZone, AWS::EC2::Region, and AWS::EKS::Cluster.
    identifier str
    The identifier of the resource. For VPC resources, this is the VPC ARN.
    type str
    The type of the resource. Valid values are AWS::EC2::VPC, AWS::EC2::Subnet, AWS::EC2::AvailabilityZone, AWS::EC2::Region, and AWS::EKS::Cluster.
    identifier String
    The identifier of the resource. For VPC resources, this is the VPC ARN.
    type String
    The type of the resource. Valid values are AWS::EC2::VPC, AWS::EC2::Subnet, AWS::EC2::AvailabilityZone, AWS::EC2::Region, and AWS::EKS::Cluster.

    MonitorRemoteResource, MonitorRemoteResourceArgs

    Identifier string
    The identifier of the resource. For VPC resources, this is the VPC ARN.
    Type string
    The type of the resource. Valid values are AWS::EC2::VPC, AWS::EC2::Subnet, AWS::EC2::AvailabilityZone, AWS::EC2::Region, and AWS::EKS::Cluster.
    Identifier string
    The identifier of the resource. For VPC resources, this is the VPC ARN.
    Type string
    The type of the resource. Valid values are AWS::EC2::VPC, AWS::EC2::Subnet, AWS::EC2::AvailabilityZone, AWS::EC2::Region, and AWS::EKS::Cluster.
    identifier String
    The identifier of the resource. For VPC resources, this is the VPC ARN.
    type String
    The type of the resource. Valid values are AWS::EC2::VPC, AWS::EC2::Subnet, AWS::EC2::AvailabilityZone, AWS::EC2::Region, and AWS::EKS::Cluster.
    identifier string
    The identifier of the resource. For VPC resources, this is the VPC ARN.
    type string
    The type of the resource. Valid values are AWS::EC2::VPC, AWS::EC2::Subnet, AWS::EC2::AvailabilityZone, AWS::EC2::Region, and AWS::EKS::Cluster.
    identifier str
    The identifier of the resource. For VPC resources, this is the VPC ARN.
    type str
    The type of the resource. Valid values are AWS::EC2::VPC, AWS::EC2::Subnet, AWS::EC2::AvailabilityZone, AWS::EC2::Region, and AWS::EKS::Cluster.
    identifier String
    The identifier of the resource. For VPC resources, this is the VPC ARN.
    type String
    The type of the resource. Valid values are AWS::EC2::VPC, AWS::EC2::Subnet, AWS::EC2::AvailabilityZone, AWS::EC2::Region, and AWS::EKS::Cluster.

    MonitorTimeouts, MonitorTimeoutsArgs

    Create string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    Delete string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    Update string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    Create string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    Delete string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    Update string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    create String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    delete String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    update String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    create string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    delete string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    update string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    create str
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    delete str
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    update str
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    create String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    delete String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    update String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).

    Import

    Using pulumi import, import Network Flow Monitor Monitor using the monitor name. For example:

    $ pulumi import aws:networkflowmonitor/monitor:Monitor example example-monitor
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    AWS Classic pulumi/pulumi-aws
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aws Terraform Provider.
    aws logo
    AWS v7.13.0 published on Tuesday, Dec 9, 2025 by Pulumi
      Meet Neo: Your AI Platform Teammate