@@ -357,7 +357,9 @@ def create_for_subscription(
357357 type : Literal ["usage_exceeded" , "cost_exceeded" ],
358358 grouping_keys : Optional [SequenceNotStr [str ]] | Omit = omit ,
359359 metric_id : Optional [str ] | Omit = omit ,
360+ price_filters : Optional [Iterable [alert_create_for_subscription_params .PriceFilter ]] | Omit = omit ,
360361 pricing_unit_id : Optional [str ] | Omit = omit ,
362+ threshold_overrides : Optional [Iterable [alert_create_for_subscription_params .ThresholdOverride ]] | Omit = omit ,
361363 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
362364 # The extra values given here take precedence over values defined on the client or passed to this method.
363365 extra_headers : Headers | None = None ,
@@ -389,9 +391,19 @@ def create_for_subscription(
389391
390392 metric_id: The metric to track usage for.
391393
394+ price_filters: Filters to scope which prices are included in grouped cost alert evaluation.
395+ Supports filtering by price_id, item_id, or price_type with includes/excludes
396+ operators. Only applicable when grouping_keys is set.
397+
392398 pricing_unit_id: The pricing unit to use for grouped cost alerts. Required when grouping_keys is
393399 set.
394400
401+ threshold_overrides: Per-group threshold overrides. Each override maps a specific combination of
402+ grouping_keys values to a list of thresholds that fully replaces the default
403+ thresholds for that group. An empty thresholds list silences the group. Groups
404+ without an override use the default thresholds. Only applicable when
405+ grouping_keys is set.
406+
395407 extra_headers: Send extra headers
396408
397409 extra_query: Add additional query parameters to the request
@@ -412,7 +424,9 @@ def create_for_subscription(
412424 "type" : type ,
413425 "grouping_keys" : grouping_keys ,
414426 "metric_id" : metric_id ,
427+ "price_filters" : price_filters ,
415428 "pricing_unit_id" : pricing_unit_id ,
429+ "threshold_overrides" : threshold_overrides ,
416430 },
417431 alert_create_for_subscription_params .AlertCreateForSubscriptionParams ,
418432 ),
@@ -851,7 +865,9 @@ async def create_for_subscription(
851865 type : Literal ["usage_exceeded" , "cost_exceeded" ],
852866 grouping_keys : Optional [SequenceNotStr [str ]] | Omit = omit ,
853867 metric_id : Optional [str ] | Omit = omit ,
868+ price_filters : Optional [Iterable [alert_create_for_subscription_params .PriceFilter ]] | Omit = omit ,
854869 pricing_unit_id : Optional [str ] | Omit = omit ,
870+ threshold_overrides : Optional [Iterable [alert_create_for_subscription_params .ThresholdOverride ]] | Omit = omit ,
855871 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
856872 # The extra values given here take precedence over values defined on the client or passed to this method.
857873 extra_headers : Headers | None = None ,
@@ -883,9 +899,19 @@ async def create_for_subscription(
883899
884900 metric_id: The metric to track usage for.
885901
902+ price_filters: Filters to scope which prices are included in grouped cost alert evaluation.
903+ Supports filtering by price_id, item_id, or price_type with includes/excludes
904+ operators. Only applicable when grouping_keys is set.
905+
886906 pricing_unit_id: The pricing unit to use for grouped cost alerts. Required when grouping_keys is
887907 set.
888908
909+ threshold_overrides: Per-group threshold overrides. Each override maps a specific combination of
910+ grouping_keys values to a list of thresholds that fully replaces the default
911+ thresholds for that group. An empty thresholds list silences the group. Groups
912+ without an override use the default thresholds. Only applicable when
913+ grouping_keys is set.
914+
889915 extra_headers: Send extra headers
890916
891917 extra_query: Add additional query parameters to the request
@@ -906,7 +932,9 @@ async def create_for_subscription(
906932 "type" : type ,
907933 "grouping_keys" : grouping_keys ,
908934 "metric_id" : metric_id ,
935+ "price_filters" : price_filters ,
909936 "pricing_unit_id" : pricing_unit_id ,
937+ "threshold_overrides" : threshold_overrides ,
910938 },
911939 alert_create_for_subscription_params .AlertCreateForSubscriptionParams ,
912940 ),
0 commit comments