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:
- Monitor
Name string - The name of the monitor. Cannot be changed after creation.
- Scope
Arn string The Amazon Resource Name (ARN) of the scope for the monitor. Cannot be changed after creation.
The following arguments are optional:
- Local
Resources List<MonitorLocal Resource> - 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.
- Remote
Resources List<MonitorRemote Resource> - The remote resources to monitor. A remote resource is the other endpoint specified for the network flow of a workload, with a local resource.
- Dictionary<string, string>
- A map of tags to assign to the resource. If configured with a provider
default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - Timeouts
Monitor
Timeouts
- Monitor
Name string - The name of the monitor. Cannot be changed after creation.
- Scope
Arn string The Amazon Resource Name (ARN) of the scope for the monitor. Cannot be changed after creation.
The following arguments are optional:
- Local
Resources []MonitorLocal Resource Args - 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.
- Remote
Resources []MonitorRemote Resource Args - The remote resources to monitor. A remote resource is the other endpoint specified for the network flow of a workload, with a local resource.
- map[string]string
- A map of tags to assign to the resource. If configured with a provider
default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - Timeouts
Monitor
Timeouts Args
- monitor
Name String - The name of the monitor. Cannot be changed after creation.
- scope
Arn String The Amazon Resource Name (ARN) of the scope for the monitor. Cannot be changed after creation.
The following arguments are optional:
- local
Resources List<MonitorLocal Resource> - 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.
- remote
Resources List<MonitorRemote Resource> - The remote resources to monitor. A remote resource is the other endpoint specified for the network flow of a workload, with a local resource.
- Map<String,String>
- A map of tags to assign to the resource. If configured with a provider
default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - timeouts
Monitor
Timeouts
- monitor
Name string - The name of the monitor. Cannot be changed after creation.
- scope
Arn string The Amazon Resource Name (ARN) of the scope for the monitor. Cannot be changed after creation.
The following arguments are optional:
- local
Resources MonitorLocal Resource[] - 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.
- remote
Resources MonitorRemote Resource[] - The remote resources to monitor. A remote resource is the other endpoint specified for the network flow of a workload, with a local resource.
- {[key: string]: string}
- A map of tags to assign to the resource. If configured with a provider
default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - timeouts
Monitor
Timeouts
- 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[MonitorLocal Resource Args] - 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[MonitorRemote Resource Args] - The remote resources to monitor. A remote resource is the other endpoint specified for the network flow of a workload, with a local resource.
- Mapping[str, str]
- A map of tags to assign to the resource. If configured with a provider
default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - timeouts
Monitor
Timeouts Args
- monitor
Name String - The name of the monitor. Cannot be changed after creation.
- scope
Arn String The Amazon Resource Name (ARN) of the scope for the monitor. Cannot be changed after creation.
The following arguments are optional:
- local
Resources 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.
- remote
Resources 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.
- Map<String>
- A map of tags to assign to the resource. If configured with a provider
default_tagsconfiguration 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.
- Monitor
Arn string - The Amazon Resource Name (ARN) of the monitor.
- Dictionary<string, string>
- A map of tags assigned to the resource, including those inherited from the provider
default_tagsconfiguration block.
- Id string
- The provider-assigned unique ID for this managed resource.
- Monitor
Arn string - The Amazon Resource Name (ARN) of the monitor.
- map[string]string
- A map of tags assigned to the resource, including those inherited from the provider
default_tagsconfiguration block.
- id String
- The provider-assigned unique ID for this managed resource.
- monitor
Arn String - The Amazon Resource Name (ARN) of the monitor.
- Map<String,String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tagsconfiguration block.
- id string
- The provider-assigned unique ID for this managed resource.
- monitor
Arn string - The Amazon Resource Name (ARN) of the monitor.
- {[key: string]: string}
- A map of tags assigned to the resource, including those inherited from the provider
default_tagsconfiguration block.
- id str
- The provider-assigned unique ID for this managed resource.
- monitor_
arn str - The Amazon Resource Name (ARN) of the monitor.
- Mapping[str, str]
- A map of tags assigned to the resource, including those inherited from the provider
default_tagsconfiguration block.
- id String
- The provider-assigned unique ID for this managed resource.
- monitor
Arn String - The Amazon Resource Name (ARN) of the monitor.
- Map<String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tagsconfiguration 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) -> Monitorfunc 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.
- Local
Resources List<MonitorLocal Resource> - 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 string - The Amazon Resource Name (ARN) of the monitor.
- Monitor
Name 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.
- Remote
Resources List<MonitorRemote Resource> - 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 string The Amazon Resource Name (ARN) of the scope for the monitor. Cannot be changed after creation.
The following arguments are optional:
- Dictionary<string, string>
- A map of tags to assign to the resource. If configured with a provider
default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - Dictionary<string, string>
- A map of tags assigned to the resource, including those inherited from the provider
default_tagsconfiguration block. - Timeouts
Monitor
Timeouts
- Local
Resources []MonitorLocal Resource Args - 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 string - The Amazon Resource Name (ARN) of the monitor.
- Monitor
Name 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.
- Remote
Resources []MonitorRemote Resource Args - 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 string The Amazon Resource Name (ARN) of the scope for the monitor. Cannot be changed after creation.
The following arguments are optional:
- map[string]string
- A map of tags to assign to the resource. If configured with a provider
default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - map[string]string
- A map of tags assigned to the resource, including those inherited from the provider
default_tagsconfiguration block. - Timeouts
Monitor
Timeouts Args
- local
Resources List<MonitorLocal Resource> - 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 String - The Amazon Resource Name (ARN) of the monitor.
- monitor
Name 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.
- remote
Resources List<MonitorRemote Resource> - 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 String The Amazon Resource Name (ARN) of the scope for the monitor. Cannot be changed after creation.
The following arguments are optional:
- Map<String,String>
- A map of tags to assign to the resource. If configured with a provider
default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - Map<String,String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tagsconfiguration block. - timeouts
Monitor
Timeouts
- local
Resources MonitorLocal Resource[] - 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 string - The Amazon Resource Name (ARN) of the monitor.
- monitor
Name 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.
- remote
Resources MonitorRemote Resource[] - 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 string The Amazon Resource Name (ARN) of the scope for the monitor. Cannot be changed after creation.
The following arguments are optional:
- {[key: string]: string}
- A map of tags to assign to the resource. If configured with a provider
default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - {[key: string]: string}
- A map of tags assigned to the resource, including those inherited from the provider
default_tagsconfiguration block. - timeouts
Monitor
Timeouts
- local_
resources Sequence[MonitorLocal Resource Args] - 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[MonitorRemote Resource Args] - 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:
- Mapping[str, str]
- A map of tags to assign to the resource. If configured with a provider
default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - Mapping[str, str]
- A map of tags assigned to the resource, including those inherited from the provider
default_tagsconfiguration block. - timeouts
Monitor
Timeouts Args
- local
Resources 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.
- monitor
Arn String - The Amazon Resource Name (ARN) of the monitor.
- monitor
Name 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.
- remote
Resources 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.
- scope
Arn String The Amazon Resource Name (ARN) of the scope for the monitor. Cannot be changed after creation.
The following arguments are optional:
- Map<String>
- A map of tags to assign to the resource. If configured with a provider
default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level. - Map<String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tagsconfiguration 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, andAWS::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, andAWS::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, andAWS::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, andAWS::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, andAWS::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, andAWS::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, andAWS::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, andAWS::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, andAWS::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, andAWS::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, andAWS::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, andAWS::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
awsTerraform Provider.
