CfnMonitorPropsMixin

class aws_cdk.cfn_property_mixins.aws_networkflowmonitor.CfnMonitorPropsMixin(props, *, strategy=None)

Bases: Mixin

Creates a monitor for specific network flows between local and remote resources to monitor network performance for workloads.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-networkflowmonitor-monitor.html

CloudformationResource:

AWS::NetworkFlowMonitor::Monitor

Mixin:

true

ExampleMetadata:

fixture=_generated

Example:

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

# merge_strategy: cdk.IMergeStrategy

cfn_monitor_props_mixin = networkflowmonitor.CfnMonitorPropsMixin(networkflowmonitor.CfnMonitorMixinProps(
    local_resources=[networkflowmonitor.CfnMonitorPropsMixin.MonitorLocalResourceProperty(
        identifier="identifier",
        type="type"
    )],
    monitor_name="monitorName",
    remote_resources=[networkflowmonitor.CfnMonitorPropsMixin.MonitorRemoteResourceProperty(
        identifier="identifier",
        type="type"
    )],
    scope_arn="scopeArn",
    tags=[cdk.CfnTag(
        key="key",
        value="value"
    )]
),
    strategy=merge_strategy
)

Create a mixin to apply properties to AWS::NetworkFlowMonitor::Monitor.

Parameters:
  • props (Union[CfnMonitorMixinProps, Dict[str, Any]]) – L1 properties to apply.

  • strategy (Optional[IMergeStrategy]) – Strategy for merging nested properties. Default: - PropertyMergeStrategy.combine()

Methods

apply_to(construct)

Apply the mixin properties to the construct.

Parameters:

construct (IConstruct)

Return type:

None

supports(construct)

Check if this mixin supports the given construct.

Parameters:

construct (IConstruct)

Return type:

bool

Attributes

CFN_PROPERTY_KEYS = ['localResources', 'monitorName', 'remoteResources', 'scopeArn', 'tags']

Static Methods

classmethod is_mixin(x)

Checks if x is a Mixin.

Parameters:

x (Any) – Any object.

Return type:

bool

Returns:

true if x is an object created from a class which extends Mixin.

MonitorLocalResourceProperty

class CfnMonitorPropsMixin.MonitorLocalResourceProperty(*, identifier=None, type=None)

Bases: object

A local resource is the host where the agent is installed.

Parameters:
  • identifier (Optional[str]) – The identifier of the local resource.

  • type (Optional[str]) – The type of the local resource.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkflowmonitor-monitor-monitorlocalresource.html

ExampleMetadata:

fixture=_generated

Example:

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

monitor_local_resource_property = networkflowmonitor.CfnMonitorPropsMixin.MonitorLocalResourceProperty(
    identifier="identifier",
    type="type"
)

Attributes

identifier

The identifier of the local resource.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkflowmonitor-monitor-monitorlocalresource.html#cfn-networkflowmonitor-monitor-monitorlocalresource-identifier

type

The type of the local resource.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkflowmonitor-monitor-monitorlocalresource.html#cfn-networkflowmonitor-monitor-monitorlocalresource-type

MonitorRemoteResourceProperty

class CfnMonitorPropsMixin.MonitorRemoteResourceProperty(*, identifier=None, type=None)

Bases: object

A remote resource is the other endpoint in a network flow.

Parameters:
  • identifier (Optional[str]) – The identifier of the remote resource.

  • type (Optional[str]) – The type of the remote resource.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkflowmonitor-monitor-monitorremoteresource.html

ExampleMetadata:

fixture=_generated

Example:

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

monitor_remote_resource_property = networkflowmonitor.CfnMonitorPropsMixin.MonitorRemoteResourceProperty(
    identifier="identifier",
    type="type"
)

Attributes

identifier

The identifier of the remote resource.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkflowmonitor-monitor-monitorremoteresource.html#cfn-networkflowmonitor-monitor-monitorremoteresource-identifier

type

The type of the remote resource.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkflowmonitor-monitor-monitorremoteresource.html#cfn-networkflowmonitor-monitor-monitorremoteresource-type