list_settlement_records
¶
list_settlement_records(
time_window: TimeWindow,
scope: Scope,
currency: Currency,
*,
config_overrides: Optional[WAFV2ClientConfig] = None,
filters: Optional[MonetizationFilterList] = None,
sort_by: Optional[SettlementSortBy] = None,
sort_order: Optional[SortOrder] = None,
limit: Optional[SettlementRecordLimit] = None,
next_marker: Optional[NextMarker] = None,
) -> ListSettlementRecordsResponse
Retrieves individual settlement transaction records for monetization. Each record represents a single payment transaction between a client and your protected resource. This operation is only available for CLOUDFRONT scope. The maximum supported time window is 90 days. When no CurrencyMode filter is provided, results default to REAL. To retrieve test data, include a CurrencyMode filter with the value TEST.
Parameters:
-
time_window(TimeWindow) –The time range for the query. Specify start and end timestamps.
-
scope(Scope) –Specifies whether this is for a Amazon CloudFront distribution (
CLOUDFRONT) or for a regional application (REGIONAL). -
currency(Currency) –The currency for the amounts in the response.
-
filters(Optional[MonetizationFilterList], default:None) –Optional filters to narrow the results. You can filter by payer address, status, source name, network, or other settlement fields.
-
sort_by(Optional[SettlementSortBy], default:None) –The field to sort settlement records by:
TIMESTAMP,AMOUNT,NAME, orSTATUS. -
sort_order(Optional[SortOrder], default:None) –The sort order:
ASCfor ascending orDESCfor descending. -
limit(Optional[SettlementRecordLimit], default:None) –The maximum number of settlement records to return. Minimum: 1. Maximum: 100.
-
next_marker(Optional[NextMarker], default:None) –When you get a paginated response, this marker indicates that additional results are available.
Raises:
-
WAFInternalErrorException–Your request is valid, but WAF couldn’t perform the operation because of a system problem. Retry your request.
-
WAFInvalidOperationException–The operation isn't valid.
-
WAFInvalidParameterException–The operation failed because WAF didn't recognize a parameter in the request. For example:
-
You specified a parameter name or value that isn't valid.
-
Your nested statement isn't valid. You might have tried to nest a statement that can’t be nested.
-
You tried to update a
WebACLwith aDefaultActionthat isn't among the types available at DefaultAction. -
Your request references an ARN that is malformed, or corresponds to a resource with which a web ACL can't be associated.
-
-
WAFNonexistentItemException–WAF couldn’t perform the operation because your resource doesn't exist. If you've just created a resource that you're using in this operation, you might just need to wait a few minutes. It can take from a few seconds to a number of minutes for changes to propagate.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_wafv2/_services/wafv2.py
3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 | |