describeRemediationExceptions method
- required String configRuleName,
- int? limit,
- String? nextToken,
- List<
RemediationExceptionResourceKey> ? resourceKeys,
Returns the details of one or more remediation exceptions. A detailed view of a remediation exception for a set of resources that includes an explanation of an exception and the time when the exception will be deleted. When you specify the limit and the next token, you receive a paginated response.
When you specify the limit and the next token, you receive a paginated response.
Limit and next token are not applicable if you request resources in batch. It is only applicable, when you request all resources.
May throw InvalidNextTokenException. May throw InvalidParameterValueException.
Parameter configRuleName
:
The name of the AWS Config rule.
Parameter limit
:
The maximum number of RemediationExceptionResourceKey returned on each
page. The default is 25. If you specify 0, AWS Config uses the default.
Parameter nextToken
:
The nextToken
string returned in a previous request that you
use to request the next page of results in a paginated response.
Parameter resourceKeys
:
An exception list of resource exception keys to be processed with the
current request. AWS Config adds exception for each resource key. For
example, AWS Config adds 3 exceptions for 3 resource keys.
Implementation
Future<DescribeRemediationExceptionsResponse> describeRemediationExceptions({
required String configRuleName,
int? limit,
String? nextToken,
List<RemediationExceptionResourceKey>? resourceKeys,
}) async {
ArgumentError.checkNotNull(configRuleName, 'configRuleName');
_s.validateStringLength(
'configRuleName',
configRuleName,
1,
128,
isRequired: true,
);
_s.validateNumRange(
'limit',
limit,
0,
100,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'StarlingDoveService.DescribeRemediationExceptions'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'ConfigRuleName': configRuleName,
if (limit != null) 'Limit': limit,
if (nextToken != null) 'NextToken': nextToken,
if (resourceKeys != null) 'ResourceKeys': resourceKeys,
},
);
return DescribeRemediationExceptionsResponse.fromJson(jsonResponse.body);
}