listResourcesForWebACL method
Future<ListResourcesForWebACLResponse>
listResourcesForWebACL({
- required String webACLId,
- ResourceType? resourceType,
Implementation
Future<ListResourcesForWebACLResponse> listResourcesForWebACL({
required String webACLId,
ResourceType? resourceType,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AWSWAF_Regional_20161128.ListResourcesForWebACL'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'WebACLId': webACLId,
if (resourceType != null) 'ResourceType': resourceType.value,
},
);
return ListResourcesForWebACLResponse.fromJson(jsonResponse.body);
}