Filter

class aws_cdk.aws_sns.Filter(filter_doc)

Bases: FilterOrPolicy

Filter implementation of FilterOrPolicy.

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 import aws_sns as sns

# subscription_filter: sns.SubscriptionFilter

filter = sns.Filter(subscription_filter)

Policy constructor.

Parameters:

filter_doc (SubscriptionFilter) – filter argument to construct.

Methods

is_filter()

Check if instance is Filter type.

Return type:

bool

is_policy()

Check if instance is Policy type.

Return type:

bool

Attributes

filter_doc

filter argument to construct.

type

Type used in DFS buildFilterPolicyWithMessageBody to determine json value type.

Static Methods

classmethod filter(filter)

Filter of MessageBody.

Parameters:

filter (SubscriptionFilter) –

Return type:

Filter

classmethod policy(policy)

Policy of MessageBody.

Parameters:

policy (Mapping[str, FilterOrPolicy]) –

Return type:

Policy