# CfnPerformanceMonitorProps

Properties for defining a `CfnPerformanceMonitor`.

Used as props by: [CfnPerformanceMonitor](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_networkflowmonitor.CfnPerformanceMonitor.html)

- Source: Generated at build time

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_networkflowmonitor as networkflowmonitor } from 'aws-cdk-lib';
const cfnPerformanceMonitorProps: networkflowmonitor.CfnPerformanceMonitorProps = {
  monitorName: 'monitorName',
  targets: [{
    identifier: 'identifier',
    type: 'type',
  }],

  // the properties below are optional
  scopeArn: 'scopeArn',
  tags: [{
    key: 'key',
    value: 'value',
  }],
};
```

Python:

```python
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_networkflowmonitor as networkflowmonitor

cfn_performance_monitor_props = networkflowmonitor.CfnPerformanceMonitorProps(
    monitor_name="monitorName",
    targets=[networkflowmonitor.CfnPerformanceMonitor.PerformanceMonitorTargetProperty(
        identifier="identifier",
        type="type"
    )],

    # the properties below are optional
    scope_arn="scopeArn",
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.networkflowmonitor.*;

CfnPerformanceMonitorProps cfnPerformanceMonitorProps = CfnPerformanceMonitorProps.builder()
        .monitorName("monitorName")
        .targets(List.of(PerformanceMonitorTargetProperty.builder()
                .identifier("identifier")
                .type("type")
                .build()))

        // the properties below are optional
        .scopeArn("scopeArn")
        .tags(List.of(CfnTag.builder()
                .key("key")
                .value("value")
                .build()))
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.NetworkFlowMonitor;

var cfnPerformanceMonitorProps = new CfnPerformanceMonitorProps {
    MonitorName = "monitorName",
    Targets = new [] { new PerformanceMonitorTargetProperty {
        Identifier = "identifier",
        Type = "type"
    } },

    // the properties below are optional
    ScopeArn = "scopeArn",
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } }
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnPerformanceMonitorProps := &CfnPerformanceMonitorProps{
	MonitorName: jsii.String("monitorName"),
	Targets: []interface{}{
		&PerformanceMonitorTargetProperty{
			Identifier: jsii.String("identifier"),
			Type: jsii.String("type"),
		},
	},

	// the properties below are optional
	ScopeArn: jsii.String("scopeArn"),
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}
```

## Properties

- `monitorName`: string (required) — The name of the performance monitor.

- `scopeArn`: string — The Amazon Resource Name (ARN) of the scope for the performance monitor.

- `tags`: [CfnTag](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[] — The tags for the performance monitor.

- `targets`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnPerformanceMonitor.PerformanceMonitorTargetProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_networkflowmonitor.CfnPerformanceMonitor.PerformanceMonitorTargetProperty.html)[] (required) — The targets that are monitored by the performance monitor.
