CfnScopePropsMixin

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

Bases: Mixin

Resource Type definition for AWS::NetworkFlowMonitor::Scope.

Creates a scope to define the resources that Network Flow Monitor monitors for network performance.

See:

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

CloudformationResource:

AWS::NetworkFlowMonitor::Scope

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_scope_props_mixin = networkflowmonitor.CfnScopePropsMixin(networkflowmonitor.CfnScopeMixinProps(
    tags=[cdk.CfnTag(
        key="key",
        value="value"
    )],
    targets=[networkflowmonitor.CfnScopePropsMixin.TargetResourceProperty(
        region="region",
        target_identifier=networkflowmonitor.CfnScopePropsMixin.TargetIdentifierProperty(
            target_id=networkflowmonitor.CfnScopePropsMixin.TargetIdProperty(
                account_id="accountId"
            ),
            target_type="targetType"
        )
    )]
),
    strategy=merge_strategy
)

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

Parameters:
  • props (Union[CfnScopeMixinProps, 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 = ['tags', 'targets']

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.

TargetIdProperty

class CfnScopePropsMixin.TargetIdProperty(*, account_id=None)

Bases: object

A target ID is an internally-generated identifier for a target.

Parameters:

account_id (Optional[str]) – The account ID for the target.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkflowmonitor-scope-targetid.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

target_id_property = networkflowmonitor.CfnScopePropsMixin.TargetIdProperty(
    account_id="accountId"
)

Attributes

account_id

The account ID for the target.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkflowmonitor-scope-targetid.html#cfn-networkflowmonitor-scope-targetid-accountid

TargetIdentifierProperty

class CfnScopePropsMixin.TargetIdentifierProperty(*, target_id=None, target_type=None)

Bases: object

A target identifier is a pair of identifying information for a scope target.

Parameters:
  • target_id (Union[IResolvable, TargetIdProperty, Dict[str, Any], None]) – A target ID is an internally-generated identifier for a target.

  • target_type (Optional[str]) – The type of the target. Currently always ACCOUNT.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkflowmonitor-scope-targetidentifier.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

target_identifier_property = networkflowmonitor.CfnScopePropsMixin.TargetIdentifierProperty(
    target_id=networkflowmonitor.CfnScopePropsMixin.TargetIdProperty(
        account_id="accountId"
    ),
    target_type="targetType"
)

Attributes

target_id

A target ID is an internally-generated identifier for a target.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkflowmonitor-scope-targetidentifier.html#cfn-networkflowmonitor-scope-targetidentifier-targetid

target_type

The type of the target.

Currently always ACCOUNT.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkflowmonitor-scope-targetidentifier.html#cfn-networkflowmonitor-scope-targetidentifier-targettype

TargetResourceProperty

class CfnScopePropsMixin.TargetResourceProperty(*, region=None, target_identifier=None)

Bases: object

A target resource in a scope, identified by a Region and target identifier.

Parameters:
  • region (Optional[str]) – The AWS Region for the target resource.

  • target_identifier (Union[IResolvable, TargetIdentifierProperty, Dict[str, Any], None]) – A target identifier is a pair of identifying information for a scope target.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkflowmonitor-scope-targetresource.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

target_resource_property = networkflowmonitor.CfnScopePropsMixin.TargetResourceProperty(
    region="region",
    target_identifier=networkflowmonitor.CfnScopePropsMixin.TargetIdentifierProperty(
        target_id=networkflowmonitor.CfnScopePropsMixin.TargetIdProperty(
            account_id="accountId"
        ),
        target_type="targetType"
    )
)

Attributes

region

The AWS Region for the target resource.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkflowmonitor-scope-targetresource.html#cfn-networkflowmonitor-scope-targetresource-region

target_identifier

A target identifier is a pair of identifying information for a scope target.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkflowmonitor-scope-targetresource.html#cfn-networkflowmonitor-scope-targetresource-targetidentifier