describeConformancePacks method
Returns a list of one or more conformance packs.
May throw NoSuchConformancePackException. May throw InvalidLimitException. May throw InvalidNextTokenException. May throw InvalidParameterValueException.
Parameter conformancePackNames
:
Comma-separated list of conformance pack names for which you want details.
If you do not specify any names, AWS Config returns details for all your
conformance packs.
Parameter limit
:
The maximum number of conformance packs returned on each page.
Parameter nextToken
:
The nextToken
string returned in a previous request that you
use to request the next page of results in a paginated response.
Implementation
Future<DescribeConformancePacksResponse> describeConformancePacks({
List<String>? conformancePackNames,
int? limit,
String? nextToken,
}) async {
_s.validateNumRange(
'limit',
limit,
0,
20,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'StarlingDoveService.DescribeConformancePacks'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
if (conformancePackNames != null)
'ConformancePackNames': conformancePackNames,
if (limit != null) 'Limit': limit,
if (nextToken != null) 'NextToken': nextToken,
},
);
return DescribeConformancePacksResponse.fromJson(jsonResponse.body);
}