getOrganizationConfigRuleDetailedStatus method
- required String organizationConfigRuleName,
- StatusDetailFilters? filters,
- int? limit,
- String? nextToken,
Returns detailed status for each member account within an organization for a given organization config rule.
May throw NoSuchOrganizationConfigRuleException. May throw InvalidLimitException. May throw InvalidNextTokenException. May throw OrganizationAccessDeniedException.
Parameter organizationConfigRuleName
:
The name of organization config rule for which you want status details for
member accounts.
Parameter filters
:
A StatusDetailFilters
object.
Parameter limit
:
The maximum number of OrganizationConfigRuleDetailedStatus
returned on each page. If you do not specify a number, AWS Config uses the
default. The default is 100.
Parameter nextToken
:
The nextToken
string returned on a previous page that you use
to get the next page of results in a paginated response.
Implementation
Future<GetOrganizationConfigRuleDetailedStatusResponse>
getOrganizationConfigRuleDetailedStatus({
required String organizationConfigRuleName,
StatusDetailFilters? filters,
int? limit,
String? nextToken,
}) async {
ArgumentError.checkNotNull(
organizationConfigRuleName, 'organizationConfigRuleName');
_s.validateStringLength(
'organizationConfigRuleName',
organizationConfigRuleName,
1,
64,
isRequired: true,
);
_s.validateNumRange(
'limit',
limit,
0,
100,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target':
'StarlingDoveService.GetOrganizationConfigRuleDetailedStatus'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'OrganizationConfigRuleName': organizationConfigRuleName,
if (filters != null) 'Filters': filters,
if (limit != null) 'Limit': limit,
if (nextToken != null) 'NextToken': nextToken,
},
);
return GetOrganizationConfigRuleDetailedStatusResponse.fromJson(
jsonResponse.body);
}