CfnScopePropsMixin
- class aws_cdk.cfn_property_mixins.aws_networkflowmonitor.CfnScopePropsMixin(props, *, strategy=None)
Bases:
MixinResource Type definition for AWS::NetworkFlowMonitor::Scope.
Creates a scope to define the resources that Network Flow Monitor monitors for network performance.
- See:
- 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
xis a Mixin.- Parameters:
x (
Any) – Any object.- Return type:
bool- Returns:
true if
xis an object created from a class which extendsMixin.
TargetIdProperty
- class CfnScopePropsMixin.TargetIdProperty(*, account_id=None)
Bases:
objectA target ID is an internally-generated identifier for a target.
- Parameters:
account_id (
Optional[str]) – The account ID for the target.- See:
- 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.
TargetIdentifierProperty
- class CfnScopePropsMixin.TargetIdentifierProperty(*, target_id=None, target_type=None)
Bases:
objectA 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:
- 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.
- target_type
The type of the target.
Currently always ACCOUNT.
TargetResourceProperty
- class CfnScopePropsMixin.TargetResourceProperty(*, region=None, target_identifier=None)
Bases:
objectA 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:
- 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.
- target_identifier
A target identifier is a pair of identifying information for a scope target.