SubscriptionFilter¶
-
class
aws_cdk.aws_sns.
SubscriptionFilter
(conditions=None)¶ Bases:
object
A subscription filter for an attribute.
- Parameters
conditions (
Optional
[List
[Any
]]) – conditions that specify the message attributes that should be included, excluded, matched, etc.
Attributes
-
conditions
¶ conditions that specify the message attributes that should be included, excluded, matched, etc.
- Return type
List
[Any
]
Static Methods
-
classmethod
exists_filter
()¶ Returns a subscription filter for attribute key matching.
- Return type
-
classmethod
numeric_filter
(*, between=None, between_strict=None, greater_than=None, greater_than_or_equal_to=None, less_than=None, less_than_or_equal_to=None, whitelist=None)¶ Returns a subscription filter for a numeric attribute.
- Parameters
between (
Optional
[BetweenCondition
]) – Match values that are between the specified values. Default: - Nonebetween_strict (
Optional
[BetweenCondition
]) – Match values that are strictly between the specified values. Default: - Nonegreater_than (
Union
[int
,float
,None
]) – Match values that are greater than the specified value. Default: - Nonegreater_than_or_equal_to (
Union
[int
,float
,None
]) – Match values that are greater than or equal to the specified value. Default: - Noneless_than (
Union
[int
,float
,None
]) – Match values that are less than the specified value. Default: - Noneless_than_or_equal_to (
Union
[int
,float
,None
]) – Match values that are less than or equal to the specified value. Default: - Nonewhitelist (
Optional
[List
[Union
[int
,float
]]]) – Match one or more values. Default: - None
- Return type
-
classmethod
string_filter
(*, blacklist=None, match_prefixes=None, whitelist=None)¶ Returns a subscription filter for a string attribute.
- Parameters
blacklist (
Optional
[List
[str
]]) – Match any value that doesn’t include any of the specified values. Default: - Nonematch_prefixes (
Optional
[List
[str
]]) – Matches values that begins with the specified prefixes. Default: - Nonewhitelist (
Optional
[List
[str
]]) – Match one or more values. Default: - None
- Return type