CfnViewPropsMixin
- class aws_cdk.mixins_preview.aws_resourceexplorer2.mixins.CfnViewPropsMixin(props, *, strategy=None)
Bases:
MixinCreates a view that users can query by using the Search operation. Results from queries that you make using this view include only resources that match the view’s
Filters.- See:
- CloudformationResource:
AWS::ResourceExplorer2::View
- 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.mixins_preview import mixins from aws_cdk.mixins_preview.aws_resourceexplorer2 import mixins as resourceexplorer2_mixins cfn_view_props_mixin = resourceexplorer2_mixins.CfnViewPropsMixin(resourceexplorer2_mixins.CfnViewMixinProps( filters=resourceexplorer2_mixins.CfnViewPropsMixin.FiltersProperty( filter_string="filterString" ), included_properties=[resourceexplorer2_mixins.CfnViewPropsMixin.IncludedPropertyProperty( name="name" )], scope="scope", tags={ "tags_key": "tags" }, view_name="viewName" ), strategy=mixins.PropertyMergeStrategy.OVERRIDE )
Create a mixin to apply properties to
AWS::ResourceExplorer2::View.- Parameters:
props (
Union[CfnViewMixinProps,Dict[str,Any]]) – L1 properties to apply.strategy (
Optional[PropertyMergeStrategy]) – (experimental) Strategy for merging nested properties. Default: - PropertyMergeStrategy.MERGE
Methods
- apply_to(construct)
Apply the mixin properties to the construct.
- Parameters:
construct (
IConstruct)- Return type:
- supports(construct)
Check if this mixin supports the given construct.
- Parameters:
construct (
IConstruct)- Return type:
bool
Attributes
- CFN_PROPERTY_KEYS = ['filters', 'includedProperties', 'scope', 'tags', 'viewName']
Static Methods
- classmethod is_mixin(x)
(experimental) 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.- Stability:
experimental
FiltersProperty
- class CfnViewPropsMixin.FiltersProperty(*, filter_string=None)
Bases:
object- Parameters:
filter_string (
Optional[str])- 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.mixins_preview.aws_resourceexplorer2 import mixins as resourceexplorer2_mixins filters_property = resourceexplorer2_mixins.CfnViewPropsMixin.FiltersProperty( filter_string="filterString" )
Attributes
IncludedPropertyProperty
- class CfnViewPropsMixin.IncludedPropertyProperty(*, name=None)
Bases:
objectInformation about an additional property that describes a resource, that you can optionally include in a view.
- Parameters:
name (
Optional[str]) – The name of the property that is included in this view.- 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.mixins_preview.aws_resourceexplorer2 import mixins as resourceexplorer2_mixins included_property_property = resourceexplorer2_mixins.CfnViewPropsMixin.IncludedPropertyProperty( name="name" )
Attributes
- name
The name of the property that is included in this view.
SearchFilterProperty
- class CfnViewPropsMixin.SearchFilterProperty(*, filter_string=None)
Bases:
objectA search filter defines which resources can be part of a search query result set.
- Parameters:
filter_string (
Optional[str]) – The string that contains the search keywords, prefixes, and operators to control the results that can be returned by a Search operation. For information about the supported syntax, see Search query reference in the AWS Resource Explorer User Guide . .. epigraph:: This query string in the context of this operation supports only filter prefixes with optional operators . It doesn’t support free-form text. For example, the stringregion:us* service:ec2 -tag:stage=prodincludes all Amazon EC2 resources in any AWS Region that begin with the lettersusand are not tagged with a keyStagethat has the valueprod.- 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.mixins_preview.aws_resourceexplorer2 import mixins as resourceexplorer2_mixins search_filter_property = resourceexplorer2_mixins.CfnViewPropsMixin.SearchFilterProperty( filter_string="filterString" )
Attributes
- filter_string
The string that contains the search keywords, prefixes, and operators to control the results that can be returned by a Search operation.
For information about the supported syntax, see Search query reference in the AWS Resource Explorer User Guide . .. epigraph:
This query string in the context of this operation supports only `filter prefixes <https://docs.aws.amazon.com/resource-explorer/latest/userguide/using-search-query-syntax.html#query-syntax-filters>`_ with optional `operators <https://docs.aws.amazon.com/resource-explorer/latest/userguide/using-search-query-syntax.html#query-syntax-operators>`_ . It doesn't support free-form text. For example, the string ``region:us* service:ec2 -tag:stage=prod`` includes all Amazon EC2 resources in any AWS Region that begin with the letters ``us`` and are *not* tagged with a key ``Stage`` that has the value ``prod`` .