Creates a monitor for specific network flows between local and remote resources to monitor network performance for workloads.
Create Monitor Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
@overload
def Monitor(resource_name: str,
args: MonitorArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Monitor(resource_name: str,
opts: Optional[ResourceOptions] = None,
local_resources: Optional[Sequence[MonitorLocalResourceArgs]] = None,
monitor_name: Optional[str] = None,
remote_resources: Optional[Sequence[MonitorRemoteResourceArgs]] = None,
scope_arn: Optional[str] = None,
tags: Optional[Sequence[_root_inputs.TagArgs]] = None)
public Monitor(String name, MonitorArgs args)
public Monitor(String name, MonitorArgs args, CustomResourceOptions options)
type: aws-native:networkflowmonitor:Monitor
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "aws-native_networkflowmonitor_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.
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:
Outputs
All input properties are implicitly available as output properties. Additionally, the Monitor resource produces the following output properties:
- Arn
string
- The Amazon Resource Name (ARN) of the monitor.
- CreatedAt
string
- The date and time when the monitor was created.
- Id
string
- The provider-assigned unique ID for this managed resource.
- ModifiedAt
string
- The date and time when the monitor was last modified.
- MonitorStatus
MonitorStatus
- The status of the monitor.
- arn
String
- The Amazon Resource Name (ARN) of the monitor.
- createdAt
String
- The date and time when the monitor was created.
- id
String
- The provider-assigned unique ID for this managed resource.
- modifiedAt
String
- The date and time when the monitor was last modified.
- monitorStatus
MonitorStatus
- The status of the monitor.
- arn
string
- The Amazon Resource Name (ARN) of the monitor.
- createdAt
string
- The date and time when the monitor was created.
- id
string
- The provider-assigned unique ID for this managed resource.
- modifiedAt
string
- The date and time when the monitor was last modified.
- monitorStatus
MonitorStatus
- The status of the monitor.
- arn
str
- The Amazon Resource Name (ARN) of the monitor.
- created_at
str
- The date and time when the monitor was created.
- id
str
- The provider-assigned unique ID for this managed resource.
- modified_at
str
- The date and time when the monitor was last modified.
- monitor_status
MonitorStatus
- The status 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 Monitor get(String name, Output<String> id, CustomResourceOptions options)
resources: existingMonitor: type: aws-native:networkflowmonitor:Monitor get: id: ${id}
import {
to = aws-native_networkflowmonitor_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
MonitorLocalResource, MonitorLocalResourceArgs
A local resource is the host where the agent is installed.
MonitorLocalResourceType
The type of the local resource.
| Name | Value |
|---|
| Awsec2vpc | AWS::EC2::VPC |
| AwsAvailabilityZone | AWS::AvailabilityZone |
| Awsec2Subnet | AWS::EC2::Subnet |
| AwsRegion | AWS::Region |
| AwseksCluster | AWS::EKS::Cluster |
| Name | Value |
|---|
| MonitorLocalResourceTypeAwsec2vpc | AWS::EC2::VPC |
| MonitorLocalResourceTypeAwsAvailabilityZone | AWS::AvailabilityZone |
| MonitorLocalResourceTypeAwsec2Subnet | AWS::EC2::Subnet |
| MonitorLocalResourceTypeAwsRegion | AWS::Region |
| MonitorLocalResourceTypeAwseksCluster | AWS::EKS::Cluster |
| Value |
|---|
AWS::EC2::VPC |
AWS::AvailabilityZone |
AWS::EC2::Subnet |
AWS::Region |
AWS::EKS::Cluster |
| Name | Value |
|---|
| Awsec2vpc | AWS::EC2::VPC |
| AwsAvailabilityZone | AWS::AvailabilityZone |
| Awsec2Subnet | AWS::EC2::Subnet |
| AwsRegion | AWS::Region |
| AwseksCluster | AWS::EKS::Cluster |
| Name | Value |
|---|
| Awsec2vpc | AWS::EC2::VPC |
| AwsAvailabilityZone | AWS::AvailabilityZone |
| Awsec2Subnet | AWS::EC2::Subnet |
| AwsRegion | AWS::Region |
| AwseksCluster | AWS::EKS::Cluster |
| Name | Value |
|---|
| AWSEC2VPC | AWS::EC2::VPC |
| AWS_AVAILABILITY_ZONE | AWS::AvailabilityZone |
| AWSEC2_SUBNET | AWS::EC2::Subnet |
| AWS_REGION | AWS::Region |
| AWSEKS_CLUSTER | AWS::EKS::Cluster |
| Value |
|---|
AWS::EC2::VPC |
AWS::AvailabilityZone |
AWS::EC2::Subnet |
AWS::Region |
AWS::EKS::Cluster |
MonitorRemoteResource, MonitorRemoteResourceArgs
A remote resource is the other endpoint in a network flow.
MonitorRemoteResourceType
The type of the remote resource.
| Name | Value |
|---|
| Awsec2vpc | AWS::EC2::VPC |
| AwsAvailabilityZone | AWS::AvailabilityZone |
| Awsec2Subnet | AWS::EC2::Subnet |
| AwsawsService | AWS::AWSService |
| AwsRegion | AWS::Region |
| Name | Value |
|---|
| MonitorRemoteResourceTypeAwsec2vpc | AWS::EC2::VPC |
| MonitorRemoteResourceTypeAwsAvailabilityZone | AWS::AvailabilityZone |
| MonitorRemoteResourceTypeAwsec2Subnet | AWS::EC2::Subnet |
| MonitorRemoteResourceTypeAwsawsService | AWS::AWSService |
| MonitorRemoteResourceTypeAwsRegion | AWS::Region |
| Value |
|---|
AWS::EC2::VPC |
AWS::AvailabilityZone |
AWS::EC2::Subnet |
AWS::AWSService |
AWS::Region |
| Name | Value |
|---|
| Awsec2vpc | AWS::EC2::VPC |
| AwsAvailabilityZone | AWS::AvailabilityZone |
| Awsec2Subnet | AWS::EC2::Subnet |
| AwsawsService | AWS::AWSService |
| AwsRegion | AWS::Region |
| Name | Value |
|---|
| Awsec2vpc | AWS::EC2::VPC |
| AwsAvailabilityZone | AWS::AvailabilityZone |
| Awsec2Subnet | AWS::EC2::Subnet |
| AwsawsService | AWS::AWSService |
| AwsRegion | AWS::Region |
| Name | Value |
|---|
| AWSEC2VPC | AWS::EC2::VPC |
| AWS_AVAILABILITY_ZONE | AWS::AvailabilityZone |
| AWSEC2_SUBNET | AWS::EC2::Subnet |
| AWSAWS_SERVICE | AWS::AWSService |
| AWS_REGION | AWS::Region |
| Value |
|---|
AWS::EC2::VPC |
AWS::AvailabilityZone |
AWS::EC2::Subnet |
AWS::AWSService |
AWS::Region |
MonitorStatus
The status of the monitor.
| Name | Value |
|---|
| Pending | PENDING |
| Active | ACTIVE |
| Inactive | INACTIVE |
| Error | ERROR |
| Deleting | DELETING |
| Name | Value |
|---|
| MonitorStatusPending | PENDING |
| MonitorStatusActive | ACTIVE |
| MonitorStatusInactive | INACTIVE |
| MonitorStatusError | ERROR |
| MonitorStatusDeleting | 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.
- Key
string
- The key name of the tag
- Value
string
- The value of the tag
- Key
string
- The key name of the tag
- Value
string
- The value of the tag
- key
string
- The key name of the tag
- value
string
- The value of the tag
- key
String
- The key name of the tag
- value
String
- The value of the tag
- key
string
- The key name of the tag
- value
string
- The value of the tag
- key
str
- The key name of the tag
- value
str
- The value of the tag
- key
String
- The key name of the tag
- value
String
- The value of the tag
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0