Skip to content
v2.276.0

CfnMonitorProps Struct ​

Properties for defining a CfnMonitor.

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 cfnMonitorProps: networkflowmonitor.CfnMonitorProps = {
  localResources: [{
    identifier: 'identifier',
    type: 'type',
  }],
  monitorName: 'monitorName',

  // the properties below are optional
  remoteResources: [{
    identifier: 'identifier',
    type: 'type',
  }],
  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_monitor_props = networkflowmonitor.CfnMonitorProps(
    local_resources=[networkflowmonitor.CfnMonitor.MonitorLocalResourceProperty(
        identifier="identifier",
        type="type"
    )],
    monitor_name="monitorName",

    # the properties below are optional
    remote_resources=[networkflowmonitor.CfnMonitor.MonitorRemoteResourceProperty(
        identifier="identifier",
        type="type"
    )],
    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.*;

CfnMonitorProps cfnMonitorProps = CfnMonitorProps.builder()
        .localResources(List.of(MonitorLocalResourceProperty.builder()
                .identifier("identifier")
                .type("type")
                .build()))
        .monitorName("monitorName")

        // the properties below are optional
        .remoteResources(List.of(MonitorRemoteResourceProperty.builder()
                .identifier("identifier")
                .type("type")
                .build()))
        .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 cfnMonitorProps = new CfnMonitorProps {
    LocalResources = new [] { new MonitorLocalResourceProperty {
        Identifier = "identifier",
        Type = "type"
    } },
    MonitorName = "monitorName",

    // the properties below are optional
    RemoteResources = new [] { new MonitorRemoteResourceProperty {
        Identifier = "identifier",
        Type = "type"
    } },
    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"

cfnMonitorProps := &CfnMonitorProps{
	LocalResources: []interface{}{
		&MonitorLocalResourceProperty{
			Identifier: jsii.String("identifier"),
			Type: jsii.String("type"),
		},
	},
	MonitorName: jsii.String("monitorName"),

	// the properties below are optional
	RemoteResources: []interface{}{
		&MonitorRemoteResourceProperty{
			Identifier: jsii.String("identifier"),
			Type: jsii.String("type"),
		},
	},
	ScopeArn: jsii.String("scopeArn"),
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}

Properties ​

localResourcesIResolvable | IResolvable | CfnMonitor.MonitorLocalResourceProperty[]local_resourcestyping.Union[IResolvable, typing.List[typing.Union[IResolvable, MonitorLocalResourceProperty]]]localResourcesIResolvableLocalResourcesIResolvableLocalResourcesinterface{}required#
The local resources to monitor.
monitorNamestringmonitor_namestrmonitorNameStringMonitorNamestringMonitorName*stringrequired#
The name of the monitor.
remoteResourcesoptionalIResolvable | IResolvable | CfnMonitor.MonitorRemoteResourceProperty[]remote_resourcesoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, MonitorRemoteResourceProperty]]]remoteResourcesoptionalIResolvableRemoteResourcesoptionalIResolvableRemoteResourcesoptionalinterface{}#
The remote resources to monitor.
scopeArnoptionalstringscope_arnoptionalstrscopeArnoptionalStringScopeArnoptionalstringScopeArnoptional*string#
The Amazon Resource Name (ARN) of the scope for the monitor.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag#
The tags for the monitor.