putAppsList method

Future<PutAppsListResponse> putAppsList({
  1. required AppsListData appsList,
  2. List<Tag>? tagList,
})

Creates an AWS Firewall Manager applications list.

May throw ResourceNotFoundException. May throw InvalidOperationException. May throw InvalidInputException. May throw LimitExceededException. May throw InternalErrorException.

Parameter appsList : The details of the AWS 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 {
  ArgumentError.checkNotNull(appsList, 'appsList');
  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);
}