An Amazon CloudWatch Network Monitor probe that measures network traffic between a source subnet and a destination.
Create Probe Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
@overload
def Probe(resource_name: str,
args: ProbeArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Probe(resource_name: str,
opts: Optional[ResourceOptions] = None,
destination: Optional[str] = None,
monitor_name: Optional[str] = None,
protocol: Optional[ProbeProtocol] = None,
source_arn: Optional[str] = None,
destination_port: Optional[int] = None,
packet_size: Optional[int] = None,
tags: Optional[Sequence[_root_inputs.TagArgs]] = None)
public Probe(String name, ProbeArgs args)
public Probe(String name, ProbeArgs args, CustomResourceOptions options)
type: aws-native:networkmonitor:Probe
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "aws-native_networkmonitor_probe" "name" {
# resource properties
}
Parameters
- name
string
- The unique name of the resource.
- args
ProbeArgs
- 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
ProbeArgs
- 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
ProbeArgs
- The arguments to resource properties.
- opts
ResourceOption
- Bag of options to control resource's behavior.
- name
string
- The unique name of the resource.
- args
ProbeArgs
- The arguments to resource properties.
- opts
CustomResourceOptions
- Bag of options to control resource's behavior.
- name
String
- The unique name of the resource.
- args
ProbeArgs
- The arguments to resource properties.
- options
CustomResourceOptions
- Bag of options to control resource's behavior.
Probe 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 Probe resource accepts the following input properties:
- Destination
string
- The literal IPv4 or IPv6 address the probe sends traffic to. The service rejects a domain name and a CIDR block.
- MonitorName
string
- The name of the monitor the probe belongs to.
- Protocol
ProbeProtocol
- The protocol the probe uses.
- SourceArn
string
- The ARN of the subnet the probe sends traffic from.
- DestinationPort
int
- The port the probe sends traffic to. Applies to the TCP protocol only.
- PacketSize
int
- The size, in bytes, of the packets the probe sends.
- Tags
TagArgs
- The tags for the probe.
- destination
string
- The literal IPv4 or IPv6 address the probe sends traffic to. The service rejects a domain name and a CIDR block.
- monitor_name
string
- The name of the monitor the probe belongs to.
- protocol
"TCP" | "ICMP"
- The protocol the probe uses.
- source_arn
string
- The ARN of the subnet the probe sends traffic from.
- destination_port
number
- The port the probe sends traffic to. Applies to the TCP protocol only.
- packet_size
number
- The size, in bytes, of the packets the probe sends.
- tags
list(object)
- The tags for the probe.
- destination
String
- The literal IPv4 or IPv6 address the probe sends traffic to. The service rejects a domain name and a CIDR block.
- monitorName
String
- The name of the monitor the probe belongs to.
- protocol
ProbeProtocol
- The protocol the probe uses.
- sourceArn
String
- The ARN of the subnet the probe sends traffic from.
- destinationPort
Integer
- The port the probe sends traffic to. Applies to the TCP protocol only.
- packetSize
Integer
- The size, in bytes, of the packets the probe sends.
- tags
List<Tag>
- The tags for the probe.
- destination
string
- The literal IPv4 or IPv6 address the probe sends traffic to. The service rejects a domain name and a CIDR block.
- monitorName
string
- The name of the monitor the probe belongs to.
- protocol
ProbeProtocol
- The protocol the probe uses.
- sourceArn
string
- The ARN of the subnet the probe sends traffic from.
- destinationPort
number
- The port the probe sends traffic to. Applies to the TCP protocol only.
- packetSize
number
- The size, in bytes, of the packets the probe sends.
- tags
Tag[]
- The tags for the probe.
- destination
String
- The literal IPv4 or IPv6 address the probe sends traffic to. The service rejects a domain name and a CIDR block.
- monitorName
String
- The name of the monitor the probe belongs to.
- protocol
"TCP" | "ICMP"
- The protocol the probe uses.
- sourceArn
String
- The ARN of the subnet the probe sends traffic from.
- destinationPort
Number
- The port the probe sends traffic to. Applies to the TCP protocol only.
- packetSize
Number
- The size, in bytes, of the packets the probe sends.
- tags
List<Property Map>
- The tags for the probe.
Outputs
All input properties are implicitly available as output properties. Additionally, the Probe resource produces the following output properties:
- AddressFamily
ProbeAddressFamily
- The IP address family the probe uses, computed by the service from the source and destination.
- CreatedAt
string
- The time and date when the probe was created.
- Id
string
- The provider-assigned unique ID for this managed resource.
- ModifiedAt
string
- The time and date when the probe was last modified.
- ProbeArn
string
- The ARN of the probe.
- ProbeId
string
- The ID of the probe.
- State
ProbeStateEnum
- The state of the probe.
- VpcId
string
- The ID of the VPC containing the probe's source subnet.
- addressFamily
ProbeAddressFamily
- The IP address family the probe uses, computed by the service from the source and destination.
- createdAt
String
- The time and date when the probe was created.
- id
String
- The provider-assigned unique ID for this managed resource.
- modifiedAt
String
- The time and date when the probe was last modified.
- probeArn
String
- The ARN of the probe.
- probeId
String
- The ID of the probe.
- state
ProbeState
- The state of the probe.
- vpcId
String
- The ID of the VPC containing the probe's source subnet.
- addressFamily
ProbeAddressFamily
- The IP address family the probe uses, computed by the service from the source and destination.
- createdAt
string
- The time and date when the probe was created.
- id
string
- The provider-assigned unique ID for this managed resource.
- modifiedAt
string
- The time and date when the probe was last modified.
- probeArn
string
- The ARN of the probe.
- probeId
string
- The ID of the probe.
- state
ProbeState
- The state of the probe.
- vpcId
string
- The ID of the VPC containing the probe's source subnet.
- address_family
ProbeAddressFamily
- The IP address family the probe uses, computed by the service from the source and destination.
- created_at
str
- The time and date when the probe was created.
- id
str
- The provider-assigned unique ID for this managed resource.
- modified_at
str
- The time and date when the probe was last modified.
- probe_arn
str
- The ARN of the probe.
- probe_id
str
- The ID of the probe.
- state
ProbeState
- The state of the probe.
- vpc_id
str
- The ID of the VPC containing the probe's source subnet.
Look up Existing Probe Resource
Get an existing Probe resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static Probe get(String name, Output<String> id, CustomResourceOptions options)
resources: existingProbe: type: aws-native:networkmonitor:Probe get: id: ${id}
import {
to = aws-native_networkmonitor_probe.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
ProbeState
- 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
ProbeAddressFamily
The IP address family the probe uses, computed by the service from the source and destination.
| Name | Value |
|---|
| Ipv4 | IPV4 |
| Ipv6 | IPV6 |
| Name | Value |
|---|
| ProbeAddressFamilyIpv4 | IPV4 |
| ProbeAddressFamilyIpv6 | IPV6 |
| Name | Value |
|---|
| Ipv4 | IPV4 |
| Ipv6 | IPV6 |
| Name | Value |
|---|
| Ipv4 | IPV4 |
| Ipv6 | IPV6 |
| Name | Value |
|---|
| IPV4 | IPV4 |
| IPV6 | IPV6 |
ProbeProtocol
The protocol the probe uses.
| Name | Value |
|---|
| ProbeProtocolTcp | TCP |
| ProbeProtocolIcmp | ICMP |
ProbeState
The state of the probe.
| Name | Value |
|---|
| Pending | PENDING |
| Active | ACTIVE |
| Inactive | INACTIVE |
| Error | ERROR |
| Deleting | DELETING |
| Deleted | DELETED |
| Name | Value |
|---|
| ProbeStatePending | PENDING |
| ProbeStateActive | ACTIVE |
| ProbeStateInactive | INACTIVE |
| ProbeStateError | ERROR |
| ProbeStateDeleting | DELETING |
| ProbeStateDeleted | DELETED |
| Value |
|---|
PENDING |
ACTIVE |
INACTIVE |
ERROR |
DELETING |
DELETED |
| Name | Value |
|---|
| Pending | PENDING |
| Active | ACTIVE |
| Inactive | INACTIVE |
| Error | ERROR |
| Deleting | DELETING |
| Deleted | DELETED |
| Name | Value |
|---|
| Pending | PENDING |
| Active | ACTIVE |
| Inactive | INACTIVE |
| Error | ERROR |
| Deleting | DELETING |
| Deleted | DELETED |
| Name | Value |
|---|
| PENDING | PENDING |
| ACTIVE | ACTIVE |
| INACTIVE | INACTIVE |
| ERROR | ERROR |
| DELETING | DELETING |
| DELETED | DELETED |
| Value |
|---|
PENDING |
ACTIVE |
INACTIVE |
ERROR |
DELETING |
DELETED |
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