Skip to content

ResourceConfig

rboto-cloudwatch-logs==0.4.0 · Service index · Types

Public import: from rboto_cloudwatch_logs.types import ResourceConfig.

Used in: input. Type alias. Union variants and nested values are linked below.

ResourceConfig: TypeAlias = ResourceConfigopenSearchResourceConfig

Selecting a variant

Each variant has exactly one declared key. Checking that key narrows the type without a cast or a custom type guard. Handle other variants according to your application, including unknown for output unions.

from rboto_cloudwatch_logs.types import ResourceConfig


def handle(value: ResourceConfig) -> None:
    if 'open_search_resource_config' in value:
        # value is ResourceConfigopenSearchResourceConfig; this field has type OpenSearchResourceConfig.
        print(value['open_search_resource_config'])

Union typing and checker requirements.

ResourceConfigopenSearchResourceConfig