Skip to content

ResourceScope

Source code in docs_src/capo_cloudwatchomni/types/resource_scope.py
class ResourceScope(TypedDict, closed=True):
    resource_type: "str"
    """Resource type name (e.g., "DataSet", "OmniDashboard")."""
    resource_arns: NotRequired[
        "capo_cloudwatchomni.types.resource_arn_list.ResourceArnList"
    ]
    """Specific resource ARNs or ARN patterns. When set, actions are limited to these resources. When absent, defaults to "*"."""
    tags: NotRequired[
        "capo_cloudwatchomni.types.resource_scope_tag_map.ResourceScopeTagMap"
    ]
    """Tag-based conditions for dynamic resource scoping. Access applies only to resources carrying all of the specified tag key/value pairs."""
    signal_types: NotRequired[
        "capo_cloudwatchomni.types.signal_type_list.SignalTypeList"
    ]
    """Signal types this scope's row filtering applies to. Required when rowScopeGroups is set."""
    row_scope_groups: NotRequired[
        "capo_cloudwatchomni.types.row_scope_group_list.RowScopeGroupList"
    ]
    """Row-level filters for this scope, as an OR of AND-groups: a row is visible when it matches every filter in any one group. Requires signalTypes. Row filters are additive across a principal's matching grants. A signal type with no matching group is unrestricted, and when rowScopeGroups is omitted all rows are visible for all signal types."""

resource_arns instance-attribute

resource_arns: NotRequired[ResourceArnList]

Specific resource ARNs or ARN patterns. When set, actions are limited to these resources. When absent, defaults to "*".

resource_type instance-attribute

resource_type: str

Resource type name (e.g., "DataSet", "OmniDashboard").

row_scope_groups instance-attribute

row_scope_groups: NotRequired[RowScopeGroupList]

Row-level filters for this scope, as an OR of AND-groups: a row is visible when it matches every filter in any one group. Requires signalTypes. Row filters are additive across a principal's matching grants. A signal type with no matching group is unrestricted, and when rowScopeGroups is omitted all rows are visible for all signal types.

signal_types instance-attribute

signal_types: NotRequired[SignalTypeList]

Signal types this scope's row filtering applies to. Required when rowScopeGroups is set.

tags instance-attribute

tags: NotRequired[ResourceScopeTagMap]

Tag-based conditions for dynamic resource scoping. Access applies only to resources carrying all of the specified tag key/value pairs.