putAppsList method
Creates an Firewall Manager applications list.
May throw InternalErrorException.
May throw InvalidInputException.
May throw InvalidOperationException.
May throw LimitExceededException.
May throw ResourceNotFoundException.
Parameter appsList :
The details of the Firewall Manager applications list to be created.
Parameter tagList :
The tags associated with the resource.
Implementation
Future<PutAppsListResponse> putAppsList({
required AppsListData appsList,
List<Tag>? tagList,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AWSFMS_20180101.PutAppsList'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'AppsList': appsList,
if (tagList != null) 'TagList': tagList,
},
);
return PutAppsListResponse.fromJson(jsonResponse.body);
}