describeManagedProductsByVendor method
Future<DescribeManagedProductsByVendorResponse>
describeManagedProductsByVendor({
- required Scope scope,
- required String vendorName,
Provides high-level information for the managed rule groups owned by a specific vendor.
May throw WAFInternalErrorException.
May throw WAFInvalidOperationException.
May throw WAFInvalidParameterException.
Parameter scope :
Specifies whether this is for a global resource type, such as a Amazon
CloudFront distribution. For an Amplify application, use
CLOUDFRONT.
To work with CloudFront, you must also specify the Region US East (N. Virginia) as follows:
-
CLI - Specify the Region when you use the CloudFront scope:
--scope=CLOUDFRONT --region=us-east-1. - API and SDKs - For all calls, use the Region endpoint us-east-1.
Parameter vendorName :
The name of the managed rule group vendor. You use this, along with the
rule group name, to identify a rule group.
Implementation
Future<DescribeManagedProductsByVendorResponse>
describeManagedProductsByVendor({
required Scope scope,
required String vendorName,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AWSWAF_20190729.DescribeManagedProductsByVendor'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'Scope': scope.value,
'VendorName': vendorName,
},
);
return DescribeManagedProductsByVendorResponse.fromJson(jsonResponse.body);
}