We recommend new projects start with resources from the AWS provider.
published on Wednesday, Nov 18, 2026 by Pulumi
We recommend new projects start with resources from the AWS provider.
published on Wednesday, Nov 18, 2026 by Pulumi
An Amazon CloudWatch Network Monitor resource that monitors network traffic between a source VPC subnet and a destination IP address.
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: Optional[MonitorArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def Monitor(resource_name: str,
opts: Optional[ResourceOptions] = None,
aggregation_period: Optional[int] = None,
monitor_name: Optional[str] = None,
tags: Optional[Sequence[_root_inputs.TagArgs]] = None)func NewMonitor(ctx *Context, name string, args *MonitorArgs, opts ...ResourceOption) (*Monitor, error)public Monitor(string name, MonitorArgs? args = null, CustomResourceOptions? opts = null)
public Monitor(String name, MonitorArgs args)
public Monitor(String name, MonitorArgs args, CustomResourceOptions options)
type: aws-native:networkmonitor:Monitor
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "aws-native_networkmonitor_monitor" "name" {
# resource properties
}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.
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:
- Aggregation
Period int - The time, in seconds, that metrics are aggregated and sent to Amazon CloudWatch. Valid values are either 30 or 60.
- Monitor
Name string - The name identifying the monitor. It can contain only letters, underscores (_), or dashes (-), and can be up to 200 characters.
-
List<Pulumi.
Aws Native. Inputs. Tag> - The tags for the monitor.
- Aggregation
Period int - The time, in seconds, that metrics are aggregated and sent to Amazon CloudWatch. Valid values are either 30 or 60.
- Monitor
Name string - The name identifying the monitor. It can contain only letters, underscores (_), or dashes (-), and can be up to 200 characters.
-
Tag
Args - The tags for the monitor.
- aggregation_
period number - The time, in seconds, that metrics are aggregated and sent to Amazon CloudWatch. Valid values are either 30 or 60.
- monitor_
name string - The name identifying the monitor. It can contain only letters, underscores (_), or dashes (-), and can be up to 200 characters.
- list(object)
- The tags for the monitor.
- aggregation
Period Integer - The time, in seconds, that metrics are aggregated and sent to Amazon CloudWatch. Valid values are either 30 or 60.
- monitor
Name String - The name identifying the monitor. It can contain only letters, underscores (_), or dashes (-), and can be up to 200 characters.
- List<Tag>
- The tags for the monitor.
- aggregation
Period number - The time, in seconds, that metrics are aggregated and sent to Amazon CloudWatch. Valid values are either 30 or 60.
- monitor
Name string - The name identifying the monitor. It can contain only letters, underscores (_), or dashes (-), and can be up to 200 characters.
- Tag[]
- The tags for the monitor.
- aggregation_
period int - The time, in seconds, that metrics are aggregated and sent to Amazon CloudWatch. Valid values are either 30 or 60.
- monitor_
name str - The name identifying the monitor. It can contain only letters, underscores (_), or dashes (-), and can be up to 200 characters.
-
Sequence[Tag
Args] - The tags for the monitor.
- aggregation
Period Number - The time, in seconds, that metrics are aggregated and sent to Amazon CloudWatch. Valid values are either 30 or 60.
- monitor
Name String - The name identifying the monitor. It can contain only letters, underscores (_), or dashes (-), and can be up to 200 characters.
- List<Property Map>
- The tags for the monitor.
Outputs
All input properties are implicitly available as output properties. Additionally, the Monitor resource produces the following output properties:
- Created
At string - The time and date when the monitor was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Modified
At string - The time and date when the monitor was last modified.
- Monitor
Arn string - The ARN of the monitor.
- State
Pulumi.
Aws Native. Network Monitor. Monitor State - The state of the monitor.
- Created
At string - The time and date when the monitor was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Modified
At string - The time and date when the monitor was last modified.
- Monitor
Arn string - The ARN of the monitor.
- State
Monitor
State Enum - The state of the monitor.
- created_
at string - The time and date when the monitor was created.
- id string
- The provider-assigned unique ID for this managed resource.
- modified_
at string - The time and date when the monitor was last modified.
- monitor_
arn string - The ARN of the monitor.
- state "PENDING" | "ACTIVE" | "INACTIVE" | "ERROR" | "DELETING"
- The state of the monitor.
- created
At String - The time and date when the monitor was created.
- id String
- The provider-assigned unique ID for this managed resource.
- modified
At String - The time and date when the monitor was last modified.
- monitor
Arn String - The ARN of the monitor.
- state
Monitor
State - The state of the monitor.
- created
At string - The time and date when the monitor was created.
- id string
- The provider-assigned unique ID for this managed resource.
- modified
At string - The time and date when the monitor was last modified.
- monitor
Arn string - The ARN of the monitor.
- state
Monitor
State - The state of the monitor.
- created_
at str - The time and date when the monitor was created.
- id str
- The provider-assigned unique ID for this managed resource.
- modified_
at str - The time and date when the monitor was last modified.
- monitor_
arn str - The ARN of the monitor.
- state
Monitor
State - The state of the monitor.
- created
At String - The time and date when the monitor was created.
- id String
- The provider-assigned unique ID for this managed resource.
- modified
At String - The time and date when the monitor was last modified.
- monitor
Arn String - The ARN of the monitor.
- state "PENDING" | "ACTIVE" | "INACTIVE" | "ERROR" | "DELETING"
- The state of the monitor.
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>, opts?: CustomResourceOptions): Monitor@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None) -> Monitorfunc GetMonitor(ctx *Context, name string, id IDInput, state *MonitorState, opts ...ResourceOption) (*Monitor, error)public static Monitor Get(string name, Input<string> id, CustomResourceOptions? opts = null)public static Monitor get(String name, Output<String> id, CustomResourceOptions options)resources: existingMonitor: type: aws-native:networkmonitor:Monitor get: id: ${id}import {
to = aws-native_networkmonitor_monitor.example
id = "${id}"
}
- name string
- The unique name of the resulting resource.
- id Input<ID>
- The unique provider ID of the resource to look up.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resulting resource.
- id str
- The unique provider ID of the resource to look up.
- 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 resulting resource.
- id IDInput
- The unique provider ID of the resource to look up.
- state MonitorState
- Pass nil. This resource has no state arguments.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resulting resource.
- id Input<string>
- The unique provider ID of the resource to look up.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resulting resource.
- id Output<String>
- The unique provider ID of the resource to look up.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Supporting Types
MonitorState
The state of the monitor.
| Name | Value |
|---|---|
| Pending | PENDING |
| Active | ACTIVE |
| Inactive | INACTIVE |
| Error | ERROR |
| Deleting | DELETING |
| Name | Value |
|---|---|
| Monitor | PENDING |
| Monitor | ACTIVE |
| Monitor | INACTIVE |
| Monitor | ERROR |
| Monitor | DELETING |
| Value |
|---|
PENDING |
ACTIVE |
INACTIVE |
ERROR |
DELETING |
| Name | Value |
|---|---|
| Pending | PENDING |
| Active | ACTIVE |
| Inactive | INACTIVE |
| Error | ERROR |
| Deleting | DELETING |
| Name | Value |
|---|---|
| Pending | PENDING |
| Active | ACTIVE |
| Inactive | INACTIVE |
| Error | ERROR |
| Deleting | DELETING |
| Name | Value |
|---|---|
| PENDING | PENDING |
| ACTIVE | ACTIVE |
| INACTIVE | INACTIVE |
| ERROR | ERROR |
| DELETING | DELETING |
| Value |
|---|
PENDING |
ACTIVE |
INACTIVE |
ERROR |
DELETING |
Tag, TagArgs
A set of tags to apply to the resource.
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.
published on Wednesday, Nov 18, 2026 by Pulumi