CfnPerformanceMonitorProps Struct
Properties for defining a CfnPerformanceMonitor.
| Source |
|---|
Example
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
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
// 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();
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"
} }
};
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
The name of the performance monitor.
scopeArnoptionalstringscope_arnoptionalstrscopeArnoptionalStringScopeArnoptionalstringScopeArnoptional*string #The Amazon Resource Name (ARN) of the scope for the performance monitor.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #The tags for the performance monitor.
targetsIResolvable | IResolvable | CfnPerformanceMonitor.targetstyping.Union[IResolvable, typing.List[typing.Union[IResolvable, PerformanceMonitorTargetProperty]]]targetsIResolvableTargetsIResolvableTargetsinterface{} required #The targets that are monitored by the performance monitor.