list_settlement_records
async
¶
list_settlement_records(
time_window: TimeWindow,
scope: Scope,
currency: Currency,
*,
config_overrides: Optional[AsyncWAFV2ClientConfig] = 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/async_wafv2.py
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 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 | |